LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
SdDrawDocument Class Referencefinal

#include <drawdoc.hxx>

Inheritance diagram for SdDrawDocument:
[legend]
Collaboration diagram for SdDrawDocument:
[legend]

Public Member Functions

SAL_DLLPRIVATE void setDocAccTitle (const OUString &rTitle)
 
SAL_DLLPRIVATE const OUString & getDocAccTitle () const
 
SAL_DLLPRIVATE bool getDocReadOnly () const
 
SAL_DLLPRIVATE SdDrawDocument (DocumentType eType, SfxObjectShell *pDocSh)
 
virtual SAL_DLLPRIVATE ~SdDrawDocument () override
 
virtual void adaptSizeAndBorderForAllPages (const Size &rNewSize, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0) override
 
void AdaptPageSizeForAllPages (const Size &rNewSize, PageKind ePageKind, SdUndoGroup *pUndoGroup=nullptr, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0, bool bScaleAll=false, Orientation eOrientation=Orientation::Landscape, sal_uInt16 nPaperBin=0, bool bBackgroundFullSize=false)
 
SAL_DLLPRIVATE SdDrawDocumentAllocSdDrawDocument () const
 
virtual SAL_DLLPRIVATE SdrModelAllocModel () const override
 
SAL_DLLPRIVATE rtl::Reference< SdPageAllocSdPage (bool bMasterPage)
 
virtual SAL_DLLPRIVATE rtl::Reference< SdrPageAllocPage (bool bMasterPage) override
 
virtual SAL_DLLPRIVATE bool IsReadOnly () const override
 
virtual SAL_DLLPRIVATE void SetChanged (bool bFlag=true) override
 
SAL_DLLPRIVATE SfxItemPoolGetPool ()
 
SAL_DLLPRIVATE SdOutlinerGetOutliner (bool bCreateOutliner=true)
 
SdOutlinerGetInternalOutliner (bool bCreateOutliner=true)
 
SAL_DLLPRIVATE::sd::DrawDocShell * GetDocSh () const
 
SAL_DLLPRIVATE LanguageType GetLanguage (const sal_uInt16 nId) const
 
SAL_DLLPRIVATE void SetLanguage (const LanguageType eLang, const sal_uInt16 nId)
 
SAL_DLLPRIVATE SvxNumType GetPageNumType () const override
 
SAL_DLLPRIVATE void SetPageNumType (SvxNumType eType)
 
OUString CreatePageNumValue (sal_uInt16 nNum) const
 
SAL_DLLPRIVATE DocumentType GetDocumentType () const
 
SAL_DLLPRIVATE void SetAllocDocSh (bool bAlloc)
 
SAL_DLLPRIVATE void CreatingDataObj (SdTransferable *pTransferable)
 
virtual SAL_DLLPRIVATE bool IsCreatingDataObj () const override
 
void CreateFirstPages (SdDrawDocument const *pRefDocument=nullptr)
 if the document does not contain at least one handout, one slide and one notes page with at least one master each this methods creates them. More...
 
bool CreateMissingNotesAndHandoutPages ()
 
SAL_DLLPRIVATE void MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos) override
 
SAL_DLLPRIVATE void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
SAL_DLLPRIVATE void DeletePage (sal_uInt16 nPgNum) override
 
SAL_DLLPRIVATE rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual SAL_DLLPRIVATE void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual SAL_DLLPRIVATE rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum) override
 
SAL_DLLPRIVATE void RemoveUnnecessaryMasterPages (SdPage *pMaster=nullptr, bool bOnlyDuplicatePages=false, bool bUndo=true)
 
void SetMasterPage (sal_uInt16 nSdPageNum, std::u16string_view rLayoutName, SdDrawDocument *pSourceDoc, bool bMaster, bool bCheckMasters)
 
SdDrawDocumentOpenBookmarkDoc (const OUString &rBookmarkFile)
 
SAL_DLLPRIVATE SdDrawDocumentOpenBookmarkDoc (SfxMedium *pMedium)
 
SAL_DLLPRIVATE void InsertBookmark (const std::vector< OUString > &rBookmarkList, std::vector< OUString > &rExchangeList, bool bLink, sal_uInt16 nPgPos, ::sd::DrawDocShell *pBookmarkDocSh, Point const *pObjPos)
 
SAL_DLLPRIVATE bool IsStartWithPresentation () const
 
SAL_DLLPRIVATE void SetStartWithPresentation (bool bStartWithPresentation)
 
SAL_DLLPRIVATE bool IsExitAfterPresenting () const
 
SAL_DLLPRIVATE void SetExitAfterPresenting (bool bExitAfterPresenting)
 
SAL_DLLPRIVATE void InitLayoutVector ()
 load xml-based impress layout definitions into document More...
 
SAL_DLLPRIVATE const std::vector< css::uno::Reference< css::xml::dom::XNode > > & GetLayoutVector () const
 return reference to vector of Impress layout definitions More...
 
SAL_DLLPRIVATE void InitObjectVector ()
 load xml-based impress master presentation object definitions into document More...
 
SAL_DLLPRIVATE const std::vector< css::uno::Reference< css::xml::dom::XNode > > & GetObjectVector () const
 return reference to vector of master presentation object definitions More...
 
SAL_DLLPRIVATE bool InsertBookmarkAsPage (const std::vector< OUString > &rBookmarkList, std::vector< OUString > *pExchangeList, bool bLink, bool bReplace, sal_uInt16 nPgPos, bool bNoDialogs, ::sd::DrawDocShell *pBookmarkDocSh, bool bCopy, bool bMergeMasterPages, bool bPreservePageNames)
 Insert pages into this document. More...
 
SAL_DLLPRIVATE bool InsertBookmarkAsObject (const std::vector< OUString > &rBookmarkList, const std::vector< OUString > &rExchangeList, ::sd::DrawDocShell *pBookmarkDocSh, Point const *pObjPos, bool bCalcObjCount)
 
void CloseBookmarkDoc ()
 
SAL_DLLPRIVATE SdrObjectGetObj (std::u16string_view rObjName) const
 
SAL_DLLPRIVATE sal_uInt16 GetPageByName (std::u16string_view rPgName, bool &rbIsMasterPage) const
 Return the first page that has the given name. More...
 
bool IsPageNameUnique (std::u16string_view rPageName) const
 checks, if the given name is a unique name for an existing slide More...
 
SdPageGetSdPage (sal_uInt16 nPgNum, PageKind ePgKind) const
 
sal_uInt16 GetSdPageCount (PageKind ePgKind) const
 
SAL_DLLPRIVATE void SetSelected (SdPage *pPage, bool bSelect)
 
SAL_DLLPRIVATE void UnselectAllPages ()
 
SAL_DLLPRIVATE bool MovePages (sal_uInt16 nTargetPage)
 
SdPageGetMasterSdPage (sal_uInt16 nPgNum, PageKind ePgKind)
 
sal_uInt16 GetMasterSdPageCount (PageKind ePgKind) const
 
sal_uInt16 GetActiveSdPageCount () const
 
SAL_DLLPRIVATE sal_uInt16 GetMasterPageUserCount (SdrPage const *pMaster) const
 
SAL_DLLPRIVATE const sd::PresentationSettingsgetPresentationSettings () const
 
SAL_DLLPRIVATE sd::PresentationSettingsgetPresentationSettings ()
 
SAL_DLLPRIVATE const css::uno::Reference< css::presentation::XPresentation2 > & getPresentation () const
 
SAL_DLLPRIVATE void SetSummationOfParagraphs (bool bOn=true)
 
SAL_DLLPRIVATE bool IsSummationOfParagraphs () const
 
SAL_DLLPRIVATE void SetPrinterIndependentLayout (sal_Int32 nMode)
 Set the mode that controls whether (and later how) the formatting of the document depends on the current printer metrics. More...
 
SAL_DLLPRIVATE sal_Int32 GetPrinterIndependentLayout () const
 Get the flag that controls whether the formatting of the document depends on the current printer metrics. More...
 
SAL_DLLPRIVATE void SetOnlineSpell (bool bIn)
 
SAL_DLLPRIVATE bool GetOnlineSpell () const
 
SAL_DLLPRIVATE void StopOnlineSpelling ()
 
SAL_DLLPRIVATE void StartOnlineSpelling (bool bForceSpelling=true)
 
SAL_DLLPRIVATE void ImpOnlineSpellCallback (SpellCallbackInfo const *pInfo, SdrObject *pObj, SdrOutliner const *pOutl)
 
SAL_DLLPRIVATE void InsertObject (SdrObject *pObj)
 
SAL_DLLPRIVATE void RemoveObject (SdrObject *pObj)
 
SAL_DLLPRIVATE sal_uLong GetLinkCount () const
 
SAL_DLLPRIVATE std::vector< std::unique_ptr< sd::FrameView > > & GetFrameViewList ()
 
SdCustomShowListGetCustomShowList (bool bCreate=false)
 
SAL_DLLPRIVATE void NbcSetChanged (bool bFlag)
 
SAL_DLLPRIVATE void SetTextDefaults () const
 
SAL_DLLPRIVATE void CreateLayoutTemplates ()
 
SAL_DLLPRIVATE void RenameLayoutTemplate (const OUString &rOldLayoutName, const OUString &rNewName)
 
SAL_DLLPRIVATE void CreateDefaultCellStyles ()
 
void StopWorkStartupDelay ()
 
SAL_DLLPRIVATE void NewOrLoadCompleted (DocCreationMode eMode)
 
SAL_DLLPRIVATE void NewOrLoadCompleted (SdPage *pPage, SdStyleSheetPool *pSPool)
 this loops over the presentation objects of a page and repairs some new settings from old binary files and resets all default strings for empty presentation objects. More...
 
SAL_DLLPRIVATE bool IsNewOrLoadCompleted () const
 
SAL_DLLPRIVATE::sd::FrameView * GetFrameView (sal_uLong nPos)
 
SAL_DLLPRIVATE const std::optional< CharClass > & GetCharClass () const
 
SAL_DLLPRIVATE void UpdateAllLinks ()
 updates all links, only links in this document should by resolved More...
 
SAL_DLLPRIVATE void CheckMasterPages ()
 this method enforces that the masterpages are in the correct order, that is at position 1 is a PageKind::Standard masterpage followed by a PageKind::Notes masterpage and so on. More...
 
SAL_DLLPRIVATE void Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false) override
 
css::text::WritingMode GetDefaultWritingMode () const
 
SAL_DLLPRIVATE void SetDefaultWritingMode (css::text::WritingMode eMode)
 
SAL_DLLPRIVATE void ReplacePageInCustomShows (const SdPage *pOldPage, const SdPage *pNewPage)
 replacespOldPage from all custom shows with pNewPage or removes pOldPage from all custom shows if pNewPage is 0. More...
 
SAL_DLLPRIVATE sal_uInt16 CreatePage (SdPage *pCurrentPage, PageKind ePageKind, const OUString &sStandardPageName, const OUString &sNotesPageName, AutoLayout eStandardLayout, AutoLayout eNotesLayout, bool bIsPageBack, bool bIsPageObj, const sal_Int32 nInsertPosition)
 Create and insert a set of two new pages: a standard (draw) page and the associated notes page. More...
 
SAL_DLLPRIVATE sal_uInt16 DuplicatePage (sal_uInt16 nPageNum)
 This method acts as a simplified front end for the more complex <member>DuplicatePage()</member> method. More...
 
SAL_DLLPRIVATE sal_uInt16 DuplicatePage (SdPage *pCurrentPage, PageKind ePageKind, const OUString &sStandardPageName, const OUString &sNotesPageName, bool bIsPageBack, bool bIsPageObj, const sal_Int32 nInsertPosition)
 Create and insert a set of two new pages that are copies of the given <argument>pCurrentPage</argument> and its associated notes resp. More...
 
SAL_DLLPRIVATE void getDefaultFonts (vcl::Font &rLatinFont, vcl::Font &rCJKFont, vcl::Font &rCTLFont)
 return the document fonts for latin, cjk and ctl according to the current languages set at this document More...
 
sd::UndoManagerGetUndoManager () const
 
SdStyleSheetPoolGetSdStyleSheetPool () const
 Get the style sheet pool if it was a SdStyleSheetPool. More...
 
SAL_DLLPRIVATE void UpdatePageRelativeURLs (std::u16string_view aOldName, std::u16string_view aNewName)
 
SAL_DLLPRIVATE sal_uInt16 GetAnnotationAuthorIndex (const OUString &rAuthor)
 
SAL_DLLPRIVATE bool IsEmbedFonts () const
 
SAL_DLLPRIVATE bool IsEmbedUsedFontsOnly () const
 
SAL_DLLPRIVATE bool IsEmbedFontScriptLatin () const
 
SAL_DLLPRIVATE bool IsEmbedFontScriptAsian () const
 
SAL_DLLPRIVATE bool IsEmbedFontScriptComplex () const
 
SAL_DLLPRIVATE void SetEmbedFonts (bool bUse)
 
SAL_DLLPRIVATE void SetEmbedUsedFontsOnly (bool bUse)
 
SAL_DLLPRIVATE void SetEmbedFontScriptLatin (bool bUse)
 
SAL_DLLPRIVATE void SetEmbedFontScriptAsian (bool bUse)
 
SAL_DLLPRIVATE void SetEmbedFontScriptComplex (bool bUse)
 
sal_Int32 getImagePreferredDPI () const override
 
void setImagePreferredDPI (sal_Int32 nValue)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from FmFormModel
 FmFormModel (SfxItemPool *pPool=nullptr, SfxObjectShell *pPers=nullptr)
 
virtual ~FmFormModel () override
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage) override
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum) override
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF) override
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum) override
 
SfxObjectShellGetObjectShell () const
 
void SetObjectShell (SfxObjectShell *pShell)
 
bool GetOpenInDesignMode () const
 
void SetOpenInDesignMode (bool _bOpenDesignMode)
 
