LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SwTextFrame Class Referencefinal

Represents the visualization of a paragraph. More...

#include <txtfrm.hxx>

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

Public Member Functions

css::uno::Sequence< css::style::TabStop > GetTabStopInfo (SwTwips CurrentPos) override
 
void Init ()
 This is public, as it needs to be called by some methods in order to save the Prepare USE WITH CAUTION! More...
 
SwRect AutoSpell_ (SwTextNode &, sal_Int32)
 Is called by DoIdleJob_(), ExecSpellPopup() and UpDown() More...
 
SwRect SmartTagScan (SwTextNode &)
 Is called by DoIdleJob_() More...
 
void CollectAutoCmplWrds (SwTextNode &, sal_Int32)
 Is called by DoIdleJob_() More...
 
virtual bool GetCharRect (SwRect &rRect, const SwPosition &rPos, SwCursorMoveState *pCMS=nullptr, bool bAllowFarAway=true) const override
 Returns the view rectangle for the rPos model position. More...
 
bool GetAutoPos (SwRect &, const SwPosition &) const
 A slimmer version of GetCharRect for autopositioning Frames. More...
 
bool GetTopOfLine (SwTwips &_onTopOfLine, const SwPosition &_rPos) const
 Determine top of line for given position in the text frame. More...
 
virtual bool FillSelection (SwSelectionList &rList, const SwRect &rRect) const override
 Looks for text portions which are inside the given rectangle. More...
 
