Base class for all functions.
virtual bool doConstructOrthogonal() const
Decide if the object to be created should be created orthogonal.
virtual bool Command(const CommandEvent &rCEvt)
DECL_LINK(DelayHdl, Timer *, void)
Timer aScrollTimer
for auto-scrolling
virtual void DoCopy()
Copy object to clipboard.
sal_uInt16 GetSlotID() const
FuPoor(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
void SwitchLayer(sal_Int32 nOffset)
Switch to another layer.
virtual bool MouseButtonDown(const MouseEvent &rMEvt)
DrawDocShell * GetDocSh()
virtual bool MouseMove(const MouseEvent &)
sal_uInt16 mnCode
member to hold state of the mouse buttons for creation of own MouseEvents (like in ScrollHdl)
void StartDelayToScrollTimer()
virtual bool MouseButtonUp(const MouseEvent &rMEvt)
virtual bool RequestHelp(const HelpEvent &rHEvt)
virtual bool KeyInput(const KeyEvent &rKEvt)
handle keyboard events
void SetWindow(::sd::Window *pWin)
virtual void Activate()
activates the function
VclPtr< ::sd::Window > mpWindow
Point aMDPos
position of MouseButtonDown
static void ImpForceQuadratic(::tools::Rectangle &rRect)
virtual void DoCut()
Cut object to clipboard.
virtual void DoPasteUnformatted()
Paste unformatted text from clipboard.
bool bNoScrollUntilInside
Flag to prevent auto-scrolling until one drags from outside into the window.
void SetMouseButtonCode(sal_uInt16 nNew)
virtual void DoPaste()
Paste object from clipboard.
virtual ~FuPoor() override
virtual void SelectionHasChanged()
void ForceScroll(const Point &aPixPos)
scroll when approached the border of the window; is called by MouseMove
virtual void Deactivate()
deactivates the function
virtual void ReceiveRequest(SfxRequest &rReq)
Timer aDragTimer
for Drag&Drop
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle &rRectangle)
DECL_LINK(ScrollHdl, Timer *, void)
virtual bool cancel()
is called when the current function should be aborted.
virtual void DoExecute(SfxRequest &rReq)
Timer aDelayToScrollTimer
timer to delay scrolling (~ 1 sec) when dragging out of the window
DECL_LINK(DragHdl, Timer *, void)
sal_uInt16 GetMouseButtonCode() const
A simple base implementation for reference-counted components.
Base class of the stacked shell hierarchy.
An SdWindow contains the actual working area of ViewShell.