summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/tbzoomsliderctrl.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-14 15:43:08 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-15 08:56:24 +0900
commit0b00791b18fc1f79eefea24a7dc7e02a66b6d156 (patch)
treeb3ce163d85a51aa94bb627bdcd2bbc433a485d81 /sc/source/ui/inc/tbzoomsliderctrl.hxx
parent848e020fcf3ba4d6c8ff0a03fb6049193cc78848 (diff)
refactor ScZoomSliderControl to use RenderContext
Change-Id: Ie57c22e12b8b6f68a52e857b815765d2d37fc099
Diffstat (limited to 'sc/source/ui/inc/tbzoomsliderctrl.hxx')
-rw-r--r--sc/source/ui/inc/tbzoomsliderctrl.hxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx
index 704d53489052..ac53e20d28c1 100644
--- a/sc/source/ui/inc/tbzoomsliderctrl.hxx
+++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx
@@ -26,41 +26,41 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <svx/zoomslideritem.hxx>
-class ScZoomSliderControl: public SfxToolBoxControl
+class ScZoomSliderControl : public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
ScZoomSliderControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
virtual ~ScZoomSliderControl();
- virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE;
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) SAL_OVERRIDE;
};
class ScZoomSliderWnd: public vcl::Window
{
private:
- struct ScZoomSliderWnd_Impl;
- ScZoomSliderWnd_Impl* mpImpl;
- Size aLogicalSize;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xDispatchProvider;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
+ struct ScZoomSliderWnd_Impl;
+ ScZoomSliderWnd_Impl* mpImpl;
+ Size aLogicalSize;
+ css::uno::Reference<css::frame::XDispatchProvider> m_xDispatchProvider;
+ css::uno::Reference<css::frame::XFrame> m_xFrame;
- sal_uInt16 Offset2Zoom( long nOffset ) const;
- long Zoom2Offset( sal_uInt16 nZoom ) const;
- void DoPaint( const Rectangle& rRect );
+ sal_uInt16 Offset2Zoom(long nOffset) const;
+ long Zoom2Offset(sal_uInt16 nZoom) const;
+ void DoPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect);
public:
- ScZoomSliderWnd( vcl::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 );
+ ScZoomSliderWnd(vcl::Window* pParent, const css::uno::Reference<css::frame::XDispatchProvider >& rDispatchProvider,
+ const css::uno::Reference<css::frame::XFrame>& _xFrame, sal_uInt16 nCurrentZoom);
virtual ~ScZoomSliderWnd();
virtual void dispose() SAL_OVERRIDE;
- void UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem );
+ void UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem );
protected:
- virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
- virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE;
- virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) SAL_OVERRIDE;
+ virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
+ virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE;
+ virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
};
#endif