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  // #i28701# - change purpose of method and adjust its name
566  void InvalidateObjs( const bool _bNoInvaOfAsCharAnchoredObjs = true );
567 
568  virtual void PaintSwFrameShadowAndBorder(
569  const SwRect&,
570  const SwPageFrame* pPage,
571  const SwBorderAttrs&) const;
572  void PaintBaBo( const SwRect&, const SwPageFrame *pPage,
573  const bool bOnlyTextBackground = false) const;
574  void PaintSwFrameBackground( const SwRect&, const SwPageFrame *pPage,
575  const SwBorderAttrs &,
576  const bool bLowerMode = false,
577  const bool bLowerBorder = false,
578  const bool bOnlyTextBackground = false ) const;
579  void PaintBorderLine( const SwRect&, const SwRect&, const SwPageFrame*,
580  const Color *pColor,
581  const SvxBorderLineStyle = SvxBorderLineStyle::SOLID ) const;
582 
583  std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> CreateProcessor2D( ) const;
584  void ProcessPrimitives( const drawinglayer::primitive2d::Primitive2DContainer& rSequence ) const;
585 
586  // retouch, not in the area of the given Rect!
587  void Retouch( const SwPageFrame *pPage, const SwRect &rRect ) const;
588 
589  bool GetBackgroundBrush(
591  const SvxBrushItem*& rpBrush,
592  std::optional<Color>& rxColor,
593  SwRect &rOrigRect,
594  bool bLowerMode,
595  bool bConsiderTextBox ) const;
596 
597  inline void SetCompletePaint() const;
598  inline void ResetCompletePaint() const;
599  bool IsCompletePaint() const { return mbCompletePaint; }
600 
601  inline void SetRetouche() const;
602  inline void ResetRetouche() const;
603  bool IsRetouche() const { return mbRetouche; }
604 
605  void SetInfFlags();
606  void InvalidateInfFlags() { mbInfInvalid = true; }
607  inline bool IsInDocBody() const; // use InfoFlags, determine flags
608  inline bool IsInFootnote() const; // if necessary
609  inline bool IsInTab() const;
610  inline bool IsInFly() const;
611  inline bool IsInSct() const;
612 
613  // If frame is inside a split table row, this function returns
614  // the corresponding row frame in the follow table.
615  const SwRowFrame* IsInSplitTableRow() const;
616 
617  // If frame is inside a follow flow row, this function returns
618  // the corresponding row frame master table
619  const SwRowFrame* IsInFollowFlowRow() const;
620 
621  bool IsInBalancedSection() const;
622 
623  inline bool IsVertical() const;
624  inline bool IsVertLR() const;
625  inline bool IsVertLRBT() const;
626 
627  void SetDerivedVert( bool bNew ){ mbDerivedVert = bNew; }
628  void SetInvalidVert( bool bNew) { mbInvalidVert = bNew; }
629  inline bool IsRightToLeft() const;
630  void SetDerivedR2L( bool bNew ) { mbDerivedR2L = bNew; }
631 
632  void CheckDirChange();
633  // returns upper left frame position for LTR and
634  // upper right frame position for Asian / RTL frames
635  Point GetFrameAnchorPos( bool bIgnoreFlysAnchoredAtThisFrame ) const;
636 
650  bool IsMoveable( const SwLayoutFrame* _pLayoutFrame = nullptr ) const;
651 
652  // Is it permitted for the (Text)Frame to add a footnote in the current
653  // environment (not e.g. for repeating table headlines)
654  bool IsFootnoteAllowed() const;
655 
656  virtual void Format( vcl::RenderContext* pRenderContext, const SwBorderAttrs *pAttrs = nullptr );
657 
658  virtual void CheckDirection( bool bVert );
659 
660  void ReinitializeFrameSizeAttrFlags();
661 
664  const SwAttrSet *GetAttrSet() const;
665  virtual const SvxFormatBreakItem& GetBreakItem() const;
666  virtual const SwFormatPageDesc& GetPageDescItem() const;
667 
668  bool HasFixSize() const { return mbFixSize; }
669 
670  // check all pages (starting from the given) and correct them if needed
671  static void CheckPageDescs( SwPageFrame *pStart, bool bNotifyFields = true, SwPageFrame** ppPrev = nullptr);
672 
673  // might return 0, with and without const
674  SwFrame *GetNext() { return mpNext; }
675  SwFrame *GetPrev() { return mpPrev; }
676  SwLayoutFrame *GetUpper() { return mpUpper; }
677  SwRootFrame *getRootFrame(){ return mpRoot; }
678  SwPageFrame *FindPageFrame() { return IsPageFrame() ? reinterpret_cast<SwPageFrame*>(this) : ImplFindPageFrame(); }
679  SwFrame *FindColFrame();
680  SwRowFrame *FindRowFrame();
681  SwFootnoteBossFrame *FindFootnoteBossFrame( bool bFootnotes = false );
682  SwTabFrame *ImplFindTabFrame();
683  SwFootnoteFrame *ImplFindFootnoteFrame();
684  SwFlyFrame *ImplFindFlyFrame();
685  SwSectionFrame *ImplFindSctFrame();
686  const SwBodyFrame *ImplFindBodyFrame() const;
687  SwFrame *FindFooterOrHeader();
688  SwFrame *GetLower();
689  const SwFrame *GetNext() const { return mpNext; }
690  const SwFrame *GetPrev() const { return mpPrev; }
691  const SwLayoutFrame *GetUpper() const { return mpUpper; }
692  const SwRootFrame *getRootFrame() const { return mpRoot; }
693  inline SwTabFrame *FindTabFrame();
694  inline SwFootnoteFrame *FindFootnoteFrame();
695  inline SwFlyFrame *FindFlyFrame();
696  inline SwSectionFrame *FindSctFrame();
697  inline SwFrame *FindNext();
698  // #i27138# - add parameter <_bInSameFootnote>
699  SwContentFrame* FindNextCnt( const bool _bInSameFootnote = false );
700  inline SwFrame *FindPrev();
701  inline const SwPageFrame *FindPageFrame() const;
702  inline const SwFootnoteBossFrame *FindFootnoteBossFrame( bool bFootnote = false ) const;
703  inline const SwFrame *FindColFrame() const;
704  inline const SwFrame *FindFooterOrHeader() const;
705  inline const SwTabFrame *FindTabFrame() const;
706  inline const SwFootnoteFrame *FindFootnoteFrame() const;
707  inline const SwFlyFrame *FindFlyFrame() const;
708  inline const SwSectionFrame *FindSctFrame() const;
709  inline const SwBodyFrame *FindBodyFrame() const;
710  inline const SwFrame *FindNext() const;
711  // #i27138# - add parameter <_bInSameFootnote>
712  const SwContentFrame* FindNextCnt( const bool _bInSameFootnote = false ) const;
713  inline const SwFrame *FindPrev() const;
714  const SwFrame *GetLower() const;
715 
716  SwContentFrame* FindPrevCnt();
717 
718  const SwContentFrame* FindPrevCnt() const;
719 
720  // #i79774#
721  SwFrame* GetIndPrev_() const;
723  { return ( mpPrev || !IsInSct() ) ? mpPrev : GetIndPrev_(); }
724 
726  { return ( mpNext || !IsInSct() ) ? mpNext : GetIndNext_(); }
727  const SwFrame* GetIndNext() const { return const_cast<SwFrame*>(this)->GetIndNext(); }
728 
729  sal_uInt16 GetPhyPageNum() const; // page number without offset
730  sal_uInt16 GetVirtPageNum() const; // page number with offset
731  bool OnRightPage() const { return 0 != GetPhyPageNum() % 2; };
732  bool WannaRightPage() const;
733  bool OnFirstPage() const;
734 
735  inline const SwLayoutFrame *GetPrevLayoutLeaf() const;
736  inline const SwLayoutFrame *GetNextLayoutLeaf() const;
737  inline SwLayoutFrame *GetPrevLayoutLeaf();
738  inline SwLayoutFrame *GetNextLayoutLeaf();
739 
740  virtual void Calc(vcl::RenderContext* pRenderContext) const; // here might be "formatted"
741  inline void OptCalc() const; // here we assume (for optimization) that
742  // the predecessors are already formatted
743  Point GetRelPos() const;
744 
745  // PaintArea is the area where content might be displayed.
746  // The margin of a page or the space between columns belongs to it.
747  SwRect GetPaintArea() const;
748 
749  // UnionFrame is the union of Frame- and PrtArea, normally identical
750  // to the FrameArea except in case of negative Prt margins.
751  SwRect UnionFrame( bool bBorder = false ) const;
752 
753  virtual Size ChgSize( const Size& aNewSize );
754 
755  virtual void Cut() = 0;
756  virtual void Paste( SwFrame* pParent, SwFrame* pSibling = nullptr ) = 0;
757 
758  void ValidateLineNum() { mbValidLineNum = true; }
759 
760  bool GetValidLineNumFlag()const { return mbValidLineNum; }
761 
762  // Only invalidate Frame
763  // #i28701# - add call to method <ActionOnInvalidation(..)>
764  // for all invalidation methods.
765  // #i28701# - use method <InvalidationAllowed(..)> to
766  // decide, if invalidation will to be performed or not.
767  // #i26945# - no additional invalidation, if it's already
768  // invalidate.
770  {
771  if ( isFrameAreaSizeValid() && InvalidationAllowed( INVALID_SIZE ) )
772  {
773  setFrameAreaSizeValid(false);
774  ActionOnInvalidation( INVALID_SIZE );
775  }
776  }
778  {
779  if ( isFramePrintAreaValid() && InvalidationAllowed( INVALID_PRTAREA ) )
780  {
781  setFramePrintAreaValid(false);
782  ActionOnInvalidation( INVALID_PRTAREA );
783  }
784  }
786  {
787  if ( isFrameAreaPositionValid() && InvalidationAllowed( INVALID_POS ) )
788  {
790  ActionOnInvalidation( INVALID_POS );
791  }
792  }
794  {
795  if ( mbValidLineNum && InvalidationAllowed( INVALID_LINENUM ) )
796  {
797  mbValidLineNum = false;
798  ActionOnInvalidation( INVALID_LINENUM );
799  }
800  }
802  {
803  if ( ( isFrameAreaSizeValid() || isFramePrintAreaValid() || isFrameAreaPositionValid() ) && InvalidationAllowed( INVALID_ALL ) )
804  {
805  setFrameAreaSizeValid(false);
807  setFramePrintAreaValid(false);
808  ActionOnInvalidation( INVALID_ALL );
809  }
810  }
811  // also notify page at the same time
812  inline void InvalidateSize();
813  inline void InvalidatePrt();
814  inline void InvalidatePos();
815  inline void InvalidateLineNum();
816  inline void InvalidateAll();
817  void ImplInvalidateSize();
818  void ImplInvalidatePrt();
819  void ImplInvalidatePos();
820  void ImplInvalidateLineNum();
821 
822  inline void InvalidateNextPos( bool bNoFootnote = false );
823  void ImplInvalidateNextPos( bool bNoFootnote );
824 
828  void InvalidateNextPrtArea();
829 
830  void InvalidatePage( const SwPageFrame *pPage = nullptr ) const;
831 
832  virtual bool FillSelection( SwSelectionList& rList, const SwRect& rRect ) const;
833 
834  virtual bool GetModelPositionForViewPoint( SwPosition *, Point&,
835  SwCursorMoveState* = nullptr, bool bTestBackground = false ) const;
836  virtual bool GetCharRect( SwRect &, const SwPosition&,
837  SwCursorMoveState* = nullptr, bool bAllowFarAway = true ) const;
838  virtual void PaintSwFrame( vcl::RenderContext& rRenderContext, SwRect const&,
839  SwPrintData const*const pPrintData = nullptr ) const;
840 
841  // HACK: shortcut between frame and formatting
842  // It's your own fault if you cast void* incorrectly! In any case check
843  // the void* for 0.
844  virtual bool Prepare( const PrepareHint ePrep = PrepareHint::Clear,
845  const void *pVoid = nullptr, bool bNotify = true );
846 
847  // true if it is the correct class, false otherwise
848  inline bool IsLayoutFrame() const;
849  inline bool IsRootFrame() const;
850  inline bool IsPageFrame() const;
851  inline bool IsColumnFrame() const;
852  inline bool IsFootnoteBossFrame() const; // footnote bosses might be PageFrames or ColumnFrames
853  inline bool IsHeaderFrame() const;
854  inline bool IsFooterFrame() const;
855  inline bool IsFootnoteContFrame() const;
856  inline bool IsFootnoteFrame() const;
857  inline bool IsBodyFrame() const;
858  inline bool IsColBodyFrame() const; // implemented in layfrm.hxx, BodyFrame above ColumnFrame
859  inline bool IsPageBodyFrame() const; // implemented in layfrm.hxx, BodyFrame above PageFrame
860  inline bool IsFlyFrame() const;
861  inline bool IsSctFrame() const;
862  inline bool IsTabFrame() const;
863  inline bool IsRowFrame() const;
864  inline bool IsCellFrame() const;
865  inline bool IsContentFrame() const;
866  inline bool IsTextFrame() const;
867  inline bool IsNoTextFrame() const;
868  // Frames where its PrtArea depends on their neighbors and that are
869  // positioned in the content flow
870  inline bool IsFlowFrame() const;
871  // Frames that are capable of retouching or that might need to retouch behind
872  // themselves
873  inline bool IsRetoucheFrame() const;
874  inline bool IsAccessibleFrame() const;
875 
876  void PrepareCursor(); // CursorShell is allowed to call this
877 
878  // Is the Frame (or the section containing it) protected? Same for Fly in
879  // Fly in ... and footnotes
880  bool IsProtected() const;
881 
882  bool IsColLocked() const { return mbColLocked; }
883  virtual bool IsDeleteForbidden() const { return mbForbidDelete; }
884 
886  static void DestroyFrame(SwFrame *const pFrame);
887 
888  bool IsInDtor() const { return mbInDtor; }
889 
890  // No inline cause we need the function pointers
891  tools::Long GetTopMargin() const;
892  tools::Long GetBottomMargin() const;
893  tools::Long GetLeftMargin() const;
894  tools::Long GetRightMargin() const;
895  void SetTopBottomMargins( tools::Long, tools::Long );
896  void SetLeftRightMargins( tools::Long, tools::Long );
897  void SetRightLeftMargins( tools::Long, tools::Long );
898  tools::Long GetPrtLeft() const;
899  tools::Long GetPrtBottom() const;
900  tools::Long GetPrtRight() const;
901  tools::Long GetPrtTop() const;
902  bool SetMinLeft( tools::Long );
903  bool SetMaxBottom( tools::Long );
904  bool SetMaxRight( tools::Long );
905  void MakeBelowPos( const SwFrame*, const SwFrame*, bool );
906  void MakeLeftPos( const SwFrame*, const SwFrame*, bool );
907  void MakeRightPos( const SwFrame*, const SwFrame*, bool );
908  bool IsNeighbourFrame() const
909  { return bool(GetType() & FRM_NEIGHBOUR); }
910 
911  // NEW TABLES
912  // Some functions for covered/covering table cells. This way unnecessary
913  // includes can be avoided
914  virtual bool IsLeaveUpperAllowed() const;
915  virtual bool IsCoveredCell() const;
916  bool IsInCoveredCell() const;
917 
918  // #i81146# new loop control
919  bool KnowsFormat( const SwFormat& rFormat ) const;
920  void RegisterToFormat( SwFormat& rFormat );
921  void ValidateThisAndAllLowers( const sal_uInt16 nStage );
922 
923  void ForbidDelete() { mbForbidDelete = true; }
924  void AllowDelete() { mbForbidDelete = false; }
925 
926  drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
927  bool supportsFullDrawingLayerFillAttributeSet() const;
928 
929 public:
930  // if writer is NULL, dumps the layout structure as XML in layout.xml
931  virtual void dumpAsXml(xmlTextWriterPtr writer = nullptr) const;
932  void dumpTopMostAsXml(xmlTextWriterPtr writer = nullptr) const;
933  void dumpInfosAsXml(xmlTextWriterPtr writer) const;
934  virtual void dumpAsXmlAttributes(xmlTextWriterPtr writer) const;
935  void dumpChildrenAsXml(xmlTextWriterPtr writer) const;
936  bool IsCollapse() const;
937 };
938 
939 inline bool SwFrame::IsInDocBody() const
940 {
941  if ( mbInfInvalid )
942  const_cast<SwFrame*>(this)->SetInfFlags();
943  return mbInfBody;
944 }
945 inline bool SwFrame::IsInFootnote() const
946 {
947  if ( mbInfInvalid )
948  const_cast<SwFrame*>(this)->SetInfFlags();
949  return mbInfFootnote;
950 }
951 inline bool SwFrame::IsInTab() const
952 {
953  if ( mbInfInvalid )
954  const_cast<SwFrame*>(this)->SetInfFlags();
955  return mbInfTab;
956 }
957 inline bool SwFrame::IsInFly() const
958 {
959  if ( mbInfInvalid )
960  const_cast<SwFrame*>(this)->SetInfFlags();
961  return mbInfFly;
962 }
963 inline bool SwFrame::IsInSct() const
964 {
965  if ( mbInfInvalid )
966  const_cast<SwFrame*>(this)->SetInfFlags();
967  return mbInfSct;
968 }
970 {
971  if( mbInvalidVert )
972  const_cast<SwFrame*>(this)->SetDirFlags( true );
973  return mbVertical;
974 }
975 inline bool SwFrame::IsVertLR() const
976 {
977  return mbVertLR;
978 }
979 inline bool SwFrame::IsVertLRBT() const
980 {
981  return mbVertLRBT;
982 }
983 inline bool SwFrame::IsRightToLeft() const
984 {
985  if( mbInvalidR2L )
986  const_cast<SwFrame*>(this)->SetDirFlags( false );
987  return mbRightToLeft;
988 }
989 
990 inline void SwFrame::SetCompletePaint() const
991 {
992  const_cast<SwFrame*>(this)->mbCompletePaint = true;
993 }
994 inline void SwFrame::ResetCompletePaint() const
995 {
996  const_cast<SwFrame*>(this)->mbCompletePaint = false;
997 }
998 
999 inline void SwFrame::SetRetouche() const
1000 {
1001  const_cast<SwFrame*>(this)->mbRetouche = true;
1002 }
1003 inline void SwFrame::ResetRetouche() const
1004 {
1005  const_cast<SwFrame*>(this)->mbRetouche = false;
1006 }
1007 
1009 {
1010  return const_cast<SwLayoutFrame*>(static_cast<const SwFrame*>(this)->GetNextLayoutLeaf());
1011 }
1013 {
1014  return const_cast<SwLayoutFrame*>(static_cast<const SwFrame*>(this)->GetPrevLayoutLeaf());
1015 }
1017 {
1018  return ImplGetNextLayoutLeaf( true );
1019 }
1021 {
1022  return ImplGetNextLayoutLeaf( false );
1023 }
1024 
1026 {
1027  if ( isFrameAreaSizeValid() )
1028  {
1030  }
1031 }
1033 {
1034  if ( isFramePrintAreaValid() )
1035  {
1037  }
1038 }
1040 {
1041  if ( isFrameAreaPositionValid() )
1042  {
1044  }
1045 }
1047 {
1048  if ( mbValidLineNum )
1050 }
1052 {
1054  {
1056  {
1058  }
1059 
1060  setFrameAreaSizeValid(false);
1062  setFramePrintAreaValid(false);
1063 
1064  // #i28701#
1066  }
1067 }
1068 inline void SwFrame::InvalidateNextPos( bool bNoFootnote )
1069 {
1070  if ( mpNext && !mpNext->IsSctFrame() )
1071  mpNext->InvalidatePos();
1072  else
1073  ImplInvalidateNextPos( bNoFootnote );
1074 }
1075 
1076 inline void SwFrame::OptCalc() const
1077 {
1079  {
1080  const_cast<SwFrame*>(this)->OptPrepareMake();
1081  }
1082 }
1084 {
1085  return const_cast<SwFrame*>(this)->FindPageFrame();
1086 }
1087 inline const SwFrame *SwFrame::FindColFrame() const
1088 {
1089  return const_cast<SwFrame*>(this)->FindColFrame();
1090 }
1092 {
1093  return const_cast<SwFrame*>(this)->FindFooterOrHeader();
1094 }
1096 {
1097  return IsInTab() ? ImplFindTabFrame() : nullptr;
1098 }
1100 {
1101  return const_cast<SwFrame*>(this)->FindFootnoteBossFrame( bFootnote );
1102 }
1104 {
1105  return IsInFootnote() ? ImplFindFootnoteFrame() : nullptr;
1106 }
1108 {
1109  return IsInFly() ? ImplFindFlyFrame() : nullptr;
1110 }
1112 {
1113  return IsInSct() ? ImplFindSctFrame() : nullptr;
1114 }
1115 
1117 {
1118  return IsInDocBody() ? ImplFindBodyFrame() : nullptr;
1119 }
1120 
1121 inline const SwTabFrame *SwFrame::FindTabFrame() const
1122 {
1123  return IsInTab() ? const_cast<SwFrame*>(this)->ImplFindTabFrame() : nullptr;
1124 }
1126 {
1127  return IsInFootnote() ? const_cast<SwFrame*>(this)->ImplFindFootnoteFrame() : nullptr;
1128 }
1129 inline const SwFlyFrame *SwFrame::FindFlyFrame() const
1130 {
1131  return IsInFly() ? const_cast<SwFrame*>(this)->ImplFindFlyFrame() : nullptr;
1132 }
1134 {
1135  return IsInSct() ? const_cast<SwFrame*>(this)->ImplFindSctFrame() : nullptr;
1136 }
1138 {
1139  if ( mpNext )
1140  return mpNext;
1141  else
1142  return FindNext_();
1143 }
1144 inline const SwFrame *SwFrame::FindNext() const
1145 {
1146  if ( mpNext )
1147  return mpNext;
1148  else
1149  return const_cast<SwFrame*>(this)->FindNext_();
1150 }
1152 {
1153  if ( mpPrev && !mpPrev->IsSctFrame() )
1154  return mpPrev;
1155  else
1156  return FindPrev_();
1157 }
1158 inline const SwFrame *SwFrame::FindPrev() const
1159 {
1160  if ( mpPrev && !mpPrev->IsSctFrame() )
1161  return mpPrev;
1162  else
1163  return const_cast<SwFrame*>(this)->FindPrev_();
1164 }
1165 
1166 inline bool SwFrame::IsLayoutFrame() const
1167 {
1168  return bool(GetType() & FRM_LAYOUT);
1169 }
1170 inline bool SwFrame::IsRootFrame() const
1171 {
1172  return mnFrameType == SwFrameType::Root;
1173 }
1174 inline bool SwFrame::IsPageFrame() const
1175 {
1176  return mnFrameType == SwFrameType::Page;
1177 }
1178 inline bool SwFrame::IsColumnFrame() const
1179 {
1180  return mnFrameType == SwFrameType::Column;
1181 }
1182 inline bool SwFrame::IsFootnoteBossFrame() const
1183 {
1184  return bool(GetType() & FRM_FTNBOSS);
1185 }
1186 inline bool SwFrame::IsHeaderFrame() const
1187 {
1188  return mnFrameType == SwFrameType::Header;
1189 }
1190 inline bool SwFrame::IsFooterFrame() const
1191 {
1192  return mnFrameType == SwFrameType::Footer;
1193 }
1194 inline bool SwFrame::IsFootnoteContFrame() const
1195 {
1197 }
1198 inline bool SwFrame::IsFootnoteFrame() const
1199 {
1200  return mnFrameType == SwFrameType::Ftn;
1201 }
1202 inline bool SwFrame::IsBodyFrame() const
1203 {
1204  return mnFrameType == SwFrameType::Body;
1205 }
1206 inline bool SwFrame::IsFlyFrame() const
1207 {
1208  return mnFrameType == SwFrameType::Fly;
1209 }
1210 inline bool SwFrame::IsSctFrame() const
1211 {
1213 }
1214 inline bool SwFrame::IsTabFrame() const
1215 {
1216  return mnFrameType == SwFrameType::Tab;
1217 }
1218 inline bool SwFrame::IsRowFrame() const
1219 {
1220  return mnFrameType == SwFrameType::Row;
1221 }
1222 inline bool SwFrame::IsCellFrame() const
1223 {
1224  return mnFrameType == SwFrameType::Cell;
1225 }
1226 inline bool SwFrame::IsContentFrame() const
1227 {
1228  return bool(GetType() & FRM_CNTNT);
1229 }
1230 inline bool SwFrame::IsTextFrame() const
1231 {
1232  return mnFrameType == SwFrameType::Txt;
1233 }
1234 inline bool SwFrame::IsNoTextFrame() const
1235 {
1236  return mnFrameType == SwFrameType::NoTxt;
1237 }
1238 inline bool SwFrame::IsFlowFrame() const
1239 {
1241 }
1242 inline bool SwFrame::IsRetoucheFrame() const
1243 {
1245 }
1246 inline bool SwFrame::IsAccessibleFrame() const
1247 {
1248  return bool(GetType() & FRM_ACCESSIBLE);
1249 }
1250 
1251 //use this to protect a SwFrame for a given scope from getting deleted
1253 {
1254 private:
1256 public:
1257  //Flag pFrame for SwFrameDeleteGuard lifetime that we shouldn't delete
1258  //it in e.g. SwSectionFrame::MergeNext etc because we will need it
1259  //again after the SwFrameDeleteGuard dtor
1260  explicit SwFrameDeleteGuard(SwFrame* pFrame)
1261  : m_pForbidFrame((pFrame && !pFrame->IsDeleteForbidden()) ?
1262  pFrame : nullptr)
1263  {
1264  if (m_pForbidFrame)
1265  m_pForbidFrame->ForbidDelete();
1266  }
1267 
1268  SwFrameDeleteGuard(const SwFrameDeleteGuard&) =delete;
1269 
1271  {
1272  if (m_pForbidFrame)
1273  m_pForbidFrame->AllowDelete();
1274  }
1275 
1277 };
1278 
1279 typedef tools::Long (SwFrame::*SwFrameGet)() const;
1280 typedef bool (SwFrame::*SwFrameMax)( tools::Long );
1281 typedef void (SwFrame::*SwFrameMakePos)( const SwFrame*, const SwFrame*, bool );
1284 
1286 {
1295 
1302 
1309 
1312 
1329 
1336 
1339 };
1340 
1342 
1343 // This class allows to use proper methods regardless of orientation (LTR/RTL, horizontal or vertical)
1346 public:
1347  explicit SwRectFnSet(const SwFrame *pFrame)
1348  : m_bVert(pFrame->IsVertical())
1349  , m_bVertL2R(pFrame->IsVertLR())
1350  , m_bVertL2RB2T(pFrame->IsVertLRBT())
1351  {
1352  m_fnRect = m_bVert ? (m_bVertL2R ? (m_bVertL2RB2T ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert) : fnRectHori;
1353  }
1354 
1355  void Refresh(const SwFrame *pFrame)
1356  {
1357  m_bVert = pFrame->IsVertical();
1358  m_bVertL2R = pFrame->IsVertLR();
1359  m_bVertL2RB2T = pFrame->IsVertLRBT();
1360  m_fnRect = m_bVert ? (m_bVertL2R ? (m_bVertL2RB2T ? fnRectVertL2RB2T : fnRectVertL2R) : fnRectVert) : fnRectHori;
1361  }
1362 
1363  bool IsVert() const { return m_bVert; }
1364  bool IsVertL2R() const { return m_bVertL2R; }
1365  SwRectFn FnRect() const { return m_fnRect; }
1366 
1367  bool PosDiff(const SwRect &rRect1, const SwRect &rRect2) const
1368  {
1369  return ((rRect1.*m_fnRect->fnGetTop)() != (rRect2.*m_fnRect->fnGetTop)()
1370  || (rRect1.*m_fnRect->fnGetLeft)() != (rRect2.*m_fnRect->fnGetLeft)());
1371  }
1372 
1373  tools::Long GetTop (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetTop) (); }
1374  tools::Long GetBottom(const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetBottom)(); }
1375  tools::Long GetLeft (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetLeft) (); }
1376  tools::Long GetRight (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetRight) (); }
1377  tools::Long GetWidth (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetWidth) (); }
1378  tools::Long GetHeight(const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetHeight)(); }
1379  Point GetPos (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetPos) (); }
1380  Size GetSize (const SwRect& rRect) const { return (rRect.*m_fnRect->fnGetSize) (); }
1381 
1382  void SetTop (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetTop) (nNew); }
1383  void SetBottom(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetBottom)(nNew); }
1384  void SetLeft (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetLeft) (nNew); }
1385  void SetRight (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetRight) (nNew); }
1386  void SetWidth (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetWidth) (nNew); }
1387  void SetHeight(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetHeight)(nNew); }
1388 
1389  void SubTop (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSubTop) (nNew); }
1390  void AddBottom(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnAddBottom)(nNew); }
1391  void SubLeft (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSubLeft) (nNew); }
1392  void AddRight (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnAddRight) (nNew); }
1393  void AddWidth (SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnAddWidth) (nNew); }
1394  void AddHeight(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnAddHeight)(nNew); }
1395 
1396  void SetPosX(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetPosX)(nNew); }
1397  void SetPosY(SwRect& rRect, tools::Long nNew) const { (rRect.*m_fnRect->fnSetPosY)(nNew); }
1398 
1399  tools::Long GetTopMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetTopMargin) (); }
1400  tools::Long GetBottomMargin(const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetBottomMargin)(); }
1401  tools::Long GetLeftMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetLeftMargin) (); }
1402  tools::Long GetRightMargin (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetRightMargin) (); }
1403  void SetXMargins(SwFrame& rFrame, tools::Long nLeft, tools::Long nRight) const { (rFrame.*m_fnRect->fnSetXMargins)(nLeft, nRight); }
1404  void SetYMargins(SwFrame& rFrame, tools::Long nTop, tools::Long nBottom) const { (rFrame.*m_fnRect->fnSetYMargins)(nTop, nBottom); }
1405  tools::Long GetPrtTop (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtTop) (); }
1406  tools::Long GetPrtBottom (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtBottom) (); }
1407  tools::Long GetPrtLeft (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtLeft) (); }
1408  tools::Long GetPrtRight (const SwFrame& rFrame) const { return (rFrame.*m_fnRect->fnGetPrtRight) (); }
1409  tools::Long TopDist (const SwRect& rRect, tools::Long nPos) const { return (rRect.*m_fnRect->fnTopDist) (nPos); }
1410  tools::Long BottomDist(const SwRect& rRect, tools::Long nPos) const { return (rRect.*m_fnRect->fnBottomDist) (nPos); }
1411  tools::Long LeftDist (const SwRect& rRect, tools::Long nPos) const { return (rRect.*m_fnRect->fnLeftDist) (nPos); }
1412  tools::Long RightDist (const SwRect& rRect, tools::Long nPos) const { return (rRect.*m_fnRect->fnRightDist) (nPos); }
1413  void SetLimit (SwFrame& rFrame, tools::Long nNew) const { (rFrame.*m_fnRect->fnSetLimit) (nNew); }
1414  bool OverStep (const SwRect& rRect, tools::Long nPos) const { return (rRect.*m_fnRect->fnOverStep) (nPos); }
1415 
1416  void SetPos(SwRect& rRect, const Point& rNew) const { (rRect.*m_fnRect->fnSetPos)(rNew); }
1417  void MakePos(SwFrame& rFrame, const SwFrame* pUp, const SwFrame* pPrv, bool bNotify) const { (rFrame.*m_fnRect->fnMakePos)(pUp, pPrv, bNotify); }
1418  tools::Long XDiff(tools::Long n1, tools::Long n2) const { return (m_fnRect->fnXDiff) (n1, n2); }
1419  tools::Long YDiff(tools::Long n1, tools::Long n2) const { return (m_fnRect->fnYDiff) (n1, n2); }
1420  tools::Long XInc (tools::Long n1, tools::Long n2) const { return (m_fnRect->fnXInc) (n1, n2); }
1421  tools::Long YInc (tools::Long n1, tools::Long n2) const { return (m_fnRect->fnYInc) (n1, n2); }
1422 
1423  void SetLeftAndWidth(SwRect& rRect, tools::Long nLeft, tools::Long nWidth) const { (rRect.*m_fnRect->fnSetLeftAndWidth)(nLeft, nWidth); }
1424  void SetTopAndHeight(SwRect& rRect, tools::Long nTop, tools::Long nHeight) const { (rRect.*m_fnRect->fnSetTopAndHeight)(nTop, nHeight); }
1425 
1426 private:
1427  bool m_bVert;
1431 };
1432 
1433 #endif
1434 
1435 /* 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:1382
void transform(const basegfx::B2DHomMatrix &aTransform)
Definition: wsfrm.cxx:286
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:727
void InvalidateInfFlags()
Definition: frame.hxx:606
SwFrameGet fnGetPrtBottom
Definition: frame.hxx:1320
tools::Long GetRight(const SwRect &rRect) const
Definition: frame.hxx:1376
void RestoreContent(SwFrame *pSav, SwLayoutFrame *pParent, SwFrame *pSibling)
Definition: frmtool.cxx:2954
bool(SwRect::* SwRectMax)(tools::Long) const
Definition: swrect.hxx:158
Point GetPos(const SwRect &rRect) const
Definition: frame.hxx:1379
const SwSortedObjs * GetDrawObjs() const
Definition: frame.hxx:563
SwRectMax fnOverStep
Definition: frame.hxx:1328
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:1394
SwRectDist fnBottomDist
Definition: frame.hxx:1324
SwFrame * mpPrev
Definition: frame.hxx:338
bool IsInDocBody() const
Definition: frame.hxx:939
tools::Long GetPrtRight(const SwFrame &rFrame) const
Definition: frame.hxx:1408
bool IsInFly() const
Definition: frame.hxx:957
bool IsRootFrame() const
Definition: frame.hxx:1170
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:1397
bool mbValidLineNum
Definition: frame.hxx:426
bool IsInSct() const
Definition: frame.hxx:963
Size GetSize(const SwRect &rRect) const
Definition: frame.hxx:1380
SwRootFrame * mpRoot
Definition: frame.hxx:335
tools::Long BottomDist(const SwRect &rRect, tools::Long nPos) const
Definition: frame.hxx:1410
basegfx::B2DHomMatrix maFrameAreaTransformation
Definition: frame.hxx:242
SwRect getUntransformedFramePrintArea() const
Definition: wsfrm.cxx:188
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:882
tools::Long GetLeftMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1401
void Refresh(const SwFrame *pFrame)
Definition: frame.hxx:1355
void SetCompletePaint() const
Definition: frame.hxx:990
void ImplInvalidateSize()
Definition: wsfrm.cxx:1945
bool IsInFootnote() const
Definition: frame.hxx:945
SwOperator fnXInc
Definition: frame.hxx:1334
SwFrameType GetType() const
Definition: frame.hxx:518
SwRectFn FnRect() const
Definition: frame.hxx:1365
SwRectSetTwice fnSetLeftAndWidth
Definition: frame.hxx:1337
void ValidateText(SwFrame *pFrame)
Definition: frmform.cxx:70
void setSwRect(const SwRect &rNew)
Definition: frame.hxx:197
void SetDerivedR2L(bool bNew)
Definition: frame.hxx:630
SwRectSet fnSetPosX
Definition: frame.hxx:1310
#define FRM_CNTNT
Definition: frame.hxx:102
long Long
const SwRect & getFramePrintArea() const
Definition: frame.hxx:179
void InvalidateLineNum_()
Definition: frame.hxx:793
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:30
tools::Long XInc(tools::Long n1, tools::Long n2) const
Definition: frame.hxx:1420
void InvalidateSize_()
Definition: frame.hxx:769
SwFrame * FindPrev()
Definition: frame.hxx:1151
struct _ADOColumn Column
const SwFrame * GetNext() const
Definition: frame.hxx:689
virtual bool InvalidationAllowed(const InvalidationType _nInvalid) const
method to determine, if an invalidation is allowed.
Definition: wsfrm.cxx:1939
void InvalidatePos()
Definition: frame.hxx:1039
SwFrameAreaDefinition & mrSwFrameAreaDefinition
Definition: frame.hxx:238
SwRectGet fnGetHeight
Definition: frame.hxx:1292
SwOperator fnXDiff
Definition: frame.hxx:1332
const SwBodyFrame * FindBodyFrame() const
Definition: frame.hxx:1116
bool GetValidLineNumFlag() const
Definition: frame.hxx:760
This class is used as parameter for creation of a block cursor selection.
SvxFrameDirection
bool IsVert() const
Definition: frame.hxx:1363
SwRectGet fnGetWidth
Definition: frame.hxx:1291
void SubTop(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1389
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:1137
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:121
bool IsCellFrame() const
Definition: frame.hxx:1222
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
void ImplInvalidatePrt()
Definition: wsfrm.cxx:1961
bool mbInfBody
Definition: frame.hxx:437
tools::Long GetWidth(const SwRect &rRect) const
Definition: frame.hxx:1377
SwRectSet fnSubLeft
Definition: frame.hxx:1305
bool mbVertLR
Definition: frame.hxx:423
void AddBottom(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1390
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
bool IsFootnoteFrame() const
Definition: frame.hxx:1198
void SetXMargins(SwFrame &rFrame, tools::Long nLeft, tools::Long nRight) const
Definition: frame.hxx:1403
void ValidateLineNum()
Definition: frame.hxx:758
FrameAreaWriteAccess(SwFrameAreaDefinition &rTarget)
Definition: frame.hxx:195
SwFrame * sw_FormatNextContentForKeep(SwTabFrame *pTabFrame)
Definition: tabfrm.cxx:1773
bool isFrameAreaDefinitionValid() const
Definition: frame.hxx:170
SwRectGet fnGetBottom
Definition: frame.hxx:1288
static bool bFootnote
Definition: insfnote.cxx:33
void AddRight(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1392
SwRectSize fnGetSize
Definition: frame.hxx:1294
void ValidateSz(SwFrame *pFrame)
Definition: calcmove.cxx:1211
SwRectSet fnAddRight
Definition: frame.hxx:1306
tools::Long TopDist(const SwRect &rRect, tools::Long nPos) const
Definition: frame.hxx:1409
SwRectFnSet(const SwFrame *pFrame)
Definition: frame.hxx:1347
bool IsVertLRBT() const
Definition: frame.hxx:979
SwRectGet fnGetRight
Definition: frame.hxx:1290
tools::Long GetTop(const SwRect &rRect) const
Definition: frame.hxx:1373
SwSectionFrame * ImplFindSctFrame()
Definition: findfrm.cxx:481
SvxBorderLineStyle
bool mbVertLRBT
Definition: frame.hxx:424
void SetRetouche() const
Definition: frame.hxx:999
SwFrameMakePos fnMakePos
Definition: frame.hxx:1331
bool IsFlyFrame() const
Definition: frame.hxx:1206
void SetBottom(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1383
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:159
SwFrameGet fnGetRightMargin
Definition: frame.hxx:1316
const SwLayoutFrame * GetPrevLayoutLeaf() const
Definition: frame.hxx:1020
static void SetCache(SwCache *pNew)
Definition: frame.hxx:522
void restoreFrameAreas()
Definition: wsfrm.cxx:268
const SwRect & getFrameArea() const
Definition: frame.hxx:178
bool mbInfTab
Definition: frame.hxx:438
SwRectSet fnAddWidth
Definition: frame.hxx:1307
bool IsInTab() const
Definition: frame.hxx:951
SwFrameGet fnGetPrtRight
Definition: frame.hxx:1322
void setRootFrame(SwRootFrame *pRoot)
Definition: frame.hxx:454
bool IsTextFrame() const
Definition: frame.hxx:1230
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:41
SwRectFn fnRectVertL2R
Definition: newfrm.cxx:288
SwFrameGet fnGetPrtTop
Definition: frame.hxx:1319
tools::Long GetPrtLeft(const SwFrame &rFrame) const
Definition: frame.hxx:1407
void setFramePrintAreaValid(bool bNew)
Definition: wsfrm.cxx:99
bool m_bVertL2R
Definition: frame.hxx:1428
bool OnRightPage() const
Definition: frame.hxx:731
const SwLayoutFrame * GetUpper() const
Definition: frame.hxx:691
bool mbInfInvalid
Definition: frame.hxx:436
SwFrameInvFlags
Definition: frame.hxx:291
bool IsSctFrame() const
Definition: frame.hxx:1210
SwFrameGet fnGetLeftMargin
Definition: frame.hxx:1315
SwFlyFrame * FindFlyFrame()
Definition: frame.hxx:1107
SwFrame * FindPrev_()
Definition: findfrm.cxx:1154
SwRectSet fnAddHeight
Definition: frame.hxx:1308
tools::Long GetLeft(const SwRect &rRect) const
Definition: frame.hxx:1375
SwFrameSet fnSetXMargins
Definition: frame.hxx:1317
bool IsFlowFrame() const
Definition: frame.hxx:1238
SwOperator fnYInc
Definition: frame.hxx:1335
SwFrameGet fnGetTopMargin
Definition: frame.hxx:1313
SwRectFn fnRectHori
Definition: newfrm.cxx:286
SwFrame * SaveContent(SwLayoutFrame *pLay, SwFrame *pStart=nullptr)
Definition: frmtool.cxx:2792
void SetLimit(SwFrame &rFrame, tools::Long nNew) const
Definition: frame.hxx:1413
helper class to check if a frame has been deleted during an operation WARNING! This should only be us...
Definition: frmtool.hxx:594
SwFrameGet fnGetPrtLeft
Definition: frame.hxx:1321
Base class for various Writer styles.
Definition: format.hxx:46
bool IsColumnFrame() const
Definition: frame.hxx:1178
SwRectFn fnRectVertL2RB2T
Definition: newfrm.cxx:289
SwRectFn m_fnRect
Definition: frame.hxx:1430
void(SwRect::* SwRectSet)(const tools::Long nNew)
Definition: swrect.hxx:154
SwFootnoteFrame * FindFootnoteFrame()
Definition: frame.hxx:1103
tools::Long XDiff(tools::Long n1, tools::Long n2) const
Definition: frame.hxx:1418
struct _xmlTextWriter * xmlTextWriterPtr
void SetInvalidVert(bool bNew)
Definition: frame.hxx:628
void(SwFrame::* SwFrameMakePos)(const SwFrame *, const SwFrame *, bool)
Definition: frame.hxx:1281
bool IsInDtor() const
Definition: frame.hxx:888
void SetDerivedVert(bool bNew)
Definition: frame.hxx:627
void AddWidth(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1393
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:1465
PrepareHint
Definition: swtypes.hxx:198
void FriendHackInvalidateRowFrame(SwFrameAreaDefinition &rRowFrame)
Definition: tabfrm.cxx:1824
bool IsContentFrame() const
Definition: frame.hxx:1226
void InvalidateLineNum()
Definition: frame.hxx:1046
virtual css::uno::Sequence< css::style::TabStop > GetTabStopInfo(SwTwips)
Definition: frame.hxx:512
SwFrame * GetIndPrev() const
Definition: frame.hxx:722
void InvalidatePrt()
Definition: frame.hxx:1032
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:1406
SwFrameType
Definition: frame.hxx:73
SwFrame * FindNext_()
Definition: findfrm.cxx:773
SwFrame * GetIndNext()
Definition: frame.hxx:725
basegfx::B2DHomMatrix maFramePrintAreaTransformation
Definition: frame.hxx:243
void ColUnlock()
Definition: frame.hxx:448
SwPageFrame * FindPageFrame()
Definition: frame.hxx:678
virtual bool IsDeleteForbidden() const
Definition: frame.hxx:883
static tools::Long GetLeftMargin(SwView const &rView)
Definition: viewport.cxx:64
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:1421
bool IsCompletePaint() const
Definition: frame.hxx:599
void AllowDelete()
Definition: frame.hxx:924
tools::Long GetHeight(const SwRect &rRect) const
Definition: frame.hxx:1378
void SubLeft(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1391
tools::Long(* SwOperator)(tools::Long, tools::Long)
Definition: frame.hxx:1282
bool(SwFrame::* SwFrameMax)(tools::Long)
Definition: frame.hxx:1280
bool mbInvalidR2L
Definition: frame.hxx:416
void SetRight(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1385
SwLayoutFrame * GetUpper()
Definition: frame.hxx:676
bool PosDiff(const SwRect &rRect1, const SwRect &rRect2) const
Definition: frame.hxx:1367
bool mbVertical
Definition: frame.hxx:421
bool isFramePrintAreaValid() const
Definition: frame.hxx:167
bool IsRowFrame() const
Definition: frame.hxx:1218
tools::Long GetPrtTop(const SwFrame &rFrame) const
Definition: frame.hxx:1405
SwFlyFrame * ImplFindFlyFrame()
Definition: findfrm.cxx:517
SwFootnoteBossFrame * FindFootnoteBossFrame(bool bFootnotes=false)
Definition: findfrm.cxx:436
bool IsRetoucheFrame() const
Definition: frame.hxx:1242
SwFrame * GetPrev()
Definition: frame.hxx:675
SwLayoutFrame * mpUpper
Definition: frame.hxx:336
const SwRootFrame * getRootFrame() const
Definition: frame.hxx:692
tools::Long GetTopMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1399
void ImplInvalidateNextPos(bool bNoFootnote)
Definition: findfrm.cxx:1231
bool isFrameAreaPositionValid() const
Definition: frame.hxx:165
tools::Long YDiff(tools::Long n1, tools::Long n2) const
Definition: frame.hxx:1419
SwFrameSet fnSetYMargins
Definition: frame.hxx:1318
SwFrameDeleteGuard(SwFrame *pFrame)
Definition: frame.hxx:1260
tools::Long GetRightMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1402
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwRectDist fnTopDist
Definition: frame.hxx:1323
bool HasFixSize() const
Definition: frame.hxx:668
bool isFrameAreaSizeValid() const
Definition: frame.hxx:166
void InvalidatePos_()
Definition: frame.hxx:785
A page of the document layout.
Definition: pagefrm.hxx:57
tools::Long(SwFrame::* SwFrameGet)() const
Definition: frame.hxx:1279
void OptCalc() const
Definition: frame.hxx:1076
SwRectSet fnSetLeft
Definition: frame.hxx:1298
tools::Long SwTwips
Definition: swtypes.hxx:49
Footer
SwRectSet fnSubTop
Definition: frame.hxx:1303
bool m_bVertL2RB2T
Definition: frame.hxx:1429
void(SwRect::* SwRectSetTwice)(tools::Long, tools::Long)
Definition: swrect.hxx:160
void InvalidateSize()
Definition: frame.hxx:1025
void ResetCompletePaint() const
Definition: frame.hxx:994
SwSectionFrame * FindSctFrame()
Definition: frame.hxx:1111
SwRectSet fnSetBottom
Definition: frame.hxx:1297
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:1003
SwRectFnCollection * SwRectFn
Definition: frame.hxx:1341
SwRectGet fnGetLeft
Definition: frame.hxx:1289
void setFrameAreaPositionValid(bool bNew)
Definition: wsfrm.cxx:83
void SetTopAndHeight(SwRect &rRect, tools::Long nTop, tools::Long nHeight) const
Definition: frame.hxx:1424
void SetPosX(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1396
bool IsLayoutFrame() const
Definition: frame.hxx:1166
static sal_uInt32 snLastFrameId
Definition: frame.hxx:151
bool OverStep(const SwRect &rRect, tools::Long nPos) const
Definition: frame.hxx:1414
SwFrame * m_pForbidFrame
Definition: frame.hxx:1255
SwRectSetTwice fnSetTopAndHeight
Definition: frame.hxx:1338
void SetYMargins(SwFrame &rFrame, tools::Long nTop, tools::Long nBottom) const
Definition: frame.hxx:1404
void MakeNxt(SwFrame *pFrame, SwFrame *pNxt)
Definition: calcmove.cxx:1919
void SetWidth(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1386
bool IsVertLR() const
Definition: frame.hxx:975
MakePageType
Definition: frame.hxx:111
tools::Long GetBottomMargin(const SwFrame &rFrame) const
Definition: frame.hxx:1400
bool IsTabFrame() const
Definition: frame.hxx:1214
SwRectSet fnAddBottom
Definition: frame.hxx:1304
general base class for all free-flowing frames
Definition: flyfrm.hxx:78
tools::Long(SwRect::* SwRectGet)() const
Definition: swrect.hxx:155
void(SwFrame::* SwFrameSet)(tools::Long, tools::Long)
Definition: frame.hxx:1283
void OptPrepareMake()
Definition: calcmove.cxx:378
tools::Long LeftDist(const SwRect &rRect, tools::Long nPos) const
Definition: frame.hxx:1411
SwFrameMax fnSetLimit
Definition: frame.hxx:1327
unsigned char sal_uInt8
#define FRM_LAYOUT
Definition: frame.hxx:100
void InvalidateAll_()
Definition: frame.hxx:801
SwRectPoint fnGetPos
Definition: frame.hxx:1293
SwFrameDeleteGuard & operator=(const SwFrameDeleteGuard &)=delete
void SetHeight(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1387
SwSortedObjs * GetDrawObjs()
Definition: frame.hxx:564
bool IsNoTextFrame() const
Definition: frame.hxx:1234
#define FRM_ACCESSIBLE
Definition: frame.hxx:104
const sw::BroadcastingModify * GetDep() const
Definition: frame.hxx:477
SwRectSet fnSetHeight
Definition: frame.hxx:1301
SwRect getUntransformedFrameArea() const
Definition: wsfrm.cxx:164
void InvalidateNextPos(bool bNoFootnote=false)
Definition: frame.hxx:1068
bool IsRightToLeft() const
Definition: frame.hxx:983
const SwModify * GetRegisteredIn() const
Definition: calbck.hxx:159
void setFrameAreaSizeValid(bool bNew)
Definition: wsfrm.cxx:91
bool IsVertL2R() const
Definition: frame.hxx:1364
SwFrameType mnFrameType
Definition: frame.hxx:413
bool IsPageFrame() const
Definition: frame.hxx:1174
bool mbRetouche
Definition: frame.hxx:434
SwRectSet fnSetWidth
Definition: frame.hxx:1300
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:1933
void SetPos(SwRect &rRect, const Point &rNew) const
Definition: frame.hxx:1416
Helper class to isolate geometry-defining members of SwFrame and to control their accesses...
Definition: frame.hxx:131
SwRectSet fnSetTop
Definition: frame.hxx:1296
void SetInfFlags()
Definition: findfrm.cxx:1428
Size(SwRect::* SwRectSize)() const
Definition: swrect.hxx:157
bool IsRetouche() const
Definition: frame.hxx:603
void MakePos(SwFrame &rFrame, const SwFrame *pUp, const SwFrame *pPrv, bool bNotify) const
Definition: frame.hxx:1417
bool mbRightToLeft
Definition: frame.hxx:418
bool mbCompletePaint
Definition: frame.hxx:432
SwRectSetPos fnSetPos
Definition: frame.hxx:1330
bool IsVertical() const
Definition: frame.hxx:969
tools::Long GetBottom(const SwRect &rRect) const
Definition: frame.hxx:1374
SwModify * GetRegisteredInNonConst() const
Definition: calbck.hxx:141
void ImplInvalidateLineNum()
Definition: wsfrm.cxx:1997
bool IsAccessibleFrame() const
Definition: frame.hxx:1246
void InvalidatePrt_()
Definition: frame.hxx:777
SwRectSet fnSetRight
Definition: frame.hxx:1299
void SetLeft(SwRect &rRect, tools::Long nNew) const
Definition: frame.hxx:1384
void InvalidateAll()
Definition: frame.hxx:1051
SwRectDist fnLeftDist
Definition: frame.hxx:1325
void ForbidDelete()
Definition: frame.hxx:923
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:1182
const SwLayoutFrame * GetNextLayoutLeaf() const
Definition: frame.hxx:1016
const SwFrame * GetPrev() const
Definition: frame.hxx:690
SwRectDist fnRightDist
Definition: frame.hxx:1326
SwRectSet fnSetPosY
Definition: frame.hxx:1311
SwOperator fnYDiff
Definition: frame.hxx:1333
tools::Long RightDist(const SwRect &rRect, tools::Long nPos) const
Definition: frame.hxx:1412
bool IsFootnoteContFrame() const
Definition: frame.hxx:1194
Point(SwRect::* SwRectPoint)() const
Definition: swrect.hxx:156
void adaptFrameAreasToTransformations()
Definition: wsfrm.cxx:233
void ImplInvalidatePos()
Definition: wsfrm.cxx:1977
bool IsNeighbourFrame() const
Definition: frame.hxx:908
bool IsBodyFrame() const
Definition: frame.hxx:1202
void SetLeftAndWidth(SwRect &rRect, tools::Long nLeft, tools::Long nWidth) const
Definition: frame.hxx:1423
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:213
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:1427
bool IsFooterFrame() const
Definition: frame.hxx:1190
void(SwRect::* SwRectSetPos)(const Point &)
Definition: swrect.hxx:161
SwRootFrame * getRootFrame()
Definition: frame.hxx:677
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:1186
SwRectGet fnGetTop
Definition: frame.hxx:1287
TransformableSwFrame(SwFrameAreaDefinition &rSwFrameAreaDefinition)
Definition: frame.hxx:246
SwTabFrame * FindTabFrame()
Definition: frame.hxx:1095
SwFrame * GetNext()
Definition: frame.hxx:674
SwFrameGet fnGetBottomMargin
Definition: frame.hxx:1314
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo