LibreOffice Module sw (master) 1
ndcopy.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#include <doc.hxx>
21#include <IDocumentUndoRedo.hxx>
22#include <node.hxx>
23#include <frmfmt.hxx>
24#include <swtable.hxx>
25#include <ndtxt.hxx>
26#include <swtblfmt.hxx>
27#include <cellatr.hxx>
28#include <ddefld.hxx>
29#include <swddetbl.hxx>
30#include <ndindex.hxx>
31#include <frameformats.hxx>
32#include <vector>
33#include <osl/diagnose.h>
34#include <svl/numformat.hxx>
35
36
37#ifdef DBG_UTIL
38#define CHECK_TABLE(t) (t).CheckConsistency();
39#else
40#define CHECK_TABLE(t)
41#endif
42
43namespace {
44
45// Structure for the mapping from old and new frame formats to the
46// boxes and lines of a table
47struct MapTableFrameFormat
48{
49 const SwFrameFormat *pOld;
50 SwFrameFormat *pNew;
51 MapTableFrameFormat( const SwFrameFormat *pOldFormat, SwFrameFormat*pNewFormat )
52 : pOld( pOldFormat ), pNew( pNewFormat )
53 {}
54};
55
56}
57
58typedef std::vector<MapTableFrameFormat> MapTableFrameFormats;
59
60SwContentNode* SwTextNode::MakeCopy(SwDoc& rDoc, SwNode& rIdx, bool const bNewFrames) const
61{
62 // the Copy-Textnode is the Node with the Text, the Copy-Attrnode is the
63 // node with the collection and hard attributes. Normally is the same
64 // node, but if insert a glossary without formatting, then the Attrnode
65 // is the prev node of the destination position in dest. document.
66 SwTextNode* pCpyTextNd = const_cast<SwTextNode*>(this);
67 SwTextNode* pCpyAttrNd = pCpyTextNd;
68
69 // Copy the formats to the other document
70 SwTextFormatColl* pColl = nullptr;
71 if( rDoc.IsInsOnlyTextGlossary() )
72 {
73 SwNodeIndex aIdx( rIdx, -1 );
74 if( aIdx.GetNode().IsTextNode() )
75 {
76 pCpyAttrNd = aIdx.GetNode().GetTextNode();
77 pColl = &pCpyAttrNd->GetTextColl()->GetNextTextFormatColl();
78 }
79 }
80 if( !pColl )
81 pColl = rDoc.CopyTextColl( *GetTextColl() );
82
83 SwTextNode* pTextNd = rDoc.GetNodes().MakeTextNode(rIdx, pColl, bNewFrames);
84
85 // METADATA: register copy
86 pTextNd->RegisterAsCopyOf(*pCpyTextNd);
87
88 // Copy Attribute/Text
89 if( !pCpyAttrNd->HasSwAttrSet() )
90 // An AttrSet was added for numbering, so delete it
91 pTextNd->ResetAllAttr();
92
93 // if Copy-Textnode unequal to Copy-Attrnode, then copy first
94 // the attributes into the new Node.
95 if( pCpyAttrNd != pCpyTextNd )
96 {
97 pCpyAttrNd->CopyAttr( pTextNd, 0, 0 );
98 if( pCpyAttrNd->HasSwAttrSet() )
99 {
100 SwAttrSet aSet( *pCpyAttrNd->GetpSwAttrSet() );
101 aSet.ClearItem( RES_PAGEDESC );
102 aSet.ClearItem( RES_BREAK );
103 aSet.CopyToModify( *pTextNd );
104 }
105 }
106
107 // Is that enough? What about PostIts/Fields/FieldTypes?
108 // #i96213# - force copy of all attributes
109 pCpyTextNd->CopyText( pTextNd, SwContentIndex( pCpyTextNd ),
110 pCpyTextNd->GetText().getLength(), true );
111
112 if( RES_CONDTXTFMTCOLL == pColl->Which() )
113 pTextNd->ChkCondColl();
114
115 return pTextNd;
116}
117
118static bool lcl_SrchNew( const MapTableFrameFormat& rMap, SwFrameFormat** pPara )
119{
120 if( rMap.pOld != *pPara )
121 return true;
122 *pPara = rMap.pNew;
123 return false;
124}
125
126namespace {
127
128struct CopyTable
129{
130 SwDoc& m_rDoc;
131 SwNodeOffset m_nOldTableSttIdx;
132 MapTableFrameFormats& m_rMapArr;
133 SwTableLine* m_pInsLine;
134 SwTableBox* m_pInsBox;
135 SwTableNode *m_pTableNd;
136 const SwTable *m_pOldTable;
137
138 CopyTable(SwDoc& rDc, MapTableFrameFormats& rArr, SwNodeOffset nOldStt,
139 SwTableNode& rTableNd, const SwTable* pOldTable)
140 : m_rDoc(rDc), m_nOldTableSttIdx(nOldStt), m_rMapArr(rArr),
141 m_pInsLine(nullptr), m_pInsBox(nullptr), m_pTableNd(&rTableNd), m_pOldTable(pOldTable)
142 {}
143};
144
145}
146
147static void lcl_CopyTableLine( const SwTableLine* pLine, CopyTable* pCT );
148
149static void lcl_CopyTableBox( SwTableBox* pBox, CopyTable* pCT )
150{
151 SwTableBoxFormat * pBoxFormat = static_cast<SwTableBoxFormat*>(pBox->GetFrameFormat());
152 for (const auto& rMap : pCT->m_rMapArr)
153 if ( !lcl_SrchNew( rMap, reinterpret_cast<SwFrameFormat**>(&pBoxFormat) ) )
154 break;
155
156 if (pBoxFormat == pBox->GetFrameFormat()) // Create a new one?
157 {
158 const SwTableBoxFormula* pFormulaItem = pBoxFormat->GetItemIfSet( RES_BOXATR_FORMULA, false );
159 if( pFormulaItem && pFormulaItem->IsIntrnlName() )
160 {
161 const_cast<SwTableBoxFormula*>(pFormulaItem)->PtrToBoxNm(pCT->m_pOldTable);
162 }
163
164 pBoxFormat = pCT->m_rDoc.MakeTableBoxFormat();
165 pBoxFormat->CopyAttrs( *pBox->GetFrameFormat() );
166
167 if( pBox->GetSttIdx() )
168 {
169 SvNumberFormatter* pN = pCT->m_rDoc.GetNumberFormatter(false);
170 const SwTableBoxNumFormat* pFormatItem;
171 if( pN && pN->HasMergeFormatTable() &&
172 (pFormatItem = pBoxFormat->GetItemIfSet( RES_BOXATR_FORMAT, false )) )
173 {
174 sal_uLong nOldIdx = pFormatItem->GetValue();
175 sal_uLong nNewIdx = pN->GetMergeFormatIndex( nOldIdx );
176 if( nNewIdx != nOldIdx )
177 pBoxFormat->SetFormatAttr( SwTableBoxNumFormat( nNewIdx ));
178
179 }
180 }
181
182 pCT->m_rMapArr.emplace_back(pBox->GetFrameFormat(), pBoxFormat);
183 }
184
185 sal_uInt16 nLines = pBox->GetTabLines().size();
186 SwTableBox* pNewBox;
187 if( nLines )
188 pNewBox = new SwTableBox(pBoxFormat, nLines, pCT->m_pInsLine);
189 else
190 {
191 SwNodeIndex aNewIdx(*pCT->m_pTableNd, pBox->GetSttIdx() - pCT->m_nOldTableSttIdx);
192 assert(aNewIdx.GetNode().IsStartNode() && "Index is not on the start node");
193
194 pNewBox = new SwTableBox(pBoxFormat, aNewIdx, pCT->m_pInsLine);
195 pNewBox->setRowSpan( pBox->getRowSpan() );
196 }
197
198 pCT->m_pInsLine->GetTabBoxes().push_back( pNewBox );
199
200 if (nLines)
201 {
202 CopyTable aPara(*pCT);
203 aPara.m_pInsBox = pNewBox;
204 for( const SwTableLine* pLine : pBox->GetTabLines() )
205 lcl_CopyTableLine( pLine, &aPara );
206 }
207 else if (pNewBox->IsInHeadline(&pCT->m_pTableNd->GetTable()))
208 {
209 // In the headline, the paragraphs must match conditional styles
210 pNewBox->GetSttNd()->CheckSectionCondColl();
211 }
212}
213
214static void lcl_CopyTableLine( const SwTableLine* pLine, CopyTable* pCT )
215{
216 SwTableLineFormat * pLineFormat = static_cast<SwTableLineFormat*>(pLine->GetFrameFormat());
217 for (const auto& rMap : pCT->m_rMapArr)
218 if ( !lcl_SrchNew( rMap, reinterpret_cast<SwFrameFormat**>(&pLineFormat) ) )
219 break;
220
221 if( pLineFormat == pLine->GetFrameFormat() ) // Create a new one?
222 {
223 pLineFormat = pCT->m_rDoc.MakeTableLineFormat();
224 pLineFormat->CopyAttrs( *pLine->GetFrameFormat() );
225 pCT->m_rMapArr.emplace_back(pLine->GetFrameFormat(), pLineFormat);
226 }
227
228 SwTableLine* pNewLine = new SwTableLine(pLineFormat, pLine->GetTabBoxes().size(), pCT->m_pInsBox);
229 // Insert the new row into the table
230 if (pCT->m_pInsBox)
231 {
232 pCT->m_pInsBox->GetTabLines().push_back(pNewLine);
233 }
234 else
235 {
236 pCT->m_pTableNd->GetTable().GetTabLines().push_back(pNewLine);
237 }
238
239 pCT->m_pInsLine = pNewLine;
240 for( auto& rpBox : const_cast<SwTableLine*>(pLine)->GetTabBoxes() )
241 lcl_CopyTableBox(rpBox, pCT);
242}
243
245{
246 // In which array are we? Nodes? UndoNodes?
247 SwNodes& rNds = const_cast<SwNodes&>(GetNodes());
248
249 {
250 if( rIdx < rDoc.GetNodes().GetEndOfInserts().GetIndex() &&
251 rIdx >= rDoc.GetNodes().GetEndOfInserts().StartOfSectionIndex() )
252 return nullptr;
253 }
254
255 // Copy the TableFrameFormat
256 OUString sTableName( GetTable().GetFrameFormat()->GetName() );
257 if( !rDoc.IsCopyIsMove() )
258 {
259 const sw::TableFrameFormats& rTableFormats = *rDoc.GetTableFrameFormats();
260 for( size_t n = rTableFormats.size(); n; )
261 {
262 const SwTableFormat* pFormat = rTableFormats[--n];
263 if (pFormat->GetName() == sTableName && rDoc.IsUsed(*pFormat))
264 {
265 sTableName = rDoc.GetUniqueTableName();
266 break;
267 }
268 }
269 }
270
271 SwFrameFormat* pTableFormat = rDoc.MakeTableFrameFormat( sTableName, rDoc.GetDfltFrameFormat() );
272 pTableFormat->CopyAttrs( *GetTable().GetFrameFormat() );
273 SwTableNode* pTableNd = new SwTableNode( rIdx.GetNode() );
274 SwEndNode* pEndNd = new SwEndNode( rIdx.GetNode(), *pTableNd );
275 SwNodeIndex aInsPos( *pEndNd );
276
277 SwTable& rTable = pTableNd->GetTable();
278 rTable.SetTableStyleName(GetTable().GetTableStyleName());
279 rTable.RegisterToFormat( *pTableFormat );
280
281 rTable.SetRowsToRepeat( GetTable().GetRowsToRepeat() );
282 rTable.SetTableChgMode( GetTable().GetTableChgMode() );
283 rTable.SetTableModel( GetTable().IsNewModel() );
284
285 SwDDEFieldType* pDDEType = nullptr;
286 if( auto pSwDDETable = dynamic_cast<const SwDDETable*>( &GetTable() ) )
287 {
288 // We're copying a DDE table
289 // Is the field type available in the new document?
290 pDDEType = const_cast<SwDDETable*>(pSwDDETable)->GetDDEFieldType();
291 if( pDDEType->IsDeleted() )
293 else
294 pDDEType = static_cast<SwDDEFieldType*>(rDoc.getIDocumentFieldsAccess().InsertFieldType( *pDDEType ));
295 OSL_ENSURE( pDDEType, "unknown FieldType" );
296
297 // Swap the table pointers in the node
298 std::unique_ptr<SwDDETable> pNewTable(new SwDDETable( pTableNd->GetTable(), pDDEType ));
299 pTableNd->SetNewTable( std::move(pNewTable), false );
300 }
301 // First copy the content of the tables, we will later assign the
302 // boxes/lines and create the frames
303 SwNodeRange aRg( *this, SwNodeOffset(+1), *EndOfSectionNode() );
304
305 // If there is a table in this table, the table format for the outer table
306 // does not seem to be used, because the table does not have any contents yet
307 // (see IsUsed). Therefore the inner table gets the same name as the outer table.
308 // We have to make sure that the table node of the SwTable is accessible, even
309 // without any content in m_TabSortContentBoxes. #i26629#
310 pTableNd->GetTable().SetTableNode( pTableNd );
311 rNds.Copy_( aRg, aInsPos.GetNode(), false );
312 pTableNd->GetTable().SetTableNode( nullptr );
313
314 // Special case for a single box
315 if( 1 == GetTable().GetTabSortBoxes().size() )
316 {
317 aRg.aStart.Assign( *pTableNd, 1 );
318 aRg.aEnd.Assign( *pTableNd->EndOfSectionNode() );
320 }
321
322 // Delete all frames from the copied area, they will be created
323 // during the generation of the table frame
324 pTableNd->DelFrames();
325
326 MapTableFrameFormats aMapArr;
327 CopyTable aPara( rDoc, aMapArr, GetIndex(), *pTableNd, &GetTable() );
328
329 for( const SwTableLine* pLine : GetTable().GetTabLines() )
330 lcl_CopyTableLine( pLine, &aPara );
331
332 if( pDDEType )
333 pDDEType->IncRefCnt();
334
336 return pTableNd;
337}
338
339void SwTextNode::CopyCollFormat(SwTextNode& rDestNd, bool const bUndoForChgFormatColl)
340{
341 // Copy the formats into the other document:
342 // Special case for PageBreak/PageDesc/ColBrk
343 SwDoc& rDestDoc = rDestNd.GetDoc();
344 SwAttrSet aPgBrkSet( rDestDoc.GetAttrPool(), aBreakSetRange );
345 const SwAttrSet* pSet;
346
347 pSet = rDestNd.GetpSwAttrSet();
348 if( nullptr != pSet )
349 {
350 // Special cases for Break-Attributes
351 const SfxPoolItem* pAttr;
352 if( SfxItemState::SET == pSet->GetItemState( RES_BREAK, false, &pAttr ) )
353 aPgBrkSet.Put( *pAttr );
354
355 if( SfxItemState::SET == pSet->GetItemState( RES_PAGEDESC, false, &pAttr ) )
356 aPgBrkSet.Put( *pAttr );
357 }
358
359 // this may create undo action SwUndoFormatCreate
360 auto const pCopy( rDestDoc.CopyTextColl( *GetTextColl() ) );
361 if (bUndoForChgFormatColl)
362 {
363 rDestNd.ChgFormatColl(pCopy);
364 }
365 else // tdf#138897
366 {
367 ::sw::UndoGuard const ug(rDestDoc.GetIDocumentUndoRedo());
368 rDestNd.ChgFormatColl(pCopy);
369 }
370 pSet = GetpSwAttrSet();
371 if( nullptr != pSet )
372 {
373 // note: this may create undo actions but not for setting the items
374 pSet->CopyToModify( rDestNd );
375 }
376
377 if( aPgBrkSet.Count() )
378 rDestNd.SetAttr( aPgBrkSet );
379}
380
381/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt32 GetValue() const
virtual void InsDeletedFieldType(SwFieldType &)=0
virtual SwFieldType * InsertFieldType(const SwFieldType &)=0
sal_uInt16 Count() const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
sal_uInt32 GetMergeFormatIndex(sal_uInt32 nOldFmt) const
bool HasMergeFormatTable() const
void CopyToModify(sw::BroadcastingModify &rMod) const
Definition: swatrset.cxx:251
Marks a character position inside a document model content node (SwContentNode)
bool HasSwAttrSet() const
Definition: node.hxx:494
void ChkCondColl(const SwTextFormatColl *pColl=nullptr)
Definition: node.cxx:2022
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:493
bool IsDeleted() const
Definition: ddefld.hxx:85
void IncRefCnt()
Definition: ddefld.hxx:97
Definition: doc.hxx:197
SwTextFormatColl * CopyTextColl(const SwTextFormatColl &rColl)
copy TextNodes
Definition: docfmt.cxx:1192
bool IsCopyIsMove() const
Definition: doc.hxx:1390
const sw::TableFrameFormats * GetTableFrameFormats() const
Definition: doc.hxx:826
bool IsUsed(const sw::BroadcastingModify &) const
Definition: poolfmt.cxx:86
SwTableFormat * MakeTableFrameFormat(const OUString &rFormatName, SwFrameFormat *pDerivedFrom)
Definition: docfmt.cxx:819
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:158
SwNodes & GetNodes()
Definition: doc.hxx:422
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
Definition: doc.cxx:371
OUString GetUniqueTableName() const
Definition: ndtbl.cxx:3907
const SwAttrPool & GetAttrPool() const
Definition: doc.hxx:1337
const SwFrameFormat * GetDfltFrameFormat() const
Definition: doc.hxx:762
bool IsInsOnlyTextGlossary() const
Definition: doc.hxx:672
Ends a section of nodes in the document model.
Definition: node.hxx:378
sal_uInt16 Which() const
for Querying of Writer-functions.
Definition: format.hxx:82
const OUString & GetName() const
Definition: format.hxx:131
void CopyAttrs(const SwFormat &)
Copy attributes even among documents.
Definition: format.cxx:171
virtual bool SetFormatAttr(const SfxPoolItem &rAttr)
Definition: format.cxx:447
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
Templatized version of GetItemState() to directly return the correct type.
Definition: format.hxx:111
Style of a layout element.
Definition: frmfmt.hxx:72
Marks a node in the document model.
Definition: ndindex.hxx:31
SwNode & GetNode() const
Definition: ndindex.hxx:123
SwNodeIndex & Assign(SwNodes const &rNds, SwNodeOffset nIdx)
Definition: ndindex.hxx:114
SwNodeIndex aStart
Definition: ndindex.hxx:136
SwNodeIndex aEnd
Definition: ndindex.hxx:137
Base class of the Writer document model elements.
Definition: node.hxx:98
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Definition: ndtxt.hxx:901
SwNodeOffset GetIndex() const
Definition: node.hxx:312
SwNodes & GetNodes()
Node is in which nodes-array/doc?
Definition: node.hxx:706
SwDoc & GetDoc()
Definition: node.hxx:233
bool IsStartNode() const
Definition: node.hxx:187
SwNodeOffset StartOfSectionIndex() const
Definition: node.hxx:687
bool IsTextNode() const
Definition: node.hxx:190
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:695
SwTextNode * MakeTextNode(SwNode &rWhere, SwTextFormatColl *pColl, bool bNewFrames=true)
Implementations of "Make...Node" are in the given .cxx-files.
Definition: ndtxt.cxx:121
void SectionDown(SwNodeRange *pRange, SwStartNodeType=SwNormalStartNode)
create a start/end section pair
Definition: nodes.cxx:906
void Copy_(const SwNodeRange &rRg, SwNode &rInsPos, bool bNewFrames=true) const
Definition: ndarr.hxx:179
SwNode & GetEndOfInserts() const
Section for all footnotes.
Definition: ndarr.hxx:156
void CheckSectionCondColl() const
Call ChkCondcoll to all ContentNodes of section.
Definition: node.cxx:993
friend class SwEndNode
to set the theEndOfSection !!
Definition: node.hxx:351
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:443
sal_Int32 getRowSpan() const
Definition: swtable.hxx:540
SwNodeOffset GetSttIdx() const
Definition: swtable.cxx:2242
void setRowSpan(sal_Int32 nNewRowSpan)
Definition: swtable.cxx:81
SwFrameFormat * GetFrameFormat()
Definition: swtable.hxx:481
SwTableLines & GetTabLines()
Definition: swtable.hxx:474
bool IsInHeadline(const SwTable *pTable) const
Definition: swtable.cxx:2226
const SwStartNode * GetSttNd() const
Definition: swtable.hxx:495
bool IsIntrnlName() const
Definition: cellfml.hxx:131
SwTableLine is one table row in the document model.
Definition: swtable.hxx:376
SwFrameFormat * GetFrameFormat()
Definition: swtable.hxx:398
SwTableBoxes & GetTabBoxes()
Definition: swtable.hxx:386
size_type size() const
Definition: swtable.hxx:76
SwTableNode * MakeCopy(SwDoc &, const SwNodeIndex &) const
Definition: ndcopy.cxx:244
void SetNewTable(std::unique_ptr< SwTable >, bool bNewFrames=true)
Definition: ndtbl.cxx:2507
const SwTable & GetTable() const
Definition: node.hxx:542
SwTableNode(const SwNode &)
Definition: ndtbl.cxx:2352
void DelFrames(SwRootFrame const *pLayout=nullptr)
Method deletes all views of document for the node.
Definition: ndtbl.cxx:2461
SwTable is one table in the document model, containing rows (which contain cells).
Definition: swtable.hxx:113
void SetTableModel(bool bNew)
Definition: swtable.hxx:192
void SetRowsToRepeat(sal_uInt16 nNumOfRows)
Definition: swtable.hxx:202
void RegisterToFormat(SwFormat &rFormat)
Definition: swtable.cxx:3191
void SetTableStyleName(const OUString &rName)
Set the new table style name for this table.
Definition: swtable.hxx:199
void SetTableChgMode(TableChgMode eMode)
Definition: swtable.hxx:339
void SetTableNode(SwTableNode *pNode)
Definition: swtable.hxx:328
Represents the style of a paragraph.
Definition: fmtcol.hxx:61
SwTextFormatColl & GetNextTextFormatColl() const
Definition: fmtcol.hxx:106
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:112
virtual SwContentNode * MakeCopy(SwDoc &, SwNode &rWhere, bool bNewFrames) const override
Definition: ndcopy.cxx:60
SAL_DLLPRIVATE void CopyAttr(SwTextNode *pDest, const sal_Int32 nStart, const sal_Int32 nOldPos)
Copies the attributes at nStart to pDest.
Definition: ndtxt.cxx:2009
void CopyText(SwTextNode *const pDest, const SwContentIndex &rStart, const sal_Int32 nLen, const bool bForceCopyOfAllAttrs)
Actions on text and attributes.
Definition: ndtxt.cxx:2069
virtual bool SetAttr(const SfxPoolItem &) override
overriding to handle change of certain paragraph attributes
Definition: ndtxt.cxx:5066
virtual SwFormatColl * ChgFormatColl(SwFormatColl *) override
Definition: ndtxt.cxx:4060
void CopyCollFormat(SwTextNode &rDestNd, bool bUndoForChgFormatColl=true)
Copy collection with all auto formats to dest-node.
Definition: ndcopy.cxx:339
const OUString & GetText() const
Definition: ndtxt.hxx:244
SwTextFormatColl * GetTextColl() const
Definition: ndtxt.hxx:895
virtual sal_uInt16 ResetAllAttr() override
Definition: ndtxt.cxx:5321
size_t size() const
virtual OUString GetName() const override
SwDoc & m_rDoc
Definition: docbm.cxx:1228
constexpr TypedWhichId< SwConditionTextFormatColl > RES_CONDTXTFMTCOLL(166)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(99)
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(157)
constexpr TypedWhichId< SwTableBoxNumFormat > RES_BOXATR_FORMAT(RES_BOXATR_BEGIN)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
WhichRangesContainer const aBreakSetRange(svl::Items< RES_PAGEDESC, RES_BREAK >)
sal_Int64 n
size
std::vector< MapTableFrameFormat > MapTableFrameFormats
Definition: ndcopy.cxx:58
static void lcl_CopyTableLine(const SwTableLine *pLine, CopyTable *pCT)
Definition: ndcopy.cxx:214
static bool lcl_SrchNew(const MapTableFrameFormat &rMap, SwFrameFormat **pPara)
Definition: ndcopy.cxx:118
static void lcl_CopyTableBox(SwTableBox *pBox, CopyTable *pCT)
Definition: ndcopy.cxx:149
#define CHECK_TABLE(t)
Definition: ndcopy.cxx:38
@ SwTableBoxStartNode
Definition: ndtyp.hxx:53
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
Definition: nodeoffset.hxx:16
sal_uIntPtr sal_uLong