xref: /aoo42x/main/sw/inc/editsh.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _EDITSH_HXX
28*cdf0e10cSrcweir #define _EDITSH_HXX
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <com/sun/star/text/HoriOrientation.hpp>
31*cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp>
32*cdf0e10cSrcweir #include <tools/string.hxx>
33*cdf0e10cSrcweir #include <svl/svarray.hxx>
34*cdf0e10cSrcweir #include <vcl/font.hxx>
35*cdf0e10cSrcweir #include <editeng/swafopt.hxx>
36*cdf0e10cSrcweir #include "swdllapi.h"
37*cdf0e10cSrcweir #include <crsrsh.hxx>	// fuer Basisklasse
38*cdf0e10cSrcweir #include <itabenum.hxx>
39*cdf0e10cSrcweir #include <swdbdata.hxx>
40*cdf0e10cSrcweir #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/linguistic2/ProofreadingResult.hpp>
42*cdf0e10cSrcweir #include <fldupde.hxx>
43*cdf0e10cSrcweir #include <tblenum.hxx>
44*cdf0e10cSrcweir #include <IMark.hxx>
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir #include <vector>
47*cdf0e10cSrcweir #include <swundo.hxx>
48*cdf0e10cSrcweir #include <svtools/embedhlp.hxx>
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir class PolyPolygon;
51*cdf0e10cSrcweir class SwDoc;
52*cdf0e10cSrcweir class DateTime;
53*cdf0e10cSrcweir class CommandExtTextInputData;
54*cdf0e10cSrcweir 
55*cdf0e10cSrcweir class SvUShortsSort;
56*cdf0e10cSrcweir class SvNumberFormatter;
57*cdf0e10cSrcweir class SfxPoolItem;
58*cdf0e10cSrcweir class SfxItemSet;
59*cdf0e10cSrcweir class SvxAutoCorrect;
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir class SwField;			// fuer Felder
62*cdf0e10cSrcweir class SwFieldType;
63*cdf0e10cSrcweir class SwDDEFieldType;
64*cdf0e10cSrcweir class SwNewDBMgr;
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir struct SwDocStat;
67*cdf0e10cSrcweir class SvStringsDtor;
68*cdf0e10cSrcweir class SvStringsSort;
69*cdf0e10cSrcweir class SwAutoCompleteWord;
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir class SwFmtRefMark;
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir class SwNumRule;        // Numerierung
74*cdf0e10cSrcweir //class SwNodeNum;		// Numerierung
75*cdf0e10cSrcweir 
76*cdf0e10cSrcweir class SwTxtFmtColl;
77*cdf0e10cSrcweir class SwGrfNode;
78*cdf0e10cSrcweir class SwFlyFrmFmt;
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir class SwFrmFmt;			// fuer GetTxtNodeFmts()
81*cdf0e10cSrcweir class SwCharFmt;
82*cdf0e10cSrcweir class SwExtTextInput;
83*cdf0e10cSrcweir class SwRootFrm;        // fuer CTOR
84*cdf0e10cSrcweir class Graphic;			// fuer GetGraphic
85*cdf0e10cSrcweir class GraphicObject;	// fuer GetGraphicObj
86*cdf0e10cSrcweir class SwFmtINetFmt; 	// InsertURL
87*cdf0e10cSrcweir class SwTable;
88*cdf0e10cSrcweir class SwTextBlocks; 	// fuer GlossaryRW
89*cdf0e10cSrcweir class SwFmtFtn;
90*cdf0e10cSrcweir class SwSection;
91*cdf0e10cSrcweir class SwSectionData;
92*cdf0e10cSrcweir class SwSectionFmt;
93*cdf0e10cSrcweir class SwTOXMarks;
94*cdf0e10cSrcweir class SwTOXBase;
95*cdf0e10cSrcweir class SwTOXType;
96*cdf0e10cSrcweir class SwTableAutoFmt;
97*cdf0e10cSrcweir class SwPageDesc;
98*cdf0e10cSrcweir class SwTxtINetFmt;
99*cdf0e10cSrcweir class SwSeqFldList;
100*cdf0e10cSrcweir class SwGlblDocContent;
101*cdf0e10cSrcweir class SwGlblDocContents;
102*cdf0e10cSrcweir class SwRedline;
103*cdf0e10cSrcweir class SwRedlineData;
104*cdf0e10cSrcweir class SwFtnInfo;
105*cdf0e10cSrcweir class SwEndNoteInfo;
106*cdf0e10cSrcweir class SwLineNumberInfo;
107*cdf0e10cSrcweir class SwAuthEntry;
108*cdf0e10cSrcweir class SwRewriter;
109*cdf0e10cSrcweir struct SwConversionArgs;
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace uno {
113*cdf0e10cSrcweir 	template < class > class Sequence;
114*cdf0e10cSrcweir }}}}
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir namespace svx{
117*cdf0e10cSrcweir struct SpellPortion;
118*cdf0e10cSrcweir typedef std::vector<SpellPortion> SpellPortions;
119*cdf0e10cSrcweir }
120*cdf0e10cSrcweir 
121*cdf0e10cSrcweir namespace sfx2{
122*cdf0e10cSrcweir class LinkManager;
123*cdf0e10cSrcweir }
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir namespace sw {
126*cdf0e10cSrcweir     class UndoRedoContext;
127*cdf0e10cSrcweir }
128*cdf0e10cSrcweir 
129*cdf0e10cSrcweir #define GETSELTXT_PARABRK_TO_BLANK      0
130*cdf0e10cSrcweir #define GETSELTXT_PARABRK_KEEP			1
131*cdf0e10cSrcweir #define GETSELTXT_PARABRK_TO_ONLYCR 	2
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir /****************************************************************
134*cdf0e10cSrcweir  *	zum Abfragen der INet-Attribute fuer den Navigator
135*cdf0e10cSrcweir  ****************************************************************/
136*cdf0e10cSrcweir struct SwGetINetAttr
137*cdf0e10cSrcweir {
138*cdf0e10cSrcweir 	String sText;
139*cdf0e10cSrcweir 	const SwTxtINetFmt& rINetAttr;
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir 	SwGetINetAttr( const String& rTxt, const SwTxtINetFmt& rAttr )
142*cdf0e10cSrcweir 		: sText( rTxt ), rINetAttr( rAttr )
143*cdf0e10cSrcweir 	{}
144*cdf0e10cSrcweir };
145*cdf0e10cSrcweir SV_DECL_PTRARR_DEL( SwGetINetAttrs, SwGetINetAttr*, 0, 5 )
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir /****************************************************************
148*cdf0e10cSrcweir  *	Typen der Inhaltsformen
149*cdf0e10cSrcweir  ****************************************************************/
150*cdf0e10cSrcweir #define CNT_TXT	0x0001
151*cdf0e10cSrcweir #define CNT_GRF	0x0002
152*cdf0e10cSrcweir #define CNT_OLE	0x0010
153*cdf0e10cSrcweir /* Teste einen sal_uInt16 auf eine bestimmte Inhaltsform */
154*cdf0e10cSrcweir #define CNT_HasTxt(USH)	((USH)&CNT_TXT)
155*cdf0e10cSrcweir #define CNT_HasGrf(USH)	((USH)&CNT_GRF)
156*cdf0e10cSrcweir #define CNT_HasOLE(USH)	((USH)&CNT_OLE)
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir class SW_DLLPUBLIC SwEditShell: public SwCrsrShell
159*cdf0e10cSrcweir {
160*cdf0e10cSrcweir 	static SvxSwAutoFmtFlags* pAutoFmtFlags;
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 	// fuer die privaten Methoden DelRange und die vom AutoCorrect
163*cdf0e10cSrcweir 	friend class SwAutoFormat;
164*cdf0e10cSrcweir 	friend void _InitCore();
165*cdf0e10cSrcweir 	friend void _FinitCore();
166*cdf0e10cSrcweir 	// fuer die PamCorrAbs/-Rel Methoden
167*cdf0e10cSrcweir 	friend class SwUndo;
168*cdf0e10cSrcweir 
169*cdf0e10cSrcweir 	SW_DLLPRIVATE SfxPoolItem& _GetChrFmt( SfxPoolItem& ) const;
170*cdf0e10cSrcweir 
171*cdf0e10cSrcweir 	/*
172*cdf0e10cSrcweir 	 * liefert einen Pointer auf einen SwGrfNode; dieser wird von
173*cdf0e10cSrcweir 	 * GetGraphic() und GetGraphicSize() verwendet.
174*cdf0e10cSrcweir 	 */
175*cdf0e10cSrcweir 	SW_DLLPRIVATE SwGrfNode *_GetGrfNode() const ;
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir 	SW_DLLPRIVATE void DeleteSel( SwPaM& rPam, sal_Bool* pUndo = 0 );
178*cdf0e10cSrcweir 
179*cdf0e10cSrcweir 	SW_DLLPRIVATE void _SetSectionAttr( SwSectionFmt& rSectFmt, const SfxItemSet& rSet );
180*cdf0e10cSrcweir 
181*cdf0e10cSrcweir     using ViewShell::UpdateFlds;
182*cdf0e10cSrcweir     using SwModify::GetInfo;
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir public:
185*cdf0e10cSrcweir 	// Editieren (immer auf allen selektierten Bereichen)
186*cdf0e10cSrcweir 	void Insert( sal_Unicode, sal_Bool bOnlyCurrCrsr = sal_False );
187*cdf0e10cSrcweir     void Insert2( const String &, const bool bForceExpandHints = false );
188*cdf0e10cSrcweir 	void Overwrite( const String & );
189*cdf0e10cSrcweir 
190*cdf0e10cSrcweir 	// Ersetz einen selektierten Bereich in einem TextNode mit dem
191*cdf0e10cSrcweir 	// String. Ist fuers Suchen&Ersetzen gedacht.
192*cdf0e10cSrcweir 	// bRegExpRplc - ersetze Tabs (\\t) und setze den gefundenen String
193*cdf0e10cSrcweir 	//				 ein ( nicht \& )
194*cdf0e10cSrcweir 	// 				z.B.: Fnd: "zzz", Repl: "xx\t\\t..&..\&"
195*cdf0e10cSrcweir 	//						--> "xx\t<Tab>..zzz..&"
196*cdf0e10cSrcweir 	sal_Bool Replace( const String& rNewStr, sal_Bool bRegExpRplc = sal_False );
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 	// loescht den Inhalt aller Bereiche;
199*cdf0e10cSrcweir 	// werden ganze Nodes selektiert, werden die Nodes geloescht
200*cdf0e10cSrcweir 	long Delete();
201*cdf0e10cSrcweir 
202*cdf0e10cSrcweir 	// remove a complete paragraph
203*cdf0e10cSrcweir 	sal_Bool DelFullPara();
204*cdf0e10cSrcweir 
205*cdf0e10cSrcweir 	// change text to Upper/Lower/Hiragana/Katagana/...
206*cdf0e10cSrcweir 	void TransliterateText( sal_uInt32 nType );
207*cdf0e10cSrcweir 
208*cdf0e10cSrcweir     // count words in current selection
209*cdf0e10cSrcweir     void CountWords( SwDocStat& rStat ) const;
210*cdf0e10cSrcweir 
211*cdf0e10cSrcweir 	// loesche den nicht sichtbaren Content aus dem Document, wie z.B.:
212*cdf0e10cSrcweir 	// versteckte Bereiche, versteckte Absaetze
213*cdf0e10cSrcweir 	sal_Bool RemoveInvisibleContent();
214*cdf0e10cSrcweir 
215*cdf0e10cSrcweir     // replace fields by text - mailmerge support
216*cdf0e10cSrcweir     sal_Bool ConvertFieldsToText();
217*cdf0e10cSrcweir     // set all numbering start points to a fixed value - mailmerge support
218*cdf0e10cSrcweir     void SetNumberingRestart();
219*cdf0e10cSrcweir 
220*cdf0e10cSrcweir 	// embedded alle lokalen Links (Bereiche/Grafiken)
221*cdf0e10cSrcweir 	sal_uInt16 GetLinkUpdMode(sal_Bool bDocSettings = sal_False) const;
222*cdf0e10cSrcweir 	void SetLinkUpdMode( sal_uInt16 nMode );
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir 	// kopiere den Inhalt aller Bereiche an die akt. Cursor-Position
225*cdf0e10cSrcweir 	// in die angegebene Shell
226*cdf0e10cSrcweir 	long Copy( SwEditShell* pDestShell = 0 );
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir 	// fuers Kopieren uebers ClipBoard:
229*cdf0e10cSrcweir 	// 	wird Tabelle in Tabelle kopiert, verschiebe aus dieser dann
230*cdf0e10cSrcweir 	//	alle Cursor. Copy und Paste muss aufgrund der FlyFrames in
231*cdf0e10cSrcweir 	// 	der FEShell stehen!
232*cdf0e10cSrcweir 	// kopiere alle Selectionen und das Doc
233*cdf0e10cSrcweir 	//JP 21.10.96: und fuer die SVX-Autokorrektur
234*cdf0e10cSrcweir 	sal_Bool _CopySelToDoc( SwDoc* pInsDoc, SwNodeIndex* pNdInsPos = 0 );
235*cdf0e10cSrcweir 
236*cdf0e10cSrcweir 	long SplitNode( sal_Bool bAutoFormat = sal_False, sal_Bool bCheckTableStart = sal_True );
237*cdf0e10cSrcweir     sal_Bool AppendTxtNode();
238*cdf0e10cSrcweir     void AutoFmtBySplitNode();
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir 	// ist der Cursor in einem INetAttribut, dann wird das komplett
241*cdf0e10cSrcweir 	// geloescht; inclusive des Hinweistextes (wird beim Drag&Drop gebraucht)
242*cdf0e10cSrcweir 	sal_Bool DelINetAttrWithText();
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir 	// ist der Cursor am Ende einer Zeichenvorlage, an der das DontExpand-Flag
245*cdf0e10cSrcweir 	// noch nicht gesetzt ist, wird dies gesetzt ( => return sal_True; )
246*cdf0e10cSrcweir 	sal_Bool DontExpandFmt();
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 	// Anwenden / Entfernen von Attributen
249*cdf0e10cSrcweir 	// liefert Attribute im angeforderten AttributSet. Wenn nicht eindeutig
250*cdf0e10cSrcweir 	// steht im Set ein DONT_CARE !!
251*cdf0e10cSrcweir     // --> OD 2008-01-16 #newlistlevelattrs#
252*cdf0e10cSrcweir     // Renaming method to <GetCurAttr(..)> indicating that the attributes at
253*cdf0e10cSrcweir     // the current cursors are retrieved.
254*cdf0e10cSrcweir     // Introduce 2nd optional parameter <bMergeIndentValuesOfNumRule>.
255*cdf0e10cSrcweir     // If <bMergeIndentValuesOfNumRule> == sal_True, the indent attributes of
256*cdf0e10cSrcweir     // the corresponding list level of an applied list style is merged into
257*cdf0e10cSrcweir     // the requested item set as a LR-SPACE item, if corresponding node has not
258*cdf0e10cSrcweir     // its own indent attributes and the position-and-space mode of the list
259*cdf0e10cSrcweir     // level is SvxNumberFormat::LABEL_ALIGNMENT.
260*cdf0e10cSrcweir     sal_Bool GetCurAttr( SfxItemSet& ,
261*cdf0e10cSrcweir                      const bool bMergeIndentValuesOfNumRule = false ) const;
262*cdf0e10cSrcweir     // <--
263*cdf0e10cSrcweir 	void SetAttr( const SfxPoolItem&, sal_uInt16 nFlags = 0 );
264*cdf0e10cSrcweir 	void SetAttr( const SfxItemSet&, sal_uInt16 nFlags = 0 );
265*cdf0e10cSrcweir 
266*cdf0e10cSrcweir 	// Setze das Attribut als neues default Attribut im Dokument.
267*cdf0e10cSrcweir 	void SetDefault( const SfxPoolItem& );
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir 	// Erfrage das Default Attribut vom Dokument.
270*cdf0e10cSrcweir 	const SfxPoolItem& GetDefault( sal_uInt16 nFmtHint ) const;
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir     void ResetAttr( const SvUShortsSort* pAttrs = 0 );
273*cdf0e10cSrcweir 	void GCAttr();
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir 	// returns the scripttpye of the selection
276*cdf0e10cSrcweir     sal_uInt16 GetScriptType() const;
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir 	// returns the language at current cursor position
279*cdf0e10cSrcweir 	sal_uInt16 GetCurLang() const;
280*cdf0e10cSrcweir 
281*cdf0e10cSrcweir 	// TABLE
282*cdf0e10cSrcweir 	sal_uInt16 GetTblFrmFmtCount( sal_Bool bUsed = sal_False ) const;
283*cdf0e10cSrcweir 	SwFrmFmt& GetTblFrmFmt(sal_uInt16 nFmt, sal_Bool bUsed = sal_False ) const;
284*cdf0e10cSrcweir 	String GetUniqueTblName() const;
285*cdf0e10cSrcweir 
286*cdf0e10cSrcweir 	// CHAR
287*cdf0e10cSrcweir 	sal_uInt16 GetCharFmtCount() const;
288*cdf0e10cSrcweir 	SwCharFmt& GetCharFmt(sal_uInt16 nFmt) const;
289*cdf0e10cSrcweir 	SwCharFmt* GetCurCharFmt() const;
290*cdf0e10cSrcweir 	void FillByEx(SwCharFmt*, sal_Bool bReset = sal_False);
291*cdf0e10cSrcweir 	SwCharFmt* MakeCharFmt( const String& rName, SwCharFmt* pDerivedFrom = 0 );
292*cdf0e10cSrcweir 	SwCharFmt* FindCharFmtByName( const String& rName ) const;
293*cdf0e10cSrcweir 
294*cdf0e10cSrcweir 
295*cdf0e10cSrcweir 	/* Formatcollections, neu */
296*cdf0e10cSrcweir 	/* GetXXXCount() liefert die Anzahl der im Dokument vorhandenen XXX
297*cdf0e10cSrcweir 	 * GetXXX(i)	 liefert das i-te XXX (ERR_RAISE bei Ueberindizierung!)
298*cdf0e10cSrcweir 	 * DelXXX(i)	 loescht das i-te XXX (ERR_RAISE bei Ueberindizierung!)
299*cdf0e10cSrcweir 	 * GetCurXXX()	 liefert das am Cursor oder in den Bereichen
300*cdf0e10cSrcweir 	 *				 geltende XXX (0, wenn nicht eindeutig!)
301*cdf0e10cSrcweir 	 * SetXXX() 	 setzt am Cursor oder in den Bereichen das XXX
302*cdf0e10cSrcweir 	 * MakeXXX()	 macht ein XXX, abgeleitet vom pDerivedFrom
303*cdf0e10cSrcweir 	 */
304*cdf0e10cSrcweir 
305*cdf0e10cSrcweir 	// TXT
306*cdf0e10cSrcweir 	SwTxtFmtColl& GetDfltTxtFmtColl() const;
307*cdf0e10cSrcweir 	sal_uInt16 GetTxtFmtCollCount() const;
308*cdf0e10cSrcweir 	SwTxtFmtColl& GetTxtFmtColl( sal_uInt16 nTxtFmtColl) const;
309*cdf0e10cSrcweir 	SwTxtFmtColl* GetCurTxtFmtColl() const;
310*cdf0e10cSrcweir     // --> OD 2007-11-06 #i62675#
311*cdf0e10cSrcweir     // Add 2nd optional parameter <bResetListAttrs> - see also <SwDoc::SetTxtFmtColl(..)>
312*cdf0e10cSrcweir     void SetTxtFmtColl( SwTxtFmtColl*,
313*cdf0e10cSrcweir                         bool bResetListAttrs = false );
314*cdf0e10cSrcweir     // <--
315*cdf0e10cSrcweir 	SwTxtFmtColl *MakeTxtFmtColl(const String &rFmtCollName,
316*cdf0e10cSrcweir 		SwTxtFmtColl *pDerivedFrom = 0);
317*cdf0e10cSrcweir 	void FillByEx(SwTxtFmtColl*, sal_Bool bReset = sal_False);
318*cdf0e10cSrcweir 	SwTxtFmtColl* FindTxtFmtCollByName( const String& rName ) const;
319*cdf0e10cSrcweir 
320*cdf0e10cSrcweir 		// Gebe die "Auto-Collection" mit der Id zurueck. Existiert
321*cdf0e10cSrcweir 		// sie noch nicht, dann erzuege sie
322*cdf0e10cSrcweir 	SwTxtFmtColl* GetTxtCollFromPool( sal_uInt16 nId );
323*cdf0e10cSrcweir 		// return das geforderte automatische  Format - Basis-Klasse !
324*cdf0e10cSrcweir 	SwFmt* GetFmtFromPool( sal_uInt16 nId );
325*cdf0e10cSrcweir 		// returne die geforderte automatische Seiten-Vorlage
326*cdf0e10cSrcweir 	SwPageDesc* GetPageDescFromPool( sal_uInt16 nId );
327*cdf0e10cSrcweir 
328*cdf0e10cSrcweir 	// erfrage ob die Absatz-/Zeichen-/Rahmen-/Seiten - Vorlage benutzt wird
329*cdf0e10cSrcweir 	sal_Bool IsUsed( const SwModify& ) const;
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir 		// returne das geforderte automatische Format
332*cdf0e10cSrcweir 	SwFrmFmt* GetFrmFmtFromPool( sal_uInt16 nId )
333*cdf0e10cSrcweir 		{ return (SwFrmFmt*)SwEditShell::GetFmtFromPool( nId ); }
334*cdf0e10cSrcweir 	SwCharFmt* GetCharFmtFromPool( sal_uInt16 nId )
335*cdf0e10cSrcweir 		{ return (SwCharFmt*)SwEditShell::GetFmtFromPool( nId ); }
336*cdf0e10cSrcweir 
337*cdf0e10cSrcweir 	// Felder
338*cdf0e10cSrcweir     void Insert2(SwField&, const bool bForceExpandHints = false);
339*cdf0e10cSrcweir 	SwField* GetCurFld() const;
340*cdf0e10cSrcweir 
341*cdf0e10cSrcweir 	void UpdateFlds( SwField & );		// ein einzelnes Feld
342*cdf0e10cSrcweir 
343*cdf0e10cSrcweir 	sal_uInt16 GetFldTypeCount(sal_uInt16 nResId = USHRT_MAX, sal_Bool bUsed = sal_False) const;
344*cdf0e10cSrcweir 	SwFieldType* GetFldType(sal_uInt16 nId, sal_uInt16 nResId = USHRT_MAX, sal_Bool bUsed = sal_False) const;
345*cdf0e10cSrcweir 	SwFieldType* GetFldType(sal_uInt16 nResId, const String& rName) const;
346*cdf0e10cSrcweir 
347*cdf0e10cSrcweir 	void RemoveFldType(sal_uInt16 nId, sal_uInt16 nResId = USHRT_MAX);
348*cdf0e10cSrcweir 	void RemoveFldType(sal_uInt16 nResId, const String& rName);
349*cdf0e10cSrcweir 
350*cdf0e10cSrcweir 	void FieldToText( SwFieldType* pType );
351*cdf0e10cSrcweir 
352*cdf0e10cSrcweir 	void ChangeAuthorityData(const SwAuthEntry* pNewData);
353*cdf0e10cSrcweir 
354*cdf0e10cSrcweir 	// Datenbankinfo
355*cdf0e10cSrcweir 	SwDBData GetDBData() const;
356*cdf0e10cSrcweir 	const SwDBData& GetDBDesc() const;
357*cdf0e10cSrcweir 	void ChgDBData(const SwDBData& SwDBData);
358*cdf0e10cSrcweir 	void ChangeDBFields( const SvStringsDtor& rOldNames,
359*cdf0e10cSrcweir 						 const String& rNewName );
360*cdf0e10cSrcweir 	void GetAllUsedDB( SvStringsDtor& rDBNameList,
361*cdf0e10cSrcweir 						SvStringsDtor* pAllDBNames = 0 );
362*cdf0e10cSrcweir 
363*cdf0e10cSrcweir     sal_Bool IsAnyDatabaseFieldInDoc()const;
364*cdf0e10cSrcweir     //check whether DB fields point to an available data source and returns it
365*cdf0e10cSrcweir     sal_Bool IsFieldDataSourceAvailable(String& rUsedDataSource) const;
366*cdf0e10cSrcweir 	void UpdateExpFlds(sal_Bool bCloseDB = sal_False);// nur alle ExpressionFelder updaten
367*cdf0e10cSrcweir 	void SetFixFields( sal_Bool bOnlyTimeDate = sal_False,
368*cdf0e10cSrcweir 						const DateTime* pNewDateTime = 0 );
369*cdf0e10cSrcweir 	void LockExpFlds();
370*cdf0e10cSrcweir 	void UnlockExpFlds();
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir     SwFldUpdateFlags GetFldUpdateFlags(sal_Bool bDocSettings = sal_False) const;
373*cdf0e10cSrcweir     void SetFldUpdateFlags( SwFldUpdateFlags eFlags );
374*cdf0e10cSrcweir 
375*cdf0e10cSrcweir 	// fuer die Evaluierung der DBFelder (neuer DB-Manager)
376*cdf0e10cSrcweir 	SwNewDBMgr* GetNewDBMgr() const;
377*cdf0e10cSrcweir 
378*cdf0e10cSrcweir 	SwFieldType* InsertFldType(const SwFieldType &);
379*cdf0e10cSrcweir 
380*cdf0e10cSrcweir 	// Aenderungen am Dokument?
381*cdf0e10cSrcweir 	sal_Bool IsModified() const;
382*cdf0e10cSrcweir 	void SetModified();
383*cdf0e10cSrcweir 	void ResetModified();
384*cdf0e10cSrcweir 	void SetUndoNoResetModified();
385*cdf0e10cSrcweir 
386*cdf0e10cSrcweir 	// Dokument - Statistics
387*cdf0e10cSrcweir 	void UpdateDocStat( SwDocStat& rStat );
388*cdf0e10cSrcweir 
389*cdf0e10cSrcweir 	// Verzeichnismarke einfuegen loeschen
390*cdf0e10cSrcweir 	void 	Insert(const SwTOXMark& rMark);
391*cdf0e10cSrcweir 	void	DeleteTOXMark(SwTOXMark* pMark);
392*cdf0e10cSrcweir 
393*cdf0e10cSrcweir 	// Alle Markierungen am aktuellen SPoint ermitteln
394*cdf0e10cSrcweir 	sal_uInt16	GetCurTOXMarks(SwTOXMarks& rMarks) const ;
395*cdf0e10cSrcweir 
396*cdf0e10cSrcweir 	// Verzeichnis einfuegen, und bei Bedarf erneuern
397*cdf0e10cSrcweir 	void				InsertTableOf(const SwTOXBase& rTOX,
398*cdf0e10cSrcweir 										const SfxItemSet* pSet = 0);
399*cdf0e10cSrcweir 	sal_Bool				UpdateTableOf(const SwTOXBase& rTOX,
400*cdf0e10cSrcweir 										const SfxItemSet* pSet = 0);
401*cdf0e10cSrcweir 	const SwTOXBase* 	GetCurTOX() const;
402*cdf0e10cSrcweir 	const SwTOXBase* 	GetDefaultTOXBase( TOXTypes eTyp, sal_Bool bCreate = sal_False );
403*cdf0e10cSrcweir 	void				SetDefaultTOXBase(const SwTOXBase& rBase);
404*cdf0e10cSrcweir 
405*cdf0e10cSrcweir 	sal_Bool 				IsTOXBaseReadonly(const SwTOXBase& rTOXBase) const;
406*cdf0e10cSrcweir 	void 				SetTOXBaseReadonly(const SwTOXBase& rTOXBase, sal_Bool bReadonly);
407*cdf0e10cSrcweir 
408*cdf0e10cSrcweir 	sal_uInt16				GetTOXCount() const;
409*cdf0e10cSrcweir 	const SwTOXBase*	GetTOX(	sal_uInt16 nPos ) const;
410*cdf0e10cSrcweir 	sal_Bool 				DeleteTOX( const SwTOXBase& rTOXBase, sal_Bool bDelNodes = sal_False );
411*cdf0e10cSrcweir 
412*cdf0e10cSrcweir 	// nach einlesen einer Datei alle Verzeichnisse updaten
413*cdf0e10cSrcweir 	void SetUpdateTOX( sal_Bool bFlag = sal_True );
414*cdf0e10cSrcweir 	sal_Bool IsUpdateTOX() const;
415*cdf0e10cSrcweir 
416*cdf0e10cSrcweir 	// Verzeichnis-Typen verwalten
417*cdf0e10cSrcweir 	sal_uInt16				GetTOXTypeCount(TOXTypes eTyp) const;
418*cdf0e10cSrcweir 	const SwTOXType* 	GetTOXType(TOXTypes eTyp, sal_uInt16 nId) const;
419*cdf0e10cSrcweir 	void			 	InsertTOXType(const SwTOXType& rTyp);
420*cdf0e10cSrcweir 
421*cdf0e10cSrcweir 	//AutoMark file
422*cdf0e10cSrcweir 	const String&	GetTOIAutoMarkURL() const;
423*cdf0e10cSrcweir 	void			SetTOIAutoMarkURL(const String& rSet);
424*cdf0e10cSrcweir 	void 			ApplyAutoMark();
425*cdf0e10cSrcweir 
426*cdf0e10cSrcweir 	// Schluessel fuer die Indexverwaltung
427*cdf0e10cSrcweir 	sal_uInt16 GetTOIKeys( SwTOIKeyType eTyp, SvStringsSort& rArr ) const;
428*cdf0e10cSrcweir 
429*cdf0e10cSrcweir 	void SetOutlineNumRule(const SwNumRule&);
430*cdf0e10cSrcweir 	const SwNumRule* GetOutlineNumRule() const;
431*cdf0e10cSrcweir 	// Gliederung - hoch-/runterstufen
432*cdf0e10cSrcweir 	sal_Bool OutlineUpDown( short nOffset = 1 );
433*cdf0e10cSrcweir 	// Gliederung - hoch-/runtermoven
434*cdf0e10cSrcweir 	sal_Bool MoveOutlinePara( short nOffset = 1);
435*cdf0e10cSrcweir 	// Outlines and SubOutline are protected ?
436*cdf0e10cSrcweir 	sal_Bool IsProtectedOutlinePara() const;
437*cdf0e10cSrcweir 
438*cdf0e10cSrcweir 	// Numerierung Aufzaehlunglisten
439*cdf0e10cSrcweir 	// liefert Regelwerk der aktuellen Aufzaehlung (sal_False sonst)
440*cdf0e10cSrcweir 	const SwNumRule* GetCurNumRule() const;
441*cdf0e10cSrcweir 
442*cdf0e10cSrcweir 	// setzt, wenn noch keine Numerierung, sonst wird geaendert
443*cdf0e10cSrcweir 	// arbeitet mit alten und neuen Regeln, nur Differenzen aktualisieren
444*cdf0e10cSrcweir     // --> OD 2008-02-08 #newlistlevelattrs#
445*cdf0e10cSrcweir     // Add optional parameter <bResetIndentAttrs> (default value sal_False).
446*cdf0e10cSrcweir     // If <bResetIndentAttrs> equals true, the indent attributes "before text"
447*cdf0e10cSrcweir     // and "first line indent" are additionally reset at the current selection,
448*cdf0e10cSrcweir     // if the list style makes use of the new list level attributes.
449*cdf0e10cSrcweir     // --> OD 2008-03-17 #refactorlists#
450*cdf0e10cSrcweir     // introduce parameters <bCreateNewList> and <sContinuedListId>
451*cdf0e10cSrcweir     // <bCreateNewList> indicates, if a new list is created by applying the
452*cdf0e10cSrcweir     // given list style.
453*cdf0e10cSrcweir     // If <bCreateNewList> equals sal_False, <sContinuedListId> may contain the
454*cdf0e10cSrcweir     // list Id of a list, which has to be continued by applying the given list style
455*cdf0e10cSrcweir     void SetCurNumRule( const SwNumRule&,
456*cdf0e10cSrcweir                         const bool bCreateNewList /*= false*/,
457*cdf0e10cSrcweir                         const String sContinuedListId = String(),
458*cdf0e10cSrcweir                         const bool bResetIndentAttrs = false );
459*cdf0e10cSrcweir     // <--
460*cdf0e10cSrcweir 	// Absaetze ohne Numerierung, aber mit Einzuegen
461*cdf0e10cSrcweir 	sal_Bool NoNum();
462*cdf0e10cSrcweir 	// Loeschen, Splitten der Aufzaehlungsliste
463*cdf0e10cSrcweir     void DelNumRules();
464*cdf0e10cSrcweir 	// Hoch-/Runterstufen
465*cdf0e10cSrcweir 	sal_Bool NumUpDown( sal_Bool bDown = sal_True );
466*cdf0e10cSrcweir 	// Hoch-/Runtermoven sowohl innerhalb als auch ausserhalb von Numerierungen
467*cdf0e10cSrcweir 	sal_Bool MoveParagraph( long nOffset = 1);
468*cdf0e10cSrcweir 	sal_Bool MoveNumParas( sal_Bool bUpperLower, sal_Bool bUpperLeft );
469*cdf0e10cSrcweir 	// No-/Numerierung ueber Delete/Backspace ein/abschalten #115901#
470*cdf0e10cSrcweir 	sal_Bool NumOrNoNum( sal_Bool bDelete = sal_False, sal_Bool bChkStart = sal_True);
471*cdf0e10cSrcweir     // -> #i23726#
472*cdf0e10cSrcweir     // --> OD 2008-06-09 #i90078#
473*cdf0e10cSrcweir     // Remove unused default parameter <nLevel> and <bRelative>.
474*cdf0e10cSrcweir     // Adjust method name and parameter name
475*cdf0e10cSrcweir     void ChangeIndentOfAllListLevels( short nDiff );
476*cdf0e10cSrcweir     // Adjust method name
477*cdf0e10cSrcweir     void SetIndent(short nIndent, const SwPosition & rPos);
478*cdf0e10cSrcweir     // <--
479*cdf0e10cSrcweir     sal_Bool IsFirstOfNumRule() const;
480*cdf0e10cSrcweir     sal_Bool IsFirstOfNumRule(const SwPaM & rPaM) const;
481*cdf0e10cSrcweir     // <- #i23726#
482*cdf0e10cSrcweir 
483*cdf0e10cSrcweir     sal_Bool IsNoNum( sal_Bool bChkStart = sal_True ) const;
484*cdf0e10cSrcweir 	// returne den Num-Level des Nodes, in dem sich der Point vom
485*cdf0e10cSrcweir 	// Cursor befindet. Return kann sein :
486*cdf0e10cSrcweir 	// - NO_NUMBERING, 0..MAXLEVEL-1, NO_NUMLEVEL .. NO_NUMLEVEL|MAXLEVEL-1
487*cdf0e10cSrcweir     // --> OD 2008-02-29 #refactorlists# - removed <pHasChilds>
488*cdf0e10cSrcweir //    sal_uInt8 GetNumLevel( sal_Bool* pHasChilds = 0 ) const;
489*cdf0e10cSrcweir     sal_uInt8 GetNumLevel() const;
490*cdf0e10cSrcweir     // <--
491*cdf0e10cSrcweir     // detect highest and lowest level to check moving of outline levels
492*cdf0e10cSrcweir     void GetCurrentOutlineLevels( sal_uInt8& rUpper, sal_uInt8& rLower );
493*cdf0e10cSrcweir 
494*cdf0e10cSrcweir 
495*cdf0e10cSrcweir 	// get Outline level of current paragraph
496*cdf0e10cSrcweir 	int GetCurrentParaOutlineLevel( ) const;// #outlinelevel add by zhaojianwei
497*cdf0e10cSrcweir 
498*cdf0e10cSrcweir     // -> i29560
499*cdf0e10cSrcweir     sal_Bool HasNumber() const;
500*cdf0e10cSrcweir     sal_Bool HasBullet() const;
501*cdf0e10cSrcweir     // <- i29560
502*cdf0e10cSrcweir 
503*cdf0e10cSrcweir 	String GetUniqueNumRuleName( const String* pChkStr = 0, sal_Bool bAutoNum = sal_True ) const;
504*cdf0e10cSrcweir 	void ChgNumRuleFmts( const SwNumRule& rRule );
505*cdf0e10cSrcweir 	// setze und erfrage, ob an aktueller PointPos eine Numerierung mit
506*cdf0e10cSrcweir 	// dem StartFlag startet
507*cdf0e10cSrcweir 	void SetNumRuleStart( sal_Bool bFlag = sal_True );
508*cdf0e10cSrcweir 	sal_Bool IsNumRuleStart() const;
509*cdf0e10cSrcweir     void SetNodeNumStart( sal_uInt16 nStt );
510*cdf0e10cSrcweir     // --> OD 2008-02-29 #refactorlists#
511*cdf0e10cSrcweir     sal_uInt16 GetNodeNumStart() const;
512*cdf0e10cSrcweir     // <--
513*cdf0e10cSrcweir 	sal_Bool ReplaceNumRule( const String& rOldRule, const String& rNewRule );
514*cdf0e10cSrcweir     // Searches for a text node with a numbering rule.
515*cdf0e10cSrcweir     // --> OD 2008-03-18 #refactorlists# - add output parameter <sListId>
516*cdf0e10cSrcweir     // in case a list style is found, <sListId> holds the list id, to which the
517*cdf0e10cSrcweir     // text node belongs, which applies the found list style.
518*cdf0e10cSrcweir     const SwNumRule * SearchNumRule(const bool bForward,
519*cdf0e10cSrcweir                                     const bool bNum,
520*cdf0e10cSrcweir                                     const bool bOutline,
521*cdf0e10cSrcweir                                     int nNonEmptyAllowed,
522*cdf0e10cSrcweir                                     String& sListId );
523*cdf0e10cSrcweir     // <--
524*cdf0e10cSrcweir 
525*cdf0e10cSrcweir 	// Undo
526*cdf0e10cSrcweir 	// UndoHistory am Dokument pflegen
527*cdf0e10cSrcweir 	// bei Save, SaveAs, Create wird UndoHistory zurueckgesetzt ???
528*cdf0e10cSrcweir 	void DoUndo( sal_Bool bOn = sal_True );
529*cdf0e10cSrcweir 	sal_Bool DoesUndo() const;
530*cdf0e10cSrcweir 	void DoGroupUndo( sal_Bool bUn = sal_True );
531*cdf0e10cSrcweir 	sal_Bool DoesGroupUndo() const;
532*cdf0e10cSrcweir 	void DelAllUndoObj();
533*cdf0e10cSrcweir 
534*cdf0e10cSrcweir 	// macht rueckgaengig:
535*cdf0e10cSrcweir 	// setzt Undoklammerung auf, liefert nUndoId der Klammerung
536*cdf0e10cSrcweir     SwUndoId StartUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 );
537*cdf0e10cSrcweir 	// schliesst Klammerung der nUndoId, nicht vom UI benutzt
538*cdf0e10cSrcweir     SwUndoId EndUndo( SwUndoId eUndoId = UNDO_EMPTY, const SwRewriter * pRewriter = 0 );
539*cdf0e10cSrcweir 
540*cdf0e10cSrcweir     bool     GetLastUndoInfo(::rtl::OUString *const o_pStr,
541*cdf0e10cSrcweir                              SwUndoId *const o_pId) const;
542*cdf0e10cSrcweir     bool     GetFirstRedoInfo(::rtl::OUString *const o_pStr) const;
543*cdf0e10cSrcweir     SwUndoId GetRepeatInfo(::rtl::OUString *const o_pStr) const;
544*cdf0e10cSrcweir 
545*cdf0e10cSrcweir     /// is it forbidden to modify cursors via API calls?
546*cdf0e10cSrcweir     bool CursorsLocked() const;
547*cdf0e10cSrcweir     /// set selections to those contained in the UndoRedoContext
548*cdf0e10cSrcweir     /// should only be called by sw::UndoManager!
549*cdf0e10cSrcweir     void HandleUndoRedoContext(::sw::UndoRedoContext & rContext);
550*cdf0e10cSrcweir 
551*cdf0e10cSrcweir     bool Undo(sal_uInt16 const nCount = 1);
552*cdf0e10cSrcweir     bool Redo(sal_uInt16 const nCount = 1);
553*cdf0e10cSrcweir     bool Repeat(sal_uInt16 const nCount);
554*cdf0e10cSrcweir 
555*cdf0e10cSrcweir 	// fuer alle Sichten auf dieses Dokument
556*cdf0e10cSrcweir 	void StartAllAction();
557*cdf0e10cSrcweir 	void EndAllAction();
558*cdf0e10cSrcweir 
559*cdf0e10cSrcweir 	//Damit Start-/EndActions aufgesetzt werden koennen.
560*cdf0e10cSrcweir 	void CalcLayout();
561*cdf0e10cSrcweir 
562*cdf0e10cSrcweir 	// Inhaltsform bestimmen, holen, liefert Type am CurCrsr->SPoint
563*cdf0e10cSrcweir 	sal_uInt16 GetCntType() const;
564*cdf0e10cSrcweir 	sal_Bool HasOtherCnt() const; // gibt es Rahmen, Fussnoten, ...
565*cdf0e10cSrcweir 
566*cdf0e10cSrcweir 	/* Anwenden der ViewOptions mit Start-/EndAction */
567*cdf0e10cSrcweir 	virtual void ApplyViewOptions( const SwViewOption &rOpt );
568*cdf0e10cSrcweir 
569*cdf0e10cSrcweir 	// Text innerhalb der Selektion erfragen
570*cdf0e10cSrcweir 	// Returnwert liefert sal_False, wenn der selektierte Bereich
571*cdf0e10cSrcweir 	// zu gross ist, um in den Stringpuffer kopiert zu werden
572*cdf0e10cSrcweir 	// oder andere Fehler auftreten
573*cdf0e10cSrcweir 	sal_Bool GetSelectedText( String &rBuf,
574*cdf0e10cSrcweir 						int nHndlParaBreak = GETSELTXT_PARABRK_TO_BLANK );
575*cdf0e10cSrcweir 
576*cdf0e10cSrcweir 	/*
577*cdf0e10cSrcweir 	 * liefert eine Graphic, wenn CurCrsr->Point() auf einen
578*cdf0e10cSrcweir 	 * SwGrfNode zeigt (und Mark nicht gesetzt ist oder auf die
579*cdf0e10cSrcweir 	 * gleiche Graphic zeigt), sonst gibt's was auf die Finger
580*cdf0e10cSrcweir 	 */
581*cdf0e10cSrcweir     // --> OD 2005-02-09 #119353# - robust
582*cdf0e10cSrcweir     const Graphic* GetGraphic( sal_Bool bWait = sal_True ) const;
583*cdf0e10cSrcweir     const GraphicObject* GetGraphicObj() const;
584*cdf0e10cSrcweir     // <--
585*cdf0e10cSrcweir 	sal_Bool IsGrfSwapOut( sal_Bool bOnlyLinked = sal_False ) const;
586*cdf0e10cSrcweir 	sal_uInt16 GetGraphicType() const;
587*cdf0e10cSrcweir 
588*cdf0e10cSrcweir 	const PolyPolygon *GetGraphicPolygon() const;
589*cdf0e10cSrcweir 	void SetGraphicPolygon( const PolyPolygon *pPoly );
590*cdf0e10cSrcweir 
591*cdf0e10cSrcweir     // If there's an automatic, not manipulated polygon at the selected
592*cdf0e10cSrcweir     // notxtnode, it has to be deleted, e.g. cause the object has changed.
593*cdf0e10cSrcweir     void ClearAutomaticContour();
594*cdf0e10cSrcweir 
595*cdf0e10cSrcweir 	/*
596*cdf0e10cSrcweir 	 * liefert die Groesse einer Graphic in Twips, wenn der Cursor
597*cdf0e10cSrcweir 	 * auf einer Graphic steht; sal_Bool liefert sal_False, wenn s.o.
598*cdf0e10cSrcweir 	 */
599*cdf0e10cSrcweir 	sal_Bool GetGrfSize(Size&) const;
600*cdf0e10cSrcweir 	/*
601*cdf0e10cSrcweir 	 * liefert den Namen und den Filter einer Graphic, wenn der Cursor
602*cdf0e10cSrcweir 	 * auf einer Graphic steht, sonst gibt's was auf die Finger!
603*cdf0e10cSrcweir 	 * Ist ein String-Ptr != 0 dann returne den entsp. Namen
604*cdf0e10cSrcweir 	 */
605*cdf0e10cSrcweir 	void GetGrfNms( String* pGrfName, String* pFltName,
606*cdf0e10cSrcweir 					const SwFlyFrmFmt* = 0 ) const;
607*cdf0e10cSrcweir 	/*
608*cdf0e10cSrcweir 	 * erneutes Einlesen, falls Graphic nicht Ok ist. Die
609*cdf0e10cSrcweir 	 * aktuelle wird durch die neue ersetzt.
610*cdf0e10cSrcweir 	 */
611*cdf0e10cSrcweir 	void ReRead( const String& rGrfName, const String& rFltName,
612*cdf0e10cSrcweir 				  const Graphic* pGraphic = 0,
613*cdf0e10cSrcweir 				  const GraphicObject* pGrafObj = 0 );
614*cdf0e10cSrcweir 
615*cdf0e10cSrcweir //    // alternativen Text einer Grafik/OLe-Objectes abfragen/setzen
616*cdf0e10cSrcweir //    const String& GetAlternateText() const;
617*cdf0e10cSrcweir //    void SetAlternateText( const String& rTxt );
618*cdf0e10cSrcweir 
619*cdf0e10cSrcweir 	//eindeutige Identifikation des Objektes (fuer ImageMapDlg)
620*cdf0e10cSrcweir 	void    *GetIMapInventor() const;
621*cdf0e10cSrcweir     // --> OD 2007-03-01 #i73788#
622*cdf0e10cSrcweir     // remove default parameter, because method always called this default value
623*cdf0e10cSrcweir     Graphic GetIMapGraphic() const; //liefert eine Graphic fuer alle Flys!
624*cdf0e10cSrcweir     // <--
625*cdf0e10cSrcweir 	const SwFlyFrmFmt* FindFlyByName( const String& rName, sal_uInt8 nNdTyp = 0 ) const;
626*cdf0e10cSrcweir 
627*cdf0e10cSrcweir 	//liefert ein ClientObject, wenn CurCrsr->Point() auf einen
628*cdf0e10cSrcweir 	//SwOLENode zeigt (und Mark nicht gesetzt ist oder auf das
629*cdf0e10cSrcweir 	//gleiche ClientObject zeigt), sonst gibt's was auf die
630*cdf0e10cSrcweir 	//Finger.
631*cdf0e10cSrcweir     svt::EmbeddedObjectRef&  GetOLEObject() const;
632*cdf0e10cSrcweir 	//Gibt es ein OleObject mit diesem Namen (SwFmt)?
633*cdf0e10cSrcweir 	sal_Bool HasOLEObj( const String &rName ) const;
634*cdf0e10cSrcweir 
635*cdf0e10cSrcweir 	//Liefert den Pointer auf die Daten des Chart, indem sich der Crsr
636*cdf0e10cSrcweir 	//befindet.
637*cdf0e10cSrcweir 	void SetChartName( const String &rName );
638*cdf0e10cSrcweir 
639*cdf0e10cSrcweir 	//Updaten der Inhalte aller Charts zu der Tabelle mit dem angegeben Namen
640*cdf0e10cSrcweir 	void UpdateCharts( const String &rName );
641*cdf0e10cSrcweir 
642*cdf0e10cSrcweir 	//	aktuelles Wort erfragen
643*cdf0e10cSrcweir 	String GetCurWord();
644*cdf0e10cSrcweir 
645*cdf0e10cSrcweir 	// Textbaustein aus dem Textbausteindokument in
646*cdf0e10cSrcweir 	// das aktuelle Dokument, Vorlagen nur wenn es nicht schon gibt
647*cdf0e10cSrcweir 	void InsertGlossary( SwTextBlocks& rGlossary, const String& );
648*cdf0e10cSrcweir 	// aktuelle Selektion zum Textbaustein machen und ins
649*cdf0e10cSrcweir 	// Textbausteindokument einfuegen, einschliesslich Vorlagen
650*cdf0e10cSrcweir 	sal_uInt16 MakeGlossary( SwTextBlocks& rToFill, const String& rName,
651*cdf0e10cSrcweir 						 const String& rShortName, sal_Bool bSaveRelFile = sal_False,
652*cdf0e10cSrcweir                          const String* pOnlyTxt=0 );
653*cdf0e10cSrcweir 	// speicher den gesamten Inhalt des Docs als Textbaustein
654*cdf0e10cSrcweir 	sal_uInt16 SaveGlossaryDoc( SwTextBlocks& rGlossary, const String& rName,
655*cdf0e10cSrcweir 							const String& rShortName,
656*cdf0e10cSrcweir 							sal_Bool bSaveRelFile = sal_False,
657*cdf0e10cSrcweir                             sal_Bool bOnlyTxt = sal_False );
658*cdf0e10cSrcweir 
659*cdf0e10cSrcweir 	// Linguistik
660*cdf0e10cSrcweir 	// Selektionen sichern
661*cdf0e10cSrcweir 	void HyphStart( SwDocPositions eStart, SwDocPositions eEnde );
662*cdf0e10cSrcweir 	// Selektionen wiederherstellen
663*cdf0e10cSrcweir 	void HyphEnd();
664*cdf0e10cSrcweir     com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>
665*cdf0e10cSrcweir 				HyphContinue( sal_uInt16* pPageCnt, sal_uInt16* pPageSt );
666*cdf0e10cSrcweir 	// zu trennendes Wort ignorieren
667*cdf0e10cSrcweir 	void HyphIgnore();
668*cdf0e10cSrcweir 
669*cdf0e10cSrcweir 	// zum Einfuegen des SoftHyphens, Position ist der Offset
670*cdf0e10cSrcweir 	// innerhalb des getrennten Wortes.
671*cdf0e10cSrcweir 	void InsertSoftHyph( const xub_StrLen nHyphPos );
672*cdf0e10cSrcweir 
673*cdf0e10cSrcweir 	//Tabelle
674*cdf0e10cSrcweir     const SwTable& InsertTable( const SwInsertTableOptions& rInsTblOpts,  // ALL_TBL_INS_ATTR
675*cdf0e10cSrcweir                                 sal_uInt16 nRows, sal_uInt16 nCols,
676*cdf0e10cSrcweir                                 sal_Int16 eAdj = com::sun::star::text::HoriOrientation::FULL,
677*cdf0e10cSrcweir                                 const SwTableAutoFmt* pTAFmt = 0 );
678*cdf0e10cSrcweir 
679*cdf0e10cSrcweir     void InsertDDETable( const SwInsertTableOptions& rInsTblOpts,  // HEADLINE_NO_BORDER
680*cdf0e10cSrcweir                          SwDDEFieldType* pDDEType,
681*cdf0e10cSrcweir                          sal_uInt16 nRows, sal_uInt16 nCols,
682*cdf0e10cSrcweir                          sal_Int16 eAdj = com::sun::star::text::HoriOrientation::FULL );
683*cdf0e10cSrcweir 
684*cdf0e10cSrcweir     void UpdateTable();
685*cdf0e10cSrcweir 	void SetTableName( SwFrmFmt& rTblFmt, const String &rNewName );
686*cdf0e10cSrcweir 
687*cdf0e10cSrcweir 	SwFrmFmt *GetTableFmt();
688*cdf0e10cSrcweir     sal_Bool TextToTable( const SwInsertTableOptions& rInsTblOpts,  //ALL_TBL_INS_ATTR
689*cdf0e10cSrcweir                       sal_Unicode cCh,
690*cdf0e10cSrcweir                       sal_Int16 eAdj = com::sun::star::text::HoriOrientation::FULL,
691*cdf0e10cSrcweir                       const SwTableAutoFmt* pTAFmt = 0 );
692*cdf0e10cSrcweir 	sal_Bool TableToText( sal_Unicode cCh );
693*cdf0e10cSrcweir 	sal_Bool IsTextToTableAvailable() const;
694*cdf0e10cSrcweir 
695*cdf0e10cSrcweir 	sal_Bool GetTblBoxFormulaAttrs( SfxItemSet& rSet ) const;
696*cdf0e10cSrcweir 	void SetTblBoxFormulaAttrs( const SfxItemSet& rSet );
697*cdf0e10cSrcweir 
698*cdf0e10cSrcweir 	sal_Bool IsTableBoxTextFormat() const;
699*cdf0e10cSrcweir 	String GetTableBoxText() const;
700*cdf0e10cSrcweir 
701*cdf0e10cSrcweir 	// Change Modus erfragen/setzen
702*cdf0e10cSrcweir     TblChgMode GetTblChgMode() const;
703*cdf0e10cSrcweir     void SetTblChgMode( TblChgMode eMode );
704*cdf0e10cSrcweir 
705*cdf0e10cSrcweir 	// Tabelle an der Cursor Position aufsplitten
706*cdf0e10cSrcweir 	sal_Bool SplitTable( sal_uInt16 eMode );
707*cdf0e10cSrcweir 	// Tabellen verbinden
708*cdf0e10cSrcweir 	// CanMerge kann feststellen, ob Prev oder Next moeglich ist. Wird
709*cdf0e10cSrcweir 	// der Pointer pChkNxtPrv uebergeben, wird festgestellt in welche
710*cdf0e10cSrcweir 	// Richtung es moeglich ist.
711*cdf0e10cSrcweir 	sal_Bool CanMergeTable( sal_Bool bWithPrev = sal_True, sal_Bool* pChkNxtPrv = 0 ) const;
712*cdf0e10cSrcweir 	sal_Bool MergeTable( sal_Bool bWithPrev = sal_True, sal_uInt16 nMode = 0 );
713*cdf0e10cSrcweir 		// setze das InsertDB als Tabelle Undo auf:
714*cdf0e10cSrcweir 	void AppendUndoForInsertFromDB( sal_Bool bIsTable );
715*cdf0e10cSrcweir 
716*cdf0e10cSrcweir     /*
717*cdf0e10cSrcweir         functions used for spell checking and text conversion
718*cdf0e10cSrcweir     */
719*cdf0e10cSrcweir 
720*cdf0e10cSrcweir 	// Selektionen sichern
721*cdf0e10cSrcweir 	void SpellStart( SwDocPositions eStart, SwDocPositions eEnde,
722*cdf0e10cSrcweir                      SwDocPositions eCurr, SwConversionArgs *pConvArgs = 0 );
723*cdf0e10cSrcweir     // Selektionen wiederherstellen
724*cdf0e10cSrcweir     void SpellEnd( SwConversionArgs *pConvArgs = 0, bool bRestoreSelection = true );
725*cdf0e10cSrcweir     ::com::sun::star::uno::Any SpellContinue(
726*cdf0e10cSrcweir                     sal_uInt16* pPageCnt, sal_uInt16* pPageSt,
727*cdf0e10cSrcweir                     SwConversionArgs *pConvArgs = 0 );
728*cdf0e10cSrcweir 
729*cdf0e10cSrcweir     // spells on a sentence basis - the SpellPortions are needed
730*cdf0e10cSrcweir     // returns false if no error could be found
731*cdf0e10cSrcweir     bool SpellSentence(::svx::SpellPortions& rToFill, bool bIsGrammarCheck );
732*cdf0e10cSrcweir     // make SpellIter start with the current sentence when called next time
733*cdf0e10cSrcweir     void PutSpellingToSentenceStart();
734*cdf0e10cSrcweir     // moves the continuation position to the end of the currently checked sentence
735*cdf0e10cSrcweir     void MoveContinuationPosToEndOfCheckedSentence();
736*cdf0e10cSrcweir     //applies a changed sentence
737*cdf0e10cSrcweir     void ApplyChangedSentence(const ::svx::SpellPortions& rNewPortions, bool bRecheck);
738*cdf0e10cSrcweir 
739*cdf0e10cSrcweir 
740*cdf0e10cSrcweir     // check SwSpellIter data to see if the last sentence got grammar checked
741*cdf0e10cSrcweir     bool HasLastSentenceGotGrammarChecked() const;
742*cdf0e10cSrcweir     // Is text conversion active somewhere else?
743*cdf0e10cSrcweir     sal_Bool HasConvIter() const;
744*cdf0e10cSrcweir 	// Is hyphenation active somewhere else?
745*cdf0e10cSrcweir 	sal_Bool HasHyphIter() const;
746*cdf0e10cSrcweir 
747*cdf0e10cSrcweir 	::com::sun::star::uno::Reference<
748*cdf0e10cSrcweir 		::com::sun::star::linguistic2::XSpellAlternatives >
749*cdf0e10cSrcweir             GetCorrection( const Point* pPt, SwRect& rSelectRect );
750*cdf0e10cSrcweir 
751*cdf0e10cSrcweir 
752*cdf0e10cSrcweir     bool GetGrammarCorrection( ::com::sun::star::linguistic2::ProofreadingResult /*out*/ &rResult,
753*cdf0e10cSrcweir             sal_Int32 /*out*/ &rErrorPosInText,
754*cdf0e10cSrcweir             sal_Int32 /*out*/ &rErrorIndexInResult,
755*cdf0e10cSrcweir             ::com::sun::star::uno::Sequence< rtl::OUString > /*out*/ &rSuggestions,
756*cdf0e10cSrcweir             const Point* pPt, SwRect& rSelectRect );
757*cdf0e10cSrcweir 
758*cdf0e10cSrcweir     void IgnoreGrammarErrorAt( SwPaM& rErrorPosition );
759*cdf0e10cSrcweir     void SetLinguRange( SwDocPositions eStart, SwDocPositions eEnde );
760*cdf0e10cSrcweir 
761*cdf0e10cSrcweir 	// returne zum Namen die im Doc gesetzte Referenz
762*cdf0e10cSrcweir 	const SwFmtRefMark* GetRefMark( const String& rName ) const;
763*cdf0e10cSrcweir 	// returne die Namen aller im Doc gesetzten Referenzen
764*cdf0e10cSrcweir 	// 	Ist der ArrayPointer 0 dann returne nur, ob im Doc. eine RefMark
765*cdf0e10cSrcweir 	//	gesetzt ist
766*cdf0e10cSrcweir 	sal_uInt16 GetRefMarks( SvStringsDtor* = 0 ) const;
767*cdf0e10cSrcweir 
768*cdf0e10cSrcweir 	// rufe die Autokorrektur auf
769*cdf0e10cSrcweir 	void AutoCorrect( SvxAutoCorrect& rACorr, sal_Bool bInsertMode = sal_True,
770*cdf0e10cSrcweir 						sal_Unicode cChar = ' ' );
771*cdf0e10cSrcweir 	sal_Bool GetPrevAutoCorrWord( SvxAutoCorrect& rACorr, String& rWord );
772*cdf0e10cSrcweir 
773*cdf0e10cSrcweir 	// dann setze nach entsprechenden Regeln unsere Vorlagen
774*cdf0e10cSrcweir 	void AutoFormat( const SvxSwAutoFmtFlags* pAFlags = 0 );
775*cdf0e10cSrcweir 
776*cdf0e10cSrcweir 	static SvxSwAutoFmtFlags* GetAutoFmtFlags();
777*cdf0e10cSrcweir 	static void SetAutoFmtFlags(SvxSwAutoFmtFlags *);
778*cdf0e10cSrcweir 
779*cdf0e10cSrcweir 	// errechnet die Selektion
780*cdf0e10cSrcweir 	String Calculate();
781*cdf0e10cSrcweir 
782*cdf0e10cSrcweir 	sal_Bool InsertURL( const SwFmtINetFmt& rFmt, const String& rStr,
783*cdf0e10cSrcweir 					sal_Bool bKeepSelection = sal_False );
784*cdf0e10cSrcweir 	sal_uInt16 GetINetAttrs( SwGetINetAttrs& rArr );
785*cdf0e10cSrcweir 
786*cdf0e10cSrcweir 	//SS Fuer holen/ersetzen DropCap-Inhalt
787*cdf0e10cSrcweir 	String GetDropTxt( const sal_uInt16 nChars ) const;
788*cdf0e10cSrcweir 	void   ReplaceDropTxt( const String &rStr );
789*cdf0e10cSrcweir 
790*cdf0e10cSrcweir     // may an outline be moved or copied?
791*cdf0e10cSrcweir     // Check whether it's in text body, not in table, and not read-only (move)
792*cdf0e10cSrcweir 	sal_Bool IsOutlineMovable( sal_uInt16 nIdx ) const;
793*cdf0e10cSrcweir 	sal_Bool IsOutlineCopyable( sal_uInt16 nIdx ) const;
794*cdf0e10cSrcweir 
795*cdf0e10cSrcweir 	sal_uInt16 GetLineCount( sal_Bool bActPos = sal_True );
796*cdf0e10cSrcweir 
797*cdf0e10cSrcweir 	// erfrage und setze den Fussnoten-Text/Nummer. Set.. auf akt. SSelection!
798*cdf0e10cSrcweir 	sal_Bool GetCurFtn( SwFmtFtn* pToFillFtn = 0 );
799*cdf0e10cSrcweir     bool SetCurFtn( const SwFmtFtn& rFillFtn );
800*cdf0e10cSrcweir     bool HasFtns( bool bEndNotes = false ) const;
801*cdf0e10cSrcweir //z.Zt nicht benoetigt	sal_uInt16 GetFtnCnt( sal_Bool bEndNotes = sal_False ) const;
802*cdf0e10cSrcweir 		// gebe Liste aller Fussnoten und deren Anfangstexte
803*cdf0e10cSrcweir     sal_uInt16 GetSeqFtnList( SwSeqFldList& rList, bool bEndNotes = false );
804*cdf0e10cSrcweir 
805*cdf0e10cSrcweir     SwSection const* InsertSection(
806*cdf0e10cSrcweir             SwSectionData & rNewData, SfxItemSet const*const = 0 );
807*cdf0e10cSrcweir 	sal_Bool IsInsRegionAvailable() const;
808*cdf0e10cSrcweir 	const SwSection* GetCurrSection() const;
809*cdf0e10cSrcweir 	// liefert wie GetCurrSection() den aktuellen Bereich, allerdings geht diese Funktion
810*cdf0e10cSrcweir 	// ueber die Frames und erwischt dabei auch den Bereich, wenn der Cursor in einer
811*cdf0e10cSrcweir 	// Fussnote steht, deren Referenz in einem spaltigen Bereich steckt.
812*cdf0e10cSrcweir 	// Wenn man bOutOfTab setzt, wird der Bereich gesucht,
813*cdf0e10cSrcweir 	// der die Tabelle umfasst, nicht etwa ein innerer.
814*cdf0e10cSrcweir     const SwSection* GetAnySection( sal_Bool bOutOfTab = sal_False, const Point* pPt = 0 ) const;
815*cdf0e10cSrcweir 
816*cdf0e10cSrcweir 	sal_uInt16 GetSectionFmtCount() const;
817*cdf0e10cSrcweir 	sal_uInt16 GetSectionFmtPos( const SwSectionFmt& ) const;
818*cdf0e10cSrcweir 	const SwSectionFmt& GetSectionFmt(sal_uInt16 nFmt) const;
819*cdf0e10cSrcweir 	void DelSectionFmt( sal_uInt16 nFmt );
820*cdf0e10cSrcweir     void UpdateSection(sal_uInt16 const nSect, SwSectionData &,
821*cdf0e10cSrcweir             SfxItemSet const*const  = 0);
822*cdf0e10cSrcweir 	sal_Bool IsAnySectionInDoc( sal_Bool bChkReadOnly = sal_False,
823*cdf0e10cSrcweir 							sal_Bool bChkHidden = sal_False,
824*cdf0e10cSrcweir 							sal_Bool BChkTOX = sal_False ) const;
825*cdf0e10cSrcweir 
826*cdf0e10cSrcweir 	String GetUniqueSectionName( const String* pChkStr = 0 ) const;
827*cdf0e10cSrcweir 
828*cdf0e10cSrcweir 	//Attribute setzen
829*cdf0e10cSrcweir 	void SetSectionAttr(const SfxItemSet& rSet, SwSectionFmt* pSectFmt = 0);
830*cdf0e10cSrcweir 
831*cdf0e10cSrcweir 	// search inside the cursor selection for full selected sections.
832*cdf0e10cSrcweir 	// if any part of section in the selection return 0.
833*cdf0e10cSrcweir 	// if more than one in the selection return the count
834*cdf0e10cSrcweir 	sal_uInt16 GetFullSelectedSectionCount() const;
835*cdf0e10cSrcweir 
836*cdf0e10cSrcweir     // special insert: Insert a new text node just before or after a section or
837*cdf0e10cSrcweir     // table, if the cursor is positioned at the start/end of said
838*cdf0e10cSrcweir     // section/table. The purpose of the method is to allow users to inert text
839*cdf0e10cSrcweir     // at certain 'impossible' position, e.g. before a table at the document
840*cdf0e10cSrcweir     // start or between to sections.
841*cdf0e10cSrcweir 	bool DoSpecialInsert();
842*cdf0e10cSrcweir 	bool CanSpecialInsert() const;
843*cdf0e10cSrcweir 
844*cdf0e10cSrcweir 	// Optimierung UI
845*cdf0e10cSrcweir 	void SetNewDoc(sal_Bool bNew = sal_True);
846*cdf0e10cSrcweir 
847*cdf0e10cSrcweir     sfx2::LinkManager& GetLinkManager();
848*cdf0e10cSrcweir 	inline const sfx2::LinkManager& GetLinkManager() const;
849*cdf0e10cSrcweir 
850*cdf0e10cSrcweir 	// linken Rand ueber Objectleiste einstellen (aenhlich dem Stufen von
851*cdf0e10cSrcweir 	// Numerierungen), optional kann man "um" den Offset stufen oder "auf"
852*cdf0e10cSrcweir 	// die Position gestuft werden (bModulus = sal_True)
853*cdf0e10cSrcweir 	sal_Bool IsMoveLeftMargin( sal_Bool bRight = sal_True, sal_Bool bModulus = sal_True ) const;
854*cdf0e10cSrcweir 	void MoveLeftMargin( sal_Bool bRight = sal_True, sal_Bool bModulus = sal_True );
855*cdf0e10cSrcweir 
856*cdf0e10cSrcweir 	// Numberformatter vom Doc erfragen
857*cdf0e10cSrcweir 		  SvNumberFormatter* GetNumberFormatter();
858*cdf0e10cSrcweir 	const SvNumberFormatter* GetNumberFormatter() const
859*cdf0e10cSrcweir 	{	return ((SwEditShell*)this)->GetNumberFormatter(); 	}
860*cdf0e10cSrcweir 
861*cdf0e10cSrcweir 	// Schnitstellen fuers GlobalDokument
862*cdf0e10cSrcweir 	sal_Bool IsGlobalDoc() const;
863*cdf0e10cSrcweir 	void SetGlblDocSaveLinks( sal_Bool bFlag = sal_True );
864*cdf0e10cSrcweir 	sal_Bool IsGlblDocSaveLinks() const;
865*cdf0e10cSrcweir 	sal_uInt16 GetGlobalDocContent( SwGlblDocContents& rArr ) const;
866*cdf0e10cSrcweir 	sal_Bool InsertGlobalDocContent( const SwGlblDocContent& rPos,
867*cdf0e10cSrcweir                                  SwSectionData & rNew );
868*cdf0e10cSrcweir 	sal_Bool InsertGlobalDocContent( const SwGlblDocContent& rPos,
869*cdf0e10cSrcweir 								 const SwTOXBase& rTOX );
870*cdf0e10cSrcweir 	sal_Bool InsertGlobalDocContent( const SwGlblDocContent& rPos );
871*cdf0e10cSrcweir 	sal_Bool DeleteGlobalDocContent( const SwGlblDocContents& rArr,
872*cdf0e10cSrcweir 								sal_uInt16 nPos );
873*cdf0e10cSrcweir 	sal_Bool MoveGlobalDocContent( const SwGlblDocContents& rArr ,
874*cdf0e10cSrcweir 								sal_uInt16 nFromPos, sal_uInt16 nToPos,
875*cdf0e10cSrcweir 								sal_uInt16 nNewPos );
876*cdf0e10cSrcweir 	sal_Bool GotoGlobalDocContent( const SwGlblDocContent& rPos );
877*cdf0e10cSrcweir 
878*cdf0e10cSrcweir 	// alles fuers Redlining
879*cdf0e10cSrcweir 	sal_uInt16 GetRedlineMode() const;
880*cdf0e10cSrcweir 	void SetRedlineMode( sal_uInt16 eMode );
881*cdf0e10cSrcweir 	sal_Bool IsRedlineOn() const;
882*cdf0e10cSrcweir 	sal_uInt16 GetRedlineCount() const;
883*cdf0e10cSrcweir 	const SwRedline& GetRedline( sal_uInt16 nPos ) const;
884*cdf0e10cSrcweir 	sal_Bool AcceptRedline( sal_uInt16 nPos );
885*cdf0e10cSrcweir 	sal_Bool RejectRedline( sal_uInt16 nPos );
886*cdf0e10cSrcweir 	// suche das Redline zu diesem Data und returne die Pos im Array
887*cdf0e10cSrcweir 	// USHRT_MAX wird returnt, falls nicht vorhanden
888*cdf0e10cSrcweir 	sal_uInt16 FindRedlineOfData( const SwRedlineData& ) const;
889*cdf0e10cSrcweir 
890*cdf0e10cSrcweir 	// Kommentar am Redline an der Position setzen
891*cdf0e10cSrcweir 	sal_Bool SetRedlineComment( const String& rS );
892*cdf0e10cSrcweir 	const SwRedline* GetCurrRedline() const;
893*cdf0e10cSrcweir 
894*cdf0e10cSrcweir 	// Redline Anzeigeattribute wurden geaendert, Views updaten
895*cdf0e10cSrcweir 	void UpdateRedlineAttr();
896*cdf0e10cSrcweir 
897*cdf0e10cSrcweir 	//  vergleiche zwei Dokument mit einander
898*cdf0e10cSrcweir 	long CompareDoc( const SwDoc& rDoc );
899*cdf0e10cSrcweir 	// merge zweier Dokumente
900*cdf0e10cSrcweir 	long MergeDoc( const SwDoc& rDoc );
901*cdf0e10cSrcweir 
902*cdf0e10cSrcweir 	// Dokumentglobale Fussnoteneigenschaften
903*cdf0e10cSrcweir 	const SwFtnInfo& GetFtnInfo() const;
904*cdf0e10cSrcweir 	void  SetFtnInfo(const SwFtnInfo& rInfo);
905*cdf0e10cSrcweir 	const SwEndNoteInfo& GetEndNoteInfo() const;
906*cdf0e10cSrcweir 	void  SetEndNoteInfo(const SwEndNoteInfo& rInfo);
907*cdf0e10cSrcweir 
908*cdf0e10cSrcweir 	//Einstellungen fuer Zeilennummierung
909*cdf0e10cSrcweir 	const SwLineNumberInfo &GetLineNumberInfo() const;
910*cdf0e10cSrcweir 	void  SetLineNumberInfo( const SwLineNumberInfo& rInfo);
911*cdf0e10cSrcweir 
912*cdf0e10cSrcweir 	// Etiketten: Bereiche synchronisieren
913*cdf0e10cSrcweir 	void SetLabelDoc( sal_Bool bFlag = sal_True );
914*cdf0e10cSrcweir 	sal_Bool IsLabelDoc() const;
915*cdf0e10cSrcweir 
916*cdf0e10cSrcweir 	// Schnittstelle fuer die TextInputDaten - ( fuer die Texteingabe
917*cdf0e10cSrcweir 	// von japanischen/chinesischen Zeichen)
918*cdf0e10cSrcweir     SwExtTextInput* CreateExtTextInput(LanguageType eInputLanguage);
919*cdf0e10cSrcweir     String DeleteExtTextInput( SwExtTextInput* pDel = 0, sal_Bool bInsText = sal_True);
920*cdf0e10cSrcweir //	SwExtTextInput* GetExtTextInput() const;
921*cdf0e10cSrcweir 	void SetExtTextInputData( const CommandExtTextInputData& );
922*cdf0e10cSrcweir 
923*cdf0e10cSrcweir 	// Schnistelle fuer den Zugriff auf die AutoComplete-Liste
924*cdf0e10cSrcweir 	static SwAutoCompleteWord& GetAutoCompleteWords();
925*cdf0e10cSrcweir 
926*cdf0e10cSrcweir 	// returns a scaling factor of selected text. Used for the rotated
927*cdf0e10cSrcweir 	// character attribut dialog.
928*cdf0e10cSrcweir 	sal_uInt16 GetScalingOfSelectedText() const;
929*cdf0e10cSrcweir 
930*cdf0e10cSrcweir 	// ctor/dtor
931*cdf0e10cSrcweir     SwEditShell( SwDoc&, Window*, const SwViewOption *pOpt = 0 );
932*cdf0e10cSrcweir 	// verkleideter Copy-Constructor
933*cdf0e10cSrcweir 	SwEditShell( SwEditShell&, Window* );
934*cdf0e10cSrcweir 	virtual ~SwEditShell();
935*cdf0e10cSrcweir 
936*cdf0e10cSrcweir private:
937*cdf0e10cSrcweir 	// fuer METWARE:
938*cdf0e10cSrcweir 	// es wird nicht kopiert und nicht zugewiesen
939*cdf0e10cSrcweir 	SwEditShell(const SwEditShell &);
940*cdf0e10cSrcweir 	const SwEditShell &operator=(const SwEditShell &);
941*cdf0e10cSrcweir };
942*cdf0e10cSrcweir 
943*cdf0e10cSrcweir inline const sfx2::LinkManager& SwEditShell::GetLinkManager() const
944*cdf0e10cSrcweir {	return ((SwEditShell*)this)->GetLinkManager();	}
945*cdf0e10cSrcweir 
946*cdf0e10cSrcweir /*
947*cdf0e10cSrcweir  * Klasse fuer den automatisierten Aufruf von Start- und
948*cdf0e10cSrcweir  * EndAction();
949*cdf0e10cSrcweir  */
950*cdf0e10cSrcweir class SwActKontext {
951*cdf0e10cSrcweir 	SwEditShell *pSh;
952*cdf0e10cSrcweir public:
953*cdf0e10cSrcweir 	SwActKontext(SwEditShell *pShell);
954*cdf0e10cSrcweir 	~SwActKontext();
955*cdf0e10cSrcweir };
956*cdf0e10cSrcweir 
957*cdf0e10cSrcweir #define ACT_KONTEXT(x)	SwActKontext _aActKontext_(x)
958*cdf0e10cSrcweir 
959*cdf0e10cSrcweir /*
960*cdf0e10cSrcweir  * Klasse fuer den automatisierten Aufruf von Start- und
961*cdf0e10cSrcweir  * EndCrsrMove();
962*cdf0e10cSrcweir  */
963*cdf0e10cSrcweir class SwMvKontext {
964*cdf0e10cSrcweir 	SwEditShell *pSh;
965*cdf0e10cSrcweir public:
966*cdf0e10cSrcweir 	SwMvKontext(SwEditShell *pShell );
967*cdf0e10cSrcweir 	~SwMvKontext();
968*cdf0e10cSrcweir };
969*cdf0e10cSrcweir 
970*cdf0e10cSrcweir #define MV_KONTEXT(x)	SwMvKontext _aMvKontext_(x)
971*cdf0e10cSrcweir 
972*cdf0e10cSrcweir 
973*cdf0e10cSrcweir 
974*cdf0e10cSrcweir #endif
975