/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SD_INC_DRAWDOC_HXX #define INCLUDED_SD_INC_DRAWDOC_HXX #include #include #include #include #include #include #include "pres.hxx" #include #include #include #include #include #include #include #include #include "sddllapi.h" #include "sdpage.hxx" namespace com { namespace sun { namespace star { namespace presentation { class XPresentation2; } } } } namespace sd { class FrameView; class Outliner; } class Timer; class SfxObjectShell; class SdPage; class SdAnimationInfo; class SdIMapInfo; class IMapObject; class SdStyleSheetPool; class SfxMedium; class SvxSearchItem; class EditStatus; class Point; namespace vcl { class Window; } class SdTransferable; struct SpellCallbackInfo; struct StyleRequestData; class SdDrawDocument; class SdCustomShow; class SdCustomShowList; namespace sd { class DrawDocShell; #ifndef SV_DECL_DRAW_DOC_SHELL_DEFINED #define SV_DECL_DRAW_DOC_SHELL_DEFINED typedef ::tools::SvRef DrawDocShellRef; #endif class UndoManager; class ShapeList; class FrameView; } class ImpDrawPageListWatcher; class ImpMasterPageListWatcher; struct StyleReplaceData { SfxStyleFamily nFamily; SfxStyleFamily nNewFamily; OUString aName; OUString aNewName; }; enum DocCreationMode { NEW_DOC, DOC_LOADED }; namespace sd { struct PresentationSettings { OUString maPresPage; bool mbAll; bool mbEndless; bool mbCustomShow; bool mbManual; bool mbMouseVisible; bool mbMouseAsPen; bool mbLockedPages; bool mbAlwaysOnTop; bool mbFullScreen; bool mbAnimationAllowed; sal_Int32 mnPauseTimeout; bool mbShowPauseLogo; bool mbStartWithNavigator; PresentationSettings(); PresentationSettings( const PresentationSettings& r ); }; } // SdDrawDocument class SD_DLLPUBLIC SdDrawDocument : public FmFormModel { private: OUString msDocAccTitle; public: SAL_DLLPRIVATE virtual void setDocAccTitle( const OUString& rTitle ) { msDocAccTitle = rTitle; } SAL_DLLPRIVATE virtual const OUString getDocAccTitle() const { return msDocAccTitle; } private: bool bReadOnly; public: SAL_DLLPRIVATE virtual bool getDocReadOnly() const { return bReadOnly; } private: ::sd::Outliner* mpOutliner; ///< local outliner for outline mode ::sd::Outliner* mpInternalOutliner; ///< internal outliner for creation of text objects Timer* mpWorkStartupTimer; Idle* mpOnlineSpellingIdle; sd::ShapeList* mpOnlineSpellingList; SvxSearchItem* mpOnlineSearchItem; std::vector maFrameViewList; SdCustomShowList* mpCustomShowList; ::sd::DrawDocShell* mpDocSh; SdTransferable * mpCreatingTransferable; bool mbHasOnlineSpellErrors; bool mbInitialOnlineSpellingEnabled; OUString maBookmarkFile; ::sd::DrawDocShellRef mxBookmarkDocShRef; sd::PresentationSettings maPresentationSettings; ::com::sun::star::uno::Reference< ::com::sun::star::presentation::XPresentation2 > mxPresentation; bool mbNewOrLoadCompleted; bool mbOnlineSpell; bool mbSummationOfParagraphs; bool mbStartWithPresentation; ///< is set to true when starting with command line parameter -start bool mbExitAfterPresenting; ///< true if mbStartWithPresentation AND Presentation was shown fully LanguageType meLanguage; LanguageType meLanguageCJK; LanguageType meLanguageCTL; SvxNumType mePageNumType; ::sd::DrawDocShellRef mxAllocedDocShRef; // => AllocModel() bool mbAllocDocSh; // => AllocModel() DocumentType meDocType; CharClass* mpCharClass; ::com::sun::star::lang::Locale* mpLocale; ::std::unique_ptr mpDrawPageListWatcher; ::std::unique_ptr mpMasterPageListWatcher; SAL_DLLPRIVATE void UpdatePageObjectsInNotes(sal_uInt16 nStartPos); SAL_DLLPRIVATE void UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_Int32 nIncrement); SAL_DLLPRIVATE void FillOnlineSpellingList(SdPage* pPage); SAL_DLLPRIVATE void SpellObject(SdrTextObj* pObj); DECL_DLLPRIVATE_LINK_TYPED(WorkStartupHdl, Timer *, void); DECL_DLLPRIVATE_LINK_TYPED(OnlineSpellingHdl, Idle *, void); DECL_DLLPRIVATE_LINK_TYPED(OnlineSpellEventHdl, EditStatus&, void); std::vector< OUString > maAnnotationAuthors; std::vector > maLayoutInfo; std::vector > maPresObjectInfo; bool mbUseEmbedFonts; protected: SAL_DLLPRIVATE virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoModel() SAL_OVERRIDE; public: TYPEINFO_VISIBILITY_OVERRIDE(SAL_DLLPRIVATE); SAL_DLLPRIVATE SdDrawDocument(DocumentType eType, SfxObjectShell* pDocSh); SAL_DLLPRIVATE virtual ~SdDrawDocument(); SAL_DLLPRIVATE SdDrawDocument* AllocSdDrawDocument() const; SAL_DLLPRIVATE virtual SdrModel* AllocModel() const SAL_OVERRIDE; //forwards to AllocSdDrawDocument SAL_DLLPRIVATE SdPage* AllocSdPage(bool bMasterPage); SAL_DLLPRIVATE virtual SdrPage* AllocPage(bool bMasterPage) SAL_OVERRIDE; //forwards to AllocSdPage SAL_DLLPRIVATE virtual bool IsReadOnly() const SAL_OVERRIDE; SAL_DLLPRIVATE virtual void SetChanged(bool bFlag = true) SAL_OVERRIDE; SAL_DLLPRIVATE SfxItemPool& GetPool() { return( *pItemPool ); } SAL_DLLPRIVATE ::sd::Outliner* GetOutliner(bool bCreateOutliner=true); ::sd::Outliner* GetInternalOutliner(bool bCreateOutliner=true); SAL_DLLPRIVATE ::sd::DrawDocShell* GetDocSh() const { return mpDocSh; } 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 SAL_OVERRIDE; SAL_DLLPRIVATE void SetPageNumType(SvxNumType eType) { mePageNumType = eType; } OUString CreatePageNumValue(sal_uInt16 nNum) const; SAL_DLLPRIVATE DocumentType GetDocumentType() const { return meDocType; } SAL_DLLPRIVATE void SetAllocDocSh(bool bAlloc); SAL_DLLPRIVATE void CreatingDataObj( SdTransferable* pTransferable ) { mpCreatingTransferable = pTransferable; } /** 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. If a reference document is given, the sizes and border settings of that document are used for newly created slides. */ void CreateFirstPages( SdDrawDocument* pRefDocument = 0 ); bool CreateMissingNotesAndHandoutPages(); SAL_DLLPRIVATE void MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos) SAL_OVERRIDE; SAL_DLLPRIVATE void InsertPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF) SAL_OVERRIDE; SAL_DLLPRIVATE void DeletePage(sal_uInt16 nPgNum) SAL_OVERRIDE; SAL_DLLPRIVATE SdrPage* RemovePage(sal_uInt16 nPgNum) SAL_OVERRIDE; SAL_DLLPRIVATE virtual void InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos=0xFFFF) SAL_OVERRIDE; SAL_DLLPRIVATE virtual SdrPage* RemoveMasterPage(sal_uInt16 nPgNum) SAL_OVERRIDE; SAL_DLLPRIVATE void RemoveUnnecessaryMasterPages( SdPage* pMaster=NULL, bool bOnlyDuplicatePages=false, bool bUndo=true ); void SetMasterPage(sal_uInt16 nSdPageNum, const OUString& rLayoutName, SdDrawDocument* pSourceDoc, bool bMaster, bool bCheckMasters); SdDrawDocument* OpenBookmarkDoc(const OUString& rBookmarkFile); SAL_DLLPRIVATE SdDrawDocument* OpenBookmarkDoc(SfxMedium& rMedium); SAL_DLLPRIVATE bool InsertBookmark(const std::vector &rBookmarkList, std::vector &rExchangeList, bool bLink, bool bReplace, sal_uInt16 nPgPos, bool bNoDialogs, ::sd::DrawDocShell* pBookmarkDocSh, bool bCopy, Point* pObjPos); SAL_DLLPRIVATE bool IsStartWithPresentation() const { return mbStartWithPresentation;} SAL_DLLPRIVATE void SetStartWithPresentation( bool bStartWithPresentation ); SAL_DLLPRIVATE bool IsExitAfterPresenting() const { return mbExitAfterPresenting;} SAL_DLLPRIVATE void SetExitAfterPresenting( bool bExitAfterPresenting ); /// load xml-based impress layout definitions into document SAL_DLLPRIVATE void InitLayoutVector(); /// return reference to vector of Impress layout definitions SAL_DLLPRIVATE const std::vector >& GetLayoutVector() const { return maLayoutInfo; } /// load xml-based impress master presentation object definitions into document SAL_DLLPRIVATE void InitObjectVector(); /// return reference to vector of master presentation object definitions SAL_DLLPRIVATE const std::vector >& GetObjectVector() const { return maPresObjectInfo; } /** 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 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). @param pBookmarkList A list of strings, denoting the names of the pages to be copied @param pExchangeList A list of strings, denoting the names of the pages to be renamed @param bLink Whether the inserted pages should be links to the bookmark document @param bReplace Whether the pages should not be inserted, but replace the pages in the destination document @param nPgPos Insertion point/start of replacement @param bNoDialogs Whether query dialogs are allowed (e.g. for page scaling) @param pBookmarkDocSh DocShell of the source document (used e.g. to extract the filename for linked pages) @param bCopy Whether the source document should be treated as immutable (i.e. inserted pages are not removed from it, but cloned) @param bMergeMasterPages Whether the source document's master pages should be copied, too. @param bPreservePageNames Whether the replace operation should take the name from the new page, or preserve the old name */ SAL_DLLPRIVATE bool InsertBookmarkAsPage(const std::vector &rBookmarkList, std::vector *pExchangeList, bool bLink, bool bReplace, sal_uInt16 nPgPos, bool bNoDialogs, ::sd::DrawDocShell* pBookmarkDocSh, bool bCopy, bool bMergeMasterPages, bool bPreservePageNames); SAL_DLLPRIVATE bool InsertBookmarkAsObject(const std::vector &rBookmarkList, const std::vector &rExchangeList, bool bLink, ::sd::DrawDocShell* pBookmarkDocSh, Point* pObjPos, bool bCalcObjCount = false); void CloseBookmarkDoc(); SAL_DLLPRIVATE SdrObject* GetObj(const OUString& rObjName) 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. @param rPgName Name of the page to return. @param rbIsMasterPage Is set by the method to indicate whether the returned index belongs to a master page () or a regular or notes page (). The given value is ignored. @return Returns the index of the page with the given name or SDRPAGE_NOTFOUND (=0xffff) when such a page does not exist. */ SAL_DLLPRIVATE sal_uInt16 GetPageByName(const OUString& rPgName, bool& rbIsMasterPage ) const; SdPage*GetSdPage(sal_uInt16 nPgNum, PageKind ePgKind) const; sal_uInt16 GetSdPageCount(PageKind ePgKind) const; SAL_DLLPRIVATE void SetSelected(SdPage* pPage, bool bSelect); SAL_DLLPRIVATE bool MovePages(sal_uInt16 nTargetPage); SdPage*GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind); sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const; sal_uInt16 GetActiveSdPageCount() const; SAL_DLLPRIVATE sal_uInt16 GetMasterPageUserCount(SdrPage* pMaster) const; SAL_DLLPRIVATE const sd::PresentationSettings& getPresentationSettings() const { return maPresentationSettings; } SAL_DLLPRIVATE sd::PresentationSettings& getPresentationSettings() { return maPresentationSettings; } SAL_DLLPRIVATE const ::com::sun::star::uno::Reference< ::com::sun::star::presentation::XPresentation2 >& getPresentation() const; SAL_DLLPRIVATE void SetSummationOfParagraphs( bool bOn = true ) { mbSummationOfParagraphs = bOn; } SAL_DLLPRIVATE bool IsSummationOfParagraphs() const { return mbSummationOfParagraphs; } /** Set the mode that controls whether (and later how) the formatting of the document depends on the current printer metrics. @param nMode Use ENABLED to make formatting printer-independent and DISABLED to make formatting depend on the current printer metrics. */ SAL_DLLPRIVATE void SetPrinterIndependentLayout (sal_Int32 nMode); /** Get the flag that controls whether the formatting of the document depends on the current printer metrics. @return Use ENABLED when formatting is printer-independent and DISABLED when formatting depends on the current printer metrics. */ SAL_DLLPRIVATE sal_Int32 GetPrinterIndependentLayout() { return mnPrinterIndependentLayout;} SAL_DLLPRIVATE void SetOnlineSpell( bool bIn ); SAL_DLLPRIVATE bool GetOnlineSpell() const { return mbOnlineSpell; } SAL_DLLPRIVATE void StopOnlineSpelling(); SAL_DLLPRIVATE void StartOnlineSpelling(bool bForceSpelling=true); SAL_DLLPRIVATE void ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl); SAL_DLLPRIVATE void InsertObject(SdrObject* pObj, SdPage* pPage); SAL_DLLPRIVATE void RemoveObject(SdrObject* pObj, SdPage* pPage); SAL_DLLPRIVATE sal_uLong GetLinkCount(); SAL_DLLPRIVATE std::vector& GetFrameViewList() { return maFrameViewList; } SdCustomShowList* GetCustomShowList(bool bCreate = false); SAL_DLLPRIVATE void NbcSetChanged(bool bFlag = true); 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 ); SAL_DLLPRIVATE bool IsNewOrLoadCompleted() const {return mbNewOrLoadCompleted; } SAL_DLLPRIVATE ::sd::FrameView* GetFrameView(sal_uLong nPos) { return nPos < maFrameViewList.size() ? maFrameViewList[nPos] : NULL; } /** deprecated*/ SAL_DLLPRIVATE SdAnimationInfo* GetAnimationInfo(SdrObject* pObject) const; static SdAnimationInfo* GetShapeUserData(SdrObject& rObject, bool bCreate = false ); SAL_DLLPRIVATE SdIMapInfo* GetIMapInfo( SdrObject* pObject ) const; SAL_DLLPRIVATE IMapObject* GetHitIMapObject( SdrObject* pObject, const Point& rWinPoint, const vcl::Window& rCmpWnd ); SAL_DLLPRIVATE CharClass* GetCharClass() const { return mpCharClass; } SAL_DLLPRIVATE void RestoreLayerNames(); SAL_DLLPRIVATE void UpdateAllLinks(); SAL_DLLPRIVATE void CheckMasterPages(); SAL_DLLPRIVATE void Merge(SdrModel& rSourceModel, sal_uInt16 nFirstPageNum=0, sal_uInt16 nLastPageNum=0xFFFF, sal_uInt16 nDestPos=0xFFFF, bool bMergeMasterPages = false, bool bAllMasterPages = false, bool bUndo = true, bool bTreadSourceAsConst = false) SAL_OVERRIDE; ::com::sun::star::text::WritingMode GetDefaultWritingMode() const; SAL_DLLPRIVATE void SetDefaultWritingMode( ::com::sun::star::text::WritingMode eMode ); /** replacespOldPage from all custom shows with pNewPage or removes pOldPage from all custom shows if pNewPage is 0. */ SAL_DLLPRIVATE void ReplacePageInCustomShows( const SdPage* pOldPage, const SdPage* pNewPage ); public: SAL_DLLPRIVATE static SdDrawDocument* pDocLockedInsertingLinks; // static to prevent recursions while resolving links /** 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. @param pCurrentPage This page is used to retrieve the layout for the page to create. @param ePageKind This specifies whether pCurrentPage is a standard (draw) page or a notes page. @param sStandardPageName Name of the standard page. An empty string leads to using an automatically created name. @param sNotesPageName Name of the standard page. An empty string leads to using an automatically created name. @param eStandardLayout Layout to use for the new standard page. Note that this layout is not used when the given pCurrentPage is not a standard page. In this case the layout is taken from the standard page associated with pCurrentPage. @param eNotesLayout Layout to use for the new notes page. Note that this layout is not used when the given pCurrentPage is not a notes page. In this case the layout is taken from the notes page associated with pCurrentPage. @param bIsPageBack This flag indicates whether to show the background shape. @param bIsPageObj This flag indicates whether to show the shapes on the master page. @param nInsertPosition Position where to insert the standard page. When -1 then the new page set is inserted after the current page. @return Returns an index of the inserted pages that can be used with the GetSdPage() method. */ 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 = -1); /** This method acts as a simplified front end for the more complex DuplicatePage() method. @param nPageNum The page number as passed to the GetSdPage() method for which the standard page and the notes page are to be copied. @return Returns an index of the inserted pages that can be used with the GetSdPage() method. */ SAL_DLLPRIVATE sal_uInt16 DuplicatePage (sal_uInt16 nPageNum); /** Create and insert a set of two new pages that are copies of the given pCurrentPage and its associated notes resp. standard page. The copies are inserted directly after the specified page set. @param pCurrentPage This page and its associated notes/standard page is copied. @param ePageKind This specifies whether pCurrentPage is a standard (draw) page or a notes page. @param sStandardPageName Name of the standard page. An empty string leads to using an automatically created name. @param sNotesPageName Name of the standard page. An empty string leads to using an automatically created name. @param bIsPageBack This flag indicates whether to show the background shape. @param bIsPageObj This flag indicates whether to show the shapes on the master page. @param nInsertPosition Position where to insert the standard page. When -1 then the new page set is inserted after the current page. @return Returns an index of the inserted pages that can be used with the GetSdPage() method. */ SAL_DLLPRIVATE sal_uInt16 DuplicatePage ( SdPage* pCurrentPage, PageKind ePageKind, const OUString& sStandardPageName, const OUString& sNotesPageName, bool bIsPageBack, bool bIsPageObj, const sal_Int32 nInsertPosition = -1); /** return the document fonts for latin, cjk and ctl according to the current languages set at this document */ SAL_DLLPRIVATE void getDefaultFonts( vcl::Font& rLatinFont, vcl::Font& rCJKFont, vcl::Font& rCTLFont ); SAL_DLLPRIVATE sd::UndoManager* GetUndoManager() const; /** converts the given western font height to a corresponding ctl font height, depending on the system language */ SAL_DLLPRIVATE static sal_uInt32 convertFontHeightToCTL( sal_uInt32 nWesternFontHeight ); /** Get the style sheet pool if it was a SdStyleSheetPool. */ SdStyleSheetPool* GetSdStyleSheetPool() const; SAL_DLLPRIVATE void UpdatePageRelativeURLs(const OUString& rOldName, const OUString& rNewName); SAL_DLLPRIVATE void SetCalcFieldValueHdl( ::Outliner* pOutliner); SAL_DLLPRIVATE sal_uInt16 GetAnnotationAuthorIndex( const OUString& rAuthor ); SAL_DLLPRIVATE bool IsUsingEmbededFonts() { return mbUseEmbedFonts; } SAL_DLLPRIVATE void SetIsUsingEmbededFonts( bool bUse ) { mbUseEmbedFonts = bUse; } void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; private: /** This member stores the printer independent layout mode. Please refer to SetPrinterIndependentLayout() for its values. */ sal_Int32 mnPrinterIndependentLayout; /** Insert a given set of standard and notes page after the given pCurrentPage. @param pCurrentPage This page and its associated notes/standard page is copied. @param ePageKind This specifies whether pCurrentPage is a standard (draw) page or a notes page. @param sStandardPageName Name of the standard page. An empty string leads to using an automatically created name. @param sNotesPageName Name of the standard page. An empty string leads to using an automatically created name. @param bIsPageBack This flag indicates whether to show the background shape. @param bIsPageObj This flag indicates whether to show the shapes on the master page. @param pStandardPage The standard page to insert. @param pNotesPage The notes page to insert. @param nInsertPosition Position where to insert the standard page. When -1 then the new page set is inserted after the current page. @return Returns an index of the inserted pages that can be used with the GetSdPage() method. */ 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 = -1); /** Set up a newly created page and insert it into the list of pages. @param pPreviousPage A page to take the size and border geometry from. @param pPage This is the page to set up and insert. @param sPageName The name of the new page. @param nInsertionPoint Index of the page before which the new page will be inserted. @param bIsPageBack This flag indicates whether to show the background shape. @param bIsPageObj This flag indicates whether to show the shapes on the master page. */ SAL_DLLPRIVATE void SetupNewPage ( SdPage* pPreviousPage, SdPage* pPage, const OUString& sPageName, sal_uInt16 nInsertionPoint, bool bIsPageBack, bool bIsPageObj); SAL_DLLPRIVATE virtual void PageListChanged() SAL_OVERRIDE; SAL_DLLPRIVATE virtual void MasterPageListChanged() SAL_OVERRIDE; SAL_DLLPRIVATE virtual ImageMap* GetImageMapForObject(SdrObject* pObj) SAL_OVERRIDE; }; namespace sd { /**an instance of this guard disables modification of a document during its lifetime*/ class ModifyGuard { public: ModifyGuard( SdDrawDocument* pDoc ); ~ModifyGuard(); private: void init(); DrawDocShell* mpDocShell; SdDrawDocument* mpDoc; bool mbIsEnableSetModified; bool mbIsDocumentChanged; }; } #endif // INCLUDED_SD_INC_DRAWDOC_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */