LibreOffice Module sw (master)  1
colfrm.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 <editeng/ulspitem.hxx>
21 #include <fmtclds.hxx>
22 #include <fmtfordr.hxx>
23 #include <frmfmt.hxx>
24 #include <frmatr.hxx>
25 #include <frmtool.hxx>
26 #include <colfrm.hxx>
27 #include <pagefrm.hxx>
28 #include <bodyfrm.hxx>
29 #include <rootfrm.hxx>
30 #include <sectfrm.hxx>
31 #include <calbck.hxx>
32 #include <ftnfrm.hxx>
33 #include <IDocumentState.hxx>
35 #include <IDocumentUndoRedo.hxx>
36 
38  SwFootnoteBossFrame( pFormat, pSib )
39 {
41  SwBodyFrame* pColBody = new SwBodyFrame( pFormat->GetDoc()->GetDfltFrameFormat(), pSib );
42  pColBody->InsertBehind( this, nullptr ); // ColumnFrames now with BodyFrame
44 }
45 
47 {
48  SwFrameFormat *pFormat = GetFormat();
49  SwDoc *pDoc;
50  if ( !(pDoc = pFormat->GetDoc())->IsInDtor() && pFormat->HasOnlyOneListener() )
51  {
52  //I'm the only one, delete the format.
53  //Get default format before, so the base class can cope with it.
54  pDoc->GetDfltFrameFormat()->Add( this );
55  pDoc->DelFrameFormat( pFormat );
56  }
57 
59 }
60 
62 {
63 }
64 
65 static void lcl_RemoveColumns( SwLayoutFrame *pCont, sal_uInt16 nCnt )
66 {
67  OSL_ENSURE( pCont && pCont->Lower() && pCont->Lower()->IsColumnFrame(),
68  "no columns to remove." );
69 
70  SwColumnFrame *pColumn = static_cast<SwColumnFrame*>(pCont->Lower());
71  sw_RemoveFootnotes( pColumn, true, true );
72  while ( pColumn->GetNext() )
73  {
74  OSL_ENSURE( pColumn->GetNext()->IsColumnFrame(),
75  "neighbor of ColumnFrame is no ColumnFrame." );
76  pColumn = static_cast<SwColumnFrame*>(pColumn->GetNext());
77  }
78  for ( sal_uInt16 i = 0; i < nCnt; ++i )
79  {
80  SwColumnFrame *pTmp = static_cast<SwColumnFrame*>(pColumn->GetPrev());
81  pColumn->Cut();
82  SwFrame::DestroyFrame(pColumn); //format is going to be destroyed in the DTor if needed.
83  pColumn = pTmp;
84  }
85 }
86 
87 static SwLayoutFrame * lcl_FindColumns( SwLayoutFrame *pLay, sal_uInt16 nCount )
88 {
89  SwFrame *pCol = pLay->Lower();
90  if ( pLay->IsPageFrame() )
91  pCol = static_cast<SwPageFrame*>(pLay)->FindBodyCont()->Lower();
92 
93  if ( pCol && pCol->IsColumnFrame() )
94  {
95  SwFrame *pTmp = pCol;
96  sal_uInt16 i;
97  for ( i = 0; pTmp; pTmp = pTmp->GetNext(), ++i )
98  /* do nothing */;
99  return i == nCount ? static_cast<SwLayoutFrame*>(pCol) : nullptr;
100  }
101  return nullptr;
102 }
103 
104 static bool lcl_AddColumns( SwLayoutFrame *pCont, sal_uInt16 nCount )
105 {
106  SwDoc *pDoc = pCont->GetFormat()->GetDoc();
107  const bool bMod = pDoc->getIDocumentState().IsModified();
108 
109  //Formats should be shared whenever possible. If a neighbour already has
110  //the same column settings we can add them to the same format.
111  //The neighbour can be searched using the format, however the owner of the
112  //attribute depends on the frame type.
113  SwLayoutFrame *pAttrOwner = pCont;
114  if ( pCont->IsBodyFrame() )
115  pAttrOwner = pCont->FindPageFrame();
116  SwLayoutFrame *pNeighbourCol = nullptr;
117  SwIterator<SwLayoutFrame,SwFormat> aIter( *pAttrOwner->GetFormat() );
118  SwLayoutFrame *pNeighbour = aIter.First();
119 
120  sal_uInt16 nAdd = 0;
121  SwFrame *pCol = pCont->Lower();
122  if ( pCol && pCol->IsColumnFrame() )
123  for ( nAdd = 1; pCol; pCol = pCol->GetNext(), ++nAdd )
124  /* do nothing */;
125  while ( pNeighbour )
126  {
127  if ( nullptr != (pNeighbourCol = lcl_FindColumns( pNeighbour, nCount+nAdd )) &&
128  pNeighbourCol != pCont )
129  break;
130  pNeighbourCol = nullptr;
131  pNeighbour = aIter.Next();
132  }
133 
134  bool bRet;
135  SwTwips nMax = pCont->IsPageBodyFrame() ?
137  if ( pNeighbourCol )
138  {
139  bRet = false;
140  SwFrame *pTmp = pCont->Lower();
141  while ( pTmp )
142  {
143  pTmp = pTmp->GetNext();
144  pNeighbourCol = static_cast<SwLayoutFrame*>(pNeighbourCol->GetNext());
145  }
146  for ( sal_uInt16 i = 0; i < nCount; ++i )
147  {
148  SwColumnFrame *pTmpCol = new SwColumnFrame( pNeighbourCol->GetFormat(), pCont );
149  pTmpCol->SetMaxFootnoteHeight( nMax );
150  pTmpCol->InsertBefore( pCont, nullptr );
151  pNeighbourCol = static_cast<SwLayoutFrame*>(pNeighbourCol->GetNext());
152  }
153  }
154  else
155  {
156  bRet = true;
157  // tdf#103359, like #i32968# Inserting columns in the section causes MakeFrameFormat to put
158  // nCount objects of type SwUndoFrameFormat on the undo stack. We don't want them.
159  ::sw::UndoGuard const undoGuard(pDoc->GetIDocumentUndoRedo());
160  for ( sal_uInt16 i = 0; i < nCount; ++i )
161  {
162  SwFrameFormat *pFormat = pDoc->MakeFrameFormat(OUString(), pDoc->GetDfltFrameFormat());
163  SwColumnFrame *pTmp = new SwColumnFrame( pFormat, pCont );
164  pTmp->SetMaxFootnoteHeight( nMax );
165  pTmp->Paste( pCont );
166  }
167  }
168 
169  if ( !bMod )
171  return bRet;
172 }
173 
184 void SwLayoutFrame::ChgColumns( const SwFormatCol &rOld, const SwFormatCol &rNew,
185  const bool bChgFootnote )
186 {
187  if ( rOld.GetNumCols() <= 1 && rNew.GetNumCols() <= 1 && !bChgFootnote )
188  return;
189  // #i97379#
190  // If current lower is a no text frame, then columns are not allowed
191  if ( Lower() && Lower()->IsNoTextFrame() &&
192  rNew.GetNumCols() > 1 )
193  {
194  return;
195  }
196 
197  sal_uInt16 nNewNum, nOldNum = 1;
198  if( Lower() && Lower()->IsColumnFrame() )
199  {
200  SwFrame* pCol = Lower();
201  while( nullptr != (pCol=pCol->GetNext()) )
202  ++nOldNum;
203  }
204  nNewNum = rNew.GetNumCols();
205  if( !nNewNum )
206  ++nNewNum;
207  bool bAtEnd;
208  if( IsSctFrame() )
209  bAtEnd = static_cast<SwSectionFrame*>(this)->IsAnyNoteAtEnd();
210  else
211  bAtEnd = false;
212 
213  //Setting the column width is only needed for new formats.
214  bool bAdjustAttributes = nOldNum != rOld.GetNumCols();
215 
216  //The content is saved and restored if the column count is different.
217  SwFrame *pSave = nullptr;
218  if( nOldNum != nNewNum || bChgFootnote )
219  {
220  SwDoc *pDoc = GetFormat()->GetDoc();
221  OSL_ENSURE( pDoc, "FrameFormat doesn't return a document." );
222  // SaveContent would also suck up the content of the footnote container
223  // and store it within the normal text flow.
224  if( IsPageBodyFrame() )
225  pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->RemoveFootnotes( static_cast<SwPageFrame*>(GetUpper()) );
226  pSave = ::SaveContent( this );
227 
228  //If columns exist, they get deleted if a column count of 0 or 1 is requested.
229  if ( nNewNum == 1 && !bAtEnd )
230  {
231  ::lcl_RemoveColumns( this, nOldNum );
232  if ( IsBodyFrame() )
234  else
236  if ( pSave )
237  ::RestoreContent( pSave, this, nullptr );
238  return;
239  }
240  if ( nOldNum == 1 )
241  {
242  if ( IsBodyFrame() )
244  else
246  if( !Lower() || !Lower()->IsColumnFrame() )
247  --nOldNum;
248  }
249  if ( nOldNum > nNewNum )
250  {
251  ::lcl_RemoveColumns( this, nOldNum - nNewNum );
252  bAdjustAttributes = true;
253  }
254  else if( nOldNum < nNewNum )
255  {
256  sal_uInt16 nAdd = nNewNum - nOldNum;
257  bAdjustAttributes = lcl_AddColumns( this, nAdd );
258  }
259  }
260 
261  if ( !bAdjustAttributes )
262  {
263  if ( rOld.GetLineWidth() != rNew.GetLineWidth() ||
264  rOld.GetWishWidth() != rNew.GetWishWidth() ||
265  rOld.IsOrtho() != rNew.IsOrtho() )
266  bAdjustAttributes = true;
267  else
268  {
269  const size_t nCount = std::min( rNew.GetColumns().size(), rOld.GetColumns().size() );
270  for ( size_t i = 0; i < nCount; ++i )
271  if ( !(rOld.GetColumns()[i] == rNew.GetColumns()[i]) )
272  {
273  bAdjustAttributes = true;
274  break;
275  }
276  }
277  }
278 
279  //The columns can now be easily adjusted.
280  AdjustColumns( &rNew, bAdjustAttributes );
281 
282  //Don't restore the content before. An earlier restore would trigger useless
283  //actions during setup.
284  if ( pSave )
285  {
286  OSL_ENSURE( Lower() && Lower()->IsLayoutFrame() &&
287  static_cast<SwLayoutFrame*>(Lower())->Lower() &&
288  static_cast<SwLayoutFrame*>(Lower())->Lower()->IsLayoutFrame(),
289  "no column body." ); // ColumnFrames contain BodyFrames
290  ::RestoreContent( pSave, static_cast<SwLayoutFrame*>(static_cast<SwLayoutFrame*>(Lower())->Lower()), nullptr );
291  }
292 }
293 
294 void SwLayoutFrame::AdjustColumns( const SwFormatCol *pAttr, bool bAdjustAttributes )
295 {
296  if( !Lower()->GetNext() )
297  {
299  return;
300  }
301 
302  const bool bVert = IsVertical();
303 
304  SwRectFn fnRect = bVert ? ( IsVertLR() ? (IsVertLRBT() ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert ) : fnRectHori;
305 
306  //If we have a pointer or we have to configure an attribute, we set the
307  //column widths in any case. Otherwise we check if a configuration is needed.
308  if ( !pAttr )
309  {
310  pAttr = &GetFormat()->GetCol();
311  if ( !bAdjustAttributes )
312  {
313  long nAvail = (getFramePrintArea().*fnRect->fnGetWidth)();
314  for ( SwLayoutFrame *pCol = static_cast<SwLayoutFrame*>(Lower());
315  pCol;
316  pCol = static_cast<SwLayoutFrame*>(pCol->GetNext()) )
317  nAvail -= (pCol->getFrameArea().*fnRect->fnGetWidth)();
318  if ( !nAvail )
319  return;
320  }
321  }
322 
323  //The columns can now be easily adjusted.
324  //The widths get counted so we can give the reminder to the last one.
325  SwTwips nAvail = (getFramePrintArea().*fnRect->fnGetWidth)();
326  const bool bLine = pAttr->GetLineAdj() != COLADJ_NONE;
327  const sal_uInt16 nMin = bLine ? sal_uInt16( 20 + ( pAttr->GetLineWidth() / 2) ) : 0;
328 
329  const bool bR2L = IsRightToLeft();
330  SwFrame *pCol = bR2L ? GetLastLower() : Lower();
331 
332  // #i27399#
333  // bOrtho means we have to adjust the column frames manually. Otherwise
334  // we may use the values returned by CalcColWidth:
335  const bool bOrtho = pAttr->IsOrtho() && pAttr->GetNumCols() > 0;
336  long nGutter = 0;
337 
338  for ( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; ++i ) //i118878, value returned by GetNumCols() can't be trusted
339  {
340  if( !bOrtho )
341  {
342  const SwTwips nWidth = i == (pAttr->GetNumCols() - 1) ?
343  nAvail :
344  pAttr->CalcColWidth( i, sal_uInt16( (getFramePrintArea().*fnRect->fnGetWidth)() ) );
345 
346  const Size aColSz = bVert ?
347  Size( getFramePrintArea().Width(), nWidth ) :
348  Size( nWidth, getFramePrintArea().Height() );
349 
350  pCol->ChgSize( aColSz );
351 
352  // With this, the ColumnBodyFrames from page columns gets adjusted and
353  // their bFixHeight flag is set so they won't shrink/grow.
354  // Don't use the flag with frame columns because BodyFrames in frame
355  // columns can grow/shrink.
356  if( IsBodyFrame() )
357  static_cast<SwLayoutFrame*>(pCol)->Lower()->ChgSize( aColSz );
358 
359  nAvail -= nWidth;
360  }
361 
362  if ( bOrtho || bAdjustAttributes )
363  {
364  const SwColumn *pC = &pAttr->GetColumns()[i];
365  const SwAttrSet* pSet = pCol->GetAttrSet();
366  SvxLRSpaceItem aLR( pSet->GetLRSpace() );
367 
368  //In order to have enough space for the separation lines, we have to
369  //take them into account here. Every time two columns meet we
370  //calculate a clearance of 20 + half the pen width on the left or
371  //right side, respectively.
372  const sal_uInt16 nLeft = pC->GetLeft();
373  const sal_uInt16 nRight = pC->GetRight();
374 
375  aLR.SetLeft ( nLeft );
376  aLR.SetRight( nRight );
377 
378  if ( bLine )
379  {
380  if ( i == 0 )
381  {
382  aLR.SetRight( std::max( nRight, nMin ) );
383  }
384  else if ( i == pAttr->GetNumCols() - 1 )
385  {
386  aLR.SetLeft ( std::max( nLeft, nMin ) );
387  }
388  else
389  {
390  aLR.SetLeft ( std::max( nLeft, nMin ) );
391  aLR.SetRight( std::max( nRight, nMin ) );
392  }
393  }
394 
395  if ( bAdjustAttributes )
396  {
397  SvxULSpaceItem aUL( pSet->GetULSpace() );
398  aUL.SetUpper(0);
399  aUL.SetLower(0);
400 
401  static_cast<SwLayoutFrame*>(pCol)->GetFormat()->SetFormatAttr( aLR );
402  static_cast<SwLayoutFrame*>(pCol)->GetFormat()->SetFormatAttr( aUL );
403  }
404 
405  nGutter += aLR.GetLeft() + aLR.GetRight();
406  }
407 
408  pCol = bR2L ? pCol->GetPrev() : pCol->GetNext();
409  }
410 
411  if( bOrtho )
412  {
413  long nInnerWidth = ( nAvail - nGutter ) / pAttr->GetNumCols();
414  pCol = Lower();
415  for( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; pCol = pCol->GetNext(), ++i ) //i118878, value returned by GetNumCols() can't be trusted
416  {
417  SwTwips nWidth;
418  if ( i == pAttr->GetNumCols() - 1 )
419  nWidth = nAvail;
420  else
421  {
422  SvxLRSpaceItem aLR( pCol->GetAttrSet()->GetLRSpace() );
423  nWidth = nInnerWidth + aLR.GetLeft() + aLR.GetRight();
424  }
425  if( nWidth < 0 )
426  nWidth = 0;
427 
428  const Size aColSz = bVert ?
429  Size( getFramePrintArea().Width(), nWidth ) :
430  Size( nWidth, getFramePrintArea().Height() );
431 
432  pCol->ChgSize( aColSz );
433 
434  if( IsBodyFrame() )
435  static_cast<SwLayoutFrame*>(pCol)->Lower()->ChgSize( aColSz );
436 
437  nAvail -= nWidth;
438  }
439  }
440 }
441 
442 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void InsertBefore(SwLayoutFrame *pParent, SwFrame *pBehind)
Insert SwFrame into existing structure.
Definition: wsfrm.cxx:821
long GetLeft() const
Base class of the Writer layout elements.
Definition: frame.hxx:295
const SvxLRSpaceItem & GetLRSpace(bool=true) const
Definition: frmatr.hxx:44
void Add(SwClient *pDepend)
Definition: calbck.cxx:217
const SwFormatCol & GetCol(bool=true) const
Definition: fmtclds.hxx:168
bool IsOrtho() const
Definition: fmtclds.hxx:121
void RemoveFootnotes(SwPageFrame *pPage=nullptr, bool bPageOnly=false, bool bEndNotes=false)
Remove all footnotes (but no references)
Definition: ftnfrm.cxx:900
virtual const SwRootFrame * GetCurrentLayout() const =0
const SwRect & getFramePrintArea() const
Definition: frame.hxx:176
SwFrameFormat * MakeFrameFormat(const OUString &rFormatName, SwFrameFormat *pDerivedFrom, bool bBroadcast=false, bool bAuto=true)
Definition: docfmt.cxx:833
Definition: doc.hxx:185
void SetMaxFootnoteHeight(const SwTwips nNewMax)
Definition: ftnboss.hxx:74
TElementType * Next()
Definition: calbck.hxx:376
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
Definition: wsfrm.cxx:1297
static void lcl_RemoveColumns(SwLayoutFrame *pCont, sal_uInt16 nCnt)
Definition: colfrm.cxx:65
long SwTwips
Definition: swtypes.hxx:49
SwRectGet fnGetWidth
Definition: frame.hxx:1271
static void DestroyFrame(SwFrame *const pFrame)
this is the only way to delete a SwFrame instance
Definition: ssfrm.cxx:382
SwTwips GetMaxFootnoteHeight() const
Definition: ftnboss.hxx:93
IDocumentUndoRedo & GetIDocumentUndoRedo()
Definition: doc.cxx:176
bool IsVertLRBT() const
Definition: frame.hxx:959
friend SwFrame * SaveContent(SwLayoutFrame *, SwFrame *)
Definition: frmtool.cxx:2619
virtual Size ChgSize(const Size &aNewSize)
Definition: wsfrm.cxx:722
SwRectFn fnRectVertL2R
Definition: newfrm.cxx:290
bool IsPageBodyFrame() const
Definition: layfrm.hxx:213
bool IsSctFrame() const
Definition: frame.hxx:1190
virtual void DestroyImpl() override
Definition: ssfrm.cxx:473
SwRectFn fnRectHori
Definition: newfrm.cxx:288
const SwAttrSet * GetAttrSet() const
WARNING: this may not return correct RES_PAGEDESC/RES_BREAK items for SwTextFrame, use GetBreakItem()/GetPageDescItem() instead.
Definition: findfrm.cxx:674
bool IsColumnFrame() const
Definition: frame.hxx:1158
SwRectFn fnRectVertL2RB2T
Definition: newfrm.cxx:291
bool IsInDtor() const
Definition: frame.hxx:868
Style of a layout element.
Definition: frmfmt.hxx:57
static SwLayoutFrame * lcl_FindColumns(SwLayoutFrame *pLay, sal_uInt16 nCount)
Definition: colfrm.cxx:87
const SwColumns & GetColumns() const
Definition: fmtclds.hxx:112
const SwFrame * GetLastLower() const
Definition: findfrm.cxx:1817
void SetFrameFormat(SwFrameFormat *)
Definition: ssfrm.cxx:403
virtual bool IsModified() const =0
Changes of document?
SwPageFrame * FindPageFrame()
Definition: frame.hxx:658
virtual void Cut() override
Definition: wsfrm.cxx:1394
SwColumnFrame(SwFrameFormat *, SwFrame *)
Definition: colfrm.cxx:37
const SwFrame * Lower() const
Definition: layfrm.hxx:100
int i
sal_uInt16 CalcColWidth(sal_uInt16 nCol, sal_uInt16 nAct) const
Calculates current width of column nCol.
Definition: atrfrm.cxx:969
void ChgColumns(const SwFormatCol &rOld, const SwFormatCol &rNew, const bool bChgFootnote=false)
add or remove columns from a layoutframe.
Definition: colfrm.cxx:184
bool HasOnlyOneListener()
Definition: calbck.hxx:226
SwLayoutFrame * GetUpper()
Definition: frame.hxx:656
const SwFrameFormat * GetColumnContFormat() const
Definition: doc.hxx:744
IDocumentState const & getIDocumentState() const
Definition: doc.cxx:426
friend void RestoreContent(SwFrame *, SwLayoutFrame *, SwFrame *pSibling)
Definition: frmtool.cxx:2782
SwFrame * GetPrev()
Definition: frame.hxx:655
const SwDoc * GetDoc() const
The document is set in SwAttrPool now, therefore you always can access it.
Definition: format.hxx:119
static bool lcl_AddColumns(SwLayoutFrame *pCont, sal_uInt16 nCount)
Definition: colfrm.cxx:104
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Definition: doc.cxx:437
const long LONG_MAX
const SwFrameFormat * GetDfltFrameFormat() const
Definition: doc.hxx:740
void sw_RemoveFootnotes(SwFootnoteBossFrame *pBoss, bool bPageOnly, bool bEndNotes)
remove all footnotes (not the references) and all footnote pages
Definition: ftnfrm.cxx:846
virtual bool SetFormatAttr(const SfxPoolItem &rAttr)
Definition: format.cxx:458
sal_uInt16 GetWishWidth() const
Definition: fmtclds.hxx:122
bool IsLayoutFrame() const
Definition: frame.hxx:1146
bool IsVertLR() const
Definition: frame.hxx:955
const SvxULSpaceItem & GetULSpace(bool=true) const
Definition: frmatr.hxx:46
sal_uInt16 GetRight() const
Definition: fmtclds.hxx:52
void InsertBehind(SwLayoutFrame *pParent, SwFrame *pBefore)
Insert SwFrame into existing structure.
Definition: wsfrm.cxx:856
bool IsNoTextFrame() const
Definition: frame.hxx:1214
sal_uLong GetLineWidth() const
Definition: fmtclds.hxx:117
bool IsRightToLeft() const
Definition: frame.hxx:963
SwFrameType mnFrameType
Definition: frame.hxx:395
bool IsPageFrame() const
Definition: frame.hxx:1154
ColumnDescriptor.
Definition: fmtclds.hxx:33
sal_uInt16 GetLeft() const
Definition: fmtclds.hxx:51
void DelFrameFormat(SwFrameFormat *pFormat, bool bBroadcast=false)
Definition: docfmt.cxx:715
bool IsVertical() const
Definition: frame.hxx:949
sal_uInt16 GetNumCols() const
Definition: fmtclds.hxx:114
void AdjustColumns(const SwFormatCol *pCol, bool bAdjustAttributes)
Definition: colfrm.cxx:294
SwRectFn fnRectVert
Definition: newfrm.cxx:289
virtual void DestroyImpl() override
Definition: colfrm.cxx:46
bool IsBodyFrame() const
Definition: frame.hxx:1182
void SetUpper(const sal_uInt16 nU, const sal_uInt16 nProp=100)
virtual ~SwColumnFrame() override
Definition: colfrm.cxx:61
Container of body content (i.e.
Definition: bodyfrm.hxx:28
SwColLineAdj GetLineAdj() const
Definition: fmtclds.hxx:120
virtual const SwFrameFormat * GetFormat() const
Definition: ssfrm.cxx:393
virtual void ResetModified()=0
SwFrame * GetNext()
Definition: frame.hxx:654