2000-09-18 11:07:07 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* $RCSfile: drawdoc.hxx,v $
|
|
|
|
*
|
2002-09-12 09:28:56 -05:00
|
|
|
* $Revision: 1.20 $
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2002-09-12 09:28:56 -05:00
|
|
|
* last change: $Author: cl $ $Date: 2002-09-12 15:24:14 $
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
|
|
|
* The Contents of this file are made available subject to the terms of
|
|
|
|
* either of the following licenses
|
|
|
|
*
|
|
|
|
* - GNU Lesser General Public License Version 2.1
|
|
|
|
* - Sun Industry Standards Source License Version 1.1
|
|
|
|
*
|
|
|
|
* Sun Microsystems Inc., October, 2000
|
|
|
|
*
|
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2000 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Sun Industry Standards Source License Version 1.1
|
|
|
|
* =================================================
|
|
|
|
* The contents of this file are subject to the Sun Industry Standards
|
|
|
|
* Source License Version 1.1 (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.openoffice.org/license.html.
|
|
|
|
*
|
|
|
|
* Software provided under this License is provided on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
|
|
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
|
|
|
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
|
|
|
* See the License for the specific provisions governing your rights and
|
|
|
|
* obligations concerning the Software.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* Copyright: 2000 by Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s): _______________________________________
|
|
|
|
*
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _DRAWDOC_HXX
|
|
|
|
#define _DRAWDOC_HXX
|
|
|
|
|
2001-03-19 02:53:25 -06:00
|
|
|
#ifndef _COM_SUN_STAR_FRAME_XMODEL_HDL_
|
|
|
|
#include <com/sun/star/frame/XModel.hdl>
|
|
|
|
#endif
|
2000-09-18 11:07:07 -05:00
|
|
|
#ifndef _SV_PRINT_HXX
|
|
|
|
#include <vcl/print.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _FM_FMMODEL_HXX
|
|
|
|
#include <svx/fmmodel.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _PRESENTATION_HXX
|
|
|
|
#include "pres.hxx"
|
|
|
|
#endif
|
|
|
|
#ifndef _SVX_PAGEITEM_HXX //autogen
|
|
|
|
#include <svx/pageitem.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _UNOTOOLS_CHARCLASS_HXX
|
|
|
|
#include <unotools/charclass.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _TOOLS_INTN_HXX
|
|
|
|
#include <tools/intn.hxx>
|
|
|
|
#endif
|
2001-04-26 11:11:09 -05:00
|
|
|
#ifndef _SOT_STORAGE_HXX
|
|
|
|
#include <sot/storage.hxx>
|
|
|
|
#endif
|
2000-09-18 11:07:07 -05:00
|
|
|
#ifndef _RSCSFX_HXX
|
|
|
|
#include <rsc/rscsfx.hxx>
|
|
|
|
#endif
|
2002-08-01 05:30:12 -05:00
|
|
|
#ifndef _COM_SUN_STAR_LANG_LOCALE_HPP_
|
|
|
|
#include <com/sun/star/lang/Locale.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_TEXT_WRITINGMODE_HPP_
|
|
|
|
#include <com/sun/star/text/WritingMode.hpp>
|
|
|
|
#endif
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
class Timer;
|
|
|
|
class SfxObjectShell;
|
|
|
|
class SdPage;
|
|
|
|
class FrameView;
|
|
|
|
class SdDrawDocShell;
|
|
|
|
class SdOutliner;
|
|
|
|
class SdAnimationInfo;
|
|
|
|
class SdIMapInfo;
|
|
|
|
class IMapObject;
|
|
|
|
class SdStyleSheetPool;
|
|
|
|
class SfxMedium;
|
|
|
|
class SvxSearchItem;
|
|
|
|
class SdrOle2Obj;
|
|
|
|
class EditStatus;
|
|
|
|
class Graphic;
|
|
|
|
class Point;
|
|
|
|
class Window;
|
2001-11-23 07:04:20 -06:00
|
|
|
class SdTransferable;
|
2000-09-18 11:07:07 -05:00
|
|
|
struct SpellCallbackInfo;
|
|
|
|
struct StyleRequestData;
|
|
|
|
|
|
|
|
#ifndef SV_DECL_SDDRAWDOCSHELL_DEFINED
|
|
|
|
#define SV_DECL_SDDRAWDOCSHELL_DEFINED
|
|
|
|
SV_DECL_REF(SdDrawDocShell)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct StyleReplaceData
|
|
|
|
{
|
|
|
|
SfxStyleFamily nFamily;
|
|
|
|
SfxStyleFamily nNewFamily;
|
|
|
|
String aName;
|
|
|
|
String aNewName;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum DocCreationMode
|
|
|
|
{
|
|
|
|
NEW_DOC,
|
|
|
|
DOC_LOADED
|
|
|
|
};
|
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
// ------------------
|
|
|
|
// - SdDrawDocument -
|
|
|
|
// ------------------
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
class SdDrawDocument : public FmFormModel
|
|
|
|
{
|
2002-08-01 05:30:12 -05:00
|
|
|
private:
|
|
|
|
|
|
|
|
SdOutliner* pOutliner; // local outliner for outline mode
|
|
|
|
SdOutliner* pInternalOutliner; // internal outliner for creation of text objects
|
|
|
|
Timer* pWorkStartupTimer;
|
|
|
|
Timer* pOnlineSpellingTimer;
|
|
|
|
List* pOnlineSpellingList;
|
|
|
|
List* pDeletedPresObjList;
|
|
|
|
SvxSearchItem* pOnlineSearchItem;
|
|
|
|
List* pFrameViewList;
|
|
|
|
List* pCustomShowList;
|
|
|
|
SdDrawDocShell* pDocSh;
|
|
|
|
SdTransferable * pCreatingTransferable;
|
|
|
|
BOOL bHasOnlineSpellErrors;
|
|
|
|
BOOL bInitialOnlineSpellingEnabled;
|
|
|
|
String aBookmarkFile;
|
|
|
|
SdDrawDocShellRef xBookmarkDocShRef;
|
|
|
|
String aPresPage;
|
|
|
|
BOOL bNewOrLoadCompleted;
|
|
|
|
BOOL bPresAll;
|
|
|
|
BOOL bPresEndless;
|
|
|
|
BOOL bPresManual;
|
|
|
|
BOOL bPresMouseVisible;
|
|
|
|
BOOL bPresMouseAsPen;
|
|
|
|
BOOL bStartPresWithNavigator;
|
|
|
|
BOOL bAnimationAllowed;
|
|
|
|
BOOL bPresLockedPages;
|
|
|
|
BOOL bPresAlwaysOnTop;
|
|
|
|
BOOL bPresFullScreen;
|
|
|
|
ULONG nPresPause;
|
|
|
|
BOOL bPresShowLogo;
|
|
|
|
BOOL bOnlineSpell;
|
|
|
|
BOOL bHideSpell;
|
|
|
|
BOOL bCustomShow;
|
|
|
|
BOOL bSummationOfParagraphs;
|
|
|
|
|
|
|
|
ULONG nPresFirstPage;
|
|
|
|
LanguageType eLanguage;
|
|
|
|
LanguageType eLanguageCJK;
|
|
|
|
LanguageType eLanguageCTL;
|
|
|
|
SvxNumType ePageNumType;
|
|
|
|
Link aOldNotifyUndoActionHdl;
|
|
|
|
SdDrawDocShellRef xAllocedDocShRef; // => AllocModel()
|
|
|
|
BOOL bAllocDocSh; // => AllocModel()
|
|
|
|
DocumentType eDocType;
|
|
|
|
UINT16 nFileFormatVersion;
|
|
|
|
SotStorage* pDocStor;
|
|
|
|
SotStorageRef xPictureStorage;
|
|
|
|
SotStorageStreamRef xDocStream;
|
|
|
|
International* mpInternational;
|
|
|
|
CharClass* mpCharClass;
|
|
|
|
::com::sun::star::lang::Locale* mpLocale;
|
|
|
|
|
|
|
|
void UpdatePageObjectsInNotes(USHORT nStartPos);
|
|
|
|
void FillOnlineSpellingList(SdPage* pPage);
|
|
|
|
void SpellObject(SdrTextObj* pObj);
|
|
|
|
|
|
|
|
DECL_LINK(NotifyUndoActionHdl, SfxUndoAction*);
|
|
|
|
DECL_LINK(WorkStartupHdl, Timer*);
|
|
|
|
DECL_LINK(OnlineSpellingHdl, Timer*);
|
|
|
|
DECL_LINK(OnlineSpellEventHdl, EditStatus*);
|
|
|
|
|
2000-11-26 12:11:00 -06:00
|
|
|
protected:
|
2002-08-01 05:30:12 -05:00
|
|
|
|
2000-11-26 12:11:00 -06:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoModel();
|
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
public:
|
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
TYPEINFO();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdDrawDocument(DocumentType eType, SfxObjectShell* pDocSh);
|
|
|
|
~SdDrawDocument();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
virtual SdrModel* AllocModel() const;
|
|
|
|
virtual SdrPage* AllocPage(FASTBOOL bMasterPage);
|
2000-09-18 11:07:07 -05:00
|
|
|
virtual const SdrModel* LoadModel(const String& rFileName);
|
2002-08-01 05:30:12 -05:00
|
|
|
virtual void DisposeLoadedModels();
|
|
|
|
virtual FASTBOOL IsReadOnly() const;
|
|
|
|
virtual void SetChanged(FASTBOOL bFlag = TRUE);
|
|
|
|
virtual SvStream* GetDocumentStream(SdrDocumentStreamInfo& rStreamInfo) const;
|
|
|
|
virtual void HandsOff();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SfxItemPool& GetPool() { return( *pItemPool ); }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdOutliner* GetOutliner(BOOL bCreateOutliner=TRUE);
|
|
|
|
SdOutliner* GetInternalOutliner(BOOL bCreateOutliner=TRUE);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdDrawDocShell* GetDocSh() const { return(pDocSh) ; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
LanguageType GetLanguage( const USHORT nId ) const;
|
|
|
|
void SetLanguage( const LanguageType eLang, const USHORT nId );
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SvxNumType GetPageNumType() const { return ePageNumType; }
|
|
|
|
void SetPageNumType(SvxNumType eType) { ePageNumType = eType; }
|
|
|
|
String CreatePageNumValue(USHORT nNum) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
DocumentType GetDocumentType() const { return eDocType; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetAllocDocSh(BOOL bAlloc);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void CreatingDataObj( SdTransferable* pTransferable ) { pCreatingTransferable = pTransferable; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void CreateFirstPages();
|
|
|
|
BOOL CreateMissingNotesAndHandoutPages();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void MovePage(USHORT nPgNum, USHORT nNewPos);
|
|
|
|
void InsertPage(SdrPage* pPage, USHORT nPos=0xFFFF);
|
|
|
|
void DeletePage(USHORT nPgNum);
|
|
|
|
SdrPage* RemovePage(USHORT nPgNum);
|
|
|
|
void RemoveUnnessesaryMasterPages( SdPage* pMaster=NULL, BOOL bOnlyDuplicatePages=FALSE, BOOL bUndo=TRUE );
|
|
|
|
void SetMasterPage(USHORT nSdPageNum, const String& rLayoutName,
|
|
|
|
SdDrawDocument* pSourceDoc, BOOL bMaster, BOOL bCheckMasters);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdDrawDocument* OpenBookmarkDoc(const String& rBookmarkFile);
|
|
|
|
SdDrawDocument* OpenBookmarkDoc(SfxMedium& rMedium);
|
|
|
|
BOOL InsertBookmark(List* pBookmarkList, List* pExchangeList, BOOL bLink,
|
|
|
|
BOOL bReplace, USHORT nPgPos, BOOL bNoDialogs,
|
|
|
|
SdDrawDocShell* pBookmarkDocSh, BOOL bCopy,
|
|
|
|
Point* pObjPos);
|
|
|
|
BOOL InsertBookmarkAsPage(List* pBookmarkList, List* pExchangeList,
|
|
|
|
BOOL bLink, BOOL bReplace, USHORT nPgPos,
|
|
|
|
BOOL bNoDialogs, SdDrawDocShell* pBookmarkDocSh,
|
|
|
|
BOOL bCopy, BOOL bMergeMasterPages);
|
|
|
|
BOOL InsertBookmarkAsObject(List* pBookmarkList, List* pExchangeListL,
|
|
|
|
BOOL bLink, SdDrawDocShell* pBookmarkDocSh,
|
|
|
|
Point* pObjPos);
|
|
|
|
void CloseBookmarkDoc();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdrObject* GetObj(const String& rObjName) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
USHORT GetPageByName(const String& rPgName, BOOL& rbIsMasterPage ) const;
|
|
|
|
SdPage* GetSdPage(USHORT nPgNum, PageKind ePgKind) const;
|
|
|
|
USHORT GetSdPageCount(PageKind ePgKind) const;
|
|
|
|
void SetSelected(SdPage* pPage, BOOL bSelect);
|
|
|
|
BOOL MovePages(USHORT nTargetPage);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdPage* GetMasterSdPage(USHORT nPgNum, PageKind ePgKind);
|
|
|
|
USHORT GetMasterSdPageCount(PageKind ePgKind) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
USHORT GetMasterPageUserCount(SdrPage* pMaster) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresPage( const String& rPresPage ) { aPresPage = rPresPage; }
|
|
|
|
const String& GetPresPage() const { return aPresPage; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresAll(BOOL bNewPresAll);
|
|
|
|
BOOL GetPresAll() const { return bPresAll; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresEndless(BOOL bNewPresEndless);
|
|
|
|
BOOL GetPresEndless() const { return bPresEndless; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresManual(BOOL bNewPresManual);
|
|
|
|
BOOL GetPresManual() const { return bPresManual; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresMouseVisible(BOOL bNewPresMouseVisible);
|
|
|
|
BOOL GetPresMouseVisible() const { return bPresMouseVisible; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresMouseAsPen(BOOL bNewPresMouseAsPen);
|
|
|
|
BOOL GetPresMouseAsPen() const { return bPresMouseAsPen; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresFirstPage (ULONG nNewFirstPage);
|
|
|
|
ULONG GetPresFirstPage() const { return nPresFirstPage; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetStartPresWithNavigator (BOOL bStart);
|
|
|
|
BOOL GetStartPresWithNavigator() const { return bStartPresWithNavigator; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetAnimationAllowed (BOOL bAllowed) { bAnimationAllowed = bAllowed; }
|
|
|
|
BOOL IsAnimationAllowed() const { return bAnimationAllowed; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresPause( ULONG nSecondsToWait ) { nPresPause = nSecondsToWait; }
|
|
|
|
ULONG GetPresPause() const { return nPresPause; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresShowLogo( BOOL bShowLogo ) { bPresShowLogo = bShowLogo; }
|
|
|
|
BOOL IsPresShowLogo() const { return bPresShowLogo; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresLockedPages (BOOL bLock);
|
|
|
|
BOOL GetPresLockedPages() const { return bPresLockedPages; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresAlwaysOnTop (BOOL bOnTop);
|
|
|
|
BOOL GetPresAlwaysOnTop() const { return bPresAlwaysOnTop; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetPresFullScreen (BOOL bNewFullScreen);
|
|
|
|
BOOL GetPresFullScreen() const { return bPresFullScreen; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetSummationOfParagraphs( BOOL bOn = TRUE ) { bSummationOfParagraphs = bOn; }
|
|
|
|
const BOOL IsSummationOfParagraphs() const { return bSummationOfParagraphs; }
|
2001-05-07 07:14:17 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetOnlineSpell( BOOL bIn );
|
|
|
|
BOOL GetOnlineSpell() const { return bOnlineSpell; }
|
|
|
|
void StopOnlineSpelling();
|
|
|
|
void StartOnlineSpelling(BOOL bForceSpelling=TRUE);
|
2001-05-07 07:14:17 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl);
|
2001-09-27 04:12:46 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void InsertObject(SdrObject* pObj, SdPage* pPage);
|
|
|
|
void RemoveObject(SdrObject* pObj, SdPage* pPage);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetHideSpell( BOOL bIn );
|
|
|
|
BOOL GetHideSpell() const { return bHideSpell; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
ULONG GetLinkCount();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
List* GetFrameViewList() const { return pFrameViewList; }
|
|
|
|
List* GetCustomShowList(BOOL bCreate = FALSE);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetCustomShow(BOOL bCustShow) { bCustomShow = bCustShow; }
|
|
|
|
BOOL IsCustomShow() const { return bCustomShow; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void NbcSetChanged(FASTBOOL bFlag = TRUE);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void SetTextDefaults() const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void CreateLayoutTemplates();
|
|
|
|
void RenameLayoutTemplate(const String& rOldLayoutName, const String& rNewName);
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void StopWorkStartupDelay();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void NewOrLoadCompleted(DocCreationMode eMode);
|
|
|
|
BOOL IsNewOrLoadCompleted() const {return bNewOrLoadCompleted; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
FrameView* GetFrameView(ULONG nPos) { return (FrameView*) pFrameViewList->GetObject(nPos); }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdAnimationInfo* GetAnimationInfo(SdrObject* pObject) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
SdIMapInfo* GetIMapInfo( SdrObject* pObject ) const;
|
|
|
|
IMapObject* GetHitIMapObject( SdrObject* pObject, const Point& rWinPoint, const Window& rCmpWnd );
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
Graphic GetGraphicFromOle2Obj( const SdrOle2Obj* pOle2Obj );
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
List* GetDeletedPresObjList();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
CharClass* GetCharClass() const { return mpCharClass; }
|
|
|
|
International* GetInternational() const { return mpInternational; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void RestoreLayerNames();
|
|
|
|
void MakeUniqueLayerNames();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void UpdateAllLinks();
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void CheckMasterPages();
|
2001-12-18 08:03:13 -06:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
void Merge(SdrModel& rSourceModel,
|
|
|
|
USHORT nFirstPageNum=0, USHORT nLastPageNum=0xFFFF,
|
|
|
|
USHORT nDestPos=0xFFFF,
|
|
|
|
FASTBOOL bMergeMasterPages=FALSE, FASTBOOL bAllMasterPages=FALSE,
|
|
|
|
FASTBOOL bUndo=TRUE, FASTBOOL bTreadSourceAsConst=FALSE);
|
2002-01-18 08:36:06 -06:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
::com::sun::star::text::WritingMode GetDefaultWritingMode() const;
|
2002-09-12 09:28:56 -05:00
|
|
|
void SetDefaultWritingMode( ::com::sun::star::text::WritingMode eMode );
|
2002-07-18 08:03:41 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
public:
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
static SdDrawDocument* pDocLockedInsertingLinks; // static to prevent recursions while resolving links
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2002-08-01 05:30:12 -05:00
|
|
|
friend SvStream& operator<<(SvStream& rOut, SdDrawDocument& rDoc);
|
|
|
|
friend SvStream& operator>>(SvStream& rIn, SdDrawDocument& rDoc);
|
|
|
|
};
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
#endif // _DRAWDOC_HXX
|