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 (const css::uno::Reference< css::frame::XDispatchProvider > &rDispatchProvider, 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 Resize ()
 
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 GrabFocus ()
 
bool HasFocus () 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 OString &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 SetDragDataTransferrable (rtl::Reference< TransferDataContainer > &rTransferrable, 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 42 of file tbzoomsliderctrl.hxx.

Constructor & Destructor Documentation

ScZoomSlider::ScZoomSlider ( const css::uno::Reference< css::frame::XDispatchProvider > &  rDispatchProvider,
sal_uInt16  nCurrentZoom 
)

Definition at line 207 of file tbzoomsliderctrl.cxx.

References maDecreaseButton, maIncreaseButton, and maSliderButton.

Member Function Documentation

void ScZoomSlider::DoPaint ( vcl::RenderContext rRenderContext)
private
bool ScZoomSlider::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
bool ScZoomSlider::MouseMove ( const MouseEvent rMEvt)
overridevirtual
sal_uInt16 ScZoomSlider::Offset2Zoom ( tools::Long  nOffset) const
private
void ScZoomSlider::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Implements weld::CustomWidgetController.

Definition at line 362 of file tbzoomsliderctrl.cxx.

References DoPaint().

void ScZoomSlider::UpdateFromItem ( const SvxZoomSliderItem pZoomSliderItem)
tools::Long ScZoomSlider::Zoom2Offset ( sal_uInt16  nZoom) const
private

Member Data Documentation

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

Definition at line 54 of file tbzoomsliderctrl.hxx.

Referenced by MouseButtonDown(), and MouseMove().

Image ScZoomSlider::maDecreaseButton
private

Definition at line 52 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

Image ScZoomSlider::maIncreaseButton
private

Definition at line 51 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

Image ScZoomSlider::maSliderButton
private

Definition at line 50 of file tbzoomsliderctrl.hxx.

Referenced by DoPaint(), and ScZoomSlider().

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

Definition at line 48 of file tbzoomsliderctrl.hxx.

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

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

Definition at line 49 of file tbzoomsliderctrl.hxx.

Referenced by Offset2Zoom(), and UpdateFromItem().

bool ScZoomSlider::mbOmitPaint
private

Definition at line 53 of file tbzoomsliderctrl.hxx.

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

sal_uInt16 ScZoomSlider::mnCurrentZoom
private

Definition at line 45 of file tbzoomsliderctrl.hxx.

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

sal_uInt16 ScZoomSlider::mnMaxZoom
private

Definition at line 47 of file tbzoomsliderctrl.hxx.

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

sal_uInt16 ScZoomSlider::mnMinZoom
private

Definition at line 46 of file tbzoomsliderctrl.hxx.

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


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