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