bool GetAutoControlFocus () const
 
void SetAutoControlFocus (bool _bAutoControlFocus)
 
bool OpenInDesignModeIsDefaulted ()
 
bool ControlsUseRefDevice () const
 
FmXUndoEnvironmentGetUndoEnv ()
 
- Public Member Functions inherited from SdrModel
std::vector< SdrOutliner * > GetActiveOutliners () const
 
sal_uInt16 getHandoutPageCount () const
 
void setHandoutPageCount (sal_uInt16 nHandoutPageCount)
 
virtual void adaptSizeAndBorderForAllPages (const Size &rNewSize, tools::Long nLeft=0, tools::Long nRight=0, tools::Long nUpper=0, tools::Long nLower=0)
 
virtual SVX_DLLPRIVATE bool IsCreatingDataObj () const
 
bool IsTransportContainer () const
 
bool AreControlsThemed ()
 
bool IsPasteResize () const
 
void SetPasteResize (bool bOn)
 
 SdrModel (SfxItemPool *pPool=nullptr, ::comphelper::IEmbeddedHelper *pPers=nullptr, bool bDisablePropertyFiles=false)
 
virtual ~SdrModel () override
 
void ClearModel (bool bCalledFromDestructor)
 
virtual css::uno::Reference< css::embed::XStorage > GetDocumentStorage () const
 
css::uno::Reference< css::io::XInputStream > GetDocumentStream (OUString const &rURL, ::comphelper::LifecycleProxy const &rProxy) const
 
void BurnInStyleSheetAttributes ()
 
virtual rtl::Reference< SdrPageAllocPage (bool bMasterPage)
 
virtual SdrModelAllocModel () const
 
const SdrLayerAdminGetLayerAdmin () const
 
SdrLayerAdminGetLayerAdmin ()
 
const SfxItemPoolGetItemPool () const
 
SfxItemPoolGetItemPool ()
 
SdrOutlinerGetDrawOutliner (const SdrTextObj *pObj=nullptr) const
 
SdrOutlinerGetHitTestOutliner () const
 
const SdrTextObjGetFormattingTextObj () const
 
void SetTextDefaults () const
 
SdrOutlinerGetChainingOutliner (const SdrTextObj *pObj) const
 
TextChainGetTextChain () const
 
void SetRefDevice (OutputDevice *pDev)
 
OutputDeviceGetRefDevice () const
 
void RefDeviceChanged ()
 
void SetDefaultFontHeight (sal_Int32 nVal)
 
void SetDefaultTabulator (sal_uInt16 nVal)
 
sal_uInt16 GetDefaultTabulator () const
 
SfxStyleSheetGetDefaultStyleSheet () const
 
void SetDefaultStyleSheet (SfxStyleSheet *pDefSS)
 
SfxStyleSheetGetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj () const
 
void SetDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj (SfxStyleSheet *pDefSS)
 
sfx2::LinkManagerGetLinkManager ()
 
void SetLinkManager (sfx2::LinkManager *pLinkMgr)
 
::comphelper::IEmbeddedHelperGetPersist () const
 
void SetPersist (::comphelper::IEmbeddedHelper *p)
 
MapUnit GetScaleUnit () const
 
void SetScaleUnit (MapUnit eMap)
 
const SizeGetMaxObjSize () const
 
void SetMaxObjSize (const Size &rSiz)
 
void SetUIUnit (FieldUnit eUnit)
 
FieldUnit GetUIUnit () const
 
void SetUIScale (const Fraction &rScale)
 
const FractionGetUIScale () const
 
void SetUIUnit (FieldUnit eUnit, const Fraction &rScale)
 
OUString GetMetricString (tools::Long nVal, bool bNoUnitChars=false, sal_Int32 nNumDigits=-1) const
 
bool IsPagNumsDirty () const
 
bool IsMPgNumsDirty () const
 
void RecalcPageNums (bool bMaster)
 
virtual void InsertPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
virtual void DeletePage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemovePage (sal_uInt16 nPgNum)
 
virtual void MovePage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetPage (sal_uInt16 nPgNum) const
 
SdrPageGetPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetPageCount () const
 
virtual void PageListChanged ()
 
virtual void InsertMasterPage (SdrPage *pPage, sal_uInt16 nPos=0xFFFF)
 
void DeleteMasterPage (sal_uInt16 nPgNum)
 
virtual rtl::Reference< SdrPageRemoveMasterPage (sal_uInt16 nPgNum)
 
void MoveMasterPage (sal_uInt16 nPgNum, sal_uInt16 nNewPos)
 
const SdrPageGetMasterPage (sal_uInt16 nPgNum) const
 
SdrPageGetMasterPage (sal_uInt16 nPgNum)
 
sal_uInt16 GetMasterPageCount () const
 
virtual void MasterPageListChanged ()
 
bool IsChanged () const
 
virtual void SetChanged (bool bFlg=true)
 
bool IsSwapGraphics () const
 
void SetSwapGraphics ()
 
bool IsPickThroughTransparentTextFrames () const
 
void SetPickThroughTransparentTextFrames (bool bOn)
 
virtual bool IsReadOnly () const
 
void SetReadOnly (bool bYes)
 
virtual void Merge (SdrModel &rSourceModel, sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bMergeMasterPages, bool bAllMasterPages, bool bUndo=true, bool bTreadSourceAsConst=false)
 
void CopyPages (sal_uInt16 nFirstPageNum, sal_uInt16 nLastPageNum, sal_uInt16 nDestPos, bool bUndo, bool bMoveNoCopy)
 
void BegUndo ()
 
void BegUndo (const OUString &rComment)
 
void BegUndo (const OUString &rComment, const OUString &rObjDescr, SdrRepeatFunc eFunc)
 
void EndUndo ()
 
void AddUndo (std::unique_ptr< SdrUndoAction > pUndo)
 
sal_uInt16 GetUndoBracketLevel () const
 
void SetUndoComment (const OUString &rComment)
 
void SetUndoComment (const OUString &rComment, const OUString &rObjDescr)
 
void SetMaxUndoActionCount (sal_uInt32 nCount)
 
void ClearUndoBuffer ()
 
bool HasUndoActions () const
 
bool HasRedoActions () const
 
void Undo ()
 
void Redo ()
 
void Repeat (SfxRepeatTarget &)
 
void SetNotifyUndoActionHdl (const std::function< void(std::unique_ptr< SdrUndoAction >)> &rLink)
 
void SetSdrUndoManager (SfxUndoManager *pUndoManager)
 
SfxUndoManagerGetSdrUndoManager () const
 
void SetSdrUndoFactory (SdrUndoFactory *pUndoFactory)
 
SdrUndoFactoryGetSdrUndoFactory () const
 
const XPropertyListRefGetPropertyList (XPropertyListType t) const
 
void SetPropertyList (XPropertyListRef const &p)
 
XDashListRef GetDashList () const
 
XHatchListRef GetHatchList () const
 
XColorListRef GetColorList () const
 
XBitmapListRef GetBitmapList () const
 
XPatternListRef GetPatternList () const
 
XLineEndListRef GetLineEndList () const
 
XGradientListRef GetGradientList () const
 
SfxStyleSheetBasePoolGetStyleSheetPool () const
 
void SetStyleSheetPool (SfxStyleSheetBasePool *pPool)
 
void setTheme (std::shared_ptr< model::Theme > const &pTheme)
 
std::shared_ptr< model::Theme > const & getTheme () const
 
void SetStarDrawPreviewMode (bool bPreview)
 
bool IsStarDrawPreviewMode () const
 
bool GetDisableTextEditUsesCommonUndoManager () const
 
void SetDisableTextEditUsesCommonUndoManager (bool bNew)
 
css::uno::Reference< css::uno::XInterface > const & getUnoModel ()
 
void setUnoModel (const css::uno::Reference< css::uno::XInterface > &xModel)
 
bool isLocked () const
 
void setLock (bool bLock)
 
void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
 
const std::shared_ptr< SvxForbiddenCharactersTable > & GetForbiddenCharsTable () const
 
void SetCharCompressType (CharCompressType nType)
 
CharCompressType GetCharCompressType () const
 
void SetKernAsianPunctuation (bool bEnabled)
 
bool IsKernAsianPunctuation () const
 
void SetAddExtLeading (bool bEnabled)
 
bool IsAddExtLeading () const
 
void SetCompatibilityFlag (SdrCompatibilityFlag eFlag, bool bEnabled)
 
bool GetCompatibilityFlag (SdrCompatibilityFlag eFlag) const
 
void ReformatAllTextObjects ()
 
std::unique_ptr< SdrOutlinercreateOutliner (OutlinerMode nOutlinerMode)
 
void disposeOutliner (std::unique_ptr< SdrOutliner > pOutliner)
 
bool IsWriter () const
 
void ReadUserDataSequenceValue (const css::beans::PropertyValue *pValue)
 
