LibreOffice Module sd (master) 1
|
text functions in outline mode More...
#include <fuoltext.hxx>
Public Member Functions | |
virtual bool | Command (const CommandEvent &rCEvt) override |
forward to OutlinerView More... | |
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 void | DoCut () override |
Cut object to clipboard. More... | |
virtual void | DoCopy () override |
Copy object to clipboard. More... | |
virtual void | DoPaste () override |
Paste object from clipboard. More... | |
virtual void | DoPasteUnformatted () override |
Paste object as unformatted text from clipboard. More... | |
void | UpdateForKeyPress (const KeyEvent &rEvent) |
Call this method when the text in the outliner (may) has changed. 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) |
Private Member Functions | |
FuOutlineText (ViewShell *pViewShell, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
Private Attributes | |
OutlineViewShell * | pOutlineViewShell |
OutlineView * | pOutlineView |
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::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::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 |
text functions in outline mode
Definition at line 37 of file fuoltext.hxx.
|
private |
Definition at line 86 of file fuoltext.cxx.
Referenced by Create().
|
overridevirtual |
forward to OutlinerView
Reimplemented from sd::FuPoor.
Definition at line 98 of file fuoltext.cxx.
References OutlinerView::Command(), DBG_ASSERT, sd::FuPoor::mpView, and sd::FuPoor::mpWindow.
|
static |
Definition at line 115 of file fuoltext.cxx.
References FuOutlineText().
Referenced by sd::OutlineViewShell::FuPermanent().
|
overridevirtual |
Copy object to clipboard.
Reimplemented from sd::FuPoor.
Definition at line 276 of file fuoltext.cxx.
References OutlinerView::Copy(), sd::OutlineView::GetViewByWindow(), sd::FuPoor::mpWindow, and pOutlineView.
|
overridevirtual |
Cut object to clipboard.
Reimplemented from sd::FuPoor.
Definition at line 268 of file fuoltext.cxx.
References OutlinerView::Cut(), sd::OutlineView::GetViewByWindow(), sd::FuPoor::mpWindow, and pOutlineView.
|
overridevirtual |
Paste object from clipboard.
Reimplemented from sd::FuPoor.
Definition at line 284 of file fuoltext.cxx.
References sd::OutlineView::GetViewByWindow(), sd::FuPoor::mpWindow, OutlinerView::PasteSpecial(), and pOutlineView.
|
overridevirtual |
Paste object as unformatted text from clipboard.
Reimplemented from sd::FuPoor.
Definition at line 292 of file fuoltext.cxx.
References TransferableDataHelper::CreateFromSystemClipboard(), sd::ViewShell::GetActiveWindow(), TransferableDataHelper::GetString(), TransferableDataHelper::GetTransferable(), sd::OutlineView::GetViewByWindow(), OutlinerView::InsertText(), sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, and pOutlineView.
|
overridevirtual |
Process keyboard input.
Reimplemented from sd::FuPoor.
Definition at line 207 of file fuoltext.cxx.
References vcl::KeyCode::GetGroup(), KeyEvent::GetKeyCode(), sd::OutlineView::GetViewByWindow(), SfxObjectShell::IsReadOnly(), KEYGROUP_CURSOR, KEYGROUP_FKEYS, sd::FuPoor::KeyInput(), sd::FuPoor::mpDocSh, sd::FuPoor::mpWindow, OutlinerView::PostKeyEvent(), pOutlineView, and UpdateForKeyPress().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 122 of file fuoltext.cxx.
References SfxViewFrame::GetBindings(), sd::OutlineView::GetViewByWindow(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), OutlinerView::MouseButtonDown(), sd::FuPoor::MouseButtonDown(), sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, pOutlineView, and sd::SidArray.
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 153 of file fuoltext.cxx.
References SfxDispatcher::ExecuteList(), SfxViewFrame::GetBindings(), SfxViewFrame::GetDispatcher(), SvxFieldItem::GetField(), OutlinerView::GetFieldUnderMousePointer(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), sd::OutlineView::GetViewByWindow(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), MouseEvent::IsMod1(), OutlinerView::MouseButtonUp(), sd::FuPoor::MouseButtonUp(), sd::FuPoor::mpDocSh, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, pOutlineView, and sd::SidArray.
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 141 of file fuoltext.cxx.
References sd::OutlineView::GetViewByWindow(), OutlinerView::MouseMove(), sd::FuPoor::MouseMove(), sd::FuPoor::mpWindow, and pOutlineView.
void sd::FuOutlineText::UpdateForKeyPress | ( | const KeyEvent & | rEvent | ) |
Call this method when the text in the outliner (may) has changed.
It will invalidate some slots of the view frame and update the preview in the slide sorter.
Definition at line 235 of file fuoltext.cxx.
References sd::OutlineViewShell::GetActualPage(), SfxViewFrame::GetBindings(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), sd::ViewShell::GetViewFrame(), SfxBindings::Invalidate(), KEY_DOWN, KEY_END, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_UP, sd::FuPoor::mpViewShell, pOutlineViewShell, sd::SidArray, and sd::OutlineViewShell::UpdatePreview().
Referenced by sd::OutlineViewShell::FuSupport(), and KeyInput().
|
private |
Definition at line 71 of file fuoltext.hxx.
Referenced by DoCopy(), DoCut(), DoPaste(), DoPasteUnformatted(), KeyInput(), MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 70 of file fuoltext.hxx.
Referenced by UpdateForKeyPress().