LibreOffice Module svx (master) 1
|
#include <ruler.hxx>
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::Rectangle & | GetExtraRect () 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 RulerSelection & | GetHoverSelection () 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 |
SfxBroadcaster * | GetBroadcasterJOE (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 MapMode & | GetCurrentMapMode () const |
const RulerUnitData & | GetCurrentRulerUnit () const |
Private Types | |
enum class | UpdateType { MoveLeft , MoveRight } |
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) |
|
strongprivate |
SvxRuler::SvxRuler | ( | vcl::Window * | pParent, |
vcl::Window * | pEditWin, | ||
SvxRulerSupportFlags | nRulerFlags, | ||
SfxBindings & | rBindings, | ||
WinBits | nWinStyle | ||
) |
Definition at line 159 of file svxruler.cxx.
References bHorz, BORDERS, RulerTabData::DPIScaleFactor, SfxBindings::EnterRegistrations(), vcl::Window::GetDPIScaleFactor(), RulerTabData::height, i, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, SfxBindings::LeaveRegistrations(), LONG_MAX, mpIndents, mpObjectBorders, mxRulerImpl, nBorder, nDefTabType, nFlags, NONE, OBJECT, OBJECT_BORDER_COUNT, PARAGRAPH_MARGINS, PARAGRAPH_MARGINS_VERTICAL, pCtrlItems, RULER_TAB_LEFT, ruler_tab_svx, SET_NULLOFFSET, Ruler::SetExtraType(), SvxRulerItem, TABS, WB_VSCROLL, and RulerTabData::width.
|
overridevirtual |
Definition at line 280 of file svxruler.cxx.
|
private |
Definition at line 1334 of file svxruler.cxx.
References bAppSetNullOffset, Ruler::GetMargin1(), Ruler::GetMargin2(), Ruler::GetNullOffset(), GetObjectBordersOff(), i, INDENT_COUNT, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, IsActFirstColumn(), ModifyTabs_Impl(), mpBorders, mpIndents, mpObjectBorders, mpTabs, mxColumnItem, mxObjectItem, mxParaItem, mxRulerImpl, mxTabStopItem, nDragType, nPos, nTabCount, OBJECT_SIZE_LINEAR, OBJECT_SIZE_PROPORTIONAL, Ruler::SetBorders(), Ruler::SetIndents(), Ruler::SetMargin1(), Ruler::SetMargin2(), Ruler::SetNullOffset(), Ruler::SetTabs(), and TAB_GAP.
Referenced by DragBorders(), DragMargin1(), and SetValues().
|
private |
Definition at line 2192 of file svxruler.cxx.
References bHorz, ConvertHPosLogic(), ConvertPosLogic(), ConvertSizeLogic(), SfxDispatcher::ExecuteList(), SfxBindings::GetDispatcher(), GetFrameLeft(), Ruler::GetMargin2(), i, lAppNullOffset, mpBorders, mxColumnItem, mxPagePosItem, mxRulerImpl, nDragType, nPos, OBJECT_ACTLINE_ONLY, pBindings, pEditWin, and PixelHAdjust().
Referenced by EndDrag().
|
private |
Definition at line 2006 of file svxruler.cxx.
References bHorz, ConvertPosLogic(), SfxDispatcher::ExecuteList(), GetActLeftColumn(), GetActRightColumn(), SfxBindings::GetDispatcher(), GetLeftFrameMargin(), Ruler::GetMargin1(), Ruler::GetMargin2(), INDENT_FIRST_LINE, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, IsActFirstColumn(), IsActLastColumn(), lAppNullOffset, mbSnapping, mpBorders, mpIndents, mxColumnItem, mxParaItem, mxRulerImpl, nLeftMargin, nPos, nRightMargin, pBindings, RoundToCurrentMapMode(), and UpdateTabs().
Referenced by EndDrag().
|
private |
Definition at line 1917 of file svxruler.cxx.
References bAppSetNullOffset, bHorz, ConvertHPosLogic(), ConvertVPosLogic(), SfxDispatcher::ExecuteList(), SfxBindings::GetDispatcher(), GetFrameLeft(), Ruler::GetMargin1(), Ruler::GetMargin2(), Ruler::GetNullOffset(), GetPageWidth(), lAppNullOffset, lLogicNullOffset, mxLRSpaceItem, mxPagePosItem, mxRulerImpl, mxTabStopItem, mxULSpaceItem, nId, nMaxLeft, nMaxRight, pBindings, pEditWin, PixelHAdjust(), PixelVAdjust(), and UpdateTabs().
Referenced by EndDrag(), and SetValues().
|
private |
Definition at line 2254 of file svxruler.cxx.
References ConvertPosLogic(), SfxDispatcher::ExecuteList(), SfxBindings::GetDispatcher(), lAppNullOffset, mpObjectBorders, mxLRSpaceItem, mxObjectItem, mxULSpaceItem, nPos, pBindings, and PixelAdjust().
Referenced by EndDrag().
|
private |
Definition at line 2102 of file svxruler.cxx.
References bHorz, ConvertHPosLogic(), ConvertHPosPixel(), SvxTabStopItem::Count(), SfxDispatcher::ExecuteList(), SfxBindings::GetDispatcher(), Ruler::GetDragAryPos(), GetLeftFrameMargin(), GetLeftIndent(), Ruler::GetNullOffset(), GetRightFrameMargin(), SvxTabStop::GetTabPos(), i, SvxTabStopItem::Insert(), Ruler::IsDragDelete(), lAppNullOffset, lLogicNullOffset, mpTabs, mxParaItem, mxRulerImpl, mxTabStopItem, nDragType, nMaxRight, nPos, OBJECT_SIZE_LINEAR, OBJECT_SIZE_PROPORTIONAL, pBindings, PixelHAdjust(), SvxTabStopItem::Remove(), TAB_GAP, and UpdateTabs().
Referenced by EndDrag().
|
private |
Definition at line 2524 of file svxruler.cxx.
References bHorz, CalcPropMaxRight(), ConvertPosPixel(), ConvertSizePixel(), GetActLeftColumn(), GetActRightColumn(), Ruler::GetDragAryPos(), Ruler::GetDragSize(), Ruler::GetDragType(), GetFirstLineIndent(), GetLeftIndent(), GetLeftMin(), GetLogicRightIndent(), Ruler::GetMargin1(), Ruler::GetMargin2(), GetPageWidth(), GetRightIndent(), GetRightMax(), glMinFrame, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, IsActLastColumn(), lLogicNullOffset, LONG_MAX, mpBorders, mxColumnItem, mxLRSpaceItem, mxMinMaxItem, mxRulerImpl, nBorder, nDragOffset, nDragType, nMaxLeft, nMaxRight, nPos, OBJECT_ACTLINE_ONLY, OBJECT_LEFT_INDENT_ONLY, OBJECT_SIZE_LINEAR, and OBJECT_SIZE_PROPORTIONAL.
Referenced by StartDrag().
|
protected |
Definition at line 3444 of file svxruler.cxx.
References bVisible, GetActRightColumn(), Ruler::GetMargin1(), Ruler::GetMargin2(), glMinFrame, i, mpBorders, mxColumnItem, nDragType, nVisCols, and OBJECT_SIZE_LINEAR.
Referenced by CalcMinMax().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 2474 of file svxruler.cxx.
References bActive, bHorz, Ruler::Click(), ConvertHPosLogic(), ConvertHPosPixel(), Ruler::GetClickPos(), GetFirstLineIndent(), GetLeftFrameMargin(), GetLeftIndent(), GetRightFrameMargin(), GetRightIndent(), lAppNullOffset, mxRulerImpl, mxTabStopItem, nDefTabType, nFlags, pBindings, TABS, ToAttrTab_Impl(), SfxBindings::Update(), and UpdateTabs().
|
overrideprotectedvirtual |
Definition at line 3306 of file svxruler.cxx.
References bHorz, Ruler::CancelDrag(), weld::Widget::create_virtual_device(), Application::CreateBuilder(), Ruler::DrawTab(), vcl::EnglishStringToMetric(), VclPtr< class reference_type >::get(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), weld::GetPopupParent(), Ruler::GetRulerType(), Ruler::GetUnit(), RulerTabData::height, Size::Height(), i, MenuSelect(), mpTabs, mxRulerImpl, nCount, nFlags, REDUCED_METRIC, RID_SVXSTR_RULER_TAB, RULER_TAB_DEFAULT, RULER_TAB_LEFT, RULER_TAB_RTL, ruler_tab_svx, sId, SvxResId(), TAB_GAP, TabMenuSelect(), TRISTATE_TRUE, WB_HORZ, WB_VERT, RulerTabData::width, and Size::Width().
|
inlineprivate |
Definition at line 371 of file svxruler.cxx.
References pEditWin.
Referenced by ApplyBorders(), ApplyMargins(), ApplyTabs(), Click(), and ConvertPosLogic().
|
private |
Definition at line 341 of file svxruler.cxx.
References pEditWin.
Referenced by ApplyTabs(), Click(), ConvertPosPixel(), MakePositionSticky(), UpdateFrame(), UpdatePara(), and UpdateTabs().
|
inlineprivate |
Definition at line 381 of file svxruler.cxx.
References pEditWin.
Referenced by ConvertSizeLogic(), and DrawLine_Impl().
|
private |
Definition at line 351 of file svxruler.cxx.
References pEditWin.
Referenced by ConvertSizePixel(), and PixelHAdjust().
|
inlineprivate |
Definition at line 391 of file svxruler.cxx.
References bHorz, ConvertHPosLogic(), and ConvertVPosLogic().
Referenced by ApplyBorders(), ApplyIndents(), and ApplyObject().
|
private |
Definition at line 361 of file svxruler.cxx.
References bHorz, ConvertHPosPixel(), and ConvertVPosPixel().
Referenced by CalcMinMax(), UpdateColumns(), and UpdateObject().
|
inlineprivate |
Definition at line 396 of file svxruler.cxx.
References bHorz, ConvertHSizeLogic(), and ConvertVSizeLogic().
Referenced by ApplyBorders().
|
private |
Definition at line 366 of file svxruler.cxx.
References bHorz, ConvertHSizePixel(), and ConvertVSizePixel().
Referenced by CalcMinMax(), GetFrameLeft(), PixelAdjust(), SetNullOffsetLogic(), UpdateColumns(), UpdateFrame(), UpdatePage(), and UpdateTabs().
|
inlineprivate |
Definition at line 376 of file svxruler.cxx.
References pEditWin.
Referenced by ApplyMargins(), and ConvertPosLogic().
|
private |
Definition at line 346 of file svxruler.cxx.
References pEditWin.
Referenced by ConvertPosPixel(), and UpdateFrame().
|
inlineprivate |
Definition at line 386 of file svxruler.cxx.
References pEditWin.
Referenced by ConvertSizeLogic(), and DrawLine_Impl().
|
private |
Definition at line 356 of file svxruler.cxx.
References pEditWin.
Referenced by ConvertSizePixel(), and PixelVAdjust().
|
overridevirtual |
Reimplemented from Ruler.
Definition at line 285 of file svxruler.cxx.
References bListening, VclPtr< class reference_type >::clear(), Ruler::dispose(), SfxListener::EndListening(), SfxBindings::EnterRegistrations(), SfxBindings::LeaveRegistrations(), pBindings, pCtrlItems, and pEditWin.
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3127 of file svxruler.cxx.
References Ruler::Drag(), DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), Ruler::GetDragType(), Ruler::GetMargin1(), Ruler::GetMargin2(), Ruler::IsDragCanceled(), mxColumnItem, mxObjectItem, and mxRulerImpl.
|
private |
Definition at line 1683 of file svxruler.cxx.
References AdjustMargin1(), bHorz, DrawLine_Impl(), GetActLeftColumn(), GetActRightColumn(), GetCorrectedDragPos(), Ruler::GetDragAryPos(), Ruler::GetDragSize(), Ruler::GetDragType(), GetLeftFrameMargin(), Ruler::GetMargin2(), glMinFrame, i, lTabPos, MakePositionSticky(), MoveLeft, MoveRight, mpBorders, mpIndents, mxColumnItem, mxRulerImpl, nDragOffset, nDragType, nIndex, nPos, OBJECT_SIZE_LINEAR, OBJECT_SIZE_PROPORTIONAL, Ruler::SetBorders(), Ruler::SetMargin2(), and UpdateParaContents_Impl().
Referenced by Drag(), DragMargin1(), and DragMargin2().
|
private |
Definition at line 1489 of file svxruler.cxx.
References bHorz, DrawLine_Impl(), GetCorrectedDragPos(), Ruler::GetDragAryPos(), Ruler::GetDragPos(), GetLeftFrameMargin(), GetRightFrameMargin(), INDENT_COUNT, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, lTabPos, MakePositionSticky(), mpIndents, mxRulerImpl, nDragType, NEG_FLAG, nIndex, OBJECT_LEFT_INDENT_ONLY, and Ruler::SetIndents().
Referenced by Drag().
|
private |
Definition at line 1317 of file svxruler.cxx.
References AdjustMargin1(), bHorz, DragBorders(), DrawLine_Impl(), GetCorrectedDragPos(), GetRightFrameMargin(), lTabPos, MakePositionSticky(), mxColumnItem, nDragType, NEG_FLAG, OBJECT_SIZE_PROPORTIONAL, and TAB_FLAG.
Referenced by Drag().
|
private |
Definition at line 1452 of file svxruler.cxx.
References bHorz, DragBorders(), DrawLine_Impl(), GetCorrectedDragPos(), GetLeftFrameMargin(), Ruler::GetMargin2(), INDENT_COUNT, INDENT_FIRST_LINE, INDENT_GAP, IsActLastColumn(), lTabPos, MakePositionSticky(), mpIndents, mxColumnItem, mxParaItem, mxRulerImpl, nDragType, NEG_FLAG, OBJECT_SIZE_PROPORTIONAL, Ruler::SetIndents(), Ruler::SetMargin2(), and TAB_FLAG.
Referenced by Drag().
|
private |
Definition at line 1902 of file svxruler.cxx.
References bHorz, DrawLine_Impl(), GetCorrectedDragPos(), Ruler::GetDragAryPos(), Ruler::GetDragSize(), GetLeftFrameMargin(), GetObjectBordersOff(), lTabPos, MakePositionSticky(), mpObjectBorders, and Ruler::SetBorders().
Referenced by Drag().
|
private |
Definition at line 1577 of file svxruler.cxx.
References bHorz, DrawLine_Impl(), GetCorrectedDragPos(), Ruler::GetDragAryPos(), GetLeftFrameMargin(), Ruler::GetMargin2(), Ruler::GetNullOffset(), i, Ruler::IsDragDelete(), lTabPos, MakePositionSticky(), mpTabs, mxRulerImpl, nDragType, nMaxRight, nPos, nTabCount, OBJECT_SIZE_LINEAR, OBJECT_SIZE_PROPORTIONAL, RULER_STYLE_INVISIBLE, RULER_TAB_DEFAULT, Ruler::SetTabs(), and TAB_GAP.
Referenced by Drag().
|
private |
Definition at line 1520 of file svxruler.cxx.
References ConvertHSizeLogic(), ConvertVSizeLogic(), GetCorrectedDragPos(), GetLeftFrameMargin(), Ruler::GetNullOffset(), MakePositionSticky(), mxPagePosItem, pEditWin, Point::X(), and Point::Y().
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and EndDrag().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3162 of file svxruler.cxx.
References ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyObject(), ApplyTabs(), bHorz, DrawLine_Impl(), Ruler::EndDrag(), Ruler::GetDragAryPos(), Ruler::GetDragPos(), Ruler::GetDragType(), GetId(), i, INDENT_COUNT, INDENT_GAP, Ruler::IsDragCanceled(), lInitialDragPos, lTabPos, mbCoarseSnapping, mbSnapping, mpIndents, mpTabs, mxColumnItem, mxObjectItem, mxRulerImpl, nDragType, NONE, nTabCount, OBJECT_SIZE_PROPORTIONAL, pCtrlItems, Ruler::SetIndents(), Ruler::SetTabs(), TAB_GAP, and UpdateTabs().
|
private |
Definition at line 2420 of file svxruler.cxx.
References eType, Ruler::GetDragModifier(), Ruler::GetDragType(), KEY_MOD1, KEY_MOD2, KEY_SHIFT, mbCoarseSnapping, mbSnapping, mxColumnItem, mxRulerImpl, nDragType, OBJECT_ACTLINE_ONLY, OBJECT_SIZE_LINEAR, OBJECT_SIZE_PROPORTIONAL, and PrepareProportional_Impl().
Referenced by StartDrag().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3237 of file svxruler.cxx.
References Ruler::ExtraDown(), mxTabStopItem, nDefTabType, nFlags, RULER_TAB_DEFAULT, RULER_TAB_LEFT, Ruler::SetExtraType(), and TABS.
|
protected |
Definition at line 3408 of file svxruler.cxx.
References mxColumnItem, nDragType, and OBJECT_ACTLINE_ONLY.
Referenced by ApplyIndents(), CalcMinMax(), DragBorders(), and IsActFirstColumn().
|
protected |
Definition at line 3386 of file svxruler.cxx.
References Count, mxColumnItem, nDragType, and OBJECT_ACTLINE_ONLY.
Referenced by ApplyIndents(), CalcMinMax(), CalcPropMaxRight(), DragBorders(), GetRightFrameMargin(), and IsActLastColumn().
|
private |
Definition at line 1286 of file svxruler.cxx.
References bHorz, Ruler::GetDragPos(), Ruler::GetNullOffset(), mxRulerImpl, nMaxLeft, and nMaxRight.
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and DrawLine_Impl().
|
private |
Definition at line 1178 of file svxruler.cxx.
References Ruler::GetMargin1(), INDENT_FIRST_LINE, mpIndents, and mxParaItem.
Referenced by CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1170 of file svxruler.cxx.
References bAppSetNullOffset, ConvertSizePixel(), Ruler::GetMargin1(), Ruler::GetNullOffset(), and lLogicNullOffset.
Referenced by ApplyBorders(), and ApplyMargins().
|
private |
Definition at line 1204 of file svxruler.cxx.
References DBG_ASSERT, mxBorderItem, and mxColumnItem.
Referenced by ApplyIndents(), ApplyTabs(), Click(), DragBorders(), DragIndents(), DragMargin2(), DragObjectBorder(), DragTabs(), DrawLine_Impl(), MakePositionSticky(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 1184 of file svxruler.cxx.
References Ruler::GetMargin1(), INDENT_LEFT_MARGIN, mpIndents, and mxParaItem.
Referenced by ApplyTabs(), CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1223 of file svxruler.cxx.
References bHorz, DBG_ASSERT, and mxMinMaxItem.
Referenced by CalcMinMax().
|
private |
Definition at line 1196 of file svxruler.cxx.
References GetRightFrameMargin(), and mxParaItem.
Referenced by CalcMinMax().
|
inlineprivate |
Definition at line 425 of file svxruler.cxx.
References bHorz.
Referenced by AdjustMargin1(), DragObjectBorder(), and UpdateObject().
tools::Long SvxRuler::GetPageWidth | ( | ) | const |
Definition at line 1163 of file svxruler.cxx.
References bHorz, and mxPagePosItem.
Referenced by ApplyMargins(), and CalcMinMax().
|
private |
Definition at line 1250 of file svxruler.cxx.
References bHorz, GetActRightColumn(), IsActLastColumn(), lLogicNullOffset, mxBorderItem, mxColumnItem, mxLRSpaceItem, mxPagePosItem, and mxULSpaceItem.
Referenced by ApplyTabs(), Click(), DragIndents(), DragMargin1(), GetLogicRightIndent(), MakePositionSticky(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 1190 of file svxruler.cxx.
References Ruler::GetMargin2(), INDENT_RIGHT_MARGIN, mpIndents, and mxParaItem.
Referenced by CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1236 of file svxruler.cxx.
References bHorz, DBG_ASSERT, and mxMinMaxItem.
Referenced by CalcMinMax().
|
protected |
Definition at line 3437 of file svxruler.cxx.
References GetActLeftColumn().
Referenced by AdjustMargin1(), and ApplyIndents().
|
protected |
Definition at line 3430 of file svxruler.cxx.
References GetActRightColumn().
Referenced by ApplyIndents(), CalcMinMax(), DragMargin2(), and GetRightFrameMargin().
|
private |
Definition at line 301 of file svxruler.cxx.
References ConvertHPosPixel(), Ruler::GetCurrentMapMode(), Ruler::GetCurrentRulerUnit(), GetLeftFrameMargin(), GetRightFrameMargin(), mbCoarseSnapping, mbSnapping, RulerUnitData::nTick1, RulerUnitData::nTick2, and pEditWin.
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and DrawLine_Impl().
|
private |
Definition at line 3270 of file svxruler.cxx.
References vcl::EnglishStringToMetric(), and Ruler::SetUnit().
Referenced by Command().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 518 of file svxruler.cxx.
References RulerUnitData::aUnitStr, bActive, bHorz, SvxColumnItem::Count(), RulerSelection::eType, Ruler::GetCurrentMapMode(), Ruler::GetCurrentRulerUnit(), Ruler::GetHoverSelection(), INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, OutputDevice::LogicToLogic(), Ruler::MouseMove(), mxColumnItem, mxLRSpaceItem, mxParaItem, mxULSpaceItem, RulerSelection::nAryPos, nIndex, RulerUnitData::nTick1, RulerUnitData::nTickUnit, pBindings, pEditWin, and SfxBindings::Update().
|
overrideprotectedvirtual |
Reimplemented from SfxListener.
Definition at line 3253 of file svxruler.cxx.
References bActive, bListening, bValid, SfxListener::EndListening(), SfxHint::GetId(), pBindings, and Update().
|
private |
Definition at line 417 of file svxruler.cxx.
References ConvertSizePixel().
Referenced by ApplyObject().
|
private |
Definition at line 401 of file svxruler.cxx.
References ConvertHSizePixel().
Referenced by ApplyBorders(), ApplyMargins(), and ApplyTabs().
|
private |
Definition at line 409 of file svxruler.cxx.
References ConvertVSizePixel().
Referenced by ApplyMargins().
|
private |
Definition at line 2293 of file svxruler.cxx.
References bHorz, DBG_ASSERT, eType, Ruler::GetDragAryPos(), Ruler::GetMargin1(), Ruler::GetMargin2(), i, mpBorders, mpTabs, mxColumnItem, mxRulerImpl, n, nTabCount, and TAB_GAP.
Referenced by EvalModifier().
|
private |
Definition at line 1996 of file svxruler.cxx.
References Ruler::GetCurrentMapMode(), Ruler::GetCurrentRulerUnit(), OutputDevice::LogicToLogic(), RulerUnitData::nTick1, RulerUnitData::nTickUnit, pEditWin, and Width.
Referenced by ApplyIndents().
void SvxRuler::SetActive | ( | bool | bOn = true | ) |
Definition at line 1633 of file svxruler.cxx.
References Ruler::Activate(), bActive, Ruler::Deactivate(), SfxBindings::EnterRegistrations(), i, SfxBindings::LeaveRegistrations(), mxRulerImpl, pBindings, and pCtrlItems.
void SvxRuler::SetDefTabDist | ( | tools::Long | inDefTabDist | ) |
Definition at line 966 of file svxruler.cxx.
References lAppNullOffset, lDefTabDist, LONG_MAX, UpdateFrame(), and UpdateTabs().
void SvxRuler::SetNullOffsetLogic | ( | tools::Long | lOff | ) |
Definition at line 1135 of file svxruler.cxx.
References bAppSetNullOffset, ConvertSizePixel(), lAppNullOffset, lLogicNullOffset, Ruler::SetNullOffset(), and Update().
void SvxRuler::SetTabsRelativeToIndent | ( | bool | bRel | ) |
Definition at line 3564 of file svxruler.cxx.
References mxRulerImpl.
void SvxRuler::SetValues | ( | RulerChangeType | type, |
tools::Long | value | ||
) |
Definition at line 3569 of file svxruler.cxx.
References AdjustMargin1(), ApplyMargins(), Ruler::GetMargin2(), MARGIN1, MARGIN2, Ruler::SetMargin2(), and type.
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3045 of file svxruler.cxx.
References bHorz, bValid, CalcMinMax(), EvalModifier(), Ruler::GetDragAryPos(), Ruler::GetDragPos(), Ruler::GetDragType(), Ruler::GetMargin1(), Ruler::GetMargin2(), INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, lInitialDragPos, mpBorders, mpIndents, mpTabs, mxColumnItem, mxLRSpaceItem, mxRulerImpl, mxULSpaceItem, nDragOffset, nDragType, NONE, OBJECT, and RULER_STYLE_DONTKNOW.
|
private |
Definition at line 632 of file svxruler.cxx.
References bListening, bValid, pBindings, and SfxListener::StartListening().
Referenced by Update(), UpdateBorder(), UpdateFrame(), UpdatePara(), and UpdateTextRTL().
|
private |
Definition at line 3278 of file svxruler.cxx.
References bHorz, SfxDispatcher::ExecuteList(), SvxTabStop::GetAdjustment(), SfxBindings::GetDispatcher(), mxRulerImpl, mxTabStopItem, nId, pBindings, ToAttrTab_Impl(), o3tl::toInt32(), and UpdateTabs().
Referenced by Command().
|
protectedvirtual |
Definition at line 1143 of file svxruler.cxx.
References Ruler::IsDrag(), nFlags, OBJECT, PARAGRAPH_MARGINS, PARAGRAPH_MARGINS_VERTICAL, TABS, UpdateColumns(), UpdateFrame(), UpdateObject(), UpdatePage(), UpdatePara(), and UpdateTabs().
Referenced by Notify(), and SetNullOffsetLogic().
|
private |
Definition at line 699 of file svxruler.cxx.
References bActive, bHorz, mxColumnItem, mxRulerImpl, StartListening_Impl(), and SfxPoolItem::Which().
|
private |
Definition at line 1122 of file svxruler.cxx.
References bActive, mxObjectItem, and StartListening_Impl().
|
private |
Definition at line 953 of file svxruler.cxx.
References bActive, mxPagePosItem, and StartListening_Impl().
|
private |
Definition at line 681 of file svxruler.cxx.
References SvxProtectItem::Clone(), and mxRulerImpl.
|
private |
Definition at line 1103 of file svxruler.cxx.
References bActive, bHorz, mxTabStopItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 884 of file svxruler.cxx.
References bActive, mxBorderItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 729 of file svxruler.cxx.
References ConvertPosPixel(), ConvertSizePixel(), i, lAppNullOffset, mpBorders, mxColumnItem, mxRulerImpl, and Ruler::SetBorders().
Referenced by Update().
|
private |
Definition at line 434 of file svxruler.cxx.
References bAppSetNullOffset, ConvertHPosPixel(), ConvertSizePixel(), ConvertVPosPixel(), lAppNullOffset, lLogicNullOffset, LONG_MAX, mxColumnItem, mxLRSpaceItem, mxPagePosItem, mxRulerImpl, mxULSpaceItem, Ruler::SetMargin1(), Ruler::SetMargin2(), and Ruler::SetNullOffset().
Referenced by SetDefTabDist(), and Update().
|
private |
Definition at line 642 of file svxruler.cxx.
References bActive, mxLRSpaceItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 668 of file svxruler.cxx.
References bActive, bHorz, mxULSpaceItem, and StartListening_Impl().
|
private |
Definition at line 655 of file svxruler.cxx.
References bActive, and mxMinMaxItem.
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 783 of file svxruler.cxx.
References ConvertPosPixel(), DBG_ASSERT, GetObjectBordersOff(), lAppNullOffset, mpObjectBorders, mxLRSpaceItem, mxObjectItem, mxULSpaceItem, and Ruler::SetBorders().
Referenced by Update().
|
private |
Definition at line 898 of file svxruler.cxx.
References bAppSetNullOffset, bHorz, ConvertSizePixel(), AllSettings::GetLayoutRTL(), Height, lAppNullOffset, lLogicNullOffset, mxPagePosItem, mxRulerImpl, pEditWin, Ruler::SetNullOffset(), Ruler::SetPagePos(), Ruler::SetWinPos(), Width, Size::Width(), X, Point::X(), and Point::Y().
Referenced by Update().
|
private |
Definition at line 812 of file svxruler.cxx.
References ConvertHPosPixel(), GetLeftFrameMargin(), GetRightFrameMargin(), INDENT_COUNT, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, lAppNullOffset, mpIndents, mxObjectItem, mxPagePosItem, mxParaItem, mxRulerImpl, Ruler::SetIndents(), Ruler::SetLeftFrameMargin(), and Ruler::SetRightFrameMargin().
Referenced by Update().
|
private |
Definition at line 871 of file svxruler.cxx.
References bActive, mxParaItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 1655 of file svxruler.cxx.
References eType, i, INDENT_COUNT, INDENT_FIRST_LINE, INDENT_GAP, INDENT_LEFT_MARGIN, INDENT_RIGHT_MARGIN, MoveLeft, MoveRight, mpIndents, mpTabs, nTabCount, Ruler::SetIndents(), Ruler::SetTabs(), and TAB_GAP.
Referenced by DragBorders().
|
private |
Definition at line 1004 of file svxruler.cxx.
References ConvertHPosPixel(), ConvertSizePixel(), DBG_ASSERT, GAP, SvxTabStop::GetAdjustment(), GetLeftFrameMargin(), GetRightFrameMargin(), SvxTabStop::GetTabPos(), Ruler::IsDrag(), lAppNullOffset, lDefTabDist, mpTabs, mxObjectItem, mxPagePosItem, mxParaItem, mxRulerImpl, mxTabStopItem, nPos, nTabBufSize, nTabCount, RULER_TAB_DEFAULT, Ruler::SetTabs(), TAB_GAP, and ToSvTab_Impl().
Referenced by ApplyIndents(), ApplyMargins(), ApplyTabs(), Click(), EndDrag(), SetDefTabDist(), TabMenuSelect(), and Update().
|
private |
Definition at line 687 of file svxruler.cxx.
References bActive, bHorz, mxRulerImpl, Ruler::SetTextRTL(), and StartListening_Impl().
Referenced by SvxRulerItem::StateChangedAtToolBoxControl().
|
friend |
Definition at line 85 of file ruler.hxx.
Referenced by SvxRuler().
|
private |
Definition at line 127 of file ruler.hxx.
Referenced by Click(), MouseMove(), Notify(), SetActive(), Update(), UpdateBorder(), UpdateFrame(), UpdateFrameMinMax(), UpdatePara(), and UpdateTextRTL().
|
private |
Definition at line 103 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyMargins(), GetFrameLeft(), SetNullOffsetLogic(), UpdateFrame(), and UpdatePage().
|
private |
Definition at line 104 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyTabs(), CalcMinMax(), Click(), Command(), ConvertPosLogic(), ConvertPosPixel(), ConvertSizeLogic(), ConvertSizePixel(), DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), EndDrag(), GetCorrectedDragPos(), GetLeftMin(), GetObjectBordersOff(), GetPageWidth(), GetRightFrameMargin(), GetRightMax(), MouseMove(), PrepareProportional_Impl(), StartDrag(), SvxRuler(), TabMenuSelect(), Update(), UpdateFrame(), UpdatePage(), and UpdateTextRTL().
|
private |
Definition at line 126 of file ruler.hxx.
Referenced by dispose(), Notify(), and StartListening_Impl().
|
private |
Definition at line 125 of file ruler.hxx.
Referenced by Notify(), StartDrag(), and StartListening_Impl().
|
private |
Definition at line 106 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyObject(), ApplyTabs(), Click(), SetDefTabDist(), SetNullOffsetLogic(), UpdateColumns(), UpdateFrame(), UpdateObject(), UpdatePage(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 113 of file ruler.hxx.
Referenced by SetDefTabDist(), and UpdateTabs().
|
private |
Definition at line 107 of file ruler.hxx.
Referenced by EndDrag(), and StartDrag().
|
private |
Definition at line 105 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyTabs(), CalcMinMax(), GetFrameLeft(), GetRightFrameMargin(), SetNullOffsetLogic(), UpdateFrame(), and UpdatePage().
|
private |
Definition at line 114 of file ruler.hxx.
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and EndDrag().
|
private |
Definition at line 129 of file ruler.hxx.
Referenced by EndDrag(), EvalModifier(), and MakePositionSticky().
|
private |
Definition at line 130 of file ruler.hxx.
Referenced by ApplyIndents(), EndDrag(), EvalModifier(), and MakePositionSticky().
|
private |
Definition at line 118 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyBorders(), ApplyIndents(), CalcMinMax(), CalcPropMaxRight(), DragBorders(), PrepareProportional_Impl(), StartDrag(), and UpdateColumns().
|
private |
Definition at line 117 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyIndents(), DragBorders(), DragIndents(), DragMargin2(), EndDrag(), GetFirstLineIndent(), GetLeftIndent(), GetRightIndent(), StartDrag(), SvxRuler(), UpdatePara(), and UpdateParaContents_Impl().
|
private |
Definition at line 119 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyObject(), DragObjectBorder(), SvxRuler(), and UpdateObject().
|
private |
Definition at line 116 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyTabs(), Command(), DragTabs(), EndDrag(), PrepareProportional_Impl(), StartDrag(), UpdateParaContents_Impl(), and UpdateTabs().
|
private |
Definition at line 94 of file ruler.hxx.
Referenced by GetLeftFrameMargin(), GetRightFrameMargin(), and UpdateBorder().
|
private |
Definition at line 96 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyBorders(), ApplyIndents(), CalcMinMax(), CalcPropMaxRight(), Drag(), DragBorders(), DragMargin1(), DragMargin2(), EndDrag(), EvalModifier(), GetActLeftColumn(), GetActRightColumn(), GetLeftFrameMargin(), GetRightFrameMargin(), MouseMove(), PrepareProportional_Impl(), StartDrag(), Update(), UpdateColumns(), and UpdateFrame().
|
private |
Definition at line 89 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyObject(), CalcMinMax(), GetRightFrameMargin(), MouseMove(), StartDrag(), UpdateFrame(), and UpdateObject().
|
private |
Definition at line 90 of file ruler.hxx.
Referenced by CalcMinMax(), GetLeftMin(), GetRightMax(), and UpdateFrameMinMax().
|
private |
Definition at line 97 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyObject(), Drag(), EndDrag(), Update(), UpdateObject(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 95 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyMargins(), DrawLine_Impl(), GetPageWidth(), GetRightFrameMargin(), Update(), UpdateFrame(), UpdatePage(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 93 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyIndents(), ApplyTabs(), DragMargin2(), GetFirstLineIndent(), GetLeftIndent(), GetLogicRightIndent(), GetRightIndent(), MouseMove(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 101 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyTabs(), CalcMinMax(), Click(), Command(), Drag(), DragBorders(), DragIndents(), DragMargin2(), DragTabs(), EndDrag(), EvalModifier(), GetCorrectedDragPos(), PrepareProportional_Impl(), SetActive(), SetTabsRelativeToIndent(), StartDrag(), SvxRuler(), TabMenuSelect(), Update(), UpdateColumns(), UpdateFrame(), UpdatePage(), UpdatePara(), UpdateTabs(), and UpdateTextRTL().
|
private |
Definition at line 92 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyMargins(), ApplyTabs(), Click(), ExtraDown(), TabMenuSelect(), Update(), and UpdateTabs().
|
private |
Definition at line 91 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyObject(), GetRightFrameMargin(), MouseMove(), StartDrag(), UpdateFrame(), and UpdateObject().
|
private |
Definition at line 110 of file ruler.hxx.
Referenced by Click(), ExtraDown(), and SvxRuler().
|
private |
Definition at line 122 of file ruler.hxx.
Referenced by CalcMinMax(), DragBorders(), and StartDrag().
|
private |
Definition at line 109 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyBorders(), ApplyTabs(), CalcMinMax(), CalcPropMaxRight(), DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragTabs(), EndDrag(), EvalModifier(), GetActLeftColumn(), GetActRightColumn(), and StartDrag().
|
private |
Definition at line 108 of file ruler.hxx.
Referenced by Click(), Command(), ExtraDown(), SvxRuler(), and Update().
|
private |
Definition at line 123 of file ruler.hxx.
Referenced by ApplyMargins(), CalcMinMax(), and GetCorrectedDragPos().
|
private |
Definition at line 124 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyTabs(), CalcMinMax(), DragTabs(), and GetCorrectedDragPos().
|
private |
Definition at line 112 of file ruler.hxx.
Referenced by UpdateTabs().
|
private |
Definition at line 111 of file ruler.hxx.
Referenced by AdjustMargin1(), DragTabs(), EndDrag(), PrepareProportional_Impl(), UpdateParaContents_Impl(), and UpdateTabs().
|
private |
Definition at line 121 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyObject(), ApplyTabs(), Click(), dispose(), MouseMove(), Notify(), SetActive(), StartListening_Impl(), and TabMenuSelect().
|
private |
Definition at line 87 of file ruler.hxx.
Referenced by dispose(), EndDrag(), SetActive(), and SvxRuler().
|
private |
Definition at line 99 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyMargins(), ConvertHPosLogic(), ConvertHPosPixel(), ConvertHSizeLogic(), ConvertHSizePixel(), ConvertVPosLogic(), ConvertVPosPixel(), ConvertVSizeLogic(), ConvertVSizePixel(), dispose(), DrawLine_Impl(), MakePositionSticky(), MouseMove(), RoundToCurrentMapMode(), and UpdatePage().