diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-08-25 18:13:37 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-08-25 21:34:47 +0200 |
commit | 78d6eb63cb8bf7f031f4ea5527bac692e856003e (patch) | |
tree | 9ff9e69dfe4538ad928dbf30a1bc75cd9c1920c9 | |
parent | f785c166bd80a4c9f50e6c4f7811bfd7ece16c81 (diff) |
zoom slider: remove unneeded whitespaces
Change-Id: I220a4074c6d62a89aaab435210f52300c63315b2
-rw-r--r-- | svx/source/stbctrls/zoomsliderctrl.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx index c7b0092109f3..e02063e83da2 100644 --- a/svx/source/stbctrls/zoomsliderctrl.cxx +++ b/svx/source/stbctrls/zoomsliderctrl.cxx @@ -26,17 +26,12 @@ #include <svx/zoomslideritem.hxx> #include <svx/dialmgr.hxx> #include <svx/dialogs.hrc> - #include <basegfx/tools/zoomtools.hxx> #include <set> - - SFX_IMPL_STATUSBAR_CONTROL( SvxZoomSliderControl, SvxZoomSliderItem ); - - struct SvxZoomSliderControl::SvxZoomSliderControl_Impl { sal_uInt16 mnCurrentZoom; @@ -65,14 +60,10 @@ struct SvxZoomSliderControl::SvxZoomSliderControl_Impl mbOmitPaint( false ) {} }; - - const long nSliderXOffset = 20; const long nSnappingEpsilon = 5; // snapping epsilon in pixels const long nSnappingPointsMinDist = nSnappingEpsilon; // minimum distance of two adjacent snapping points - - // nOffset referes to the origin of the control: // + ----------- - sal_uInt16 SvxZoomSliderControl::Offset2Zoom( long nOffset ) const @@ -161,8 +152,6 @@ long SvxZoomSliderControl::Zoom2Offset( sal_uInt16 nCurrentZoom ) const return nRet; } - - SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, StatusBar& _rStb ) : SfxStatusBarControl( _nSlotId, _nId, _rStb ), mpImpl( new SvxZoomSliderControl_Impl ) @@ -190,14 +179,10 @@ SvxZoomSliderControl::SvxZoomSliderControl( sal_uInt16 _nSlotId, sal_uInt16 _nI //#endif } - - SvxZoomSliderControl::~SvxZoomSliderControl() { } - - void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { if ( (SFX_ITEM_AVAILABLE != eState) || pState->ISA( SfxVoidItem ) ) @@ -258,8 +243,6 @@ void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eStat forceRepaint(); } - - void SvxZoomSliderControl::Paint( const UserDrawEvent& rUsrEvt ) { if ( !mpImpl->mbValuesSet || mpImpl->mbOmitPaint ) @@ -322,8 +305,6 @@ void SvxZoomSliderControl::Paint( const UserDrawEvent& rUsrEvt ) pDev->SetFillColor( aOldFillColor ); } - - bool SvxZoomSliderControl::MouseButtonDown( const MouseEvent & rEvt ) { if ( !mpImpl->mbValuesSet ) @@ -364,8 +345,6 @@ bool SvxZoomSliderControl::MouseButtonDown( const MouseEvent & rEvt ) return true; } - - bool SvxZoomSliderControl::MouseMove( const MouseEvent & rEvt ) { if ( !mpImpl->mbValuesSet ) |