23#include <svx/svxids.hrc>
61 case SID_RULER_NULL_OFFSET:
64 DBG_ASSERT(pState ==
nullptr || pItem !=
nullptr,
"SfxPointItem expected");
73 :
SvxRuler(pParent, pWin, nRulerFlags, rBindings, nWinStyle)
74 , pDrViewShell(&rViewSh)
113 (
eType == RulerType::DontKnow ||
eType == RulerType::Outside) )
118 SvxRuler::MouseButtonDown(rMEvt);
125 if (
bHorz ) nOffset = rOffset.
X();
126 else nOffset = rOffset.
Y();
133 if( rCEvt.
GetCommand() == CommandEventId::ContextMenu &&
CommandEventId GetCommand() const
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual bool IsTextEdit() const final override
void LeaveRegistrations(std::string_view pFile={}, int nLine=0)
sal_uInt16 EnterRegistrations(std::string_view pFile={}, int nLine=0)
const Point & GetValue() const
virtual void Command(const CommandEvent &rCEvt) override
virtual void ExtraDown() override
void SetNullOffsetLogic(tools::Long lOff)
virtual void dispose() override
Base class of the stacked shells that provide graphical views to Draw and Impress documents and editi...
void StartRulerDrag(const Ruler &rRuler, const MouseEvent &rMEvt)
Start with Drag from ruler (helper lines, origin)
Controller-Item for ruler.
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem *pItem) override
RulerCtrlItem(Ruler &rRlr, SfxBindings &rBind)
Ruler(DrawViewShell &rViewSh, vcl::Window *pParent, ::sd::Window *pWin, SvxRulerSupportFlags nRulerFlags, SfxBindings &rBindings, WinBits nWinStyle)
virtual void Command(const CommandEvent &rCEvt) override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual ~Ruler() override
virtual void dispose() override
virtual void ExtraDown() override
std::unique_ptr< RulerCtrlItem > pCtrlItem
DrawViewShell * pDrViewShell
void SetNullOffset(const Point &rOffset)
::sd::View * GetView() const
An SdWindow contains the actual working area of ViewShell.
#define DBG_ASSERT(sCon, aError)
virtual void SetHelpId(const OUString &) override
constexpr OUStringLiteral HID_SD_RULER_HORIZONTAL
constexpr OUStringLiteral HID_SD_RULER_VERTICAL