LibreOffice Module sd (master) 1
|
#include <fuinsfil.hxx>
Public Member Functions | |
virtual void | DoExecute (SfxRequest &rReq) override |
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 | GetSupportedFilterVector (::std::vector< OUString > &rFilterVector) |
Private Member Functions | |
FuInsertFile (ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq) | |
void | InsTextOrRTFinOlMode (SfxMedium *pMedium) |
bool | InsSDDinOlMode (SfxMedium *pMedium) |
void | InsTextOrRTFinDrMode (SfxMedium *pMedium) |
bool | InsSDDinDrMode (SfxMedium *pMedium) |
Private Attributes | |
OUString | aLayoutName |
layout name of the currently inserted page More... | |
OUString | aFilterName |
chosen file filter More... | |
OUString | aFile |
chosen file name 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 |
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 |
Definition at line 30 of file fuinsfil.hxx.
|
private |
Definition at line 105 of file fuinsfil.cxx.
Referenced by Create().
|
static |
Definition at line 115 of file fuinsfil.cxx.
References FuInsertFile().
Referenced by sd::DrawViewShell::FuTemporary(), sd::OutlineViewShell::FuTemporaryModify(), and sd::IMPL_LINK_NOARG().
|
overridevirtual |
Reimplemented from sd::FuPoor.
Definition at line 122 of file fuinsfil.cxx.
References aFile, aFilterName, Application::CreateMessageDialog(), sfx2::FileDialogHelper::DrawImpressInsertFile, ERRCODE_NONE, sfx2::FileDialogHelper::Execute(), SfxRequest::GetArg(), SfxRequest::GetArgs(), sfx2::FileDialogHelper::GetCurrentFilter(), SfxFilter::GetDefaultFilterFromFactory(), SdDrawDocument::GetDocumentType(), sfx2::FileDialogHelper::GetFilePicker(), SfxFilterMatcher::GetFilter4ClipBoardId(), SfxFilterMatcher::GetFilter4Extension(), SfxFilterMatcher::GetFilter4Mime(), SfxApplication::GetFilterMatcher(), sfx2::FileDialogHelper::GetPath(), GetSupportedFilterVector(), CntUnencodedStringItem::GetValue(), SfxFilterMatcher::GuessFilter(), Impress, InsSDDinDrMode(), InsSDDinOlMode(), InsTextOrRTFinDrMode(), InsTextOrRTFinOlMode(), SotStorage::IsStorageFile(), sd::FuPoor::mpDoc, sd::FuPoor::mpDocSh, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, SdResId(), sfx2::FileDialogHelper::SetContext(), sfx2::FileDialogHelper::SetTitle(), SfxObjectShell::SetWaitCursor(), and SfxGetpApp().
|
static |
Definition at line 704 of file fuinsfil.cxx.
References SfxFilterMatcher::GetFilter4Mime(), SfxApplication::GetFilterMatcher(), and SfxGetpApp().
Referenced by DoExecute(), and sd::IMPL_LINK_NOARG().
|
private |
Definition at line 312 of file fuinsfil.cxx.
References aFile, SdAbstractDialogFactory::Create(), SdAbstractDialogFactory::CreateSdInsertPagesObjsDlg(), sd::View::GetExchangeList(), sd::ViewShell::GetFrameWeld(), SdrPageView::GetPage(), SdPage::GetPageKind(), SdrPage::GetPageNum(), SdrPaintView::GetSdrPageView(), sd::ViewShell::GetView(), SdDrawDocument::InsertBookmarkAsObject(), SdDrawDocument::InsertBookmarkAsPage(), SdrPage::IsMasterPage(), sd::FuPoor::mpDoc, sd::FuPoor::mpDocSh, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, Notes, nPos, SdDrawDocument::RemoveUnnecessaryMasterPages(), RET_OK, SfxObjectShell::SetWaitCursor(), and Standard.
Referenced by DoExecute(), and InsSDDinOlMode().
|
private |
Definition at line 660 of file fuinsfil.cxx.
References Outliner::Clear(), sd::OutlineView::FillOutliner(), Outliner::GetBeginMovingHdl(), Outliner::GetDepthChangedHdl(), Outliner::GetEndMovingHdl(), OutlinerView::GetOutliner(), Outliner::GetParaInsertedHdl(), Outliner::GetParaRemovingHdl(), Outliner::GetStatusEventHdl(), sd::OutlineView::GetViewByWindow(), InsSDDinDrMode(), sd::FuPoor::mpView, sd::FuPoor::mpWindow, sd::OutlineView::PrepareClose(), Outliner::SetBeginMovingHdl(), Outliner::SetDepthChangedHdl(), Outliner::SetEndMovingHdl(), Outliner::SetParaInsertedHdl(), Outliner::SetParaRemovingHdl(), and Outliner::SetStatusEventHdl().
Referenced by DoExecute().
|
private |
Definition at line 397 of file fuinsfil.cxx.
References SdrEditView::AddUndo(), Point::AdjustX(), Point::AdjustY(), aFile, aFilterName, aLayoutName, SdrEditView::BegUndo(), SdAbstractDialogFactory::Create(), Application::CreateMessageDialog(), SdAbstractDialogFactory::CreateSdInsertPagesObjsDlg(), SdrUndoFactory::CreateUndoInsertObject(), SdrEditView::EndUndo(), SfxMedium::GetBaseURL(), sd::ViewShell::GetFrameWeld(), SfxObjectShell::GetHeaderAttributes(), SfxMedium::GetInStream(), SdPage::GetLayoutName(), SdrModel::GetMaxObjSize(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), SdrPaintView::getSdrModelFromSdrView(), SdrModel::GetSdrUndoFactory(), SdrPage::GetSize(), SdrObjEditView::GetTextEditObject(), SdrObjEditView::GetTextEditOutlinerView(), Size::Height(), FmFormPage::InsertObject(), OutlinerView::InsertText(), SdrPage::IsMasterPage(), SdrEditView::IsUndoEnabled(), MasterPage, sd::FuPoor::mpDoc, sd::FuPoor::mpDocSh, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, nIndex, RET_OK, SD_LT_SEPARATOR, SD_MOD, SdResId(), SvStream::Seek(), Size::setHeight(), SfxObjectShell::SetWaitCursor(), Size::setWidth(), SdrPage::TRG_GetMasterPage(), and Size::Width().
Referenced by DoExecute().
|
private |
Definition at line 530 of file fuinsfil.cxx.
References aFilterName, aLayoutName, Application::CreateMessageDialog(), OutlinerView::CreateSelectionList(), DBG_ASSERT, SfxUndoManager::EnterListAction(), SfxStyleSheetBasePool::Find(), Outliner::GetAbsPos(), SfxMedium::GetBaseURL(), Outliner::GetDepth(), Outliner::GetEditEngine(), SfxStyleSheetBase::GetFamily(), SfxObjectShell::GetHeaderAttributes(), SfxMedium::GetInStream(), SdrModel::GetItemPool(), SdPage::GetLayoutName(), SfxStyleSheetBase::GetName(), Outliner::GetParagraph(), Outliner::GetParagraphCount(), Outliner::GetParent(), SdDrawDocument::GetSdPage(), SdPage::GetStyleSheetForPresObj(), SdrModel::GetStyleSheetPool(), EditEngine::GetText(), Outliner::GetText(), Outliner::GetUndoManager(), Outliner::GetView(), sd::ViewShell::GetViewShellBase(), SfxViewShell::GetViewShellId(), Outliner::HasParaFlag(), Outliner::Insert(), SfxUndoManager::LeaveListAction(), sd::FuPoor::mpDoc, sd::FuPoor::mpDocSh, sd::FuPoor::mpView, sd::FuPoor::mpViewShell, sd::FuPoor::mpWindow, nIndex, nPos, Outline, Outliner::Read(), SD_LT_SEPARATOR, SD_MOD, SdResId(), SvStream::Seek(), Outliner::SetPaperSize(), Outliner::SetRefDevice(), Outliner::SetStyleSheet(), Outliner::SetStyleSheetPool(), SfxObjectShell::SetWaitCursor(), and Standard.
Referenced by DoExecute().
|
private |
chosen file name
Definition at line 50 of file fuinsfil.hxx.
Referenced by DoExecute(), InsSDDinDrMode(), and InsTextOrRTFinDrMode().
|
private |
chosen file filter
Definition at line 49 of file fuinsfil.hxx.
Referenced by DoExecute(), InsTextOrRTFinDrMode(), and InsTextOrRTFinOlMode().
|
private |
layout name of the currently inserted page
Definition at line 48 of file fuinsfil.hxx.
Referenced by InsTextOrRTFinDrMode(), and InsTextOrRTFinOlMode().