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:
[legend]
Collaboration diagram for SvxZoomSliderControl:
[legend]

Classes

struct  SvxZoomSliderControl_Impl
 

Public Member Functions

 SFX_DECL_STATUSBAR_CONTROL ()
 
 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 StateChangedAtStatusBarControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
 
virtual void Click ()
 
virtual void Command (const CommandEvent &rCEvt)
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void Paint (const UserDrawEvent &rUDEvt)
 
- 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::SvxZoomSliderControl ( sal_uInt16  _nSlotId,
sal_uInt16  _nId,
StatusBar _rStb 
)

Definition at line 150 of file zoomsliderctrl.cxx.

References mxImpl.

◆ ~SvxZoomSliderControl()

SvxZoomSliderControl::~SvxZoomSliderControl ( )
overridevirtual

Definition at line 159 of file zoomsliderctrl.cxx.

Member Function Documentation

◆ forceRepaint()

void SvxZoomSliderControl::forceRepaint ( ) const
private

◆ MouseButtonDown()

bool SvxZoomSliderControl::MouseButtonDown ( const MouseEvent rEvt)
overridevirtual

◆ MouseButtonUp()

bool SvxZoomSliderControl::MouseButtonUp ( const MouseEvent )
overridevirtual

Reimplemented from SfxStatusBarControl.

Definition at line 324 of file zoomsliderctrl.cxx.

References mxImpl.

◆ MouseMove()

bool SvxZoomSliderControl::MouseMove ( const MouseEvent rEvt)
overridevirtual

◆ Offset2Zoom()

sal_uInt16 SvxZoomSliderControl::Offset2Zoom ( tools::Long  nOffset) const
private

Definition at line 68 of file zoomsliderctrl.cxx.

References mxImpl, nCount, nSliderXOffset, and nSnappingEpsilon.

Referenced by MouseButtonDown(), and MouseMove().

◆ Paint()

void SvxZoomSliderControl::Paint ( const UserDrawEvent rEvt)
overridevirtual

◆ repaintAndExecute()

void SvxZoomSliderControl::repaintAndExecute ( )
private

◆ SFX_DECL_STATUSBAR_CONTROL()

SvxZoomSliderControl::SFX_DECL_STATUSBAR_CONTROL ( )

◆ StateChangedAtStatusBarControl()

void SvxZoomSliderControl::StateChangedAtStatusBarControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

◆ Zoom2Offset()

tools::Long SvxZoomSliderControl::Zoom2Offset ( sal_uInt16  nZoom) const
private

Definition at line 123 of file zoomsliderctrl.cxx.

References mxImpl, and nSliderXOffset.

Referenced by Paint(), and StateChangedAtStatusBarControl().

Member Data Documentation

◆ mxImpl

std::unique_ptr<SvxZoomSliderControl_Impl> SvxZoomSliderControl::mxImpl
private

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