LibreOffice Module sw (master)  1
swatrset.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 
20 #include <memory>
21 
22 #include <cellatr.hxx>
23 #include <charfmt.hxx>
24 #include <fchrfmt.hxx>
25 #include <doc.hxx>
26 #include <IDocumentListsAccess.hxx>
27 #include <editeng/editeng.hxx>
28 #include <fmtanchr.hxx>
29 #include <fmtpdsc.hxx>
30 #include <fmtautofmt.hxx>
31 #include <hintids.hxx>
32 #include <list.hxx>
33 #include <node.hxx>
34 #include <numrule.hxx>
35 #include <pagedesc.hxx>
36 #include <paratr.hxx>
37 #include <o3tl/unit_conversion.hxx>
38 #include <osl/diagnose.h>
39 #include <svl/whiter.hxx>
40 
41 #include <svx/svdpool.hxx>
42 #include <svx/sxenditm.hxx>
43 #include <svx/sdsxyitm.hxx>
44 
46  : SfxItemPool( "SWG",
48  aSlotTab, &aAttrTab ),
49  m_pDoc( pD )
50 {
51  // create SfxItemPool and EditEngine pool and add these in a chain. These
52  // belong us and will be removed/destroyed in removeAndDeleteSecondaryPools() used from
53  // the destructor
54  rtl::Reference<SfxItemPool> pSdrPool = new SdrItemPool(this);
55 
56  // #75371# change DefaultItems for the SdrEdgeObj distance items
57  // to TWIPS.
58  constexpr tools::Long nDefEdgeDist
60 
61  pSdrPool->SetPoolDefaultItem(SdrEdgeNode1HorzDistItem(nDefEdgeDist));
62  pSdrPool->SetPoolDefaultItem(SdrEdgeNode1VertDistItem(nDefEdgeDist));
63  pSdrPool->SetPoolDefaultItem(SdrEdgeNode2HorzDistItem(nDefEdgeDist));
64  pSdrPool->SetPoolDefaultItem(SdrEdgeNode2VertDistItem(nDefEdgeDist));
65 
66  // #i33700# // Set shadow distance defaults as PoolDefaultItems
67  constexpr tools::Long nDefShadowDist
69  pSdrPool->SetPoolDefaultItem(makeSdrShadowXDistItem(nDefShadowDist));
70  pSdrPool->SetPoolDefaultItem(makeSdrShadowYDistItem(nDefShadowDist));
71 
73 
74  pSdrPool->SetSecondaryPool(pEEgPool.get());
75 
76  if(GetFrozenIdRanges().empty())
77  {
79  }
80  else
81  {
82  pSdrPool->FreezeIdRanges();
83  }
84 }
85 
87 {
88  // cleanup secondary pools
89  SfxItemPool *pSdrPool = GetSecondaryPool();
90  // first delete the items, then break the linking
91  pSdrPool->Delete();
92  SetSecondaryPool(nullptr);
93 }
94 
95 SwAttrSet::SwAttrSet( SwAttrPool& rPool, sal_uInt16 nWh1, sal_uInt16 nWh2 )
96  : SfxItemSet( rPool, nWh1, nWh2 ), m_pOldSet( nullptr ), m_pNewSet( nullptr )
97 {
98 }
99 
100 SwAttrSet::SwAttrSet( SwAttrPool& rPool, const WhichRangesContainer& nWhichPairTable )
101  : SfxItemSet( rPool, nWhichPairTable )
102  , m_pOldSet( nullptr ), m_pNewSet( nullptr )
103 {
104 }
105 
107  : SfxItemSet( rSet ), m_pOldSet( nullptr ), m_pNewSet( nullptr )
108 {
109 }
110 
111 std::unique_ptr<SfxItemSet> SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const
112 {
113  if ( pToPool && pToPool != GetPool() )
114  {
115  SwAttrPool* pAttrPool = dynamic_cast< SwAttrPool* >(pToPool);
116  std::unique_ptr<SfxItemSet> pTmpSet;
117  if ( !pAttrPool )
118  pTmpSet = SfxItemSet::Clone( bItems, pToPool );
119  else
120  {
121  pTmpSet.reset(new SwAttrSet( *pAttrPool, GetRanges() ));
122  if ( bItems )
123  {
124  SfxWhichIter aIter(*pTmpSet);
125  sal_uInt16 nWhich = aIter.FirstWhich();
126  while ( nWhich )
127  {
128  const SfxPoolItem* pItem;
129  if ( SfxItemState::SET == GetItemState( nWhich, false, &pItem ) )
130  pTmpSet->Put( *pItem );
131  nWhich = aIter.NextWhich();
132  }
133  }
134  }
135  return pTmpSet;
136  }
137  else
138  return std::unique_ptr<SfxItemSet>(
139  bItems
140  ? new SwAttrSet( *this )
141  : new SwAttrSet( *GetPool(), GetRanges() ));
142 }
143 
144 bool SwAttrSet::Put_BC( const SfxPoolItem& rAttr,
145  SwAttrSet* pOld, SwAttrSet* pNew )
146 {
147  m_pNewSet = pNew;
148  m_pOldSet = pOld;
149  bool bRet = nullptr != SfxItemSet::Put( rAttr );
150  m_pOldSet = m_pNewSet = nullptr;
151  return bRet;
152 }
153 
154 bool SwAttrSet::Put_BC( const SfxItemSet& rSet,
155  SwAttrSet* pOld, SwAttrSet* pNew )
156 {
157  m_pNewSet = pNew;
158  m_pOldSet = pOld;
159  bool bRet = SfxItemSet::Put( rSet );
160  m_pOldSet = m_pNewSet = nullptr;
161  return bRet;
162 }
163 
164 sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich,
165  SwAttrSet* pOld, SwAttrSet* pNew )
166 {
167  m_pNewSet = pNew;
168  m_pOldSet = pOld;
169  sal_uInt16 nRet = SfxItemSet::ClearItem( nWhich );
170  m_pOldSet = m_pNewSet = nullptr;
171  return nRet;
172 }
173 
174 sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
175  SwAttrSet* pOld, SwAttrSet* pNew )
176 {
177  OSL_ENSURE( nWhich1 <= nWhich2, "no valid range" );
178  m_pNewSet = pNew;
179  m_pOldSet = pOld;
180  sal_uInt16 nRet = 0;
181  for( ; nWhich1 <= nWhich2; ++nWhich1 )
182  nRet = nRet + SfxItemSet::ClearItem( nWhich1 );
183  m_pOldSet = m_pNewSet = nullptr;
184  return nRet;
185 }
186 
188  SwAttrSet* pOld, SwAttrSet* pNew )
189 {
190  m_pNewSet = pNew;
191  m_pOldSet = pOld;
192  SfxItemSet::Intersect( rSet );
193  m_pOldSet = m_pNewSet = nullptr;
194  return pNew ? pNew->Count() : ( pOld ? pOld->Count() : 0 );
195 }
196 
198 void SwAttrSet::Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew )
199 {
200  if( m_pOldSet )
201  m_pOldSet->PutChgd( rOld );
202  if( m_pNewSet )
203  m_pNewSet->PutChgd( rNew );
204 }
205 
215 {
216  bool bSet = false;
217 
218  const SfxPoolItem* pItem;
219  if( SfxItemState::SET == GetItemState( RES_PAGEDESC, false, &pItem ) &&
220  pItem->StaticWhichCast(RES_PAGEDESC).GetDefinedIn() != pModify )
221  {
222  const_cast<SwFormatPageDesc&>(pItem->StaticWhichCast(RES_PAGEDESC)).ChgDefinedIn( pModify );
223  bSet = true;
224  }
225 
226  if(SfxItemState::SET == GetItemState( RES_PARATR_DROP, false, &pItem ))
227  {
228  auto pDropDefiner = dynamic_cast<const sw::FormatDropDefiner*>(pModify);
229  SwFormatDrop& rFormatDrop = const_cast<SwFormatDrop&>(pItem->StaticWhichCast(RES_PARATR_DROP));
230  // If CharFormat is set and it is set in different attribute pools then
231  // the CharFormat has to be copied.
232  SwCharFormat* pCharFormat = rFormatDrop.GetCharFormat();
233  if(pCharFormat && GetPool() != pCharFormat->GetAttrSet().GetPool())
234  {
235  pCharFormat = GetDoc()->CopyCharFormat(*pCharFormat);
236  rFormatDrop.SetCharFormat(pCharFormat);
237  }
238  rFormatDrop.ChgDefinedIn(pDropDefiner);
239  bSet = true;
240  }
241 
242  if( SfxItemState::SET == GetItemState( RES_BOXATR_FORMULA, false, &pItem ) &&
243  pItem->StaticWhichCast(RES_BOXATR_FORMULA).GetDefinedIn() != pModify )
244  {
245  const_cast<SwTableBoxFormula&>(pItem->StaticWhichCast(RES_BOXATR_FORMULA)).ChgDefinedIn( pModify );
246  bSet = true;
247  }
248 
249  return bSet;
250 }
251 
253 {
254  // copy attributes across multiple documents if needed
255  SwContentNode* pCNd = dynamic_cast<SwContentNode*>( &rMod );
256  SwFormat* pFormat = dynamic_cast<SwFormat*>( &rMod );
257 
258  if( pCNd || pFormat )
259  {
260  if( Count() )
261  {
262  // #i92811#
263  std::unique_ptr<SfxStringItem> pNewListIdItem;
264 
265  const SfxPoolItem* pItem;
266  const SwDoc *pSrcDoc = GetDoc();
267  SwDoc *pDstDoc = pCNd ? &pCNd->GetDoc() : pFormat->GetDoc();
268 
269  // Does the NumRule has to be copied?
270  if( pSrcDoc != pDstDoc &&
271  SfxItemState::SET == GetItemState( RES_PARATR_NUMRULE, false, &pItem ) )
272  {
273  const OUString& rNm = pItem->StaticWhichCast(RES_PARATR_NUMRULE).GetValue();
274  if( !rNm.isEmpty() )
275  {
276  SwNumRule* pDestRule = pDstDoc->FindNumRulePtr( rNm );
277  if( pDestRule )
278  pDestRule->SetInvalidRule( true );
279  else
280  pDstDoc->MakeNumRule( rNm, pSrcDoc->FindNumRulePtr( rNm ) );
281  }
282  }
283 
284  // copy list and if needed also the corresponding list style
285  // for text nodes
286  if ( pSrcDoc != pDstDoc &&
287  pCNd && pCNd->IsTextNode() &&
288  GetItemState( RES_PARATR_LIST_ID, false, &pItem ) == SfxItemState::SET )
289  {
290  auto pStrItem = dynamic_cast<const SfxStringItem*>(pItem);
291  assert(pStrItem);
292  const OUString& sListId = pStrItem->GetValue();
293  if ( !sListId.isEmpty() &&
294  !pDstDoc->getIDocumentListsAccess().getListByName( sListId ) )
295  {
296  const SwList* pList = pSrcDoc->getIDocumentListsAccess().getListByName( sListId );
297  // copy list style, if needed
298  const OUString& sDefaultListStyleName =
299  pList->GetDefaultListStyleName();
300  // #i92811#
301  const SwNumRule* pDstDocNumRule =
302  pDstDoc->FindNumRulePtr( sDefaultListStyleName );
303  if ( !pDstDocNumRule )
304  {
305  pDstDoc->MakeNumRule( sDefaultListStyleName,
306  pSrcDoc->FindNumRulePtr( sDefaultListStyleName ) );
307  }
308  else
309  {
310  const SwNumRule* pSrcDocNumRule =
311  pSrcDoc->FindNumRulePtr( sDefaultListStyleName );
312  // If list id of text node equals the list style's
313  // default list id in the source document, the same
314  // should be hold in the destination document.
315  // Thus, create new list id item.
316  if (pSrcDocNumRule && sListId == pSrcDocNumRule->GetDefaultListId())
317  {
318  pNewListIdItem.reset(new SfxStringItem (
320  pDstDocNumRule->GetDefaultListId() ));
321  }
322  }
323  // check again, if list exist, because <SwDoc::MakeNumRule(..)>
324  // could have also created it.
325  if ( pNewListIdItem == nullptr &&
326  !pDstDoc->getIDocumentListsAccess().getListByName( sListId ) )
327  {
328  // copy list
329  pDstDoc->getIDocumentListsAccess().createList( sListId, sDefaultListStyleName );
330  }
331  }
332  }
333 
334  std::optional< SfxItemSet > tmpSet;
335 
336  if( pSrcDoc != pDstDoc && SfxItemState::SET == GetItemState(
337  RES_PAGEDESC, false, &pItem ))
338  {
339  const SwPageDesc* pPgDesc = pItem->StaticWhichCast(RES_PAGEDESC).GetPageDesc();
340  if( pPgDesc )
341  {
342  tmpSet.emplace(*this);
343 
344  SwPageDesc* pDstPgDesc = pDstDoc->FindPageDesc(pPgDesc->GetName());
345  if( !pDstPgDesc )
346  {
347  pDstPgDesc = pDstDoc->MakePageDesc(pPgDesc->GetName());
348  pDstDoc->CopyPageDesc( *pPgDesc, *pDstPgDesc );
349  }
350  SwFormatPageDesc aDesc( pDstPgDesc );
351  aDesc.SetNumOffset( pItem->StaticWhichCast(RES_PAGEDESC).GetNumOffset() );
352  tmpSet->Put( aDesc );
353  }
354  }
355 
356  if( pSrcDoc != pDstDoc && SfxItemState::SET == GetItemState( RES_ANCHOR, false, &pItem )
357  && pItem->StaticWhichCast(RES_ANCHOR).GetContentAnchor() != nullptr )
358  {
359  if( !tmpSet )
360  tmpSet.emplace( *this );
361  // Anchors at any node position cannot be copied to another document, because the SwPosition
362  // would still point to the old document. It needs to be fixed up explicitly.
363  tmpSet->ClearItem( RES_ANCHOR );
364  }
365 
366  if (pSrcDoc != pDstDoc &&
367  SfxItemState::SET == GetItemState(RES_PARATR_LIST_AUTOFMT, false, &pItem))
368  {
369  SfxItemSet const& rAutoStyle(*pItem->StaticWhichCast(RES_PARATR_LIST_AUTOFMT).GetStyleHandle());
370  std::shared_ptr<SfxItemSet> const pNewSet(
371  rAutoStyle.SfxItemSet::Clone(true, &pDstDoc->GetAttrPool()));
372 
373  // fix up character style, it contains pointers to pSrcDoc
374  if (SfxItemState::SET == pNewSet->GetItemState(RES_TXTATR_CHARFMT, false, &pItem))
375  {
376  const auto& rChar(pItem->StaticWhichCast(RES_TXTATR_CHARFMT));
377  SwCharFormat *const pCopy(pDstDoc->CopyCharFormat(*rChar.GetCharFormat()));
378  const_cast<SwFormatCharFormat&>(rChar).SetCharFormat(pCopy);
379  }
380 
382  // TODO: for ODF export we'd need to add it to the autostyle pool
383  item.SetStyleHandle(pNewSet);
384  if (!tmpSet)
385  {
386  tmpSet.emplace(*this);
387  }
388  tmpSet->Put(item);
389  }
390 
391  if( tmpSet )
392  {
393  if( pCNd )
394  {
395  // #i92811#
396  if ( pNewListIdItem != nullptr )
397  {
398  tmpSet->Put( *pNewListIdItem );
399  }
400  pCNd->SetAttr( *tmpSet );
401  }
402  else
403  {
404  pFormat->SetFormatAttr( *tmpSet );
405  }
406  }
407  else if( pCNd )
408  {
409  // #i92811#
410  if ( pNewListIdItem != nullptr )
411  {
412  SfxItemSet aTmpSet( *this );
413  aTmpSet.Put( *pNewListIdItem );
414  pCNd->SetAttr( aTmpSet );
415  }
416  else
417  {
418  pCNd->SetAttr( *this );
419  }
420  }
421  else
422  {
423  pFormat->SetFormatAttr( *this );
424  }
425  }
426  }
427 #if OSL_DEBUG_LEVEL > 0
428  else
429  OSL_FAIL("neither Format nor ContentNode - no Attributes copied");
430 #endif
431 }
432 
434 bool IsInRange( const WhichRangesContainer& pRange, const sal_uInt16 nId )
435 {
436  for(const auto& rPair : pRange)
437  {
438  if( rPair.first <= nId && nId <= rPair.second )
439  return true;
440  }
441  return false;
442 }
443 
444 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(93)
SdrMetricItem makeSdrShadowYDistItem(tools::Long nDist)
bool IsInRange(const WhichRangesContainer &pRange, const sal_uInt16 nId)
check if ID is in range of attribute set IDs
Definition: swatrset.cxx:434
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:35
virtual void Changed(const SfxPoolItem &rOld, const SfxPoolItem &rNew) override
Notification callback.
Definition: swatrset.cxx:198
SwAttrPool(SwDoc *pDoc)
Definition: swatrset.cxx:45
virtual SwList * createList(const OUString &rListId, const OUString &rDefaultListStyleName)=0
long Long
constexpr TypedWhichId< SwNumRuleItem > RES_PARATR_NUMRULE(72)
const OUString & GetDefaultListId() const
Definition: numrule.hxx:195
Definition: list.hxx:35
void SetStyleHandle(const std::shared_ptr< SfxItemSet > &pHandle)
Definition: fmtautofmt.hxx:48
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
const WhichRangesContainer & GetRanges() const
Definition: doc.hxx:188
sal_uInt16 FirstWhich()
void Delete()
void FreezeIdRanges()
sal_uInt16 NextWhich()
const OUString & GetName() const
Definition: pagedesc.hxx:196
static rtl::Reference< SfxItemPool > CreatePool()
void PutChgd(const SfxPoolItem &rI)
Definition: swatrset.hxx:162
bool Put_BC(const SfxPoolItem &rAttr, SwAttrSet *pOld, SwAttrSet *pNew)
Definition: swatrset.cxx:144
constexpr TypedWhichId< SwFormatDrop > RES_PARATR_DROP(70)
constexpr sal_uInt16 POOLATTR_BEGIN(HINT_BEGIN)
constexpr TypedWhichId< SwFormatCharFormat > RES_TXTATR_CHARFMT(52)
void Intersect(const SfxItemSet &rSet)
SwAttrPool * GetPool() const
Definition: swatrset.hxx:183
virtual std::unique_ptr< SfxItemSet > Clone(bool bItems=true, SfxItemPool *pToPool=nullptr) const override
Definition: swatrset.cxx:111
SwPageDesc * FindPageDesc(const OUString &rName, size_t *pPos=nullptr) const
Definition: docdesc.cxx:941
Base class for various Writer styles.
Definition: format.hxx:46
SwAttrSet * m_pNewSet
Definition: swatrset.hxx:157
void CopyToModify(sw::BroadcastingModify &rMod) const
Definition: swatrset.cxx:252
SwNumRule * FindNumRulePtr(const OUString &rName) const
Definition: docnum.cxx:2414
virtual SwList * getListByName(const OUString &rListId) const =0
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
T & StaticWhichCast(TypedWhichId< T > nId)
SwDoc & GetDoc()
Definition: node.hxx:212
SwPageDesc * MakePageDesc(const OUString &rName, const SwPageDesc *pCpy=nullptr, bool bRegardLanguage=true, bool bBroadcast=false)
Definition: docdesc.cxx:759
sal_uInt16 Count() const
const WhichRangesContainer & GetFrozenIdRanges() const
const SwDoc * GetDoc() const
The document is set in SwAttrPool now, therefore you always can access it.
Definition: format.hxx:123
int Intersect_BC(const SfxItemSet &rSet, SwAttrSet *pOld, SwAttrSet *pNew)
Definition: swatrset.cxx:187
constexpr sal_uInt16 POOLATTR_END(RES_UNKNOWNATR_END)
virtual bool SetFormatAttr(const SfxPoolItem &rAttr)
Definition: format.cxx:450
SfxItemPool * GetSecondaryPool() const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void CopyPageDesc(const SwPageDesc &rSrcDesc, SwPageDesc &rDstDesc, bool bCopyPoolIds=true)
Copy the complete PageDesc - beyond document and "deep"! Optionally copying of PoolFormatId, -HlpId can be prevented.
Definition: docfmt.cxx:1430
void SetInvalidRule(bool bFlag)
Definition: number.cxx:922
virtual bool SetAttr(const SfxPoolItem &)
made virtual
Definition: node.cxx:1563
SfxItemInfo aSlotTab[]
Definition: init.cxx:259
virtual ~SwAttrPool() override
Definition: swatrset.cxx:86
virtual std::unique_ptr< SfxItemSet > Clone(bool bItems=true, SfxItemPool *pToPool=nullptr) const
SdrMetricItem makeSdrShadowXDistItem(tools::Long nDist)
SwCharFormat * CopyCharFormat(const SwCharFormat &)
copy the char format
Definition: docfmt.cxx:1170
SwDfltAttrTab aAttrTab
bool SetModifyAtAttr(const sw::BroadcastingModify *pModify)
special treatment for some attributes
Definition: swatrset.cxx:214
constexpr TypedWhichId< SwTableBoxFormula > RES_BOXATR_FORMULA(151)
const SwDoc * GetDoc() const
Definition: swatrset.hxx:197
void ChgDefinedIn(const sw::FormatDropDefiner *pDefiner)
Get and set Modify pointer.
Definition: paratr.hxx:120
sal_uInt16 MakeNumRule(const OUString &rName, const SwNumRule *pCpy=nullptr, bool bBroadcast=false, const SvxNumberFormat::SvxNumPositionAndSpaceMode eDefaultNumberFormatPositionAndSpaceMode=SvxNumberFormat::LABEL_WIDTH_AND_POSITION)
Definition: docnum.cxx:2448
SwAttrSet * m_pOldSet
Definition: swatrset.hxx:157
SwAttrSet(SwAttrPool &, sal_uInt16 nWhich1, sal_uInt16 nWhich2)
Definition: swatrset.cxx:95
constexpr TypedWhichId< SwFormatAutoFormat > RES_PARATR_LIST_AUTOFMT(87)
const SwCharFormat * GetCharFormat() const
Definition: paratr.hxx:113
void SetNumOffset(const ::std::optional< sal_uInt16 > &oNum)
Definition: fmtpdsc.hxx:65
const OUString & GetDefaultListStyleName() const
Definition: list.hxx:45
bool empty() const noexcept
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:120
If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps...
Definition: paratr.hxx:62
IDocumentListsAccess const & getIDocumentListsAccess() const
Definition: doc.cxx:293
bool IsTextNode() const
Definition: node.hxx:637
sal_uInt16 ClearItem_BC(sal_uInt16 nWhich, SwAttrSet *pOld, SwAttrSet *pNew)
Definition: swatrset.cxx:164
constexpr TypedWhichId< SfxStringItem > RES_PARATR_LIST_ID(RES_PARATR_LIST_BEGIN)
void SetSecondaryPool(SfxItemPool *pPool)
void SetCharFormat(SwCharFormat *pNew)
Definition: paratr.cxx:64
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(104)
const SwAttrPool & GetAttrPool() const
Definition: doc.hxx:1319