summaryrefslogtreecommitdiff
path: root/include/svx/zoomsliderctrl.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-25 18:11:29 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-08-25 21:34:47 +0200
commitf785c166bd80a4c9f50e6c4f7811bfd7ece16c81 (patch)
treee2fd230696bf84c11b520a8e35d3db193aaf69b1 /include/svx/zoomsliderctrl.hxx
parent895efd4f399fd717343bbc1ba3538fa01cf0a40a (diff)
zoom slider: impl as scoped_ptr and reduce code duplication
Change-Id: I274e731c70c2735f513e9e8fbf2273aa52310fd2
Diffstat (limited to 'include/svx/zoomsliderctrl.hxx')
-rw-r--r--include/svx/zoomsliderctrl.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svx/zoomsliderctrl.hxx b/include/svx/zoomsliderctrl.hxx
index a15121782c2c..7af69db82c7c 100644
--- a/include/svx/zoomsliderctrl.hxx
+++ b/include/svx/zoomsliderctrl.hxx
@@ -22,6 +22,7 @@
#include <sfx2/stbitem.hxx>
#include <svx/svxdllapi.h>
+#include <boost/scoped_ptr.hpp>
// class SvxZoomSliderControl ----------------------------------------
@@ -30,11 +31,14 @@ class SVX_DLLPUBLIC SvxZoomSliderControl : public SfxStatusBarControl
private:
struct SvxZoomSliderControl_Impl;
- SvxZoomSliderControl_Impl* mpImpl;
+ boost::scoped_ptr<SvxZoomSliderControl_Impl> mpImpl;
sal_uInt16 Offset2Zoom( long nOffset ) const;
long Zoom2Offset( sal_uInt16 nZoom ) const;
+ void repaintAndExecute();
+ void forceRepaint() const;
+
public:
SFX_DECL_STATUSBAR_CONTROL();