LibreOffice Module svx (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvxZoomSliderControl Class Referencefinal

#include <zoomsliderctrl.hxx>

Inheritance diagram for SvxZoomSliderControl:
Collaboration diagram for SvxZoomSliderControl:


struct  SvxZoomSliderControl_Impl

Public Member Functions

 SvxZoomSliderControl (sal_uInt16 _nSlotId, sal_uInt16 _nId, StatusBar &_rStb)
virtual ~SvxZoomSliderControl () override
virtual void StateChangedAtStatusBarControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
virtual void Paint (const UserDrawEvent &rEvt) override
virtual bool MouseButtonDown (const MouseEvent &) override
virtual bool MouseButtonUp (const MouseEvent &) override
virtual bool MouseMove (const MouseEvent &rEvt) override
- Public Member Functions inherited from SfxStatusBarControl
virtual void SAL_CALL acquire () noexcept override
virtual void SAL_CALL release () noexcept override
 SfxStatusBarControl (sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar &rBar)
virtual ~SfxStatusBarControl () override
sal_uInt16 GetSlotId () const
sal_uInt16 GetId () const
StatusBarGetStatusBar () const

Private Member Functions

sal_uInt16 Offset2Zoom (tools::Long nOffset) const
tools::Long Zoom2Offset (sal_uInt16 nZoom) const
void repaintAndExecute ()
void forceRepaint () const

Private Attributes

std::unique_ptr< SvxZoomSliderControl_ImplmxImpl

Additional Inherited Members

- Static Public Member Functions inherited from SfxStatusBarControl
static rtl::Reference< SfxStatusBarControlCreateControl (sal_uInt16 nSlotID, sal_uInt16 nId, StatusBar *pBar, SfxModule const *)
static void RegisterStatusBarControl (SfxModule *, const SfxStbCtrlFactory &)
- Protected Member Functions inherited from SfxStatusBarControl
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
virtual sal_Bool SAL_CALL mouseButtonDown (const css::awt::MouseEvent &aMouseEvent) override
virtual sal_Bool SAL_CALL mouseMove (const css::awt::MouseEvent &aMouseEvent) override
virtual sal_Bool SAL_CALL mouseButtonUp (const css::awt::MouseEvent &aMouseEvent) override
virtual void SAL_CALL command (const css::awt::Point &aPos,::sal_Int32 nCommand, sal_Bool bMouseEvent, const css::uno::Any &aData) override
virtual void SAL_CALL paint (const css::uno::Reference< css::awt::XGraphics > &xGraphics, const css::awt::Rectangle &rOutputRectangle,::sal_Int32 nStyle) override
virtual void SAL_CALL click (const css::awt::Point &aPos) override
virtual void SAL_CALL doubleClick (const css::awt::Point &aPos) override
virtual void Click ()
virtual void Command (const CommandEvent &rCEvt)
- Static Protected Member Functions inherited from SfxStatusBarControl
static sal_uInt16 convertAwtToVCLMouseButtons (sal_Int16 nAwtMouseButtons)

Detailed Description

Definition at line 27 of file zoomsliderctrl.hxx.

Constructor & Destructor Documentation

SvxZoomSliderControl::SvxZoomSliderControl ( sal_uInt16  _nSlotId,
sal_uInt16  _nId,
StatusBar _rStb 

Definition at line 150 of file zoomsliderctrl.cxx.

References mxImpl.

SvxZoomSliderControl::~SvxZoomSliderControl ( )

Definition at line 159 of file zoomsliderctrl.cxx.

Member Function Documentation

void SvxZoomSliderControl::forceRepaint ( ) const
bool SvxZoomSliderControl::MouseButtonDown ( const MouseEvent rEvt)
bool SvxZoomSliderControl::MouseButtonUp ( const MouseEvent )

Reimplemented from SfxStatusBarControl.

Definition at line 324 of file zoomsliderctrl.cxx.

References mxImpl.

bool SvxZoomSliderControl::MouseMove ( const MouseEvent rEvt)
sal_uInt16 SvxZoomSliderControl::Offset2Zoom ( tools::Long  nOffset) const

Definition at line 68 of file zoomsliderctrl.cxx.

References mxImpl, nCount, nSliderXOffset, and nSnappingEpsilon.

Referenced by MouseButtonDown(), and MouseMove().

void SvxZoomSliderControl::Paint ( const UserDrawEvent rEvt)
void SvxZoomSliderControl::repaintAndExecute ( )
void SvxZoomSliderControl::StateChangedAtStatusBarControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
tools::Long SvxZoomSliderControl::Zoom2Offset ( sal_uInt16  nZoom) const

Definition at line 123 of file zoomsliderctrl.cxx.

References mxImpl, and nSliderXOffset.

Referenced by Paint(), and StateChangedAtStatusBarControl().

Member Data Documentation

std::unique_ptr<SvxZoomSliderControl_Impl> SvxZoomSliderControl::mxImpl

The documentation for this class was generated from the following files: