Files
libreoffice/sw/source/core/doc/docnew.cxx

1059 lines
35 KiB
C++
Raw Normal View History

2000-09-18 23:08:29 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 23:08:29 +00:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 23:08:29 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 23:08:29 +00:00
*
* $RCSfile: docnew.cxx,v $
* $Revision: 1.89 $
2000-09-18 23:08:29 +00:00
*
* This file is part of OpenOffice.org.
2000-09-18 23:08:29 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-09-18 23:08:29 +00:00
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-09-18 23:08:29 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-09-18 23:08:29 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sw.hxx"
2000-09-18 23:08:29 +00:00
#define ROLBCK_HISTORY_ONLY // Der Kampf gegen die CLOOK's
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
#include <doc.hxx>
#include <com/sun/star/document/PrinterIndependentLayout.hpp>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
2008-12-15 12:01:46 +00:00
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp>
#include <unotools/processfactory.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
2001-07-23 16:20:51 +00:00
#include <rtl/logfile.hxx>
2000-09-18 23:08:29 +00:00
#include <sfx2/printer.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/frame.hxx>
2000-09-18 23:08:29 +00:00
#ifndef _SFXMACITEM_HXX //autogen
#include <svtools/macitem.hxx>
2000-09-18 23:08:29 +00:00
#endif
#ifndef _SVX_SVXIDS_HRC
#include <svx/svxids.hrc>
#endif
#include <svx/linkmgr.hxx>
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
#include <svx/forbiddencharacterstable.hxx>
2000-09-18 23:08:29 +00:00
#include <svtools/zforlist.hxx>
#include <svtools/compatibility.hxx>
#include <svtools/lingucfg.hxx>
#include <svx/svdpage.hxx>
#include <paratr.hxx>
#include <fchrfmt.hxx>
2000-09-18 23:08:29 +00:00
#include <fmtcntnt.hxx>
#include <fmtanchr.hxx>
#include <fmtfsize.hxx>
#include <fmtfordr.hxx>
#include <fmtpdsc.hxx>
2000-09-18 23:08:29 +00:00
#include <pvprtdat.hxx>
#include <rootfrm.hxx> //Damit der RootDtor gerufen wird.
#include <layouter.hxx>
#include <pagedesc.hxx> //Damit die PageDescs zerstoert werden koennen.
#include <ndtxt.hxx>
2001-05-10 07:48:50 +00:00
#include <printdata.hxx>
2000-09-18 23:08:29 +00:00
#include <docfld.hxx>
#include <ftninfo.hxx>
#include <ftnidx.hxx>
#include <docstat.hxx>
#include <charfmt.hxx>
#include <frmfmt.hxx>
#include <rolbck.hxx> // Undo-Attr, SwHistory
#include <poolfmt.hxx> // fuer die Pool-Vorlage
#ifndef _DBMGR_HXX
#include <dbmgr.hxx>
#endif
#ifndef _DOCSH_HXX
#include <docsh.hxx>
#endif
#include <acorrect.hxx> // fuer die autom. Aufnahme von Ausnahmen
#include <visiturl.hxx> // fuer die URL-Change Benachrichtigung
#include <docary.hxx>
#ifndef _LINEINFO_HXX
#include <lineinfo.hxx>
#endif
#include <drawdoc.hxx>
#include <linkenum.hxx>
#include <fldupde.hxx>
#include <extinput.hxx>
#include <viewsh.hxx>
#include <doctxm.hxx>
#include <shellres.hxx>
#include <unoclbck.hxx>
#include <breakit.hxx>
#include <laycache.hxx>
#include <mvsave.hxx>
#include <istyleaccess.hxx>
#include <swstylemanager.hxx>
#include <IGrammarContact.hxx>
2000-09-18 23:08:29 +00:00
#include <unochart.hxx>
2000-09-18 23:08:29 +00:00
#ifndef _CMDID_H
#include <cmdid.h> // fuer den dflt - Printer in SetJob
#endif
// --> OD 2006-04-19 #b6375613#
#include <com/sun/star/document/XDocumentInfoSupplier.hpp>
#include <com/sun/star/beans/XPropertyContainer.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
using namespace ::com::sun::star;
// <--
// --> OD 2007-03-16 #i73788#
#include <pausethreadstarting.hxx>
// <--
#include <numrule.hxx>
// --> OD 2008-03-13 #refactorlists#
#include <list.hxx>
#include <listfunc.hxx>
// <--
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
using namespace ::com::sun::star::document;
2000-09-18 23:08:29 +00:00
const sal_Char __FAR_DATA sFrmFmtStr[] = "Frameformat";
const sal_Char __FAR_DATA sEmptyPageStr[] = "Empty Page";
const sal_Char __FAR_DATA sColumnCntStr[] = "Columncontainer";
const sal_Char __FAR_DATA sCharFmtStr[] = "Zeichenformat";
const sal_Char __FAR_DATA sTxtCollStr[] = "Textformatvorlage";
const sal_Char __FAR_DATA sGrfCollStr[] = "Graphikformatvorlage";
SV_IMPL_PTRARR( SwNumRuleTbl, SwNumRulePtr)
SV_IMPL_PTRARR( SwTxtFmtColls, SwTxtFmtCollPtr)
SV_IMPL_PTRARR( SwGrfFmtColls, SwGrfFmtCollPtr)
/*
* global functions...
*/
2008-12-15 12:01:46 +00:00
uno::Reference< linguistic2::XProofreadingIterator > SwDoc::GetGCIterator() const
{
if (!m_xGCIterator.is() && SvtLinguConfig().HasGrammarChecker())
{
uno::Reference< lang::XMultiServiceFactory > xMgr( utl::getProcessServiceFactory() );
if (xMgr.is())
{
try
{
2008-12-15 12:01:46 +00:00
rtl::OUString aServiceName( rtl::OUString::createFromAscii("com.sun.star.linguistic2.ProofreadingIterator") );
m_xGCIterator = uno::Reference< linguistic2::XProofreadingIterator >
( xMgr->createInstance( aServiceName ), uno::UNO_QUERY_THROW );
}
catch (uno::Exception &)
{
DBG_ERROR( "No GCIterator" );
}
}
}
return m_xGCIterator;
}
void StartGrammarChecking( SwDoc &rDoc, SwRootFrm &rRootFrame )
{
// if (rRootFrame.IsGrammarCheckActive())
// return;
2008-12-15 12:01:46 +00:00
uno::Reference< linguistic2::XProofreadingIterator > xGCIterator( rDoc.GetGCIterator() );
if ( xGCIterator.is() )
{
uno::Reference< lang::XComponent > xDoc( rDoc.GetDocShell()->GetBaseModel(), uno::UNO_QUERY );
uno::Reference< text::XFlatParagraphIteratorProvider > xFPIP( xDoc, uno::UNO_QUERY );
// start automatic background checking
2008-12-15 12:01:46 +00:00
if ( xFPIP.is() && !xGCIterator->isProofreading( xDoc ) )
{
2009-01-20 12:01:14 +00:00
// rRootFrame.SetNeedGrammarCheck( false );
rRootFrame.SetGrammarCheckActive( true );
2008-12-15 12:01:46 +00:00
xGCIterator->startProofreading( xDoc, xFPIP );
}
}
}
2000-09-18 23:08:29 +00:00
/*
* interne Funktionen
*/
BOOL lcl_DelFmtIndizes( const SwFrmFmtPtr& rpFmt, void* )
{
SwFmtCntnt &rFmtCntnt = (SwFmtCntnt&)rpFmt->GetCntnt();
if ( rFmtCntnt.GetCntntIdx() )
rFmtCntnt.SetNewCntntIdx( 0 );
SwFmtAnchor &rFmtAnchor = (SwFmtAnchor&)rpFmt->GetAnchor();
if ( rFmtAnchor.GetCntntAnchor() )
rFmtAnchor.SetAnchor( 0 );
return TRUE;
}
/*
* exportierte Methoden
*/
SwDoc::SwDoc() :
aNodes( this ),
aUndoNodes( this ),
CWS-TOOLING: integrate CWS aw063 2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects 2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects 2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL 2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction 2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction 2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1 2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round 2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round 2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round 2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round 2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round 2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round 2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round 2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition 2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF 2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable 2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable 2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable 2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable 2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable 2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable 2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix 2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix 2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers 2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts 2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules 2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include 2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include 2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much 2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from 2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size 2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances 2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage 2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences 2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange 2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle 2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case 2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
mpAttrPool(new SwAttrPool(this)),
pDfltFrmFmt( new SwFrmFmt( GetAttrPool(), sFrmFmtStr, 0 ) ),
pEmptyPageFmt( new SwFrmFmt( GetAttrPool(), sEmptyPageStr, pDfltFrmFmt ) ),
pColumnContFmt( new SwFrmFmt( GetAttrPool(), sColumnCntStr, pDfltFrmFmt ) ),
pDfltCharFmt( new SwCharFmt( GetAttrPool(), sCharFmtStr, 0 ) ),
pDfltTxtFmtColl( new SwTxtFmtColl( GetAttrPool(), sTxtCollStr ) ),
pDfltGrfFmtColl( new SwGrfFmtColl( GetAttrPool(), sGrfCollStr ) ),
pFrmFmtTbl( new SwFrmFmts() ),
pCharFmtTbl( new SwCharFmts() ),
pSpzFrmFmtTbl( new SwSpzFrmFmts() ),
2000-09-18 23:08:29 +00:00
pSectionFmtTbl( new SwSectionFmts() ),
pTblFrmFmtTbl( new SwFrmFmts() ),
pTxtFmtCollTbl( new SwTxtFmtColls() ),
pGrfFmtCollTbl( new SwGrfFmtColls() ),
pBookmarkTbl( new SwBookmarks( 0, 16 ) ),
2000-09-18 23:08:29 +00:00
pTOXTypes( new SwTOXTypes() ),
pDefTOXBases( new SwDefTOXBase_Impl() ),
pLayout( 0 ), // Rootframe des spezifischen Layouts.
pDrawModel( 0 ),
pUndos( new SwUndos( 0, 20 ) ),
2000-09-18 23:08:29 +00:00
pUpdtFlds( new SwDocUpdtFld() ),
pFldTypes( new SwFldTypes() ),
pVirDev( 0 ),
pPrt( 0 ),
pPrtData( 0 ),
pGlossaryDoc( 0 ),
pOutlineRule( 0 ),
2000-09-18 23:08:29 +00:00
pFtnInfo( new SwFtnInfo ),
pEndNoteInfo( new SwEndNoteInfo ),
pLineNumberInfo( new SwLineNumberInfo ),
pFtnIdxs( new SwFtnIdxs ),
pDocStat( new SwDocStat ),
pDocShell( 0 ),
pDocShRef( 0 ),
pLinkMgr( new SvxLinkManager( 0 ) ),
pACEWord( 0 ),
pURLStateChgd( 0 ),
pNumberFormatter( 0 ),
2000-09-18 23:08:29 +00:00
pNumRuleTbl( new SwNumRuleTbl ),
// --> OD 2008-03-26 #refactorlists#
maLists(),
maListStyleLists(),
// <--
2000-09-18 23:08:29 +00:00
pRedlineTbl( new SwRedlineTbl ),
pAutoFmtRedlnComment( 0 ),
pUnoCrsrTbl( new SwUnoCrsrTbl( 0, 16 ) ),
2000-09-18 23:08:29 +00:00
pPgPViewPrtData( 0 ),
pExtInputRing( 0 ),
pLayouter( 0 ),
// --> OD 2008-03-07 #refactorlists#
pStyleAccess( 0 ),
// <--
pLayoutCache( 0 ),
2000-09-18 23:08:29 +00:00
pUnoCallBack(new SwUnoCallBack(0)),
mpGrammarContact( 0 ),
aChartDataProviderImplRef(),
pChartControllerHelper( 0 ),
// --> OD 2007-10-31 #i83479#
mpListItemsList( new tImplSortedNodeNumList() ),
// <--
nUndoPos( 0 ),
nUndoSavePos( 0 ),
nUndoCnt( 0 ),
nUndoSttEnd( 0 ),
2000-09-18 23:08:29 +00:00
nAutoFmtRedlnCommentNo( 0 ),
nLinkUpdMode( GLOBALSETTING ),
eFldUpdMode( AUTOUPD_GLOBALSETTING ),
eRedlineMode((RedlineMode_t)(nsRedlineMode_t::REDLINE_SHOW_INSERT | nsRedlineMode_t::REDLINE_SHOW_DELETE)),
eChrCmprType( CHARCOMPRESS_NONE ),
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mReferenceCount(0),
mIdleBlockCount(0),
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
nLockExpFld( 0 ),
mbReadlineChecked(false),
mbWinEncryption(sal_False),
// --> OD 2005-02-11 #i38810#
mbLinksUpdated( sal_False ),
mbClipBoard( false ),
mbColumnSelection( false ),
// i#78591#
CWS-TOOLING: integrate CWS notes7 2008-12-29 19:45:08 +0100 mod r265824 : CWS-TOOLING: rebase CWS notes7 to trunk@265758 (milestone: DEV300:m38) 2008-12-16 14:54:42 +0100 mod r265544 : #i97239# 2008-12-16 14:53:18 +0100 mod r265543 : #i97239# 2008-12-16 13:36:43 +0100 mod r265537 : 96602 2008-12-13 13:02:54 +0100 mba r265452 : warning fixed 2008-12-13 08:20:21 +0100 mod r265448 : search inside notes 2008-12-13 00:11:47 +0100 mod r265447 : search inside notes 2008-12-13 00:11:09 +0100 mod r265446 : search inside notes 2008-12-13 00:10:52 +0100 mod r265445 : search inside notes 2008-12-12 19:39:14 +0100 mod r265439 : search inside notes 2008-12-12 19:02:44 +0100 mod r265438 : search inside notes 2008-12-12 16:42:07 +0100 mba r265431 : #i80135#: search in notes 2008-12-12 16:11:54 +0100 mba r265429 : #i80135#: search in notes 2008-12-12 16:11:02 +0100 mba r265428 : #i80135#: search in notes 2008-12-11 20:24:20 +0100 pb r265358 : fix: #i80135# fixes for aNotesBtn 2008-12-11 20:23:19 +0100 pb r265357 : fix: #i80135# fixes for aNotesBtn 2008-12-11 07:42:17 +0100 pb r265241 : fix: #i80135# CB_NOTES added 2008-12-11 07:40:36 +0100 pb r265240 : fix: #i80135# CB_NOTES added 2008-12-11 07:32:03 +0100 pb r265239 : fix: #i80135# CheckBox aNotesBtn added 2008-12-11 07:24:45 +0100 pb r265238 : fix: #i80135# CheckBox aNotesBtn added 2008-12-10 15:41:31 +0100 mod r265198 : crash using replies 2008-12-10 15:21:23 +0100 mod r265195 : crash using replies 2008-12-10 13:45:14 +0100 mba r265181 : warning fixed 2008-12-10 13:26:45 +0100 mba r265178 : warning fixed 2008-12-10 11:48:23 +0100 mba r265162 : fixed compilation error on Linux 2008-12-03 18:39:07 +0100 mod r264806 : we don't get the Ctrl-Alt-N on mac inside a note, let's do the whole reply thing using the shell, cleaner anyway 2008-12-03 17:13:59 +0100 mod r264802 : search dialog can be started and closed when focus is inside a note 2008-12-03 00:07:08 +0100 mod r264733 : search inside notes 2008-12-02 18:06:08 +0100 mod r264729 : WaE 2008-12-02 15:01:26 +0100 mod r264703 : WaE 2008-12-02 00:20:14 +0100 mod r264644 : WaE 2008-12-01 10:06:14 +0100 mod r264587 : WaE 2008-12-01 01:28:34 +0100 mod r264585 : WaE 2008-11-30 22:51:19 +0100 mod r264584 : search inside notes 2008-11-30 17:03:04 +0100 mod r264583 : search inside notes 2008-11-28 16:30:05 +0100 mod r264560 : #i96602# 2008-11-28 16:14:50 +0100 mod r264559 : test 2008-11-28 16:11:37 +0100 mod r264558 : test 2008-11-17 17:46:10 +0100 mod r263735 : WaE 2008-11-17 17:45:56 +0100 mod r263734 : WaE 2008-11-17 17:37:35 +0100 mod r263733 : revert manual fix for icu 2008-11-17 15:03:55 +0100 mod r263726 : manual fix for icu 2008-11-17 11:17:49 +0100 mod r263707 : manual fix for icu 2008-11-14 15:51:19 +0100 mod r263679 : fix 2008-11-14 14:48:02 +0100 mod r263676 : some more cleanup, redline comments not in the margin for 3.1 2008-11-14 08:37:07 +0100 mod r263664 : end of line missing 2008-11-13 18:36:53 +0100 mod r263660 : WaE 2008-11-13 18:20:04 +0100 mod r263659 : #i94374# 2008-11-13 15:51:28 +0100 mod r263648 : CWS-TOOLING: rebase CWS notes7 to trunk@263288 (milestone: DEV300:m35) 2008-11-13 08:33:19 +0100 mod r263622 : typos 2008-11-02 23:18:19 +0100 mod r263278 : changes notes, replies 2008-11-01 11:48:35 +0100 mod r262873 : replies, comments 2008-11-01 11:44:57 +0100 mod r262872 : notes search button 2008-10-10 14:34:34 +0200 mod r262150 : migration from cvs to svn 2008-10-10 14:33:39 +0200 mod r262149 : migration from cvs to svn
2009-01-02 15:51:45 +00:00
mbProtectForm(false),
n32DummyCompatabilityOptions1(0),
n32DummyCompatabilityOptions2(0),
mbStartIdleTimer(sal_False)
2000-09-18 23:08:29 +00:00
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLog, "SW", "JP93722", "SwDoc::SwDoc" );
2001-07-23 16:20:51 +00:00
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbGlossDoc =
mbModified =
mbDtor =
mbUndo =
mbPageNums =
mbLoaded =
mbUpdateExpFld =
mbNewDoc =
mbCopyIsMove =
mbNoDrawUndoObj =
mbBrowseMode =
mbInReading =
mbInXMLImport =
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbUpdateTOX =
mbInLoadAsynchron =
mbHTMLMode =
mbInCallModified =
mbIsGlobalDoc =
mbGlblDocSaveLinks =
mbIsLabelDoc =
mbIsAutoFmtRedline =
mbOLEPrtNotifyPending =
mbAllOLENotify =
mbIsRedlineMove =
mbInsOnlyTxtGlssry =
mbContains_MSVBasic =
mbKernAsianPunctuation =
#ifndef PRODUCT
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbXMLExport =
#endif
// --> OD 2006-03-21 #b6375613#
mbApplyWorkaroundForB6375613 =
// <--
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
false;
mbGroupUndo =
mbNewFldLst =
mbVisibleLinks =
mbPurgeOLE =
true;
//
// COMPATIBILITY FLAGS START
//
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
// Note: Any non-hidden compatibility flag should obtain its default
// by asking SvtCompatibilityOptions, see below.
//
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
const SvtCompatibilityOptions aOptions;
mbParaSpaceMax = aOptions.IsAddSpacing();
mbParaSpaceMaxAtPages = aOptions.IsAddSpacingAtPages();
mbTabCompat = !aOptions.IsUseOurTabStops();
mbUseVirtualDevice = !aOptions.IsUsePrtDevice();
mbAddExternalLeading = !aOptions.IsNoExtLeading();
mbOldLineSpacing = aOptions.IsUseLineSpacing();
mbAddParaSpacingToTableCells = aOptions.IsAddTableSpacing();
mbUseFormerObjectPos = aOptions.IsUseObjectPositioning();
mbUseFormerTextWrapping = aOptions.IsUseOurTextWrapping();
mbConsiderWrapOnObjPos = aOptions.IsConsiderWrappingStyle();
mbAddFlyOffsets = false; // hidden
mbOldNumbering = false; // hidden
mbUseHiResolutionVirtualDevice = true; // hidden
mbIgnoreFirstLineIndentInNumbering = false; // hidden
mbDoNotJustifyLinesWithManualBreak = !aOptions.IsExpandWordSpace();
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbDoNotResetParaAttrsForNumFont = false; // hidden
mbOutlineLevelYieldsOutlineRule = false; // hidden
mbTableRowKeep = false; // hidden
mbIgnoreTabsAndBlanksForLineCalculation = false; // hidden
mbDoNotCaptureDrawObjsOnPage = false; // hidden
mbClipAsCharacterAnchoredWriterFlyFrames= false; // hidden
mbUnixForceZeroExtLeading = false; // hidden
mbOldPrinterMetrics = false; // hidden
mbTabRelativeToIndent = true; // hidden
// --> OD 2008-06-05 #i89181#
mbTabAtLeftIndentForParagraphsInList = false; // hidden
// <--
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
//
// COMPATIBILITY FLAGS END
//
2000-09-18 23:08:29 +00:00
pMacroTable = new SvxMacroTableDtor;
mpGrammarContact = ::createGrammarContact();
2000-09-18 23:08:29 +00:00
/*
* Defaultformate und DefaultFormatsammlungen (FmtColl)
* werden an der Position 0 in das jeweilige Array eingetragen.
* Die Formate der FmtColls sind von den Defaultformaten
* abgeleitet und stehen auch in der Liste.
*/
/* Formate */
pFrmFmtTbl->Insert(pDfltFrmFmt, 0 );
pCharFmtTbl->Insert(pDfltCharFmt, 0 );
/* FmtColls */
// TXT
pTxtFmtCollTbl->Insert(pDfltTxtFmtColl, 0 );
// GRF
pGrfFmtCollTbl->Insert(pDfltGrfFmtColl, 0 );
// PageDesc, EmptyPageFmt und ColumnFmt anlegen
if ( !aPageDescs.Count() )
GetPageDescFromPool( RES_POOLPAGE_STANDARD );
//Leere Seite Einstellen.
pEmptyPageFmt->SetFmtAttr( SwFmtFrmSize( ATT_FIX_SIZE ) );
2000-09-18 23:08:29 +00:00
//BodyFmt fuer Spalten Einstellen.
pColumnContFmt->SetFmtAttr( SwFmtFillOrder( ATT_LEFT_TO_RIGHT ) );
2000-09-18 23:08:29 +00:00
_InitFieldTypes();
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
// lege (fuer die Filter) eine Default-OutlineNumRule an
// --> OD 2008-02-11 #newlistlevelattrs#
pOutlineRule = new SwNumRule( String::CreateFromAscii( SwNumRule::GetOutlineRuleName() ),
// --> OD 2008-06-06 #i89178#
numfunc::GetDefaultPositionAndSpaceMode(),
// <--
OUTLINE_RULE );
// <--
// #115901#
AddNumRule(pOutlineRule);
// --> OD 2005-10-21 - counting of phantoms depends on <IsOldNumbering()>
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
pOutlineRule->SetCountPhantoms( !get(IDocumentSettingAccess::OLD_NUMBERING) );
// <--
2000-09-18 23:08:29 +00:00
new SwTxtNode( SwNodeIndex( aUndoNodes.GetEndOfContent() ), pDfltTxtFmtColl );
new SwTxtNode( SwNodeIndex( aNodes.GetEndOfContent() ),
GetTxtCollFromPool( RES_POOLCOLL_STANDARD ));
// den eigenen IdleTimer setzen
aIdleTimer.SetTimeout( 600 );
aIdleTimer.SetTimeoutHdl( LINK(this, SwDoc, DoIdleJobs) );
aOLEModifiedTimer.SetTimeout( 1000 );
aOLEModifiedTimer.SetTimeoutHdl( LINK( this, SwDoc, DoUpdateModifiedOLE ));
// DBMgr anlegen
pNewDBMgr = new SwNewDBMgr;
// create TOXTypes
ShellResource* pShellRes = ViewShell::GetShellRes();
SwTOXType * pNew = new SwTOXType(TOX_CONTENT, pShellRes->aTOXContentName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_INDEX, pShellRes->aTOXIndexName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_USER, pShellRes->aTOXUserName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_ILLUSTRATIONS, pShellRes->aTOXIllustrationsName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_OBJECTS, pShellRes->aTOXObjectsName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_TABLES, pShellRes->aTOXTablesName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
pNew = new SwTOXType(TOX_AUTHORITIES, pShellRes->aTOXAuthoritiesName );
pTOXTypes->Insert( pNew, pTOXTypes->Count() );
// --> OD 2008-03-07 #refactorlists#
// pass empty item set containing the paragraph's list attributes
// as ignorable items to the stype manager.
{
SfxItemSet aIgnorableParagraphItems( GetAttrPool(),
RES_PARATR_LIST_BEGIN, RES_PARATR_LIST_END-1,
0 );
pStyleAccess = createStyleManager( &aIgnorableParagraphItems );
}
// <--
2000-09-18 23:08:29 +00:00
ResetModified();
}
/*
* Besonderheiten: an der Position 0 des Arrays der Formate und
* der GDI-Objekte befindet sich ein Member der Klasse SwDoc.
* Dieser darf also keinesfalls durch delete geloescht
* werden!!!!!!!!!!
*/
SwDoc::~SwDoc()
{
// --> OD 2007-03-16 #i73788#
SwPauseThreadStarting aPauseThreadStarting;
// <--
// --> OD 2007-11-01 #i83479#
delete mpListItemsList;
mpListItemsList = 0;
// <--
// clean up chart related structures...
// Note: the chart data provider gets already diposed in ~SwDocShell
// since all UNO API related functionality requires an existing SwDocShell
// this assures that dipose gets called if there is need for it.
aChartDataProviderImplRef.reset();
delete pChartControllerHelper;
delete mpGrammarContact;
mpGrammarContact = 0;
//!! needs to be done to destroy a possible SwFmtDrop format that may
//!! be connected to a char format which may not otherwise be removed
//!! and thus would leave a unremoved SwFmt object. (TL)
//!! (this is case is not possible via UI but via API...)
SwFmtDrop aDrop;
SetDefault(aDrop);
//!! same for SwFmtCharFmt
SwFmtCharFmt aCharFmt(NULL);
SetDefault(aCharFmt);
StopIdling(); // stop idle timer
2000-09-18 23:08:29 +00:00
delete pUnoCallBack, pUnoCallBack = 0;
2000-09-18 23:08:29 +00:00
delete pURLStateChgd;
delete pLayouter;
// --> OD 2005-09-05 #125370#
pLayouter = 0L;
// <--
2000-09-18 23:08:29 +00:00
// Undo-Benachrichtigung vom Draw abschalten
if( pDrawModel )
{
DrawNotifyUndoHdl();
ClrContourCache();
}
delete pPgPViewPrtData;
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbUndo = FALSE; // immer das Undo abschalten !!
2000-09-18 23:08:29 +00:00
// damit die Fussnotenattribute die Fussnotennodes in Frieden lassen.
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbDtor = TRUE;
2000-09-18 23:08:29 +00:00
DELETEZ( pLayout );
delete pRedlineTbl;
delete pUnoCrsrTbl;
delete pAutoFmtRedlnComment;
if( pUpdtFlds )
delete pUpdtFlds;
if( pACEWord )
delete pACEWord;
// die BaseLinks freigeben.
{
for( USHORT n = pLinkMgr->GetServers().Count(); n; )
pLinkMgr->GetServers()[ --n ]->Closed();
2000-09-18 23:08:29 +00:00
if( pLinkMgr->GetLinks().Count() )
pLinkMgr->Remove( 0, pLinkMgr->GetLinks().Count() );
}
// die KapitelNummern / Nummern muessen vor den Vorlage geloescht werden
// ansonsten wird noch staendig geupdatet !!!
aNodes.pOutlineNds->Remove( USHORT(0), aNodes.pOutlineNds->Count() );
aUndoNodes.pOutlineNds->Remove( USHORT(0), aUndoNodes.pOutlineNds->Count() );
pFtnIdxs->Remove( USHORT(0), pFtnIdxs->Count() );
pUndos->DeleteAndDestroy( 0, pUndos->Count() ); //Es koennen in den Attributen noch
//noch indizes angemeldet sein.
// in den BookMarks sind Indizies auf den Content. Diese muessen vorm
// loesche der Nodes geloescht werden.
pBookmarkTbl->DeleteAndDestroy( 0, pBookmarkTbl->Count() );
DELETEZ( pMacroTable );
if( pExtInputRing )
{
Ring* pTmp = pExtInputRing;
pExtInputRing = 0;
while( pTmp->GetNext() != pTmp )
delete pTmp->GetNext();
delete pTmp;
}
//JP: alt - loeschen ohne Flag ist teuer; Modify wird verschickt!
// aTOXTypes.DeleteAndDestroy( 0, aTOXTypes.Count() );
{
for( USHORT n = pTOXTypes->Count(); n; )
{
(*pTOXTypes)[ --n ]->SetInDocDTOR();
delete (*pTOXTypes)[ n ];
}
pTOXTypes->Remove( 0, pTOXTypes->Count() );
}
delete pDefTOXBases;
//Im einen oder anderen FrmFormat koennen noch Indizes angemeldet sein,
//Diese muessen spaetestens jetzt zerstoert werden.
pFrmFmtTbl->ForEach( &lcl_DelFmtIndizes, this );
pSpzFrmFmtTbl->ForEach( &lcl_DelFmtIndizes, this );
((SwFrmFmts&)*pSectionFmtTbl).ForEach( &lcl_DelFmtIndizes, this );
//Die Formate, die hier hinter stehen sind von den DefaultFormaten
//abhaengig. Erst nach dem Loeschen der FmtIndizes weil der Inhalt von
//Kopf-/Fussbereichen geloescht wird. Wenn dort noch Indizes von Flys
//angemeldet sind gibts was an die Ohren.
aPageDescs.DeleteAndDestroy( 0, aPageDescs.Count() );
// Inhaltssections loeschen
// nicht erst durch den SwNodes-DTOR, damit Formate
// keine Abhaengigen mehr haben.
aNodes.DelNodes( SwNodeIndex( aNodes ), aNodes.Count() );
aUndoNodes.DelNodes( SwNodeIndex( aUndoNodes ), aUndoNodes.Count() );
// Formate loeschen, spaeter mal permanent machen.
// Delete fuer Collections
// damit die Abhaengigen wech sind
SwTxtFmtColl *pFtnColl = pFtnInfo->GetFtnTxtColl();
if ( pFtnColl ) pFtnColl->Remove(pFtnInfo);
pFtnColl = pEndNoteInfo->GetFtnTxtColl();
if ( pFtnColl ) pFtnColl->Remove(pEndNoteInfo);
ASSERT( pDfltTxtFmtColl == (*pTxtFmtCollTbl)[0],
"Default-Text-Collection muss immer am Anfang stehen" );
// JP 27.01.98: opt.: ausgehend davon, das Standard als 2. im Array
// steht, sollte das als letztes geloescht werden, damit
// die ganze Umhaengerei der Formate vermieden wird!
if( 2 < pTxtFmtCollTbl->Count() )
pTxtFmtCollTbl->DeleteAndDestroy( 2, pTxtFmtCollTbl->Count()-2 );
pTxtFmtCollTbl->DeleteAndDestroy( 1, pTxtFmtCollTbl->Count()-1 );
delete pTxtFmtCollTbl;
ASSERT( pDfltGrfFmtColl == (*pGrfFmtCollTbl)[0],
"Default-Grf-Collection muss immer am Anfang stehen" );
pGrfFmtCollTbl->DeleteAndDestroy( 1, pGrfFmtCollTbl->Count()-1 );
// ergibt sich automatisch - kein _DEL Array!
// pGrfFmtCollTbl->Remove( 0, n );
delete pGrfFmtCollTbl;
/*
* Defaultformate und DefaultFormatsammlungen (FmtColl)
* sind an der Position 0 der jeweiligen Arrays eingetragen.
* Damit sie nicht vom DTOR der Array's zum 2.mal geloescht werden,
* nehme sie aus dem Array.
*/
pFrmFmtTbl->Remove( 0 );
pCharFmtTbl->Remove( 0 );
// Delete fuer pPrt
DELETEZ( pPrt );
DELETEZ( pNewDBMgr );
2000-09-18 23:08:29 +00:00
// Alle Flys muessen vor dem Drawing Model zerstoert werden,
// da Flys noch DrawContacts enthalten koennen, wenn wegen
// eines Lesefehlers kein Layout aufgebaut wurde.
pSpzFrmFmtTbl->DeleteAndDestroy( 0, pSpzFrmFmtTbl->Count() );
//Erst jetzt das Model zerstoeren, die Zeichenobjekte - die ja auch
//im Undo herumlungern - wollen noch ihre Attribute beim Model entfernen.
//Ausserdem koennen vorher noch DrawContacts existieren.
ReleaseDrawModel();
//JP 28.01.99: DrawModel vorm LinkManager zerstoeren, da am DrawModel
// dieser immer gesetzt ist.
DELETEZ( pLinkMgr );
//Tables vor dem loeschen der Defaults leeren, sonst GPF wegen Def-Abhaengigen.
//Die Arrays sollten (wegen includes) bei Gelegenheit auch zu Pointern werden.
delete pFrmFmtTbl;
delete pSpzFrmFmtTbl;
delete pStyleAccess;
2000-09-18 23:08:29 +00:00
delete pCharFmtTbl;
delete pSectionFmtTbl;
delete pTblFrmFmtTbl;
delete pDfltTxtFmtColl;
delete pDfltGrfFmtColl;
delete pNumRuleTbl;
// --> OD 2008-03-26 #refactorlists#
{
for ( std::hash_map< String, SwList*, StringHash >::iterator
aListIter = maLists.begin();
aListIter != maLists.end();
++aListIter )
{
delete (*aListIter).second;
}
maLists.clear();
}
maListStyleLists.clear();
// <--
delete pPrtData;
2000-09-18 23:08:29 +00:00
delete pBookmarkTbl;
delete pNumberFormatter;
delete pFtnInfo;
delete pEndNoteInfo;
delete pLineNumberInfo;
delete pFtnIdxs;
delete pFldTypes;
delete pTOXTypes;
delete pUndos;
delete pDocStat;
delete pEmptyPageFmt;
delete pColumnContFmt;
delete pDfltCharFmt;
delete pDfltFrmFmt;
delete pLayoutCache;
delete pVirDev;
CWS-TOOLING: integrate CWS aw063 2009-02-12 13:10:24 +0100 aw r267649 : #i99123# when a primitive is invisible, it is not sufficient to produce no output when decomposing, but to add invisible data using HitTestPrimitive2D. This is needed for the slideshow which relies on geometry data in MetaFiles when painting invisible objects 2009-02-12 13:08:39 +0100 aw r267648 : #i99123# do not ignore HitTestPrimitive2D, but draw empty rectangles instead. This is needed since Slideshow is based on getting MetaFile content when painting invisible objects 2009-02-11 16:04:28 +0100 aw r267620 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:04:10 +0100 aw r267619 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:56 +0100 aw r267618 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:39 +0100 aw r267617 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:03:21 +0100 aw r267615 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:48 +0100 aw r267614 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:24 +0100 aw r267613 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:02:01 +0100 aw r267612 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:01:32 +0100 aw r267611 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:01:05 +0100 aw r267610 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 16:00:15 +0100 aw r267608 : #i98788# made SfxItemPool destructor protected, added static ::Free method 2009-02-11 11:27:33 +0100 aw r267585 : #i98788# added missing include for STL 2009-02-10 17:46:50 +0100 aw r267570 : #i98788# added reaction on pool destruction 2009-02-10 17:11:58 +0100 aw r267562 : #i98788# added messaging mechanism to register for pool destruction 2009-02-10 13:35:35 +0100 aw r267549 : #i98788# removing changes, too complicated and risky for 3.1 2009-02-10 12:13:48 +0100 aw r267546 : #i98788# 4th round 2009-02-10 12:13:37 +0100 aw r267545 : #i98788# 4th round 2009-02-10 12:13:26 +0100 aw r267544 : #i98788# 4th round 2009-02-10 12:13:14 +0100 aw r267543 : #i98788# 4th round 2009-02-10 12:13:03 +0100 aw r267542 : #i98788# 4th round 2009-02-10 12:12:50 +0100 aw r267541 : #i98788# 4th round 2009-02-10 12:12:37 +0100 aw r267540 : #i98788# 4th round 2009-02-08 14:38:22 +0100 aw r267495 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:38:06 +0100 aw r267494 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:37:48 +0100 aw r267493 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:37:17 +0100 aw r267492 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:56 +0100 aw r267491 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:44 +0100 aw r267490 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:29 +0100 aw r267489 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:16 +0100 aw r267488 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:36:02 +0100 aw r267487 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-08 14:35:46 +0100 aw r267486 : #i98788# 3rd round of changes to SfxItemPool handling 2009-02-05 12:20:39 +0100 aw r267415 : #i98788# 2nd batch of adaptions for SfxItemPoolHolder addition 2009-02-04 15:12:54 +0100 aw r267385 : #i98788# added newline at EOF 2009-02-04 13:26:04 +0100 aw r267379 : #i98788# make SfxItemPool holdable 2009-02-04 13:25:40 +0100 aw r267378 : #i98788# make SfxItemPool holdable 2009-02-04 13:25:08 +0100 aw r267377 : #i98788# make SfxItemPool holdable 2009-02-04 13:24:42 +0100 aw r267376 : #i98788# make SfxItemPool holdable 2009-02-04 13:23:14 +0100 aw r267375 : #i98788# make SfxItemPool holdable 2009-02-04 13:23:02 +0100 aw r267374 : #i98788# make SfxItemPool holdable 2009-01-29 17:08:31 +0100 aw r267159 : #i97628# completed the fix 2009-01-29 17:08:15 +0100 aw r267158 : #i97628# completed the fix 2009-01-29 14:09:07 +0100 aw r267132 : #i97628# Corrected usage of ParagraphData in headers 2009-01-29 14:06:58 +0100 iha r267131 : #i98344# incorrect font size in charts 2009-01-29 12:13:46 +0100 aw r267115 : #i97628# back to old state; triggers too many errors in other modules 2009-01-29 12:03:51 +0100 aw r267114 : #i97628# enabled exceptions due to STL vector include 2009-01-29 11:21:37 +0100 aw r267107 : #i97628# added needed include 2009-01-28 17:58:29 +0100 aw r267077 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:58:12 +0100 aw r267076 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:57:51 +0100 aw r267074 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-28 17:57:21 +0100 aw r267073 : #i97628# first version of newly implemented OutlinerParaObject and adaptions 2009-01-27 17:07:33 +0100 aw r267011 : #i98402# added support for ViewRange when exporting MetaFiles in ObjectContactOfPageView::DoProcessDisplay to avoid to paint too much 2009-01-27 11:45:48 +0100 aw r266973 : #i98404# Added a warning to a place where a conversion to rectangle should not be copied from 2009-01-26 21:44:36 +0100 iha r266949 : #i98497# 3D charts are rendered with wrong size 2009-01-26 20:47:07 +0100 aw r266947 : #i98404# handle BackgroundColorPrimitive2D directly in PixelRenderers and avoid AA under all circumstances 2009-01-26 14:50:36 +0100 aw r266926 : #i98386# secured cloning of SdrObject in IMapUserData by boost::shared_prt usage 2009-01-26 12:51:30 +0100 aw r266916 : #i96581# added separated FontStretching and fallback for small X!=Y scale differences 2009-01-23 16:14:55 +0100 aw r266834 : #i96475# added missing implementation of TextDecoratedPortionPrimitive2D::getB2DRange 2009-01-23 15:24:34 +0100 aw r266826 : #i98405# fixed fallback to DrawAlphaRect to use the correctly sized rectangle 2009-01-23 13:34:43 +0100 aw r266813 : #i96474# fixed impSplitSingleWords for an unexpected case 2009-01-23 10:47:31 +0100 aw r266786 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:47:20 +0100 aw r266785 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:47:09 +0100 aw r266783 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:46:58 +0100 aw r266782 : #i98289#,#i96474# tooling and new flags for tasks 2009-01-23 10:46:48 +0100 aw r266781 : #i98289#,#i96474# tooling and new flags for tasks
2009-03-04 14:16:02 +00:00
SfxItemPool::Free(mpAttrPool);
2000-09-18 23:08:29 +00:00
}
//---------------------------------------------------
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
VirtualDevice& SwDoc::CreateVirtualDevice_() const
{
VirtualDevice* pNewVir = new VirtualDevice( 1 );
// <--
pNewVir->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 );
// --> FME 2006-10-09 #i60945# External leading compatibility for unix systems.
if ( get(IDocumentSettingAccess::UNIX_FORCE_ZERO_EXT_LEADING ) )
pNewVir->Compat_ZeroExtleadBug();
// <--
MapMode aMapMode( pNewVir->GetMapMode() );
aMapMode.SetMapUnit( MAP_TWIP );
pNewVir->SetMapMode( aMapMode );
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
const_cast<SwDoc*>(this)->setVirtualDevice( pNewVir, true, true );
return *pVirDev;
}
//---------------------------------------------------
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
SfxPrinter& SwDoc::CreatePrinter_() const
{
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
ASSERT( ! pPrt, "Do not call CreatePrinter_(), call getPrinter() instead" )
#if OSL_DEBUG_LEVEL > 1
ASSERT( false, "Printer will be created!" )
#endif
2000-09-18 23:08:29 +00:00
// wir erzeugen einen default SfxPrinter.
// Das ItemSet wird vom Sfx geloescht!
SfxItemSet *pSet = new SfxItemSet( ((SwDoc*)this)->GetAttrPool(),
FN_PARAM_ADDPRINTER, FN_PARAM_ADDPRINTER,
SID_HTML_MODE, SID_HTML_MODE,
SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
0 );
SfxPrinter* pNewPrt = new SfxPrinter( pSet );
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
const_cast<SwDoc*>(this)->setPrinter( pNewPrt, true, true );
return *pPrt;
2000-09-18 23:08:29 +00:00
}
2001-05-10 07:48:50 +00:00
//---------------------------------------------------
2000-09-18 23:08:29 +00:00
void SwDoc::SetDocShell( SwDocShell* pDSh )
{
if( pDocShell != pDSh )
{
pDocShell = pDSh;
pLinkMgr->SetPersist( pDocShell );
2000-09-18 23:08:29 +00:00
//JP 27.08.98: Bug 55570 - DocShell Pointer auch am DrawModel setzen
if( pDrawModel )
{
2000-09-18 23:08:29 +00:00
((SwDrawDocument*)pDrawModel)->SetObjectShell( pDocShell );
pDrawModel->SetPersist( pDocShell );
ASSERT( pDrawModel->GetPersist() == GetPersist(),
"draw model's persist is out of sync" );
}
2000-09-18 23:08:29 +00:00
}
}
// Convenience-Methode, um uebermaessige Includes von docsh.hxx
// zu vermeiden
uno::Reference < embed::XStorage > SwDoc::GetDocStorage()
2000-09-18 23:08:29 +00:00
{
if( pDocShell )
return pDocShell->GetStorage();
if( pLinkMgr->GetPersist() )
return pLinkMgr->GetPersist()->GetStorage();
2000-09-18 23:08:29 +00:00
return NULL;
}
SfxObjectShell* SwDoc::GetPersist() const
2000-09-18 23:08:29 +00:00
{
return pDocShell ? pDocShell : pLinkMgr->GetPersist();
2000-09-18 23:08:29 +00:00
}
void SwDoc::ClearDoc()
{
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
BOOL bOldUndo = mbUndo;
DelAllUndoObj();
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbUndo = FALSE; // immer das Undo abschalten !!
2000-09-18 23:08:29 +00:00
// Undo-Benachrichtigung vom Draw abschalten
if( pDrawModel )
{
DrawNotifyUndoHdl();
ClrContourCache();
}
// stehen noch FlyFrames rum, loesche auch diese
USHORT n;
while ( 0 != (n = GetSpzFrmFmts()->Count()) )
DelLayoutFmt((*pSpzFrmFmtTbl)[n-1]);
ASSERT( !pDrawModel || !pDrawModel->GetPage(0)->GetObjCount(),
"not all DrawObjects removed from the page" );
2000-09-18 23:08:29 +00:00
pRedlineTbl->DeleteAndDestroy( 0, pRedlineTbl->Count() );
if( pACEWord )
delete pACEWord;
// in den BookMarks sind Indizies auf den Content. Diese muessen vorm
// loesche der Nodes geloescht werden.
pBookmarkTbl->DeleteAndDestroy( 0, pBookmarkTbl->Count() );
pTOXTypes->DeleteAndDestroy( 0, pTOXTypes->Count() );
// create a dummy pagedesc for the layout
sal_uInt16 nDummyPgDsc = MakePageDesc( String::CreateFromAscii( "?DUMMY?" ));
SwPageDesc* pDummyPgDsc = aPageDescs[ nDummyPgDsc ];
2000-09-18 23:08:29 +00:00
SwNodeIndex aSttIdx( *GetNodes().GetEndOfContent().StartOfSectionNode(), 1 );
// den ersten immer wieder neu anlegen (ohne Attribute/Vorlagen/...)
SwTxtNode* pFirstNd = GetNodes().MakeTxtNode( aSttIdx, pDfltTxtFmtColl );
if( pLayout )
{
// set the layout to the dummy pagedesc
pFirstNd->SetAttr( SwFmtPageDesc( pDummyPgDsc ));
SwPosition aPos( *pFirstNd, SwIndex( pFirstNd ));
::PaMCorrAbs( aSttIdx, SwNodeIndex( GetNodes().GetEndOfContent() ),
aPos );
}
2000-09-18 23:08:29 +00:00
GetNodes().Delete( aSttIdx,
GetNodes().GetEndOfContent().GetIndex() - aSttIdx.GetIndex() );
// --> OD 2006-02-28 #i62440#
// destruction of numbering rules and creation of new outline rule
// *after* the document nodes are deleted.
pOutlineRule = NULL;
pNumRuleTbl->DeleteAndDestroy( 0, pNumRuleTbl->Count() );
// creation of new outline numbering rule
// --> OD 2008-02-11 #newlistlevelattrs#
pOutlineRule = new SwNumRule( String::CreateFromAscii( SwNumRule::GetOutlineRuleName() ),
// --> OD 2008-06-06 #i89178#
numfunc::GetDefaultPositionAndSpaceMode(),
// <--
OUTLINE_RULE );
// <--
AddNumRule(pOutlineRule);
// --> OD 2005-10-21 - counting of phantoms depends on <IsOldNumbering()>
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
pOutlineRule->SetCountPhantoms( !get(IDocumentSettingAccess::OLD_NUMBERING) );
// <--
// <--
//remove the dummy pagedec from the array and delete all the old ones
aPageDescs.Remove( nDummyPgDsc );
aPageDescs.DeleteAndDestroy( 0, aPageDescs.Count() );
2000-09-18 23:08:29 +00:00
// Delete fuer Collections
// damit die Abhaengigen wech sind
SwTxtFmtColl* pFtnColl = pFtnInfo->GetFtnTxtColl();
if( pFtnColl ) pFtnColl->Remove( pFtnInfo );
pFtnColl = pEndNoteInfo->GetFtnTxtColl();
if( pFtnColl ) pFtnColl->Remove( pEndNoteInfo );
// JP 27.01.98: opt.: ausgehend davon, das Standard als 2. im Array
// steht, sollte das als letztes geloescht werden, damit
// die ganze Umhaengerei der Formate vermieden wird!
if( 2 < pTxtFmtCollTbl->Count() )
pTxtFmtCollTbl->DeleteAndDestroy( 2, pTxtFmtCollTbl->Count()-2 );
pTxtFmtCollTbl->DeleteAndDestroy( 1, pTxtFmtCollTbl->Count()-1 );
pGrfFmtCollTbl->DeleteAndDestroy( 1, pGrfFmtCollTbl->Count()-1 );
pCharFmtTbl->DeleteAndDestroy( 1, pCharFmtTbl->Count()-1 );
if( pLayout )
{
// search the FrameFormat of the root frm. This is not allowed to delete
pFrmFmtTbl->Remove( pFrmFmtTbl->GetPos( pLayout->GetFmt() ) );
pFrmFmtTbl->DeleteAndDestroy( 1, pFrmFmtTbl->Count()-1 );
pFrmFmtTbl->Insert( pLayout->GetFmt(), pFrmFmtTbl->Count() );
}
else
pFrmFmtTbl->DeleteAndDestroy( 1, pFrmFmtTbl->Count()-1 );
xForbiddenCharsTable.unbind();
2000-09-18 23:08:29 +00:00
pFldTypes->DeleteAndDestroy( INIT_FLDTYPES,
pFldTypes->Count() - INIT_FLDTYPES );
delete pNumberFormatter, pNumberFormatter = 0;
GetPageDescFromPool( RES_POOLPAGE_STANDARD );
pFirstNd->ChgFmtColl( GetTxtCollFromPool( RES_POOLCOLL_STANDARD ));
nDummyPgDsc = aPageDescs.Count();
aPageDescs.Insert( pDummyPgDsc, nDummyPgDsc );
// set the layout back to the new standard pagedesc
pFirstNd->ResetAllAttr();
// delete now the dummy pagedesc
DelPageDesc( nDummyPgDsc );
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
mbUndo = bOldUndo;
2000-09-18 23:08:29 +00:00
}
void SwDoc::SetPreViewPrtData( const SwPagePreViewPrtData* pNew )
{
if( pNew )
{
if( pPgPViewPrtData )
*pPgPViewPrtData = *pNew;
else
pPgPViewPrtData = new SwPagePreViewPrtData( *pNew );
}
else if( pPgPViewPrtData )
DELETEZ( pPgPViewPrtData );
SetModified();
}
/* -----------------------------06.01.00 14:03--------------------------------
---------------------------------------------------------------------------*/
SwModify* SwDoc::GetUnoCallBack() const
{
return pUnoCallBack;
}
/*-----------------28.5.2001 10:06------------------
* SwDoc:
* Reading and writing of the layout cache.
*--------------------------------------------------*/
void SwDoc::ReadLayoutCache( SvStream& rStream )
{
if( !pLayoutCache )
pLayoutCache = new SwLayoutCache();
if( !pLayoutCache->IsLocked() )
{
pLayoutCache->GetLockCount() |= 0x8000;
pLayoutCache->Read( rStream );
pLayoutCache->GetLockCount() &= 0x7fff;
}
}
void SwDoc::WriteLayoutCache( SvStream& rStream )
{
pLayoutCache->Write( rStream, *this );
}
IGrammarContact* getGrammarContact( const SwTxtNode& rTxtNode )
{
const SwDoc* pDoc = rTxtNode.GetDoc();
if( !pDoc || pDoc->IsInDtor() )
return 0;
return pDoc->getGrammarContact();
}
// --> FME 2005-02-25 #i42634# Moved common code of SwReader::Read() and
// SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks():
void SwDoc::UpdateLinks( BOOL bUI )
{
SfxObjectCreateMode eMode;
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
USHORT nLinkMode = getLinkUpdateMode( true );
USHORT nUpdateDocMode = GetDocShell()->GetUpdateDocMode();
if( GetDocShell() &&
(nLinkMode != NEVER || document::UpdateDocMode::FULL_UPDATE == nUpdateDocMode) &&
GetLinkManager().GetLinks().Count() &&
SFX_CREATE_MODE_INTERNAL !=
( eMode = GetDocShell()->GetCreateMode()) &&
SFX_CREATE_MODE_ORGANIZER != eMode &&
SFX_CREATE_MODE_PREVIEW != eMode &&
!GetDocShell()->IsPreview() )
{
ViewShell* pVSh = 0;
BOOL bAskUpdate = nLinkMode == MANUAL;
BOOL bUpdate = TRUE;
switch(nUpdateDocMode)
{
case document::UpdateDocMode::NO_UPDATE: bUpdate = FALSE;break;
case document::UpdateDocMode::QUIET_UPDATE:bAskUpdate = FALSE; break;
case document::UpdateDocMode::FULL_UPDATE: bAskUpdate = TRUE; break;
}
if( bUpdate && (bUI || !bAskUpdate) )
{
SfxMedium* pMedium = GetDocShell()->GetMedium();
SfxFrame* pFrm = pMedium ? pMedium->GetLoadTargetFrame() : 0;
Window* pDlgParent = pFrm ? &pFrm->GetWindow() : 0;
if( GetRootFrm() && !GetEditShell( &pVSh ) && !pVSh )
{
ViewShell aVSh( *this, 0, 0 );
SET_CURR_SHELL( &aVSh );
GetLinkManager().UpdateAllLinks( bAskUpdate , TRUE, FALSE, pDlgParent );
}
else
GetLinkManager().UpdateAllLinks( bAskUpdate, TRUE, FALSE, pDlgParent );
}
}
}
// <--
// --> OD 2006-04-19 #b6375613#
INTEGRATION: CWS writercorehandoff (1.52.120); FILE MERGED 2006/08/14 14:53:48 fme 1.52.120.28: RESYNC: (1.64-1.65); FILE MERGED 2006/07/31 06:24:00 fme 1.52.120.27: #i50348# Resync 2006/07/27 14:38:10 fme 1.52.120.26: RESYNC: (1.63-1.64); FILE MERGED 2006/05/09 10:37:57 fme 1.52.120.25: #i50348# make SwDoc accessible via interfaces 2006/05/08 12:54:20 fme 1.52.120.24: RESYNC: (1.62-1.63); FILE MERGED 2006/04/28 13:31:06 fme 1.52.120.23: RESYNC: (1.60-1.62); FILE MERGED 2006/04/11 09:59:15 tra 1.52.120.22: #i50348 2006/04/05 13:06:17 tra 1.52.120.21: RESYNC: (1.58-1.60); FILE MERGED 2006/03/17 08:02:05 tra 1.52.120.20: RESYNC: (1.57-1.58); FILE MERGED 2005/12/21 15:16:23 tra 1.52.120.19: #i50348# 2005/12/20 15:07:33 tra 1.52.120.18: RESYNC: (1.56-1.57); FILE MERGED 2005/11/10 21:32:46 tra 1.52.120.17: #i50348# 2005/10/25 08:26:00 tra 1.52.120.16: RESYNC: (1.54-1.56); FILE MERGED 2005/09/28 14:00:00 tra 1.52.120.15: #i50348# 2005/09/21 13:42:07 tra 1.52.120.14: #i50348# 2005/09/13 13:19:25 tra 1.52.120.13: RESYNC: (1.53-1.54); FILE MERGED 2005/08/31 12:50:46 tra 1.52.120.12: #i50348# Introducing IDocumentRedlineAccess interface 2005/07/19 06:05:45 fme 1.52.120.11: #i50348# make SwDoc accessible via interfaces 2005/07/14 13:35:41 fme 1.52.120.10: #i50348# Make SwDoc accessible via interfaces 2005/07/14 12:35:24 tra 1.52.120.9: #i50348#removed get/set methods for compatibility flags in exchange for IDocumentSettingAccess, removed useless dummy members 2005/07/13 13:24:18 fme 1.52.120.8: #i50348# Make SwDoc accessible via interfaces 2005/07/13 05:26:05 tra 1.52.120.7: #i50348#make SwDoc interface based 2005/07/12 11:21:27 tra 1.52.120.6: #i50348#make SwDoc interface based 2005/07/11 09:31:35 tra 1.52.120.5: #i50348#resolving merge conflicts 2005/07/11 05:43:50 tra 1.52.120.4: #i50348#merge conflicts resolved 2005/06/24 11:43:14 fme 1.52.120.3: #i50348# Make SwDoc accessible via interfaces 2005/06/07 14:13:26 fme 1.52.120.2: #i50348# General cleanup - removed unused header files, functions, members, declarations etc. 2005/06/06 09:27:07 tra 1.52.120.1: Unnecessary includes removed #i50348#
2006-08-14 14:58:50 +00:00
void SwDoc::SetApplyWorkaroundForB6375613( bool p_bApplyWorkaroundForB6375613 )
{
if ( mbApplyWorkaroundForB6375613 != p_bApplyWorkaroundForB6375613 )
{
mbApplyWorkaroundForB6375613 = p_bApplyWorkaroundForB6375613;
uno::Reference< document::XDocumentInfoSupplier > xDoc(
GetDocShell()->GetBaseModel(),
uno::UNO_QUERY);
if ( xDoc.is() )
{
uno::Reference< beans::XPropertyContainer > xDocInfo(
xDoc->getDocumentInfo(),
uno::UNO_QUERY );
if ( xDocInfo.is() )
{
try
{
if ( mbApplyWorkaroundForB6375613 )
{
xDocInfo->addProperty(
rtl::OUString::createFromAscii("WorkaroundForB6375613Applied"),
beans::PropertyAttribute::TRANSIENT | beans::PropertyAttribute::REMOVABLE,
uno::makeAny( false ) );
}
else
{
xDocInfo->removeProperty( rtl::OUString::createFromAscii("WorkaroundForB6375613Applied") );
}
}
catch( uno::Exception& )
{
}
}
}
}
}
// <--