LibreOffice Module sd (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
sd::FuDraw Class Reference

Base class for all Draw specific functions. More...

#include <fudraw.hxx>

Inheritance diagram for sd::FuDraw:
[legend]
Collaboration diagram for sd::FuDraw:
[legend]

Public Member Functions

virtual bool KeyInput (const KeyEvent &rKEvt) override
 Process keyboard input. More...
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool RequestHelp (const HelpEvent &rHEvt) override
 
virtual void Activate () override
 activates the function More...
 
virtual void ForcePointer (const MouseEvent *pMEvt=nullptr)
 Toggle mouse-pointer. More...
 
virtual void DoubleClick (const MouseEvent &rMEvt)
 Response of doubleclick. More...
 
bool SetPointer (const SdrObject *pObj, const Point &rPos)
 Set cursor to pointer when in clickable area of an ImageMap. More...
 
bool SetHelpText (const SdrObject *pObj, const Point &rPos, const SdrViewEvent &rVEvt)
 
void SetPermanent (bool bSet)
 
virtual bool cancel () override
 is called when the current function should be aborted. More...
 
- Public Member Functions inherited from sd::FuPoor
virtual void DoExecute (SfxRequest &rReq)
 
void SetMouseButtonCode (sal_uInt16 nNew)
 
sal_uInt16 GetMouseButtonCode () const
 
DrawDocShellGetDocSh ()
 
virtual void DoCut ()
 Cut object to clipboard. More...
 
virtual void DoCopy ()
 Copy object to clipboard. More...
 
virtual void DoPaste ()
 Paste object from clipboard. More...
 
virtual void DoPasteUnformatted ()
 Paste unformatted text from clipboard. More...
 
virtual bool KeyInput (const KeyEvent &rKEvt)
 handle keyboard events More...
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt)
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt)
 
virtual bool Command (const CommandEvent &rCEvt)
 
virtual bool RequestHelp (const HelpEvent &rHEvt)
 
virtual void ReceiveRequest (SfxRequest &rReq)
 
virtual void Activate ()
 activates the function More...
 
virtual void Deactivate ()
 deactivates the function More...
 
void SetWindow (::sd::Window *pWin)
 
virtual void SelectionHasChanged ()
 
sal_uInt16 GetSlotID () const
 
void StartDelayToScrollTimer ()
 
virtual rtl::Reference< SdrObjectCreateDefaultObject (const sal_uInt16 nID, const ::tools::Rectangle &rRectangle)
 
virtual bool cancel ()
 is called when the current function should be aborted. More...
 
virtual bool doConstructOrthogonal () const
 Decide if the object to be created should be created orthogonal. More...
 
- Public Member Functions inherited from sd::SimpleReferenceComponent
 SimpleReferenceComponent ()
 
void acquire ()
 @ATTENTION The results are undefined if, for any individual instance of SimpleReferenceComponent, the total number of calls to acquire() exceeds the total number of calls to release() by a platform dependent amount (which, hopefully, is quite large). More...
 
void release ()
 
void Dispose ()
 
bool isDisposed () const
 

