diff options
-rw-r--r-- | include/svx/sidebar/SidebarDialControl.hxx | 3 | ||||
-rw-r--r-- | svx/source/sidebar/possize/SidebarDialControl.cxx | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/svx/sidebar/SidebarDialControl.hxx b/include/svx/sidebar/SidebarDialControl.hxx index 4f2c11860313..68293e6ca8e4 100644 --- a/include/svx/sidebar/SidebarDialControl.hxx +++ b/include/svx/sidebar/SidebarDialControl.hxx @@ -31,6 +31,9 @@ public: SidebarDialControl (Window* pParent, const ResId& rResId); virtual ~SidebarDialControl (void); + virtual Size GetOptimalSize() const; + virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags = WINDOW_POSSIZE_ALL); + virtual void MouseButtonDown (const MouseEvent& rMEvt); protected: diff --git a/svx/source/sidebar/possize/SidebarDialControl.cxx b/svx/source/sidebar/possize/SidebarDialControl.cxx index d7c80e900b9d..a0c1024a5a58 100644 --- a/svx/source/sidebar/possize/SidebarDialControl.cxx +++ b/svx/source/sidebar/possize/SidebarDialControl.cxx @@ -47,8 +47,16 @@ SidebarDialControl::~SidebarDialControl (void) { } +Size SidebarDialControl::GetOptimalSize() const +{ + return LogicToPixel(Size(10, 10), MAP_APPFONT); +} - +void SidebarDialControl::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags) +{ + long nMax = std::max(nWidth, nHeight); + DialControl::setPosSizePixel(nX, nY, nMax, nMax, nFlags); +} void SidebarDialControl::MouseButtonDown( const MouseEvent& rMEvt ) { |