LibreOffice Module sw (master)  1
frame.hxx
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 #ifndef INCLUDED_SW_SOURCE_CORE_INC_FRAME_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_FRAME_HXX
22 
24 #include <editeng/borderline.hxx>
25 #include <svl/poolitem.hxx>
26 #include <swtypes.hxx>
27 #include <swrect.hxx>
28 #include <calbck.hxx>
29 #include <svl/SfxBroadcaster.hxx>
30 #include <o3tl/typed_flags_set.hxx>
31 #include <com/sun/star/style/TabStop.hpp>
33 #include <vcl/outdev.hxx>
34 
35 #include <memory>
36 
37 namespace drawinglayer::processor2d { class BaseProcessor2D; }
38 
39 class SwLayoutFrame;
40 class SwRootFrame;
41 class SwPageFrame;
42 class SwBodyFrame;
43 class SwFlyFrame;
44 class SwSectionFrame;
45 class SwFootnoteFrame;
47 class SwTabFrame;
48 class SwRowFrame;
49 class SwContentFrame;
50 class SwAttrSet;
51 class Color;
52 class SwBorderAttrs;
53 class SwCache;
54 class SvxBrushItem;
55 class SvxFormatBreakItem;
56 class SwFormatPageDesc;
57 class SwSelectionList;
58 struct SwPosition;
59 struct SwCursorMoveState;
60 class SwFormat;
61 class SwPrintData;
62 class SwSortedObjs;
63 class SwAnchoredObject;
64 enum class SvxFrameDirection;
66 
67 // Each FrameType is represented here as a bit.
68 // The bits must be set in a way that it can be determined with masking of
69 // which kind of FrameType an instance is _and_ from what classes it was derived.
70 // Each frame has in its base class a member that must be set by the
71 // constructors accordingly.
72 enum class SwFrameType
73 {
74  None = 0x0000,
75  Root = 0x0001,
76  Page = 0x0002,
77  Column = 0x0004,
78  Header = 0x0008,
79  Footer = 0x0010,
80  FtnCont = 0x0020,
81  Ftn = 0x0040,
82  Body = 0x0080,
83  Fly = 0x0100,
84  Section = 0x0200,
85 // UNUSED 0x0400
86  Tab = 0x0800,
87  Row = 0x1000,
88  Cell = 0x2000,
89  Txt = 0x4000,
90  NoTxt = 0x8000,
91 };
92 
93 namespace o3tl
94 {
95  template<> struct typed_flags<SwFrameType> : is_typed_flags<SwFrameType, 0xfbff> {};
96 };
97 
98 // for internal use some common combinations
99 #define FRM_LAYOUT SwFrameType(0x3bFF)
100 #define FRM_ALL SwFrameType(0xfbff)
101 #define FRM_CNTNT (SwFrameType::Txt | SwFrameType::NoTxt)
102 #define FRM_FTNBOSS (SwFrameType::Page | SwFrameType::Column)
103 #define FRM_ACCESSIBLE (SwFrameType::Root | SwFrameType::Page | SwFrameType::Header | SwFrameType::Footer | SwFrameType::Ftn | SwFrameType::Fly | SwFrameType::Tab | SwFrameType::Cell | SwFrameType::Txt)
104 #define FRM_NEIGHBOUR (SwFrameType::Column | SwFrameType::Cell)
105 #define FRM_NOTE_VERT (SwFrameType::FtnCont | SwFrameType::Ftn | SwFrameType::Section | SwFrameType::Tab | SwFrameType::Row | SwFrameType::Cell | SwFrameType::Txt)
106 #define FRM_HEADFOOT (SwFrameType::Header | SwFrameType::Footer)
107 #define FRM_BODYFTNC (SwFrameType::FtnCont | SwFrameType::Body)
108 
109 // for GetNextLeaf/GetPrevLeaf.
111 {
112  MAKEPAGE_NONE, // do not create page/footnote
113  MAKEPAGE_APPEND, // only append page if needed
114  MAKEPAGE_INSERT, // add or append page if needed
115  MAKEPAGE_FTN, // add footnote if needed
116  MAKEPAGE_NOSECTION // Don't create section frames
117 };
118 
119 namespace drawinglayer { namespace attribute {
121  typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
122 }}
123 
131 {
132 private:
133  // The absolute position and size of the SwFrame in the document.
134  // This values are set by the layouter implementations
136 
137  // The 'inner' Frame Area defined by a SwRect relative to FrameArea:
138  // When identical to FrameArea, Pos() will be (0, 0) and Size identical.
140 
141  // bitfield
142  bool mbFrameAreaPositionValid : 1;
143  bool mbFrameAreaSizeValid : 1;
144  bool mbFramePrintAreaValid : 1;
145 
146  // #i65250#
147  // frame ID is now in general available - used for layout loop control
148  static sal_uInt32 mnLastFrameId;
149  const sal_uInt32 mnFrameId;
150 
151 protected:
152  // write access to mb*Valid flags
153  void setFrameAreaPositionValid(bool bNew);
154  void setFrameAreaSizeValid(bool bNew);
155  void setFramePrintAreaValid(bool bNew);
156 
157 public:
159  virtual ~SwFrameAreaDefinition();
160 
161  // read access to mb*Valid flags
162  bool isFrameAreaPositionValid() const { return mbFrameAreaPositionValid; }
163  bool isFrameAreaSizeValid() const { return mbFrameAreaSizeValid; }
164  bool isFramePrintAreaValid() const { return mbFramePrintAreaValid; }
165 
166  // syntactic sugar: test whole FrameAreaDefinition
167  bool isFrameAreaDefinitionValid() const { return isFrameAreaPositionValid() && isFrameAreaSizeValid() && isFramePrintAreaValid(); }
168 
169  // #i65250#
170  sal_uInt32 GetFrameId() const { return mnFrameId; }
171 
172  // read accesses to FrameArea definitions - only const access allowed.
173  // Do *not* const_cast results, it is necessary to track changes. use
174  // the below offered WriteAccess helper classes instead
175  const SwRect& getFrameArea() const { return maFrameArea; }
176  const SwRect& getFramePrintArea() const { return maFramePrintArea; }
177 
178  // helper class(es) for FrameArea manipulation. These
179  // have to be used to apply changes to FrameAreas. They hold a copy of the
180  // SwRect for manipulation. It gets written back at destruction. Thus, this
181  // mechanism depends on scope usage, take care. It prevents errors using
182  // different instances of SwFrame in get/set methods which is more safe
184  {
185  private:
187 
189  FrameAreaWriteAccess& operator=(const FrameAreaWriteAccess&) = delete;
190 
191  public:
192  FrameAreaWriteAccess(SwFrameAreaDefinition& rTarget) : SwRect(rTarget.getFrameArea()), mrTarget(rTarget) {}
194  void setSwRect(const SwRect& rNew) { *reinterpret_cast< SwRect* >(this) = rNew; }
195  };
196 
197  // same helper for FramePrintArea
199  {
200  private:
202 
204  FramePrintAreaWriteAccess& operator=(const FramePrintAreaWriteAccess&) = delete;
205 
206  public:
207  FramePrintAreaWriteAccess(SwFrameAreaDefinition& rTarget) : SwRect(rTarget.getFramePrintArea()), mrTarget(rTarget) {}
209  void setSwRect(const SwRect& rNew) { *reinterpret_cast< SwRect* >(this) = rNew; }
210  };
211 
212  // RotateFlyFrame3 - Support for Transformations
213  // Hand out the Transformations for the current FrameAreaDefinition
214  // for the FrameArea and FramePrintArea.
215  // FramePrintArea is not relative to FrameArea in this
216  // transformation representation (to make it easier to use and understand).
217  // There is no 'set' method since SwFrame is a layout object. For
218  // some cases rotation will be included (used for SwGrfNode in inner
219  // SwFrame of a SwFlyFrame)
220  virtual basegfx::B2DHomMatrix getFrameAreaTransformation() const;
221  virtual basegfx::B2DHomMatrix getFramePrintAreaTransformation() const;
222 
223  // RotateFlyFrame3 - Support for Transformations
224  // Modify current transformations by applying given translation
225  virtual void transform_translate(const Point& rOffset);
226 };
227 
232 {
233 private:
234  // The SwFrameAreaDefinition to work on
236 
237  // FrameAreaTransformation and FramePrintAreaTransformation
238  // !identity when needed (translate/scale is used (e.g. rotation))
241 
242 public:
244  : mrSwFrameAreaDefinition(rSwFrameAreaDefinition),
245  maFrameAreaTransformation(),
246  maFramePrintAreaTransformation()
247  {
248  }
249 
250  // get SwFrameArea in transformation form
252  {
253  return maFrameAreaTransformation;
254  }
255 
256  // get SwFramePrintArea in transformation form
258  {
259  return maFramePrintAreaTransformation;
260  }
261 
262  // Helpers to re-create the untransformed SwRect(s) originally
263  // in the SwFrameAreaDefinition, based on the current Transformations.
264  SwRect getUntransformedFrameArea() const;
265  SwRect getUntransformedFramePrintArea() const;
266 
267  // Helper method to re-create FrameAreaTransformations based on the
268  // current FrameAreaDefinition transformed by given rotation and Center
269  void createFrameAreaTransformations(
270  double fRotation,
271  const basegfx::B2DPoint& rCenter);
272 
273  // Tooling method to reset the SwRect(s) in the current
274  // SwFrameAreaDefinition which are already adapted to
275  // Transformation back to the untransformed state, using
276  // the getUntransformedFrame*Area calls above when needed.
277  // Only the SwRect(s) are changed back, not the transformations.
278  void restoreFrameAreas();
279 
280  // Re-Creates the SwRect(s) as BoundAreas based on the current
281  // set Transformations.
282  void adaptFrameAreasToTransformations();
283 
284  // Modify current definitions by applying the given transformation
285  void transform(const basegfx::B2DHomMatrix& aTransform);
286 };
287 
296 {
297  // the hidden Frame
298  friend class SwFlowFrame;
299  friend class SwLayoutFrame;
300  friend class SwLooping;
301  friend class SwDeletionChecker; // for GetDep()
302 
303  // voids lower during creation of a column
304  friend SwFrame *SaveContent( SwLayoutFrame *, SwFrame* pStart );
305  friend void RestoreContent( SwFrame *, SwLayoutFrame *, SwFrame *pSibling );
306 
307  // for validating a mistakenly invalidated one in SwContentFrame::MakeAll
308  friend void ValidateSz( SwFrame *pFrame );
309  // implemented in text/txtftn.cxx, prevents Footnote oscillation
310  friend void ValidateText( SwFrame *pFrame );
311 
312  friend void MakeNxt( SwFrame *pFrame, SwFrame *pNxt );
313 
314  // cache for (border) attributes
315  static SwCache *mpCache;
316 
321 
322  // sw_redlinehide: hide these dangerous SwClient functions
325 
326  SwFrame *FindNext_();
327  SwFrame *FindPrev_();
328 
356  SwContentFrame* FindNextCnt_( const bool _bInSameFootnote );
357 
383  SwContentFrame* FindPrevCnt_();
384 
385  void UpdateAttrFrame( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 & );
386  SwFrame* GetIndNext_();
387  void SetDirFlags( bool bVert );
388 
389  const SwLayoutFrame* ImplGetNextLayoutLeaf( bool bFwd ) const;
390 
391  SwPageFrame* ImplFindPageFrame();
392 
393 protected:
394  std::unique_ptr<SwSortedObjs> m_pDrawObjs; // draw objects, can be null
396 
397  bool mbInDtor : 1;
398  bool mbInvalidR2L : 1;
399  bool mbDerivedR2L : 1;
400  bool mbRightToLeft : 1;
401  bool mbInvalidVert : 1;
402  bool mbDerivedVert : 1;
403  bool mbVertical : 1;
404 
405  bool mbVertLR : 1;
406  bool mbVertLRBT : 1;
407 
408  bool mbValidLineNum : 1;
409  bool mbFixSize : 1;
410 
411  // if true, frame will be painted completely even content was changed
412  // only partially. For ContentFrames a border (from Action) will exclusively
413  // painted if <mbCompletePaint> is true.
414  bool mbCompletePaint : 1;
415 
416  bool mbRetouche : 1; // frame is responsible for retouching
417 
418  bool mbInfInvalid : 1; // InfoFlags are invalid
419  bool mbInfBody : 1; // Frame is in document body
420  bool mbInfTab : 1; // Frame is in a table
421  bool mbInfFly : 1; // Frame is in a Fly
422  bool mbInfFootnote : 1; // Frame is in a footnote
423  bool mbInfSct : 1; // Frame is in a section
424  bool mbColLocked : 1; // lock Grow/Shrink for column-wise section
425  // or fly frames, will be set in Format
426  bool m_isInDestroy : 1;
427  bool mbForbidDelete : 1;
428 
429  void ColLock() { mbColLocked = true; }
430  void ColUnlock() { mbColLocked = false; }
431 
432  virtual void DestroyImpl();
433  virtual ~SwFrame() override;
434 
435  // Only used by SwRootFrame Ctor to get 'this' into mpRoot...
436  void setRootFrame( SwRootFrame* pRoot ) { mpRoot = pRoot; }
437 
438  SwPageFrame *InsertPage( SwPageFrame *pSibling, bool bFootnote );
439  void PrepareMake(vcl::RenderContext* pRenderContext);
440  void OptPrepareMake();
441  virtual void MakePos();
442  // Format next frame of table frame to assure keeping attributes.
443  // In case of nested tables method <SwFrame::MakeAll()> is called to
444  // avoid formatting of superior table frame.
445  friend SwFrame* sw_FormatNextContentForKeep( SwTabFrame* pTabFrame );
446 
447  virtual void MakeAll(vcl::RenderContext* pRenderContext) = 0;
448  // adjust frames of a page
449  SwTwips AdjustNeighbourhood( SwTwips nDiff, bool bTst = false );
450 
451  // change only frame size not the size of PrtArea
452  virtual SwTwips ShrinkFrame( SwTwips, bool bTst = false, bool bInfo = false ) = 0;
453  virtual SwTwips GrowFrame ( SwTwips, bool bTst = false, bool bInfo = false ) = 0;
454 
458  const SwModify *GetDep() const { return GetRegisteredIn(); }
459 
460  SwFrame( SwModify*, SwFrame* );
461 
462  void CheckDir( SvxFrameDirection nDir, bool bVert, bool bOnlyBiDi, bool bBrowse );
463 
468  {
469  INVALID_SIZE, INVALID_PRTAREA, INVALID_POS, INVALID_LINENUM, INVALID_ALL
470  };
471 
475  virtual bool InvalidationAllowed( const InvalidationType _nInvalid ) const;
476 
483  virtual void ActionOnInvalidation( const InvalidationType _nInvalid );
484 
485  // draw shadow and borders
486  void PaintShadow( const SwRect&, SwRect&, const SwBorderAttrs& ) const;
487  virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) override;
488 
489  virtual const IDocumentDrawModelAccess& getIDocumentDrawModelAccess( );
490 
491 public:
492  virtual css::uno::Sequence< css::style::TabStop > GetTabStopInfo( SwTwips )
493  {
494  return css::uno::Sequence< css::style::TabStop >();
495  }
496 
497 
498  SwFrameType GetType() const { return mnFrameType; }
499 
500  static SwCache &GetCache() { return *mpCache; }
501  static SwCache *GetCachePtr() { return mpCache; }
502  static void SetCache( SwCache *pNew ) { mpCache = pNew; }
503 
504  // change PrtArea size and FrameSize
505  SwTwips Shrink( SwTwips, bool bTst = false, bool bInfo = false );
506  SwTwips Grow ( SwTwips, bool bTst = false, bool bInfo = false );
507 
508  // different methods for inserting in layout tree (for performance reasons)
509 
510  // insert before pBehind or at the end of the chain below mpUpper
511  void InsertBefore( SwLayoutFrame* pParent, SwFrame* pBehind );
512  // insert after pBefore or at the beginning of the chain below mpUpper
513  void InsertBehind( SwLayoutFrame *pParent, SwFrame *pBefore );
514  // insert before pBehind or at the end of the chain while considering
515  // the siblings of pSct
516  bool InsertGroupBefore( SwFrame* pParent, SwFrame* pWhere, SwFrame* pSct );
517  void RemoveFromLayout();
518 
519  // For internal use only - who ignores this will be put in a sack and has
520  // to stay there for two days
521  // Does special treatment for Get_[Next|Prev]Leaf() (for tables).
522  SwLayoutFrame *GetLeaf( MakePageType eMakePage, bool bFwd );
523  SwLayoutFrame *GetNextLeaf ( MakePageType eMakePage );
524  SwLayoutFrame *GetNextFootnoteLeaf( MakePageType eMakePage );
525  SwLayoutFrame *GetNextSctLeaf( MakePageType eMakePage );
526  SwLayoutFrame *GetNextCellLeaf();
527  SwLayoutFrame *GetPrevLeaf ();
528  SwLayoutFrame *GetPrevFootnoteLeaf( MakePageType eMakeFootnote );
529  SwLayoutFrame *GetPrevSctLeaf();
530  SwLayoutFrame *GetPrevCellLeaf();
531  const SwLayoutFrame *GetLeaf ( MakePageType eMakePage, bool bFwd,
532  const SwFrame *pAnch ) const;
533 
534  bool WrongPageDesc( SwPageFrame* pNew );
535 
536  //#i28701# - new methods to append/remove drawing objects
537  void AppendDrawObj( SwAnchoredObject& _rNewObj );
538  void RemoveDrawObj( SwAnchoredObject& _rToRemoveObj );
539 
540  // work with chain of FlyFrames
541  void AppendFly( SwFlyFrame *pNew );
542  void RemoveFly( SwFlyFrame *pToRemove );
543  const SwSortedObjs *GetDrawObjs() const { return m_pDrawObjs.get(); }
544  SwSortedObjs *GetDrawObjs() { return m_pDrawObjs.get(); }
545  // #i28701# - change purpose of method and adjust its name
546  void InvalidateObjs( const bool _bNoInvaOfAsCharAnchoredObjs = true );
547 
548  virtual void PaintSwFrameShadowAndBorder(
549  const SwRect&,
550  const SwPageFrame* pPage,
551  const SwBorderAttrs&) const;
552  void PaintBaBo( const SwRect&, const SwPageFrame *pPage,
553  const bool bOnlyTextBackground = false) const;
554  void PaintSwFrameBackground( const SwRect&, const SwPageFrame *pPage,
555  const SwBorderAttrs &,
556  const bool bLowerMode = false,
557  const bool bLowerBorder = false,
558  const bool bOnlyTextBackground = false ) const;
559  void PaintBorderLine( const SwRect&, const SwRect&, const SwPageFrame*,
560  const Color *pColor,
561  const SvxBorderLineStyle = SvxBorderLineStyle::SOLID ) const;
562 
563  std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> CreateProcessor2D( ) const;
564  void ProcessPrimitives( const drawinglayer::primitive2d::Primitive2DContainer& rSequence ) const;
565 
566  // retouch, not in the area of the given Rect!
567  void Retouch( const SwPageFrame *pPage, const SwRect &rRect ) const;
568 
569  bool GetBackgroundBrush(
571  const SvxBrushItem*& rpBrush,
572  const Color*& rpColor,
573  SwRect &rOrigRect,
574  bool bLowerMode,
575  bool bConsiderTextBox ) const;
576 
577  inline void SetCompletePaint() const;
578  inline void ResetCompletePaint() const;
579  bool IsCompletePaint() const { return mbCompletePaint; }
580 
581  inline void SetRetouche() const;
582  inline void ResetRetouche() const;
583  bool IsRetouche() const { return mbRetouche; }
584 
585  void SetInfFlags();
586  void InvalidateInfFlags() { mbInfInvalid = true; }
587  inline bool IsInDocBody() const; // use InfoFlags, determine flags
588  inline bool IsInFootnote() const; // if necessary
589  inline bool IsInTab() const;
590  inline bool IsInFly() const;
591  inline bool IsInSct() const;
592 
593  // If frame is inside a split table row, this function returns
594  // the corresponding row frame in the follow table.
595  const SwRowFrame* IsInSplitTableRow() const;
596 
597  // If frame is inside a follow flow row, this function returns
598  // the corresponding row frame master table
599  const SwRowFrame* IsInFollowFlowRow() const;
600 
601  bool IsInBalancedSection() const;
602 
603  inline bool IsVertical() const;
604  inline bool IsVertLR() const;
605  inline bool IsVertLRBT() const;
606 
607  void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew; }
608  void SetInvalidVert( bool bNew) { mbInvalidVert = bNew; }
609  inline bool IsRightToLeft() const;
610  void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew; }
611 
612  void CheckDirChange();
613  // returns upper left frame position for LTR and
614  // upper right frame position for Asian / RTL frames
615  Point GetFrameAnchorPos( bool bIgnoreFlysAnchoredAtThisFrame ) const;
616 
630  bool IsMoveable( const SwLayoutFrame* _pLayoutFrame = nullptr ) const;
631 
632  // Is it permitted for the (Text)Frame to add a footnote in the current
633  // environment (not e.g. for repeating table headlines)
634  bool IsFootnoteAllowed() const;
635 
636  virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr );
637 
638  virtual void CheckDirection( bool bVert );
639 
640  void ReinitializeFrameSizeAttrFlags();
641 
644  const SwAttrSet *GetAttrSet() const;
645  virtual const SvxFormatBreakItem& GetBreakItem() const;
646  virtual const SwFormatPageDesc& GetPageDescItem() const;
647 
648  bool HasFixSize() const { return mbFixSize; }
649 
650  // check all pages (starting from the given) and correct them if needed
651  static void CheckPageDescs( SwPageFrame *pStart, bool bNotifyFields = true, SwPageFrame** ppPrev = nullptr);
652 
653  // might return 0, with and without const
654  SwFrame *GetNext() { return mpNext; }
655  SwFrame *GetPrev() { return mpPrev; }
656  SwLayoutFrame *GetUpper() { return mpUpper; }
657  SwRootFrame *getRootFrame(){ return mpRoot; }
658  SwPageFrame *FindPageFrame() { return IsPageFrame() ? reinterpret_cast<SwPageFrame*>(this) : ImplFindPageFrame(); }
659  SwFrame *FindColFrame();
660  SwRowFrame *FindRowFrame();
661  SwFootnoteBossFrame *FindFootnoteBossFrame( bool bFootnotes = false );
662  SwTabFrame *ImplFindTabFrame();
663  SwFootnoteFrame *ImplFindFootnoteFrame();
664  SwFlyFrame *ImplFindFlyFrame();
665  SwSectionFrame *ImplFindSctFrame();
666  const SwBodyFrame *ImplFindBodyFrame() const;
667  SwFrame *FindFooterOrHeader();
668  SwFrame *GetLower();
669  const SwFrame *GetNext() const { return mpNext; }
670  const SwFrame *GetPrev() const { return mpPrev; }
671  const SwLayoutFrame *GetUpper() const { return mpUpper; }
672  const SwRootFrame *getRootFrame() const { return mpRoot; }
673  inline SwTabFrame *FindTabFrame();
674  inline SwFootnoteFrame *FindFootnoteFrame();
675  inline SwFlyFrame *FindFlyFrame();
676  inline SwSectionFrame *FindSctFrame();
677  inline SwFrame *FindNext();
678  // #i27138# - add parameter <_bInSameFootnote>
679  SwContentFrame* FindNextCnt( const bool _bInSameFootnote = false );
680  inline SwFrame *FindPrev();
681  inline const SwPageFrame *FindPageFrame() const;
682  inline const SwFootnoteBossFrame *FindFootnoteBossFrame( bool bFootnote = false ) const;
683  inline const SwFrame *FindColFrame() const;
684  inline const SwFrame *FindFooterOrHeader() const;
685  inline const SwTabFrame *FindTabFrame() const;
686  inline const SwFootnoteFrame *FindFootnoteFrame() const;
687  inline const SwFlyFrame *FindFlyFrame() const;
688  inline const SwSectionFrame *FindSctFrame() const;
689  inline const SwBodyFrame *FindBodyFrame() const;
690  inline const SwFrame *FindNext() const;
691  // #i27138# - add parameter <_bInSameFootnote>
692  const SwContentFrame* FindNextCnt( const bool _bInSameFootnote = false ) const;
693  inline const SwFrame *FindPrev() const;
694  const SwFrame *GetLower() const;
695 
696  SwContentFrame* FindPrevCnt();
697 
698  const SwContentFrame* FindPrevCnt() const;
699 
700  // #i79774#
701  SwFrame* GetIndPrev_() const;
703  { return ( mpPrev || !IsInSct() ) ? mpPrev : GetIndPrev_(); }
704 
706  { return ( mpNext || !IsInSct() ) ? mpNext : GetIndNext_(); }
707  const SwFrame* GetIndNext() const { return const_cast<SwFrame*>(this)->GetIndNext(); }
708 
709  sal_uInt16 GetPhyPageNum() const; // page number without offset
710  sal_uInt16 GetVirtPageNum() const; // page number with offset
711  bool OnRightPage() const { return 0 != GetPhyPageNum() % 2; };
712  bool WannaRightPage() const;
713  bool OnFirstPage() const;
714 
715  inline const SwLayoutFrame *GetPrevLayoutLeaf() const;
716  inline const SwLayoutFrame *GetNextLayoutLeaf() const;
717  inline SwLayoutFrame *GetPrevLayoutLeaf();
718  inline SwLayoutFrame *GetNextLayoutLeaf();
719 
720  virtual void Calc(vcl::RenderContext* pRenderContext) const; // here might be "formatted"
721  inline void OptCalc() const; // here we assume (for optimization) that
722  // the predecessors are already formatted
723  Point GetRelPos() const;
724 
725  // PaintArea is the area where content might be displayed.
726  // The margin of a page or the space between columns belongs to it.
727  const SwRect GetPaintArea() const;
728 
729  // UnionFrame is the union of Frame- and PrtArea, normally identical
730  // to the FrameArea except in case of negative Prt margins.
731  const SwRect UnionFrame( bool bBorder = false ) const;
732 
733  virtual Size ChgSize( const Size& aNewSize );
734 
735  virtual void Cut() = 0;
736  virtual void Paste( SwFrame* pParent, SwFrame* pSibling = nullptr ) = 0;
737 
738  void ValidateLineNum() { mbValidLineNum = true; }
739 
740  bool GetValidLineNumFlag()const { return mbValidLineNum; }
741 
742  // Only invalidate Frame
743  // #i28701# - add call to method <ActionOnInvalidation(..)>
744  // for all invalidation methods.
745  // #i28701# - use method <InvalidationAllowed(..)> to
746  // decide, if invalidation will to be performed or not.
747  // #i26945# - no additional invalidation, if it's already
748  // invalidate.
750  {
751  if ( isFrameAreaSizeValid() && InvalidationAllowed( INVALID_SIZE ) )
752  {
753  setFrameAreaSizeValid(false);
754  ActionOnInvalidation( INVALID_SIZE );
755  }
756  }
758  {
759  if ( isFramePrintAreaValid() && InvalidationAllowed( INVALID_PRTAREA ) )
760  {
761  setFramePrintAreaValid(false);
762  ActionOnInvalidation( INVALID_PRTAREA );
763  }
764  }
766  {
767  if ( isFrameAreaPositionValid() && InvalidationAllowed( INVALID_POS ) )
768  {
770  ActionOnInvalidation( INVALID_POS );
771  }
772  }
774  {
775  if ( mbValidLineNum && InvalidationAllowed( INVALID_LINENUM ) )
776  {
777  mbValidLineNum = false;
778  ActionOnInvalidation( INVALID_LINENUM );
779  }
780  }
782  {
783  if ( ( isFrameAreaSizeValid() || isFramePrintAreaValid() || isFrameAreaPositionValid() ) && InvalidationAllowed( INVALID_ALL ) )
784  {
785  setFrameAreaSizeValid(false);
787  setFramePrintAreaValid(false);
788  ActionOnInvalidation( INVALID_ALL );
789  }
790  }
791  // also notify page at the same time
792  inline void InvalidateSize();
793  inline void InvalidatePrt();
794  inline void InvalidatePos();
795  inline void InvalidateLineNum();
796  inline void InvalidateAll();
797  void ImplInvalidateSize();
798  void ImplInvalidatePrt();
799  void ImplInvalidatePos();
800  void ImplInvalidateLineNum();
801 
802  inline void InvalidateNextPos( bool bNoFootnote = false );
803  void ImplInvalidateNextPos( bool bNoFootnote );
804 
808  void InvalidateNextPrtArea();
809 
810  void InvalidatePage( const SwPageFrame *pPage = nullptr ) const;
811 
812  virtual bool FillSelection( SwSelectionList& rList, const SwRect& rRect ) const;
813 
814  virtual bool GetCursorOfst( SwPosition *, Point&,
815  SwCursorMoveState* = nullptr, bool bTestBackground = false ) const;
816  virtual bool GetCharRect( SwRect &, const SwPosition&,
817  SwCursorMoveState* = nullptr, bool bAllowFarAway = true ) const;
818  virtual void PaintSwFrame( vcl::RenderContext& rRenderContext, SwRect const&,
819  SwPrintData const*const pPrintData = nullptr ) const;
820 
821  // HACK: shortcut between frame and formatting
822  // It's your own fault if you cast void* incorrectly! In any case check
823  // the void* for 0.
824  virtual bool Prepare( const PrepareHint ePrep = PREP_CLEAR,
825  const void *pVoid = nullptr, bool bNotify = true );
826 
827  // true if it is the correct class, false otherwise
828  inline bool IsLayoutFrame() const;
829  inline bool IsRootFrame() const;
830  inline bool IsPageFrame() const;
831  inline bool IsColumnFrame() const;
832  inline bool IsFootnoteBossFrame() const; // footnote bosses might be PageFrames or ColumnFrames
833  inline bool IsHeaderFrame() const;
834  inline bool IsFooterFrame() const;
835  inline bool IsFootnoteContFrame() const;
836  inline bool IsFootnoteFrame() const;
837  inline bool IsBodyFrame() const;
838  inline bool IsColBodyFrame() const; // implemented in layfrm.hxx, BodyFrame above ColumnFrame
839  inline bool IsPageBodyFrame() const; // implemented in layfrm.hxx, BodyFrame above PageFrame
840  inline bool IsFlyFrame() const;
841  inline bool IsSctFrame() const;
842  inline bool IsTabFrame() const;
843  inline bool IsRowFrame() const;
844  inline bool IsCellFrame() const;
845  inline bool IsContentFrame() const;
846  inline bool IsTextFrame() const;
847  inline bool IsNoTextFrame() const;
848  // Frames where its PrtArea depends on their neighbors and that are
849  // positioned in the content flow
850  inline bool IsFlowFrame() const;
851  // Frames that are capable of retouching or that might need to retouch behind
852  // themselves
853  inline bool IsRetoucheFrame() const;
854  inline bool IsAccessibleFrame() const;
855 
856  void PrepareCursor(); // CursorShell is allowed to call this
857 
858  // Is the Frame (or the section containing it) protected? Same for Fly in
859  // Fly in ... and footnotes
860  bool IsProtected() const;
861 
862  bool IsColLocked() const { return mbColLocked; }
863  virtual bool IsDeleteForbidden() const { return mbForbidDelete; }
864 
866  static void DestroyFrame(SwFrame *const pFrame);
867 
868  bool IsInDtor() const { return mbInDtor; }
869 
870  // No inline cause we need the function pointers
871  long GetTopMargin() const;
872  long GetBottomMargin() const;
873  long GetLeftMargin() const;
874  long GetRightMargin() const;
875  void SetTopBottomMargins( long, long );
876  void SetLeftRightMargins( long, long );
877  void SetRightLeftMargins( long, long );
878  long GetPrtLeft() const;
879  long GetPrtBottom() const;
880  long GetPrtRight() const;
881  long GetPrtTop() const;
882  bool SetMinLeft( long );
883  bool SetMaxBottom( long );
884  bool SetMaxRight( long );
885  void MakeBelowPos( const SwFrame*, const SwFrame*, bool );
886  void MakeLeftPos( const SwFrame*, const SwFrame*, bool );
887  void MakeRightPos( const SwFrame*, const SwFrame*, bool );
888  bool IsNeighbourFrame() const
889  { return bool(GetType() & FRM_NEIGHBOUR); }
890 
891  // NEW TABLES
892  // Some functions for covered/covering table cells. This way unnecessary
893  // includes can be avoided
894  bool IsLeaveUpperAllowed() const;
895  bool IsCoveredCell() const;
896  bool IsInCoveredCell() const;
897 
898  // #i81146# new loop control
899  bool KnowsFormat( const SwFormat& rFormat ) const;
900  void RegisterToFormat( SwFormat& rFormat );
901  void ValidateThisAndAllLowers( const sal_uInt16 nStage );
902 
903  void ForbidDelete() { mbForbidDelete = true; }
904  void AllowDelete() { mbForbidDelete = false; }
905 
906  drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
907  bool supportsFullDrawingLayerFillAttributeSet() const;
908 
909 public:
910  // if writer is NULL, dumps the layout structure as XML in layout.xml
911  virtual void dumpAsXml(xmlTextWriterPtr writer = nullptr) const;
912  void dumpTopMostAsXml(xmlTextWriterPtr writer = nullptr) const;
913  void dumpInfosAsXml(xmlTextWriterPtr writer) const;
914  virtual void dumpAsXmlAttributes(xmlTextWriterPtr writer) const;
915  void dumpChildrenAsXml(xmlTextWriterPtr writer) const;
916  bool IsCollapse() const;
917 };
918 
919 inline bool SwFrame::IsInDocBody() const
920 {
921  if ( mbInfInvalid )
922  const_cast<SwFrame*>(this)->SetInfFlags();
923  return mbInfBody;
924 }
925 inline bool SwFrame::IsInFootnote() const
926 {
927  if ( mbInfInvalid )
928  const_cast<SwFrame*>(this)->SetInfFlags();
929  return mbInfFootnote;
930 }
931 inline bool SwFrame::IsInTab() const
932 {
933  if ( mbInfInvalid )
934  const_cast<SwFrame*>(this)->SetInfFlags();
935  return mbInfTab;
936 }
937 inline bool SwFrame::IsInFly() const
938 {
939  if ( mbInfInvalid )
940  const_cast<SwFrame*>(this)->SetInfFlags();
941  return mbInfFly;
942 }
943 inline bool SwFrame::IsInSct() const
944 {
945  if ( mbInfInvalid )
946  const_cast<SwFrame*>(this)->SetInfFlags();
947  return mbInfSct;
948 }
950 {
951  if( mbInvalidVert )
952  const_cast<SwFrame*>(this)->SetDirFlags( true );
953  return mbVertical;
954 }
955 inline bool SwFrame::IsVertLR() const
956 {
957  return mbVertLR;
958 }
959 inline bool SwFrame::IsVertLRBT() const
960 {
961  return mbVertLRBT;
962 }
963 inline bool SwFrame::IsRightToLeft() const
964 {
965  if( mbInvalidR2L )
966  const_cast<SwFrame*>(this)->SetDirFlags( false );
967  return mbRightToLeft;
968 }
969 
970 inline void SwFrame::SetCompletePaint() const
971 {
972  const_cast<SwFrame*>(this)->mbCompletePaint = true;
973 }
974 inline void SwFrame::ResetCompletePaint() const
975 {
976  const_cast<SwFrame*>(this)->mbCompletePaint = false;
977 }
978 
979 inline void SwFrame::SetRetouche() const
980 {
981  const_cast<SwFrame*>(this)->mbRetouche = true;
982 }
983 inline void SwFrame::ResetRetouche() const
984 {
985  const_cast<SwFrame*>(this)->mbRetouche = false;
986 }
987 
989 {
990  return const_cast<SwLayoutFrame*>(static_cast<const SwFrame*>(this)->GetNextLayoutLeaf());
991 }
993 {
994  return const_cast<SwLayoutFrame*>(static_cast<const SwFrame*>(this)->GetPrevLayoutLeaf());
995 }
997 {
998  return ImplGetNextLayoutLeaf( true );
999 }
1001 {
1002  return ImplGetNextLayoutLeaf( false );
1003 }
1004 
1006 {
1007  if ( isFrameAreaSizeValid() )
1008  {
1010  }
1011 }
1013 {
1014  if ( isFramePrintAreaValid() )
1015  {
1017  }
1018 }
1020 {
1021  if ( isFrameAreaPositionValid() )
1022  {
1024  }
1025 }
1027 {
1028  if ( mbValidLineNum )
1030 }
1032 {
1034  {
1036  {
1038  }
1039 
1040  setFrameAreaSizeValid(false);
1042  setFramePrintAreaValid(false);
1043 
1044  // #i28701#
1046  }
1047 }
1048 inline void SwFrame::InvalidateNextPos( bool bNoFootnote )
1049 {
1050  if ( mpNext && !mpNext->IsSctFrame() )
1051  mpNext->InvalidatePos();
1052  else
1053  ImplInvalidateNextPos( bNoFootnote );
1054 }
1055 
1056 inline void SwFrame::OptCalc() const
1057 {
1059  {
1060  const_cast<SwFrame*>(this)->OptPrepareMake();
1061  }
1062 }
1064 {
1065  return const_cast<SwFrame*>(this)->FindPageFrame();
1066 }
1067 inline const SwFrame *SwFrame::FindColFrame() const
1068 {
1069  return const_cast<SwFrame*>(this)->FindColFrame();
1070 }
1072 {
1073  return const_cast<SwFrame*>(this)->FindFooterOrHeader();
1074 }
1076 {
1077  return IsInTab() ? ImplFindTabFrame() : nullptr;
1078 }
1080 {
1081  return const_cast<SwFrame*>(this)->FindFootnoteBossFrame( bFootnote );
1082 }
1084 {
1085  return IsInFootnote() ? ImplFindFootnoteFrame() : nullptr;
1086 }
1088 {
1089  return IsInFly() ? ImplFindFlyFrame() : nullptr;
1090 }
1092 {
1093  return IsInSct() ? ImplFindSctFrame() : nullptr;
1094 }
1095 
1097 {
1098  return IsInDocBody() ? ImplFindBodyFrame() : nullptr;
1099 }
1100 
1101 inline const SwTabFrame *SwFrame::FindTabFrame() const
1102 {
1103  return IsInTab() ? const_cast<SwFrame*>(this)->ImplFindTabFrame() : nullptr;
1104 }
1106 {
1107  return IsInFootnote() ? const_cast<SwFrame*>(this)->ImplFindFootnoteFrame() : nullptr;
1108 }
1109 inline const SwFlyFrame *SwFrame::FindFlyFrame() const
1110 {
1111  return IsInFly() ? const_cast<SwFrame*>(this)->ImplFindFlyFrame() : nullptr;
1112 }
1114 {
1115  return IsInSct() ? const_cast<SwFrame*>(this)->ImplFindSctFrame() : nullptr;
1116 }
1118 {
1119  if ( mpNext )
1120  return mpNext;
1121  else
1122  return FindNext_();
1123 }
1124 inline const SwFrame *SwFrame::FindNext() const
1125 {
1126  if ( mpNext )
1127  return mpNext;
1128  else
1129  return const_cast<SwFrame*>(this)->FindNext_();
1130 }
1132 {
1133  if ( mpPrev && !mpPrev->IsSctFrame() )
1134  return mpPrev;
1135  else
1136  return FindPrev_();
1137 }
1138 inline const SwFrame *SwFrame::FindPrev() const
1139 {
1140  if ( mpPrev && !mpPrev->IsSctFrame() )
1141  return mpPrev;
1142  else
1143  return const_cast<SwFrame*>(this)->FindPrev_();
1144 }
1145 
1146 inline bool SwFrame::IsLayoutFrame() const
1147 {
1148  return bool(GetType() & FRM_LAYOUT);
1149 }
1150 inline bool SwFrame::IsRootFrame() const
1151 {
1152  return mnFrameType == SwFrameType::Root;
1153 }
1154 inline bool SwFrame::IsPageFrame() const
1155 {
1156  return mnFrameType == SwFrameType::Page;
1157 }
1158 inline bool SwFrame::IsColumnFrame() const
1159 {
1160  return mnFrameType == SwFrameType::Column;
1161 }
1162 inline bool SwFrame::IsFootnoteBossFrame() const
1163 {
1164  return bool(GetType() & FRM_FTNBOSS);
1165 }
1166 inline bool SwFrame::IsHeaderFrame() const
1167 {
1168  return mnFrameType == SwFrameType::Header;
1169 }
1170 inline bool SwFrame::IsFooterFrame() const
1171 {
1172  return mnFrameType == SwFrameType::Footer;
1173 }
1174 inline bool SwFrame::IsFootnoteContFrame() const
1175 {
1177 }
1178 inline bool SwFrame::IsFootnoteFrame() const
1179 {
1180  return mnFrameType == SwFrameType::Ftn;
1181 }
1182 inline bool SwFrame::IsBodyFrame() const
1183 {
1184  return mnFrameType == SwFrameType::Body;
1185 }
1186 inline bool SwFrame::IsFlyFrame() const
1187 {
1188  return mnFrameType == SwFrameType::Fly;
1189 }
1190 inline bool SwFrame::IsSctFrame() const
1191 {
1193 }
1194 inline bool SwFrame::IsTabFrame() const
1195 {
1196  return mnFrameType == SwFrameType::Tab;
1197 }
1198 inline bool SwFrame::IsRowFrame() const
1199 {
1200  return mnFrameType == SwFrameType::Row;
1201 }
1202 inline bool SwFrame::IsCellFrame() const
1203 {
1204  return mnFrameType == SwFrameType::Cell;
1205 }
1206 inline bool SwFrame::IsContentFrame() const
1207 {
1208  return bool(GetType() & FRM_CNTNT);
1209 }
1210 inline bool SwFrame::IsTextFrame() const
1211 {
1212  return mnFrameType == SwFrameType::Txt;
1213 }
1214 inline bool SwFrame::IsNoTextFrame() const
1215 {
1216  return mnFrameType == SwFrameType::NoTxt;
1217 }
1218 inline bool SwFrame::IsFlowFrame() const
1219 {
1221 }
1222 inline bool SwFrame::IsRetoucheFrame() const
1223 {
1225 }
1226 inline bool SwFrame::IsAccessibleFrame() const
1227 {
1228  return bool(GetType() & FRM_ACCESSIBLE);
1229 }
1230 
1231 //use this to protect a SwFrame for a given scope from getting deleted
1233 {
1234 private:
1236 public:
1237  //Flag pFrame for SwFrameDeleteGuard lifetime that we shouldn't delete
1238  //it in e.g. SwSectionFrame::MergeNext etc because we will need it
1239  //again after the SwFrameDeleteGuard dtor
1240  explicit SwFrameDeleteGuard(SwFrame* pFrame);
1242 };
1243 
1244 typedef long (SwFrame:: *SwFrameGet)() const;
1245 typedef bool (SwFrame:: *SwFrameMax)( long );
1246 typedef void (SwFrame:: *SwFrameMakePos)( const SwFrame*, const SwFrame*, bool );
1247 typedef long (*SwOperator)( long, long );
1248 typedef void (SwFrame:: *SwFrameSet)( long, long );
1249 
1251 {
1260 
1267 
1274 
1277 
1294 
1301 
1304 };
1305 
1307 
1308 // This class allows to use proper methods regardless of orientation (LTR/RTL, horizontal or vertical)
1311 public:
1312  explicit SwRectFnSet(const SwFrame *pFrame)
1313  : m_bVert(pFrame->IsVertical())
1314  , m_bVertL2R(pFrame->IsVertLR())
1315  , m_bVertL2RB2T(pFrame->IsVertLRBT())
1316  {
1317  m_fnRect = m_bVert ? (m_bVertL2R ? (m_bVertL2RB2T ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert) : fnRectHori;
1318  }
1319 
1320  void Refresh(const SwFrame *pFrame)
1321  {
1322  m_bVert = pFrame->IsVertical();
1323  m_bVertL2R = pFrame->IsVertLR();
1324  m_bVertL2RB2T = pFrame->IsVertLRBT();
1325  m_fnRect = m_bVert ? (m_bVertL2R ? (m_bVertL2RB2T ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert) : fnRectHori;
1326  }
1327 
1328  bool IsVert() const { return m_bVert; }
1329  bool IsVertL2R() const { return m_bVertL2R; }
1330  SwRectFn FnRect() const { return m_fnRect; }
1331 
1332  bool PosDiff(const SwRect &rRect1, const SwRect &rRect2) const
1333  {
1334  return ((rRect1.*m_fnRect->fnGetTop)() != (rRect2.*m_fnRect->fnGetTop)()
1335  || (rRect1.*m_fnRect->fnGetLeft)() != (rRect2.*m_fnRect->fnGetLeft)());
1336  }
1337 
1338  long GetTop (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetTop) (); }
1339  long GetBottom(const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetBottom)(); }
1340  long GetLeft (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetLeft) (); }
1341  long GetRight (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetRight) (); }
1342  long GetWidth (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetWidth) (); }
1343  long GetHeight(const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetHeight)(); }
1344  Point GetPos (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetPos) (); }
1345  Size GetSize (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetSize) (); }
1346 
1347  void SetTop (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetTop) (nNew); }
1348  void SetBottom(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetBottom)(nNew); }
1349  void SetLeft (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetLeft) (nNew); }
1350  void SetRight (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetRight) (nNew); }
1351  void SetWidth (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetWidth) (nNew); }
1352  void SetHeight(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetHeight)(nNew); }
1353 
1354  void SubTop (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSubTop) (nNew); }
1355  void AddBottom(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnAddBottom)(nNew); }
1356  void SubLeft (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSubLeft) (nNew); }
1357  void AddRight (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnAddRight) (nNew); }
1358  void AddWidth (SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnAddWidth) (nNew); }
1359  void AddHeight(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnAddHeight)(nNew); }
1360 
1361  void SetPosX(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetPosX)(nNew); }
1362  void SetPosY(SwRect& rRect, long nNew) const { (rRect.*m_fnRect->fnSetPosY)(nNew); }
1363 
1364  long GetTopMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetTopMargin) (); }
1365  long GetBottomMargin(const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetBottomMargin)(); }
1366  long GetLeftMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetLeftMargin) (); }
1367  long GetRightMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetRightMargin) (); }
1368  void SetXMargins(SwFrame& rFrame, long nLeft, long nRight) const { (rFrame.*m_fnRect->fnSetXMargins)(nLeft, nRight); }
1369  void SetYMargins(SwFrame& rFrame, long nTop, long nBottom) const { (rFrame.*m_fnRect->fnSetYMargins)(nTop, nBottom); }
1370  long GetPrtTop (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtTop) (); }
1371  long GetPrtBottom (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtBottom) (); }
1372  long GetPrtLeft (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtLeft) (); }
1373  long GetPrtRight (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtRight) (); }
1374  long TopDist (const SwRect& rRect, long nPos) const { return (rRect.*m_fnRect->fnTopDist) (nPos); }
1375  long BottomDist(const SwRect& rRect, long nPos) const { return (rRect.*m_fnRect->fnBottomDist) (nPos); }
1376  long LeftDist (const SwRect& rRect, long nPos) const { return (rRect.*m_fnRect->fnLeftDist) (nPos); }
1377  long RightDist (const SwRect& rRect, long nPos) const { return (rRect.*m_fnRect->fnRightDist) (nPos); }
1378  void SetLimit (SwFrame& rFrame, long nNew) const { (rFrame.*m_fnRect->fnSetLimit) (nNew); }
1379  bool OverStep (const SwRect& rRect, long nPos) const { return (rRect.*m_fnRect->fnOverStep) (nPos); }
1380 
1381  void SetPos(SwRect& rRect, const Point& rNew) const { (rRect.*m_fnRect->fnSetPos)(rNew); }
1382  void MakePos(SwFrame& rFrame, const SwFrame* pUp, const SwFrame* pPrv, bool bNotify) const { (rFrame.*m_fnRect->fnMakePos)(pUp, pPrv, bNotify); }
1383  long XDiff(long n1, long n2) const { return (m_fnRect->fnXDiff) (n1, n2); }
1384  long YDiff(long n1, long n2) const { return (m_fnRect->fnYDiff) (n1, n2); }
1385  long XInc (long n1, long n2) const { return (m_fnRect->fnXInc) (n1, n2); }
1386  long YInc (long n1, long n2) const { return (m_fnRect->fnYInc) (n1, n2); }
1387 
1388  void SetLeftAndWidth(SwRect& rRect, long nLeft, long nWidth) const { (rRect.*m_fnRect->fnSetLeftAndWidth)(nLeft, nWidth); }
1389  void SetTopAndHeight(SwRect& rRect, long nTop, long nHeight) const { (rRect.*m_fnRect->fnSetTopAndHeight)(nTop, nHeight); }
1390 
1391 private:
1392  bool m_bVert;
1396 };
1397 
1398 #endif
1399 
1400 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void(SwRect::* SwRectSet)(const long nNew)
Definition: swrect.hxx:152
#define FRM_NEIGHBOUR
Definition: frame.hxx:104
SwFrame * FindFooterOrHeader()
Definition: findfrm.cxx:547
long LeftDist(const SwRect &rRect, long nPos) const
Definition: frame.hxx:1376
Base class of the Writer layout elements.
Definition: frame.hxx:295
Base class that provides the general functionalities for frames that are allowed at page breaks (flow...
Definition: flowfrm.hxx:58
bool mbInfFootnote
Definition: frame.hxx:422
const SwFrame * GetIndNext() const
Definition: frame.hxx:707
void InvalidateInfFlags()
Definition: frame.hxx:586
long BottomDist(const SwRect &rRect, long nPos) const
Definition: frame.hxx:1375
SwFrameGet fnGetPrtBottom
Definition: frame.hxx:1285
void RestoreContent(SwFrame *pSav, SwLayoutFrame *pParent, SwFrame *pSibling)
Definition: frmtool.cxx:2719
void SetTopAndHeight(SwRect &rRect, long nTop, long nHeight) const
Definition: frame.hxx:1389
Point GetPos(const SwRect &rRect) const
Definition: frame.hxx:1344
const SwSortedObjs * GetDrawObjs() const
Definition: frame.hxx:543
SwRectMax fnOverStep
Definition: frame.hxx:1293
Marks a position in the document model.
Definition: pam.hxx:35
SwFrame * mpNext
Definition: frame.hxx:319
SwRectDist fnBottomDist
Definition: frame.hxx:1289
SwFrame * mpPrev
Definition: frame.hxx:320
bool IsInDocBody() const
Definition: frame.hxx:919
bool IsInFly() const
Definition: frame.hxx:937
bool IsRootFrame() const
Definition: frame.hxx:1150
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Definition: fmtpdsc.hxx:35
bool mbValidLineNum
Definition: frame.hxx:408
long YInc(long n1, long n2) const
Definition: frame.hxx:1386
bool IsInSct() const
Definition: frame.hxx:943
Size GetSize(const SwRect &rRect) const
Definition: frame.hxx:1345
SwRootFrame * mpRoot
Definition: frame.hxx:317
basegfx::B2DHomMatrix maFrameAreaTransformation
Definition: frame.hxx:239
bool mbInvalidVert
Definition: frame.hxx:401
bool OverStep(const SwRect &rRect, long nPos) const
Definition: frame.hxx:1379
SwFootnoteFrame * ImplFindFootnoteFrame()
Definition: findfrm.cxx:504
const SwBodyFrame * ImplFindBodyFrame() const
Definition: findfrm.cxx:492
bool IsColLocked() const
Definition: frame.hxx:862
void(SwRect::* SwRectSetTwice)(long, long)
Definition: swrect.hxx:158
void Refresh(const SwFrame *pFrame)
Definition: frame.hxx:1320
void SetCompletePaint() const
Definition: frame.hxx:970
void ImplInvalidateSize()
Definition: wsfrm.cxx:1912
bool IsInFootnote() const
Definition: frame.hxx:925
const SwModify * GetDep() const
Definition: frame.hxx:458
SwOperator fnXInc
Definition: frame.hxx:1299
SwModify * GetDep()
use these so we can grep for SwFrame's GetRegisteredIn accesses beware that SwTextFrame may return sw...
Definition: frame.hxx:457
SwFrameType GetType() const
Definition: frame.hxx:498
SwRectFn FnRect() const
Definition: frame.hxx:1330
SwRectSetTwice fnSetLeftAndWidth
Definition: frame.hxx:1302
void ValidateText(SwFrame *pFrame)
Definition: frmform.cxx:73
void setSwRect(const SwRect &rNew)
Definition: frame.hxx:194
void SetDerivedR2L(bool bNew)
Definition: frame.hxx:610
SwRectSet fnSetPosX
Definition: frame.hxx:1275
#define FRM_CNTNT
Definition: frame.hxx:101
const SwRect & getFramePrintArea() const
Definition: frame.hxx:176
void InvalidateLineNum_()
Definition: frame.hxx:773
SwRect maFramePrintArea
Definition: frame.hxx:139
static SwCache & GetCache()
Definition: frame.hxx:500
SwTabFrame is one table in the document layout, containing rows (which contain cells).
Definition: tabfrm.hxx:30
void SetPosX(SwRect &rRect, long nNew) const
Definition: frame.hxx:1361
void InvalidateSize_()
Definition: frame.hxx:749
SwFrame * FindPrev()
Definition: frame.hxx:1131
struct _ADOColumn Column
const SwFrame * GetNext() const
Definition: frame.hxx:669
virtual bool InvalidationAllowed(const InvalidationType _nInvalid) const
method to determine, if an invalidation is allowed.
Definition: wsfrm.cxx:1906
void InvalidatePos()
Definition: frame.hxx:1019
SwFrameAreaDefinition & mrSwFrameAreaDefinition
Definition: frame.hxx:235
long GetBottom(const SwRect &rRect) const
Definition: frame.hxx:1339
SwRectGet fnGetHeight
Definition: frame.hxx:1257
SwOperator fnXDiff
Definition: frame.hxx:1297
const SwBodyFrame * FindBodyFrame() const
Definition: frame.hxx:1096
long SwTwips
Definition: swtypes.hxx:49
bool GetValidLineNumFlag() const
Definition: frame.hxx:740
This class is used as parameter for creation of a block cursor selection.
SvxFrameDirection
bool IsVert() const
Definition: frame.hxx:1328
SwRectGet fnGetWidth
Definition: frame.hxx:1256
RotateFlyFrame3: Helper class when you want to make your SwFrame derivate transformable.
Definition: frame.hxx:231
SwFrameAreaDefinition & mrTarget
Definition: frame.hxx:186
SwFrame * FindNext()
Definition: frame.hxx:1117
bool IsCellFrame() const
Definition: frame.hxx:1202
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
void ImplInvalidatePrt()
Definition: wsfrm.cxx:1928
bool mbInfBody
Definition: frame.hxx:419
long GetPrtTop(const SwFrame &rFrame) const
Definition: frame.hxx:1370
SwRectSet fnSubLeft
Definition: frame.hxx:1270
bool mbVertLR
Definition: frame.hxx:405
The root element of a Writer document layout.
Definition: rootfrm.hxx:79
bool IsFootnoteFrame() const
Definition: frame.hxx:1178
void ValidateLineNum()
Definition: frame.hxx:738
FrameAreaWriteAccess(SwFrameAreaDefinition &rTarget)
Definition: frame.hxx:192
SwFrame * sw_FormatNextContentForKeep(SwTabFrame *pTabFrame)
Definition: tabfrm.cxx:1762
bool isFrameAreaDefinitionValid() const
Definition: frame.hxx:167
SwRectGet fnGetBottom
Definition: frame.hxx:1253
static bool bFootnote
Definition: insfnote.cxx:40
SwRectSize fnGetSize
Definition: frame.hxx:1259
void ValidateSz(SwFrame *pFrame)
Definition: calcmove.cxx:1194
SwRectSet fnAddRight
Definition: frame.hxx:1271
void SetPosY(SwRect &rRect, long nNew) const
Definition: frame.hxx:1362
SwRectFnSet(const SwFrame *pFrame)
Definition: frame.hxx:1312
bool IsVertLRBT() const
Definition: frame.hxx:959
SwRectGet fnGetRight
Definition: frame.hxx:1255
SwSectionFrame * ImplFindSctFrame()
Definition: findfrm.cxx:480
long YDiff(long n1, long n2) const
Definition: frame.hxx:1384
SvxBorderLineStyle
bool mbVertLRBT
Definition: frame.hxx:406
void SetRetouche() const
Definition: frame.hxx:979
SwFrameMakePos fnMakePos
Definition: frame.hxx:1296
bool IsFlyFrame() const
Definition: frame.hxx:1186
long RightDist(const SwRect &rRect, long nPos) const
Definition: frame.hxx:1377
long TopDist(const SwRect &rRect, long nPos) const
Definition: frame.hxx:1374
wrapper class for the positioning of Writer fly frames and drawing objects
long GetPrtBottom(const SwFrame &rFrame) const
Definition: frame.hxx:1371
SwFrameGet fnGetRightMargin
Definition: frame.hxx:1281
const SwLayoutFrame * GetPrevLayoutLeaf() const
Definition: frame.hxx:1000
static void SetCache(SwCache *pNew)
Definition: frame.hxx:502
const SwRect & getFrameArea() const
Definition: frame.hxx:175
bool mbInfTab
Definition: frame.hxx:420
static sal_uInt32 mnLastFrameId
Definition: frame.hxx:148
SwRectSet fnAddWidth
Definition: frame.hxx:1272
bool IsInTab() const
Definition: frame.hxx:931
SwFrameGet fnGetPrtRight
Definition: frame.hxx:1287
long GetBottomMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1365
void setRootFrame(SwRootFrame *pRoot)
Definition: frame.hxx:436
bool IsTextFrame() const
Definition: frame.hxx:1210
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:38
SwRectFn fnRectVertL2R
Definition: newfrm.cxx:290
SwFrameGet fnGetPrtTop
Definition: frame.hxx:1284
void setFramePrintAreaValid(bool bNew)
Definition: wsfrm.cxx:96
const Size(SwRect::* SwRectSize)() const
Definition: swrect.hxx:155
bool m_bVertL2R
Definition: frame.hxx:1393
bool OnRightPage() const
Definition: frame.hxx:711
const SwLayoutFrame * GetUpper() const
Definition: frame.hxx:671
bool mbInfInvalid
Definition: frame.hxx:418
long GetLeftMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1366
bool IsSctFrame() const
Definition: frame.hxx:1190
SwFrameGet fnGetLeftMargin
Definition: frame.hxx:1280
SwFlyFrame * FindFlyFrame()
Definition: frame.hxx:1087
SwFrame * FindPrev_()
Definition: findfrm.cxx:1153
long GetLeft(const SwRect &rRect) const
Definition: frame.hxx:1340
long GetRight(const SwRect &rRect) const
Definition: frame.hxx:1341
SwRectSet fnAddHeight
Definition: frame.hxx:1273
SwFrameSet fnSetXMargins
Definition: frame.hxx:1282
bool IsFlowFrame() const
Definition: frame.hxx:1218
SwOperator fnYInc
Definition: frame.hxx:1300
SwFrameGet fnGetTopMargin
Definition: frame.hxx:1278
SwRectFn fnRectHori
Definition: newfrm.cxx:288
long(SwRect::* SwRectDist)(long) const
Definition: swrect.hxx:157
SwFrame * SaveContent(SwLayoutFrame *pLay, SwFrame *pStart=nullptr)
Definition: frmtool.cxx:2556
helper class to check if a frame has been deleted during an operation WARNING! This should only be us...
Definition: frmtool.hxx:561
void(SwFrame::* SwFrameMakePos)(const SwFrame *, const SwFrame *, bool)
Definition: frame.hxx:1246
void SetBottom(SwRect &rRect, long nNew) const
Definition: frame.hxx:1348
SwFrameGet fnGetPrtLeft
Definition: frame.hxx:1286
Base class for various Writer styles.
Definition: format.hxx:43
long(* SwOperator)(long, long)
Definition: frame.hxx:1247
bool IsColumnFrame() const
Definition: frame.hxx:1158
void SubTop(SwRect &rRect, long nNew) const
Definition: frame.hxx:1354
SwRectFn fnRectVertL2RB2T
Definition: newfrm.cxx:291
void SetHeight(SwRect &rRect, long nNew) const
Definition: frame.hxx:1352
SwRectFn m_fnRect
Definition: frame.hxx:1395
SwFootnoteFrame * FindFootnoteFrame()
Definition: frame.hxx:1083
struct _xmlTextWriter * xmlTextWriterPtr
void SetInvalidVert(bool bNew)
Definition: frame.hxx:608
bool IsInDtor() const
Definition: frame.hxx:868
void SetDerivedVert(bool bNew)
Definition: frame.hxx:607
SwTabFrame * ImplFindTabFrame()
Definition: findfrm.cxx:468
FramePrintAreaWriteAccess(SwFrameAreaDefinition &rTarget)
Definition: frame.hxx:207
void SetDirFlags(bool bVert)
Updates the vertical or the righttoleft-flags.
Definition: findfrm.cxx:1464
PrepareHint
Definition: swtypes.hxx:204
void SetWidth(SwRect &rRect, long nNew) const
Definition: frame.hxx:1351
long(SwRect::* SwRectGet)() const
Definition: swrect.hxx:153
bool IsContentFrame() const
Definition: frame.hxx:1206
void SetTop(SwRect &rRect, long nNew) const
Definition: frame.hxx:1347
void InvalidateLineNum()
Definition: frame.hxx:1026
virtual css::uno::Sequence< css::style::TabStop > GetTabStopInfo(SwTwips)
Definition: frame.hxx:492
SwFrame * GetIndPrev() const
Definition: frame.hxx:702
void InvalidatePrt()
Definition: frame.hxx:1012
long XInc(long n1, long n2) const
Definition: frame.hxx:1385
void(SwRect::* SwRectSetPos)(const Point &)
Definition: swrect.hxx:159
long XDiff(long n1, long n2) const
Definition: frame.hxx:1383
SwFrameType
Definition: frame.hxx:72
SwFrame * FindNext_()
Definition: findfrm.cxx:772
SwFrame * GetIndNext()
Definition: frame.hxx:705
basegfx::B2DHomMatrix maFramePrintAreaTransformation
Definition: frame.hxx:240
void ColUnlock()
Definition: frame.hxx:430
SwPageFrame * FindPageFrame()
Definition: frame.hxx:658
virtual bool IsDeleteForbidden() const
Definition: frame.hxx:863
const SwLayoutFrame * ImplGetNextLayoutLeaf(bool bFwd) const
Finds the next layout leaf.
Definition: findfrm.cxx:309
bool IsCompletePaint() const
Definition: frame.hxx:579
const Point(SwRect::* SwRectPoint)() const
Definition: swrect.hxx:154
void AllowDelete()
Definition: frame.hxx:904
void AddHeight(SwRect &rRect, long nNew) const
Definition: frame.hxx:1359
static long GetLeftMargin(SwView const &rView)
Definition: viewport.cxx:77
bool mbInvalidR2L
Definition: frame.hxx:398
SwLayoutFrame * GetUpper()
Definition: frame.hxx:656
bool PosDiff(const SwRect &rRect1, const SwRect &rRect2) const
Definition: frame.hxx:1332
bool mbVertical
Definition: frame.hxx:403
bool isFramePrintAreaValid() const
Definition: frame.hxx:164
long GetTopMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1364
bool IsRowFrame() const
Definition: frame.hxx:1198
SwFlyFrame * ImplFindFlyFrame()
Definition: findfrm.cxx:516
SwFootnoteBossFrame * FindFootnoteBossFrame(bool bFootnotes=false)
Definition: findfrm.cxx:435
bool IsRetoucheFrame() const
Definition: frame.hxx:1222
SwFrame * GetPrev()
Definition: frame.hxx:655
SwLayoutFrame * mpUpper
Definition: frame.hxx:318
const SwRootFrame * getRootFrame() const
Definition: frame.hxx:672
void AddWidth(SwRect &rRect, long nNew) const
Definition: frame.hxx:1358
void ImplInvalidateNextPos(bool bNoFootnote)
Definition: findfrm.cxx:1230
bool isFrameAreaPositionValid() const
Definition: frame.hxx:162
SwFrameSet fnSetYMargins
Definition: frame.hxx:1283
void SetYMargins(SwFrame &rFrame, long nTop, long nBottom) const
Definition: frame.hxx:1369
SwFrameDeleteGuard(SwFrame *pFrame)
Definition: ssfrm.cxx:475
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwRectDist fnTopDist
Definition: frame.hxx:1288
bool HasFixSize() const
Definition: frame.hxx:648
bool isFrameAreaSizeValid() const
Definition: frame.hxx:163
void AddBottom(SwRect &rRect, long nNew) const
Definition: frame.hxx:1355
void InvalidatePos_()
Definition: frame.hxx:765
A page of the document layout.
Definition: pagefrm.hxx:40
void OptCalc() const
Definition: frame.hxx:1056
long GetPrtRight(const SwFrame &rFrame) const
Definition: frame.hxx:1373
SwRectSet fnSetLeft
Definition: frame.hxx:1263
SwRectSet fnSubTop
Definition: frame.hxx:1268
long(SwFrame::* SwFrameGet)() const
Definition: frame.hxx:1244
bool m_bVertL2RB2T
Definition: frame.hxx:1394
void InvalidateSize()
Definition: frame.hxx:1005
void ResetCompletePaint() const
Definition: frame.hxx:974
SwSectionFrame * FindSctFrame()
Definition: frame.hxx:1091
SwRectSet fnSetBottom
Definition: frame.hxx:1262
static SwCache * GetCachePtr()
Definition: frame.hxx:501
const sal_uInt32 mnFrameId
Definition: frame.hxx:149
SwFrame * FindColFrame()
Definition: findfrm.cxx:529
bool mbInfSct
Definition: frame.hxx:423
void SetLeft(SwRect &rRect, long nNew) const
Definition: frame.hxx:1349
long GetPrtLeft(const SwFrame &rFrame) const
Definition: frame.hxx:1372
void ResetRetouche() const
Definition: frame.hxx:983
SwRectFnCollection * SwRectFn
Definition: frame.hxx:1306
SwRectGet fnGetLeft
Definition: frame.hxx:1254
void setFrameAreaPositionValid(bool bNew)
Definition: wsfrm.cxx:80
long GetWidth(const SwRect &rRect) const
Definition: frame.hxx:1342
bool IsLayoutFrame() const
Definition: frame.hxx:1146
SwFrame * m_pForbidFrame
Definition: frame.hxx:1235
SwRectSetTwice fnSetTopAndHeight
Definition: frame.hxx:1303
void SubLeft(SwRect &rRect, long nNew) const
Definition: frame.hxx:1356
void MakeNxt(SwFrame *pFrame, SwFrame *pNxt)
Definition: calcmove.cxx:1902
bool IsVertLR() const
Definition: frame.hxx:955
void SetXMargins(SwFrame &rFrame, long nLeft, long nRight) const
Definition: frame.hxx:1368
MakePageType
Definition: frame.hxx:110
bool IsTabFrame() const
Definition: frame.hxx:1194
bool(SwFrame::* SwFrameMax)(long)
Definition: frame.hxx:1245
SwRectSet fnAddBottom
Definition: frame.hxx:1269
general base class for all free-flowing frames
Definition: flyfrm.hxx:60
void OptPrepareMake()
Definition: calcmove.cxx:373
SwFrameMax fnSetLimit
Definition: frame.hxx:1292
unsigned char sal_uInt8
#define FRM_LAYOUT
Definition: frame.hxx:99
void InvalidateAll_()
Definition: frame.hxx:781
void AddRight(SwRect &rRect, long nNew) const
Definition: frame.hxx:1357
void SetLimit(SwFrame &rFrame, long nNew) const
Definition: frame.hxx:1378
SwRectPoint fnGetPos
Definition: frame.hxx:1258
SwSortedObjs * GetDrawObjs()
Definition: frame.hxx:544
bool IsNoTextFrame() const
Definition: frame.hxx:1214
#define FRM_ACCESSIBLE
Definition: frame.hxx:103
SwRectSet fnSetHeight
Definition: frame.hxx:1266
void InvalidateNextPos(bool bNoFootnote=false)
Definition: frame.hxx:1048
bool IsRightToLeft() const
Definition: frame.hxx:963
const SwModify * GetRegisteredIn() const
Definition: calbck.hxx:157
void setFrameAreaSizeValid(bool bNew)
Definition: wsfrm.cxx:88
bool IsVertL2R() const
Definition: frame.hxx:1329
SwFrameType mnFrameType
Definition: frame.hxx:395
bool IsPageFrame() const
Definition: frame.hxx:1154
bool mbRetouche
Definition: frame.hxx:416
SwRectSet fnSetWidth
Definition: frame.hxx:1265
void SetRight(SwRect &rRect, long nNew) const
Definition: frame.hxx:1350
const basegfx::B2DHomMatrix & getLocalFrameAreaTransformation() const
Definition: frame.hxx:251
virtual void ActionOnInvalidation(const InvalidationType _nInvalid)
method to perform additional actions on an invalidation
Definition: wsfrm.cxx:1900
static SwCache * mpCache
Definition: frame.hxx:315
void SetPos(SwRect &rRect, const Point &rNew) const
Definition: frame.hxx:1381
void(SwFrame::* SwFrameSet)(long, long)
Definition: frame.hxx:1248
long GetHeight(const SwRect &rRect) const
Definition: frame.hxx:1343
Helper class to isolate geometry-defining members of SwFrame and to control their accesses...
Definition: frame.hxx:130
SwRectSet fnSetTop
Definition: frame.hxx:1261
bool(SwRect::* SwRectMax)(long) const
Definition: swrect.hxx:156
void SetInfFlags()
Definition: findfrm.cxx:1427
bool IsRetouche() const
Definition: frame.hxx:583
void MakePos(SwFrame &rFrame, const SwFrame *pUp, const SwFrame *pPrv, bool bNotify) const
Definition: frame.hxx:1382
bool mbRightToLeft
Definition: frame.hxx:400
bool mbCompletePaint
Definition: frame.hxx:414
SwRectSetPos fnSetPos
Definition: frame.hxx:1295
bool IsVertical() const
Definition: frame.hxx:949
SwModify * GetRegisteredInNonConst() const
Definition: calbck.hxx:134
long GetTop(const SwRect &rRect) const
Definition: frame.hxx:1338
void ImplInvalidateLineNum()
Definition: wsfrm.cxx:1964
bool IsAccessibleFrame() const
Definition: frame.hxx:1226
void InvalidatePrt_()
Definition: frame.hxx:757
SwRectSet fnSetRight
Definition: frame.hxx:1264
void InvalidateAll()
Definition: frame.hxx:1031
SwRectDist fnLeftDist
Definition: frame.hxx:1290
void ForbidDelete()
Definition: frame.hxx:903
SwRectFn fnRectVert
Definition: newfrm.cxx:289
void SetLeftAndWidth(SwRect &rRect, long nLeft, long nWidth) const
Definition: frame.hxx:1388
bool IsFootnoteBossFrame() const
Definition: frame.hxx:1162
const SwLayoutFrame * GetNextLayoutLeaf() const
Definition: frame.hxx:996
const SwFrame * GetPrev() const
Definition: frame.hxx:670
SwRectDist fnRightDist
Definition: frame.hxx:1291
SwRectSet fnSetPosY
Definition: frame.hxx:1276
SwOperator fnYDiff
Definition: frame.hxx:1298
bool IsFootnoteContFrame() const
Definition: frame.hxx:1174
long GetRightMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1367
void ImplInvalidatePos()
Definition: wsfrm.cxx:1944
bool IsNeighbourFrame() const
Definition: frame.hxx:888
bool IsBodyFrame() const
Definition: frame.hxx:1182
class for collecting anchored objects
Definition: sortedobjs.hxx:48
void ColLock()
Definition: frame.hxx:429
Container of body content (i.e.
Definition: bodyfrm.hxx:28
const basegfx::B2DHomMatrix & getLocalFramePrintAreaTransformation() const
Definition: frame.hxx:257
std::unique_ptr< SwSortedObjs > m_pDrawObjs
Definition: frame.hxx:394
InvalidationType
enumeration for the different invalidations #i28701#
Definition: frame.hxx:467
bool mbInfFly
Definition: frame.hxx:421
bool m_bVert
Definition: frame.hxx:1392
bool IsFooterFrame() const
Definition: frame.hxx:1170
SwRootFrame * getRootFrame()
Definition: frame.hxx:657
virtual void Modify(const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
Definition: calbck.cxx:130
sal_uInt32 GetFrameId() const
Definition: frame.hxx:170
#define FRM_FTNBOSS
Definition: frame.hxx:102
SwRowFrame is one table row in the document layout.
Definition: rowfrm.hxx:28
bool IsHeaderFrame() const
Definition: frame.hxx:1166
SwRectGet fnGetTop
Definition: frame.hxx:1252
TransformableSwFrame(SwFrameAreaDefinition &rSwFrameAreaDefinition)
Definition: frame.hxx:243
SwTabFrame * FindTabFrame()
Definition: frame.hxx:1075
SwFrame * GetNext()
Definition: frame.hxx:654
SwFrameGet fnGetBottomMargin
Definition: frame.hxx:1279
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo