LibreOffice Module sd (master) 1
|
#include <fuconbez.hxx>
Public Member Functions | |
void | DoExecute (SfxRequest &rReq) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Activate () override |
activates the function More... | |
virtual void | Deactivate () override |
deactivates the function More... | |
virtual void | SelectionHasChanged () override |
void | SetEditMode (sal_uInt16 nMode) |
Set current bezier edit mode. More... | |
sal_uInt16 | GetEditMode () const |
void | SetAttributes (SfxItemSet &rAttr, SdrObject *pObj) |
set attribute for the object to be created More... | |
virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) override |
Public Member Functions inherited from sd::FuConstruct | |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | Activate () override |
activates the function More... | |
virtual void | Deactivate () override |
deactivates the function More... | |
virtual void | SelectionHasChanged () override |
bool | IsIgnoreUnexpectedMouseButtonUp () |
void | SetStyleSheet (SfxItemSet &rAttr, SdrObject *pObj) |
set style sheet for the object to be created More... | |
void | SetStyleSheet (SfxItemSet &rAttr, SdrObject *pObj, const bool bUseFillStyle, const bool bUseNoFillStyle) |
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 | |
FuConstructBezierPolygon (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
Private Attributes | |
sal_uInt16 | nEditMode |
css::uno::Any | maTargets |
sal_uInt16 | mnTransparence |
OUString | msColor |
sal_uInt16 | mnWidth |
OUString | msShapeName |
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::FuConstruct | |
FuConstruct (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
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 29 of file fuconbez.hxx.
|
private |
|
overridevirtual |
activates the function
Reimplemented from sd::FuConstruct.
Definition at line 287 of file fuconbez.cxx.
References sd::FuConstruct::Activate(), SdrView::EnableExtendedMouseEventDispatcher(), sd::FuPoor::mpView, sd::FuPoor::nSlotId, and SdrCreateView::SetCurrentObj().
|
static |
Definition at line 93 of file fuconbez.cxx.
References sd::FuDraw::bPermanent, FuConstructBezierPolygon(), and sd::FuDraw::SetPermanent().
Referenced by sd::DrawViewShell::FuPermanent().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 407 of file fuconbez.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), basegfx::B2DPolygon::appendBezierSegment(), basegfx::utils::createPolygonFromEllipse(), SdrCreateView::GetCurrentObjIdentifier(), SdrCreateView::GetCurrentObjInventor(), SdrPaintView::getSdrModelFromSdrView(), SdrObjFactory::MakeNewObject(), sd::FuPoor::mpView, and basegfx::B2DPolygon::setClosed().
|
overridevirtual |
deactivates the function
Reimplemented from sd::FuConstruct.
Definition at line 345 of file fuconbez.cxx.
References sd::FuConstruct::Deactivate(), SdrView::EnableExtendedMouseEventDispatcher(), and sd::FuPoor::mpView.
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 102 of file fuconbez.cxx.
References sd::FuPoor::DoExecute(), SfxRequest::GetArg(), SfxRequest::GetArgs(), SfxItemSet::GetItemIfSet(), SfxUnoAnyItem::GetValue(), CntUInt16Item::GetValue(), maTargets, mnTransparence, mnWidth, msColor, msShapeName, and sd::FuPoor::nSlotId.
|
inline |
Definition at line 47 of file fuconbez.hxx.
References nEditMode.
|
overridevirtual |
Reimplemented from sd::FuConstruct.
Definition at line 141 of file fuconbez.cxx.
References sd::FuPoor::aMDPos, SdrDragView::BegInsObjPoint(), SdrView::EnableExtendedMouseEventDispatcher(), SdrCreateView::GetCreateObj(), SdDrawDocument::GetPool(), MouseEvent::IsMod1(), SdrViewEvent::meEvent, FmFormView::MouseButtonDown(), sd::FuConstruct::MouseButtonDown(), sd::FuPoor::mpDoc, sd::FuPoor::mpView, sd::FuPoor::mpWindow, nEditMode, SdrView::PickAnything(), SetAttributes(), SdrCreateView::SetEditMode(), SdrObject::SetMergedItemSet(), and sd::FuConstruct::SetStyleSheet().
|
overridevirtual |
Reimplemented from sd::FuConstruct.
Definition at line 191 of file fuconbez.cxx.
References Any, sd::FuDraw::bMBDown, sd::FuDraw::bPermanent, SdrView::DeleteMarked(), SdrDragView::EndInsObjPoint(), SfxDispatcher::Execute(), SfxViewFrame::GetDispatcher(), SdPage::getMainSequence(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrPageView::GetObjList(), SdrObject::getSdrPageFromSdrObject(), SdrPaintView::GetSdrPageView(), sd::ViewShell::GetViewFrame(), sd::FuConstruct::IsIgnoreUnexpectedMouseButtonUp(), SdrDragView::IsInsObjPoint(), MouseEvent::IsLeft(), maTargets, SdrViewEvent::meEvent, sd::FuConstruct::MouseButtonUp(), SdrView::MouseButtonUp(), sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, nCount, sd::FuPoor::nSlotId, and SdrView::PickAnything().
|
overridevirtual |
Reimplemented from sd::FuConstruct.
Definition at line 352 of file fuconbez.cxx.
References sd::ViewShellBase::GetToolBarManager(), sd::ViewShell::GetViewShellBase(), sd::FuPoor::mpView, sd::FuPoor::mpViewShell, and sd::FuPoor::SelectionHasChanged().
void sd::FuConstructBezierPolygon::SetAttributes | ( | SfxItemSet & | rAttr, |
SdrObject * | pObj | ||
) |
set attribute for the object to be created
Definition at line 379 of file fuconbez.cxx.
References mnTransparence, mnWidth, msColor, msShapeName, sd::FuPoor::nSlotId, SfxItemSet::Put(), and SdrObject::SetName().
Referenced by MouseButtonDown().
void sd::FuConstructBezierPolygon::SetEditMode | ( | sal_uInt16 | nMode | ) |
Set current bezier edit mode.
Definition at line 397 of file fuconbez.cxx.
References sd::FuDraw::ForcePointer(), SfxViewFrame::GetBindings(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), sd::FuPoor::mpViewShell, and nEditMode.
|
private |
Definition at line 65 of file fuconbez.hxx.
Referenced by DoExecute(), and MouseButtonUp().
|
private |
Definition at line 68 of file fuconbez.hxx.
Referenced by DoExecute(), and SetAttributes().
|
private |
Definition at line 70 of file fuconbez.hxx.
Referenced by DoExecute(), and SetAttributes().
|
private |
Definition at line 69 of file fuconbez.hxx.
Referenced by DoExecute(), and SetAttributes().
|
private |
Definition at line 71 of file fuconbez.hxx.
Referenced by DoExecute(), and SetAttributes().
|
private |
Definition at line 64 of file fuconbez.hxx.
Referenced by GetEditMode(), MouseButtonDown(), and SetEditMode().