LibreOffice Module svx (master)
1
|
#include <ruler.hxx>
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 |
![]() | |
tools::Long | GetRulerVirHeight () const |
const MapMode & | GetCurrentMapMode () const |
const RulerUnitData & | GetCurrentRulerUnit () const |
Private Types | |
enum | UpdateType { UpdateType::MoveLeft, UpdateType::MoveRight } |
Friends | |
class | SvxRulerItem |
Additional Inherited Members | |
![]() | |
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(), OutputDevice::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, SET_NULLOFFSET, Ruler::SetExtraType(), SvxRulerItem, TABS, WB_VSCROLL, and RulerTabData::width.
|
overridevirtual |
Definition at line 280 of file svxruler.cxx.
|
private |
Definition at line 1320 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 2178 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 1992 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 1903 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 2240 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 2088 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 2510 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, OBJECT_SIZE_PROPORTIONAL, and USHRT_MAX.
Referenced by StartDrag().
|
protected |
Definition at line 3429 of file svxruler.cxx.
References GetActRightColumn(), Ruler::GetMargin1(), Ruler::GetMargin2(), glMinFrame, i, mpBorders, mxColumnItem, nDragType, nVisCols, OBJECT_SIZE_LINEAR, and USHRT_MAX.
Referenced by CalcMinMax().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 2460 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 3291 of file svxruler.cxx.
References bHorz, Ruler::CancelDrag(), Application::CreateBuilder(), Ruler::DrawTab(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), weld::GetPopupParent(), Ruler::GetRulerType(), Ruler::GetUnit(), RulerTabData::height, Size::Height(), i, MenuSelect(), mpTabs, mxRulerImpl, nCount, nFlags, Point, REDUCED_METRIC, RID_SVXSTR_RULER_TAB, RULER_TAB_DEFAULT, RULER_TAB_LEFT, RULER_TAB_RTL, sId, vcl::StringToMetric(), SvxResId(), TAB_GAP, TabMenuSelect(), TRISTATE_TRUE, WB_HORZ, WB_VERT, Size::Width(), and RulerTabData::width.
|
inlineprivate |
Definition at line 371 of file svxruler.cxx.
References pEditWin, and OutputDevice::PixelToLogic().
Referenced by ApplyBorders(), ApplyMargins(), ApplyTabs(), Click(), and ConvertPosLogic().
|
private |
Definition at line 341 of file svxruler.cxx.
References OutputDevice::LogicToPixel(), and pEditWin.
Referenced by ApplyTabs(), Click(), ConvertPosPixel(), MakePositionSticky(), UpdateFrame(), UpdatePara(), and UpdateTabs().
|
inlineprivate |
Definition at line 381 of file svxruler.cxx.
References pEditWin, and OutputDevice::PixelToLogic().
Referenced by ConvertSizeLogic(), and DrawLine_Impl().
|
private |
Definition at line 351 of file svxruler.cxx.
References OutputDevice::LogicToPixel(), and 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, and OutputDevice::PixelToLogic().
Referenced by ApplyMargins(), and ConvertPosLogic().
|
private |
Definition at line 346 of file svxruler.cxx.
References OutputDevice::LogicToPixel(), and pEditWin.
Referenced by ConvertPosPixel(), and UpdateFrame().
|
inlineprivate |
Definition at line 386 of file svxruler.cxx.
References pEditWin, and OutputDevice::PixelToLogic().
Referenced by ConvertSizeLogic(), and DrawLine_Impl().
|
private |
Definition at line 356 of file svxruler.cxx.
References OutputDevice::LogicToPixel(), and pEditWin.
Referenced by ConvertSizePixel(), and PixelVAdjust().
Reimplemented from Ruler.
Definition at line 285 of file svxruler.cxx.
References bListening, VclPtr< vcl::Window >::clear(), Ruler::dispose(), SfxListener::EndListening(), SfxBindings::EnterRegistrations(), SfxBindings::LeaveRegistrations(), pBindings, pCtrlItems, and pEditWin.
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3112 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 1669 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 1475 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 1303 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 1438 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 1888 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 1563 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 1506 of file svxruler.cxx.
References ConvertHSizeLogic(), ConvertVSizeLogic(), GetCorrectedDragPos(), GetLeftFrameMargin(), OutputDevice::GetMapMode(), Ruler::GetNullOffset(), MapMode::GetOrigin(), OutputDevice::GetOutputSize(), Size::Height(), vcl::Window::InvertTracking(), MakePositionSticky(), mxPagePosItem, pEditWin, Point, and Size::Width().
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and EndDrag().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3147 of file svxruler.cxx.
References ApplyBorders(), ApplyIndents(), ApplyMargins(), ApplyObject(), ApplyTabs(), bHorz, DrawLine_Impl(), Ruler::EndDrag(), Ruler::GetDragAryPos(), Ruler::GetDragPos(), Ruler::GetDragType(), i, INDENT_COUNT, INDENT_GAP, Ruler::IsDragCanceled(), lInitialDragPos, lTabPos, mbCoarseSnapping, mbSnapping, mpIndents, mpTabs, mxColumnItem, mxObjectItem, mxRulerImpl, nDragType, NONE, nTabCount, OBJECT_SIZE_PROPORTIONAL, pCtrlItems, RULER_STYLE_INVISIBLE, Ruler::SetIndents(), Ruler::SetTabs(), TAB_GAP, and UpdateTabs().
|
private |
Definition at line 2406 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 3222 of file svxruler.cxx.
References Ruler::ExtraDown(), mxTabStopItem, nDefTabType, nFlags, RULER_TAB_DEFAULT, RULER_TAB_LEFT, Ruler::SetExtraType(), and TABS.
|
protected |
Definition at line 3393 of file svxruler.cxx.
References mxColumnItem, nDragType, OBJECT_ACTLINE_ONLY, and USHRT_MAX.
Referenced by ApplyIndents(), CalcMinMax(), DragBorders(), and IsActFirstColumn().
|
protected |
Definition at line 3371 of file svxruler.cxx.
References Count, mxColumnItem, nDragType, OBJECT_ACTLINE_ONLY, and USHRT_MAX.
Referenced by ApplyIndents(), CalcMinMax(), CalcPropMaxRight(), DragBorders(), GetRightFrameMargin(), and IsActLastColumn().
|
private |
Definition at line 1272 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 1170 of file svxruler.cxx.
References Ruler::GetMargin1(), INDENT_FIRST_LINE, mpIndents, and mxParaItem.
Referenced by CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1162 of file svxruler.cxx.
References bAppSetNullOffset, ConvertSizePixel(), Ruler::GetMargin1(), Ruler::GetNullOffset(), and lLogicNullOffset.
Referenced by ApplyBorders(), and ApplyMargins().
|
private |
Definition at line 1196 of file svxruler.cxx.
References DBG_ASSERT, and mxColumnItem.
Referenced by ApplyIndents(), ApplyTabs(), Click(), DragBorders(), DragIndents(), DragMargin2(), DragObjectBorder(), DragTabs(), DrawLine_Impl(), MakePositionSticky(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 1176 of file svxruler.cxx.
References Ruler::GetMargin1(), INDENT_LEFT_MARGIN, mpIndents, and mxParaItem.
Referenced by ApplyTabs(), CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1212 of file svxruler.cxx.
References bHorz, DBG_ASSERT, and mxMinMaxItem.
Referenced by CalcMinMax().
|
private |
Definition at line 1188 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 1155 of file svxruler.cxx.
References bHorz, and mxPagePosItem.
Referenced by ApplyMargins(), and CalcMinMax().
|
private |
Definition at line 1239 of file svxruler.cxx.
References bHorz, GetActRightColumn(), IsActLastColumn(), lLogicNullOffset, mxColumnItem, mxLRSpaceItem, mxPagePosItem, and mxULSpaceItem.
Referenced by ApplyTabs(), Click(), DragIndents(), DragMargin1(), GetLogicRightIndent(), MakePositionSticky(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 1182 of file svxruler.cxx.
References Ruler::GetMargin2(), INDENT_RIGHT_MARGIN, mpIndents, and mxParaItem.
Referenced by CalcMinMax(), and Click().
|
inlineprivate |
Definition at line 1225 of file svxruler.cxx.
References bHorz, DBG_ASSERT, and mxMinMaxItem.
Referenced by CalcMinMax().
|
protected |
Definition at line 3422 of file svxruler.cxx.
References GetActLeftColumn(), and USHRT_MAX.
Referenced by AdjustMargin1(), and ApplyIndents().
|
protected |
Definition at line 3415 of file svxruler.cxx.
References GetActRightColumn(), and USHRT_MAX.
Referenced by ApplyIndents(), CalcMinMax(), DragMargin2(), and GetRightFrameMargin().
|
private |
Definition at line 301 of file svxruler.cxx.
References ConvertHPosPixel(), Ruler::GetCurrentMapMode(), Ruler::GetCurrentRulerUnit(), GetLeftFrameMargin(), GetRightFrameMargin(), OutputDevice::LogicToPixel(), mbCoarseSnapping, mbSnapping, RulerUnitData::nTick1, RulerUnitData::nTick2, pEditWin, and OutputDevice::PixelToLogic().
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and DrawLine_Impl().
|
private |
Definition at line 3255 of file svxruler.cxx.
References Ruler::SetUnit(), and vcl::StringToMetric().
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(), OutputDevice::GetMapMode(), 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, SfxBindings::Update(), and Width.
|
overrideprotectedvirtual |
Reimplemented from SfxListener.
Definition at line 3238 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().
Definition at line 2279 of file svxruler.cxx.
References bHorz, DBG_ASSERT, Ruler::GetDragAryPos(), Ruler::GetMargin1(), Ruler::GetMargin2(), i, mpBorders, mpTabs, mxColumnItem, mxRulerImpl, n, nTabCount, and TAB_GAP.
Referenced by EvalModifier().
|
private |
Definition at line 1982 of file svxruler.cxx.
References Ruler::GetCurrentMapMode(), Ruler::GetCurrentRulerUnit(), OutputDevice::GetMapMode(), OutputDevice::LogicToLogic(), RulerUnitData::nTick1, RulerUnitData::nTickUnit, pEditWin, and Width.
Referenced by ApplyIndents().
void SvxRuler::SetActive | ( | bool | bOn = true | ) |
Definition at line 1619 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 961 of file svxruler.cxx.
References lAppNullOffset, lDefTabDist, LONG_MAX, UpdateFrame(), and UpdateTabs().
void SvxRuler::SetNullOffsetLogic | ( | tools::Long | lOff | ) |
Definition at line 1127 of file svxruler.cxx.
References bAppSetNullOffset, ConvertSizePixel(), lAppNullOffset, lLogicNullOffset, Ruler::SetNullOffset(), and Update().
void SvxRuler::SetTabsRelativeToIndent | ( | bool | bRel | ) |
Definition at line 3549 of file svxruler.cxx.
References mxRulerImpl.
void SvxRuler::SetValues | ( | RulerChangeType | type, |
tools::Long | value | ||
) |
Definition at line 3554 of file svxruler.cxx.
References AdjustMargin1(), ApplyMargins(), Ruler::GetMargin2(), MARGIN1, MARGIN2, and Ruler::SetMargin2().
|
overrideprotectedvirtual |
Reimplemented from Ruler.
Definition at line 3030 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(), UpdateFrame(), UpdatePara(), UpdateParaBorder(), and UpdateTextRTL().
|
private |
Definition at line 3263 of file svxruler.cxx.
References bHorz, SfxDispatcher::ExecuteList(), SvxTabStop::GetAdjustment(), SfxBindings::GetDispatcher(), mxRulerImpl, mxTabStopItem, nId, pBindings, ToAttrTab_Impl(), and UpdateTabs().
Referenced by Command().
|
private |
Definition at line 1095 of file svxruler.cxx.
References bActive, bHorz, mxTabStopItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChanged().
|
private |
Definition at line 948 of file svxruler.cxx.
References bActive, mxPagePosItem, and StartListening_Impl().
|
private |
Definition at line 699 of file svxruler.cxx.
References bActive, bHorz, mxColumnItem, mxRulerImpl, StartListening_Impl(), and SfxPoolItem::Which().
|
private |
Definition at line 1114 of file svxruler.cxx.
References bActive, mxObjectItem, and StartListening_Impl().
|
private |
Definition at line 681 of file svxruler.cxx.
References SvxProtectItem::Clone(), and mxRulerImpl.
|
protectedvirtual |
Definition at line 1135 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 729 of file svxruler.cxx.
References ConvertPosPixel(), ConvertSizePixel(), i, lAppNullOffset, mpBorders, mxColumnItem, mxRulerImpl, and Ruler::SetBorders().
Referenced by Update().
|
private |
Definition at line 642 of file svxruler.cxx.
References bActive, mxLRSpaceItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChanged().
|
private |
Definition at line 668 of file svxruler.cxx.
References bActive, bHorz, mxULSpaceItem, and StartListening_Impl().
|
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 655 of file svxruler.cxx.
References bActive, and mxMinMaxItem.
Referenced by SvxRulerItem::StateChanged().
|
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 893 of file svxruler.cxx.
References bAppSetNullOffset, bHorz, ConvertSizePixel(), AllSettings::GetLayoutRTL(), vcl::Window::GetPosPixel(), vcl::Window::GetSizePixel(), Height, lAppNullOffset, lLogicNullOffset, OutputDevice::LogicToPixel(), mxPagePosItem, mxRulerImpl, pEditWin, Point, Ruler::SetNullOffset(), Ruler::SetPagePos(), Ruler::SetWinPos(), Size::Width(), Width, X, and Y.
Referenced by Update().
|
private |
Definition at line 871 of file svxruler.cxx.
References bActive, mxParaItem, and StartListening_Impl().
Referenced by SvxRulerItem::StateChanged().
|
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 884 of file svxruler.cxx.
References bActive, and StartListening_Impl().
Referenced by SvxRulerItem::StateChanged().
|
private |
Definition at line 1641 of file svxruler.cxx.
References 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 996 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::StateChanged().
|
friend |
Definition at line 85 of file ruler.hxx.
Referenced by SvxRuler().
|
private |
Definition at line 126 of file ruler.hxx.
Referenced by Click(), MouseMove(), Notify(), SetActive(), Update(), UpdateFrame(), UpdateFrameMinMax(), UpdatePara(), UpdateParaBorder(), and UpdateTextRTL().
|
private |
Definition at line 102 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyMargins(), GetFrameLeft(), SetNullOffsetLogic(), UpdateFrame(), and UpdatePage().
|
private |
Definition at line 103 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 125 of file ruler.hxx.
Referenced by dispose(), Notify(), and StartListening_Impl().
|
private |
Definition at line 124 of file ruler.hxx.
Referenced by Notify(), StartDrag(), and StartListening_Impl().
|
private |
Definition at line 105 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 112 of file ruler.hxx.
Referenced by SetDefTabDist(), and UpdateTabs().
|
private |
Definition at line 106 of file ruler.hxx.
Referenced by EndDrag(), and StartDrag().
|
private |
Definition at line 104 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyTabs(), CalcMinMax(), GetFrameLeft(), GetRightFrameMargin(), SetNullOffsetLogic(), UpdateFrame(), and UpdatePage().
|
private |
Definition at line 113 of file ruler.hxx.
Referenced by DragBorders(), DragIndents(), DragMargin1(), DragMargin2(), DragObjectBorder(), DragTabs(), and EndDrag().
|
private |
Definition at line 128 of file ruler.hxx.
Referenced by EndDrag(), EvalModifier(), and MakePositionSticky().
|
private |
Definition at line 129 of file ruler.hxx.
Referenced by ApplyIndents(), EndDrag(), EvalModifier(), and MakePositionSticky().
|
private |
Definition at line 117 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyBorders(), ApplyIndents(), CalcMinMax(), CalcPropMaxRight(), DragBorders(), PrepareProportional_Impl(), StartDrag(), and UpdateColumns().
|
private |
Definition at line 116 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 118 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyObject(), DragObjectBorder(), SvxRuler(), and UpdateObject().
|
private |
Definition at line 115 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyTabs(), Command(), DragTabs(), EndDrag(), PrepareProportional_Impl(), StartDrag(), UpdateParaContents_Impl(), and UpdateTabs().
|
private |
Definition at line 95 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 96 of file ruler.hxx.
Referenced by AdjustMargin1(), ApplyObject(), Drag(), EndDrag(), Update(), UpdateObject(), UpdatePara(), and UpdateTabs().
|
private |
Definition at line 94 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 100 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 109 of file ruler.hxx.
Referenced by Click(), ExtraDown(), and SvxRuler().
|
private |
Definition at line 121 of file ruler.hxx.
Referenced by CalcMinMax(), DragBorders(), and StartDrag().
|
private |
Definition at line 108 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 107 of file ruler.hxx.
Referenced by Click(), Command(), ExtraDown(), SvxRuler(), and Update().
|
private |
Definition at line 122 of file ruler.hxx.
Referenced by ApplyMargins(), CalcMinMax(), and GetCorrectedDragPos().
|
private |
Definition at line 123 of file ruler.hxx.
Referenced by ApplyMargins(), ApplyTabs(), CalcMinMax(), DragTabs(), and GetCorrectedDragPos().
|
private |
Definition at line 111 of file ruler.hxx.
Referenced by UpdateTabs().
|
private |
Definition at line 110 of file ruler.hxx.
Referenced by AdjustMargin1(), DragTabs(), EndDrag(), PrepareProportional_Impl(), UpdateParaContents_Impl(), and UpdateTabs().
|
private |
Definition at line 120 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 98 of file ruler.hxx.
Referenced by ApplyBorders(), ApplyMargins(), ConvertHPosLogic(), ConvertHPosPixel(), ConvertHSizeLogic(), ConvertHSizePixel(), ConvertVPosLogic(), ConvertVPosPixel(), ConvertVSizeLogic(), ConvertVSizePixel(), dispose(), DrawLine_Impl(), MakePositionSticky(), MouseMove(), RoundToCurrentMapMode(), and UpdatePage().