LibreOffice Module sd (master) 1
|
Provide master page objects for template documents for which only the URL is given. More...
#include <MasterPageContainerProviders.hxx>
Public Member Functions | |
TemplatePageObjectProvider (OUString sURL) | |
virtual | ~TemplatePageObjectProvider () |
virtual SdPage * | operator() (SdDrawDocument *pDocument) override |
Return a master page either by returning an already existing one, by creating a new page, or by loading a document. More... | |
virtual int | GetCostIndex () override |
An abstract value for the expected cost of providing a master page object. More... | |
virtual SdPage * | operator() (SdDrawDocument *pDocument)=0 |
Return a master page either by returning an already existing one, by creating a new page, or by loading a document. More... | |
virtual int | GetCostIndex ()=0 |
An abstract value for the expected cost of providing a master page object. More... | |
Private Member Functions | |
::sd::DrawDocShell * | LoadDocument (const OUString &sFileName) |
Private Attributes | |
OUString | msURL |
SfxObjectShellLock | mxDocumentShell |
Additional Inherited Members | |
![]() | |
~PageObjectProvider () | |
Provide master page objects for template documents for which only the URL is given.
Definition at line 117 of file MasterPageContainerProviders.hxx.
|
explicit |
Definition at line 102 of file MasterPageContainerProviders.cxx.
|
inlinevirtual |
Definition at line 121 of file MasterPageContainerProviders.hxx.
|
overridevirtual |
An abstract value for the expected cost of providing a master page object.
Implements sd::sidebar::PageObjectProvider.
Definition at line 153 of file MasterPageContainerProviders.cxx.
|
private |
Definition at line 139 of file MasterPageContainerProviders.cxx.
References SfxShell::GetPool(), SfxApplication::LoadTemplate(), mxDocumentShell, and SfxGetpApp().
Referenced by operator()().
|
overridevirtual |
Return a master page either by returning an already existing one, by creating a new page, or by loading a document.
pDocument | The document of the MasterPageContainer. It may be used to create new pages. |
Implements sd::sidebar::PageObjectProvider.
Definition at line 107 of file MasterPageContainerProviders.cxx.
References DBG_UNHANDLED_EXCEPTION, sd::DrawDocShell::GetDoc(), SdDrawDocument::GetMasterSdPage(), LoadDocument(), msURL, mxDocumentShell, SdPage::SetPrecious(), and Standard.
|
private |
Definition at line 126 of file MasterPageContainerProviders.hxx.
Referenced by operator()().
|
private |
Definition at line 127 of file MasterPageContainerProviders.hxx.
Referenced by LoadDocument(), and operator()().