LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScZoomSlider Class Referencefinal

#include <tbzoomsliderctrl.hxx>

Inheritance diagram for ScZoomSlider:
[legend]
Collaboration diagram for ScZoomSlider:
[legend]

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::DrawingAreaGetDrawingArea () 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
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (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::LongmaSnappingPointOffsets
 
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 ()
 

Detailed Description

Definition at line 43 of file tbzoomsliderctrl.hxx.

Constructor & Destructor Documentation

◆ ScZoomSlider()

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.

Member Function Documentation

◆ DoPaint()

void ScZoomSlider::DoPaint ( vcl::RenderContext rRenderContext)
private

◆ MouseButtonDown()

bool ScZoomSlider::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool ScZoomSlider::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ Offset2Zoom()

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

◆ Paint()

void ScZoomSlider::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Implements weld::CustomWidgetController.

Definition at line 363 of file tbzoomsliderctrl.cxx.

References DoPaint().

◆ UpdateFromItem()

void ScZoomSlider::UpdateFromItem ( const SvxZoomSliderItem pZoomSliderItem)

◆ Zoom2Offset()

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

Member Data Documentation

◆ m_xDispatchProvider

css::uno::Reference<css::frame::XDispatchProvider> ScZoomSlider::m_xDispatchProvider
private

Definition at line 55 of file tbzoomsliderctrl.hxx.

Referenced by MouseButtonDown(), and MouseMove().

◆ maDecreaseButton

Image ScZoomSlider::maDecreaseButton
private

Definition at line 53 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

◆ maIncreaseButton

Image ScZoomSlider::maIncreaseButton
private

Definition at line 52 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

◆ maSliderButton

Image ScZoomSlider::maSliderButton
private

Definition at line 51 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

◆ maSnappingPointOffsets

std::vector< tools::Long > ScZoomSlider::maSnappingPointOffsets
private

Definition at line 49 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), Offset2Zoom(), and UpdateFromItem().

◆ maSnappingPointZooms

std::vector< sal_uInt16 > ScZoomSlider::maSnappingPointZooms
private

Definition at line 50 of file tbzoomsliderctrl.hxx.

Referenced by Offset2Zoom(), and UpdateFromItem().

◆ mbOmitPaint

bool ScZoomSlider::mbOmitPaint
private

Definition at line 54 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), MouseButtonDown(), MouseMove(), and UpdateFromItem().

◆ mnCurrentZoom

sal_uInt16 ScZoomSlider::mnCurrentZoom
private

Definition at line 46 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), MouseButtonDown(), MouseMove(), and UpdateFromItem().

◆ mnMaxZoom

sal_uInt16 ScZoomSlider::mnMaxZoom
private

Definition at line 48 of file tbzoomsliderctrl.hxx.

Referenced by MouseButtonDown(), Offset2Zoom(), UpdateFromItem(), and Zoom2Offset().

◆ mnMinZoom

sal_uInt16 ScZoomSlider::mnMinZoom
private

Definition at line 47 of file tbzoomsliderctrl.hxx.

Referenced by MouseButtonDown(), Offset2Zoom(), UpdateFromItem(), and Zoom2Offset().


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