summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/cctrl/tbzoomsliderctrl.cxx')
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx34
1 files changed, 0 insertions, 34 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 6ad81991568e..260edebbc265 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -39,12 +39,8 @@
// class ScZoomSliderControl ---------------------------------------
-
-
SFX_IMPL_TOOLBOX_CONTROL( ScZoomSliderControl, SvxZoomSliderItem );
-
-
ScZoomSliderControl::ScZoomSliderControl(
sal_uInt16 nSlotId,
sal_uInt16 nId,
@@ -54,15 +50,11 @@ ScZoomSliderControl::ScZoomSliderControl(
rTbx.Invalidate();
}
-
-
ScZoomSliderControl::~ScZoomSliderControl()
{
}
-
-
void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState,
const SfxPoolItem* pState )
{
@@ -89,8 +81,6 @@ void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState
}
}
-
-
Window* ScZoomSliderControl::CreateItemWindow( Window *pParent )
{
// #i98000# Don't try to get a value via SfxViewFrame::Current here.
@@ -101,8 +91,6 @@ Window* ScZoomSliderControl::CreateItemWindow( Window *pParent )
return pSlider;
}
-
-
struct ScZoomSliderWnd::ScZoomSliderWnd_Impl
{
sal_uInt16 mnCurrentZoom;
@@ -134,8 +122,6 @@ struct ScZoomSliderWnd::ScZoomSliderWnd_Impl
}
};
-
-
const long nButtonWidth = 10;
const long nButtonHeight = 10;
const long nIncDecWidth = 11;
@@ -148,8 +134,6 @@ const long nSnappingEpsilon = 5; // snapping epsilon in pixels
const long nSnappingPointsMinDist = nSnappingEpsilon; // minimum distance of two adjacent snapping points
-
-
sal_uInt16 ScZoomSliderWnd::Offset2Zoom( long nOffset ) const
{
Size aSliderWindowSize = GetOutputSizePixel();
@@ -209,8 +193,6 @@ sal_uInt16 ScZoomSliderWnd::Offset2Zoom( long nOffset ) const
return nRet;
}
-
-
long ScZoomSliderWnd::Zoom2Offset( sal_uInt16 nCurrentZoom ) const
{
Size aSliderWindowSize = GetOutputSizePixel();
@@ -238,8 +220,6 @@ long ScZoomSliderWnd::Zoom2Offset( sal_uInt16 nCurrentZoom ) const
}
-
-
ScZoomSliderWnd::ScZoomSliderWnd( Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& rDispatchProvider,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame , sal_uInt16 nCurrentZoom ):
Window( pParent ),
@@ -255,15 +235,11 @@ ScZoomSliderWnd::ScZoomSliderWnd( Window* pParent, const ::com::sun::star::uno::
SetSizePixel( Size( aSliderSize.Width() * nSliderWidth-1, aSliderSize.Height() + nSliderHeight ) );
}
-
-
ScZoomSliderWnd::~ScZoomSliderWnd()
{
delete mpImpl;
}
-
-
void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( !mpImpl->mbValuesSet )
@@ -320,8 +296,6 @@ void ScZoomSliderWnd::MouseButtonDown( const MouseEvent& rMEvt )
mpImpl->mbOmitPaint = false;
}
-
-
void ScZoomSliderWnd::MouseMove( const MouseEvent& rMEvt )
{
if ( !mpImpl->mbValuesSet )
@@ -362,8 +336,6 @@ void ScZoomSliderWnd::MouseMove( const MouseEvent& rMEvt )
}
}
-
-
void ScZoomSliderWnd::UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem )
{
if( pZoomSliderItem )
@@ -414,15 +386,11 @@ void ScZoomSliderWnd::UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem )
Paint(aRect);
}
-
-
void ScZoomSliderWnd::Paint( const Rectangle& rRect )
{
DoPaint( rRect );
}
-
-
void ScZoomSliderWnd::DoPaint( const Rectangle& /*rRect*/ )
{
if( mpImpl->mbOmitPaint )
@@ -519,6 +487,4 @@ void ScZoomSliderWnd::DoPaint( const Rectangle& /*rRect*/ )
}
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */