LibreOffice Module sd (master) 1
|
#include <fuediglu.hxx>
Public Member Functions | |
virtual void | DoExecute (SfxRequest &rReq) override |
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 | Command (const CommandEvent &rCEvt) override |
virtual void | ReceiveRequest (SfxRequest &rReq) override |
virtual void | Activate () override |
activates the function More... | |
virtual void | Deactivate () override |
deactivates the function More... | |
virtual void | ForcePointer (const MouseEvent *pMEvt=nullptr) override |
Toggle mouse-pointer. More... | |
Public Member Functions inherited from sd::FuDraw | |
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 |
DrawDocShell * | GetDocSh () |
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< SdrObject > | CreateDefaultObject (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 |
Static Public Member Functions | |
static rtl::Reference< FuPoor > | Create (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool bPermanent) |
Private Member Functions | |
FuEditGluePoints (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
virtual | ~FuEditGluePoints () override |
Private Attributes | |
bool | bBeginInsertPoint |
Point | oldPoint |
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 |
Protected Member Functions inherited from sd::FuDraw | |
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 () |
Static Protected Member Functions inherited from sd::FuPoor | |
static void | ImpForceQuadratic (::tools::Rectangle &rRect) |
Protected Attributes inherited from sd::FuDraw | |
PointerStyle | aNewPointer |
PointerStyle | aOldPointer |
bool | bMBDown |
bool | bDragHelpLine |
sal_uInt16 | nHelpLine |
bool | bPermanent |
Protected Attributes inherited from sd::FuPoor | |
::sd::View * | mpView |
ViewShell * | mpViewShell |
VclPtr< ::sd::Window > | mpWindow |
DrawDocShell * | mpDocSh |
SdDrawDocument * | mpDoc |
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 |
Definition at line 26 of file fuediglu.hxx.
|
private |
Definition at line 36 of file fuediglu.cxx.
Referenced by Create().
|
overrideprivatevirtual |
Definition at line 68 of file fuediglu.cxx.
References SdrCreateView::BrkAction(), sd::FuPoor::mpView, SdrDragView::SetInsGluePointMode(), and SdrMarkView::UnmarkAllGluePoints().
|
overridevirtual |
activates the function
Reimplemented from sd::FuDraw.
Definition at line 369 of file fuediglu.cxx.
References sd::FuDraw::Activate(), sd::FuPoor::mpView, and SdrCreateView::SetGluePointEditMode().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 363 of file fuediglu.cxx.
References sd::FuPoor::Command(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, and SdrSnapView::SetActualWin().
|
static |
Definition at line 50 of file fuediglu.cxx.
References sd::FuDraw::bPermanent, FuEditGluePoints(), and sd::FuDraw::SetPermanent().
Referenced by sd::DrawViewShell::FuPermanent().
|
overridevirtual |
deactivates the function
Reimplemented from sd::FuPoor.
Definition at line 375 of file fuediglu.cxx.
References sd::FuPoor::Deactivate(), sd::FuPoor::mpView, and SdrCreateView::SetGluePointEditMode().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 59 of file fuediglu.cxx.
References sd::FuPoor::DoExecute(), sd::ToolBarManager::Function, sd::ViewShellBase::GetToolBarManager(), sd::ViewShell::GetViewShellBase(), sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::ToolBarManager::msGluePointsToolBar, and SdrDragView::SetInsGluePointMode().
|
overridevirtual |
Toggle mouse-pointer.
Reimplemented from sd::FuDraw.
Definition at line 349 of file fuediglu.cxx.
References bBeginInsertPoint, sd::FuDraw::ForcePointer(), MouseEvent::GetButtons(), MouseEvent::GetClicks(), MouseEvent::GetMode(), MouseEvent::GetModifier(), MouseEvent::GetPosPixel(), and KEY_SHIFT.
Referenced by MouseButtonDown(), and MouseMove().
|
overridevirtual |
Process keyboard input.
Reimplemented from sd::FuDraw.
Definition at line 256 of file fuediglu.cxx.
References bBeginInsertPoint, tools::Rectangle::Center(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), SdrMarkView::GetMarkedObjRect(), SdrDragView::IsInsGluePointMode(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_LEFT, KEY_RETURN, KEY_RIGHT, KEY_SHIFT, KEY_UP, sd::FuDraw::KeyInput(), MOUSE_LEFT, MouseButtonDown(), MouseButtonUp(), MouseMove(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, oldPoint, and SdrSnapView::SetActualWin().
|
overridevirtual |
Reimplemented from sd::FuDraw.
Definition at line 75 of file fuediglu.cxx.
References sd::FuPoor::aMDPos, SdrMarkView::AreObjectsMarked(), SdrCreateView::BckAction(), E3dView::BegDragObj(), SdrDragView::BegInsGluePoint(), SdrMarkView::BegMarkGluePoints(), SdrMarkView::BegMarkObj(), ForcePointer(), SdrDragView::GetDragThresholdPixels(), SdrMarkView::GetGluePointHdl(), sd::FuPoor::HITPIX, SdrCreateView::IsAction(), SdrMarkView::IsGluePointMarked(), SdrDragView::IsInsGluePointMode(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), MouseEvent::IsMod2(), MouseEvent::IsRight(), MouseEvent::IsShift(), SdrMarkView::MarkGluePoint(), SdrMarkView::MarkNextObj(), SdrMarkView::MarkObj(), SdrViewEvent::mnGlueId, sd::FuDraw::MouseButtonDown(), SdrViewEvent::mpHdl, SdrViewEvent::mpObj, sd::FuPoor::mpView, sd::FuPoor::mpWindow, SdrView::PickAnything(), SdrSnapView::SetActualWin(), SdrMarkView::UnmarkAllGluePoints(), SdrMarkView::UnmarkAllObj(), SdrMarkView::UnmarkGluePoint(), and Width.
Referenced by KeyInput().
|
overridevirtual |
Reimplemented from sd::FuDraw.
Definition at line 216 of file fuediglu.cxx.
References sd::FuPoor::aMDPos, SdrCreateView::EndAction(), SdrDragView::GetDragThresholdPixels(), MouseEvent::GetPosPixel(), SdrCreateView::IsAction(), MouseEvent::IsMod2(), MouseEvent::IsShift(), sd::FuDraw::MouseButtonUp(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, SdrView::PickAnything(), SdrSnapView::SetActualWin(), SdrMarkView::UnmarkAllObj(), Point::X(), and Point::Y().
Referenced by KeyInput().
|
overridevirtual |
Reimplemented from sd::FuDraw.
Definition at line 197 of file fuediglu.cxx.
References ForcePointer(), sd::FuPoor::ForceScroll(), MouseEvent::GetPosPixel(), SdrCreateView::IsAction(), sd::FuDraw::MouseMove(), E3dView::MovAction(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, and SdrSnapView::SetActualWin().
Referenced by KeyInput().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 381 of file fuediglu.cxx.
References SfxItemSet::Get(), SfxRequest::GetArgs(), SfxRequest::GetSlot(), GetValue, SdrDragView::IsInsGluePointMode(), SdrGlueEditView::IsMarkedGluePointsEscDir(), sd::FuPoor::mpView, sd::FuPoor::ReceiveRequest(), SdrDragView::SetInsGluePointMode(), SdrGlueEditView::SetMarkedGluePointsAlign(), SdrGlueEditView::SetMarkedGluePointsEscDir(), and SdrGlueEditView::SetMarkedGluePointsPercent().
Referenced by sd::DrawViewShell::FuSupport().
|
private |
Definition at line 50 of file fuediglu.hxx.
Referenced by ForcePointer(), and KeyInput().
|
private |
Definition at line 51 of file fuediglu.hxx.
Referenced by KeyInput().