LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
SvxRuler Class Reference

#include <ruler.hxx>

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

Public Member Functions

 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
 
- Public Member Functions inherited from Ruler
 Ruler (vcl::Window *pParent, WinBits nWinStyle=WB_STDRULER)
 
virtual ~Ruler () override
 
virtual void dispose () override
 
virtual void MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual void MouseMove (const MouseEvent &rMEvt) override
 
virtual void Tracking (const TrackingEvent &rTEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
virtual void StateChanged (StateChangedType nStateChange) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual bool StartDrag ()
 
virtual void Drag ()
 
virtual void EndDrag ()
 
virtual void Click ()
 
void DoubleClick ()
 
virtual void ExtraDown ()
 
void Activate () override
 
void Deactivate () override
 
void SetWinPos (tools::Long nOff, tools::Long nWidth=0)
 
tools::Long GetWinOffset () const
 
void SetPagePos (tools::Long nOff=0, tools::Long nWidth=0)
 
tools::Long GetPageOffset () const
 
void SetBorderPos (tools::Long nOff=0)
 
tools::Long GetBorderOffset () const
 
const tools::RectangleGetExtraRect () const
 
void SetUnit (FieldUnit eNewUnit)
 
FieldUnit GetUnit () const
 
void SetZoom (const Fraction &rNewZoom)
 
void SetExtraType (RulerExtra eNewExtraType, sal_uInt16 nStyle=0)
 
bool StartDocDrag (const MouseEvent &rMEvt, RulerType eDragType)
 
RulerType GetDragType () const
 
tools::Long GetDragPos () const
 
sal_uInt16 GetDragAryPos () const
 
RulerDragSize GetDragSize () const
 
bool IsDragDelete () const
 
bool IsDragCanceled () const
 
sal_uInt16 GetDragModifier () const
 
bool IsDrag () const
 
void CancelDrag ()
 
tools::Long GetClickPos () const
 
RulerType GetClickType () const
 
const RulerSelectionGetHoverSelection () const
 
RulerType GetRulerType (const Point &rPos, sal_uInt16 *pAryPos=nullptr)
 
void SetNullOffset (tools::Long nPos)
 
tools::Long GetNullOffset () const
 
void SetMargin1 ()
 
void SetMargin1 (tools::Long nPos, RulerMarginStyle nMarginStyle=RulerMarginStyle::Sizeable)
 
tools::Long GetMargin1 () const
 
void SetMargin2 ()
 
void SetMargin2 (tools::Long nPos, RulerMarginStyle nMarginStyle=RulerMarginStyle::Sizeable)
 
tools::Long GetMargin2 () const
 
void SetLeftFrameMargin (tools::Long nPos)
 
void SetRightFrameMargin (tools::Long nPos)
 
void SetLines (sal_uInt32 n=0, const RulerLine *pLineAry=nullptr)
 
void SetBorders (sal_uInt32 n=0, const RulerBorder *pBrdAry=nullptr)
 
void SetIndents (sal_uInt32 n=0, const RulerIndent *pIndentAry=nullptr)
 
void SetTabs (sal_uInt32 n=0, const RulerTab *pTabAry=nullptr)
 
const std::vector< RulerTab > & GetTabs () const
 
void SetStyle (WinBits nStyle)
 
WinBits GetStyle () const
 
void SetDoubleClickHdl (const Link< Ruler *, void > &rLink)
 
void SetTextRTL (bool bRTL)
 
bool GetTextRTL () const
 
void SetCharWidth (tools::Long nWidth)
 
void SetLineHeight (tools::Long nHeight)
 
void DrawTicks ()
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Protected Member Functions

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
 
- Protected Member Functions inherited from Ruler
tools::Long GetRulerVirHeight () const
 
const MapModeGetCurrentMapMode () const
 
const RulerUnitDataGetCurrentRulerUnit () const
 

Private Types

enum class  UpdateType {
  MoveLeft ,
  MoveRight
}
 

Private Member Functions

void StartListening_Impl ()
 
tools::Long GetCorrectedDragPos (bool bLeft=true, bool bRight=true)
 
void DrawLine_Impl (tools::Long &lTabPos, int, bool Horizontal)
 
sal_uInt16 GetObjectBordersOff (sal_uInt16 nIdx) const
 
void UpdateFrame (const SvxLongLRSpaceItem *pItem)
 
void UpdateFrame (const SvxLongULSpaceItem *pItem)
 
void UpdateFrameMinMax (const SfxRectangleItem *pItem)
 
void UpdatePara (const SvxLRSpaceItem *pItem)
 
void UpdateBorder (const SvxLRSpaceItem *pItem)
 
void Update (const SvxTabStopItem *pItem)
 
void Update (const SvxPagePosSizeItem *pItem)
 
void Update (const SvxColumnItem *pItem, sal_uInt16 nSID)
 
void Update (const SvxObjectItem *pItem)
 
void Update (const SvxProtectItem *pItem)
 
void UpdateTextRTL (const SfxBoolItem *pItem)
 
void UpdatePara ()
 
void UpdateTabs ()
 
void UpdatePage ()
 
void UpdateFrame ()
 
void UpdateColumns ()
 
void UpdateObject ()
 
tools::Long MakePositionSticky (tools::Long rValue, tools::Long aPointOfReference, bool aSnapToFrameMargin=true) const
 
tools::Long PixelHAdjust (tools::Long lPos, tools::Long lPos2) const
 
tools::Long PixelVAdjust (tools::Long lPos, tools::Long lPos2) const
 
tools::Long PixelAdjust (tools::Long lPos, tools::Long lPos2) const
 
tools::Long ConvertHPosPixel (tools::Long lPos) const
 
tools::Long ConvertVPosPixel (tools::Long lPos) const
 
tools::Long ConvertHSizePixel (tools::Long lSize) const
 
tools::Long ConvertVSizePixel (tools::Long lSize) const
 
tools::Long ConvertPosPixel (tools::Long lPos) const
 
tools::Long ConvertSizePixel (tools::Long lSize) const
 
tools::Long ConvertHPosLogic (tools::Long lPos) const
 
tools::Long ConvertVPosLogic (tools::Long lPos) const
 
tools::Long ConvertHSizeLogic (tools::Long lSize) const
 
tools::Long ConvertVSizeLogic (tools::Long lSize) const
 
tools::Long ConvertPosLogic (tools::Long lPos) const
 
tools::Long ConvertSizeLogic (tools::Long lSize) const
 
tools::Long RoundToCurrentMapMode (tools::Long lValue) const
 
tools::Long GetFirstLineIndent () const
 
tools::Long GetLeftIndent () const
 
tools::Long GetRightIndent () const
 
tools::Long GetLogicRightIndent () const
 
tools::Long GetLeftFrameMargin () const
 
tools::Long GetRightFrameMargin () const
 
void CalcMinMax ()
 
void EvalModifier ()
 
void DragMargin1 ()
 
void AdjustMargin1 (tools::Long lDiff)
 
void DragMargin2 ()
 
void DragIndents ()
 
void DragTabs ()
 
void DragBorders ()
 
void DragObjectBorder ()
 
void ApplyMargins ()
 
void ApplyIndents ()
 
void ApplyTabs ()
 
void ApplyBorders ()
 
void ApplyObject ()
 
tools::Long GetFrameLeft () const
 
tools::Long GetLeftMin () const
 
tools::Long GetRightMax () const
 
void TabMenuSelect (std::u16string_view rIdent)
 
void MenuSelect (std::u16string_view ident)
 
void PrepareProportional_Impl (RulerType)
 
void UpdateParaContents_Impl (tools::Long lDiff, UpdateType)
 

Private Attributes

std::vector< std::unique_ptr< SvxRulerItem > > pCtrlItems
 
std::unique_ptr< SvxLongLRSpaceItemmxLRSpaceItem
 
std::unique_ptr< SfxRectangleItemmxMinMaxItem
 
std::unique_ptr< SvxLongULSpaceItemmxULSpaceItem
 
std::unique_ptr< SvxTabStopItemmxTabStopItem
 
std::unique_ptr< SvxLRSpaceItemmxParaItem
 
std::unique_ptr< SvxLRSpaceItemmxBorderItem
 
std::unique_ptr< SvxPagePosSizeItemmxPagePosItem
 
std::unique_ptr< SvxColumnItemmxColumnItem
 
std::unique_ptr< SvxObjectItemmxObjectItem
 
VclPtr< vcl::WindowpEditWin
 
std::unique_ptr< SvxRuler_ImplmxRulerImpl
 
bool bAppSetNullOffset:1
 
bool bHorz:1
 
tools::Long lLogicNullOffset
 
tools::Long lAppNullOffset
 
tools::Long lInitialDragPos
 
SvxRulerSupportFlags nFlags
 
SvxRulerDragFlags nDragType
 
sal_uInt16 nDefTabType
 
sal_uInt16 nTabCount
 
sal_uInt16 nTabBufSize
 
tools::Long lDefTabDist
 
tools::Long lTabPos
 
std::vector< RulerTabmpTabs
 
std::vector< RulerIndentmpIndents
 
std::vector< RulerBordermpBorders
 
std::vector< RulerBordermpObjectBorders
 
SfxBindingspBindings
 
tools::Long nDragOffset
 
tools::Long nMaxLeft
 
tools::Long nMaxRight
 
bool bValid
 
bool bListening
 
bool bActive
 
bool mbCoarseSnapping
 
bool mbSnapping
 

Friends

class SvxRulerItem
 

Additional Inherited Members

- Static Public Member Functions inherited from Ruler
static void DrawTab (vcl::RenderContext &rRenderContext, const Color &rFillColor, const Point &rPos, sal_uInt16 nStyle)
 

Detailed Description

Definition at line 83 of file ruler.hxx.

Member Enumeration Documentation

◆ UpdateType

enum class SvxRuler::UpdateType
strongprivate
Enumerator
MoveLeft 
MoveRight 

Definition at line 225 of file ruler.hxx.

Constructor & Destructor Documentation

◆ SvxRuler()

SvxRuler::SvxRuler ( vcl::Window pParent,
vcl::Window pEditWin,
SvxRulerSupportFlags  nRulerFlags,
SfxBindings rBindings,
WinBits  nWinStyle 
)

◆ ~SvxRuler()

SvxRuler::~SvxRuler ( )
overridevirtual

Definition at line 280 of file svxruler.cxx.

Member Function Documentation

◆ AdjustMargin1()

void SvxRuler::AdjustMargin1 ( tools::Long  lDiff)
private

◆ ApplyBorders()

void SvxRuler::ApplyBorders ( )
private

◆ ApplyIndents()

void SvxRuler::ApplyIndents ( )
private

◆ ApplyMargins()

void SvxRuler::ApplyMargins ( )
private

◆ ApplyObject()

void SvxRuler::ApplyObject ( )
private

◆ ApplyTabs()

void SvxRuler::ApplyTabs ( )
private

◆ CalcMinMax()

void SvxRuler::CalcMinMax ( )
private

◆ CalcPropMaxRight()

tools::Long SvxRuler::CalcPropMaxRight ( sal_uInt16  nCol = USHRT_MAX) const
protected

◆ Click()

void SvxRuler::Click ( )
overrideprotectedvirtual

◆ Command()

void SvxRuler::Command ( const CommandEvent rCEvt)
overrideprotectedvirtual

◆ ConvertHPosLogic()

tools::Long SvxRuler::ConvertHPosLogic ( tools::Long  lPos) const
inlineprivate

Definition at line 371 of file svxruler.cxx.

References pEditWin.

Referenced by ApplyBorders(), ApplyMargins(), ApplyTabs(), Click(), and ConvertPosLogic().

◆ ConvertHPosPixel()

tools::Long SvxRuler::ConvertHPosPixel ( tools::Long  lPos) const
private

◆ ConvertHSizeLogic()

tools::Long SvxRuler::ConvertHSizeLogic ( tools::Long  lSize) const
inlineprivate

Definition at line 381 of file svxruler.cxx.

References pEditWin.

Referenced by ConvertSizeLogic(), and DrawLine_Impl().

◆ ConvertHSizePixel()

tools::Long SvxRuler::ConvertHSizePixel ( tools::Long  lSize) const
private

Definition at line 351 of file svxruler.cxx.

References pEditWin.

Referenced by ConvertSizePixel(), and PixelHAdjust().

◆ ConvertPosLogic()

tools::Long SvxRuler::ConvertPosLogic ( tools::Long  lPos) const
inlineprivate

Definition at line 391 of file svxruler.cxx.

References bHorz, ConvertHPosLogic(), and ConvertVPosLogic().

Referenced by ApplyBorders(), ApplyIndents(), and ApplyObject().

◆ ConvertPosPixel()

tools::Long SvxRuler::ConvertPosPixel ( tools::Long  lPos) const
private

Definition at line 361 of file svxruler.cxx.

References bHorz, ConvertHPosPixel(), and ConvertVPosPixel().

Referenced by CalcMinMax(), UpdateColumns(), and UpdateObject().

◆ ConvertSizeLogic()

tools::Long SvxRuler::ConvertSizeLogic ( tools::Long  lSize) const
inlineprivate

Definition at line 396 of file svxruler.cxx.

References bHorz, ConvertHSizeLogic(), and ConvertVSizeLogic().

Referenced by ApplyBorders().

◆ ConvertSizePixel()

tools::Long SvxRuler::ConvertSizePixel ( tools::Long  lSize) const
private

◆ ConvertVPosLogic()

tools::Long SvxRuler::ConvertVPosLogic ( tools::Long  lPos) const
inlineprivate

Definition at line 376 of file svxruler.cxx.

References pEditWin.

Referenced by ApplyMargins(), and ConvertPosLogic().

◆ ConvertVPosPixel()

tools::Long SvxRuler::ConvertVPosPixel ( tools::Long  lPos) const
private

Definition at line 346 of file svxruler.cxx.

References pEditWin.

Referenced by ConvertPosPixel(), and UpdateFrame().

◆ ConvertVSizeLogic()

tools::Long SvxRuler::ConvertVSizeLogic ( tools::Long  lSize) const
inlineprivate

Definition at line 386 of file svxruler.cxx.

References pEditWin.

Referenced by ConvertSizeLogic(), and DrawLine_Impl().

◆ ConvertVSizePixel()

tools::Long SvxRuler::ConvertVSizePixel ( tools::Long  lSize) const
private

Definition at line 356 of file svxruler.cxx.

References pEditWin.

Referenced by ConvertSizePixel(), and PixelVAdjust().

◆ dispose()

void SvxRuler::dispose ( void  )
overridevirtual

◆ Drag()

void SvxRuler::Drag ( )
overrideprotectedvirtual

◆ DragBorders()

void SvxRuler::DragBorders ( )
private

◆ DragIndents()

void SvxRuler::DragIndents ( )
private

◆ DragMargin1()

void SvxRuler::DragMargin1 ( )
private

◆ DragMargin2()

void SvxRuler::DragMargin2 ( )
private

◆ DragObjectBorder()

void SvxRuler::DragObjectBorder ( )
private

◆ DragTabs()

void SvxRuler::DragTabs ( )
private

◆ DrawLine_Impl()

void SvxRuler::DrawLine_Impl ( tools::Long lTabPos,
int  nNew,
bool  Horizontal 
)
private

◆ EndDrag()

void SvxRuler::EndDrag ( )
overrideprotectedvirtual

◆ EvalModifier()

void SvxRuler::EvalModifier ( )
private

◆ ExtraDown()

void SvxRuler::ExtraDown ( )
overrideprotectedvirtual

◆ ForceUpdate()

void SvxRuler::ForceUpdate ( )
inline

Definition at line 273 of file ruler.hxx.

References Update.

◆ GetActLeftColumn()

sal_uInt16 SvxRuler::GetActLeftColumn ( bool  bForceDontConsiderHidden = false,
sal_uInt16  nAct = USHRT_MAX 
) const
protected

Definition at line 3408 of file svxruler.cxx.

References mxColumnItem, nDragType, and OBJECT_ACTLINE_ONLY.

Referenced by ApplyIndents(), CalcMinMax(), DragBorders(), and IsActFirstColumn().

◆ GetActRightColumn()

sal_uInt16 SvxRuler::GetActRightColumn ( bool  bForceDontConsiderHidden = false,
sal_uInt16  nAct = USHRT_MAX 
) const
protected

◆ GetCorrectedDragPos()

tools::Long SvxRuler::GetCorrectedDragPos ( bool  bLeft = true,
bool  bRight = true 
)
private

◆ GetFirstLineIndent()

tools::Long SvxRuler::GetFirstLineIndent ( ) const
private

Definition at line 1178 of file svxruler.cxx.

References Ruler::GetMargin1(), INDENT_FIRST_LINE, mpIndents, and mxParaItem.

Referenced by CalcMinMax(), and Click().

◆ GetFrameLeft()

tools::Long SvxRuler::GetFrameLeft ( ) const
inlineprivate

◆ GetLeftFrameMargin()

tools::Long SvxRuler::GetLeftFrameMargin ( ) const
private

◆ GetLeftIndent()

tools::Long SvxRuler::GetLeftIndent ( ) const
private

Definition at line 1184 of file svxruler.cxx.

References Ruler::GetMargin1(), INDENT_LEFT_MARGIN, mpIndents, and mxParaItem.

Referenced by ApplyTabs(), CalcMinMax(), and Click().

◆ GetLeftMin()

tools::Long SvxRuler::GetLeftMin ( ) const
inlineprivate

Definition at line 1223 of file svxruler.cxx.

References bHorz, DBG_ASSERT, and mxMinMaxItem.

Referenced by CalcMinMax().

◆ GetLogicRightIndent()

tools::Long SvxRuler::GetLogicRightIndent ( ) const
private

Definition at line 1196 of file svxruler.cxx.

References GetRightFrameMargin(), and mxParaItem.

Referenced by CalcMinMax().

◆ GetObjectBordersOff()

sal_uInt16 SvxRuler::GetObjectBordersOff ( sal_uInt16  nIdx) const
inlineprivate

Definition at line 425 of file svxruler.cxx.

References bHorz.

Referenced by AdjustMargin1(), DragObjectBorder(), and UpdateObject().

◆ GetPageWidth()

tools::Long SvxRuler::GetPageWidth ( ) const

Definition at line 1163 of file svxruler.cxx.

References bHorz, and mxPagePosItem.

Referenced by ApplyMargins(), and CalcMinMax().

◆ GetRightFrameMargin()

tools::Long SvxRuler::GetRightFrameMargin ( ) const
private

◆ GetRightIndent()

tools::Long SvxRuler::GetRightIndent ( ) const
private

Definition at line 1190 of file svxruler.cxx.

References Ruler::GetMargin2(), INDENT_RIGHT_MARGIN, mpIndents, and mxParaItem.

Referenced by CalcMinMax(), and Click().

◆ GetRightMax()

tools::Long SvxRuler::GetRightMax ( ) const
inlineprivate

Definition at line 1236 of file svxruler.cxx.

References bHorz, DBG_ASSERT, and mxMinMaxItem.

Referenced by CalcMinMax().

◆ IsActFirstColumn()

bool SvxRuler::IsActFirstColumn ( bool  bForceDontConsiderHidden = false,
sal_uInt16  nAct = USHRT_MAX 
) const
protected

Definition at line 3437 of file svxruler.cxx.

References GetActLeftColumn().

Referenced by AdjustMargin1(), and ApplyIndents().

◆ IsActLastColumn()

bool SvxRuler::IsActLastColumn ( bool  bForceDontConsiderHidden = false,
sal_uInt16  nAct = USHRT_MAX 
) const
protected

Definition at line 3430 of file svxruler.cxx.

References GetActRightColumn().

Referenced by ApplyIndents(), CalcMinMax(), DragMargin2(), and GetRightFrameMargin().

◆ MakePositionSticky()

tools::Long SvxRuler::MakePositionSticky ( tools::Long  rValue,
tools::Long  aPointOfReference,
bool  aSnapToFrameMargin = true 
) const
private

◆ MenuSelect()

void SvxRuler::MenuSelect ( std::u16string_view  ident)
private

Definition at line 3270 of file svxruler.cxx.

References vcl::EnglishStringToMetric(), and Ruler::SetUnit().

Referenced by Command().

◆ MouseMove()

void SvxRuler::MouseMove ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ Notify()

void SvxRuler::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual

Reimplemented from SfxListener.

Definition at line 3253 of file svxruler.cxx.

References bActive, bListening, bValid, SfxListener::EndListening(), SfxHint::GetId(), pBindings, and Update().

◆ PixelAdjust()

tools::Long SvxRuler::PixelAdjust ( tools::Long  lPos,
tools::Long  lPos2 
) const
private

Definition at line 417 of file svxruler.cxx.

References ConvertSizePixel().

Referenced by ApplyObject().

◆ PixelHAdjust()

tools::Long SvxRuler::PixelHAdjust ( tools::Long  lPos,
tools::Long  lPos2 
) const
private

Definition at line 401 of file svxruler.cxx.

References ConvertHSizePixel().

Referenced by ApplyBorders(), ApplyMargins(), and ApplyTabs().

◆ PixelVAdjust()

tools::Long SvxRuler::PixelVAdjust ( tools::Long  lPos,
tools::Long  lPos2 
) const
private

Definition at line 409 of file svxruler.cxx.

References ConvertVSizePixel().

Referenced by ApplyMargins().

◆ PrepareProportional_Impl()

void SvxRuler::PrepareProportional_Impl ( RulerType  eType)
private

◆ RoundToCurrentMapMode()

tools::Long SvxRuler::RoundToCurrentMapMode ( tools::Long  lValue) const
private

◆ SetActive()

void SvxRuler::SetActive ( bool  bOn = true)

◆ SetDefTabDist()

void SvxRuler::SetDefTabDist ( tools::Long  inDefTabDist)

Definition at line 966 of file svxruler.cxx.

References lAppNullOffset, lDefTabDist, LONG_MAX, UpdateFrame(), and UpdateTabs().

◆ SetNullOffsetLogic()

void SvxRuler::SetNullOffsetLogic ( tools::Long  lOff)

◆ SetTabsRelativeToIndent()

void SvxRuler::SetTabsRelativeToIndent ( bool  bRel)

Definition at line 3564 of file svxruler.cxx.

References mxRulerImpl.

◆ SetValues()

void SvxRuler::SetValues ( RulerChangeType  type,
tools::Long  value 
)

◆ StartDrag()

bool SvxRuler::StartDrag ( )
overrideprotectedvirtual

◆ StartListening_Impl()

void SvxRuler::StartListening_Impl ( )
private

◆ TabMenuSelect()

void SvxRuler::TabMenuSelect ( std::u16string_view  rIdent)
private

◆ Update() [1/6]

void SvxRuler::Update ( )
protectedvirtual

◆ Update() [2/6]

void SvxRuler::Update ( const SvxColumnItem pItem,
sal_uInt16  nSID 
)
private

◆ Update() [3/6]

void SvxRuler::Update ( const SvxObjectItem pItem)
private

Definition at line 1122 of file svxruler.cxx.

References bActive, mxObjectItem, and StartListening_Impl().

◆ Update() [4/6]

void SvxRuler::Update ( const SvxPagePosSizeItem pItem)
private

Definition at line 953 of file svxruler.cxx.

References bActive, mxPagePosItem, and StartListening_Impl().

◆ Update() [5/6]

void SvxRuler::Update ( const SvxProtectItem pItem)
private

Definition at line 681 of file svxruler.cxx.

References SvxProtectItem::Clone(), and mxRulerImpl.

◆ Update() [6/6]

void SvxRuler::Update ( const SvxTabStopItem pItem)
private

◆ UpdateBorder()

void SvxRuler::UpdateBorder ( const SvxLRSpaceItem pItem)
private

Definition at line 884 of file svxruler.cxx.

References bActive, mxBorderItem, and StartListening_Impl().

Referenced by SvxRulerItem::StateChangedAtToolBoxControl().

◆ UpdateColumns()

void SvxRuler::UpdateColumns ( )
private

◆ UpdateFrame() [1/3]

void SvxRuler::UpdateFrame ( )
private

◆ UpdateFrame() [2/3]

void SvxRuler::UpdateFrame ( const SvxLongLRSpaceItem pItem)
private

Definition at line 642 of file svxruler.cxx.

References bActive, mxLRSpaceItem, and StartListening_Impl().

Referenced by SvxRulerItem::StateChangedAtToolBoxControl().

◆ UpdateFrame() [3/3]

void SvxRuler::UpdateFrame ( const SvxLongULSpaceItem pItem)
private

Definition at line 668 of file svxruler.cxx.

References bActive, bHorz, mxULSpaceItem, and StartListening_Impl().

◆ UpdateFrameMinMax()

void SvxRuler::UpdateFrameMinMax ( const SfxRectangleItem pItem)
private

Definition at line 655 of file svxruler.cxx.

References bActive, and mxMinMaxItem.

Referenced by SvxRulerItem::StateChangedAtToolBoxControl().

◆ UpdateObject()

void SvxRuler::UpdateObject ( )
private

◆ UpdatePage()

void SvxRuler::UpdatePage ( )
private

◆ UpdatePara() [1/2]

void SvxRuler::UpdatePara ( )
private

◆ UpdatePara() [2/2]

void SvxRuler::UpdatePara ( const SvxLRSpaceItem pItem)
private

Definition at line 871 of file svxruler.cxx.

References bActive, mxParaItem, and StartListening_Impl().

Referenced by SvxRulerItem::StateChangedAtToolBoxControl().

◆ UpdateParaContents_Impl()

void SvxRuler::UpdateParaContents_Impl ( tools::Long  lDiff,
UpdateType  eType 
)
private

◆ UpdateTabs()

void SvxRuler::UpdateTabs ( )
private

◆ UpdateTextRTL()

void SvxRuler::UpdateTextRTL ( const SfxBoolItem pItem)
private

Friends And Related Function Documentation

◆ SvxRulerItem

friend class SvxRulerItem
friend

Definition at line 85 of file ruler.hxx.

Referenced by SvxRuler().

Member Data Documentation

◆ bActive

bool SvxRuler::bActive
private

◆ bAppSetNullOffset

bool SvxRuler::bAppSetNullOffset
private

◆ bHorz

bool SvxRuler::bHorz
private

◆ bListening

bool SvxRuler::bListening
private

Definition at line 126 of file ruler.hxx.

Referenced by dispose(), Notify(), and StartListening_Impl().

◆ bValid

bool SvxRuler::bValid
private

Definition at line 125 of file ruler.hxx.

Referenced by Notify(), StartDrag(), and StartListening_Impl().

◆ lAppNullOffset

tools::Long SvxRuler::lAppNullOffset
private

◆ lDefTabDist

tools::Long SvxRuler::lDefTabDist
private

Definition at line 113 of file ruler.hxx.

Referenced by SetDefTabDist(), and UpdateTabs().

◆ lInitialDragPos

tools::Long SvxRuler::lInitialDragPos
private

Definition at line 107 of file ruler.hxx.

Referenced by EndDrag(), and StartDrag().

◆ lLogicNullOffset

tools::Long SvxRuler::lLogicNullOffset
private

◆ lTabPos

tools::Long SvxRuler::lTabPos
private

◆ mbCoarseSnapping

bool SvxRuler::mbCoarseSnapping
private

Definition at line 129 of file ruler.hxx.

Referenced by EndDrag(), EvalModifier(), and MakePositionSticky().

◆ mbSnapping

bool SvxRuler::mbSnapping
private

Definition at line 130 of file ruler.hxx.

Referenced by ApplyIndents(), EndDrag(), EvalModifier(), and MakePositionSticky().

◆ mpBorders

std::vector<RulerBorder> SvxRuler::mpBorders
private

◆ mpIndents

std::vector<RulerIndent> SvxRuler::mpIndents
private

◆ mpObjectBorders

std::vector<RulerBorder> SvxRuler::mpObjectBorders
private

Definition at line 119 of file ruler.hxx.

Referenced by AdjustMargin1(), ApplyObject(), DragObjectBorder(), SvxRuler(), and UpdateObject().

◆ mpTabs

std::vector<RulerTab> SvxRuler::mpTabs
private

◆ mxBorderItem

std::unique_ptr<SvxLRSpaceItem> SvxRuler::mxBorderItem
private

Definition at line 94 of file ruler.hxx.

Referenced by GetLeftFrameMargin(), GetRightFrameMargin(), and UpdateBorder().

◆ mxColumnItem

std::unique_ptr<SvxColumnItem> SvxRuler::mxColumnItem
private

◆ mxLRSpaceItem

std::unique_ptr<SvxLongLRSpaceItem> SvxRuler::mxLRSpaceItem
private

◆ mxMinMaxItem

std::unique_ptr<SfxRectangleItem> SvxRuler::mxMinMaxItem
private

Definition at line 90 of file ruler.hxx.

Referenced by CalcMinMax(), GetLeftMin(), GetRightMax(), and UpdateFrameMinMax().

◆ mxObjectItem

std::unique_ptr<SvxObjectItem> SvxRuler::mxObjectItem
private

◆ mxPagePosItem

std::unique_ptr<SvxPagePosSizeItem> SvxRuler::mxPagePosItem
private

◆ mxParaItem

std::unique_ptr<SvxLRSpaceItem> SvxRuler::mxParaItem
private

◆ mxRulerImpl

std::unique_ptr<SvxRuler_Impl> SvxRuler::mxRulerImpl
private

◆ mxTabStopItem

std::unique_ptr<SvxTabStopItem> SvxRuler::mxTabStopItem
private

◆ mxULSpaceItem

std::unique_ptr<SvxLongULSpaceItem> SvxRuler::mxULSpaceItem
private

◆ nDefTabType

sal_uInt16 SvxRuler::nDefTabType
private

Definition at line 110 of file ruler.hxx.

Referenced by Click(), ExtraDown(), and SvxRuler().

◆ nDragOffset

tools::Long SvxRuler::nDragOffset
private

Definition at line 122 of file ruler.hxx.

Referenced by CalcMinMax(), DragBorders(), and StartDrag().

◆ nDragType

SvxRulerDragFlags SvxRuler::nDragType
private

◆ nFlags

SvxRulerSupportFlags SvxRuler::nFlags
private

Definition at line 108 of file ruler.hxx.

Referenced by Click(), Command(), ExtraDown(), SvxRuler(), and Update().

◆ nMaxLeft

tools::Long SvxRuler::nMaxLeft
private

Definition at line 123 of file ruler.hxx.

Referenced by ApplyMargins(), CalcMinMax(), and GetCorrectedDragPos().

◆ nMaxRight

tools::Long SvxRuler::nMaxRight
private

Definition at line 124 of file ruler.hxx.

Referenced by ApplyMargins(), ApplyTabs(), CalcMinMax(), DragTabs(), and GetCorrectedDragPos().

◆ nTabBufSize

sal_uInt16 SvxRuler::nTabBufSize
private

Definition at line 112 of file ruler.hxx.

Referenced by UpdateTabs().

◆ nTabCount

sal_uInt16 SvxRuler::nTabCount
private

◆ pBindings

SfxBindings* SvxRuler::pBindings
private

◆ pCtrlItems

std::vector<std::unique_ptr<SvxRulerItem> > SvxRuler::pCtrlItems
private

Definition at line 87 of file ruler.hxx.

Referenced by dispose(), EndDrag(), SetActive(), and SvxRuler().

◆ pEditWin

VclPtr<vcl::Window> SvxRuler::pEditWin
private

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