LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
SwContentFrame Class Referenceabstract

SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text (e.g. More...

#include <cntfrm.hxx>

Inheritance diagram for SwContentFrame:
[legend]
Collaboration diagram for SwContentFrame:
[legend]

Public Member Functions

virtual void Cut () override
 
virtual void Paste (SwFrame *pParent, SwFrame *pSibling=nullptr) override
 
const SwContentFrameGetFollow () const
 
SwContentFrameGetFollow ()
 
SwTextFrameFindMaster () const
 
virtual bool LeftMargin (SwPaM *) const =0
 
virtual bool RightMargin (SwPaM *, bool bAPI=false) const =0
 
virtual bool UnitUp (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const
 
virtual bool UnitDown (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const
 
virtual bool WouldFit (SwTwips &nMaxHeight, bool &bSplit, bool bTst, bool)
 
bool MoveFootnoteCntFwd (bool, SwFootnoteBossFrame *)
 Return value guarantees that a new page was not created. See SwFlowFrame::MoveFwd. More...
 
SwContentFrameGetNextContentFrame () const
 
SwContentFrameGetPrevContentFrame () const
 
- Public Member Functions inherited from SwFrame
virtual css::uno::Sequence< css::style::TabStop > GetTabStopInfo (SwTwips)
 
SwFrameType GetType () const
 
SwTwips Shrink (SwTwips, bool bTst=false, bool bInfo=false)
 
SwTwips Grow (SwTwips, bool bTst=false, bool bInfo=false)
 
void InsertBefore (SwLayoutFrame *pParent, SwFrame *pBehind)
 Insert SwFrame into existing structure. More...
 
void InsertBehind (SwLayoutFrame *pParent, SwFrame *pBefore)
 Insert SwFrame into existing structure. More...
 
bool InsertGroupBefore (SwFrame *pParent, SwFrame *pWhere, SwFrame *pSct)
 Insert a chain of SwFrames into an existing structure. More...
 
void RemoveFromLayout ()
 
SwLayoutFrameGetLeaf (MakePageType eMakePage, bool bFwd)
 
SwLayoutFrameGetNextLeaf (MakePageType eMakePage)
 Returns the next layout leaf in which we can move the frame. More...
 
SwLayoutFrameGetNextFootnoteLeaf (MakePageType eMakePage)
 Return the next layout leaf in that the frame can be moved. More...
 
SwLayoutFrameGetNextSctLeaf (MakePageType eMakePage)
 Returns the next layout sheet where the frame can be moved in. More...
 
SwLayoutFrameGetNextFlyLeaf (MakePageType eMakePage)
 
SwLayoutFrameGetPrevLeaf ()
 Returns the previous layout leaf where we can move the frame. More...
 
SwLayoutFrameGetPrevFootnoteLeaf (MakePageType eMakeFootnote)
 Get the preceding layout leaf in that the frame can be moved. More...
 
SwLayoutFrameGetPrevSctLeaf ()
 Returns the preceding layout sheet where the frame can be moved into. More...
 
SwLayoutFrameGetPrevFlyLeaf ()
 
const SwLayoutFrameGetLeaf (MakePageType eMakePage, bool bFwd, const SwFrame *pAnch) const
 Returns the next/previous Layout leaf that's NOT below this (or even is this itself). More...
 
bool WrongPageDesc (SwPageFrame *pNew)
 
void AppendDrawObj (SwAnchoredObject &_rNewObj)
 
void RemoveDrawObj (SwAnchoredObject &_rToRemoveObj)
 
void AppendFly (SwFlyFrame *pNew)
 
void RemoveFly (SwFlyFrame *pToRemove)
 
const SwSortedObjsGetDrawObjs () const
 
SwSortedObjsGetDrawObjs ()
 
void SetDrawObjsAsDeleted (bool bDeleted)
 
void InvalidateObjs (const bool _bNoInvaOfAsCharAnchoredObjs=true)
 
virtual void PaintSwFrameShadowAndBorder (const SwRect &, const SwPageFrame *pPage, const SwBorderAttrs &) const
 Paints shadows and borders. More...
 
void PaintBaBo (const SwRect &, const SwPageFrame *pPage, const bool bOnlyTextBackground=false) const
 
void PaintSwFrameBackground (const SwRect &, const SwPageFrame *pPage, const SwBorderAttrs &, const bool bLowerMode=false, const bool bLowerBorder=false, const bool bOnlyTextBackground=false) const
 Do not paint background for fly frames without a background brush by calling <PaintBaBo> at the page or at the fly frame its anchored. More...
 
void PaintBorderLine (const SwRect &, const SwRect &, const SwPageFrame *, const Color *pColor, const SvxBorderLineStyle=SvxBorderLineStyle::SOLID) const
 
std::unique_ptr< drawinglayer::processor2d::BaseProcessor2DCreateProcessor2D () const
 
void ProcessPrimitives (const drawinglayer::primitive2d::Primitive2DContainer &rSequence) const
 
void Retouch (const SwPageFrame *pPage, const SwRect &rRect) const
 Retouch for a section. More...
 
bool GetBackgroundBrush (drawinglayer::attribute::SdrAllFillAttributesHelperPtr &rFillAttributes, const SvxBrushItem *&rpBrush, std::optional< Color > &rxColor, SwRect &rOrigRect, bool bLowerMode, bool bConsiderTextBox) const
 Determine the background brush for the frame: the background brush is taken from it-self or from its parent (anchor/upper). More...
 
void SetCompletePaint () const
 
void ResetCompletePaint () const
 
bool IsCompletePaint () const
 
void SetRetouche () const
 
void ResetRetouche () const
 
bool IsRetouche () const
 
void InvalidateInfFlags ()
 
bool IsInDocBody () const
 
bool IsInFootnote () const
 
bool IsInTab () const
 
bool IsInFly () const
 
bool IsInSct () const
 
bool IsVertical () const
 
bool IsVertLR () const
 
bool IsVertLRBT () const
 
void SetDerivedVert (bool bNew)
 
void SetInvalidVert (bool bNew)
 
bool IsRightToLeft () const
 
void SetDerivedR2L (bool bNew)
 
void CheckDirChange ()
 checks the layout direction and invalidates the lower frames recursively, if necessary. More...
 
Point GetFrameAnchorPos (bool bIgnoreFlysAnchoredAtThisFrame) const
 returns the position for anchors based on frame direction More...
 
bool IsFootnoteAllowed () const
 
virtual void Format (vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr)
 Calculates the frame area size and the print area, in case they are invalid. More...
 
virtual void CheckDirection (bool bVert)
 
void ReinitializeFrameSizeAttrFlags ()
 
bool HasFixSize () const
 
SwFrameGetNext ()
 
SwFrameGetPrev ()
 
SwLayoutFrameGetUpper ()
 
SwRootFramegetRootFrame ()
 
SwPageFrameFindPageFrame ()
 
SwFrameGetLower ()
 
const SwFrameGetNext () const
 
const SwFrameGetPrev () const
 
const SwLayoutFrameGetUpper () const
 
const SwRootFramegetRootFrame () const
 
SwTabFrameFindTabFrame ()
 
SwFootnoteFrameFindFootnoteFrame ()
 
SwFlyFrameFindFlyFrame ()
 
SwSectionFrameFindSctFrame ()
 
SwFrameFindNext ()
 
SwContentFrameFindNextCnt (const bool _bInSameFootnote=false)
 
SwFrameFindPrev ()
 
const SwPageFrameFindPageFrame () const
 
const SwFootnoteBossFrameFindFootnoteBossFrame (bool bFootnote=false) const
 
const SwFrameFindColFrame () const
 
const SwFrameFindFooterOrHeader () const
 
const SwTabFrameFindTabFrame () const
 
const SwFootnoteFrameFindFootnoteFrame () const
 
const SwFlyFrameFindFlyFrame () const
 
const SwSectionFrameFindSctFrame () const
 
const SwBodyFrameFindBodyFrame () const
 
const SwFrameFindNext () const
 
const SwContentFrameFindNextCnt (const bool _bInSameFootnote=false) const
 
const SwFrameFindPrev () const
 
const SwFrameGetLower () const
 
SwContentFrameFindPrevCnt ()
 
const SwContentFrameFindPrevCnt () const
 
SwFrameGetIndPrev_ () const
 Called for a frame inside a section with no direct previous frame (or only previous empty section frames) the previous frame of the outer section is returned, if the frame is the first flowing content of this section. More...
 
SwFrameGetIndPrev () const
 
SwFrameGetIndNext ()
 
const SwFrameGetIndNext () const
 
sal_uInt16 GetPhyPageNum () const
 
sal_uInt16 GetVirtPageNum () const
 
bool OnRightPage () const
 
bool WannaRightPage () const
 Decides if the page want to be a right page or not. More...
 
bool OnFirstPage () const
 
const SwLayoutFrameGetPrevLayoutLeaf () const
 
const SwLayoutFrameGetNextLayoutLeaf () const
 
SwLayoutFrameGetPrevLayoutLeaf ()
 
SwLayoutFrameGetNextLayoutLeaf ()
 
virtual void Calc (vcl::RenderContext *pRenderContext) const
 
void OptCalc () const
 
Point GetRelPos () const
 
SwRect GetPaintArea () const
 |* The paintarea is the area, in which the content of a frame is allowed |* to be displayed. More...
 
SwRect UnionFrame (bool bBorder=false) const
 |* The unionframe is the framearea (getFrameArea()) of a frame expanded by the |* printarea, if there's a negative margin at the left or right side. More...
 
virtual Size ChgSize (const Size &aNewSize)
 
virtual void Cut ()=0
 
virtual void Paste (SwFrame *pParent, SwFrame *pSibling=nullptr)=0
 
void ValidateLineNum ()
 
bool GetValidLineNumFlag () const
 
void InvalidateSize_ ()
 
void InvalidatePrt_ ()
 
void InvalidatePos_ ()
 
void InvalidateLineNum_ ()
 
void InvalidateAll_ ()
 
void InvalidateSize ()
 
void InvalidatePrt ()
 
void InvalidatePos ()
 
void InvalidateLineNum ()
 
void InvalidateAll ()
 
void ImplInvalidateSize ()
 
void ImplInvalidatePrt ()
 
void ImplInvalidatePos ()
 
void ImplInvalidateLineNum ()
 
void InvalidateNextPos (bool bNoFootnote=false)
 
void InvalidatePage (const SwPageFrame *pPage=nullptr) const
 Invalidates the page in which the Frame is currently placed. More...
 
virtual bool FillSelection (SwSelectionList &rList, const SwRect &rRect) const
 
virtual bool GetModelPositionForViewPoint (SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const
 
virtual bool GetCharRect (SwRect &, const SwPosition &, SwCursorMoveState *=nullptr, bool bAllowFarAway=true) const
 
virtual void PaintSwFrame (vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const
 
virtual bool Prepare (const PrepareHint ePrep=PrepareHint::Clear, const void *pVoid=nullptr, bool bNotify=true)
 
bool IsLayoutFrame () const
 
bool IsRootFrame () const
 
bool IsPageFrame () const
 
bool IsColumnFrame () const
 
bool IsFootnoteBossFrame () const
 
bool IsHeaderFrame () const
 
bool IsFooterFrame () const
 
bool IsFootnoteContFrame () const
 
bool IsFootnoteFrame () const
 
bool IsBodyFrame () const
 
bool IsColBodyFrame () const
 These SwFrame inlines are here, so that frame.hxx does not need to include layfrm.hxx. More...
 
bool IsPageBodyFrame () const
 
bool IsFlyFrame () const
 
bool IsSctFrame () const
 
bool IsTabFrame () const
 
bool IsRowFrame () const
 
bool IsCellFrame () const
 
bool IsContentFrame () const
 
bool IsTextFrame () const
 
bool IsNoTextFrame () const
 
bool IsFlowFrame () const
 
bool IsRetoucheFrame () const
 
bool IsAccessibleFrame () const
 
void PrepareCursor ()
 
bool IsProtected () const
 Is the Frame or rather the Section in which it lies protected? More...
 
bool IsColLocked () const
 
virtual bool IsDeleteForbidden () const
 
bool IsInDtor () const
 
tools::Long GetTopMargin () const
 
tools::Long GetBottomMargin () const
 
tools::Long GetLeftMargin () const
 
tools::Long GetRightMargin () const
 
void SetTopBottomMargins (tools::Long, tools::Long)
 
void SetLeftRightMargins (tools::Long, tools::Long)
 
void SetRightLeftMargins (tools::Long, tools::Long)
 
tools::Long GetPrtLeft () const
 
tools::Long GetPrtBottom () const
 
tools::Long GetPrtRight () const
 
tools::Long GetPrtTop () const
 
bool SetMinLeft (tools::Long)
 
bool SetMaxBottom (tools::Long)
 
bool SetMaxRight (tools::Long)
 
void MakeBelowPos (const SwFrame *, const SwFrame *, bool)
 
void MakeLeftPos (const SwFrame *, const SwFrame *, bool)
 
void MakeRightPos (const SwFrame *, const SwFrame *, bool)
 
bool IsNeighbourFrame () const
 
virtual bool IsLeaveUpperAllowed () const
 
virtual bool IsCoveredCell () const
 
bool IsInCoveredCell () const
 
bool KnowsFormat (const SwFormat &rFormat) const
 
void RegisterToFormat (SwFormat &rFormat)
 
void ValidateThisAndAllLowers (const sal_uInt16 nStage)
 
void ForbidDelete ()
 
void AllowDelete ()
 
virtual void dumpAsXml (xmlTextWriterPtr writer=nullptr) const =0
 
void dumpTopMostAsXml (xmlTextWriterPtr writer=nullptr) const
 
void dumpInfosAsXml (xmlTextWriterPtr writer) const
 
virtual void dumpAsXmlAttributes (xmlTextWriterPtr writer) const
 
void dumpChildrenAsXml (xmlTextWriterPtr writer) const
 
bool IsCollapse () const
 
SwLayoutFrameGetNextCellLeaf ()
 
SwLayoutFrameGetPrevCellLeaf ()
 
void SetInfFlags ()
 
const SwRowFrameIsInSplitTableRow () const
 
const SwRowFrameIsInFollowFlowRow () const
 
bool IsInBalancedSection () const
 
bool IsMoveable (const SwLayoutFrame *_pLayoutFrame=nullptr) const
 determine, if frame is moveable in given environment More...
 
const SwAttrSetGetAttrSet () const
 WARNING: this may not return correct RES_PAGEDESC/RES_BREAK items for SwTextFrame, use GetBreakItem()/GetPageDescItem() instead. More...
 
virtual const SvxFormatBreakItemGetBreakItem () const
 
virtual const SwFormatPageDescGetPageDescItem () const
 
SwFrameFindColFrame ()
 
SwRowFrameFindRowFrame ()
 
SwFootnoteBossFrameFindFootnoteBossFrame (bool bFootnotes=false)
 
SwTabFrameImplFindTabFrame ()
 
SwFootnoteFrameImplFindFootnoteFrame ()
 
SwFlyFrameImplFindFlyFrame ()
 
SwSectionFrameImplFindSctFrame ()
 
const SwBodyFrameImplFindBodyFrame () const
 
SwFrameFindFooterOrHeader ()
 
void ImplInvalidateNextPos (bool bNoFootnote)
 
void InvalidateNextPrtArea ()
 method to invalidate printing area of next frame #i11859# More...
 
SwTextFrameDynCastTextFrame ()
 
const SwTextFrameDynCastTextFrame () const
 
drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const
 
bool supportsFullDrawingLayerFillAttributeSet () const
 
- Public Member Functions inherited from SwFrameAreaDefinition
 SwFrameAreaDefinition ()
 
virtual ~SwFrameAreaDefinition ()
 
bool isFrameAreaPositionValid () const
 
bool isFrameAreaSizeValid () const
 
bool isFramePrintAreaValid () const
 
bool isFrameAreaDefinitionValid () const
 
sal_uInt32 GetFrameId () const
 
const SwRectgetFrameArea () const
 
const SwRectgetFramePrintArea () const
 
virtual basegfx::B2DHomMatrix getFrameAreaTransformation () const
 
virtual basegfx::B2DHomMatrix getFramePrintAreaTransformation () const
 
virtual void transform_translate (const Point &rOffset)
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Static Public Member Functions

static bool CalcLowers (SwLayoutFrame &rLay, SwLayoutFrame const &rDontLeave, tools::Long nBottom, bool bSkipRowSpanCells)
 
- Static Public Member Functions inherited from SwFrame
static SwCacheGetCache ()
 
static SwCacheGetCachePtr ()
 
static void SetCache (SwCache *pNew)
 
static void CheckPageDescs (SwPageFrame *pStart, bool bNotifyFields=true, SwPageFrame **ppPrev=nullptr)
 Check all pages (starting from the given one) if they use the appropriate frame format. More...
 
static void DestroyFrame (SwFrame *const pFrame)
 this is the only way to delete a SwFrame instance More...
 

Protected Member Functions

void MakePrtArea (const SwBorderAttrs &)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
virtual SwTwips ShrinkFrame (SwTwips, bool bTst=false, bool bInfo=false) override
 
virtual SwTwips GrowFrame (SwTwips, bool bTst=false, bool bInfo=false) override
 
 SwContentFrame (SwContentNode *const, SwFrame *)
 
virtual void DestroyImpl () override
 
virtual ~SwContentFrame () override
 
- Protected Member Functions inherited from SwFrame
void ColLock ()
 
void ColUnlock ()
 
virtual void DestroyImpl ()
 
virtual ~SwFrame () override
 
void setRootFrame (SwRootFrame *pRoot)
 
SwPageFrameInsertPage (SwPageFrame *pSibling, bool bFootnote)
 
void PrepareMake (vcl::RenderContext *pRenderContext)
 Prepares the Frame for "formatting" (MakeAll()). More...
 
void OptPrepareMake ()
 
virtual void MakePos ()
 Calculates the frame area position, in case it's invalid. More...
 
virtual void MakeAll (vcl::RenderContext *pRenderContext)=0
 
SwTwips AdjustNeighbourhood (SwTwips nDiff, bool bTst=false)
 Adjust surrounding neighbourhood after insertion. More...
 
virtual SwTwips ShrinkFrame (SwTwips, bool bTst=false, bool bInfo=false)=0
 
virtual SwTwips GrowFrame (SwTwips, bool bTst=false, bool bInfo=false)=0
 
sw::BroadcastingModify * GetDep ()
 use these so we can grep for SwFrame's GetRegisteredIn accesses beware that SwTextFrame may return sw::WriterMultiListener More...
 
const sw::BroadcastingModify * GetDep () const
 
 SwFrame (sw::BroadcastingModify *, SwFrame *)
 
void CheckDir (SvxFrameDirection nDir, bool bVert, bool bOnlyBiDi, bool bBrowse)
 
virtual bool InvalidationAllowed (const InvalidationType _nInvalid) const
 method to determine, if an invalidation is allowed. More...
 
virtual void ActionOnInvalidation (const InvalidationType _nInvalid)
 method to perform additional actions on an invalidation More...
 
void PaintShadow (const SwRect &, SwRect &, const SwBorderAttrs &) const
 Paints a shadow if the format requests so. More...
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
virtual const IDocumentDrawModelAccessgetIDocumentDrawModelAccess ()
 
- Protected Member Functions inherited from SwFrameAreaDefinition
void setFrameAreaPositionValid (bool bNew)
 
void setFrameAreaSizeValid (bool bNew)
 
void setFramePrintAreaValid (bool bNew)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Private Member Functions

bool WouldFit_ (SwTwips nSpace, SwLayoutFrame *pNewUpper, bool bTstMove, const bool bObjsInNewUpper)
 
virtual void MakeAll (vcl::RenderContext *pRenderContext) override
 
void UpdateAttr_ (const SfxPoolItem *, const SfxPoolItem *, SwContentFrameInvFlags &, SwAttrSetChg *pa=nullptr, SwAttrSetChg *pb=nullptr)
 
virtual bool ShouldBwdMoved (SwLayoutFrame *pNewUpper, bool &) override
 Return value tells whether the Frame should be moved. More...
 
const SwContentFrameImplGetNextContentFrame (bool bFwd) const
 Walk back inside the tree: grab the subordinate Frame if one exists and the last step was not moving up a level (this would lead to an infinite up/down loop!). More...
 

Friends

void MakeNxt (SwFrame *pFrame, SwFrame *pNxt)
 

Additional Inherited Members

- Protected Types inherited from SwFrame
enum  InvalidationType {
  INVALID_SIZE ,
  INVALID_PRTAREA ,
  INVALID_POS ,
  INVALID_LINENUM ,
  INVALID_ALL
}
 enumeration for the different invalidations #i28701# More...
 
- Protected Attributes inherited from SwFrame
std::unique_ptr< SwSortedObjsm_pDrawObjs
 
SwFrameType mnFrameType
 
bool mbInDtor: 1
 
bool mbInvalidR2L: 1
 
bool mbDerivedR2L: 1
 
bool mbRightToLeft: 1
 
bool mbInvalidVert: 1
 
bool mbDerivedVert: 1
 
bool mbVertical: 1
 
bool mbVertLR: 1
 
bool mbVertLRBT: 1
 
bool mbValidLineNum: 1
 
bool mbFixSize: 1
 
bool mbCompletePaint: 1
 
bool mbRetouche: 1
 
bool mbInfInvalid: 1
 
bool mbInfBody: 1
 
bool mbInfTab: 1
 
bool mbInfFly: 1
 
bool mbInfFootnote: 1
 
bool mbInfSct: 1
 
bool mbColLocked: 1
 
bool m_isInDestroy: 1
 
int mnForbidDelete
 

Detailed Description

SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text (e.g.

graphic) frames.

Definition at line 58 of file cntfrm.hxx.

Constructor & Destructor Documentation

◆ SwContentFrame()

SwContentFrame::SwContentFrame ( SwContentNode * const  pContent,
SwFrame pSib 
)
protected

◆ ~SwContentFrame()

SwContentFrame::~SwContentFrame ( )
overrideprotectedvirtual

Definition at line 451 of file ssfrm.cxx.

Member Function Documentation

◆ CalcLowers()

bool SwContentFrame::CalcLowers ( SwLayoutFrame rLay,
SwLayoutFrame const &  rDontLeave,
tools::Long  nBottom,
bool  bSkipRowSpanCells 
)
static

◆ Cut()

void SwContentFrame::Cut ( )
overridevirtual

Implements SwFrame.

Definition at line 1141 of file wsfrm.cxx.

References SwLayoutFrame::ContainsAny(), SwLayoutFrame::ContainsContent(), SwLayoutFrame::Cut(), SwSectionFrame::DelEmpty(), SwFrame::DestroyFrame(), ErgoSum, SwTabFrame::FindMaster(), SwFrame::FindNextCnt(), SwFrame::FindPageFrame(), SwFrame::FindSctFrame(), SwFrame::FindTabFrame(), SwRootFrame::GetCurrShell(), SwTabFrame::GetFirstNonHeadlineRow(), SwTabFrame::GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndNext(), SwFrame::GetIndPrev(), SwViewShellImp::GetLayAction(), SwFrame::GetNext(), SwPageFrame::GetPhyPageNum(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwFrame::GetUpper(), SwViewShell::Imp(), SwFrame::InvalidateLineNum_(), SwFrame::InvalidateNextPos(), SwFrame::InvalidatePage(), SwFrame::InvalidatePos_(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), SwFrame::InvalidateSize_(), SwViewShellImp::IsAction(), SwFrame::IsCellFrame(), SwFrame::IsColLocked(), SwFrame::IsContentFrame(), SwFrame::IsDeleteForbidden(), SwFrame::IsFootnoteFrame(), SwPageFrame::IsFootnotePage(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsInTab(), sw::IsPageFrameEmpty(), SwFrame::IsSctFrame(), SwFrame::IsTabFrame(), SwLayoutFrame::Lower(), SwFrame::Prepare(), QuoVadis, SwFrame::RemoveFromLayout(), SwLayAction::SetCheckPageNum(), SwFrame::SetCompletePaint(), SwTabFrame::SetRemoveFollowFlowLinePending(), SwFrame::SetRetouche(), SwRootFrame::SetSuperfluous(), SwFrame::Shrink(), and WidowsOrphans.

Referenced by SwTextFrame::JoinFrame().

◆ DestroyImpl()

void SwContentFrame::DestroyImpl ( )
overrideprotectedvirtual

◆ FindMaster()

SwTextFrame * SwContentFrame::FindMaster ( ) const

◆ GetFollow() [1/2]

SwContentFrame * SwContentFrame::GetFollow ( )
inline

Definition at line 140 of file cntfrm.hxx.

◆ GetFollow() [2/2]

const SwContentFrame * SwContentFrame::GetFollow ( ) const
inline

◆ GetNextContentFrame()

SwContentFrame * SwContentFrame::GetNextContentFrame ( ) const
inline

◆ GetPrevContentFrame()

SwContentFrame * SwContentFrame::GetPrevContentFrame ( ) const
inline

◆ GrowFrame()

SwTwips SwContentFrame::GrowFrame ( SwTwips  nDist,
bool  bTst = false,
bool  bInfo = false 
)
overrideprotectedvirtual

◆ ImplGetNextContentFrame()

const SwContentFrame * SwContentFrame::ImplGetNextContentFrame ( bool  bFwd) const
private

Walk back inside the tree: grab the subordinate Frame if one exists and the last step was not moving up a level (this would lead to an infinite up/down loop!).

With this we ensure that during walking back we search through all sub trees. If we walked downwards we have to go to the end of the chain first because we go backwards from the last Frame inside another Frame. Walking forward works the same.

Warning
fixes here may also need to be applied to thelcl_NextFrame} method above

Definition at line 426 of file findfrm.cxx.

References SwFrame::GetUpper(), SwFrame::IsContentFrame(), lcl_FindLayoutFrame(), lcl_GetLower(), and p.

Referenced by GetNextContentFrame(), and GetPrevContentFrame().

◆ LeftMargin()

virtual bool SwContentFrame::LeftMargin ( SwPaM ) const
pure virtual

◆ MakeAll()

void SwContentFrame::MakeAll ( vcl::RenderContext pRenderContext)
overrideprivatevirtual

Implements SwFrame.

Reimplemented in SwNoTextFrame.

Definition at line 1210 of file calcmove.cxx.

References AdjustSizeWithoutFormatting, bFootnote, SwRectFnSet::BottomDist(), SwFrame::Calc(), SwPageFrame::CheckPageHeightValidForHideWhitespace(), cnStopFormat, COMPLETE_STRING, SwFrame::FindFlyFrame(), SwFrame::FindFootnoteBossFrame(), SwFrame::FindFootnoteFrame(), SwFrame::FindNext(), SwFrame::FindPageFrame(), SwFrame::FindSctFrame(), FixSizeChanged, SwFrame::Format(), SwLayouter::FrameMovedFwdByObjPos(), FramePositionChanged, SwBorderAttrAccess::Get(), SwFootnoteFrame::GetAttr(), SwFrame::GetAttrSet(), SwBorderAttrs::GetAttrSet(), SwFrame::GetBreakItem(), SwFrame::GetCache(), SwRootFrame::GetCurrShell(), SwFrame::GetDrawObjs(), GetFollow(), SwTextAttr::GetFootnote(), SwTextFrame::GetFootnoteLine(), GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndNext(), SwFrame::GetIndPrev(), SwAttrSet::GetKeep(), SwFrame::GetNext(), SwFrame::GetNextCellLeaf(), SwViewShell::GetOut(), SwFrame::GetPhyPageNum(), SwRectFnSet::GetPos(), SwFrame::GetPrev(), SwRectFnSet::GetPrtBottom(), GetRef, SwFootnoteFrame::GetRef(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), GetValue, SwRectFnSet::GetWidth(), SwSectionFrame::Growable(), SwFrame::InvalidatePrt(), SwFrame::InvalidateSize(), SwLayoutFrame::IsBefore(), SwFrame::IsBodyFrame(), SwFrame::IsCellFrame(), SwFrame::IsColBodyFrame(), SwFrame::IsColLocked(), SwFrame::IsDeleteForbidden(), SwFormatFootnote::IsEndNote(), SwFrame::IsFlyFrame(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwFrameAreaDefinition::isFrameAreaPositionValid(), SwFrameAreaDefinition::isFrameAreaSizeValid(), SwFrameAreaDefinition::isFramePrintAreaValid(), SwFrame::IsInBalancedSection(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsInTab(), StackHack::IsLocked(), SwTextFrame::IsLocked(), SwFrame::IsMoveable(), SwFrame::IsSctFrame(), SwFrame::IsTextFrame(), SwBorderAttrs::JoinedWithPrev(), SwTextFrame::JoinFrame(), lcl_Prev(), LOOPING_LOUIE_LIGHT(), SwLayoutFrame::Lower(), MakeAll, SwFrame::MakePos(), MakePrtArea(), SwSectionFrame::MoveAllowed(), MoveFwd, MustFit, NONE, SwRectFnSet::OverStep(), p, SwFrame::Prepare(), PROTOCOL_ENTER, SwRectFnSet::Refresh(), SwFrame::ResetCompletePaint(), SDRTEXTVERTADJUST_TOP, SwFrame::SetCompletePaint(), SwFrameAreaDefinition::setFrameAreaPositionValid(), SwFrameAreaDefinition::setFrameAreaSizeValid(), SwFrameAreaDefinition::setFramePrintAreaValid(), SwRectFnSet::SetWidth(), STOP_FLY_FORMAT, SwFrame::ValidateSz, WidowsOrphans, and WouldFit().

◆ MakePrtArea()

void SwContentFrame::MakePrtArea ( const SwBorderAttrs rAttrs)
protected

◆ MoveFootnoteCntFwd()

bool SwContentFrame::MoveFootnoteCntFwd ( bool  bMakePage,
SwFootnoteBossFrame pOldBoss 
)

◆ Paste()

void SwContentFrame::Paste ( SwFrame pParent,
SwFrame pSibling = nullptr 
)
overridevirtual

◆ RightMargin()

virtual bool SwContentFrame::RightMargin ( SwPaM ,
bool  bAPI = false 
) const
pure virtual

◆ ShouldBwdMoved()

bool SwContentFrame::ShouldBwdMoved ( SwLayoutFrame pNewUpper,
bool &   
)
overrideprivatevirtual

◆ ShrinkFrame()

SwTwips SwContentFrame::ShrinkFrame ( SwTwips  nDist,
bool  bTst = false,
bool  bInfo = false 
)
overrideprotectedvirtual

◆ SwClientNotify()

void SwContentFrame::SwClientNotify ( const SwModify rMod,
const SfxHint rHint 
)
overrideprotectedvirtual

◆ UnitDown()

bool SwContentFrame::UnitDown ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const
virtual

Reimplemented in SwTextFrame.

Definition at line 968 of file trvlfrm.cxx.

References lcl_GetNxtCnt(), and lcl_UpDown().

Referenced by SwTextFrame::UnitDown_(), and SwCursor::UpDown().

◆ UnitUp()

bool SwContentFrame::UnitUp ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const
virtual

Reimplemented in SwTextFrame.

Definition at line 963 of file trvlfrm.cxx.

References lcl_GetPrvCnt(), and lcl_UpDown().

Referenced by SwTextFrame::UnitUp_(), and SwCursor::UpDown().

◆ UpdateAttr_()

void SwContentFrame::UpdateAttr_ ( const SfxPoolItem pOld,
const SfxPoolItem pNew,
SwContentFrameInvFlags rInvFlags,
SwAttrSetChg pa = nullptr,
SwAttrSetChg pb = nullptr 
)
private

Definition at line 2428 of file wsfrm.cxx.

References SwFrame::CheckPageDescs(), SwAttrSetChg::ClearItem(), SwFrame::FindNext(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), FixSizeChanged, IDocumentSettingAccess::get(), SwFormat::GetDoc(), SwLayoutFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwDoc::getIDocumentFieldsAccess(), SwFormat::getIDocumentSettingAccess(), SwFrame::GetIndNext(), SwFrame::GetPageDescItem(), SwFrame::GetPrev(), SwFrame::GetUpper(), InvalidateNextPos, InvalidateNextPrt, SwFrame::InvalidateNextPrtArea(), SwFrame::InvalidateObjs(), SwFrame::InvalidatePage(), InvalidatePos, InvalidatePrevPrt, SwFrame::InvalidatePrt_(), InvalidateSectPrt, InvalidateSize, SwFrame::InvalidateSize(), SwFrame::IsInDocBody(), SwFrame::IsInSplitTableRow(), SwFrame::IsInTab(), SwFrame::IsSctFrame(), SwFrame::IsTextFrame(), PARA_SPACE_MAX, PARA_SPACE_MAX_AT_PAGES, SwFrame::Prepare(), RES_BOX(), RES_BREAK(), RES_CHRATR_AUTOKERN(), RES_CHRATR_CONTOUR(), RES_CHRATR_ESCAPEMENT(), RES_CHRATR_FONT(), RES_CHRATR_FONTSIZE(), RES_CHRATR_KERNING(), RES_CHRATR_OVERLINE(), RES_CHRATR_SHADOWED(), RES_CHRATR_UNDERLINE(), RES_FMT_CHG(), RES_FRM_SIZE(), RES_LR_SPACE(), RES_MARGIN_FIRSTLINE(), RES_MARGIN_RIGHT(), RES_MARGIN_TEXTLEFT(), RES_PAGEDESC(), RES_PARATR_CONNECT_BORDER(), RES_PARATR_NUMRULE(), RES_PARATR_TABSTOP(), RES_SHADOW(), RES_UL_SPACE(), SetCompletePaint, SwFrame::SetCompletePaint(), SetNextCompletePaint, SwFrame::SwClientNotify(), SwRect::Top(), ULSpaceChanged, IDocumentFieldsAccess::UpdatePageFields(), USE_FORMER_OBJECT_POS, and SfxPoolItem::Which().

Referenced by SwClientNotify().

◆ WouldFit()

bool SwContentFrame::WouldFit ( SwTwips nMaxHeight,
bool &  bSplit,
bool  bTst,
bool   
)
virtual

Reimplemented in SwTextFrame.

Definition at line 35 of file unusedf.cxx.

Referenced by MakeAll(), and WouldFit_().

◆ WouldFit_()

bool SwContentFrame::WouldFit_ ( SwTwips  nSpace,
SwLayoutFrame pNewUpper,
bool  bTstMove,
const bool  bObjsInNewUpper 
)
private

Friends And Related Function Documentation

◆ MakeNxt

void MakeNxt ( SwFrame pFrame,
SwFrame pNxt 
)
friend

Definition at line 1902 of file calcmove.cxx.

Referenced by WouldFit_().


The documentation for this class was generated from the following files: