1*1d2dbeb0SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*1d2dbeb0SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*1d2dbeb0SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*1d2dbeb0SAndrew Rist * distributed with this work for additional information 6*1d2dbeb0SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*1d2dbeb0SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*1d2dbeb0SAndrew Rist * "License"); you may not use this file except in compliance 9*1d2dbeb0SAndrew Rist * with the License. You may obtain a copy of the License at 10*1d2dbeb0SAndrew Rist * 11*1d2dbeb0SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*1d2dbeb0SAndrew Rist * 13*1d2dbeb0SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*1d2dbeb0SAndrew Rist * software distributed under the License is distributed on an 15*1d2dbeb0SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*1d2dbeb0SAndrew Rist * KIND, either express or implied. See the License for the 17*1d2dbeb0SAndrew Rist * specific language governing permissions and limitations 18*1d2dbeb0SAndrew Rist * under the License. 19*1d2dbeb0SAndrew Rist * 20*1d2dbeb0SAndrew Rist *************************************************************/ 21*1d2dbeb0SAndrew Rist 22*1d2dbeb0SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SW_NDARR_HXX 25cdf0e10cSrcweir #define SW_NDARR_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vector> 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <boost/utility.hpp> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp> 32cdf0e10cSrcweir 33cdf0e10cSrcweir #include <svl/svarray.hxx> 34cdf0e10cSrcweir #include <svtools/embedhlp.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir #include <bparr.hxx> 37cdf0e10cSrcweir #include <ndtyp.hxx> 38cdf0e10cSrcweir 39cdf0e10cSrcweir 40cdf0e10cSrcweir class Graphic; 41cdf0e10cSrcweir class GraphicObject; 42cdf0e10cSrcweir class String; 43cdf0e10cSrcweir class SwAttrSet; 44cdf0e10cSrcweir class SfxItemSet; 45cdf0e10cSrcweir class SwCntntNode; 46cdf0e10cSrcweir class SwDoc; 47cdf0e10cSrcweir class SwGrfFmtColl; 48cdf0e10cSrcweir class SwGrfNode; 49cdf0e10cSrcweir class SwHistory; 50cdf0e10cSrcweir class SwNode; 51cdf0e10cSrcweir class SwNodeIndex; 52cdf0e10cSrcweir class SwNodeRange; 53cdf0e10cSrcweir class SwOLENode; 54cdf0e10cSrcweir class SwOutlineNodes; 55cdf0e10cSrcweir class SwPaM; 56cdf0e10cSrcweir class SwSectionData; 57cdf0e10cSrcweir class SwSectionFmt; 58cdf0e10cSrcweir class SwTOXBase; 59cdf0e10cSrcweir class SwSectionNode; 60cdf0e10cSrcweir class SwStartNode; 61cdf0e10cSrcweir class SwTableBoxFmt; 62cdf0e10cSrcweir class SwTableFmt; 63cdf0e10cSrcweir class SwTableLine; 64cdf0e10cSrcweir class SwTableLineFmt; 65cdf0e10cSrcweir class SwTableNode; 66cdf0e10cSrcweir class SwTblToTxtSaves; 67cdf0e10cSrcweir class SwTxtFmtColl; 68cdf0e10cSrcweir class SwTxtNode; 69cdf0e10cSrcweir class SwUndoTblToTxt; 70cdf0e10cSrcweir class SwUndoTxtToTbl; 71cdf0e10cSrcweir struct SwPosition; 72cdf0e10cSrcweir 73cdf0e10cSrcweir 74cdf0e10cSrcweir // -------------------- 75cdf0e10cSrcweir // class SwNodes 76cdf0e10cSrcweir // -------------------- 77cdf0e10cSrcweir 78cdf0e10cSrcweir typedef SwNode * SwNodePtr; 79cdf0e10cSrcweir typedef sal_Bool (*FnForEach_SwNodes)( const SwNodePtr&, void* pArgs ); 80cdf0e10cSrcweir 81cdf0e10cSrcweir SV_DECL_PTRARR_SORT( SwOutlineNodes, SwNodePtr, 0, 10 ) 82cdf0e10cSrcweir 83cdf0e10cSrcweir class SW_DLLPUBLIC SwNodes 84cdf0e10cSrcweir : private BigPtrArray 85cdf0e10cSrcweir , private ::boost::noncopyable 86cdf0e10cSrcweir { 87cdf0e10cSrcweir friend class SwDoc; 88cdf0e10cSrcweir friend class SwNode; 89cdf0e10cSrcweir friend class SwNodeIndex; 90cdf0e10cSrcweir 91cdf0e10cSrcweir SwNodeIndex* pRoot; // Liste aller Indizies auf Nodes 92cdf0e10cSrcweir 93cdf0e10cSrcweir // --> OD 2008-05-14 #refactorlists# - removed <bSyncNumberAndNumRule> 94cdf0e10cSrcweir void InsertNode( const SwNodePtr pNode, 95cdf0e10cSrcweir const SwNodeIndex& rPos ); 96cdf0e10cSrcweir void InsertNode( const SwNodePtr pNode, 97cdf0e10cSrcweir sal_uLong nPos ); 98cdf0e10cSrcweir // <-- 99cdf0e10cSrcweir 100cdf0e10cSrcweir 101cdf0e10cSrcweir SwDoc* pMyDoc; // in diesem Doc ist das Nodes-Array 102cdf0e10cSrcweir 103cdf0e10cSrcweir SwNode *pEndOfPostIts, *pEndOfInserts, // das sind die festen Bereiche 104cdf0e10cSrcweir *pEndOfAutotext, *pEndOfRedlines, 105cdf0e10cSrcweir *pEndOfContent; 106cdf0e10cSrcweir 107cdf0e10cSrcweir mutable SwOutlineNodes* pOutlineNds; // Array aller GliederiungsNodes 108cdf0e10cSrcweir 109cdf0e10cSrcweir sal_Bool bInNodesDel : 1; // falls rekursiv aufgerufen wird 110cdf0e10cSrcweir // Num/Outline nicht aktualisierem 111cdf0e10cSrcweir sal_Bool bInDelUpdOutl : 1; // Flags fuers aktualisieren von Outl. 112cdf0e10cSrcweir sal_Bool bInDelUpdNum : 1; // Flags fuers aktualisieren von Outl. 113cdf0e10cSrcweir 114cdf0e10cSrcweir // fuer dier Verwaltung der Indizies 115cdf0e10cSrcweir void RegisterIndex( SwNodeIndex& rIdx ); 116cdf0e10cSrcweir void DeRegisterIndex( SwNodeIndex& rIdx ); 117cdf0e10cSrcweir void RemoveNode( sal_uLong nDelPos, sal_uLong nLen, sal_Bool bDel ); 118cdf0e10cSrcweir 119cdf0e10cSrcweir // Aktionen auf die Nodes 120cdf0e10cSrcweir void SectionUpDown( const SwNodeIndex & aStart, const SwNodeIndex & aEnd ); 121cdf0e10cSrcweir void DelNodes( const SwNodeIndex& rStart, sal_uLong nCnt = 1 ); 122cdf0e10cSrcweir 123cdf0e10cSrcweir void ChgNode( SwNodeIndex& rDelPos, sal_uLong nSize, 124cdf0e10cSrcweir SwNodeIndex& rInsPos, sal_Bool bNewFrms ); 125cdf0e10cSrcweir 126cdf0e10cSrcweir void UpdtOutlineIdx( const SwNode& ); // Update ab Node alle OutlineNodes 127cdf0e10cSrcweir 128cdf0e10cSrcweir void _CopyNodes( const SwNodeRange&, const SwNodeIndex&, 129cdf0e10cSrcweir sal_Bool bNewFrms = sal_True, sal_Bool bTblInsDummyNode = sal_False ) const; 130cdf0e10cSrcweir void _DelDummyNodes( const SwNodeRange& rRg ); 131cdf0e10cSrcweir 132cdf0e10cSrcweir protected: 133cdf0e10cSrcweir SwNodes( SwDoc* pDoc ); 134cdf0e10cSrcweir 135cdf0e10cSrcweir public: 136cdf0e10cSrcweir ~SwNodes(); 137cdf0e10cSrcweir 138cdf0e10cSrcweir typedef ::std::vector<SwNodeRange> NodeRanges_t; 139cdf0e10cSrcweir typedef ::std::vector<NodeRanges_t> TableRanges_t; 140cdf0e10cSrcweir operator [](sal_uLong n) const141cdf0e10cSrcweir SwNodePtr operator[]( sal_uLong n ) const 142cdf0e10cSrcweir { return (SwNodePtr)BigPtrArray::operator[] ( n ); } 143cdf0e10cSrcweir Count() const144cdf0e10cSrcweir sal_uLong Count() const { return BigPtrArray::Count(); } ForEach(FnForEach_SwNodes fnForEach,void * pArgs=0)145cdf0e10cSrcweir void ForEach( FnForEach_SwNodes fnForEach, void* pArgs = 0 ) 146cdf0e10cSrcweir { 147cdf0e10cSrcweir BigPtrArray::ForEach( 0, BigPtrArray::Count(), 148cdf0e10cSrcweir (FnForEach) fnForEach, pArgs ); 149cdf0e10cSrcweir } ForEach(sal_uLong nStt,sal_uLong nEnd,FnForEach_SwNodes fnForEach,void * pArgs=0)150cdf0e10cSrcweir void ForEach( sal_uLong nStt, sal_uLong nEnd, FnForEach_SwNodes fnForEach, void* pArgs = 0 ) 151cdf0e10cSrcweir { 152cdf0e10cSrcweir BigPtrArray::ForEach( nStt, nEnd, (FnForEach) fnForEach, pArgs ); 153cdf0e10cSrcweir } 154cdf0e10cSrcweir void ForEach( const SwNodeIndex& rStart, const SwNodeIndex& rEnd, 155cdf0e10cSrcweir FnForEach_SwNodes fnForEach, void* pArgs = 0 ); 156cdf0e10cSrcweir 157cdf0e10cSrcweir // eine noch leere Section GetEndOfPostIts() const158cdf0e10cSrcweir SwNode& GetEndOfPostIts() const { return *pEndOfPostIts; } 159cdf0e10cSrcweir // Section fuer alle Fussnoten GetEndOfInserts() const160cdf0e10cSrcweir SwNode& GetEndOfInserts() const { return *pEndOfInserts; } 161cdf0e10cSrcweir // Section fuer alle Flys/Header/Footers GetEndOfAutotext() const162cdf0e10cSrcweir SwNode& GetEndOfAutotext() const { return *pEndOfAutotext; } 163cdf0e10cSrcweir // Section fuer alle Redlines GetEndOfRedlines() const164cdf0e10cSrcweir SwNode& GetEndOfRedlines() const { return *pEndOfRedlines; } 165cdf0e10cSrcweir // das ist der letzte EndNode einer SonderSection. Hier nach kommt nur 166cdf0e10cSrcweir // noch die normale ContentSection (also der BodyText) GetEndOfExtras() const167cdf0e10cSrcweir SwNode& GetEndOfExtras() const { return *pEndOfRedlines; } 168cdf0e10cSrcweir // die normale ContentSection (also der BodyText) GetEndOfContent() const169cdf0e10cSrcweir SwNode& GetEndOfContent() const { return *pEndOfContent; } 170cdf0e10cSrcweir 171cdf0e10cSrcweir // ist das NodesArray das normale vom Doc? (nicht das UndoNds, .. ) 172cdf0e10cSrcweir // Implementierung steht im doc.hxx (weil man dazu Doc kennen muss) ! 173cdf0e10cSrcweir sal_Bool IsDocNodes() const; 174cdf0e10cSrcweir 175cdf0e10cSrcweir sal_uInt16 GetSectionLevel(const SwNodeIndex &rIndex) const; 176cdf0e10cSrcweir void Delete(const SwNodeIndex &rPos, sal_uLong nNodes = 1); 177cdf0e10cSrcweir 178cdf0e10cSrcweir sal_Bool _MoveNodes( const SwNodeRange&, SwNodes& rNodes, const SwNodeIndex&, 179cdf0e10cSrcweir sal_Bool bNewFrms = sal_True ); 180cdf0e10cSrcweir void MoveRange( SwPaM&, SwPosition&, SwNodes& rNodes ); 181cdf0e10cSrcweir _Copy(const SwNodeRange & rRg,const SwNodeIndex & rInsPos,sal_Bool bNewFrms=sal_True) const182cdf0e10cSrcweir void _Copy( const SwNodeRange& rRg, const SwNodeIndex& rInsPos, 183cdf0e10cSrcweir sal_Bool bNewFrms = sal_True ) const 184cdf0e10cSrcweir { _CopyNodes( rRg, rInsPos, bNewFrms ); } 185cdf0e10cSrcweir 186cdf0e10cSrcweir void SectionUp( SwNodeRange *); 187cdf0e10cSrcweir void SectionDown( SwNodeRange *pRange, SwStartNodeType = SwNormalStartNode ); 188cdf0e10cSrcweir 189cdf0e10cSrcweir sal_Bool CheckNodesRange( const SwNodeIndex& rStt, const SwNodeIndex& rEnd ) const; 190cdf0e10cSrcweir 191cdf0e10cSrcweir void GoStartOfSection(SwNodeIndex *) const; 192cdf0e10cSrcweir void GoEndOfSection(SwNodeIndex *) const; 193cdf0e10cSrcweir 194cdf0e10cSrcweir SwCntntNode* GoNext(SwNodeIndex *) const; 195cdf0e10cSrcweir SwCntntNode* GoPrevious(SwNodeIndex *) const; 196cdf0e10cSrcweir 197cdf0e10cSrcweir //Gehe zum naechsten/vorherigen Cntnt/Tabellennode, fuer den 198cdf0e10cSrcweir //es LayoutFrames gibt, dabei Kopf-/Fusszeilen/Rahmen etc. nicht verlassen 199cdf0e10cSrcweir SwNode* GoNextWithFrm(SwNodeIndex *) const; 200cdf0e10cSrcweir SwNode* GoPreviousWithFrm(SwNodeIndex *) const; 201cdf0e10cSrcweir 202cdf0e10cSrcweir // zum naechsten Content-Node, der nicht geschuetzt oder versteckt ist 203cdf0e10cSrcweir // (beides auf sal_False ==> GoNext/GoPrevious!!!) 204cdf0e10cSrcweir SwCntntNode* GoNextSection( SwNodeIndex *, int bSkipHidden = sal_True, 205cdf0e10cSrcweir int bSkipProtect = sal_True ) const; 206cdf0e10cSrcweir SwCntntNode* GoPrevSection( SwNodeIndex *, int bSkipHidden = sal_True, 207cdf0e10cSrcweir int bSkipProtect = sal_True ) const; 208cdf0e10cSrcweir 209cdf0e10cSrcweir // erzeuge ein leere Section von Start und EndNode. Darf nur gerufen 210cdf0e10cSrcweir // werden, wenn eine neue Section mit Inhalt erzeugt werden soll. 211cdf0e10cSrcweir // Zum Beispiel bei den Filtern/Undo/... 212cdf0e10cSrcweir SwStartNode* MakeEmptySection( const SwNodeIndex& rIdx, 213cdf0e10cSrcweir SwStartNodeType = SwNormalStartNode ); 214cdf0e10cSrcweir 215cdf0e10cSrcweir // die Impl. von "Make...Node" stehen in den angegebenen .ccx-Files 216cdf0e10cSrcweir SwTxtNode *MakeTxtNode( const SwNodeIndex & rWhere, 217cdf0e10cSrcweir SwTxtFmtColl *pColl, 218cdf0e10cSrcweir SwAttrSet* pAutoAttr = 0 ); // in ndtxt.cxx 219cdf0e10cSrcweir SwStartNode* MakeTextSection( const SwNodeIndex & rWhere, 220cdf0e10cSrcweir SwStartNodeType eSttNdTyp, 221cdf0e10cSrcweir SwTxtFmtColl *pColl, 222cdf0e10cSrcweir SwAttrSet* pAutoAttr = 0 ); 223cdf0e10cSrcweir 224cdf0e10cSrcweir SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere, 225cdf0e10cSrcweir const String& rGrfName, 226cdf0e10cSrcweir const String& rFltName, 227cdf0e10cSrcweir const Graphic* pGraphic, 228cdf0e10cSrcweir SwGrfFmtColl *pColl, 229cdf0e10cSrcweir SwAttrSet* pAutoAttr = 0, 230cdf0e10cSrcweir sal_Bool bDelayed = sal_False ); // in ndgrf.cxx 231cdf0e10cSrcweir 232cdf0e10cSrcweir SwGrfNode *MakeGrfNode( const SwNodeIndex & rWhere, 233cdf0e10cSrcweir const GraphicObject& rGrfObj, 234cdf0e10cSrcweir SwGrfFmtColl *pColl, 235cdf0e10cSrcweir SwAttrSet* pAutoAttr = 0 ); // in ndgrf.cxx 236cdf0e10cSrcweir 237cdf0e10cSrcweir SwOLENode *MakeOLENode( const SwNodeIndex & rWhere, 238cdf0e10cSrcweir const svt::EmbeddedObjectRef&, 239cdf0e10cSrcweir SwGrfFmtColl *pColl, 240cdf0e10cSrcweir SwAttrSet* pAutoAttr = 0 ); // in ndole.cxx 241cdf0e10cSrcweir SwOLENode *MakeOLENode( const SwNodeIndex & rWhere, 242cdf0e10cSrcweir const String &rName, 243cdf0e10cSrcweir sal_Int64 nAspect, 244cdf0e10cSrcweir SwGrfFmtColl *pColl, 245cdf0e10cSrcweir SwAttrSet* pAutoAttr ); // in ndole.cxx 246cdf0e10cSrcweir 247cdf0e10cSrcweir // Array aller GliederiungsNodes; 248cdf0e10cSrcweir const SwOutlineNodes& GetOutLineNds() const; 249cdf0e10cSrcweir 250cdf0e10cSrcweir //void UpdateOutlineNode( const SwNode&, sal_uInt8 nOldLevel, sal_uInt8 nNewLevel );//#outline level,removed by zhaojianwei 251cdf0e10cSrcweir // alle Nodes Updaten - Rule/Format-Aenderung 252cdf0e10cSrcweir void UpdateOutlineNode(SwNode & rNd); 253cdf0e10cSrcweir 254cdf0e10cSrcweir // fuege die Nodes fuer die Tabelle ein 255cdf0e10cSrcweir // wenn Lines angegeben, erzeuge die Matrix aus Lines & Boxen 256cdf0e10cSrcweir // ansonsten nur die Anzahl von Boxen. 257cdf0e10cSrcweir /* #109161# 258cdf0e10cSrcweir 259cdf0e10cSrcweir New parameter pAttrSet: If pAttrSet is non-null and contains an 260cdf0e10cSrcweir adjust item it is propagated to the table cells. If there is an 261cdf0e10cSrcweir adjust in pCntntTxtColl or pHeadlineTxtColl this adjust item 262cdf0e10cSrcweir overrides the item in pAttrSet. 263cdf0e10cSrcweir 264cdf0e10cSrcweir */ 265cdf0e10cSrcweir SwTableNode* InsertTable( const SwNodeIndex& rNdIdx, 266cdf0e10cSrcweir sal_uInt16 nBoxes, SwTxtFmtColl* pCntntTxtColl, 267cdf0e10cSrcweir sal_uInt16 nLines = 0, sal_uInt16 nRepeat = 0, 268cdf0e10cSrcweir SwTxtFmtColl* pHeadlineTxtColl = 0, 269cdf0e10cSrcweir const SwAttrSet * pAttrSet = 0); 270cdf0e10cSrcweir 271cdf0e10cSrcweir // erzeuge aus dem makierten Bereich eine ausgeglichene Tabelle 272cdf0e10cSrcweir SwTableNode* TextToTable( const SwNodeRange& rRange, sal_Unicode cCh, 273cdf0e10cSrcweir SwTableFmt* pTblFmt, 274cdf0e10cSrcweir SwTableLineFmt* pLineFmt, 275cdf0e10cSrcweir SwTableBoxFmt* pBoxFmt, 276cdf0e10cSrcweir SwTxtFmtColl* pTxtColl, 277cdf0e10cSrcweir SwUndoTxtToTbl* pUndo = 0 ); 278cdf0e10cSrcweir 279cdf0e10cSrcweir SwNodeRange * ExpandRangeForTableBox(const SwNodeRange & rRange); 280cdf0e10cSrcweir 281cdf0e10cSrcweir //create a table from a vector of NodeRanges - API support 282cdf0e10cSrcweir SwTableNode* TextToTable( const TableRanges_t& rTableNodes, 283cdf0e10cSrcweir SwTableFmt* pTblFmt, 284cdf0e10cSrcweir SwTableLineFmt* pLineFmt, 285cdf0e10cSrcweir SwTableBoxFmt* pBoxFmt, 286cdf0e10cSrcweir SwTxtFmtColl* pTxtColl 287cdf0e10cSrcweir /*, SwUndo... pUndo*/ ); 288cdf0e10cSrcweir 289cdf0e10cSrcweir // erzeuge aus der Tabelle wieder normalen Text 290cdf0e10cSrcweir sal_Bool TableToText( const SwNodeRange& rRange, sal_Unicode cCh, 291cdf0e10cSrcweir SwUndoTblToTxt* = 0 ); 292cdf0e10cSrcweir // steht im untbl.cxx und darf nur vom Undoobject gerufen werden 293cdf0e10cSrcweir SwTableNode* UndoTableToText( sal_uLong nStt, sal_uLong nEnd, 294cdf0e10cSrcweir const SwTblToTxtSaves& rSavedData ); 295cdf0e10cSrcweir 296cdf0e10cSrcweir // fuege in der Line, vor der InsPos eine neue Box ein. Das Format 297cdf0e10cSrcweir // wird von der nachfolgenden (vorhergenden;wenn an Ende) genommen 298cdf0e10cSrcweir // in der Line muss schon eine Box vorhanden sein ! 299cdf0e10cSrcweir sal_Bool InsBoxen( SwTableNode*, SwTableLine*, SwTableBoxFmt*, 300cdf0e10cSrcweir // Formate fuer den TextNode der Box 301cdf0e10cSrcweir SwTxtFmtColl*, const SfxItemSet* pAutoAttr, 302cdf0e10cSrcweir sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 ); 303cdf0e10cSrcweir // Splittet eine Tabelle in der Grund-Zeile, in der der Index steht. 304cdf0e10cSrcweir // Alle GrundZeilen dahinter wandern in eine neue Tabelle/-Node. 305cdf0e10cSrcweir // Ist das Flag bCalcNewSize auf sal_True, wird fuer beide neuen Tabellen 306cdf0e10cSrcweir // die neue SSize aus dem Max der Boxen errechnet; vorrausgesetzt, 307cdf0e10cSrcweir // die SSize ist "absolut" gesetzt (LONG_MAX) 308cdf0e10cSrcweir // (Wird zur Zeit nur fuer den RTF-Parser benoetigt) 309cdf0e10cSrcweir SwTableNode* SplitTable( const SwNodeIndex& rPos, sal_Bool bAfter = sal_True, 310cdf0e10cSrcweir sal_Bool bCalcNewSize = sal_False ); 311cdf0e10cSrcweir // fuegt 2 Tabellen, die hintereinander stehen, wieder zusammen 312cdf0e10cSrcweir sal_Bool MergeTable( const SwNodeIndex& rPos, sal_Bool bWithPrev = sal_True, 313cdf0e10cSrcweir sal_uInt16 nMode = 0, SwHistory* pHistory = 0 ); 314cdf0e10cSrcweir 315cdf0e10cSrcweir // fuege eine neue SwSection ein 316cdf0e10cSrcweir SwSectionNode* InsertTextSection(SwNodeIndex const& rNdIdx, 317cdf0e10cSrcweir SwSectionFmt& rSectionFmt, 318cdf0e10cSrcweir SwSectionData const&, 319cdf0e10cSrcweir SwTOXBase const*const pTOXBase, 320cdf0e10cSrcweir SwNodeIndex const*const pEnde, 321cdf0e10cSrcweir bool const bInsAtStart = true, 322cdf0e10cSrcweir bool const bCreateFrms = true); 323cdf0e10cSrcweir 324cdf0e10cSrcweir // in welchem Doc steht das Nodes-Array ? GetDoc()325cdf0e10cSrcweir SwDoc* GetDoc() { return pMyDoc; } GetDoc() const326cdf0e10cSrcweir const SwDoc* GetDoc() const { return pMyDoc; } 327cdf0e10cSrcweir 328cdf0e10cSrcweir // suche den vorhergehenden [/nachfolgenden ] ContentNode oder 329cdf0e10cSrcweir // TabellenNode mit Frames. Wird kein Ende angeben, dann wird mit 330cdf0e10cSrcweir // dem FrameIndex begonnen; ansonsten, wird mit dem vor rFrmIdx und 331cdf0e10cSrcweir // dem hintern pEnd die Suche gestartet. Sollte kein gueltiger Node 332cdf0e10cSrcweir // gefunden werden, wird 0 returnt. rFrmIdx zeigt auf dem Node mit 333cdf0e10cSrcweir // Frames 334cdf0e10cSrcweir SwNode* FindPrvNxtFrmNode( SwNodeIndex& rFrmIdx, 335cdf0e10cSrcweir const SwNode* pEnd = 0 ) const; 336cdf0e10cSrcweir 337cdf0e10cSrcweir //-> #112139# 338cdf0e10cSrcweir SwNode * DocumentSectionStartNode(SwNode * pNode) const; 339cdf0e10cSrcweir SwNode * DocumentSectionEndNode(SwNode * pNode) const; 340cdf0e10cSrcweir //<- #112139# 341cdf0e10cSrcweir }; 342cdf0e10cSrcweir 343cdf0e10cSrcweir #endif 344