virtual bool GetModelPositionForViewPoint (SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
 In nOffset returns the offset of the char within the set text buffer, which is closest to the position provided by aPoint within the layout's SSize. More...
 
bool GetKeyCursorOfst (SwPosition *pPos, const Point &rPoint) const
 Makes sure that the Frame is not switched (e.g. More...
 
void PaintExtraData (const SwRect &rRect) const
 
SwRect GetPaintSwRect ()
 Page number etc. More...
 
virtual void PaintSwFrame (vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
 
virtual bool GetInfo (SfxPoolItem &) const override
 
virtual bool LeftMargin (SwPaM *) const override
 Layout oriented cursor travelling: Left border, right border, previous Line, following Line, same horizontal position. More...
 
virtual bool RightMargin (SwPaM *, bool bAPI=false) const override
 
virtual bool UnitUp (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const override
 
virtual bool UnitDown (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const override
 
bool UnitUp_ (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const
 
bool UnitDown_ (SwPaM *, const SwTwips nOffset, bool bSetInReadOnly) const
 
void PrepareVisualMove (TextFrameIndex &nPos, sal_uInt8 &nCursorLevel, bool &bRight, bool bInsertCursor)
 Prepares the cursor position for a visual cursor move (BiDi). More...
 
void SplitFrame (TextFrameIndex nTextPos)
 Methods to manage the FollowFrame. More...
 
SwContentFrameJoinFrame ()
 
TextFrameIndex GetOffset () const
 
void SetOffset_ (TextFrameIndex nNewOfst)
 
void SetOffset (TextFrameIndex nNewOfst)
 
void ManipOfst (TextFrameIndex const nNewOfst)
 
SwTextFrameGetFrameAtPos (const SwPosition &rPos)
 
const SwTextFrameGetFrameAtPos (const SwPosition &rPos) const
 
SwTextFrameGetFrameAtOfst (TextFrameIndex nOfst)
 
bool IsEmptyMaster () const
 If there's a Follow and we don't contain text ourselves. More...
 
void SetMergedPara (std::unique_ptr< sw::MergedPara > p)
 
sw::MergedParaGetMergedPara ()
 
sw::MergedPara const * GetMergedPara () const
 
const OUString & GetText () const
 Returns the text portion we want to edit (for inline see underneath) More...
 
SwTextNode const * GetTextNodeForParaProps () const
 
SwTextNode const * GetTextNodeForFirstText () const
 
SwTextNodeGetTextNodeFirst ()
 
SwTextNode const * GetTextNodeFirst () const
 
SwDocGetDoc ()
 
SwDoc const & GetDoc () const
 
 SwTextFrame (SwTextNode *const, SwFrame *, sw::FrameMode eMode)
 
virtual bool Prepare (const PrepareHint ePrep=PrepareHint::Clear, const void *pVoid=nullptr, bool bNotify=true) override
 SwContentFrame: the shortcut for the Frames If the void* casts wrongly, it's its own fault! The void* must be checked for 0 in any case! More...
 
virtual bool WouldFit (SwTwips &nMaxHeight, bool &bSplit, bool bTst, bool bMoveBwd) override
 nMaxHeight is the required height bSplit indicates, that the paragraph has to be split bTst indicates, that we are currently doing a test formatting More...
 
bool TestFormat (const SwFrame *pPrv, SwTwips &nMaxHeight, bool &bSplit)
 The WouldFit equivalent for temporarily rewired TextFrames nMaxHeight returns the required size here too and bSplit determines whether the paragraph needs to be split. More...
 
bool Hyphenate (SwInterHyphInfoTextFrame &rInf)
 We format a Line for interactive hyphenation. More...
 
SwTwips GrowTst (const SwTwips nGrow)
 Test grow. More...
 
SwParaPortionGetPara ()
 
const SwParaPortionGetPara () const
 
bool HasPara () const
 
bool HasPara_ () const
 
std::pair< SwTextNode *, sal_Int32 > MapViewToModel (TextFrameIndex nIndex) const
 map position in potentially merged text frame to SwPosition More...
 
SwPosition MapViewToModelPos (TextFrameIndex nIndex) const
 
TextFrameIndex MapModelToView (SwTextNode const *pNode, sal_Int32 nIndex) const
 
TextFrameIndex MapModelToViewPos (SwPosition const &rPos) const
 
SwTwips HangingMargin () const
 
SwTwips GetLowerMarginForFlyIntersect () const
 Get the amount of lower margin of this frame we need to consider for fly portion purposes. More...
 
bool IsLocked () const
 
bool IsWidow () const
 
bool IsJustWidow () const
 
bool IsEmpty () const
 
bool HasFootnote () const
 
bool IsInFootnoteConnect () const
 
bool IsFieldFollow () const
 
void SetRepaint () const
 
void ResetRepaint () const
 
bool HasRepaint () const
 
void SetHasRotatedPortions (bool bHasRotatedPortions)
 
bool GetHasRotatedPortions () const
 
void SetAnimation () const
 
bool HasAnimation () const
 
bool IsSwapped () const
 
void CalcFootnoteFlag (TextFrameIndex nStop=TextFrameIndex(COMPLETE_STRING))
 Does the Frame have a local footnote (in this Frame or Follow)? More...
 
bool IsHiddenNow () const
 Hidden. More...
 
void HideHidden ()
 Removes Textfrm's attachments, when it's hidden. More...
 
void HideFootnotes (TextFrameIndex nStart, TextFrameIndex nEnd)
 
void HideAndShowObjects ()
 Hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility. More...
 
void RemoveFootnote (TextFrameIndex nStart, TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING))
 Footnote. More...
 
SwTwips GetFootnoteFrameHeight () const
 
SwTextFrameFindFootnoteRef (const SwTextFootnote *pFootnote)
 Looks for the TextFrame matching the SwTextFootnote within a master-follow chain. More...
 
const SwTextFrameFindFootnoteRef (const SwTextFootnote *pFootnote) const
 
void ConnectFootnote (SwTextFootnote *pFootnote, const SwTwips nDeadLine)
 We basically only have two possibilities: More...
 
SwTwips GetFootnoteLine (const SwTextFootnote *pFootnote) const
 If we're a Footnote that grows towards its reference ... public, because it's needed by SwContentFrame::MakeAll. More...
 
TextFrameIndex GetDropLen (TextFrameIndex nWishLen) const
 nWishLen = 0 indicates that we want a whole word More...
 
LanguageType GetLangOfChar (TextFrameIndex nIndex, sal_uInt16 nScript, bool bNoChar=false) const
 
virtual void Format (vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) override
 Calculates the frame area size and the print area, in case they are invalid. More...
 
virtual void CheckDirection (bool bVert) override
 
SwTwips GetParHeight () const
 Returns the sum of line height in pLine. More...
 
SwTextFrameGetFollow ()
 
const SwTextFrameGetFollow () const
 
SwTextFrameFindQuoVadisFrame ()
 Find the page number of ErgoSum and QuoVadis. More...
 
SwTextFrameGetFormatted (bool bForceQuickFormat=false)
 In case the SwLineLayout was cleared out of the s_pTextCache, recreate it. More...
 
void SetFootnote (const bool bNew)
 Will be moved soon. More...
 
bool IsInside (TextFrameIndex nPos) const
 Respect the Follows. More...
 
bool GetDropRect (SwRect &rRect) const
 DropCaps and selections. More...
 
sal_uInt16 GetCacheIdx () const
 
void SetCacheIdx (const sal_uInt16 nNew)
 
void ClearPara ()
 Removes the Line information from the Cache but retains the entry itself. More...
 
void RemoveFromCache ()
 Removes this frame completely from the Cache. More...
 
bool IsFootnoteNumFrame () const
 Am I a FootnoteFrame, with a number at the start of the paragraph? More...
 
SwTwips CalcFitToContent ()
 Simulates a formatting as if there were not right margin or Flys or other obstacles and returns the width. More...
 
void CalcAdditionalFirstLineOffset ()
 Simulate format for a list item paragraph, whose list level attributes are in LABEL_ALIGNMENT mode, in order to determine additional first line offset for the real text formatting due to the value of label adjustment attribute of the list level. More...
 
SwTwips GetAdditionalFirstLineOffset () const
 
tools::Long GetLineSpace (const bool _bNoPropLineSpacing=false) const
 Returns the additional line spacing for the next paragraph. More...
 
sal_uInt16 FirstLineHeight () const
 Returns the first line height. More...
 
void MoveFlyInCnt (SwTextFrame *pNew, TextFrameIndex nStart, TextFrameIndex nEnd)
 Rewires FlyInContentFrame, if nEnd > Index >= nStart. More...
 
TextFrameIndex CalcFlyPos (SwFrameFormat const *pSearch)
 Calculates the position of FlyInContentFrames. More...
 
bool FillRegister (SwTwips &rRegStart, sal_uInt16 &rRegDiff)
 Determines the start position and step size of the register. More...
 
sal_Int32 GetLineCount (TextFrameIndex nPos)
 Determines the line count. More...
 
sal_Int32 GetAllLines () const
 For displaying the line numbers. More...
 
sal_Int32 GetThisLines () const
 
void RecalcAllLines ()
 
void StopAnimation (const OutputDevice *pOut)
 Stops the animations within numberings. More...
 
void VisitPortions (SwPortionHandler &rPH) const
 Visit all portions for Accessibility. More...
 
const SwScriptInfoGetScriptInfo () const
 Returns the script info stored at the paraportion. More...
 
void SwapWidthAndHeight ()
 Swaps width and height of the text frame. More...
 
void SwitchHorizontalToVertical (SwRect &rRect) const
 Calculates the coordinates of a rectangle when switching from horizontal to vertical layout. More...
 
void SwitchHorizontalToVertical (Point &rPoint) const
 Calculates the coordinates of a point when switching from horizontal to vertical layout. More...
 
tools::Long SwitchHorizontalToVertical (tools::Long nLimit) const
 Calculates the limit value when switching from horizontal to vertical layout. More...
 
void SwitchVerticalToHorizontal (SwRect &rRect) const
 Calculates the coordinates of a rectangle when switching from vertical to horizontal layout. More...
 
void SwitchVerticalToHorizontal (Point &rPoint) const
 Calculates the coordinates of a point when switching from vertical to horizontal layout. More...
 
tools::Long SwitchVerticalToHorizontal (tools::Long nLimit) const
 Calculates the a limit value when switching from vertical to horizontal layout. More...
 
void SwitchLTRtoRTL (SwRect &rRect) const
 Calculates the coordinates of a rectangle when switching from LTR to RTL layout. More...
 
void SwitchLTRtoRTL (Point &rPoint) const
 Calculates the coordinates of a point when switching from LTR to RTL layout. More...
 
void SwitchRTLtoLTR (SwRect &rRect) const
 Calculates the coordinates of a rectangle when switching from RTL to LTR layout. More...
 
void SwitchRTLtoLTR (Point &rPoint) const
 Calculates the coordinates of a point when switching from RTL to LTR layout. More...
 
bool FollowFormatAllowed () const
 
void AllowFollowFormat ()
 
void ForbidFollowFormat ()
 
SwTwips GetBaseOffsetForFly (bool bIgnoreFlysAnchoredAtThisFrame) const
 
SwTwips GetBaseVertOffsetForFly (bool bIgnoreFlysAnchoredAtThisFrame) const
 
SwTwips GetHeightOfLastLine () const
 
void RegisterToNode (SwTextNode &, bool isForceNodeAsFirst=false)
 
bool IsSymbolAt (TextFrameIndex) const
 
OUString GetCurWord (SwPosition const &) const
 
sal_uInt16 GetScalingOfSelectedText (TextFrameIndex nStt, TextFrameIndex nEnd)
 Calculates the width of the text part specified by nStart and nEnd, the height of the line containing nStart is divided by this width, indicating the scaling factor, if the text part is rotated. More...
 
bool HasNonLastSplitFlyDrawObj () const
 This text frame may have a split fly frames anchored to it. More...
 
bool IsEmptyMasterWithSplitFly () const
 This text frame has a follow and the text frame don't contain text. More...
 
bool IsEmptyWithSplitFly () const
 This text frame is not split, doesn't fit the upper, has a single split fly anchored to it with a negative vertical offset. More...
 
virtual void dumpAsXmlAttributes (xmlTextWriterPtr writer) const override
 
void dumpAsXml (xmlTextWriterPtr writer=nullptr) const override
 
virtual const SvxFormatBreakItemGetBreakItem () const override
 
virtual const SwFormatPageDescGetPageDescItem () const override
 
- Public Member Functions inherited from SwContentFrame
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...
 
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 SwCacheGetTextCache ()
 
static void SetTextCache (SwCache *pNew)
 
static tools::Long GetMinPrtLine ()
 
static void repaintTextFrames (const SwTextNode &rNode)
 Repaint all text frames of the given text node. More...
 
static SwViewGetView ()
 
- Static Public Member Functions inherited from SwContentFrame
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...
 

Private Member Functions

void AdjustFollow_ (SwTextFormatter &rLine, TextFrameIndex nOffset, TextFrameIndex nStrEnd, const sal_uInt8 nMode)
 
void CalcLineSpace ()
 
void AdjustFrame (const SwTwips nChgHeight, bool bHasToFit=false)
 
bool CalcPreps ()
 
void PrepWidows (const sal_uInt16 nNeed, bool bNotify)
 
void InvalidateRange_ (const SwCharRange &, const tools::Long=0)
 
void InvalidateRange (const SwCharRange &, const tools::Long=0)
 
void FormatAdjust (SwTextFormatter &rLine, WidowsAndOrphans &rFrameBreak, TextFrameIndex nStrLen, const bool bDummy)
 
void ChangeOffset (SwTextFrame *pFrame, TextFrameIndex nNew)
 
void ResetPreps ()
 
void Lock ()
 
void Unlock ()
 
void SetWidow (const bool bNew)
 
void SetJustWidow (const bool bNew)
 
void SetEmpty (const bool bNew)
 
void SetFieldFollow (const bool bNew)
 
bool IsIdxInside (TextFrameIndex nPos, TextFrameIndex nLen) const
 
bool GetModelPositionForViewPoint_ (SwPosition *pPos, const Point &rPoint, const bool bChgFrame, SwCursorMoveState *=nullptr) const
 
void FillCursorPos (SwFillData &rFill) const
 
bool FormatLine (SwTextFormatter &rLine, const bool bPrev)
 
void FormatImpl (vcl::RenderContext *pRenderContext, SwParaPortion *pPara, ::std::vector< SwAnchoredObject * > &rIntersectingObjs)
 
void Format_ (SwTextFormatter &rLine, SwTextFormatInfo &rInf, const bool bAdjust=false)
 
void FormatOnceMore (SwTextFormatter &rLine, SwTextFormatInfo &rInf)
 
bool CalcFollow (TextFrameIndex nTextOfst)
 
virtual void MakePos () override
 Calculates the frame area position, in case it's invalid. More...
 
SwTwips GetFootnoteFrameHeight_ () const
 Calculates the maximum reachable height for the TextFrame in the Footnote Area. More...
 
bool CalcPrepFootnoteAdjust ()
 
void ValidateFrame ()
 
void ValidateBodyFrame ()
 
bool GetDropRect_ (SwRect &rRect) const
 
void SetPara (SwParaPortion *pNew, bool bDelete=true)
 
bool IsFootnoteNumFrame_ () const
 
bool FormatQuick (bool bForceQuickFormat)
 
bool FormatEmpty ()
 
SwTwips EmptyHeight () const
 
bool PaintEmpty (const SwRect &, bool bCheck) const
 
void ChgThisLines ()
 
void CalcBaseOfstForFly ()
 
void CalcHeightOfLastLine (const bool _bUseFont=false)
 method to determine height of last line, needed for proportional line spacing More...
 
virtual void DestroyImpl () override
 
virtual ~SwTextFrame () override
 
void UpdateOutlineContentVisibilityButton (SwWrtShell *pWrtSh) const
 
void PaintOutlineContentVisibilityButton () const
 
void PaintParagraphStylesHighlighting () const
 
virtual void SwClientNotify (SwModify const &rModify, SfxHint const &rHint) override
 
std::vector< SwFlyAtContentFrame * > GetSplitFlyDrawObjs () const
 Like GetDrawObjs(), but limit to fly frames which are allowed to split. More...
 

Static Private Member Functions

static TextFrameIndex FindBrk (std::u16string_view aText, TextFrameIndex nStart, TextFrameIndex nEnd)
 Returns the first possible break point in the current line. More...
 

Private Attributes

sal_Int32 mnAllLines:24
 
sal_Int32 mnThisLines:8
 
SwTwips mnFlyAnchorOfst
 
SwTwips mnFlyAnchorOfstNoWrap
 
SwTwips mnFlyAnchorVertOfstNoWrap
 The y position for wrap-through flys anchored at this paragraph. More...
 
SwTwips mnFootnoteLine
 
SwTwips mnHeightOfLastLine
 
SwTwips mnAdditionalFirstLineOffset
 
std::unique_ptr< sw::MergedParam_pMergedPara
 redline merge data More...
 
TextFrameIndex mnOffset
 
sal_uInt16 mnCacheIndex
 
bool mbLocked: 1
 
bool mbWidow: 1
 
bool mbJustWidow: 1
 
bool mbEmpty: 1
 
bool mbInFootnoteConnect: 1
 
bool mbFootnote: 1
 
bool mbRepaint: 1
 
bool mbHasRotatedPortions: 1
 Contains rotated portions. More...
 
bool mbFieldFollow: 1
 
bool mbHasAnimation: 1
 
bool mbIsSwapped: 1
 
bool mbFollowFormatAllowed: 1
 

Static Private Attributes

static SwCaches_pTextCache = nullptr
 SwLineLayout cache: the lines are not actually owned by the SwTextFrame but by this SwCache, so they will be deleted in large documents if there are too many of them, but the "valid" flags of the frame will still be set; GetFormatted() is the function that forces recreation of the SwLineLayout by Format() if necessary. More...
 
static constexpr tools::Long nMinPrtLine = 0
 

Friends

class SwTextIter
 
class SwTestFormat
 
class WidowsAndOrphans
 
class TextFrameLockGuard
 
bool sw_ChangeOffset (SwTextFrame *pFrame, TextFrameIndex nNew)
 

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 Member Functions inherited from SwContentFrame
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)
 
- 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

Represents the visualization of a paragraph.

Typical upper is an SwBodyFrame. The first text portion of the first line is az SwParaPortion.

Definition at line 167 of file txtfrm.hxx.

Constructor & Destructor Documentation

◆ ~SwTextFrame()

SwTextFrame::~SwTextFrame ( )
overrideprivatevirtual

Definition at line 979 of file txtfrm.cxx.

References RemoveFromCache().

◆ SwTextFrame()

SwTextFrame::SwTextFrame ( SwTextNode * const  pNode,
SwFrame pSib,
sw::FrameMode  eMode 
)

Definition at line 764 of file txtfrm.cxx.

References sw::CheckParaRedlineMerge(), eMode, m_pMergedPara, SwFrame::mnFrameType, and Txt.

Member Function Documentation

◆ AdjustFollow_()

void SwTextFrame::AdjustFollow_ ( SwTextFormatter rLine,
TextFrameIndex  nOffset,
TextFrameIndex  nStrEnd,
const sal_uInt8  nMode 
)
private

◆ AdjustFrame()

void SwTextFrame::AdjustFrame ( const SwTwips  nChgHeight,
bool  bHasToFit = false 
)
private

◆ AllowFollowFormat()

void SwTextFrame::AllowFollowFormat ( )
inline

Definition at line 766 of file txtfrm.hxx.

Referenced by CalcFollow().

◆ AutoSpell_()

SwRect SwTextFrame::AutoSpell_ ( SwTextNode rNode,
sal_Int32  nActPos 
)

◆ CalcAdditionalFirstLineOffset()

void SwTextFrame::CalcAdditionalFirstLineOffset ( )

◆ CalcBaseOfstForFly()

void SwTextFrame::CalcBaseOfstForFly ( )
private

◆ CalcFitToContent()

SwTwips SwTextFrame::CalcFitToContent ( )

◆ CalcFlyPos()

TextFrameIndex SwTextFrame::CalcFlyPos ( SwFrameFormat const *  pSearch)

Calculates the position of FlyInContentFrames.

Definition at line 184 of file porfly.cxx.

References COMPLETE_STRING, sw::MergedAttrIter::NextAttr(), and RES_TXTATR_FLYCNT().

Referenced by SwAnchoredDrawObject::InvalidateObjPos(), and Prepare().

◆ CalcFollow()

bool SwTextFrame::CalcFollow ( TextFrameIndex  nTextOfst)
private

◆ CalcFootnoteFlag()

void SwTextFrame::CalcFootnoteFlag ( TextFrameIndex  nStop = TextFrameIndex(COMPLETE_STRING))

Does the Frame have a local footnote (in this Frame or Follow)?

Definition at line 104 of file txtftn.cxx.

References COMPLETE_STRING, sw::MapModelToView(), sw::MergedAttrIter::NextAttr(), and RES_TXTATR_FTN().

Referenced by CalcFollow(), JoinFrame(), RemoveFootnote(), SplitFrame(), and SwClientNotify().

◆ CalcHeightOfLastLine()

void SwTextFrame::CalcHeightOfLastLine ( const bool  _bUseFont = false)
private

method to determine height of last line, needed for proportional line spacing

Determine the height of the last line for the calculation of the proportional line spacing.

OD 2004-03-17 #i11860# OD 2005-05-20 #i47162# - introduce new optional parameter <_bUseFont> in order to force the usage of the former algorithm to determine the height of the last line, which uses the font.

Parameters
_bUseFontoptional input parameter - boolean indicating, if the font has to be used to determine the height of the last line. default value: false

Height of last line will be stored in new member mnHeightOfLastLine and can be accessed via method GetHeightOfLastLine()

Parameters
_bUseFontforce the usage of the former algorithm to determine the height of the last line, which uses the font

Definition at line 3678 of file txtfrm.cxx.

References CalcHeightOfLastLine(), SwFont::ChgPhysFnt(), EmptyHeight(), IDocumentSettingAccess::get(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), GetDoc(), SwFont::GetHeight(), SwDoc::getIDocumentDeviceAccess(), SwDoc::getIDocumentSettingAccess(), SwLineLayout::GetNext(), SwViewShell::GetOut(), GetPara(), IDocumentDeviceAccess::getReferenceDevice(), SwFrame::getRootFrame(), GetText(), GetTextNodeForParaProps(), SwViewShell::GetViewOptions(), HasPara(), SwFrame::InvalidatePrt(), IsEmpty(), SwViewOption::IsPrtFormat(), SwLineLayout::MaxAscentDescent(), mnHeightOfLastLine, OLD_LINE_SPACING, pLastFont, pOut, SwFntObj::SetDevFont(), SwFont::SetFntChg(), and SwCacheObj::Unlock().

Referenced by CalcHeightOfLastLine(), and Format().

◆ CalcLineSpace()

void SwTextFrame::CalcLineSpace ( )
private

◆ CalcPrepFootnoteAdjust()

bool SwTextFrame::CalcPrepFootnoteAdjust ( )
private

◆ CalcPreps()

bool SwTextFrame::CalcPreps ( )
private

◆ ChangeOffset()

void SwTextFrame::ChangeOffset ( SwTextFrame pFrame,
TextFrameIndex  nNew 
)
private

Definition at line 1054 of file frmform.cxx.

References COMPLETE_STRING, GetOffset(), and MoveFlyInCnt().

Referenced by FormatAdjust().

◆ CheckDirection()

void SwTextFrame::CheckDirection ( bool  bVert)
overridevirtual

◆ ChgThisLines()

void SwTextFrame::ChgThisLines ( )
private

◆ ClearPara()

void SwTextFrame::ClearPara ( )

Removes the Line information from the Cache but retains the entry itself.

Definition at line 104 of file txtcache.cxx.

References Get(), GetCacheIdx(), GetTextCache(), IsLocked(), mnCacheIndex, and SwTextLine::SetPara().

Referenced by DestroyImpl(), FormatEmpty(), HideHidden(), and Init().

◆ CollectAutoCmplWrds()

void SwTextFrame::CollectAutoCmplWrds ( SwTextNode rNode,
sal_Int32  nActPos 
)

◆ ConnectFootnote()

void SwTextFrame::ConnectFootnote ( SwTextFootnote pFootnote,
const SwTwips  nDeadLine 
)

We basically only have two possibilities:

a) The Footnote is already present => we move it, if another pSrcFrame has been found

b) The Footnote is not present => we have it created for us

Whether the Footnote ends up on our Page/Column, doesn't matter in this context.

Optimization for Endnotes.

Another problem: if the Deadline falls within the Footnote Area, we need to move the Footnote.

Returns
false on any type of error

Definition at line 593 of file txtftn.cxx.

References SwFootnoteBossFrame::AppendFootnote(), SwFootnoteBossFrame::ChangeFootnoteRef(), SwLayouter::CollectEndnote(), SwLayouter::Collecting(), CONTINUOUS_ENDNOTES, EndNote, SwFootnoteBossFrame::FindFootnote(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), FindFootnoteRef(), SwSectionFrame::FindLastContent(), SwFrame::FindSctFrame(), FTNPOS_CHAPTER, IDocumentSettingAccess::get(), SwRootFrame::GetCurrShell(), SwDoc::GetDfltFrameFormat(), GetDoc(), SwFootnoteFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetHeight(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentSettingAccess(), SwNodeIndex::GetIndex(), IDocumentLayoutAccess::GetLayouter(), SwFrame::GetNext(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwSectionFrame::GetSection(), SwTextFootnote::GetStartNode(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), SwSectionFrame::Growable(), SwFrame::ImplFindSctFrame(), InsertCnt_(), SwViewShell::InvalidateWindows(), SwLayoutFrame::IsBefore(), SwSectionFrame::IsEndnAtEnd(), SwFormatFootnote::IsEndNote(), SwSectionFrame::IsFootnoteAtEnd(), SwFrame::IsInSct(), IsSwapped(), SwFrame::IsVertical(), SwFootnoteInfo::m_ePos, mbFootnote, mbInFootnoteConnect, mnFootnoteLine, SwFootnoteBossFrame::MoveFootnotes(), SwFootnoteBossFrame::RearrangeFootnotes(), SwFootnoteBossFrame::RemoveFootnote(), ValidateBodyFrame(), ValidateFrame(), and SwRectFnSet::YDiff().

Referenced by SwTextFormatter::NewFootnotePortion().

◆ DestroyImpl()

void SwTextFrame::DestroyImpl ( )
overrideprivatevirtual

◆ dumpAsXml()

void SwTextFrame::dumpAsXml ( xmlTextWriterPtr  writer = nullptr) const
overridevirtual

◆ dumpAsXmlAttributes()

void SwTextFrame::dumpAsXmlAttributes ( xmlTextWriterPtr  writer) const
overridevirtual

Reimplemented from SwFrame.

Definition at line 297 of file xmldump.cxx.

References SwFrame::dumpAsXmlAttributes(), GetFollow(), SwFrameAreaDefinition::GetFrameId(), and mnOffset.

Referenced by dumpAsXml().

◆ EmptyHeight()

SwTwips SwTextFrame::EmptyHeight ( ) const
private

◆ FillCursorPos()

void SwTextFrame::FillCursorPos ( SwFillData rFill) const
private

Definition at line 1303 of file frmcrsr.cxx.

References abs(), SwFillCursorPos::aCursor, SwFillData::aFrame, aTextFormatCollSetRange, SwFillData::bColumn, SwFillData::bEmpty, SwFillData::bFirstLine, SwFillData::bInner, SwFillData::Bottom(), SwRect::Bottom(), SvxTabStopItem::Count(), SwFillData::Fill(), FILL_MIN_DIST, FillCursorPos(), SwFontAccess::Get(), SwFormat::GetAttrSet(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), SfxItemPool::GetDefaultItem(), GetDoc(), SwAttrSet::GetFirstLineIndent(), SwFontObj::GetFont(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwDoc::getIDocumentDeviceAccess(), SvxTextLeftMarginItem::GetLeft(), SwTextNode::GetLeftMarginWithNum(), GetLineSpace(), SvxULSpaceItem::GetLower(), SwFrame::GetNext(), SwTextFormatColl::GetNextTextFormatColl(), SwViewShell::GetOut(), SwAttrSet::GetPool(), SwRectFnSet::GetPrtBottom(), IDocumentDeviceAccess::getReferenceDevice(), SvxRightMarginItem::GetRight(), SwAttrSet::GetRightMargin(), SwFrame::getRootFrame(), SwContentNode::GetSwAttrSet(), SvxTabStop::GetTabPos(), SwAttrSet::GetTabStops(), GetText(), SwTextNode::GetTextColl(), SvxTextLeftMarginItem::GetTextLeft(), SwAttrSet::GetTextLeftMargin(), GetTextNodeForParaProps(), SwAttrSet::GetULSpace(), SwFrame::GetUpper(), SvxULSpaceItem::GetUpper(), SwViewShell::GetViewOptions(), SwRect::Height(), Indent, SwFrame::IsColBodyFrame(), SwFrame::IsInSct(), SwViewOption::IsPrtFormat(), SwFrame::IsSctFrame(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), SwFillData::Left(), SwRect::Left(), Lower, SwLayoutFrame::Lower(), MapViewToModelPos(), Margin, SwFillData::Mode(), SwFillCursorPos::nColumnCnt, SwFillData::nLineWidth, SwFillCursorPos::nParaCnt, SwFillData::pCMS, SwRect::Pos(), pOut, SwFillData::pPos, SfxItemSet::Put(), RES_PARATR_TABSTOP(), SwFillData::Right(), SwRect::Right(), SwFillData::SetOrient(), SfxItemSet::SetParent(), SwFillData::SetSpace(), SwFillData::SetSpaceOnly(), SwFillData::SetTab(), Space, SwitchHorizontalToVertical(), Tab, TabSpace, SwRect::Top(), SwRect::Width(), SwFillData::X(), SwFillData::Y(), and SwRectFnSet::YDiff().

Referenced by FillCursorPos(), and GetModelPositionForViewPoint_().

◆ FillRegister()

bool SwTextFrame::FillRegister ( SwTwips rRegStart,
sal_uInt16 &  rRegDiff 
)

◆ FillSelection()

bool SwTextFrame::FillSelection ( SwSelectionList rSelList,
const SwRect rRect 
) const
overridevirtual

Looks for text portions which are inside the given rectangle.

For a rectangular text selection every text portions which is inside the given rectangle has to be put into the SwSelectionList as SwPaM From these SwPaM the SwCursors will be created.

Parameters
rSelListThe container for the overlapped text portions
rRectA rectangle in document coordinates, text inside this rectangle has to be selected.
Returns
[ true, false ] true if any overlapping text portion has been found and put into list false if no portion overlaps, the list has been unchanged

Reimplemented from SwFrame.

Definition at line 1845 of file itrcrsr.cxx.

References SwSelectionList::checkContext(), SwFlyFrame::DynCastFlyFrame(), SwLayoutFrame::FillSelection(), SwRectFnSet::GetBottom(), SwFrame::GetDrawObjs(), SwNodes::GetEndOfContent(), SwRectFnSet::GetLeft(), SwTextIter::GetLineHeight(), GetModelPositionForViewPoint(), SwTextIter::GetNext(), SwPosition::GetNodes(), SwFrame::GetPaintArea(), SwRectFnSet::GetRight(), SwRectFnSet::GetTop(), SwRect::HasArea(), SwSelectionList::insertPaM(), SwRect::Intersection(), IsEmpty(), SwFlyFrame::IsFlyInContentFrame(), SwRectFnSet::IsVert(), MapViewToModelPos(), SwTextIter::Next(), SwRect::Overlaps(), Point::setX(), Point::setY(), UpDown, and SwTextIter::Y().

◆ FindBrk()

TextFrameIndex SwTextFrame::FindBrk ( std::u16string_view  aText,
TextFrameIndex  nStart,
TextFrameIndex  nEnd 
)
staticprivate

Returns the first possible break point in the current line.

This method is used in SwTextFrame::Format() to decide whether the previous line has to be formatted as well. nFound is <= nEndLine.

Definition at line 1741 of file txtfrm.cxx.

References min().

Referenced by Format_().

◆ FindFootnoteRef() [1/2]

SwTextFrame * SwTextFrame::FindFootnoteRef ( const SwTextFootnote pFootnote)

◆ FindFootnoteRef() [2/2]

const SwTextFrame * SwTextFrame::FindFootnoteRef ( const SwTextFootnote pFootnote) const
inline

Definition at line 579 of file txtfrm.hxx.

◆ FindQuoVadisFrame()

SwTextFrame * SwTextFrame::FindQuoVadisFrame ( )

◆ FirstLineHeight()

sal_uInt16 SwTextFrame::FirstLineHeight ( ) const

◆ FollowFormatAllowed()

bool SwTextFrame::FollowFormatAllowed ( ) const
inline

Definition at line 761 of file txtfrm.hxx.

Referenced by CalcFollow().

◆ ForbidFollowFormat()

void SwTextFrame::ForbidFollowFormat ( )
inline

Definition at line 771 of file txtfrm.hxx.

Referenced by CalcFollow().

◆ Format()

void SwTextFrame::Format ( vcl::RenderContext pRenderContext,
const SwBorderAttrs pAttrs = nullptr 
)
overridevirtual

Calculates the frame area size and the print area, in case they are invalid.

The frame area position is not considered here.

Reimplemented from SwFrame.

Definition at line 1881 of file frmform.cxx.

References SwRectFnSet::AddBottom(), SwTextIter::Bottom(), SwRectFnSet::BottomDist(), CalcAdditionalFirstLineOffset(), CalcBaseOfstForFly(), CalcHeightOfLastLine(), CalcPreps(), ChgThisLines(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), SwContentFrame::FindMaster(), SwFrame::FindPageFrame(), FlyFrameLeave, FollowFollows, FormatEmpty(), FormatImpl(), SwFrame::GetAttrSet(), GetDoc(), SwTextIter::GetEnd(), GetFollow(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndPrev(), SwAttrSet::GetKeep(), getLength(), SwFrame::GetNext(), GetOffset(), GetPara(), SwTextLineAccess::GetPara(), SwFrame::GetPhyPageNum(), SwPageFrame::GetPhyPageNum(), SwFrame::GetPrev(), SwRectFnSet::GetPrtBottom(), SwParaPortion::GetReformat(), SwAttrSet::GetRegister(), SwPageFrame::GetSortedObjs(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeFirst(), GetTextNodeForParaProps(), SwFrame::GetTopMargin(), SwRectFnSet::GetTopMargin(), SwFrame::GetUpper(), SfxBoolItem::GetValue(), SwRectFnSet::GetWidth(), HasFootnote(), HasNonLastSplitFlyDrawObj(), HasPara(), Height, SwRect::Height(), HideAndShowObjects(), HideHidden(), SwLayouter::InsertMovedFwdFrame(), SwFrame::InvalidatePos(), SwTextLineAccess::IsAvailable(), SwFrame::IsDeleteForbidden(), IsEmptyMaster(), IsEmptyMasterWithSplitFly(), IsFieldFollow(), IsHiddenNow(), SwFrame::IsInTab(), SwPageFrame::IsInvalid(), SwPageFrame::IsInvalidFly(), IsLocked(), SwParaPortion::IsPrepMustFit(), SwFrame::IsTextFrame(), IsWidow(), SwCharRange::Len(), Notify_Background(), SwRectFnSet::OverStep(), Prepare(), SAL_INFO, SAL_WARN, SetEmpty(), SwRectFnSet::SetHeight(), SwRectFnSet::SetLimit(), SetOffset(), SetOffset_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SwRectFnSet::SetTop(), SwRect::SetTopAndHeight(), SetWidow(), SwRectFnSet::SetYMargins(), SwFrame::Shrink(), and ValidateFrame().

Referenced by SwTextInfo::CtorInitTextInfo(), and GetFormatted().

◆ Format_()

void SwTextFrame::Format_ ( SwTextFormatter rLine,
SwTextFormatInfo rInf,
const bool  bAdjust = false 
)
private

Definition at line 1408 of file frmform.cxx.

References SwTextIter::Bottom(), SwTextFormatter::CalcOnceMore(), CH_BREAK, SwTextIter::CharToLine(), SwRect::Chg(), SwTextFormatter::CntEndHyph(), SwTextFormatter::CntMidHyph(), FindBrk(), SwContentFrame::FindMaster(), FormatAdjust(), FormatLine(), SwTextIter::GetCurr(), SwTextFormatter::GetDropFormat(), SwTextIter::GetEnd(), GetFollow(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwLineLayout::GetHangingMargin(), SwAttrSet::GetHyphenZone(), SwTextSizeInfo::GetIdx(), SwTextFormatter::GetInfo(), SwLinePortion::GetLen(), SwTextIter::GetLength(), SwTextIter::GetLineNr(), SvxHyphenZoneItem::GetMaxHyphens(), GetMergedPara(), SwLineLayout::GetNext(), GetOffset(), SwTextInfo::GetParaPortion(), SwTextIter::GetPrev(), SwParaPortion::GetReformat(), SwParaPortion::GetRepaint(), SwTextFormatInfo::GetRest(), SwTextIter::GetStart(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeForParaProps(), SwRect::HasArea(), HasPara(), SwTextFormatter::InitCntHyph(), SwTextFormatter::Insert(), WidowsAndOrphans::IsBreakNowWidAndOrp(), SwLineLayout::IsEndHyph(), IsFieldFollow(), SwParaPortion::IsMargin(), SwLineLayout::IsMidHyph(), SwTextFormatInfo::IsNewLine(), SwParaPortion::IsPrepMustFit(), SwLineLayout::IsRest(), SwTextFormatInfo::IsStop(), SwTextFormatter::IsStop(), IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwCharRange::Len(), SwTextFormatter::MakeRestPortion(), SwTextFormatInfo::MaxHyph(), SwTextIter::Next(), SwRect::Pos(), SwTextIter::Prev(), SAL_WARN, SetFieldFollow(), SwTextFrameBreak::SetKeep(), SwRepaint::SetOffset(), SetOffset_(), SetRepaint(), SwTextFormatInfo::SetRest(), SwRepaint::SetRightOfst(), SwTextFormatter::SetTruncLines(), SwTextFormatter::SetUnclipped(), SwRect::SSize(), SwCharRange::Start(), SwTextIter::Top(), SwRect::Top(), SwTextIter::TruncLines(), SwRect::Width(), and SwTextIter::Y().

Referenced by FormatImpl(), FormatOnceMore(), and SwTestFormat::SwTestFormat().

◆ FormatAdjust()

void SwTextFrame::FormatAdjust ( SwTextFormatter rLine,
WidowsAndOrphans rFrameBreak,
TextFrameIndex  nStrLen,
const bool  bDummy 
)
private

◆ FormatEmpty()

bool SwTextFrame::FormatEmpty ( )
private

◆ FormatImpl()

void SwTextFrame::FormatImpl ( vcl::RenderContext pRenderContext,
SwParaPortion pPara,
::std::vector< SwAnchoredObject * > &  rIntersectingObjs 
)
private

◆ FormatLine()

bool SwTextFrame::FormatLine ( SwTextFormatter rLine,
const bool  bPrev 
)
private

◆ FormatOnceMore()

void SwTextFrame::FormatOnceMore ( SwTextFormatter rLine,
SwTextFormatInfo rInf 
)
private

◆ FormatQuick()

bool SwTextFrame::FormatQuick ( bool  bForceQuickFormat)
private

◆ GetAdditionalFirstLineOffset()

SwTwips SwTextFrame::GetAdditionalFirstLineOffset ( ) const
inline

Definition at line 657 of file txtfrm.hxx.

Referenced by SwTextMargin::CtorInitTextMargin().

◆ GetAllLines()

sal_Int32 SwTextFrame::GetAllLines ( ) const
inline

For displaying the line numbers.

Definition at line 685 of file txtfrm.hxx.

Referenced by RecalcAllLines(), and SwLayAction::TurboAction_().

◆ GetAutoPos()

bool SwTextFrame::GetAutoPos ( SwRect rOrig,
const SwPosition rPos 
) const

◆ GetBaseOffsetForFly()

SwTwips SwTextFrame::GetBaseOffsetForFly ( bool  bIgnoreFlysAnchoredAtThisFrame) const
inline

Definition at line 776 of file txtfrm.hxx.

Referenced by SwFEShell::CalcBoundRect(), and SwFrameNotify::ImplDestroy().

◆ GetBaseVertOffsetForFly()

SwTwips SwTextFrame::GetBaseVertOffsetForFly ( bool  bIgnoreFlysAnchoredAtThisFrame) const

◆ GetBreakItem()

const SvxFormatBreakItem & SwTextFrame::GetBreakItem ( ) const
overridevirtual

Reimplemented from SwFrame.

Definition at line 752 of file findfrm.cxx.

References SwAttrSet::GetBreak(), SwContentNode::GetSwAttrSet(), and GetTextNodeFirst().

◆ GetCacheIdx()

sal_uInt16 SwTextFrame::GetCacheIdx ( ) const
inline

Definition at line 631 of file txtfrm.hxx.

Referenced by ClearPara(), GetPara(), HasPara_(), RemoveFromCache(), ResetPreps(), and SetPara().

◆ GetCharRect()

bool SwTextFrame::GetCharRect ( SwRect rRect,
const SwPosition rPos,
SwCursorMoveState pCMS = nullptr,
bool  bAllowFarAway = true 
) const
overridevirtual

Returns the view rectangle for the rPos model position.

The values are relative to the upper left position of the page frame. Additional information can be obtained by passing an SwCursorMoveState object. Returns false if rPos > number of character is string

Reimplemented from SwFrame.

Definition at line 178 of file frmcrsr.cxx.

References Point::AdjustX(), Point::AdjustY(), COMPLETE_STRING, FAR_AWAY, SwFrame::FindPageFrame(), SwRectFnSet::GetBottom(), SwTextCursor::GetCharRect(), SwTextIter::GetEnd(), SwTextCursor::GetEndCharRect(), SwTextNode::GetFirstLineOfsWithNum(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetNext(), GetOffset(), SwRectFnSet::GetPrtBottom(), GetText(), GetTextNodeForParaProps(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), HasPara(), SwRect::Height(), IsEmpty(), IsLocked(), SwFrame::IsRightToLeft(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), SwRectFnSet::IsVertL2R(), SwCursorMoveState::m_aRealHeight, SwCursorMoveState::m_b2Lines, SwCursorMoveState::m_bNoScroll, SwCursorMoveState::m_bRealHeight, SwCursorMoveState::m_eState, SwCursorMoveState::m_p2Lines, MapModelToViewPos(), min(), SwRect::Pos(), RightMargin, SwRectFnSet::SetTop(), Point::setX(), Point::setY(), sw_ChangeOffset, SwitchHorizontalToVertical(), SwitchLTRtoRTL(), SwitchVerticalToHorizontal(), SwRect::Top(), SwRect::Width(), Point::X(), Point::Y(), and SwRectFnSet::YDiff().

Referenced by SwAccessibleParagraph::getIndexAtPoint(), lcl_CalcOverlayRanges(), SwOutlineContentVisibilityWin::Set(), and SwFEShell::ShouldObjectBeSelected().

◆ GetCurWord()

OUString SwTextFrame::GetCurWord ( SwPosition const &  rPos) const

◆ GetDoc() [1/2]

SwDoc & SwTextFrame::GetDoc ( )
inline

Definition at line 475 of file txtfrm.hxx.

Referenced by SwTextFormatter::BuildPortions(), CalcBaseOfstForFly(), SwTextAdjuster::CalcFlyAdjust(), SwTextFormatter::CalcFlyWidth(), SwDropCapCache::CalcFontSize(), CalcHeightOfLastLine(), SwBorderAttrs::CalcLeft(), SwLineLayout::CalcLine(), SwTextAdjuster::CalcNewBlock(), CalcPrepFootnoteAdjust(), SwTextFormatter::CalcRealHeight(), SwBorderAttrs::CalcRight(), ChgThisLines(), ConnectFootnote(), SwAccessibleParagraph::CreateUnoPortion(), SwTextSizeInfo::CtorInitTextSizeInfo(), DestroyImpl(), SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawCSDFHighlighting(), SwTextPainter::DrawTextLine(), FillCursorPos(), FillRegister(), SwNumberPortion::Format(), SwFieldFormCheckboxPortion::Format(), Format(), SwTextPortion::Format_(), SwTextFormatter::FormatQuoVadis(), SwBlankPortion::GetExpText(), SwTextFly::GetFrameArea(), SwTextFormatInfo::GetLineWidth(), GetLowerMarginForFlyIntersect(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwTextGuess::Guess(), SwTextFly::InitAnchoredObjList(), SwTextFormatInfo::IsHyphenate(), lcl_ErgoVadis(), SwTextFormatter::MakeRestPortion(), UnfloatTableButton::MouseButtonDown(), SwTextFormatter::NewDropPortion(), SwTextFormatter::NewErgoSumPortion(), SwTextFormatter::NewFieldPortion(), SwTextFormatter::NewFootnoteNumPortion(), SwTextFormatter::NewFootnotePortion(), SwTextFormatter::NewPortion(), SwTextFormatter::NewTabPortion(), SwBlankPortion::Paint(), SwFieldFormCheckboxPortion::Paint(), PaintExtraData(), SwTabPortion::PostFormat(), SwTabPortion::PreFormat(), Prepare(), RecalcAllLines(), RemoveFootnote(), SwAccessibleParagraph::replaceText(), SwTextFormatInfo::ScanPortionEnd(), SwClientNotify(), SwContentNotify::SwContentNotify(), and SwTextFormatter::WhichTextPor().

◆ GetDoc() [2/2]

SwDoc const & SwTextFrame::GetDoc ( ) const

Definition at line 1425 of file txtfrm.cxx.

References SwNode::GetDoc(), and GetTextNodeFirst().

◆ GetDropLen()

TextFrameIndex SwTextFrame::GetDropLen ( TextFrameIndex  nWishLen) const

◆ GetDropRect()

bool SwTextFrame::GetDropRect ( SwRect rRect) const
inline

DropCaps and selections.

Definition at line 623 of file txtfrm.hxx.

Referenced by SwRootFrame::CalcFrameRects().

◆ GetDropRect_()

bool SwTextFrame::GetDropRect_ ( SwRect rRect) const
private

◆ GetFollow() [1/2]

SwTextFrame * SwTextFrame::GetFollow ( )
inline

◆ GetFollow() [2/2]

const SwTextFrame * SwTextFrame::GetFollow ( ) const
inline

Definition at line 885 of file txtfrm.hxx.

References SwContentFrame::GetFollow().

◆ GetFootnoteFrameHeight()

SwTwips SwTextFrame::GetFootnoteFrameHeight ( ) const
inline

◆ GetFootnoteFrameHeight_()

SwTwips SwTextFrame::GetFootnoteFrameHeight_ ( ) const
private

◆ GetFootnoteLine()

SwTwips SwTextFrame::GetFootnoteLine ( const SwTextFootnote pFootnote) const

◆ GetFormatted()

SwTextFrame * SwTextFrame::GetFormatted ( bool  bForceQuickFormat = false)

In case the SwLineLayout was cleared out of the s_pTextCache, recreate it.

#i29062# GetFormatted() can trigger a full formatting of the paragraph, causing other layout frames to become invalid. This has to be avoided during painting. Therefore we need to pass the information that we are currently in the paint process.

Returns
this always in the formatted state!

Definition at line 3493 of file txtfrm.cxx.

References SwFrame::Calc(), Format(), FormatQuick(), SwRootFrame::GetCurrShell(), SwViewShell::GetOut(), SwFrame::getRootFrame(), HasPara(), IsEmpty(), SwFrameAreaDefinition::isFrameAreaDefinitionValid(), SwFrameAreaDefinition::isFrameAreaSizeValid(), and swap().

Referenced by SwAutoFormat::EnsureFormatted(), Format(), GetAutoPos(), GetCharRect(), GetLineCount(), GetModelPositionForViewPoint_(), GetTopOfLine(), Hyphenate(), lcl_CalcHeightOfFirstContentLine(), LeftMargin(), PaintSwFrame(), PrepareVisualMove(), RightMargin(), UnitDown_(), UnitUp_(), and WouldFit().

◆ GetFrameAtOfst()

SwTextFrame & SwTextFrame::GetFrameAtOfst ( TextFrameIndex  nOfst)

◆ GetFrameAtPos() [1/2]

SwTextFrame * SwTextFrame::GetFrameAtPos ( const SwPosition rPos)

Definition at line 151 of file frmcrsr.cxx.

References GetFollow(), GetOffset(), SwTextCursor::IsRightMargin(), MapModelToViewPos(), and nPos.

Referenced by GetFrameAtPos().

◆ GetFrameAtPos() [2/2]

const SwTextFrame * SwTextFrame::GetFrameAtPos ( const SwPosition rPos) const
inline

Definition at line 894 of file txtfrm.hxx.

References GetFrameAtPos().

◆ GetHasRotatedPortions()

bool SwTextFrame::GetHasRotatedPortions ( ) const
inline

Definition at line 548 of file txtfrm.hxx.

Referenced by FormatEmpty().

◆ GetHeightOfLastLine()

SwTwips SwTextFrame::GetHeightOfLastLine ( ) const
inline

Definition at line 785 of file txtfrm.hxx.

Referenced by GetLineSpace(), and SwContentNotify::SwContentNotify().

◆ GetInfo()

bool SwTextFrame::GetInfo ( SfxPoolItem rHint) const
overridevirtual

Reimplemented from SwClient.

Definition at line 2749 of file txtfrm.cxx.

References SwFrame::FindPageFrame(), SwFrame::IsInDocBody(), RES_VIRTPAGENUM_INFO(), and SfxPoolItem::Which().

◆ GetKeyCursorOfst()

bool SwTextFrame::GetKeyCursorOfst ( SwPosition pPos,
const Point rPoint 
) const
inline

Makes sure that the Frame is not switched (e.g.

switched for a character-bound Frame)

Definition at line 417 of file txtfrm.hxx.

Referenced by SwFEShell::ShouldObjectBeSelected(), UnitDown_(), and UnitUp_().

◆ GetLangOfChar()

LanguageType SwTextFrame::GetLangOfChar ( TextFrameIndex  nIndex,
sal_uInt16  nScript,
bool  bNoChar = false 
) const

◆ GetLineCount()

sal_Int32 SwTextFrame::GetLineCount ( TextFrameIndex  nPos)

◆ GetLineSpace()

tools::Long SwTextFrame::GetLineSpace ( const bool  _bNoPropLineSpace = false) const

Returns the additional line spacing for the next paragraph.

Method returns the value of the inter line spacing for a text frame.

Parameters
_bNoPropLineSpacingcontrol, whether the value of a proportional line spacing is returned or not

Such a value exists for proportional line spacings ("1,5 Lines", "Double", "Proportional" and for leading line spacing ("Leading").

Parameters
_bNoPropLineSpacing(default = false) control whether the value of a proportional line spacing is returned or not

Definition at line 3817 of file txtfrm.cxx.

References GetHeightOfLastLine(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SwAttrSet::GetLineSpacing(), SvxLineSpacingItem::GetPropLineSpace(), SwContentNode::GetSwAttrSet(), and GetTextNodeForParaProps().

Referenced by FillCursorPos().

◆ GetLowerMarginForFlyIntersect()

SwTwips SwTextFrame::GetLowerMarginForFlyIntersect ( ) const

◆ GetMergedPara() [1/2]

sw::MergedPara * SwTextFrame::GetMergedPara ( )
inline

◆ GetMergedPara() [2/2]

sw::MergedPara const * SwTextFrame::GetMergedPara ( ) const
inline

Definition at line 466 of file txtfrm.hxx.

◆ GetMinPrtLine()

static tools::Long SwTextFrame::GetMinPrtLine ( )
inlinestatic

Definition at line 629 of file txtfrm.hxx.

Referenced by PaintExtraData(), and PaintSwFrame().

◆ GetModelPositionForViewPoint()

bool SwTextFrame::GetModelPositionForViewPoint ( SwPosition pPos,
Point rPoint,
SwCursorMoveState pCMS = nullptr,
bool  bTestBackground = false 
) const
overridevirtual

In nOffset returns the offset of the char within the set text buffer, which is closest to the position provided by aPoint within the layout's SSize.

Returns
false if the SPoint is outside of the SSize else returns true

Reimplemented from SwFrame.

Definition at line 661 of file frmcrsr.cxx.

References GetModelPositionForViewPoint_(), SwCursorMoveState::m_eState, and UpDown.

Referenced by FillSelection(), and SwAccessibleParagraph::getIndexAtPoint().

◆ GetModelPositionForViewPoint_()

bool SwTextFrame::GetModelPositionForViewPoint_ ( SwPosition pPos,
const Point rPoint,
const bool  bChgFrame,
SwCursorMoveState pCMS = nullptr 
) const
private

◆ GetOffset()

TextFrameIndex SwTextFrame::GetOffset ( ) const
inline

◆ GetPageDescItem()

const SwFormatPageDesc & SwTextFrame::GetPageDescItem ( ) const
overridevirtual

Reimplemented from SwFrame.

Definition at line 757 of file findfrm.cxx.

References SwAttrSet::GetPageDesc(), SwContentNode::GetSwAttrSet(), and GetTextNodeFirst().

Referenced by UnfloatTableButton::MouseButtonDown().

◆ GetPaintSwRect()

SwRect SwTextFrame::GetPaintSwRect ( )

◆ GetPara() [1/2]

SwParaPortion * SwTextFrame::GetPara ( )

◆ GetPara() [2/2]

const SwParaPortion * SwTextFrame::GetPara ( ) const
inline

Definition at line 848 of file txtfrm.hxx.

References GetPara().

◆ GetParHeight()

SwTwips SwTextFrame::GetParHeight ( ) const

◆ GetScalingOfSelectedText()

sal_uInt16 SwTextFrame::GetScalingOfSelectedText ( TextFrameIndex  nStart,
TextFrameIndex  nEnd 
)

Calculates the width of the text part specified by nStart and nEnd, the height of the line containing nStart is divided by this width, indicating the scaling factor, if the text part is rotated.

Having CH_BREAKs in the text part, this method returns the scaling factor for the longest of the text parts separated by the CH_BREAK

Changing this method very likely requires changing of "GetMinMaxSize"

Definition at line 1261 of file itratr.cxx.

References CH_BLANK, CH_BREAK, CH_TAB, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, SwTextIter::CharToLine(), COMPLETE_STRING, SwField::ExpandField(), g_pBreakIt, SwAttrIter::GetAttr(), SwAttrIter::GetAttrHandler(), SwBreakIt::GetBreakIter(), SwTextIter::GetCurr(), SwRootFrame::GetCurrShell(), SwFormatField::GetField(), SwAttrIter::GetFnt(), GetFollow(), SwTextAttr::GetFootnote(), SwTextAttr::GetFormatField(), SwFont::GetLanguage(), SwBreakIt::GetLocale(), SwAttrIter::GetNextAttr(), SwFormatFootnote::GetNumStr(), GetOffset(), SwViewShell::GetRefDev(), SwFrame::getRootFrame(), GetText(), GetTextNodeFirst(), SwFont::GetTextSize_(), HasPara(), Size::Height(), SwLineLayout::Height(), min(), SwScriptInfo::NextScriptChg(), pOut, SwAttrHandler::PushAndChg(), RES_CHRATR_SCALEW(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), SwAttrIter::SeekAndChgAttrIter(), SwTextAttr::SetPriorityAttr(), SwTextAttr::Which(), and Size::Width().

Referenced by SwEditShell::GetScalingOfSelectedText().

◆ GetScriptInfo()

const SwScriptInfo * SwTextFrame::GetScriptInfo ( ) const

Returns the script info stored at the paraportion.

Definition at line 4066 of file txtfrm.cxx.

References GetPara(), and SwParaPortion::GetScriptInfo().

Referenced by IsHiddenNow().

◆ GetSplitFlyDrawObjs()

std::vector< SwFlyAtContentFrame * > SwTextFrame::GetSplitFlyDrawObjs ( ) const
private

Like GetDrawObjs(), but limit to fly frames which are allowed to split.

Definition at line 1455 of file itratr.cxx.

References SwFlyFrame::DynCastFlyFrame(), SwFrame::GetDrawObjs(), and SwFlyFrame::IsFlySplitAllowed().

Referenced by HasNonLastSplitFlyDrawObj(), and MakePos().

◆ GetTabStopInfo()

css::uno::Sequence< css::style::TabStop > SwTextFrame::GetTabStopInfo ( SwTwips  CurrentPos)
overridevirtual

◆ GetText()

const OUString & SwTextFrame::GetText ( ) const

Returns the text portion we want to edit (for inline see underneath)

Definition at line 1380 of file txtfrm.cxx.

References SwFrame::GetDep(), GetMergedPara(), GetText(), and sw::MergedPara::mergedText.

Referenced by SwAccessibleParagraph::_correctValues(), SwEditShell::AutoCorrect(), SwAutoFormat::AutoCorrect(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildNegIndent(), CalcHeightOfLastLine(), SwAutoFormat::CalcLevel(), SwLayHelper::CheckInsert(), SwDoc::ChgAnchor(), SwAutoCorrDoc::ChgAutoCorrWord(), ChgThisLines(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwAutoFormat::DelEmptyLine(), SwAutoFormat::DeleteJoinCurNextPara(), SwAutoFormat::DeleteLeadingTrailingBlanks(), SwAutoFormat::DoTable(), SwAutoFormat::DoUnderline(), dumpAsXml(), FillCursorPos(), FindAttrsImpl(), sw::FindFormatImpl(), sw::FindTextImpl(), Format(), Format_(), FormatImpl(), FormatLine(), SwAccessiblePortionData::GetAccessiblePosition(), GetBodyTextNode(), SwAccessibleParagraph::getCharacterBounds(), GetCharRect(), SwAccessibleParagraph::GetCurrentTabStop(), GetCurWord(), SwAutoFormat::GetDigitLevel(), GetDropLen(), SwEditShell::GetDropText(), GetFrameInPage(), GetLowerMarginForFlyIntersect(), GetModelPositionForViewPoint_(), GetParHeight(), SwEditShell::GetPrevAutoCorrWord(), SwAutoCorrDoc::GetPrevPara(), SwEditShell::GetScalingOfSelectedText(), GetScalingOfSelectedText(), SwEditShell::GetScriptType(), GetText(), GetTopOfLine(), HasSelBlanks(), IsAtStartOrEndOfFrame(), SwAutoFormat::IsBlanksInString(), SwFrame::IsCollapse(), SwAutoFormat::IsEmptyLine(), SwCursorShell::IsEndPara(), SwAutoFormat::IsEnumericChar(), SwAutoFormat::IsFirstCharCapital(), IsHiddenNow(), IsIdxInside(), SwAutoFormat::IsNoAlphaLine(), SwAutoFormat::IsSentenceAtEnd(), SwFlyFrame::IsShowUnfloatButton(), lcl_CleanStr(), lcl_ErgoVadis(), lcl_FindAnchorPos(), lcl_ModifyOfst(), lcl_UpDown(), SwFEShell::MoveAnchor(), PrepareVisualMove(), SwEditShell::ReplaceDropText(), SwAutoCorrDoc::ReplaceRange(), SetOffset_(), SwAccessiblePortionData::Skip(), SwAccessiblePortionData::Special(), SwAutoFormat::SwAutoFormat(), SwAccessiblePortionData::Text(), and SwAutoCorrDoc::TransliterateRTLWord().

◆ GetTextCache()

static SwCache * SwTextFrame::GetTextCache ( )
inlinestatic

◆ GetTextNodeFirst() [1/2]

SwTextNode * SwTextFrame::GetTextNodeFirst ( )
inline

◆ GetTextNodeFirst() [2/2]

SwTextNode const * SwTextFrame::GetTextNodeFirst ( ) const

Definition at line 1415 of file txtfrm.cxx.

References SwFrame::GetDep(), GetMergedPara(), and sw::MergedPara::pFirstNode.

◆ GetTextNodeForFirstText()

SwTextNode const * SwTextFrame::GetTextNodeForFirstText ( ) const

◆ GetTextNodeForParaProps()

SwTextNode const * SwTextFrame::GetTextNodeForParaProps ( ) const

Definition at line 1390 of file txtfrm.cxx.

References SwFrame::GetDep(), GetMergedPara(), and sw::MergedPara::pParaPropsNode.

Referenced by SwAccessibleParagraph::_getDefaultAttributesImpl(), SwAccessibleParagraph::_getSupplementalAttributesImpl(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwTaggedPDFHelper::BeginTag(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildHeadLine(), SwAutoFormat::BuildTextIndent(), CalcAdditionalFirstLineOffset(), CalcHeightOfLastLine(), SwAutoFormat::CalcLevel(), CalcLineSpace(), checkApplyParagraphMarkFormatToNumbering(), CheckDirection(), SwFEShell::CheckUnboundObjects(), SwDoc::ChgAnchor(), ChgThisLines(), SwTextIter::CtorInitTextIter(), SwTextMargin::CtorInitTextMargin(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwLayIdle::DoIdleJob_(), SwAutoFormat::DoTable(), SwTextPaintInfo::DrawViewOpt(), EmptyHeight(), FillCursorPos(), SwFEShell::FindAnchorPos(), FindAttrsImpl(), sw::FindFormatImpl(), WidowsAndOrphans::FindWidows(), SwNumberPortion::Format(), Format(), Format_(), FormatAdjust(), FormatEmpty(), SwTextFormatInfo::GetCharAttr(), GetCharRect(), SwTextFormatInfo::GetDropFormat(), GetDropLen(), GetLineSpace(), GetLowerMarginForFlyIntersect(), SwAutoCorrDoc::GetPrevPara(), SwTextGuess::Guess(), SwTextFormatInfo::InitHyph(), SwFrame::IsCollapse(), SwAccessibleParagraph::IsHeading(), lcl_FindAnchorPos(), lcl_IdenticalStyles(), SwFEShell::NewFlyFrame(), SwTextFormatter::NewNumberPortion(), PaintEmpty(), PaintParagraphStylesHighlighting(), Prepare(), RecalcAllLines(), SwOutlineContentVisibilityWin::Set(), SwTaggedPDFHelper::SetAttributes(), SwAutoFormat::SetColl(), SwDoc::SetTextFormatCollByAutoFormat(), SwAutoFormat::SwAutoFormat(), SwTextFrameBreak::SwTextFrameBreak(), SwTOXBaseSection::UpdateOutline(), SwTOXBaseSection::UpdateTemplate(), WidowsAndOrphans::WidowsAndOrphans(), and WidowsAndOrphans::WouldFit().

◆ GetThisLines()

sal_Int32 SwTextFrame::GetThisLines ( ) const
inline

◆ GetTopOfLine()

bool SwTextFrame::GetTopOfLine ( SwTwips _onTopOfLine,
const SwPosition _rPos 
) const

Determine top of line for given position in the text frame.

determine top of line for given position in the text frame

OD 11.11.2003 #i22341# Assumption: given position exists in the text frame or in a follow of it OD 2004-02-02 - adjustment Top of first paragraph line is the top of the paragraph. OD 2004-03-18 #i11860# - Consider upper space amount considered for previous frame and the page grid.

Parameters
_onTopOfLineoutput parameter - top of line, if the given position is found in the text frame.
_rPosinput parameter - reference to the position in the text frame
Returns
boolean indicating, if the top of line for the given position has been determined or not.
  • Top of first paragraph line is the top of the printing area of the text frame
  • If a proportional line spacing is applied use top of anchor character as top of the line.

Definition at line 453 of file frmcrsr.cxx.

References SwTextCursor::CharCursorToLine(), SwFrame::GetAttrSet(), GetAutoPos(), GetFormatted(), GetFrameAtOfst(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SvxLineSpacingItem::GetInterLineSpaceRule(), getLength(), SwAttrSet::GetLineSpacing(), SwRectFnSet::GetPrtTop(), GetText(), SwRectFnSet::GetTop(), IsEmpty(), SwRectFnSet::IsVert(), MapModelToViewPos(), SwRectFnSet::Refresh(), SwitchHorizontalToVertical(), and SwTextIter::Y().

Referenced by SwFEShell::CalcBoundRect(), and SwAnchoredObject::CheckTopOfLine().

◆ GetView()

SwView * SwTextFrame::GetView ( )
static

Definition at line 4359 of file paintfrm.cxx.

References SwWrtShell::GetView(), and gProp.

Referenced by SwTextPaintInfo::DrawCSDFHighlighting().

◆ GrowTst()

SwTwips SwTextFrame::GrowTst ( const SwTwips  nGrow)
inline

Test grow.

Definition at line 858 of file txtfrm.hxx.

References SwFrame::Grow().

Referenced by SwTextFrameBreak::IsInside().

◆ HangingMargin()

SwTwips SwTextFrame::HangingMargin ( ) const

◆ HasAnimation()

bool SwTextFrame::HasAnimation ( ) const
inline

Definition at line 551 of file txtfrm.hxx.

Referenced by StopAnimation().

◆ HasFootnote()

bool SwTextFrame::HasFootnote ( ) const
inline

◆ HasNonLastSplitFlyDrawObj()

bool SwTextFrame::HasNonLastSplitFlyDrawObj ( ) const

This text frame may have a split fly frames anchored to it.

Is any of them a frame that has a follow, i.e. not the last in a master -> follow 1 -> ... -> last follow chain?

Definition at line 1483 of file itratr.cxx.

References SwContentFrame::FindMaster(), GetFollow(), GetOffset(), GetSplitFlyDrawObjs(), and mnOffset.

Referenced by AdjustFollow_(), Format(), FormatAdjust(), FormatEmpty(), SwTextFormatter::FormatLine(), and PaintEmpty().

◆ HasPara()

bool SwTextFrame::HasPara ( ) const
inline

◆ HasPara_()

bool SwTextFrame::HasPara_ ( ) const

Definition at line 75 of file txtcache.cxx.

References Get(), GetCacheIdx(), SwTextLine::GetPara(), GetTextCache(), and mnCacheIndex.

Referenced by HasPara().

◆ HasRepaint()

bool SwTextFrame::HasRepaint ( ) const
inline

Definition at line 546 of file txtfrm.hxx.

Referenced by SwLayAction::FormatContent_().

◆ HideAndShowObjects()

void SwTextFrame::HideAndShowObjects ( )

Hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility.

Hide/show objects.

Method hides respectively shows objects, which are anchored at paragraph, at/as a character of the paragraph, corresponding to the paragraph and paragraph portion visibility.

  • is called from HideHidden() - should hide objects in hidden paragraphs and
  • from Format_() - should hide/show objects in partly visible paragraphs

Definition at line 1657 of file txtfrm.cxx.

References COMPLETE_STRING, SwContentFrame::FindMaster(), SwFormatAnchor::GetAnchorContentOffset(), SwContact::GetAnchorFormat(), SwContact::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwScriptInfo::GetBoundsOfHiddenRange(), SwRootFrame::GetCurrShell(), SwFrame::GetDrawObjs(), SwFrame::getRootFrame(), SwNode::GetTextNode(), SdrObject::GetUserCall(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), HideAndShowObjects(), i, IsHiddenNow(), SwViewOption::IsShowHiddenChar(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), and sw_HideObj().

Referenced by Format(), FormatEmpty(), FormatImpl(), HideAndShowObjects(), and HideHidden().

◆ HideFootnotes()

void SwTextFrame::HideFootnotes ( TextFrameIndex  nStart,
TextFrameIndex  nEnd 
)

◆ HideHidden()

void SwTextFrame::HideHidden ( )

Removes Textfrm's attachments, when it's hidden.

Definition at line 1551 of file txtfrm.cxx.

References ClearPara(), COMPLETE_STRING, GetFollow(), GetOffset(), HideAndShowObjects(), HideFootnotes(), and IsHiddenNow().

Referenced by Format().

◆ Hyphenate()

bool SwTextFrame::Hyphenate ( SwInterHyphInfoTextFrame rInf)

◆ Init()

void SwTextFrame::Init ( void  )

This is public, as it needs to be called by some methods in order to save the Prepare USE WITH CAUTION!

Definition at line 750 of file txtfrm.cxx.

References ClearPara(), IsLocked(), and SetHasRotatedPortions().

Referenced by CalcLineSpace(), and Prepare().

◆ InvalidateRange()

void SwTextFrame::InvalidateRange ( const SwCharRange aRange,
const tools::Long  nD = 0 
)
inlineprivate

Definition at line 1797 of file txtfrm.cxx.

References InvalidateRange_(), IsIdxInside(), SwCharRange::Len(), and SwCharRange::Start().

Referenced by Prepare(), and SwClientNotify().

◆ InvalidateRange_()

void SwTextFrame::InvalidateRange_ ( const SwCharRange aRange,
const tools::Long  nD = 0 
)
private

◆ IsEmpty()

bool SwTextFrame::IsEmpty ( ) const
inline

◆ IsEmptyMaster()

bool SwTextFrame::IsEmptyMaster ( ) const
inline

If there's a Follow and we don't contain text ourselves.

Definition at line 461 of file txtfrm.hxx.

References SwContentFrame::GetFollow().

Referenced by Format(), and IsEmptyMasterWithSplitFly().

◆ IsEmptyMasterWithSplitFly()

bool SwTextFrame::IsEmptyMasterWithSplitFly ( ) const

This text frame has a follow and the text frame don't contain text.

Additionally one split fly is anchored to the text frame.

Definition at line 1523 of file itratr.cxx.

References SwFlyFrame::DynCastFlyFrame(), GetFollow(), GetOffset(), IsEmptyMaster(), SwFlyFrame::IsFlySplitAllowed(), SwFrame::m_pDrawObjs, and mnOffset.

Referenced by AdjustFollow_(), and Format().

◆ IsEmptyWithSplitFly()

bool SwTextFrame::IsEmptyWithSplitFly ( ) const

This text frame is not split, doesn't fit the upper, has a single split fly anchored to it with a negative vertical offset.

Such frames may need explicit splitting.

Definition at line 1549 of file itratr.cxx.

References Bottom, SwFlyFrame::DynCastFlyFrame(), SwFrameAreaDefinition::getFrameArea(), SwFlyFrame::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwFormatVertOrient::GetPos(), GetTextNodeFirst(), SwFrame::GetUpper(), SwFormat::GetVertOrient(), sw::util::HasItem(), SwFlyFrame::IsFlySplitAllowed(), SwFrame::m_pDrawObjs, and RES_PAGEDESC().

Referenced by FormatAdjust(), FormatEmpty(), and SwTextFrameBreak::IsBreakNow().

◆ IsFieldFollow()

bool SwTextFrame::IsFieldFollow ( ) const
inline

Definition at line 542 of file txtfrm.hxx.

Referenced by CalcFollow(), Format(), Format_(), and FormatAdjust().

◆ IsFootnoteNumFrame()

bool SwTextFrame::IsFootnoteNumFrame ( ) const
inline

Am I a FootnoteFrame, with a number at the start of the paragraph?

Definition at line 640 of file txtfrm.hxx.

References SwFrame::GetIndPrev(), and SwFrame::IsInFootnote().

Referenced by Prepare(), and SwTextFormatter::WhichFirstPortion().

◆ IsFootnoteNumFrame_()

bool SwTextFrame::IsFootnoteNumFrame_ ( ) const
private

◆ IsHiddenNow()

bool SwTextFrame::IsHiddenNow ( ) const

◆ IsIdxInside()

bool SwTextFrame::IsIdxInside ( TextFrameIndex  nPos,
TextFrameIndex  nLen 
) const
private

◆ IsInFootnoteConnect()

bool SwTextFrame::IsInFootnoteConnect ( ) const
inline

Definition at line 541 of file txtfrm.hxx.

Referenced by GetFootnoteFrameHeight_().

◆ IsInside()

bool SwTextFrame::IsInside ( TextFrameIndex  nPos) const
inline

Respect the Follows.

Definition at line 863 of file txtfrm.hxx.

References GetFollow(), GetOffset(), and nPos.

Referenced by SwAccessibleParagraph::grabFocus(), IsFrameBehind(), and SwGetRefField::UpdateField().

◆ IsJustWidow()

bool SwTextFrame::IsJustWidow ( ) const
inline

Definition at line 538 of file txtfrm.hxx.

Referenced by WidowsAndOrphans::FindWidows().

◆ IsLocked()

bool SwTextFrame::IsLocked ( ) const
inline

◆ IsSwapped()

bool SwTextFrame::IsSwapped ( ) const
inline

◆ IsSymbolAt()

bool SwTextFrame::IsSymbolAt ( TextFrameIndex  nPos) const

Definition at line 190 of file itratr.cxx.

References SwAttrIter::IsSymbol(), and nPos.

Referenced by GetCurWord().

◆ IsWidow()

bool SwTextFrame::IsWidow ( ) const
inline

Definition at line 537 of file txtfrm.hxx.

Referenced by CalcFollow(), Format(), FormatQuick(), and WouldFit().

◆ JoinFrame()

SwContentFrame * SwTextFrame::JoinFrame ( )

◆ LeftMargin()

bool SwTextFrame::LeftMargin ( SwPaM pPam) const
overridevirtual

◆ Lock()

void SwTextFrame::Lock ( )
inlineprivate

Definition at line 252 of file txtfrm.hxx.

Referenced by TextFrameLockGuard::TextFrameLockGuard().

◆ MakePos()

void SwTextFrame::MakePos ( )
overrideprivatevirtual

◆ ManipOfst()

void SwTextFrame::ManipOfst ( TextFrameIndex const  nNewOfst)
inline

◆ MapModelToView()

TextFrameIndex SwTextFrame::MapModelToView ( SwTextNode const *  pNode,
sal_Int32  nIndex 
) const

◆ MapModelToViewPos()

TextFrameIndex SwTextFrame::MapModelToViewPos ( SwPosition const &  rPos) const

◆ MapViewToModel()

std::pair< SwTextNode *, sal_Int32 > SwTextFrame::MapViewToModel ( TextFrameIndex  nIndex) const

◆ MapViewToModelPos()

SwPosition SwTextFrame::MapViewToModelPos ( TextFrameIndex  nIndex) const

Definition at line 1333 of file txtfrm.cxx.

References MapViewToModel(), and nIndex.

Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), SwAccessibleParagraph::addSelection(), SwEditShell::AutoCorrect(), SwAutoFormat::AutoCorrect(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildNegIndent(), SwDoc::ChgAnchor(), SwAutoCorrDoc::ChgAutoCorrWord(), SwAccessibleParagraph::CreateUnoPortion(), SwAutoFormat::DelEmptyLine(), SwAutoCorrDoc::Delete(), SwAutoFormat::DeleteJoinCurNextPara(), SwAutoFormat::DeleteLeadingTrailingBlanks(), SwAutoFormat::DelMoreLinesBlanks(), DoSearch(), SwCursor::DoSetBidiLevelLeftRight(), SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawCSDFHighlighting(), FillCursorPos(), FillSelection(), FindAttrsImpl(), sw::FindFormatImpl(), sw::FindTextImpl(), SwFieldFormCheckboxPortion::Format(), GetBodyTextNode(), SwAccessibleParagraph::getCharacterBounds(), SwAccessibleParagraph::GetCurrentTabStop(), GetFrameInPage(), SwAccessibleParagraph::getIndexAtPoint(), GetModelPositionForViewPoint_(), SwEditShell::GetScriptType(), SwCursorShell::GotoFootnoteText(), SwAccessibleContext::grabFocus(), SwAccessibleParagraph::grabFocus(), SwAutoCorrDoc::Insert(), lcl_FindAnchorPos(), lcl_UpDown(), LeftMargin(), SwFEShell::MoveAnchor(), SwFieldFormCheckboxPortion::Paint(), SwEditShell::ReplaceDropText(), SwAccessibleParagraph::replaceText(), RightMargin(), SwFlyAtContentFrame::SetAbsPos(), SwAutoCorrDoc::SetAttr(), SwAccessibleParagraph::setCaretPosition(), SwRootFrame::SetCurrPage(), SwAutoCorrDoc::SetINetAttr(), SwAccessibleParagraph::setSelection(), SwAutoCorrDoc::TransliterateRTLWord(), UnitDown_(), UnitUp_(), and SwTextFormatter::WhichTextPor().

◆ MoveFlyInCnt()

void SwTextFrame::MoveFlyInCnt ( SwTextFrame pNew,
TextFrameIndex  nStart,
TextFrameIndex  nEnd 
)

Rewires FlyInContentFrame, if nEnd > Index >= nStart.

move character-bound objects inside the given area

This allows moving those objects from Master to Follow, or vice versa.

Parameters
pNew
nStart
nEnd

Definition at line 150 of file porfly.cxx.

References SwFrame::AppendDrawObj(), SwFrame::AppendFly(), SwAnchoredObject::DynCastFlyFrame(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwFrame::GetDrawObjs(), SwAnchoredObject::GetFrameFormat(), i, MapModelToViewPos(), nIndex, SwFrame::RemoveDrawObj(), SwFrame::RemoveFly(), and SwSortedObjs::size().

Referenced by ChangeOffset(), JoinFrame(), and SplitFrame().

◆ PaintEmpty()

bool SwTextFrame::PaintEmpty ( const SwRect rRect,
bool  bCheck 
) const
private

Definition at line 502 of file frmpaint.cxx.

References Point::AdjustX(), Point::AdjustY(), bInitFont, CH_PAR, EmptyHeight(), SwPaM::End(), FAMILY_DONTKNOW, SwFrame::FindPageFrame(), SwFontAccess::Get(), SwContentNode::GetAnyFormatColl(), SwTextGridItem::GetBaseHeight(), SwRootFrame::GetCurrShell(), numfunc::GetDefBulletFontname(), SwFontObj::GetFont(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), SwNode::getIDocumentRedlineAccess(), SwNode::getIDocumentSettingAccess(), SwNode::GetIndex(), SwPosition::GetNodeIndex(), SwViewShell::GetOut(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlinePos(), IDocumentRedlineAccess::GetRedlineTable(), SwFrame::getRootFrame(), SwTextGridItem::GetRubyHeight(), SwTextGridItem::GetRubyTextBelow(), SwContentNode::GetSwAttrSet(), SvxFirstLineIndentItem::GetTextFirstLineOffset(), GetTextNodeForParaProps(), SwRangeRedline::GetType(), GetValue, SwViewShell::GetViewOptions(), SwViewShell::GetWin(), HasNonLastSplitFlyDrawObj(), SwContentNode::HasSwAttrSet(), Height, SwAttrHandler::Init(), SwTextFly::IsAnyObj(), SwFrame::IsInDocBody(), SwTextFly::IsOn(), SwViewOption::IsParagraph(), SwFrame::IsRightToLeft(), IDocumentRedlineAccess::IsShowChanges(), SwFrame::IsVertical(), Latin, LINESTYLE_NONE, SwLayoutModeModifier::Modify(), NON_PRINTING_CHARACTER_COLOR, SwRedlineTable::npos, PaintParagraphStylesHighlighting(), SwRect::Pos(), SwDrawTextInfo::SetFont(), SwDrawTextInfo::SetFrame(), SwDrawTextInfo::SetGrammarCheck(), SwDrawTextInfo::SetKanaComp(), SwDrawTextInfo::SetPos(), SwDrawTextInfo::SetSmartTags(), SwDrawTextInfo::SetSnapToGrid(), SwDrawTextInfo::SetSpace(), SwTextFly::SetTopRule(), SwDrawTextInfo::SetWrong(), SwRedlineItr::Show, SwRedlineTable::size(), SwPaM::Start(), and STRIKEOUT_NONE.

Referenced by PaintSwFrame().

◆ PaintExtraData()

void SwTextFrame::PaintExtraData ( const SwRect rRect) const

◆ PaintOutlineContentVisibilityButton()

void SwTextFrame::PaintOutlineContentVisibilityButton ( ) const
private

◆ PaintParagraphStylesHighlighting()

void SwTextFrame::PaintParagraphStylesHighlighting ( ) const
private

◆ PaintSwFrame()

void SwTextFrame::PaintSwFrame ( vcl::RenderContext rRenderContext,
SwRect const &  rRect,
SwPrintData const *const  pPrintData = nullptr 
) const
overridevirtual

◆ Prepare()

bool SwTextFrame::Prepare ( const PrepareHint  ePrep = PrepareHint::Clear,
const void *  pVoid = nullptr,
bool  bNotify = true 
)
overridevirtual

SwContentFrame: the shortcut for the Frames If the void* casts wrongly, it's its own fault! The void* must be checked for 0 in any case!

return true if the Portion associated with this SwTextFrame was potentially destroyed and replaced by Prepare

Reimplemented from SwFrame.

Definition at line 2840 of file txtfrm.cxx.

References AdjustSizeWithoutFormatting, BossChanged, Bottom, SwRect::Bottom(), CalcFlyPos(), CalcLineSpace(), Clear, COMPLETE_STRING, ErgoSum, SwContentFrame::FindMaster(), SwFrame::FindPageFrame(), FlyFrameArrive, FlyFrameAttributesChanged, FlyFrameLeave, FootnoteInvalidation, FootnoteInvalidationGone, FootnoteMove, FramePositionChanged, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), GetDoc(), SwFrame::GetDrawObjs(), GetFollow(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), SwFrame::GetIndNext(), SwFrame::GetNext(), GetOffset(), SwTextLineAccess::GetPara(), SwParaPortion::GetParLen(), SwFrame::GetPrev(), SwParaPortion::GetRepaint(), SwTextAttr::GetStart(), SwTextFootnote::GetTextNode(), GetTextNodeForParaProps(), SwFrame::GetUpper(), GetValue, SwRect::HasArea(), SwParaPortion::HasFly(), HasFootnote(), HasPara(), SwRect::Height(), i, Init(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), SwFrame::InvalidateSize(), SwFrame::InvalidateSize_(), IsEmpty(), SwParaPortion::IsFootnoteNum(), IsFootnoteNumFrame(), SwFrameAreaDefinition::isFramePrintAreaValid(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsLayoutFrame(), IsLocked(), SwTextFly::IsOn(), SwParaPortion::IsPrepMustFit(), SwFrame::IsVertical(), lcl_ErgoVadis(), SwFootnoteInfo::m_aQuoVadis, MapModelToView(), MustFit, sw::MergedAttrIter::NextAttr(), nPos, Prepare(), PrepWidows(), QuoVadis, Register, SwTextFly::Relax(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), SwFrame::SetCompletePaint(), SwFrame::SetInvalidVert(), SetOffset_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SwSortedObjs::size(), SwRect::Top(), SwParaPortion::UpdateQuoVadis(), Widows, and WidowsOrphans.

Referenced by CalcFollow(), CalcPreps(), SwFrame::CheckDirChange(), SwDoc::ChgAnchor(), SwContentNode::DelFrames(), WidowsAndOrphans::FindWidows(), SwCellFrame::Format(), Format(), SwHeadFootFrame::FormatSize(), InsertCnt_(), Prepare(), SwFootnoteBossFrame::RemoveFootnote(), and SwClientNotify().

◆ PrepareVisualMove()

void SwTextFrame::PrepareVisualMove ( TextFrameIndex nPos,
sal_uInt8 nCursorLevel,
bool &  bRight,
bool  bInsertCursor 
)

Prepares the cursor position for a visual cursor move (BiDi).

The behaviour is different for insert and overwrite cursors

Definition at line 1045 of file frmcrsr.cxx.

References SwTextCursor::CharCursorToLine(), SwTextIter::GetCurr(), GetFormatted(), SwLinePortion::GetLen(), SwTextIter::GetStart(), GetText(), IsEmpty(), IsHiddenNow(), SwFrame::IsRightToLeft(), lcl_VisualMoveRecursion(), nPos, and SwTextIter::Top().

Referenced by SwCursor::DoSetBidiLevelLeftRight().

◆ PrepWidows()

void SwTextFrame::PrepWidows ( const sal_uInt16  nNeed,
bool  bNotify 
)
private

◆ RecalcAllLines()

void SwTextFrame::RecalcAllLines ( )

◆ RegisterToNode()

void SwTextFrame::RegisterToNode ( SwTextNode rNode,
bool  isForceNodeAsFirst = false 
)

◆ RemoveFootnote()

void SwTextFrame::RemoveFootnote ( TextFrameIndex  nStart,
TextFrameIndex  nLen = TextFrameIndex(COMPLETE_STRING) 
)

◆ RemoveFromCache()

void SwTextFrame::RemoveFromCache ( )

Removes this frame completely from the Cache.

Definition at line 120 of file txtcache.cxx.

References SwCache::Delete(), GetCacheIdx(), s_pTextCache, and SetCacheIdx().

Referenced by FormatEmpty(), and ~SwTextFrame().

◆ repaintTextFrames()

void SwTextFrame::repaintTextFrames ( const SwTextNode rNode)
static

◆ ResetPreps()

void SwTextFrame::ResetPreps ( )
private

Definition at line 1438 of file txtfrm.cxx.

References GetCacheIdx(), and GetPara().

Referenced by CalcPrepFootnoteAdjust(), CalcPreps(), and ValidateFrame().

◆ ResetRepaint()

void SwTextFrame::ResetRepaint ( ) const
inline

Definition at line 909 of file txtfrm.hxx.

References mbRepaint.

Referenced by GetPaintSwRect(), and PaintSwFrame().

◆ RightMargin()

bool SwTextFrame::RightMargin ( SwPaM pPam,
bool  bAPI = false 
) const
overridevirtual

◆ SetAnimation()

void SwTextFrame::SetAnimation ( ) const
inline

Definition at line 549 of file txtfrm.hxx.

Referenced by SwGrfNumPortion::Paint().

◆ SetCacheIdx()

void SwTextFrame::SetCacheIdx ( const sal_uInt16  nNew)
inline

◆ SetEmpty()

void SwTextFrame::SetEmpty ( const bool  bNew)
inlineprivate

Definition at line 256 of file txtfrm.hxx.

Referenced by Format(), and FormatEmpty().

◆ SetFieldFollow()

void SwTextFrame::SetFieldFollow ( const bool  bNew)
inlineprivate

Definition at line 257 of file txtfrm.hxx.

Referenced by CalcFollow(), Format_(), and PrepWidows().

◆ SetFootnote()

void SwTextFrame::SetFootnote ( const bool  bNew)
inline

Will be moved soon.

Definition at line 617 of file txtfrm.hxx.

Referenced by JoinFrame(), RemoveFootnote(), SwTextFormatInfo::SetParaFootnote(), and SplitFrame().

◆ SetHasRotatedPortions()

void SwTextFrame::SetHasRotatedPortions ( bool  bHasRotatedPortions)

Definition at line 98 of file txtftn.cxx.

References mbHasRotatedPortions.

Referenced by FormatEmpty(), Init(), and SwTextFormatter::NewPortion().

◆ SetJustWidow()

void SwTextFrame::SetJustWidow ( const bool  bNew)
inlineprivate

Definition at line 255 of file txtfrm.hxx.

Referenced by CalcPreps(), and WidowsAndOrphans::FindWidows().

◆ SetMergedPara()

void SwTextFrame::SetMergedPara ( std::unique_ptr< sw::MergedPara p)

Definition at line 1361 of file txtfrm.cxx.

References SwFrame::GetDep(), m_pMergedPara, and p.

◆ SetOffset()

void SwTextFrame::SetOffset ( TextFrameIndex  nNewOfst)
inline

Definition at line 899 of file txtfrm.hxx.

References mnOffset, and SetOffset_().

Referenced by Format(), and PrepWidows().

◆ SetOffset_()

void SwTextFrame::SetOffset_ ( TextFrameIndex  nNewOfst)

◆ SetPara()

void SwTextFrame::SetPara ( SwParaPortion pNew,
bool  bDelete = true 
)
private

◆ SetRepaint()

void SwTextFrame::SetRepaint ( ) const
inline

Definition at line 905 of file txtfrm.hxx.

References mbRepaint.

Referenced by Format_().

◆ SetTextCache()

static void SwTextFrame::SetTextCache ( SwCache pNew)
inlinestatic

Definition at line 627 of file txtfrm.hxx.

Referenced by TextInit_().

◆ SetWidow()

void SwTextFrame::SetWidow ( const bool  bNew)
inlineprivate

Definition at line 254 of file txtfrm.hxx.

Referenced by CalcPreps(), Format(), InvalidateRange_(), and WouldFit().

◆ SmartTagScan()

SwRect SwTextFrame::SmartTagScan ( SwTextNode rNode)

◆ SplitFrame()

void SwTextFrame::SplitFrame ( TextFrameIndex  nTextPos)

◆ StopAnimation()

void SwTextFrame::StopAnimation ( const OutputDevice pOut)

◆ SwapWidthAndHeight()

void SwTextFrame::SwapWidthAndHeight ( )

◆ SwClientNotify()

void SwTextFrame::SwClientNotify ( SwModify const &  rModify,
SfxHint const &  rHint 
)
overrideprivatevirtual

Reimplemented from SwContentFrame.

Definition at line 2083 of file txtfrm.cxx.

References abs(), AdjustSizeWithoutFormatting, aFrameFormatSetRange, SfxBroadcaster::Broadcast(), CalcFootnoteFlag(), CalcLineSpace(), SwFrame::CheckDirChange(), SwAttrSetChg::ClearItem(), COL_TRANSPARENT(), COMPLETE_STRING, SwLayoutFrame::ContainsAny(), SfxItemSet::Count(), SwAttrSetChg::Count(), SwAnchoredObject::DynCastFlyFrame(), SwFrame::FindNext(), SwFrame::FindSctFrame(), FootnoteInvalidation, SwSmartTagMgr::Get(), SvxBrushItem::GetColor(), SwRootFrame::GetCurrShell(), GetDoc(), SwFrame::GetDrawObjs(), SwUpdateAttr::getEnd(), SwUpdateAttr::getFmtAttrs(), SwFrameAreaDefinition::getFrameArea(), SvxBrushItem::GetGraphicPos(), SfxHint::GetId(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwUpdateAttr::getStart(), SwUpdateAttr::getWhichAttr(), GPOS_NONE, hasA11yRelevantAttribute(), i, SwViewShell::InvalidateAccessibleParaAttrs(), SwFrame::InvalidateLineNum(), SwFrame::InvalidateNextPrtArea(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), InvalidateRange_(), SwFrame::InvalidateSize(), isA11yRelevantAttribute(), IsIdxInside(), SwFrame::IsInFootnote(), IsInRange(), SwFrame::IsInSct(), sw::InsertText::isInsideFieldmarkCommand, sw::InsertText::isInsideFieldmarkResult, IsLocked(), isPARATR(), isPARATR_LIST(), lcl_ModifyOfst(), lcl_SetScriptInval(), lcl_SetWrong(), m, sw::DeleteChar::m_nPos, m_pMergedPara, MapModelToView(), nCount, sw::MoveText::nDestStart, nIndex, sw::MoveText::nLen, sw::InsertText::nLen, sw::DeleteText::nLen, sw::RedlineDelText::nLen, sw::RedlineUnDelText::nLen, nPos, sw::InsertText::nPos, sw::MoveText::nSourceStart, sw::DeleteText::nStart, sw::RedlineDelText::nStart, sw::RedlineUnDelText::nStart, sw::MoveText::pDestNode, Prepare(), Register, RES_ATTRSET_CHG(), RES_BACKGROUND(), RES_BREAK(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_FONT(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_FONT(), RES_CHRATR_LANGUAGE(), RES_FMT_CHG(), RES_FRAMEDIR(), RES_FRMATR_END(), RES_LINENUMBER(), RES_OBJECTDYING(), RES_PAGEDESC(), RES_PARATR_BEGIN(), RES_PARATR_LINESPACING(), RES_PARATR_REGISTER(), RES_PARATR_SPLIT(), RES_TXTATR_ANNOTATION(), RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), RES_TXTATR_INETFMT(), RES_UPDATE_ATTR(), SwFrame::SetCompletePaint(), SwFrame::SetDerivedR2L(), IDocumentFieldsAccess::SetFieldsDirty(), sw::ShowBoth, sw::ShowCommand, sw::ShowResult, SwSortedObjs::size(), SwContentFrame::SwClientNotify(), Top, sw::UpdateMergedParaForDelete(), sw::UpdateMergedParaForInsert(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().

◆ SwitchHorizontalToVertical() [1/3]

void SwTextFrame::SwitchHorizontalToVertical ( Point rPoint) const

Calculates the coordinates of a point when switching from horizontal to vertical layout.

Definition at line 531 of file txtfrm.cxx.

References SwFrameAreaDefinition::getFrameArea(), Height, SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, SAL_WARN_IF, Point::setX(), Point::setY(), Top, SwRect::Top(), Width, Point::X(), and Point::Y().

◆ SwitchHorizontalToVertical() [2/3]

void SwTextFrame::SwitchHorizontalToVertical ( SwRect rRect) const

◆ SwitchHorizontalToVertical() [3/3]

tools::Long SwTextFrame::SwitchHorizontalToVertical ( tools::Long  nLimit) const

Calculates the limit value when switching from horizontal to vertical layout.

Calculates the a limit value when switching from horizontal to vertical layout.

Definition at line 569 of file txtfrm.cxx.

References SwitchHorizontalToVertical(), and Point::X().

◆ SwitchLTRtoRTL() [1/2]

void SwTextFrame::SwitchLTRtoRTL ( Point rPoint) const

Calculates the coordinates of a point when switching from LTR to RTL layout.

Definition at line 694 of file txtfrm.cxx.

References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), Left, Point::setX(), swap(), Width, and Point::X().

◆ SwitchLTRtoRTL() [2/2]

void SwTextFrame::SwitchLTRtoRTL ( SwRect rRect) const

◆ SwitchRTLtoLTR() [1/2]

void SwTextFrame::SwitchRTLtoLTR ( Point rPoint) const
inline

Calculates the coordinates of a point when switching from RTL to LTR layout.

Definition at line 759 of file txtfrm.hxx.

◆ SwitchRTLtoLTR() [2/2]

void SwTextFrame::SwitchRTLtoLTR ( SwRect rRect) const
inline

Calculates the coordinates of a rectangle when switching from RTL to LTR layout.

Definition at line 753 of file txtfrm.hxx.

Referenced by SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), GetModelPositionForViewPoint_(), lcl_DrawSpecial(), and PaintSwFrame().

◆ SwitchVerticalToHorizontal() [1/3]

void SwTextFrame::SwitchVerticalToHorizontal ( Point rPoint) const

Calculates the coordinates of a point when switching from vertical to horizontal layout.

Definition at line 621 of file txtfrm.cxx.

References SwFrameAreaDefinition::getFrameArea(), SwRect::Height(), SwFrame::IsVertLR(), SwFrame::IsVertLRBT(), Left, SwRect::Left(), mbIsSwapped, Point::setX(), Point::setY(), Top, SwRect::Top(), SwRect::Width(), Point::X(), and Point::Y().

◆ SwitchVerticalToHorizontal() [2/3]

void SwTextFrame::SwitchVerticalToHorizontal ( SwRect rRect) const

◆ SwitchVerticalToHorizontal() [3/3]

tools::Long SwTextFrame::SwitchVerticalToHorizontal ( tools::Long  nLimit) const

Calculates the a limit value when switching from vertical to horizontal layout.

Definition at line 660 of file txtfrm.cxx.

References SwitchVerticalToHorizontal(), and Point::Y().

◆ TestFormat()

bool SwTextFrame::TestFormat ( const SwFrame pPrv,
SwTwips nMaxHeight,
bool &  bSplit 
)

The WouldFit equivalent for temporarily rewired TextFrames nMaxHeight returns the required size here too and bSplit determines whether the paragraph needs to be split.

We pass the potential predecessor for the distance calculation

Definition at line 3332 of file txtfrm.cxx.

References SwFrameAreaDefinition::getFramePrintArea(), SwFrame::GetUpper(), IsLocked(), NONE, PROTOCOL_ENTER, TestFormat, Width, and WouldFit().

◆ UnitDown()

bool SwTextFrame::UnitDown ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const
overridevirtual

◆ UnitDown_()

bool SwTextFrame::UnitDown_ ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const

◆ UnitUp()

bool SwTextFrame::UnitUp ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const
overridevirtual

Reimplemented from SwContentFrame.

Definition at line 1274 of file frmcrsr.cxx.

References SwPaM::GetPoint(), SwTextCursor::IsRightMargin(), and UnitUp_().

◆ UnitUp_()

bool SwTextFrame::UnitUp_ ( SwPaM pPam,
const SwTwips  nOffset,
bool  bSetInReadOnly 
) const

◆ Unlock()

void SwTextFrame::Unlock ( )
inlineprivate

Definition at line 253 of file txtfrm.hxx.

Referenced by TextFrameLockGuard::~TextFrameLockGuard().

◆ UpdateOutlineContentVisibilityButton()

void SwTextFrame::UpdateOutlineContentVisibilityButton ( SwWrtShell pWrtSh) const
private

◆ ValidateBodyFrame()

void SwTextFrame::ValidateBodyFrame ( )
private

◆ ValidateFrame()

void SwTextFrame::ValidateFrame ( )
private

◆ VisitPortions()

void SwTextFrame::VisitPortions ( SwPortionHandler rPH) const

◆ WouldFit()

bool SwTextFrame::WouldFit ( SwTwips rMaxHeight,
bool &  bSplit,
bool  bTst,
bool  bMoveBwd 
)
overridevirtual

nMaxHeight is the required height bSplit indicates, that the paragraph has to be split bTst indicates, that we are currently doing a test formatting

We should not and don't need to reformat.

We assume that we already formatted and that the formatting data is still current.

We also assume that the frame width of the Master and Follow are the same. That's why we're not calling FindBreak() for FindOrphans(). The required height is coming from nMaxHeight.

Returns
true if I can split

Reimplemented from SwContentFrame.

Definition at line 3356 of file txtfrm.cxx.

References Bottom, SwTextIter::Bottom(), GetFollow(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwTextIter::GetLineHeight(), HasPara(), Height, SwRect::Height(), IsEmpty(), IsHiddenNow(), SwTextFrameBreak::IsInside(), SwTextFrameBreak::IsKeepAlways(), IsLocked(), IsSwapped(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), IsWidow(), Left, SwTextIter::Next(), SetWidow(), SwRect::SSize(), swap(), SwTextIter::Top(), sw::WIDOW_MAGIC, Width, SwRect::Width(), and WidowsAndOrphans::WouldFit().

Referenced by TestFormat().

Friends And Related Function Documentation

◆ sw_ChangeOffset

bool sw_ChangeOffset ( SwTextFrame pFrame,
TextFrameIndex  nNew 
)
friend

Definition at line 108 of file frmcrsr.cxx.

Referenced by GetCharRect(), LeftMargin(), UnitDown_(), and UnitUp_().

◆ SwTestFormat

friend class SwTestFormat
friend

Definition at line 170 of file txtfrm.hxx.

◆ SwTextIter

friend class SwTextIter
friend

Definition at line 169 of file txtfrm.hxx.

◆ TextFrameLockGuard

friend class TextFrameLockGuard
friend

Definition at line 172 of file txtfrm.hxx.

◆ WidowsAndOrphans

friend class WidowsAndOrphans
friend

Definition at line 171 of file txtfrm.hxx.

Member Data Documentation

◆ m_pMergedPara

std::unique_ptr<sw::MergedPara> SwTextFrame::m_pMergedPara
private

redline merge data

Definition at line 205 of file txtfrm.hxx.

Referenced by DestroyImpl(), IsHiddenNow(), RegisterToNode(), SetMergedPara(), SwClientNotify(), and SwTextFrame().

◆ mbEmpty

bool SwTextFrame::mbEmpty
private

Definition at line 235 of file txtfrm.hxx.

◆ mbFieldFollow

bool SwTextFrame::mbFieldFollow
private

Definition at line 241 of file txtfrm.hxx.

◆ mbFollowFormatAllowed

bool SwTextFrame::mbFollowFormatAllowed
private

Definition at line 249 of file txtfrm.hxx.

◆ mbFootnote

bool SwTextFrame::mbFootnote
private

Definition at line 237 of file txtfrm.hxx.

Referenced by ConnectFootnote().

◆ mbHasAnimation

bool SwTextFrame::mbHasAnimation
private

Definition at line 242 of file txtfrm.hxx.

◆ mbHasRotatedPortions

bool SwTextFrame::mbHasRotatedPortions
private

Contains rotated portions.

Definition at line 240 of file txtfrm.hxx.

Referenced by SetHasRotatedPortions().

◆ mbInFootnoteConnect

bool SwTextFrame::mbInFootnoteConnect
private

Definition at line 236 of file txtfrm.hxx.

Referenced by ConnectFootnote().

◆ mbIsSwapped

bool SwTextFrame::mbIsSwapped
private

◆ mbJustWidow

bool SwTextFrame::mbJustWidow
private

Definition at line 234 of file txtfrm.hxx.

◆ mbLocked

bool SwTextFrame::mbLocked
private

Definition at line 232 of file txtfrm.hxx.

◆ mbRepaint

bool SwTextFrame::mbRepaint
private

Definition at line 238 of file txtfrm.hxx.

Referenced by ResetRepaint(), and SetRepaint().

◆ mbWidow

bool SwTextFrame::mbWidow
private

Definition at line 233 of file txtfrm.hxx.

◆ mnAdditionalFirstLineOffset

SwTwips SwTextFrame::mnAdditionalFirstLineOffset
private

Definition at line 202 of file txtfrm.hxx.

Referenced by CalcAdditionalFirstLineOffset().

◆ mnAllLines

sal_Int32 SwTextFrame::mnAllLines
private

Definition at line 184 of file txtfrm.hxx.

Referenced by ChgThisLines(), and RecalcAllLines().

◆ mnCacheIndex

sal_uInt16 SwTextFrame::mnCacheIndex
private

Definition at line 209 of file txtfrm.hxx.

Referenced by ClearPara(), GetPara(), HasPara(), HasPara_(), and SetPara().

◆ mnFlyAnchorOfst

SwTwips SwTextFrame::mnFlyAnchorOfst
private

Definition at line 189 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly().

◆ mnFlyAnchorOfstNoWrap

SwTwips SwTextFrame::mnFlyAnchorOfstNoWrap
private

Definition at line 191 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly().

◆ mnFlyAnchorVertOfstNoWrap

SwTwips SwTextFrame::mnFlyAnchorVertOfstNoWrap
private

The y position for wrap-through flys anchored at this paragraph.

Definition at line 193 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly(), and GetBaseVertOffsetForFly().

◆ mnFootnoteLine

SwTwips SwTextFrame::mnFootnoteLine
private

Definition at line 194 of file txtfrm.hxx.

Referenced by ConnectFootnote(), and GetFootnoteLine().

◆ mnHeightOfLastLine

SwTwips SwTextFrame::mnHeightOfLastLine
private

Definition at line 197 of file txtfrm.hxx.

Referenced by CalcHeightOfLastLine().

◆ mnOffset

TextFrameIndex SwTextFrame::mnOffset
private

◆ mnThisLines

sal_Int32 SwTextFrame::mnThisLines
private

Definition at line 185 of file txtfrm.hxx.

Referenced by ChgThisLines().

◆ nMinPrtLine

constexpr tools::Long SwTextFrame::nMinPrtLine = 0
staticconstexprprivate

Definition at line 181 of file txtfrm.hxx.

◆ s_pTextCache

SwCache * SwTextFrame::s_pTextCache = nullptr
staticprivate

SwLineLayout cache: the lines are not actually owned by the SwTextFrame but by this SwCache, so they will be deleted in large documents if there are too many of them, but the "valid" flags of the frame will still be set; GetFormatted() is the function that forces recreation of the SwLineLayout by Format() if necessary.

Definition at line 180 of file txtfrm.hxx.

Referenced by RemoveFromCache().


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