LibreOffice Module sd (master) 1
|
#include <fuformatpaintbrush.hxx>
Public Member Functions | |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
handle keyboard events More... | |
virtual void | Activate () override |
activates the function More... | |
virtual void | Deactivate () override |
deactivates the function More... | |
Public Member Functions inherited from sd::FuText | |
virtual void | DoExecute (SfxRequest &rReq) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
handle keyboard events 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 | ReceiveRequest (SfxRequest &rReq) override |
virtual void | DoubleClick (const MouseEvent &rMEvt) override |
Response of doubleclick. More... | |
virtual void | Activate () override |
activates the function More... | |
virtual void | Deactivate () override |
deactivates the function More... | |
void | SetInEditMode (const MouseEvent &rMEvt, bool bQuickDrag) |
Sets the object into the edit mode. More... | |
void | DeleteDefaultText () |
Text entry is started, if necessary delete the default text. More... | |
SdrTextObj * | GetTextObj () |
virtual rtl::Reference< SdrObject > | CreateDefaultObject (const sal_uInt16 nID, const ::tools::Rectangle &rRectangle) override |
Removed the insertion of default text and putting a new text object directly into edit mode. More... | |
virtual bool | cancel () override |
is called when the current function should be aborted. More... | |
void | InvalidateBindings () |
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) |
static void | GetMenuState (DrawViewShell const &rDrawViewShell, SfxItemSet &rSet) |
Static Public Member Functions inherited from sd::FuText | |
static rtl::Reference< FuPoor > | Create (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) |
static void | ChangeFontSize (bool, OutlinerView *, const FontList *, ::sd::View *) |
Private Member Functions | |
FuFormatPaintBrush (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
void | DoExecute (SfxRequest &rReq) override |
bool | HasContentForThisType (SdrInventor nObjectInventor, SdrObjKind nObjectIdentifier) const |
void | Paste (bool, bool) |
void | implcancel () |
Private Attributes | |
std::shared_ptr< SfxItemSet > | mxItemSet |
bool | mbPermanent |
bool | mbOldIsQuickTextEditMode |
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::FuText | |
FuText (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
base class for text functions More... | |
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 28 of file fuformatpaintbrush.hxx.
|
private |
Definition at line 43 of file fuformatpaintbrush.cxx.
Referenced by Create().
|
overridevirtual |
activates the function
Reimplemented from sd::FuText.
Definition at line 203 of file fuformatpaintbrush.cxx.
References sd::ViewShell::GetFrameView(), sd::FrameView::IsQuickEdit(), mbOldIsQuickTextEditMode, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FrameView::SetQuickEdit(), and SdrObjEditView::SetQuickTextEditMode().
|
static |
Definition at line 50 of file fuformatpaintbrush.cxx.
References FuFormatPaintBrush().
Referenced by sd::DrawViewShell::FuPermanent().
|
overridevirtual |
deactivates the function
Reimplemented from sd::FuText.
Definition at line 213 of file fuformatpaintbrush.cxx.
References sd::ViewShell::GetFrameView(), mbOldIsQuickTextEditMode, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FrameView::SetQuickEdit(), and SdrObjEditView::SetQuickTextEditMode().
|
overrideprivatevirtual |
Reimplemented from sd::FuText.
Definition at line 57 of file fuformatpaintbrush.cxx.
References SfxItemSet::Count(), SfxItemSet::Get(), SfxRequest::GetArgs(), mbPermanent, sd::FuPoor::mpView, mxItemSet, and SdrObjEditView::TakeFormatPaintBrush().
|
static |
Definition at line 261 of file fuformatpaintbrush.cxx.
References SfxItemSet::DisableItem(), sd::DrawViewShell::GetDrawView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), rSet, and SdrObjEditView::SupportsFormatPaintbrush().
Referenced by sd::DrawViewShell::GetMenuState().
|
private |
Definition at line 222 of file fuformatpaintbrush.cxx.
References sd::FuPoor::mpView, mxItemSet, and SdrObjEditView::SupportsFormatPaintbrush().
Referenced by MouseMove().
|
private |
Definition at line 71 of file fuformatpaintbrush.cxx.
References SfxDispatcher::Execute(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), and sd::FuPoor::mpViewShell.
Referenced by KeyInput(), and MouseButtonUp().
|
overridevirtual |
handle keyboard events
Reimplemented from sd::FuText.
Definition at line 193 of file fuformatpaintbrush.cxx.
References vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), implcancel(), KEY_ESCAPE, and sd::FuPoor::KeyInput().
|
overridevirtual |
Reimplemented from sd::FuText.
Definition at line 87 of file fuformatpaintbrush.cxx.
References MouseEvent::GetButtons(), MouseEvent::GetClicks(), sd::ViewShell::GetFrameView(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), MouseEvent::GetMode(), MouseEvent::GetPosPixel(), sd::FuPoor::HITPIX, SdrObject::IsEmptyPresObj(), sd::FrameView::IsQuickEdit(), SdrMarkView::MarkObj(), sd::FuText::MouseButtonDown(), SdrViewEvent::mpObj, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, SdrView::PickAnything(), SdrMarkView::PickObj(), sd::unmarkimpl(), and Width.
|
overridevirtual |
Reimplemented from sd::FuText.
Definition at line 164 of file fuformatpaintbrush.cxx.
References SdrMarkView::AreObjectsMarked(), SfxViewFrame::GetBindings(), MouseEvent::GetModifier(), SdrObjEditView::GetTextEditOutlinerView(), sd::ViewShell::GetViewFrame(), implcancel(), SfxBindings::Invalidate(), KEY_MOD1, KEY_SHIFT, mbPermanent, OutlinerView::MouseButtonUp(), sd::FuPoor::mpView, sd::FuPoor::mpViewShell, mxItemSet, and Paste().
|
overridevirtual |
Reimplemented from sd::FuText.
Definition at line 140 of file fuformatpaintbrush.cxx.
References SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), MouseEvent::GetPosPixel(), HasContentForThisType(), sd::FuPoor::HITPIX, SdrObjEditView::IsTextEdit(), sd::FuText::MouseMove(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, SdrMarkView::PickObj(), and Width.
|
private |
Definition at line 231 of file fuformatpaintbrush.cxx.
References SdrModel::AddUndo(), SdrObjEditView::ApplyFormatPaintBrush(), SdrModel::BegUndo(), SdrUndoFactory::CreateUndoAttrObject(), SdrModel::EndUndo(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrModel::GetSdrUndoFactory(), SdrObjEditView::GetTextEditOutlinerView(), sd::ViewShell::GetViewShellBase(), SdrModel::IsUndoEnabled(), sd::FuPoor::mpDoc, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, mxItemSet, and sd::ViewShellBase::RetrieveLabelFromCommand().
Referenced by MouseButtonUp().
|
private |
Definition at line 56 of file fuformatpaintbrush.hxx.
Referenced by Activate(), and Deactivate().
|
private |
Definition at line 55 of file fuformatpaintbrush.hxx.
Referenced by DoExecute(), and MouseButtonUp().
|
private |
Definition at line 54 of file fuformatpaintbrush.hxx.
Referenced by DoExecute(), HasContentForThisType(), MouseButtonUp(), and Paste().