LibreOffice Module sc (master) 1
|
#include <tbzoomsliderctrl.hxx>
Public Member Functions | |
ScZoomSlider (css::uno::Reference< css::frame::XDispatchProvider > xDispatchProvider, sal_uInt16 nCurrentZoom) | |
void | UpdateFromItem (const SvxZoomSliderItem *pZoomSliderItem) |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Private Member Functions | |
sal_uInt16 | Offset2Zoom (tools::Long nOffset) const |
tools::Long | Zoom2Offset (sal_uInt16 nZoom) const |
void | DoPaint (vcl::RenderContext &rRenderContext) |
Private Attributes | |
sal_uInt16 | mnCurrentZoom |
sal_uInt16 | mnMinZoom |
sal_uInt16 | mnMaxZoom |
std::vector< tools::Long > | maSnappingPointOffsets |
std::vector< sal_uInt16 > | maSnappingPointZooms |
Image | maSliderButton |
Image | maIncreaseButton |
Image | maDecreaseButton |
bool | mbOmitPaint |
css::uno::Reference< css::frame::XDispatchProvider > | m_xDispatchProvider |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 43 of file tbzoomsliderctrl.hxx.
ScZoomSlider::ScZoomSlider | ( | css::uno::Reference< css::frame::XDispatchProvider > | xDispatchProvider, |
sal_uInt16 | nCurrentZoom | ||
) |
Definition at line 208 of file tbzoomsliderctrl.cxx.
References maDecreaseButton, maIncreaseButton, and maSliderButton.
|
private |
Definition at line 368 of file tbzoomsliderctrl.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), Point::AdjustX(), Point::AdjustY(), tools::Rectangle::Bottom(), COL_GRAY(), COL_WHITE(), OutputDevice::DrawOutDev(), StyleSettings::GetFaceColor(), weld::CustomWidgetController::GetOutputSizePixel(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), Size::Height(), Color::IsDark(), tools::Rectangle::Left(), maDecreaseButton, maIncreaseButton, maSliderButton, maSnappingPointOffsets, mbOmitPaint, mnCurrentZoom, nButtonHeight, nButtonWidth, nIncDecHeight, nIncDecWidth, nSliderHeight, nSliderXOffset, nSnappingHeight, tools::Rectangle::Right(), Gradient::SetAngle(), tools::Rectangle::SetBottom(), Gradient::SetEndColor(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), Gradient::SetStartColor(), Gradient::SetStyle(), tools::Rectangle::SetTop(), Point::setX(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), and Zoom2Offset().
Referenced by Paint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 222 of file tbzoomsliderctrl.cxx.
References a, SfxToolBoxControl::Dispatch(), weld::CustomWidgetController::GetOutputSizePixel(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), m_xDispatchProvider, comphelper::makePropertyValue(), mbOmitPaint, mnCurrentZoom, mnMaxZoom, mnMinZoom, nIncDecWidth, nSliderXOffset, Offset2Zoom(), SvxZoomSliderItem::QueryValue(), Size::Width(), and Point::X().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 276 of file tbzoomsliderctrl.cxx.
References a, SfxToolBoxControl::Dispatch(), MouseEvent::GetButtons(), weld::CustomWidgetController::GetOutputSizePixel(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), m_xDispatchProvider, comphelper::makePropertyValue(), mbOmitPaint, mnCurrentZoom, nSliderXOffset, Offset2Zoom(), SvxZoomSliderItem::QueryValue(), Size::Width(), and Point::X().
|
private |
Definition at line 103 of file tbzoomsliderctrl.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), gnSliderCenter(), maSnappingPointOffsets, maSnappingPointZooms, mnMaxZoom, mnMinZoom, nCount, nSliderXOffset, and Size::Width().
Referenced by MouseButtonDown(), and MouseMove().
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 363 of file tbzoomsliderctrl.cxx.
References DoPaint().
void ScZoomSlider::UpdateFromItem | ( | const SvxZoomSliderItem * | pZoomSliderItem | ) |
Definition at line 318 of file tbzoomsliderctrl.cxx.
References SvxZoomSliderItem::GetMaxZoom(), SvxZoomSliderItem::GetMinZoom(), weld::CustomWidgetController::GetOutputSizePixel(), SvxZoomSliderItem::GetSnappingPoints(), gnSliderCenter(), weld::CustomWidgetController::Invalidate(), maSnappingPointOffsets, maSnappingPointZooms, mbOmitPaint, mnCurrentZoom, mnMaxZoom, mnMinZoom, nSnappingPointsMinDist, and Zoom2Offset().
|
private |
Definition at line 155 of file tbzoomsliderctrl.cxx.
References weld::CustomWidgetController::GetOutputSizePixel(), gnSliderCenter(), mnMaxZoom, mnMinZoom, nSliderXOffset, and Size::Width().
Referenced by DoPaint(), and UpdateFromItem().
|
private |
Definition at line 55 of file tbzoomsliderctrl.hxx.
Referenced by MouseButtonDown(), and MouseMove().
|
private |
Definition at line 53 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), and ScZoomSlider().
|
private |
Definition at line 52 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), and ScZoomSlider().
|
private |
Definition at line 51 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), and ScZoomSlider().
|
private |
Definition at line 49 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), Offset2Zoom(), and UpdateFromItem().
|
private |
Definition at line 50 of file tbzoomsliderctrl.hxx.
Referenced by Offset2Zoom(), and UpdateFromItem().
|
private |
Definition at line 54 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), MouseButtonDown(), MouseMove(), and UpdateFromItem().
|
private |
Definition at line 46 of file tbzoomsliderctrl.hxx.
Referenced by DoPaint(), MouseButtonDown(), MouseMove(), and UpdateFromItem().
|
private |
Definition at line 48 of file tbzoomsliderctrl.hxx.
Referenced by MouseButtonDown(), Offset2Zoom(), UpdateFromItem(), and Zoom2Offset().
|
private |
Definition at line 47 of file tbzoomsliderctrl.hxx.
Referenced by MouseButtonDown(), Offset2Zoom(), UpdateFromItem(), and Zoom2Offset().