Protected Member Functions

 FuDraw (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
 Base-class for all drawmodul-specific functions. More...
 
virtual ~FuDraw () override
 
- Protected Member Functions inherited from sd::FuPoor
 FuPoor (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
 
virtual ~FuPoor () override
 
 DECL_LINK (DelayHdl, Timer *, void)
 
void SwitchLayer (sal_Int32 nOffset)
 Switch to another layer. More...
 
 DECL_LINK (ScrollHdl, Timer *, void)
 
void ForceScroll (const Point &aPixPos)
 scroll when approached the border of the window; is called by MouseMove More...
 
 DECL_LINK (DragHdl, Timer *, void)
 
- Protected Member Functions inherited from sd::SimpleReferenceComponent
virtual void disposing ()
 
virtual ~SimpleReferenceComponent ()
 

Protected Attributes

PointerStyle aNewPointer
 
PointerStyle aOldPointer
 
bool bMBDown
 
bool bDragHelpLine
 
sal_uInt16 nHelpLine
 
bool bPermanent
 
- Protected Attributes inherited from sd::FuPoor
::sd::ViewmpView
 
ViewShellmpViewShell
 
VclPtr< ::sd::WindowmpWindow
 
DrawDocShellmpDocSh
 
SdDrawDocumentmpDoc
 
sal_uInt16 nSlotId
 
Timer aScrollTimer
 for auto-scrolling More...
 
Timer aDragTimer
 for Drag&Drop More...
 
bool bIsInDragMode
 
Point aMDPos
 position of MouseButtonDown More...
 
bool bNoScrollUntilInside
 Flag to prevent auto-scrolling until one drags from outside into the window. More...
 
Timer aDelayToScrollTimer
 timer to delay scrolling (~ 1 sec) when dragging out of the window More...
 
bool bScrollable
 
bool bDelayActive
 
bool bFirstMouseMove
 

Private Member Functions

void DoModifiers (const MouseEvent &rMEvt, bool bSnapModPressed)
 Code shared by MouseButtonDown and MouseMove. More...
 

Additional Inherited Members

- Static Public Attributes inherited from sd::FuPoor
static const int HITPIX = 2
 
static const int HITLOG = 53
 
static const int DRGLOG = 53
 
- Static Protected Member Functions inherited from sd::FuPoor
static void ImpForceQuadratic (::tools::Rectangle &rRect)
 

Detailed Description

Base class for all Draw specific functions.

Definition at line 32 of file fudraw.hxx.

Constructor & Destructor Documentation

◆ FuDraw()

FuDraw::FuDraw ( ViewShell pViewSh,
::sd::Window pWin,
::sd::View pView,
SdDrawDocument pDoc,
SfxRequest rReq 
)
protected

Base-class for all drawmodul-specific functions.

Definition at line 65 of file fudraw.cxx.

References Arrow.

◆ ~FuDraw()

FuDraw::~FuDraw ( )
overrideprotectedvirtual

Definition at line 77 of file fudraw.cxx.

References SdrCreateView::BrkAction(), and sd::FuPoor::mpView.

Member Function Documentation

◆ Activate()

void FuDraw::Activate ( )
overridevirtual

◆ cancel()

bool FuDraw::cancel ( )
overridevirtual

is called when the current function should be aborted.

This is used when a function gets a KEY_ESCAPE but can also be called directly.

Returns
true if an active function was aborted

Reimplemented from sd::FuPoor.

Reimplemented in sd::FuSelection, and sd::FuText.

Definition at line 773 of file fudraw.cxx.

References SdrMarkView::AreObjectsMarked(), SdrCreateView::BrkAction(), SfxDispatcher::Execute(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), SdrCreateView::IsAction(), SdrObjEditView::IsTextEdit(), sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::View::SdrEndTextEdit(), and SdrView::UnmarkAll().

Referenced by KeyInput().

◆ DoModifiers()

void FuDraw::DoModifiers ( const MouseEvent rMEvt,
bool  bSnapModPressed 
)
private

◆ DoubleClick()

void FuDraw::DoubleClick ( const MouseEvent rMEvt)
virtual

◆ ForcePointer()

void FuDraw::ForcePointer ( const MouseEvent pMEvt = nullptr)
virtual

◆ KeyInput()

bool FuDraw::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ MouseButtonDown()

bool FuDraw::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ MouseButtonUp()

bool FuDraw::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual

◆ MouseMove()

bool FuDraw::MouseMove ( const MouseEvent rMEvt)
overridevirtual

◆ RequestHelp()

bool FuDraw::RequestHelp ( const HelpEvent rHEvt)
overridevirtual

◆ SetHelpText()

bool FuDraw::SetHelpText ( const SdrObject pObj,
const Point rPos,
const SdrViewEvent rVEvt 
)

◆ SetPermanent()

void sd::FuDraw::SetPermanent ( bool  bSet)
inline

◆ SetPointer()

bool FuDraw::SetPointer ( const SdrObject pObj,
const Point rPos 
)

Member Data Documentation

◆ aNewPointer

PointerStyle sd::FuDraw::aNewPointer
protected

Definition at line 71 of file fudraw.hxx.

Referenced by sd::FuConstructUnoControl::Activate().

◆ aOldPointer

PointerStyle sd::FuDraw::aOldPointer
protected

◆ bDragHelpLine

bool sd::FuDraw::bDragHelpLine
protected

Definition at line 74 of file fudraw.hxx.

Referenced by MouseButtonDown(), and MouseButtonUp().

◆ bMBDown

bool sd::FuDraw::bMBDown
protected

◆ bPermanent

bool sd::FuDraw::bPermanent
protected

◆ nHelpLine

sal_uInt16 sd::FuDraw::nHelpLine
protected

Definition at line 75 of file fudraw.hxx.

Referenced by MouseButtonDown(), and MouseButtonUp().


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