LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::Ruler Class Referencefinal

#include <Ruler.hxx>

Inheritance diagram for sd::Ruler:
[legend]
Collaboration diagram for sd::Ruler:
[legend]

Public Member Functions

 Ruler (DrawViewShell &rViewSh, vcl::Window *pParent, ::sd::Window *pWin, SvxRulerSupportFlags nRulerFlags, SfxBindings &rBindings, WinBits nWinStyle)
 
virtual ~Ruler () override
 
virtual void dispose () override
 
void SetNullOffset (const Point &rOffset)
 
bool IsHorizontal () const
 
- Public Member Functions inherited from SvxRuler
 SvxRuler (vcl::Window *pParent, vcl::Window *pEditWin, SvxRulerSupportFlags nRulerFlags, SfxBindings &rBindings, WinBits nWinStyle)
 
virtual ~SvxRuler () override
 
virtual void dispose () override
 
void SetDefTabDist (tools::Long)
 
void SetNullOffsetLogic (tools::Long lOff)
 
void SetActive (bool bOn=true)
 
void ForceUpdate ()
 
void SetTabsRelativeToIndent (bool bRel)
 
void SetValues (RulerChangeType type, tools::Long value)
 
tools::Long GetPageWidth () const
 

Private Member Functions

virtual void MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual void Command (const CommandEvent &rCEvt) override
 
virtual void ExtraDown () override
 

Private Attributes

DrawViewShellpDrViewShell
 
std::unique_ptr< RulerCtrlItempCtrlItem
 
bool bHorz
 

Additional Inherited Members

- Protected Member Functions inherited from SvxRuler
virtual void Command (const CommandEvent &rCEvt) override
 
virtual void Click () override
 
virtual bool StartDrag () override
 
virtual void Drag () override
 
virtual void EndDrag () override
 
virtual void ExtraDown () override
 
virtual void MouseMove (const MouseEvent &rMEvt) override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void Update ()
 
bool IsActLastColumn (bool bForceDontConsiderHidden=false, sal_uInt16 nAct=USHRT_MAX) const
 
bool IsActFirstColumn (bool bForceDontConsiderHidden=false, sal_uInt16 nAct=USHRT_MAX) const
 
sal_uInt16 GetActLeftColumn (bool bForceDontConsiderHidden=false, sal_uInt16 nAct=USHRT_MAX) const
 
sal_uInt16 GetActRightColumn (bool bForceDontConsiderHidden=false, sal_uInt16 nAct=USHRT_MAX) const
 
tools::Long CalcPropMaxRight (sal_uInt16 nCol=USHRT_MAX) const
 

Detailed Description

Definition at line 30 of file Ruler.hxx.

Constructor & Destructor Documentation

◆ Ruler()

Ruler::Ruler ( DrawViewShell rViewSh,
vcl::Window pParent,
::sd::Window pWin,
SvxRulerSupportFlags  nRulerFlags,
SfxBindings rBindings,
WinBits  nWinStyle 
)

◆ ~Ruler()

Ruler::~Ruler ( )
overridevirtual

Definition at line 92 of file sdruler.cxx.

Member Function Documentation

◆ Command()

void Ruler::Command ( const CommandEvent rCEvt)
overrideprivatevirtual

◆ dispose()

void Ruler::dispose ( void  )
overridevirtual

◆ ExtraDown()

void Ruler::ExtraDown ( )
overrideprivatevirtual

Reimplemented from SvxRuler.

Definition at line 140 of file sdruler.cxx.

References SvxRuler::ExtraDown(), sd::ViewShell::GetView(), SdrObjEditView::IsTextEdit(), and pDrViewShell.

◆ IsHorizontal()

bool sd::Ruler::IsHorizontal ( ) const
inline

Definition at line 46 of file Ruler.hxx.

References bHorz.

Referenced by sd::DrawViewShell::StartRulerDrag().

◆ MouseButtonDown()

void Ruler::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ SetNullOffset()

void Ruler::SetNullOffset ( const Point rOffset)

Member Data Documentation

◆ bHorz

bool sd::Ruler::bHorz
private

Definition at line 53 of file Ruler.hxx.

Referenced by IsHorizontal(), Ruler(), and SetNullOffset().

◆ pCtrlItem

std::unique_ptr<RulerCtrlItem> sd::Ruler::pCtrlItem
private

Definition at line 52 of file Ruler.hxx.

Referenced by dispose(), and Ruler().

◆ pDrViewShell

DrawViewShell* sd::Ruler::pDrViewShell
private

Definition at line 51 of file Ruler.hxx.

Referenced by Command(), ExtraDown(), and MouseButtonDown().


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