void WriteUserDataSequence (css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
virtual SvxNumType GetPageNumType () const
 
bool IsInDestruction () const
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
bool DoesMakePageObjectsNamesUnique () const
 
void DoMakePageObjectsNamesUnique (bool bDo)
 
virtual sal_Int32 getImagePreferredDPI () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
bool IsVOCInvalidationIsReliable () const
 
void SetVOCInvalidationIsReliable (bool b)
 

Static Public Member Functions

static SAL_DLLPRIVATE SdAnimationInfoGetAnimationInfo (SdrObject *pObject)
 deprecated More...
 
static SdAnimationInfoGetShapeUserData (SdrObject &rObject, bool bCreate=false)
 
static SAL_DLLPRIVATE sal_uInt32 convertFontHeightToCTL (sal_uInt32 nWesternFontHeight)
 converts the given western font height to a corresponding ctl font height, depending on the system language More...
 
static SAL_DLLPRIVATE void SetCalcFieldValueHdl (::Outliner *pOutliner)
 
- Static Public Member Functions inherited from SdrModel
static void SetTextDefaults (SfxItemPool *pItemPool, sal_Int32 nDefTextHgt)
 
static OUString GetUnitString (FieldUnit eUnit)
 
static OUString GetAngleString (Degree100 nAngle)
 
static OUString GetPercentString (const Fraction &rVal)
 
static void MigrateItemSet (const SfxItemSet *pSourceSet, SfxItemSet *pDestSet, SdrModel *pNewModel)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Static Public Attributes

static SAL_DLLPRIVATE SdDrawDocuments_pDocLockedInsertingLinks = nullptr
 static to prevent recursions while resolving links More...
 

Private Member Functions

SAL_DLLPRIVATE void UpdatePageObjectsInNotes (sal_uInt16 nStartPos)
 
SAL_DLLPRIVATE void UpdatePageRelativeURLs (SdPage const *pPage, sal_uInt16 nPos, sal_Int32 nIncrement)
 
SAL_DLLPRIVATE void FillOnlineSpellingList (SdPage const *pPage)
 
SAL_DLLPRIVATE void SpellObject (SdrTextObj *pObj)
 
 DECL_DLLPRIVATE_LINK (WorkStartupHdl, Timer *, void)
 
 DECL_DLLPRIVATE_LINK (OnlineSpellingHdl, Timer *, void)
 
 DECL_DLLPRIVATE_LINK (OnlineSpellEventHdl, EditStatus &, void)
 
virtual SAL_DLLPRIVATE css::uno::Reference< css::uno::XInterface > createUnoModel () override
 
SAL_DLLPRIVATE sal_uInt16 InsertPageSet (SdPage *pCurrentPage, PageKind ePageKind, const OUString &sStandardPageName, const OUString &sNotesPageName, bool bIsPageBack, bool bIsPageObj, SdPage *pStandardPage, SdPage *pNotesPage, sal_Int32 nInsertPosition)
 Insert a given set of standard and notes page after the given <argument>pCurrentPage</argument>. More...
 
SAL_DLLPRIVATE void SetupNewPage (SdPage const *pPreviousPage, SdPage *pPage, const OUString &sPageName, sal_uInt16 nInsertionPoint, bool bIsPageBack, bool bIsPageObj)
 Set up a newly created page and insert it into the list of pages. More...
 
virtual SAL_DLLPRIVATE void PageListChanged () override
 
virtual SAL_DLLPRIVATE void MasterPageListChanged () override
 

Private Attributes

OUString msDocAccTitle
 
std::unique_ptr< SdOutlinermpOutliner
 local outliner for outline mode More...
 
std::unique_ptr< SdOutlinermpInternalOutliner
 internal outliner for creation of text objects More...
 
std::unique_ptr< TimermpWorkStartupTimer
 
std::unique_ptr< IdlempOnlineSpellingIdle
 
std::unique_ptr< sd::ShapeListmpOnlineSpellingList
 
std::unique_ptr< SvxSearchItemmpOnlineSearchItem
 
std::vector< std::unique_ptr< sd::FrameView > > maFrameViewList
 
std::unique_ptr< SdCustomShowListmpCustomShowList
 
::sd::DrawDocShellmpDocSh
 
SdTransferablempCreatingTransferable
 
bool mbHasOnlineSpellErrors
 
bool mbInitialOnlineSpellingEnabled
 
OUString maBookmarkFile
 
::sd::DrawDocShellRef mxBookmarkDocShRef
 
sd::PresentationSettings maPresentationSettings
 
css::uno::Reference< css::presentation::XPresentation2 > mxPresentation
 
bool mbNewOrLoadCompleted
 
bool mbOnlineSpell
 
bool mbSummationOfParagraphs
 
bool mbStartWithPresentation
 is set to true when starting with command line parameter -start More...
 
bool mbExitAfterPresenting
 true if mbStartWithPresentation AND Presentation was shown fully More...
 
LanguageType meLanguage
 
LanguageType meLanguageCJK
 
LanguageType meLanguageCTL
 
SvxNumType mePageNumType
 
::sd::DrawDocShellRef mxAllocedDocShRef
 
bool mbAllocDocSh
 
DocumentType meDocType
 
std::optional< CharClassmoCharClass
 
::std::unique_ptr< ImpDrawPageListWatchermpDrawPageListWatcher
 
::std::unique_ptr< ImpMasterPageListWatchermpMasterPageListWatcher
 
std::vector< OUString > maAnnotationAuthors
 
std::vector< css::uno::Reference< css::xml::dom::XNode > > maLayoutInfo
 
std::vector< css::uno::Reference< css::xml::dom::XNode > > maPresObjectInfo
 
bool mbEmbedFonts: 1
 
bool mbEmbedUsedFontsOnly: 1
 
bool mbEmbedFontScriptLatin: 1
 
bool mbEmbedFontScriptAsian: 1
 
bool mbEmbedFontScriptComplex: 1
 
sal_Int32 mnImagePreferredDPI
 
sal_Int32 mnPrinterIndependentLayout
 This member stores the printer independent layout mode. More...
 

Additional Inherited Members

- Public Attributes inherited from SdrModel
std::shared_ptr< SvxForbiddenCharactersTablempForbiddenCharactersTable
 
std::unique_ptr< SdrOutlinerCachempOutlinerCache
 
std::unique_ptr< SdrModelImplmpImpl
 
CharCompressType mnCharCompressType
 
sal_uInt16 mnHandoutPageCount
 
bool mbModelLocked
 
bool mbKernAsianPunctuation
 
bool mbAddExtLeading
 
bool mbInDestruction
 
o3tl::enumarray< XPropertyListType, XPropertyListRefmaProperties
 
virtual css::uno::Reference< css::uno::XInterface > createUnoModel ()
 
- Protected Attributes inherited from SdrModel
std::vector< rtl::Reference< SdrPage > > maMasterPages
 
std::vector< rtl::Reference< SdrPage > > maPages
 
std::function< void(std::unique_ptr< SdrUndoAction >)> m_aUndoLink
 
Size m_aMaxObjSize
 
MapUnit m_eObjUnit
 
FieldUnit m_eUIUnit
 
Fraction m_aUIScale
 
OUString m_aUIUnitStr
 
Fraction m_aUIUnitFact
 
int m_nUIUnitDecimalMark
 
std::unique_ptr< SdrLayerAdminm_pLayerAdmin
 
rtl::Reference< SfxItemPoolm_pItemPool
 
comphelper::IEmbeddedHelperm_pEmbeddedHelper
 
std::unique_ptr< SdrOutlinerm_pDrawOutliner
 
std::unique_ptr< SdrOutlinerm_pHitTestOutliner
 
std::unique_ptr< SdrOutlinerm_pChainingOutliner
 
sal_Int32 mnDefTextHgt
 
VclPtr< OutputDevicem_pRefOutDev
 
rtl::Reference< SfxStyleSheetBasePoolmxStyleSheetPool
 
SfxStyleSheetm_pDefaultStyleSheet
 
SfxStyleSheetmpDefaultStyleSheetForSdrGrafObjAndSdrOle2Obj
 
sfx2::LinkManagerm_pLinkManager
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aUndoStack
 
std::deque< std::unique_ptr< SfxUndoAction > > m_aRedoStack
 
std::unique_ptr< SdrUndoGroupm_pCurrentUndoGroup
 
sal_uInt16 m_nUndoLevel
 
bool m_bIsWriter
 
bool m_bThemedControls
 
bool mbUndoEnabled
 
bool mbChanged
 
bool m_bPagNumsDirty
 
bool m_bMPgNumsDirty
 
bool m_bTransportContainer
 
bool m_bReadOnly
 
bool m_bTransparentTextFrames
 
bool m_bSwapGraphics
 
bool m_bPasteResize
 
bool m_bStarDrawPreviewMode
 
bool mbDisableTextEditUsesCommonUndoManager
 
bool mbVOCInvalidationIsReliable
 
sal_uInt16 m_nDefaultTabulator
 
sal_uInt32 m_nMaxUndoCount
 
std::unique_ptr< TextChainm_pTextChain
 

Detailed Description

Definition at line 120 of file drawdoc.hxx.

Constructor & Destructor Documentation

◆ SdDrawDocument()

SdDrawDocument::SdDrawDocument ( DocumentType  eType,
SfxObjectShell pDocSh 
)

Create layers

We create the following default layers on all pages and master pages:

sUNO_LayerName_layout; "layout": default layer for drawing objects of normal pages localized by SdResId(STR_LAYER_LAYOUT)

sUNO_LayerName_background; "background": background of the master page localized by SdResId(STR_LAYER_BCKGRND) (currently unused within normal pages and not visible to users)

sUNO_LayerName_background_objects; "backgroundobjects": objects on the background of master pages localized by SdResId(STR_LAYER_BCKGRNDOBJ) (currently unused within normal pages)

sUNO_LayerName_controls; "controls": default layer for controls localized by SdResId(STR_LAYER_CONTROLS) (currently special handling in regard to z-order)

sUNO_LayerName_measurelines; "measurelines" : default layer for measure lines localized by SdResId(STR_LAYER_MEASURELINES)

Definition at line 117 of file drawdoc.cxx.

References SvtLinguOptions::bIsSpellAuto, o3tl::convert(), Draw, EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_PARA_ASIANCJKSPACING(), eType, SdOptionsLayout::GetDefTab(), SdrModel::GetDrawOutliner(), LinguMgr::GetHyphenator(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SdrModel::GetLayerAdmin(), SdOptionsLayout::GetMetric(), SvtLinguConfig::GetOptions(), GetPool(), SdOptionsMisc::GetPrinterIndependentLayout(), MsLangId::getRealLanguage(), SdOptionsZoom::GetScale(), SfxItemPool::GetSecondaryPool(), Application::GetSettings(), LinguMgr::GetSpellChecker(), SdrModel::GetStyleSheetPool(), Impress, InitLayoutVector(), InitObjectVector(), utl::ConfigManager::IsFuzzing(), MsLangId::isKorean(), SdOptionsMisc::IsSummationOfParagraphs(), LANGUAGE_JAPANESE, LANGUAGE_SYSTEM, SdrModel::m_bThemedControls, SdrModel::m_pHitTestOutliner, SdrModel::m_pItemPool, SvxForbiddenCharactersTable::makeForbiddenCharactersTable(), mbOnlineSpell, meDocType, meLanguage, meLanguage, o3tl::mm100, moCharClass, mpDocSh, mpDrawPageListWatcher, mpMasterPageListWatcher, SvtLinguOptions::nDefaultLanguage, SvtLinguOptions::nDefaultLanguage_CJK, SvtLinguOptions::nDefaultLanguage_CTL, SdrLayerAdmin::NewLayer(), o3tl::pt, MsLangId::resolveSystemLanguageByScriptType(), SD_MOD, SetCalcFieldValueHdl(), SdrLayerAdmin::SetControlLayerName(), SdrModel::SetDefaultFontHeight(), SdrModel::SetDefaultTabulator(), SdrModel::SetForbiddenCharsTable(), SetLanguage(), SdrModel::SetLinkManager(), FmFormModel::SetObjectShell(), SfxItemPool::SetPoolDefaultItem(), SetPrinterIndependentLayout(), SdrModel::SetScaleUnit(), SdrModel::SetStyleSheetPool(), SetSummationOfParagraphs(), SdrModel::SetSwapGraphics(), SetTextDefaults(), SdrModel::SetUIUnit(), sUNO_LayerName_background, sUNO_LayerName_background_objects, sUNO_LayerName_controls, sUNO_LayerName_layout, sUNO_LayerName_measurelines, and SVX_NUM_ARABIC.

Referenced by AllocSdDrawDocument().

◆ ~SdDrawDocument()

SdDrawDocument::~SdDrawDocument ( )
overridevirtual

Member Function Documentation

◆ AdaptPageSizeForAllPages()

void SdDrawDocument::AdaptPageSizeForAllPages ( const Size rNewSize,
PageKind  ePageKind,
SdUndoGroup pUndoGroup = nullptr,
tools::Long  nLeft = 0,
tools::Long  nRight = 0,
tools::Long  nUpper = 0,
tools::Long  nLower = 0,
bool  bScaleAll = false,
Orientation  eOrientation = Orientation::Landscape,
sal_uInt16  nPaperBin = 0,
bool  bBackgroundFullSize = false 
)

◆ adaptSizeAndBorderForAllPages()

void SdDrawDocument::adaptSizeAndBorderForAllPages ( const Size rNewSize,
tools::Long  nLeft = 0,
tools::Long  nRight = 0,
tools::Long  nUpper = 0,
tools::Long  nLower = 0 
)
overridevirtual

◆ AllocModel()

SdrModel * SdDrawDocument::AllocModel ( ) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 546 of file drawdoc.cxx.

References AllocSdDrawDocument().

◆ AllocPage()

rtl::Reference< SdrPage > SdDrawDocument::AllocPage ( bool  bMasterPage)
overridevirtual

Reimplemented from FmFormModel.

Definition at line 652 of file drawdoc.cxx.

References AllocSdPage().

Referenced by sd::View::InsertData(), and sd::View::PasteRTFTable().

◆ AllocSdDrawDocument()

SdDrawDocument * SdDrawDocument::AllocSdDrawDocument ( ) const

◆ AllocSdPage()

rtl::Reference< SdPage > SdDrawDocument::AllocSdPage ( bool  bMasterPage)

◆ CheckMasterPages()

void SdDrawDocument::CheckMasterPages ( )

◆ CloseBookmarkDoc()

void SdDrawDocument::CloseBookmarkDoc ( )

◆ convertFontHeightToCTL()

sal_uInt32 SdDrawDocument::convertFontHeightToCTL ( sal_uInt32  nWesternFontHeight)
static

converts the given western font height to a corresponding ctl font height, depending on the system language

Definition at line 1250 of file drawdoc4.cxx.

References convertMm100ToPoint(), convertPointToMm100(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), Application::GetSettings(), and LANGUAGE_THAI.

Referenced by SdStyleSheetPool::CreateLayoutStyleSheets(), and CreateLayoutTemplates().

◆ CreateDefaultCellStyles()

void SdDrawDocument::CreateDefaultCellStyles ( )

◆ CreateFirstPages()

void SdDrawDocument::CreateFirstPages ( SdDrawDocument const *  pRefDocument = nullptr)

◆ CreateLayoutTemplates()

void SdDrawDocument::CreateLayoutTemplates ( )

Definition at line 137 of file drawdoc4.cxx.

References aName, basegfx::B2DPolygon::append(), COL_AUTO(), COL_BLACK(), COL_DEFAULT_SHAPE_FILLING, COL_DEFAULT_SHAPE_STROKE, COL_GRAY(), COL_WHITE(), convertFontHeightToCTL(), SdStyleSheetPool::CreateLayoutStyleSheets(), EE_CHAR_CASEMAP(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_PAIRKERNING(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_PARA_BULLET(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_ULSPACE(), Bitmap::Erase(), Color::getBColor(), SdStyleSheetPool::GetBulletFont(), vcl::Font::GetCharSet(), getDefaultFonts(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SfxStyleSheetBase::GetItemSet(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), SdrModel::GetStyleSheetPool(), ITALIC_NONE, LINE_SPACE_DEFAULT_HEIGHT, LINESTYLE_NONE, makeSdrShadowColorItem(), makeSdrShadowItem(), makeSdrShadowXDistItem(), makeSdrShadowYDistItem(), makeSdrTextLeftDistItem(), makeSdrTextLowerDistItem(), makeSdrTextRightDistItem(), makeSdrTextUpperDistItem(), makeSdrTextWordWrapItem(), vcl::N8_BPP, SfxItemSet::Put(), SdStyleSheetPool::PutNumBulletItem(), SDRATTR_MEASURESHOWUNIT(), SdResId(), SDRTEXTHORZADJUST_BLOCK, basegfx::BGradient::SetAngle(), basegfx::B2DPolygon::setClosed(), basegfx::BGradient::SetColorStops(), basegfx::BGradient::SetEndIntens(), SvxFontItem::SetFamilyName(), SvxBulletItem::SetFont(), vcl::Font::SetFontSize(), basegfx::BGradient::SetGradientStyle(), XFillGradientItem::SetGradientValue(), SfxStyleSheetBase::SetHelpId(), NameOrIndex::SetName(), SfxStyleSheetBase::SetParent(), SvxBulletItem::SetScale(), SvxBulletItem::SetStart(), basegfx::BGradient::SetStartIntens(), SvxBulletItem::SetStyle(), SvxBulletItem::SetSymbol(), STRIKEOUT_NONE, SvxResId(), WEIGHT_BOLD, and WEIGHT_NORMAL.

Referenced by NewOrLoadCompleted().

◆ CreateMissingNotesAndHandoutPages()

bool SdDrawDocument::CreateMissingNotesAndHandoutPages ( )

◆ CreatePage()

sal_uInt16 SdDrawDocument::CreatePage ( SdPage pCurrentPage,
PageKind  ePageKind,
const OUString &  sStandardPageName,
const OUString &  sNotesPageName,
AutoLayout  eStandardLayout,
AutoLayout  eNotesLayout,
bool  bIsPageBack,
bool  bIsPageObj,
const sal_Int32  nInsertPosition 
)

Create and insert a set of two new pages: a standard (draw) page and the associated notes page.

The new pages are inserted directly after the specified page set.

Parameters
pCurrentPageThis page is used to retrieve the layout for the page to create.
ePageKindThis specifies whether <argument>pCurrentPage</argument> is a standard (draw) page or a notes page.
sStandardPageNameName of the standard page. An empty string leads to using an automatically created name.
sNotesPageNameName of the standard page. An empty string leads to using an automatically created name.
eStandardLayoutLayout to use for the new standard page. Note that this layout is not used when the given <argument>pCurrentPage</argument> is not a standard page. In this case the layout is taken from the standard page associated with <argument>pCurrentPage</argument>.
eNotesLayoutLayout to use for the new notes page. Note that this layout is not used when the given <argument>pCurrentPage</argument> is not a notes page. In this case the layout is taken from the notes page associated with <argument>pCurrentPage</argument>.
bIsPageBackThis flag indicates whether to show the background shape.
bIsPageObjThis flag indicates whether to show the shapes on the master page.
nInsertPositionPosition where to insert the standard page. When -1 then the new page set is inserted after the current page.
Returns
Returns an index of the inserted pages that can be used with the <member>GetSdPage()</member> method.

Definition at line 1128 of file drawdoc2.cxx.

References AllocSdPage(), SdPage::GetAutoLayout(), SdPage::getHeaderFooterSettings(), SdPage::GetLayoutName(), SdrPage::GetLeftBorder(), SdrPage::GetLowerBorder(), SdrModel::GetPage(), SdrPage::GetPageNum(), SdPage::GetPresChange(), SdrPage::GetRightBorder(), SdrPage::GetSize(), SdPage::GetTime(), SdPage::getTransitionDirection(), SdPage::getTransitionDuration(), SdPage::getTransitionFadeColor(), SdPage::getTransitionSubtype(), SdPage::getTransitionType(), SdrPage::GetUpperBorder(), InsertPageSet(), Notes, and SdrPage::TRG_GetMasterPage().

Referenced by sd::ViewShell::CreateOrDuplicatePage().

◆ CreatePageNumValue()

OUString SdDrawDocument::CreatePageNumValue ( sal_uInt16  nNum) const

Definition at line 986 of file drawdoc4.cxx.

References SvxNumberFormat::CreateRomanString(), and mePageNumType.

Referenced by IMPL_LINK(), and ImplSdPPTImport::Import().

◆ createUnoModel()

uno::Reference< uno::XInterface > SdDrawDocument::createUnoModel ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 1013 of file drawdoc.cxx.

References SfxObjectShell::GetModel(), mpDocSh, and xModel.

◆ CreatingDataObj()

SAL_DLLPRIVATE void SdDrawDocument::CreatingDataObj ( SdTransferable pTransferable)
inline

◆ DECL_DLLPRIVATE_LINK() [1/3]

SdDrawDocument::DECL_DLLPRIVATE_LINK ( OnlineSpellEventHdl  ,
EditStatus ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/3]

SdDrawDocument::DECL_DLLPRIVATE_LINK ( OnlineSpellingHdl  ,
Timer ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/3]

SdDrawDocument::DECL_DLLPRIVATE_LINK ( WorkStartupHdl  ,
Timer ,
void   
)
private

◆ DeletePage()

void SdDrawDocument::DeletePage ( sal_uInt16  nPgNum)
overridevirtual

Reimplemented from SdrModel.

Definition at line 401 of file drawdoc2.cxx.

References SdrModel::DeletePage(), and UpdatePageObjectsInNotes().

Referenced by sd::View::InsertData().

◆ dumpAsXml()

void SdDrawDocument::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 1179 of file drawdoc.cxx.

References SdrModel::dumpAsXml(), GetUndoManager(), and mpOutliner.

Referenced by sd::Window::KeyInput().

◆ DuplicatePage() [1/2]

sal_uInt16 SdDrawDocument::DuplicatePage ( sal_uInt16  nPageNum)

This method acts as a simplified front end for the more complex <member>DuplicatePage()</member> method.

Parameters
nPageNumThe page number as passed to the <member>GetSdPage()</member> method for which the standard page and the notes page are to be copied.
Returns
Returns an index of the inserted pages that can be used with the <member>GetSdPage()</member> method.

Definition at line 1215 of file drawdoc2.cxx.

References DuplicatePage(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerID(), GetSdPage(), SdrLayerIDSet::IsSet(), Standard, sUNO_LayerName_background, sUNO_LayerName_background_objects, and SdrPage::TRG_GetMasterPageVisibleLayers().

Referenced by sd::ViewShell::CreateOrDuplicatePage(), DuplicatePage(), sd::TabControl::ExecuteDrop(), SdGRFFilter::Import(), and SdPdfFilter::Import().

◆ DuplicatePage() [2/2]

sal_uInt16 SdDrawDocument::DuplicatePage ( SdPage pCurrentPage,
PageKind  ePageKind,
const OUString &  sStandardPageName,
const OUString &  sNotesPageName,
bool  bIsPageBack,
bool  bIsPageObj,
const sal_Int32  nInsertPosition 
)

Create and insert a set of two new pages that are copies of the given <argument>pCurrentPage</argument> and its associated notes resp.

standard page. The copies are inserted directly after the specified page set.

Parameters
pCurrentPageThis page and its associated notes/standard page is copied.
ePageKindThis specifies whether <argument>pCurrentPage</argument> is a standard (draw) page or a notes page.
sStandardPageNameName of the standard page. An empty string leads to using an automatically created name.
sNotesPageNameName of the standard page. An empty string leads to using an automatically created name.
bIsPageBackThis flag indicates whether to show the background shape.
bIsPageObjThis flag indicates whether to show the shapes on the master page.
nInsertPositionPosition where to insert the standard page. When -1 then the new page set is inserted after the current page.
Returns
Returns an index of the inserted pages that can be used with the <member>GetSdPage()</member> method.

Definition at line 1236 of file drawdoc2.cxx.

References SdPage::CloneSdrPage(), SdrModel::GetPage(), SdrPage::GetPageNum(), InsertPageSet(), and Notes.

◆ FillOnlineSpellingList()

void SdDrawDocument::FillOnlineSpellingList ( SdPage const *  pPage)
private

◆ GetActiveSdPageCount()

sal_uInt16 SdDrawDocument::GetActiveSdPageCount ( ) const

◆ GetAnimationInfo()

SdAnimationInfo * SdDrawDocument::GetAnimationInfo ( SdrObject pObject)
static

◆ GetAnnotationAuthorIndex()

sal_uInt16 SdDrawDocument::GetAnnotationAuthorIndex ( const OUString &  rAuthor)

◆ GetCharClass()

SAL_DLLPRIVATE const std::optional< CharClass > & SdDrawDocument::GetCharClass ( ) const
inline

Definition at line 468 of file drawdoc.hxx.

Referenced by SdCustomShowDlg::SelectHdl().

◆ GetCustomShowList()

SdCustomShowList * SdDrawDocument::GetCustomShowList ( bool  bCreate = false)

◆ getDefaultFonts()

void SdDrawDocument::getDefaultFonts ( vcl::Font rLatinFont,
vcl::Font rCJKFont,
vcl::Font rCTLFont 
)

◆ GetDefaultWritingMode()

css::text::WritingMode SdDrawDocument::GetDefaultWritingMode ( ) const

◆ getDocAccTitle()

SAL_DLLPRIVATE const OUString & SdDrawDocument::getDocAccTitle ( ) const
inline

◆ getDocReadOnly()

SAL_DLLPRIVATE bool SdDrawDocument::getDocReadOnly ( ) const
inline

◆ GetDocSh()

SAL_DLLPRIVATE::sd::DrawDocShell * SdDrawDocument::GetDocSh ( ) const
inline

Definition at line 242 of file drawdoc.hxx.

Referenced by sd::slidesorter::controller::Clipboard::AcceptDrop(), SdPageObjsTLV::AddShapeToTransferable(), AllocSdDrawDocument(), sd::sidebar::DocumentHelper::AssignMasterPageToPage(), sd::sidebar::DocumentHelper::AssignMasterPageToPageList(), sd::slidesorter::controller::SlotManager::ChangeSlideExclusionState(), SdOutliner::ConvertNextDocument(), SdTransferable::CreateData(), sd::slidesorter::controller::Clipboard::CreateSlideTransferable(), SdPageObjsTLV::DoDrag(), sd::FuChar::DoExecute(), sd::FuTemplate::DoExecute(), sd::LayerTabBar::EndRenaming(), sd::slidesorter::controller::SlotManager::ExecCtrl(), SdTPAction::FillItemSet(), ImplSdPPTImport::FillSdAnimationInfo(), sd::FrameView::FrameView(), SdNavigatorWin::FreshTree(), sd::slidesorter::controller::SlotManager::FuSupport(), sd::DrawViewShell::FuTemporary(), SdTPAction::GetEditText(), sd::slidesorter::controller::SlotManager::GetMenuState(), SdXImpressDocument::GetModel(), SdXImpressDocument::getPropertyValue(), SdGenericDrawPage::getPropertyValue(), IMPL_LINK(), IMPL_LINK_NOARG(), sd::sidebar::LayoutMenu::implConstruct(), ImplSdPPTImport::Import(), sd::ModifyGuard::init(), sd::PreviewRenderer::Initialize(), SdNavigatorWin::InitTreeLB(), sd::View::InsertData(), sd::sidebar::CurrentMasterPagesSelector::LateInit(), sd::sidebar::LayoutMenu::LayoutMenu(), sd::slidesorter::controller::Listener::Listener(), sd::GraphicSizeCheckGUIEntry::markObject(), sd::LayerTabBar::MouseButtonDown(), SdOutliner::PrepareConversion(), SdOutliner::PrepareSearchAndReplace(), SdOutliner::ProvideNextTextObject(), sd::sidebar::DocumentHelper::ProvideStyles(), ImplSdPPTImport::ReadFormControl(), sd::FrameView::ReadUserDataSequence(), SdLayerModifyUndoAction::Redo(), ChangeSlideExclusionStateUndoAction::Redo(), refreshpage(), sd::slidesorter::controller::Listener::ReleaseListeners(), sd::DrawViewShell::RenameSlide(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), sd::GraphicSizeCheckGUIEntry::runProperties(), SdInsertPagesObjsDlg::SdInsertPagesObjsDlg(), SdOutliner::SdOutliner(), SdUndoAction::SdUndoAction(), SdOutliner::SearchAndReplaceOnce(), SdPageObjsTLV::Select(), SdTransferable::SetPageBookmarks(), SdXImpressDocument::setPropertyValue(), SdXShape::SetStyleSheet(), SdOutliner::SpellNextDocument(), sd::SlideShow::StartFullscreenPresentation(), SdOutliner::StartSearchAndReplace(), sd::SlideShow::startWithArguments(), sd::TextObjectBar::TextObjectBar(), SdLayerModifyUndoAction::Undo(), ChangeSlideExclusionStateUndoAction::Undo(), SdTPAction::UpdateTree(), and sd::sidebar::CurrentMasterPagesSelector::~CurrentMasterPagesSelector().

◆ GetDocumentType()

SAL_DLLPRIVATE DocumentType SdDrawDocument::GetDocumentType ( ) const
inline

Definition at line 251 of file drawdoc.hxx.

Referenced by sd::AnnotationManagerImpl::AnnotationManagerImpl(), sd::FuPage::ApplyItemSet(), SdModule::ApplyItemSet(), sd::DrawView::CompleteRedraw(), sd::DrawViewShell::Construct(), SdModule::CreateItemSet(), sd::slidesorter::controller::SelectionManager::DeleteSelectedPages(), sd::EffectMigration::DocumentLoaded(), sd::FuArea::DoExecute(), sd::FuInsertOLE::DoExecute(), sd::FuInsertFile::DoExecute(), sd::FuTemplate::DoExecute(), SdModule::Execute(), sd::FuPage::ExecuteDialog(), SdDocLinkTarget::FindPage(), sd::FrameView::FrameView(), SdTransferable::GetData(), SdDocLinkTarget::getElementNames(), sd::AnnotationManagerImpl::GetNextPage(), SdModule::GetOptionStream(), sd::DrawDocShell::GetPrinter(), SdModule::GetSdOptions(), SdModule::GetState(), sd::DrawDocShell::GetState(), sd::slidesorter::controller::SlotManager::GetStatusBarState(), sd::DrawDocShell::GotoBookmark(), IMPL_LINK(), HtmlExport::InitExportParameters(), SdXImpressDocument::initializeForTiledRendering(), InsertBookmarkAsPage(), sd::View::InsertData(), ModifyPageUndoAction::ModifyPageUndoAction(), sd::FrameView::ReadUserDataSequence(), sd::slidesorter::controller::SlotManager::RenameSlide(), SdInsertPagesObjsDlg::SdInsertPagesObjsDlg(), SdPresLayoutDlg::SdPresLayoutDlg(), sd::AnnotationManagerImpl::SelectNextAnnotation(), HtmlExport::SetDocColors(), SetMasterPage(), sd::FuConstruct::SetStyleSheet(), sd::DocumentRenderer::Implementation::SetupPaperOrientation(), sd::AnnotationManagerImpl::ShowAnnotations(), SdOutliner::ShowWrapAroundDialog(), and SdTransferable::WriteObject().

◆ GetFrameView()

SAL_DLLPRIVATE::sd::FrameView * SdDrawDocument::GetFrameView ( sal_uLong  nPos)
inline

Definition at line 460 of file drawdoc.hxx.

References nPos.

Referenced by sd::FrameView::FrameView(), and ImplSdPPTImport::Import().

◆ GetFrameViewList()

SAL_DLLPRIVATE std::vector< std::unique_ptr< sd::FrameView > > & SdDrawDocument::GetFrameViewList ( )
inline

◆ getImagePreferredDPI()

sal_Int32 SdDrawDocument::getImagePreferredDPI ( ) const
inlineoverridevirtual

Reimplemented from SdrModel.

Definition at line 621 of file drawdoc.hxx.

Referenced by sd::GraphicSizeCheck::check(), sd::DrawViewShell::GetMenuStateSel(), and sd::View::InsertGraphic().

◆ GetInternalOutliner()

SdOutliner * SdDrawDocument::GetInternalOutliner ( bool  bCreateOutliner = true)

◆ GetLanguage()

LanguageType SdDrawDocument::GetLanguage ( const sal_uInt16  nId) const

◆ GetLayoutVector()

SAL_DLLPRIVATE const std::vector< css::uno::Reference< css::xml::dom::XNode > > & SdDrawDocument::GetLayoutVector ( ) const
inline

return reference to vector of Impress layout definitions

Definition at line 296 of file drawdoc.hxx.

◆ GetLinkCount()

sal_uLong SdDrawDocument::GetLinkCount ( ) const

Definition at line 839 of file drawdoc2.cxx.

References sfx2::LinkManager::GetLinks(), and SdrModel::m_pLinkManager.

◆ GetMasterPageUserCount()

sal_uInt16 SdDrawDocument::GetMasterPageUserCount ( SdrPage const *  pMaster) const

◆ GetMasterSdPage()

SdPage * SdDrawDocument::GetMasterSdPage ( sal_uInt16  nPgNum,
PageKind  ePgKind 
)

Definition at line 217 of file drawdoc2.cxx.

References mpMasterPageListWatcher.

Referenced by AdaptPageSizeForAllPages(), adaptSizeAndBorderForAllPages(), AllocSdDrawDocument(), sd::MasterPageObserver::Implementation::AnalyzeUsedMasterPages(), sd::HeaderFooterDialog::apply(), SdPage::CalculateHandoutAreas(), sd::DrawViewShell::ChangeEditMode(), SdTemplateControl::Command(), sd::sidebar::DocumentHelper::CopyMasterPageToLocalDocument(), sd::EffectMigration::DocumentLoaded(), sd::DrawViewShell::ExecRuler(), sd::sidebar::CurrentMasterPagesSelector::Fill(), sd::sidebar::RecentMasterPagesSelector::Fill(), fixupOutlinePlaceholderNumberingDepths(), sd::DrawViewShell::FuTemporary(), SdMasterPagesAccess::getByIndex(), sd::DrawViewShell::getCurrentPage(), SdDocLinkTarget::getElementNames(), SdXImpressDocument::getHandoutMasterPage(), sd::AnnotationManagerImpl::GetNextPage(), SdMasterPage::getNotesPage(), sd::HeaderFooterTabPage::GetOrSetDateTimeLanguage(), sd::slidesorter::model::SlideSorterModel::GetPage(), SdXImpressDocument::getPartHash(), SdXImpressDocument::getPartName(), sd::HeaderFooterTabPage::HeaderFooterTabPage(), SdCGMFilter::Import(), ImplSdPPTImport::Import(), sd::slidesorter::controller::SlotManager::InsertSlide(), sd::MasterLayoutDialog::MasterLayoutDialog(), NewOrLoadCompleted(), sd::sidebar::TemplatePageObjectProvider::operator()(), sd::ViewShell::Implementation::ProcessModifyPageSlot(), sd::MasterPageObserver::Implementation::RegisterDocument(), RemoveUnnecessaryMasterPages(), sd::DrawViewShell::RenameSlide(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), sd::DrawViewShell::ResetActualPage(), sd::DrawDocShell::SaveAsOwnFormat(), SdStyleSheetPool::SdStyleSheetPool(), SdGenericDrawPage::SetHeight(), SdGenericDrawPage::SetLeftBorder(), SdGenericDrawPage::SetLowerBorder(), SetMasterPage(), sd::outliner::ViewIteratorImpl::SetPage(), SdGenericDrawPage::setPropertyValue(), SdGenericDrawPage::SetRightBorder(), sd::DrawViewShell::SetupPage(), SdGenericDrawPage::SetUpperBorder(), SdGenericDrawPage::SetWidth(), and sd::DrawViewShell::SwitchPage().

◆ GetMasterSdPageCount()

sal_uInt16 SdDrawDocument::GetMasterSdPageCount ( PageKind  ePgKind) const

Definition at line 222 of file drawdoc2.cxx.

References mpMasterPageListWatcher.

Referenced by AdaptPageSizeForAllPages(), adaptSizeAndBorderForAllPages(), AllocSdDrawDocument(), sd::MasterPageObserver::Implementation::AnalyzeUsedMasterPages(), sd::DrawViewShell::ChangeEditMode(), SdTemplateControl::Command(), sd::sidebar::DocumentHelper::CopyMasterPageToLocalDocument(), sd::outliner::DocumentIteratorImpl::DocumentIteratorImpl(), sd::EffectMigration::DocumentLoaded(), sd::DrawViewShell::ExecRuler(), sd::sidebar::CurrentMasterPagesSelector::Fill(), sd::sidebar::RecentMasterPagesSelector::Fill(), fixupOutlinePlaceholderNumberingDepths(), SdMasterPagesAccess::getByIndex(), SdMasterPagesAccess::getCount(), sd::DrawViewShell::getCurrentPage(), SdDocLinkTarget::getElementNames(), sd::AnnotationManagerImpl::GetNextPage(), sd::HeaderFooterTabPage::GetOrSetDateTimeLanguage(), sd::outliner::OutlinerContainer::GetPageIndex(), SdXImpressDocument::getParts(), sd::outliner::DocumentIteratorImpl::GotoNextText(), sd::slidesorter::controller::Listener::HandleModelChange(), NewOrLoadCompleted(), sd::MasterPageObserver::Implementation::RegisterDocument(), RemoveUnnecessaryMasterPages(), sd::DrawViewShell::ResetActualPage(), sd::DrawDocShell::SaveAsOwnFormat(), SdStyleSheetPool::SdStyleSheetPool(), SdGenericDrawPage::SetHeight(), SdGenericDrawPage::SetLeftBorder(), SdGenericDrawPage::SetLowerBorder(), sd::outliner::ViewIteratorImpl::SetPage(), SdGenericDrawPage::setPropertyValue(), SdGenericDrawPage::SetRightBorder(), sd::DrawViewShell::SetupPage(), SdGenericDrawPage::SetUpperBorder(), SdGenericDrawPage::SetWidth(), and sd::DrawViewShell::SwitchPage().

◆ GetObj()

SdrObject * SdDrawDocument::GetObj ( std::u16string_view  rObjName) const

◆ GetObjectVector()

SAL_DLLPRIVATE const std::vector< css::uno::Reference< css::xml::dom::XNode > > & SdDrawDocument::GetObjectVector ( ) const
inline

return reference to vector of master presentation object definitions

Definition at line 302 of file drawdoc.hxx.

◆ GetOnlineSpell()

SAL_DLLPRIVATE bool SdDrawDocument::GetOnlineSpell ( ) const
inline

◆ GetOutliner()

SdOutliner * SdDrawDocument::GetOutliner ( bool  bCreateOutliner = true)

◆ GetPageByName()

sal_uInt16 SdDrawDocument::GetPageByName ( std::u16string_view  rPgName,
bool &  rbIsMasterPage 
) const

Return the first page that has the given name.

Regular pages and notes pages are searched first. When not found then the master pages are searched.

Parameters
rPgNameName of the page to return.
rbIsMasterPageIs set by the method to indicate whether the returned index belongs to a master page (<TRUE>) or a regular or notes page (<FALSE>). The given value is ignored.
Returns
Returns the index of the page with the given name or SDRPAGE_NOTFOUND (=0xffff) when such a page does not exist.

Definition at line 126 of file drawdoc2.cxx.

References SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), SdPage::GetName(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdPage::GetPageKind(), Handout, and SDRPAGE_NOTFOUND.

Referenced by HtmlExport::CreateHtmlForPresPages(), sd::slidesorter::controller::Clipboard::CreateTransferableUserData(), sd::ViewClipboard::GetFirstMasterPage(), SdXShape::getPropertyValue(), sd::DrawDocShell::GotoBookmark(), ImplPDFGetBookmarkPage(), InsertBookmarkAsPage(), sd::DrawDocShell::IsNewPageNameValid(), lcl_IterateBookmarkPages(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), and SdMasterPage::setName().

◆ GetPageNumType()

SvxNumType SdDrawDocument::GetPageNumType ( ) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 1029 of file drawdoc.cxx.

References mePageNumType.

Referenced by sd::FuPage::ExecuteDialog().

◆ GetPool()

SAL_DLLPRIVATE SfxItemPool & SdDrawDocument::GetPool ( )
inline

Definition at line 237 of file drawdoc.hxx.

Referenced by sd::FuPage::ApplyItemSet(), ImplSdPPTImport::ApplyTextObj(), convertPresentationObjectImpl(), sd::FuConstruct3dObject::CreateDefaultObject(), sd::FuConstructArc::CreateDefaultObject(), sd::FuConstructCustomShape::CreateDefaultObject(), sd::FuConstructRectangle::CreateDefaultObject(), sd::FuArea::DoExecute(), sd::FuChar::DoExecute(), sd::FuConnectionDlg::DoExecute(), sd::FuCopy::DoExecute(), sd::FuExpandPage::DoExecute(), sd::FuLine::DoExecute(), sd::FuMeasureDlg::DoExecute(), sd::FuObjectAnimationParameters::DoExecute(), sd::FuBulletAndPosition::DoExecute(), sd::FuParagraph::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuScale::DoExecute(), sd::FuSlideShowDlg::DoExecute(), sd::FuSummaryPage::DoExecute(), sd::FuTemplate::DoExecute(), sd::FuTransform::DoExecute(), sd::FuTextAttrDlg::DoExecute(), sd::DrawViewShell::ExecChar(), sd::TextObjectBar::Execute(), sd::FuPage::ExecuteDialog(), sd::DrawViewShell::ExecutePropPanelAttr(), sd::DrawViewShell::FuTemporary(), sd::BezierObjectBar::GetAttrState(), sd::TextObjectBar::GetAttrState(), sd::TextObjectBar::GetCharState(), SdXImpressDocument::getPropertyValue(), sd::DrawDocShell::GetState(), sd::DrawViewShell::GetStatePropPanelAttr(), sd::FuSelection::HandleImageMapClick(), sd::View::InsertData(), sd::FuBullet::InsertSpecialCharacter(), sd::View::IsMorphingAllowed(), sd::FuConstruct3dObject::MouseButtonDown(), sd::FuConstructArc::MouseButtonDown(), sd::FuConstructBezierPolygon::MouseButtonDown(), sd::FuConstructCustomShape::MouseButtonDown(), sd::FuConstructRectangle::MouseButtonDown(), SdDrawDocument(), SdUnoPageBackground::SdUnoPageBackground(), sd::FuBulletAndPosition::SetCurrentBulletsNumbering(), sd::FuConstructRectangle::SetLineEnds(), and UpdatePageRelativeURLs().

◆ getPresentation()

const Reference< XPresentation2 > & SdDrawDocument::getPresentation ( ) const

◆ getPresentationSettings() [1/2]

SAL_DLLPRIVATE sd::PresentationSettings & SdDrawDocument::getPresentationSettings ( )
inline

Definition at line 401 of file drawdoc.hxx.

◆ getPresentationSettings() [2/2]

SAL_DLLPRIVATE const sd::PresentationSettings & SdDrawDocument::getPresentationSettings ( ) const
inline

◆ GetPrinterIndependentLayout()

SAL_DLLPRIVATE sal_Int32 SdDrawDocument::GetPrinterIndependentLayout ( ) const
inline

Get the flag that controls whether the formatting of the document depends on the current printer metrics.

Returns
Use <const scope="css::document::PrinterIndependentLayout">ENABLED</const> when formatting is printer-independent and <const scope="css::document::PrinterIndependentLayout">DISABLED</const> when formatting depends on the current printer metrics.

Definition at line 428 of file drawdoc.hxx.

Referenced by SdModule::ApplyItemSet(), SdModule::CreateItemSet(), sd::DrawDocShell::SetPrinter(), sd::DrawDocShell::UpdateFontList(), and sd::DrawDocShell::UpdateRefDevice().

◆ GetSdPage()

SdPage * SdDrawDocument::GetSdPage ( sal_uInt16  nPgNum,
PageKind  ePgKind 
) const

Definition at line 207 of file drawdoc2.cxx.

References mpDrawPageListWatcher.

Referenced by AdaptPageSizeForAllPages(), adaptSizeAndBorderForAllPages(), sd::sidebar::DocumentHelper::AddMasterPage(), sd::SdPhotoAlbumDialog::appendNewSlide(), sd::HeaderFooterDialog::apply(), sd::FuPage::ApplyItemSet(), sd::sidebar::MasterPagesSelector::AssignMasterPageToAllSlides(), sd::sidebar::DocumentHelper::AssignMasterPageToPage(), sd::DrawViewShell::ChangeEditMode(), SdDefineCustomShowDlg::ClickButtonHdl2(), sd::sidebar::DocumentHelper::CopyMasterPageToLocalDocument(), sd::SdPhotoAlbumDialog::createCaption(), SdTransferable::CreateData(), CreateFirstPages(), SdModule::CreateItemSet(), sd::ViewShell::CreateOrDuplicatePage(), SdPageLink::DataChanged(), sd::DrawViewShell::DeleteActualPage(), sd::ViewClipboard::DetermineInsertPosition(), sd::EffectMigration::DocumentLoaded(), sd::FuExpandPage::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuSlideShowDlg::DoExecute(), sd::FuSummaryPage::DoExecute(), sd::DrawDocShell::Draw(), DuplicatePage(), sd::SlideShow::end(), sd::DrawViewShell::ExecRuler(), sd::DrawViewShell::ExecuteDrop(), SdGRFFilter::Export(), sd::OutlineView::FillOutliner(), sd::DrawViewShell::FuTemporary(), sd::OutlineView::GetActualPage(), SdDrawPagesAccess::getByIndex(), SdDrawPagesAccess::getByName(), sd::DrawViewShell::getCurrentPage(), GetCurrentPage(), HtmlExport::getDocumentTitle(), SdDrawPagesAccess::getElementNames(), SdDocLinkTarget::getElementNames(), accessibility::AccessibleDocumentViewBase::getExtendedAttributes(), sd::DocumentRenderer::Implementation::GetFilteredPage(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::AnnotationManagerImpl::GetNextPage(), SdDrawPage::getNotesPage(), sd::slidesorter::model::SlideSorterModel::GetPage(), sd::OutlineView::GetPageForParagraph(), SdXImpressDocument::getPartHash(), SdXImpressDocument::getPartName(), SdGenericDrawPage::getPropertyValue(), SdStyleSheet::GetRealStyleSheet(), SdXImpressDocument::getRenderer(), sd::sidebar::DocumentHelper::GetSlideForMasterPage(), sd::OutlineViewShell::GetStatusBarState(), sd::SlideShowView::getTransformation(), sd::DrawDocShell::GetVisArea(), sd::slidesorter::controller::Listener::HandleShapeModification(), SdDrawPagesAccess::hasByName(), sd::HeaderFooterDialog::HeaderFooterDialog(), sd::DrawViewShell::ImplDestroy(), ImplPDFExportShapeInteraction(), SdGRFFilter::Import(), SdPdfFilter::Import(), ImplSdPPTImport::Import(), HtmlExport::InitExportParameters(), sd::DocumentRenderer::Implementation::InitHandoutTemplate(), InsertBookmarkAsObject(), InsertBookmarkAsPage(), sd::View::InsertData(), SdMasterPagesAccess::insertNewByIndex(), SdXImpressDocument::InsertSdPage(), sd::OutlineView::InsertSlideForParagraph(), sd::FuInsertFile::InsTextOrRTFinOlMode(), lcl_IterateBookmarkPages(), sd::DrawDocShell::Load(), MovePages(), sd::sidebar::DefaultPageObjectProvider::operator()(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::DocumentRenderer::Implementation::PrepareHandout(), sd::DocumentRenderer::Implementation::PreparePages(), sd::DocumentRenderer::Implementation::PrepareStdOrNotes(), sd::ViewShell::Implementation::ProcessModifyPageSlot(), sd::OutlineViewShell::ReadFrameViewData(), sd::OutlineViewShell::ReadRtf(), refreshpage(), RemoveUnnecessaryMasterPages(), sd::DrawViewShell::RenameSlide(), sd::slidesorter::controller::SlotManager::RenameSlideFromDrawViewShell(), SdXImpressDocument::render(), sd::DrawViewShell::ResetActualPage(), SdDefineCustomShowDlg::SdDefineCustomShowDlg(), sd::DrawViewShell::SelectPage(), sd::OutlineViewShell::SetCurrentPage(), HtmlExport::SetDocColors(), SdGenericDrawPage::SetHeight(), SdGenericDrawPage::SetLeftBorder(), SdGenericDrawPage::SetLowerBorder(), SdDrawPage::setMasterPage(), SetMasterPage(), SdDrawPage::setName(), sd::outliner::ViewIteratorImpl::SetPage(), SdTransferable::SetPageBookmarks(), sd::ViewShell::SetPageSizeAndBorder(), sd::ViewShellBase::SetPrinter(), SdGenericDrawPage::setPropertyValue(), SdGenericDrawPage::SetRightBorder(), sd::OutlineView::SetSelectedPages(), sd::DrawViewShell::SetupPage(), sd::DocumentRenderer::Implementation::SetupPaperOrientation(), SdGenericDrawPage::SetUpperBorder(), SdGenericDrawPage::SetWidth(), sd::DrawViewShell::SwitchPage(), UnselectAllPages(), sd::OutlineView::UpdateDocument(), and sd::sidebar::CurrentMasterPagesSelector::UpdateSelection().

◆ GetSdPageCount()

sal_uInt16 SdDrawDocument::GetSdPageCount ( PageKind  ePgKind) const

Definition at line 212 of file drawdoc2.cxx.

References mpDrawPageListWatcher.

Referenced by AdaptPageSizeForAllPages(), adaptSizeAndBorderForAllPages(), sd::SdPhotoAlbumDialog::appendNewSlide(), sd::HeaderFooterDialog::apply(), sd::sidebar::MasterPagesSelector::AssignMasterPageToAllSlides(), sd::sidebar::DocumentHelper::AssignMasterPageToPage(), sd::DrawViewShell::ChangeEditMode(), sd::sidebar::DocumentHelper::CopyMasterPageToLocalDocument(), sd::slidesorter::view::InsertionIndicatorOverlay::Create(), sd::SdPhotoAlbumDialog::createCaption(), sd::ViewShell::CreateOrDuplicatePage(), sd::DrawViewShell::DeleteActualPage(), SdOutliner::DetectChange(), sd::ViewClipboard::DetermineInsertPosition(), sd::outliner::DocumentIteratorImpl::DocumentIteratorImpl(), sd::EffectMigration::DocumentLoaded(), sd::FuExpandPage::DoExecute(), sd::FuNavigation::DoExecute(), sd::FuPresentationLayout::DoExecute(), sd::FuSlideShowDlg::DoExecute(), sd::FuSummaryPage::DoExecute(), sd::DrawDocShell::Draw(), sd::slidesorter::SlideSorterViewShell::ExecMovePageDown(), sd::slidesorter::SlideSorterViewShell::ExecMovePageLast(), sd::DrawViewShell::ExecNavigatorWin(), sd::DrawViewShell::ExecRuler(), sd::OutlineView::FillOutliner(), SdDrawPagesAccess::getByIndex(), SdDrawPagesAccess::getByName(), SdDrawPagesAccess::getCount(), sd::DrawViewShell::getCurrentPage(), SdDrawPagesAccess::getElementNames(), SdDocLinkTarget::getElementNames(), accessibility::AccessibleDocumentViewBase::getExtendedAttributes(), sd::DrawViewShell::GetMenuState(), sd::OutlineViewShell::GetMenuState(), sd::DrawViewShell::GetNavigatorWinState(), sd::AnnotationManagerImpl::GetNextPage(), sd::OutlineView::GetPageForParagraph(), sd::outliner::OutlinerContainer::GetPageIndex(), SdXImpressDocument::getParts(), SdGenericDrawPage::getPropertyValue(), SdXImpressDocument::getRendererCount(), sd::sidebar::DocumentHelper::GetSlideForMasterPage(), sd::DrawViewShell::GetStateGoToLastPage(), sd::DrawViewShell::GetStateGoToNextPage(), sd::slidesorter::SlideSorterViewShell::GetStateMovePageLast(), sd::OutlineViewShell::GetStatusBarState(), sd::outliner::DocumentIteratorImpl::GotoNextText(), sd::slidesorter::controller::Listener::HandleShapeModification(), SdDrawPagesAccess::hasByName(), sd::sidebar::IMPL_LINK_NOARG(), sd::DrawViewShell::ImplDestroy(), ImplPDFExportShapeInteraction(), ImplSdPPTImport::Import(), HtmlExport::InitExportParameters(), InsertBookmarkAsPage(), SdXImpressDocument::InsertSdPage(), sd::OutlineView::InsertSlideForParagraph(), sd::ViewClipboard::InsertSlides(), sd::FuPoor::KeyInput(), MovePages(), sd::slidesorter::controller::Clipboard::PasteTransferable(), sd::slidesorter::SlideSorterViewShell::PostMoveSlidesActions(), sd::DocumentRenderer::Implementation::PrepareBooklet(), sd::DocumentRenderer::Implementation::PrepareHandout(), sd::DocumentRenderer::Implementation::PrepareOutline(), sd::DocumentRenderer::Implementation::PrepareRegularPages(), sd::DocumentRenderer::Implementation::PrepareStdOrNotes(), SdDrawPagesAccess::remove(), sd::DrawViewShell::ResetActualPage(), sd::slidesorter::model::SlideSorterModel::Resync(), SdDefineCustomShowDlg::SdDefineCustomShowDlg(), SdPageObjsTLV::Select(), sd::OutlineViewShell::SetCurrentPage(), SdGenericDrawPage::SetHeight(), SdGenericDrawPage::SetLeftBorder(), SdGenericDrawPage::SetLowerBorder(), SdDrawPage::setName(), sd::outliner::ViewIteratorImpl::SetPage(), SdGenericDrawPage::setPropertyValue(), SdGenericDrawPage::SetRightBorder(), sd::DrawViewShell::SetupPage(), SdGenericDrawPage::SetUpperBorder(), SdOutliner::SetViewMode(), SdGenericDrawPage::SetWidth(), sd::DrawViewShell::SwitchPage(), UnselectAllPages(), sd::OutlineView::UpdateDocument(), sd::ViewShell::UpdateScrollBars(), and sd::sidebar::CurrentMasterPagesSelector::UpdateSelection().

◆ GetSdStyleSheetPool()

SdStyleSheetPool * SdDrawDocument::GetSdStyleSheetPool ( ) const

Get the style sheet pool if it was a SdStyleSheetPool.

Definition at line 1264 of file drawdoc4.cxx.

References SdrModel::GetStyleSheetPool().

Referenced by SdPPTImport::SdPPTImport().

◆ GetShapeUserData()

SdAnimationInfo * SdDrawDocument::GetShapeUserData ( SdrObject rObject,
bool  bCreate = false 
)
static

◆ GetUndoManager()

sd::UndoManager * SdDrawDocument::GetUndoManager ( ) const

◆ ImpOnlineSpellCallback()

void SdDrawDocument::ImpOnlineSpellCallback ( SpellCallbackInfo const *  pInfo,
SdrObject pObj,
SdrOutliner const *  pOutl 
)

◆ InitLayoutVector()

void SdDrawDocument::InitLayoutVector ( )

load xml-based impress layout definitions into document

Definition at line 1104 of file drawdoc.cxx.

References comphelper::getExpandedUri(), index, utl::ConfigManager::IsFuzzing(), maLayoutInfo, and nElements.

Referenced by SdDrawDocument().

◆ InitObjectVector()

void SdDrawDocument::InitObjectVector ( )

load xml-based impress master presentation object definitions into document

Definition at line 1142 of file drawdoc.cxx.

References comphelper::getExpandedUri(), index, utl::ConfigManager::IsFuzzing(), maPresObjectInfo, and nElements.

Referenced by SdDrawDocument().

◆ InsertBookmark()

void SdDrawDocument::InsertBookmark ( const std::vector< OUString > &  rBookmarkList,
std::vector< OUString > &  rExchangeList,
bool  bLink,
sal_uInt16  nPgPos,
::sd::DrawDocShell pBookmarkDocSh,
Point const *  pObjPos 
)

◆ InsertBookmarkAsObject()

bool SdDrawDocument::InsertBookmarkAsObject ( const std::vector< OUString > &  rBookmarkList,
const std::vector< OUString > &  rExchangeList,
::sd::DrawDocShell pBookmarkDocSh,
Point const *  pObjPos,
bool  bCalcObjCount 
)

◆ InsertBookmarkAsPage()

bool SdDrawDocument::InsertBookmarkAsPage ( const std::vector< OUString > &  rBookmarkList,
std::vector< OUString > *  pExchangeList,
bool  bLink,
bool  bReplace,
sal_uInt16  nPgPos,
bool  bNoDialogs,
::sd::DrawDocShell pBookmarkDocSh,
bool  bCopy,
bool  bMergeMasterPages,
bool  bPreservePageNames 
)

Insert pages into this document.

This method inserts whole pages into this document, either selected ones (specified via pBookmarkList/pExchangeList), or all from the source document.

Attention: \n Beware! This method in its current state does not
handle all combinations of their input parameters correctly. For example, for pBookmarkList=NULL, bReplace=true is ignored (no replace happens).
Parameters
pBookmarkListA list of strings, denoting the names of the pages to be copied
pExchangeListA list of strings, denoting the names of the pages to be renamed
bLinkWhether the inserted pages should be linked to the bookmark document
bReplaceWhether the pages should not be inserted, but replace the pages in the destination document
nPgPosInsertion point/start of replacement
bNoDialogsWhether query dialogs are allowed (e.g. for page scaling)
pBookmarkDocShDocShell of the source document (used e.g. to extract the filename for linked pages)
bCopyWhether the source document should be treated as immutable (i.e. inserted pages are not removed from it, but cloned)
bMergeMasterPagesWhether the source document's master pages should be copied, too.
bPreservePageNamesWhether the replace operation should take the name from the new page, or preserve the old name

Remove processed elements, to avoid doing hacks in InsertBookmarkAsObject

Definition at line 375 of file drawdoc3.cxx.

References SdrModel::AddUndo(), SfxUndoManager::AddUndoAction(), aName, aStr, SdrModel::BegUndo(), SdStyleSheetPool::CopyCellSheets(), SdStyleSheetPool::CopyLayoutSheets(), SdStyleSheetPool::CopyTableStyles(), Application::CreateMessageDialog(), Draw, SdrModel::EndUndo(), SfxUndoManager::EnterListAction(), sd::DrawDocShell::GetDoc(), GetDocumentType(), SdPage::GetLayoutName(), SdrPage::GetLeftBorder(), SdrPage::GetLowerBorder(), SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SfxStyleSheetBase::GetName(), SdPage::GetName(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdPage::GetOrientation(), SdrModel::GetPage(), GetPageByName(), SdrModel::GetPageCount(), SdPage::GetPageKind(), SdrPage::GetPageNum(), SdPage::GetRealName(), SdrPage::GetRightBorder(), GetSdPage(), GetSdPageCount(), SdrModel::GetSdrUndoFactory(), SdrPage::GetSize(), GetStandardText(), SdrObject::GetStyleSheet(), SdrModel::GetStyleSheetPool(), sd::DrawDocShell::GetUndoManager(), SdrPage::GetUpperBorder(), sd::DrawDocShell::GetViewShell(), i, Impress, tools::SvRef< typename T >::is(), SdrPage::IsMasterPage(), SdPage::IsScaleObjects(), SdrModel::IsUndoEnabled(), lcl_IterateBookmarkPages(), SfxUndoManager::LeaveListAction(), SdrModel::m_bTransportContainer, maBookmarkFile, Merge(), mpDocSh, mxBookmarkDocShRef, n, nIndex, Notes, nPos, p, SdPage::RemoveEmptyPresentationObjects(), RemoveMasterPage(), RemovePage(), RemoveUnnecessaryMasterPages(), SdStyleSheetPool::RenameAndCopyGraphicSheets(), ReplacePageInCustomShows(), RET_CANCEL, RET_YES, SdPage::ScaleObjects(), SD_LT_SEPARATOR, SD_MOD, SdResId(), SDRPAGE_NOTFOUND, SdPage::SetBookmarkName(), SdPage::SetBorder(), SdPage::SetFileName(), SdPage::SetName(), SdPage::SetOrientation(), SdPage::SetPresentationLayout(), SdPage::SetSize(), SdrObject::SetStyleSheet(), sName, Standard, and TOOLS_WARN_EXCEPTION.

Referenced by SdPageLink::DataChanged(), InsertBookmark(), sd::ViewClipboard::InsertSlides(), sd::FuInsertFile::InsSDDinDrMode(), sd::slidesorter::controller::Clipboard::PasteTransferable(), and SdTransferable::SetPageBookmarks().

◆ InsertMasterPage()

void SdDrawDocument::InsertMasterPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
overridevirtual

◆ InsertObject()

void SdDrawDocument::InsertObject ( SdrObject pObj)

◆ InsertPage()

void SdDrawDocument::InsertPage ( SdrPage pPage,
sal_uInt16  nPos = 0xFFFF 
)
overridevirtual

◆ InsertPageSet()

sal_uInt16 SdDrawDocument::InsertPageSet ( SdPage pCurrentPage,
PageKind  ePageKind,
const OUString &  sStandardPageName,
const OUString &  sNotesPageName,
bool  bIsPageBack,
bool  bIsPageObj,
SdPage pStandardPage,
SdPage pNotesPage,
sal_Int32  nInsertPosition 
)
private

Insert a given set of standard and notes page after the given <argument>pCurrentPage</argument>.

Parameters
pCurrentPageThis page and its associated notes/standard page is copied.
ePageKindThis specifies whether <argument>pCurrentPage</argument> is a standard (draw) page or a notes page.
sStandardPageNameName of the standard page. An empty string leads to using an automatically created name.
sNotesPageNameName of the standard page. An empty string leads to using an automatically created name.
bIsPageBackThis flag indicates whether to show the background shape.
bIsPageObjThis flag indicates whether to show the shapes on the master page.
pStandardPageThe standard page to insert.
pNotesPageThe notes page to insert.
nInsertPositionPosition where to insert the standard page. When -1 then the new page set is inserted after the current page.
Returns
Returns an index of the inserted pages that can be used with the <member>GetSdPage()</member> method.

Definition at line 1281 of file drawdoc2.cxx.

References SdrModel::GetPage(), SdrPage::GetPageNum(), Notes, SdPage::SetPageKind(), and SetupNewPage().

Referenced by CreatePage(), and DuplicatePage().

◆ IsCreatingDataObj()

virtual SAL_DLLPRIVATE bool SdDrawDocument::IsCreatingDataObj ( ) const
inlineoverridevirtual

Reimplemented from SdrModel.

Definition at line 256 of file drawdoc.hxx.

◆ IsEmbedFonts()

SAL_DLLPRIVATE bool SdDrawDocument::IsEmbedFonts ( ) const
inline

Definition at line 609 of file drawdoc.hxx.

◆ IsEmbedFontScriptAsian()

SAL_DLLPRIVATE bool SdDrawDocument::IsEmbedFontScriptAsian ( ) const
inline

Definition at line 612 of file drawdoc.hxx.

◆ IsEmbedFontScriptComplex()

SAL_DLLPRIVATE bool SdDrawDocument::IsEmbedFontScriptComplex ( ) const
inline

Definition at line 613 of file drawdoc.hxx.

◆ IsEmbedFontScriptLatin()

SAL_DLLPRIVATE bool SdDrawDocument::IsEmbedFontScriptLatin ( ) const
inline

Definition at line 611 of file drawdoc.hxx.

◆ IsEmbedUsedFontsOnly()

SAL_DLLPRIVATE bool SdDrawDocument::IsEmbedUsedFontsOnly ( ) const
inline

Definition at line 610 of file drawdoc.hxx.

◆ IsExitAfterPresenting()

SAL_DLLPRIVATE bool SdDrawDocument::IsExitAfterPresenting ( ) const
inline

Definition at line 290 of file drawdoc.hxx.

Referenced by sd::SlideShow::IsExitAfterPresenting().

◆ IsNewOrLoadCompleted()

SAL_DLLPRIVATE bool SdDrawDocument::IsNewOrLoadCompleted ( ) const
inline

Definition at line 458 of file drawdoc.hxx.

◆ IsPageNameUnique()

bool SdDrawDocument::IsPageNameUnique ( std::u16string_view  rPageName) const

checks, if the given name is a unique name for an existing slide

Parameters
rPageNamethe name of an existing slide
Returns
true, if the name is unique and the slide exists

Definition at line 173 of file drawdoc2.cxx.

References SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), SdPage::GetName(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdPage::GetPageKind(), Handout, and nCount.

Referenced by sd::DrawDocShell::IsPageNameUnique().

◆ IsReadOnly()

bool SdDrawDocument::IsReadOnly ( ) const
overridevirtual

Reimplemented from SdrModel.

Definition at line 1141 of file drawdoc3.cxx.

◆ IsStartWithPresentation()

SAL_DLLPRIVATE bool SdDrawDocument::IsStartWithPresentation ( ) const
inline

Definition at line 287 of file drawdoc.hxx.

Referenced by sd::ViewShellBase::Notify().

◆ IsSummationOfParagraphs()

SAL_DLLPRIVATE bool SdDrawDocument::IsSummationOfParagraphs ( ) const
inline

Definition at line 406 of file drawdoc.hxx.

Referenced by SdModule::CreateItemSet(), and sd::View::SdrBeginTextEdit().

◆ MasterPageListChanged()

void SdDrawDocument::MasterPageListChanged ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 1074 of file drawdoc.cxx.

References mpMasterPageListWatcher.

◆ Merge()

void SdDrawDocument::Merge ( SdrModel rSourceModel,
sal_uInt16  nFirstPageNum,
sal_uInt16  nLastPageNum,
sal_uInt16  nDestPos,
bool  bMergeMasterPages,
bool  bAllMasterPages,
bool  bUndo = true,
bool  bTreadSourceAsConst = false 
)
overridevirtual

◆ MovePage()

void SdDrawDocument::MovePage ( sal_uInt16  nPgNum,
sal_uInt16  nNewPos 
)
overridevirtual

Reimplemented from SdrModel.

Definition at line 370 of file drawdoc2.cxx.

References SdrModel::MovePage(), and UpdatePageObjectsInNotes().

Referenced by MovePages().

◆ MovePages()

bool SdDrawDocument::MovePages ( sal_uInt16  nTargetPage)

◆ NbcSetChanged()

void SdDrawDocument::NbcSetChanged ( bool  bFlag)

◆ NewOrLoadCompleted() [1/2]

void SdDrawDocument::NewOrLoadCompleted ( DocCreationMode  eMode)

◆ NewOrLoadCompleted() [2/2]

void SdDrawDocument::NewOrLoadCompleted ( SdPage pPage,
SdStyleSheetPool pSPool 
)

◆ OpenBookmarkDoc() [1/2]

SdDrawDocument * SdDrawDocument::OpenBookmarkDoc ( const OUString &  rBookmarkFile)

◆ OpenBookmarkDoc() [2/2]

SdDrawDocument * SdDrawDocument::OpenBookmarkDoc ( SfxMedium pMedium)

◆ PageListChanged()

void SdDrawDocument::PageListChanged ( )
overrideprivatevirtual

Reimplemented from SdrModel.

Definition at line 1069 of file drawdoc.cxx.

References mpDrawPageListWatcher.

◆ RemoveMasterPage()

rtl::Reference< SdrPage > SdDrawDocument::RemoveMasterPage ( sal_uInt16  nPgNum)
overridevirtual

◆ RemoveObject()

void SdDrawDocument::RemoveObject ( SdrObject pObj)

◆ RemovePage()

rtl::Reference< SdrPage > SdDrawDocument::RemovePage ( sal_uInt16  nPgNum)
overridevirtual

◆ RemoveUnnecessaryMasterPages()

void SdDrawDocument::RemoveUnnecessaryMasterPages ( SdPage pMaster = nullptr,
bool  bOnlyDuplicatePages = false,
bool  bUndo = true 
)

◆ RenameLayoutTemplate()

void SdDrawDocument::RenameLayoutTemplate ( const OUString &  rOldLayoutName,
const OUString &  rNewName 
)

◆ ReplacePageInCustomShows()

void SdDrawDocument::ReplacePageInCustomShows ( const SdPage pOldPage,
const SdPage pNewPage 
)

replacespOldPage from all custom shows with pNewPage or removes pOldPage from all custom shows if pNewPage is 0.

replaces a slide from all custom shows with a new one or removes a slide from all custom shows if pNewPage is 0.

Definition at line 33 of file drawdoc_animations.cxx.

References i, mpCustomShowList, and SdCustomShow::ReplacePage().

Referenced by InsertBookmarkAsPage(), and RemovePage().

◆ SetAllocDocSh()

void SdDrawDocument::SetAllocDocSh ( bool  bAlloc)

◆ SetCalcFieldValueHdl()

void SdDrawDocument::SetCalcFieldValueHdl ( ::Outliner pOutliner)
static

◆ SetChanged()

void SdDrawDocument::SetChanged ( bool  bFlag = true)
overridevirtual

◆ SetDefaultWritingMode()

void SdDrawDocument::SetDefaultWritingMode ( css::text::WritingMode  eMode)

◆ setDocAccTitle()

SAL_DLLPRIVATE void SdDrawDocument::setDocAccTitle ( const OUString &  rTitle)
inline

Definition at line 123 of file drawdoc.hxx.

Referenced by sd::DrawDocShell::SaveAs().

◆ SetEmbedFonts()

SAL_DLLPRIVATE void SdDrawDocument::SetEmbedFonts ( bool  bUse)
inline

Definition at line 615 of file drawdoc.hxx.

◆ SetEmbedFontScriptAsian()

SAL_DLLPRIVATE void SdDrawDocument::SetEmbedFontScriptAsian ( bool  bUse)
inline

Definition at line 618 of file drawdoc.hxx.

◆ SetEmbedFontScriptComplex()

SAL_DLLPRIVATE void SdDrawDocument::SetEmbedFontScriptComplex ( bool  bUse)
inline

Definition at line 619 of file drawdoc.hxx.

◆ SetEmbedFontScriptLatin()

SAL_DLLPRIVATE void SdDrawDocument::SetEmbedFontScriptLatin ( bool  bUse)
inline

Definition at line 617 of file drawdoc.hxx.

◆ SetEmbedUsedFontsOnly()

SAL_DLLPRIVATE void SdDrawDocument::SetEmbedUsedFontsOnly ( bool  bUse)
inline

Definition at line 616 of file drawdoc.hxx.

◆ SetExitAfterPresenting()

void SdDrawDocument::SetExitAfterPresenting ( bool  bExitAfterPresenting)

Definition at line 1064 of file drawdoc.cxx.

References mbExitAfterPresenting.

Referenced by sd::SlideShow::SetExitAfterPresenting().

◆ setImagePreferredDPI()

void SdDrawDocument::setImagePreferredDPI ( sal_Int32  nValue)
inline

Definition at line 622 of file drawdoc.hxx.

References nValue.

◆ SetLanguage()

void SdDrawDocument::SetLanguage ( const LanguageType  eLang,
const sal_uInt16  nId 
)

◆ SetMasterPage()

void SdDrawDocument::SetMasterPage ( sal_uInt16  nSdPageNum,
std::u16string_view  rLayoutName,
SdDrawDocument pSourceDoc,
bool  bMaster,
bool  bCheckMasters 
)

Definition at line 1370 of file drawdoc3.cxx.

References a, SdrModel::AddUndo(), SfxUndoManager::AddUndoAction(), AllocSdPage(), aName, StyleReplaceData::aName, StyleReplaceData::aNewName, AUTOLAYOUT_NONE, AUTOLAYOUT_NOTES, SdrModel::BegUndo(), SfxBroadcaster::Broadcast(), SfxItemSet::ClearItem(), createNewMasterPageLayoutName(), DBG_ASSERT, Draw, SdrModel::EndUndo(), SfxUndoManager::EnterListAction(), SdPage::GetAutoLayout(), GetDocumentType(), SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetHelpId(), SfxStyleSheetBase::GetItemSet(), SdPage::GetLayoutName(), SdrPage::GetLeftBorder(), SdrPage::GetLowerBorder(), SfxStyleSheetBase::GetMask(), SdrModel::GetMasterPage(), SdrModel::GetMasterPageCount(), GetMasterSdPage(), SfxStyleSheetBase::GetName(), SdPage::GetName(), SdPage::GetOrientation(), SdrModel::GetPage(), SdrModel::GetPageCount(), SdPage::GetPageKind(), SdrPage::GetPageNum(), SfxStyleSheetBase::GetParent(), SdrPage::GetRightBorder(), GetSdPage(), SdrModel::GetSdrUndoFactory(), SdrPage::GetSize(), SdrModel::GetStyleSheetPool(), sd::DrawDocShell::GetUndoManager(), SdrPage::GetUpperBorder(), sd::DrawDocShell::GetViewShell(), Impress, InsertMasterPage(), isMasterPageLayoutNameUnique(), SdrModel::IsUndoEnabled(), SfxUndoManager::LeaveListAction(), mpDocSh, SdrModel::mxStyleSheetPool, StyleReplaceData::nFamily, nIndex, StyleReplaceData::nNewFamily, Notes, nPos, SfxItemSet::Put(), RemoveUnnecessaryMasterPages(), SD_LT_SEPARATOR, SdResId(), SfxStyleSheetBase::SetHelpId(), SfxStyleSheetBase::SetName(), SfxStyleSheetBase::SetParent(), SfxObjectShell::SetWaitCursor(), Standard, STR_LAYOUT_OUTLINE, and SdrPage::TRG_GetMasterPage().

Referenced by sd::ViewClipboard::AssignMasterPage(), sd::sidebar::DocumentHelper::AssignMasterPageToPage(), sd::sidebar::DocumentHelper::CopyMasterPageToLocalDocument(), sd::FuPresentationLayout::DoExecute(), and sd::sidebar::IMPL_LINK_NOARG().

◆ SetOnlineSpell()

void SdDrawDocument::SetOnlineSpell ( bool  bIn)

◆ SetPageNumType()

SAL_DLLPRIVATE void SdDrawDocument::SetPageNumType ( SvxNumType  eType)
inline

Definition at line 248 of file drawdoc.hxx.

References eType.

Referenced by sd::FuPage::ApplyItemSet().

◆ SetPrinterIndependentLayout()

void SdDrawDocument::SetPrinterIndependentLayout ( sal_Int32  nMode)

Set the mode that controls whether (and later how) the formatting of the document depends on the current printer metrics.

Parameters
nModeUse <const scope="css::document::PrinterIndependentLayout">ENABLED</const> to make formatting printer-independent and <const scope="css::document::PrinterIndependentLayout">DISABLED</const> to make formatting depend on the current printer metrics.

Definition at line 1034 of file drawdoc.cxx.

References mnPrinterIndependentLayout, mpDocSh, and sd::DrawDocShell::UpdateRefDevice().

Referenced by SdModule::ApplyItemSet(), and SdDrawDocument().

◆ SetSelected()

void SdDrawDocument::SetSelected ( SdPage pPage,
bool  bSelect 
)

◆ SetStartWithPresentation()

void SdDrawDocument::SetStartWithPresentation ( bool  bStartWithPresentation)

◆ SetSummationOfParagraphs()

SAL_DLLPRIVATE void SdDrawDocument::SetSummationOfParagraphs ( bool  bOn = true)
inline

◆ SetTextDefaults()

void SdDrawDocument::SetTextDefaults ( ) const

◆ SetupNewPage()

void SdDrawDocument::SetupNewPage ( SdPage const *  pPreviousPage,
SdPage pPage,
const OUString &  sPageName,
sal_uInt16  nInsertionPoint,
bool  bIsPageBack,
bool  bIsPageObj 
)
private

Set up a newly created page and insert it into the list of pages.

Parameters
pPreviousPageA page to take the size and border geometry from.
pPageThis is the page to set up and insert.
sPageNameThe name of the new page.
nInsertionPointIndex of the page before which the new page will be inserted.
bIsPageBackThis flag indicates whether to show the background shape.
bIsPageObjThis flag indicates whether to show the shapes on the master page.

Definition at line 1345 of file drawdoc2.cxx.

References SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerID(), SdrPage::GetLeftBorder(), SdrPage::GetLowerBorder(), SdrPage::GetRightBorder(), SdrPage::GetSize(), SdrPage::GetUpperBorder(), InsertPage(), SdrLayerIDSet::Set(), SdPage::SetBorder(), SdPage::SetName(), SdPage::SetSize(), sUNO_LayerName_background, sUNO_LayerName_background_objects, SdrPage::TRG_GetMasterPageVisibleLayers(), and SdrPage::TRG_SetMasterPageVisibleLayers().

Referenced by InsertPageSet().

◆ SpellObject()

void SdDrawDocument::SpellObject ( SdrTextObj pObj)
private

◆ StartOnlineSpelling()

void SdDrawDocument::StartOnlineSpelling ( bool  bForceSpelling = true)

◆ StopOnlineSpelling()

void SdDrawDocument::StopOnlineSpelling ( )

◆ StopWorkStartupDelay()

void SdDrawDocument::StopWorkStartupDelay ( )

◆ UnselectAllPages()

void SdDrawDocument::UnselectAllPages ( )

◆ UpdateAllLinks()

void SdDrawDocument::UpdateAllLinks ( )

◆ UpdatePageObjectsInNotes()

void SdDrawDocument::UpdatePageObjectsInNotes ( sal_uInt16  nStartPos)
private

◆ UpdatePageRelativeURLs() [1/2]

void SdDrawDocument::UpdatePageRelativeURLs ( SdPage const *  pPage,
sal_uInt16  nPos,
sal_Int32  nIncrement 
)
private

◆ UpdatePageRelativeURLs() [2/2]

void SdDrawDocument::UpdatePageRelativeURLs ( std::u16string_view  aOldName,
std::u16string_view  aNewName 
)

Member Data Documentation

◆ maAnnotationAuthors

std::vector< OUString > SdDrawDocument::maAnnotationAuthors
private

Definition at line 181 of file drawdoc.hxx.

Referenced by GetAnnotationAuthorIndex().

◆ maBookmarkFile

OUString SdDrawDocument::maBookmarkFile
private

Definition at line 146 of file drawdoc.hxx.

Referenced by CloseBookmarkDoc(), InsertBookmarkAsPage(), and OpenBookmarkDoc().

◆ maFrameViewList

std::vector<std::unique_ptr<sd::FrameView> > SdDrawDocument::maFrameViewList
private

Definition at line 140 of file drawdoc.hxx.

Referenced by ~SdDrawDocument().

◆ maLayoutInfo

std::vector<css::uno::Reference< css::xml::dom::XNode> > SdDrawDocument::maLayoutInfo
private

Definition at line 182 of file drawdoc.hxx.

Referenced by InitLayoutVector().

◆ maPresentationSettings

sd::PresentationSettings SdDrawDocument::maPresentationSettings
private

Definition at line 149 of file drawdoc.hxx.

◆ maPresObjectInfo

std::vector<css::uno::Reference< css::xml::dom::XNode> > SdDrawDocument::maPresObjectInfo
private

Definition at line 184 of file drawdoc.hxx.

Referenced by InitObjectVector().

◆ mbAllocDocSh

bool SdDrawDocument::mbAllocDocSh
private

Definition at line 164 of file drawdoc.hxx.

Referenced by AllocSdDrawDocument(), and SetAllocDocSh().

◆ mbEmbedFonts

bool SdDrawDocument::mbEmbedFonts
private

Definition at line 186 of file drawdoc.hxx.

◆ mbEmbedFontScriptAsian

bool SdDrawDocument::mbEmbedFontScriptAsian
private

Definition at line 189 of file drawdoc.hxx.

◆ mbEmbedFontScriptComplex

bool SdDrawDocument::mbEmbedFontScriptComplex
private

Definition at line 190 of file drawdoc.hxx.

◆ mbEmbedFontScriptLatin

bool SdDrawDocument::mbEmbedFontScriptLatin
private

Definition at line 188 of file drawdoc.hxx.

◆ mbEmbedUsedFontsOnly

bool SdDrawDocument::mbEmbedUsedFontsOnly
private

Definition at line 187 of file drawdoc.hxx.

◆ mbExitAfterPresenting

bool SdDrawDocument::mbExitAfterPresenting
private

true if mbStartWithPresentation AND Presentation was shown fully

Definition at line 158 of file drawdoc.hxx.

Referenced by SetExitAfterPresenting().

◆ mbHasOnlineSpellErrors

bool SdDrawDocument::mbHasOnlineSpellErrors
private

Definition at line 144 of file drawdoc.hxx.

Referenced by SpellObject().

◆ mbInitialOnlineSpellingEnabled

bool SdDrawDocument::mbInitialOnlineSpellingEnabled
private

Definition at line 145 of file drawdoc.hxx.

Referenced by StartOnlineSpelling().

◆ mbNewOrLoadCompleted

bool SdDrawDocument::mbNewOrLoadCompleted
private

Definition at line 153 of file drawdoc.hxx.

Referenced by NewOrLoadCompleted(), and SetChanged().

◆ mbOnlineSpell

bool SdDrawDocument::mbOnlineSpell
private

◆ mbStartWithPresentation

bool SdDrawDocument::mbStartWithPresentation
private

is set to true when starting with command line parameter -start

Definition at line 157 of file drawdoc.hxx.

Referenced by SetStartWithPresentation().

◆ mbSummationOfParagraphs

bool SdDrawDocument::mbSummationOfParagraphs
private

Definition at line 156 of file drawdoc.hxx.

◆ meDocType

DocumentType SdDrawDocument::meDocType
private

Definition at line 165 of file drawdoc.hxx.

Referenced by AllocSdDrawDocument(), CreateFirstPages(), and SdDrawDocument().

◆ meLanguage

LanguageType SdDrawDocument::meLanguage
private

Definition at line 159 of file drawdoc.hxx.

Referenced by GetLanguage(), SdDrawDocument(), SetLanguage(), and StartOnlineSpelling().

◆ meLanguageCJK

LanguageType SdDrawDocument::meLanguageCJK
private

Definition at line 160 of file drawdoc.hxx.

Referenced by GetLanguage(), and SetLanguage().

◆ meLanguageCTL

LanguageType SdDrawDocument::meLanguageCTL
private

Definition at line 161 of file drawdoc.hxx.

Referenced by GetLanguage(), and SetLanguage().

◆ mePageNumType

SvxNumType SdDrawDocument::mePageNumType
private

Definition at line 162 of file drawdoc.hxx.

Referenced by CreatePageNumValue(), and GetPageNumType().

◆ mnImagePreferredDPI

sal_Int32 SdDrawDocument::mnImagePreferredDPI
private

Definition at line 192 of file drawdoc.hxx.

◆ mnPrinterIndependentLayout

sal_Int32 SdDrawDocument::mnPrinterIndependentLayout
private

This member stores the printer independent layout mode.

Please refer to <member>SetPrinterIndependentLayout()</member> for its values.

Definition at line 631 of file drawdoc.hxx.

Referenced by SetPrinterIndependentLayout().

◆ moCharClass

std::optional<CharClass> SdDrawDocument::moCharClass
private

Definition at line 167 of file drawdoc.hxx.

Referenced by SdDrawDocument(), and ~SdDrawDocument().

◆ mpCreatingTransferable

SdTransferable* SdDrawDocument::mpCreatingTransferable
private

Definition at line 143 of file drawdoc.hxx.

Referenced by AllocSdDrawDocument().

◆ mpCustomShowList

std::unique_ptr<SdCustomShowList> SdDrawDocument::mpCustomShowList
private

Definition at line 141 of file drawdoc.hxx.

Referenced by GetCustomShowList(), ReplacePageInCustomShows(), and ~SdDrawDocument().

◆ mpDocSh

::sd::DrawDocShell* SdDrawDocument::mpDocSh
private

◆ mpDrawPageListWatcher

::std::unique_ptr<ImpDrawPageListWatcher> SdDrawDocument::mpDrawPageListWatcher
private

◆ mpInternalOutliner

std::unique_ptr<SdOutliner> SdDrawDocument::mpInternalOutliner
private

internal outliner for creation of text objects

Definition at line 131 of file drawdoc.hxx.

Referenced by GetInternalOutliner(), NewOrLoadCompleted(), SetOnlineSpell(), and ~SdDrawDocument().

◆ mpMasterPageListWatcher

::std::unique_ptr<ImpMasterPageListWatcher> SdDrawDocument::mpMasterPageListWatcher
private

◆ mpOnlineSearchItem

std::unique_ptr<SvxSearchItem> SdDrawDocument::mpOnlineSearchItem
private

Definition at line 138 of file drawdoc.hxx.

Referenced by ImpOnlineSpellCallback(), SpellObject(), and ~SdDrawDocument().

◆ mpOnlineSpellingIdle

std::unique_ptr<Idle> SdDrawDocument::mpOnlineSpellingIdle
private

Definition at line 134 of file drawdoc.hxx.

Referenced by StartOnlineSpelling(), and StopOnlineSpelling().

◆ mpOnlineSpellingList

std::unique_ptr<sd::ShapeList> SdDrawDocument::mpOnlineSpellingList
private

◆ mpOutliner

std::unique_ptr<SdOutliner> SdDrawDocument::mpOutliner
private

local outliner for outline mode

Definition at line 129 of file drawdoc.hxx.

Referenced by dumpAsXml(), GetOutliner(), NewOrLoadCompleted(), SetOnlineSpell(), and ~SdDrawDocument().

◆ mpWorkStartupTimer

std::unique_ptr<Timer> SdDrawDocument::mpWorkStartupTimer
private

Definition at line 132 of file drawdoc.hxx.

Referenced by CreateFirstPages(), StopWorkStartupDelay(), and ~SdDrawDocument().

◆ msDocAccTitle

OUString SdDrawDocument::msDocAccTitle
private

Definition at line 127 of file drawdoc.hxx.

◆ mxAllocedDocShRef

::sd::DrawDocShellRef SdDrawDocument::mxAllocedDocShRef
private

Definition at line 163 of file drawdoc.hxx.

Referenced by AllocSdDrawDocument(), and SetAllocDocSh().

◆ mxBookmarkDocShRef

::sd::DrawDocShellRef SdDrawDocument::mxBookmarkDocShRef
private

◆ mxPresentation

css::uno::Reference< css::presentation::XPresentation2 > SdDrawDocument::mxPresentation
private

Definition at line 151 of file drawdoc.hxx.

Referenced by getPresentation().

◆ s_pDocLockedInsertingLinks

SdDrawDocument * SdDrawDocument::s_pDocLockedInsertingLinks = nullptr
static

static to prevent recursions while resolving links

Definition at line 491 of file drawdoc.hxx.

Referenced by SdPageLink::DataChanged(), and UpdateAllLinks().


The documentation for this class was generated from the following files: