LibreOffice Module svx (master) 1
|
#include <zoomsliderctrl.hxx>
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 |
StatusBar & | GetStatusBar () 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_Impl > | mxImpl |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxStatusBarControl | |
static rtl::Reference< SfxStatusBarControl > | CreateControl (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) |
Definition at line 27 of file zoomsliderctrl.hxx.
SvxZoomSliderControl::SvxZoomSliderControl | ( | sal_uInt16 | _nSlotId, |
sal_uInt16 | _nId, | ||
StatusBar & | _rStb | ||
) |
Definition at line 150 of file zoomsliderctrl.cxx.
References mxImpl.
|
overridevirtual |
Definition at line 159 of file zoomsliderctrl.cxx.
|
private |
Definition at line 372 of file zoomsliderctrl.cxx.
References SfxStatusBarControl::GetId(), SfxStatusBarControl::GetStatusBar(), and StatusBar::SetItemData().
Referenced by repaintAndExecute(), and StateChangedAtStatusBarControl().
|
overridevirtual |
Reimplemented from SfxStatusBarControl.
Definition at line 281 of file zoomsliderctrl.cxx.
References MouseEvent::GetPosPixel(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), mxImpl, nIncDecWidth, nSliderXOffset, Offset2Zoom(), repaintAndExecute(), Point::X(), basegfx::zoomtools::zoomIn(), and basegfx::zoomtools::zoomOut().
|
overridevirtual |
Reimplemented from SfxStatusBarControl.
Definition at line 324 of file zoomsliderctrl.cxx.
References mxImpl.
|
overridevirtual |
Reimplemented from SfxStatusBarControl.
Definition at line 330 of file zoomsliderctrl.cxx.
References MouseEvent::GetButtons(), SfxStatusBarControl::GetId(), MouseEvent::GetPosPixel(), SfxStatusBarControl::GetStatusBar(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), mxImpl, nIncDecWidth, nSliderXOffset, Offset2Zoom(), repaintAndExecute(), StatusBar::SetQuickHelpText(), SvxResId(), and Point::X().
|
private |
Definition at line 68 of file zoomsliderctrl.cxx.
References mxImpl, nCount, nSliderXOffset, and nSnappingEpsilon.
Referenced by MouseButtonDown(), and MouseMove().
|
overridevirtual |
Reimplemented from SfxStatusBarControl.
Definition at line 219 of file zoomsliderctrl.cxx.
References tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), OutputDevice::DrawImage(), OutputDevice::DrawLine(), OutputDevice::DrawRect(), StyleSettings::GetDarkShadowColor(), OutputDevice::GetDPIScaleFactor(), OutputDevice::GetFillColor(), tools::Rectangle::GetHeight(), OutputDevice::GetLineColor(), UserDrawEvent::GetRect(), UserDrawEvent::GetRenderContext(), Application::GetSettings(), StyleSettings::GetShadowColor(), AllSettings::GetStyleSettings(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), mxImpl, nSliderHeight, nSliderXOffset, nSnappingHeight, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), Point::setX(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), and Zoom2Offset().
|
private |
Definition at line 377 of file zoomsliderctrl.cxx.
References any, forceRepaint(), comphelper::makePropertyValue(), mxImpl, and SvxZoomSliderItem::QueryValue().
Referenced by MouseButtonDown(), and MouseMove().
SvxZoomSliderControl::SFX_DECL_STATUSBAR_CONTROL | ( | ) |
|
overridevirtual |
Reimplemented from SfxStatusBarControl.
Definition at line 163 of file zoomsliderctrl.cxx.
References DBG_ASSERT, forceRepaint(), SfxStatusBarControl::GetId(), SfxStatusBarControl::GetStatusBar(), GetValue, SfxPoolItem::IsVoidItem(), mxImpl, nSnappingPointsMinDist, StatusBar::SetItemText(), and Zoom2Offset().
|
private |
Definition at line 123 of file zoomsliderctrl.cxx.
References mxImpl, and nSliderXOffset.
Referenced by Paint(), and StateChangedAtStatusBarControl().
|
private |
Definition at line 32 of file zoomsliderctrl.hxx.
Referenced by MouseButtonDown(), MouseButtonUp(), MouseMove(), Offset2Zoom(), Paint(), repaintAndExecute(), StateChangedAtStatusBarControl(), SvxZoomSliderControl(), and Zoom2Offset().