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 StateChanged (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
 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 (long nOffset) const
 
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 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 acquire () override
 
virtual void SAL_CALL release () override
 
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 154 of file zoomsliderctrl.cxx.

References mxImpl.

SvxZoomSliderControl::~SvxZoomSliderControl ( )
overridevirtual

Definition at line 163 of file zoomsliderctrl.cxx.

Member Function Documentation

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

Reimplemented from SfxStatusBarControl.

Definition at line 328 of file zoomsliderctrl.cxx.

References mxImpl.

bool SvxZoomSliderControl::MouseMove ( const MouseEvent rEvt)
overridevirtual
sal_uInt16 SvxZoomSliderControl::Offset2Zoom ( long  nOffset) const
private

Definition at line 72 of file zoomsliderctrl.cxx.

References mxImpl, nSliderXOffset, and nSnappingEpsilon.

Referenced by MouseButtonDown(), and MouseMove().

void SvxZoomSliderControl::Paint ( const UserDrawEvent rEvt)
overridevirtual
void SvxZoomSliderControl::repaintAndExecute ( )
private

Definition at line 381 of file zoomsliderctrl.cxx.

References forceRepaint(), mxImpl, and SvxZoomSliderItem::QueryValue().

Referenced by MouseButtonDown(), and MouseMove().

SvxZoomSliderControl::SFX_DECL_STATUSBAR_CONTROL ( )
void SvxZoomSliderControl::StateChanged ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual
long SvxZoomSliderControl::Zoom2Offset ( sal_uInt16  nZoom) const
private

Definition at line 127 of file zoomsliderctrl.cxx.

References mxImpl, and nSliderXOffset.

Referenced by Paint(), and StateChanged().

Member Data Documentation

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

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