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

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_() and ExecSpellPopup() 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 screen position of rPos. 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 GetCursorOfst (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 GetOfst () const
 
void SetOfst_ (TextFrameIndex nNewOfst)
 
void SetOfst (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 *)
 
virtual bool Prepare (const PrepareHint ePrep=PREP_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) 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
 
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 SetBlinkPor () const
 
void ResetBlinkPor () const
 
bool HasBlinkPor () 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 ... 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
 
virtual void CheckDirection (bool bVert) override
 
sal_uInt16 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. 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
 
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_uInt16 GetLineCount (TextFrameIndex nPos)
 Determines the line count. More...
 
sal_uLong GetAllLines () const
 For displaying the line numbers. More...
 
sal_uLong GetThisLines () const
 
void RecalcAllLines ()
 
void StopAnimation (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...
 
long SwitchHorizontalToVertical (long nLimit) const
 Calculates the a 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...
 
long SwitchVerticalToHorizontal (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 GetBaseOfstForFly (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...
 
virtual void dumpAsXmlAttributes (xmlTextWriterPtr writer) 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
 
bool MoveFootnoteCntFwd (bool, SwFootnoteBossFrame *)
 
SwContentFrameGetNextContentFrame () const
 
SwContentFrameGetPrevContentFrame () const
 
- Public Member Functions inherited from SwFrame
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...
 
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...
 
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 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
 OD 05.09.2002 #102912# 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, const Color *&rpColor, 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
 
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 rightpage 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
 
const SwRect GetPaintArea () const
 |* The paintarea is the area, in which the content of a frame is allowed |* to be displayed. More...
 
const 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)
 
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...
 
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
 
long GetTopMargin () const
 
long GetBottomMargin () const
 
long GetLeftMargin () const
 
long GetRightMargin () const
 
void SetTopBottomMargins (long, long)
 
void SetLeftRightMargins (long, long)
 
void SetRightLeftMargins (long, long)
 
long GetPrtLeft () const
 
long GetPrtBottom () const
 
long GetPrtRight () const
 
long GetPrtTop () const
 
bool SetMinLeft (long)
 
bool SetMaxBottom (long)
 
bool SetMaxRight (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
 
bool IsLeaveUpperAllowed () const
 
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
 
void dumpTopMostAsXml (xmlTextWriterPtr writer=nullptr) const
 
void dumpInfosAsXml (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...
 
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
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () 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
 
size_t GetSizeOfVector () const
 
SfxListenerGetListener (size_t nNo) const
 
- Public Member Functions inherited from SwFlowFrame
 SwFlowFrame (SwFrame &rFrame)
 
virtual ~SwFlowFrame ()
 
const SwFrameGetFrame () const
 
SwFrameGetFrame ()
 
void SetUndersized (const bool bNew)
 
bool IsUndersized () const
 
bool IsPrevObjMove () const
 
void MoveSubTree (SwLayoutFrame *pParent, SwFrame *pSibling=nullptr)
 hook tree onto new parent with minimal operations and notifications More...
 
bool HasFollow () const
 
bool IsFollow () const
 
bool IsAnFollow (const SwFlowFrame *pFlow) const
 
const SwFlowFrameGetFollow () const
 
SwFlowFrameGetFollow ()
 
void SetFollow (SwFlowFrame *const pFollow)
 
const SwFlowFrameGetPrecede () const
 
SwFlowFrameGetPrecede ()
 
bool IsJoinLocked () const
 
bool IsAnyJoinLocked () const
 
bool IsPageBreak (bool bAct) const
 |* If there's a hard page break before the Frame AND there's a |* predecessor on the same page, true is returned (we need to create a |* new PageBreak). More...
 
bool IsColBreak (bool bAct) const
 |* If there's a hard column break before the Frame AND there is |* a predecessor in the same column, we return true (we need to create |* a ColBreak). More...
 
bool IsKeep (SvxFormatKeepItem const &rKeep, SvxFormatBreakItem const &rBreak, bool bBreakCheck=false) const
 method to determine if a Keep needs to be considered (Breaks!) More...
 
bool HasLockedFollow () const
 
bool HasParaSpaceAtPages (bool bSct) const
 
SwTwips CalcUpperSpace (const SwBorderAttrs *pAttrs=nullptr, const SwFrame *pPr=nullptr, const bool _bConsiderGrid=true) const
 method to determine the upper space hold by the frame More...
 
SwTwips GetUpperSpaceAmountConsideredForPrevFrameAndPageGrid () const
 method to determine the upper space amount, which is considered for the previous frame and the page grid, if option 'Use former object positioning' is OFF More...
 
SwTwips CalcLowerSpace (const SwBorderAttrs *_pAttrs=nullptr) const
 calculation of lower space More...
 
SwTwips CalcAddLowerSpaceAsLastInTableCell (const SwBorderAttrs *_pAttrs=nullptr) const
 calculation of the additional space to be considered, if flow frame is the last inside a table cell More...
 
void CheckKeep ()
 
void SetFlyLock (bool bNew)
 
bool IsFlyLock () const
 
bool ForbiddenForFootnoteCntFwd () const
 

Static Public Member Functions

static SwCacheGetTextCache ()
 
static void SetTextCache (SwCache *pNew)
 
static long GetMinPrtLine ()
 
static void repaintTextFrames (const SwTextNode &rNode)
 Repaint all text frames of the given text node. More...
 
- Static Public Member Functions inherited from SwContentFrame
static bool CalcLowers (SwLayoutFrame *pLay, const SwLayoutFrame *pDontLeave, 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 right frame format. More...
 
static void DestroyFrame (SwFrame *const pFrame)
 this is the only way to delete a SwFrame instance More...
 
- Static Public Member Functions inherited from SwFlowFrame
static bool IsMoveBwdJump ()
 
static void SetMoveBwdJump (bool bNew)
 
static SwFlowFrameCastFlowFrame (SwFrame *pFrame)
 
static const SwFlowFrameCastFlowFrame (const SwFrame *pFrame)
 

Protected Member Functions

virtual void SwClientNotify (SwModify const &rModify, SfxHint const &rHint) override
 
- Protected Member Functions inherited from SwContentFrame
void MakePrtArea (const SwBorderAttrs &)
 
virtual void Modify (const SfxPoolItem *, const SfxPoolItem *) 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 ~SwContentFrame () override
 
- Protected Member Functions inherited from SwFrame
void ColLock ()
 
void ColUnlock ()
 
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 ()
 
SwTwips AdjustNeighbourhood (SwTwips nDiff, bool bTst=false)
 Adjust surrounding neighbourhood after insertion. More...
 
SwModifyGetDep ()
 use these so we can grep for SwFrame's GetRegisteredIn accesses beware that SwTextFrame may return sw::WriterMultiListener More...
 
const SwModifyGetDep () const
 
 SwFrame (SwModify *, 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 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
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Member Functions inherited from SwFlowFrame
bool IsFwdMoveAllowed ()
 
bool IsKeepFwdMoveAllowed (bool bIgnoreMyOwnKeepValue=false)
 
sal_uInt8 BwdMoveNecessary (const SwPageFrame *pPage, const SwRect &rRect)
 method to determine overlapping of an object that requests floating More...
 
void LockJoin ()
 
void UnlockJoin ()
 
bool CheckMoveFwd (bool &rbMakePage, bool bKeep, bool bIgnoreMyOwnKeepValue)
 Moves the Frame forward if it seems necessary regarding the current conditions and attributes. More...
 
bool MoveFwd (bool bMakePage, bool bPageBreak, bool bMoveAlways=false)
 Return value tells us whether the Frame has changed the page. More...
 
bool MoveBwd (bool &rbReformat)
 Return value tells whether the Frame should change the page. 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 long=0)
 
void InvalidateRange (const SwCharRange &, const 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 GetCursorOfst_ (SwPosition *pPos, const Point &rPoint, const bool bChgFrame, SwCursorMoveState *=nullptr) const
 
void FillCursorPos (SwFillData &rFill) const
 
bool FormatLine (SwTextFormatter &rLine, const bool bPrev)
 
void Format_ (vcl::RenderContext *pRenderContext, SwParaPortion *pPara)
 
void Format_ (SwTextFormatter &rLine, SwTextFormatInfo &rInf, const bool bAdjust=false)
 
void FormatOnceMore (SwTextFormatter &rLine, SwTextFormatInfo &rInf)
 
bool CalcFollow (TextFrameIndex nTextOfst)
 
virtual void MakePos () override
 
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
 

Static Private Member Functions

static TextFrameIndex FindBrk (const OUString &rText, TextFrameIndex nStart, TextFrameIndex nEnd)
 Returns the first possible break point in the current line. More...
 

Private Attributes

sal_uLong mnAllLines:24
 
sal_uLong 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 mbHasBlinkPortions: 1
 
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 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 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
 
bool mbForbidDelete: 1
 
- Protected Attributes inherited from SwFlowFrame
SwFlowFramem_pFollow
 
SwFlowFramem_pPrecede
 
bool m_bLockJoin:1
 
bool m_bUndersized:1
 
bool m_bFlyLock:1
 

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 149 of file txtfrm.hxx.

Constructor & Destructor Documentation

SwTextFrame::~SwTextFrame ( )
overrideprivatevirtual

Definition at line 882 of file txtfrm.cxx.

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

SwTextFrame::SwTextFrame ( SwTextNode * const  pNode,
SwFrame pSib 
)

Definition at line 767 of file txtfrm.cxx.

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

Member Function Documentation

void SwTextFrame::AdjustFollow_ ( SwTextFormatter rLine,
TextFrameIndex  nOffset,
TextFrameIndex  nStrEnd,
const sal_uInt8  nMode 
)
private
void SwTextFrame::AdjustFrame ( const SwTwips  nChgHeight,
bool  bHasToFit = false 
)
private
void SwTextFrame::AllowFollowFormat ( )
inline

Definition at line 735 of file txtfrm.hxx.

Referenced by CalcFollow(), and SwForbidFollowFormat::~SwForbidFollowFormat().

SwRect SwTextFrame::AutoSpell_ ( SwTextNode rNode,
sal_Int32  nActPos 
)
void SwTextFrame::CalcAdditionalFirstLineOffset ( )
void SwTextFrame::CalcBaseOfstForFly ( )
private
SwTwips SwTextFrame::CalcFitToContent ( )
TextFrameIndex SwTextFrame::CalcFlyPos ( SwFrameFormat const *  pSearch)

Calculates the position of FlyInContentFrames.

Definition at line 186 of file porfly.cxx.

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

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

bool SwTextFrame::CalcFollow ( TextFrameIndex  nTextOfst)
private
void SwTextFrame::CalcFootnoteFlag ( TextFrameIndex  nStop = TextFrameIndex(COMPLETE_STRING))

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

Definition at line 86 of file txtftn.cxx.

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

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

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 3533 of file txtfrm.cxx.

References SwFont::ChgPhysFnt(), EmptyHeight(), IDocumentSettingAccess::get(), SwViewOption::getBrowseMode(), SwRootFrame::GetCurrShell(), GetDoc(), OutputDevice::GetFont(), 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(), SwFlowFrame::IsUndersized(), SwLineLayout::MaxAscentDescent(), mnHeightOfLastLine, OLD_LINE_SPACING, pLastFont, SwFntObj::SetDevFont(), SwFont::SetFntChg(), OutputDevice::SetFont(), and SwCacheObj::Unlock().

Referenced by Format().

void SwTextFrame::CalcLineSpace ( )
private
bool SwTextFrame::CalcPrepFootnoteAdjust ( )
private
bool SwTextFrame::CalcPreps ( )
private
void SwTextFrame::ChangeOffset ( SwTextFrame pFrame,
TextFrameIndex  nNew 
)
private

Definition at line 990 of file frmform.cxx.

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

Referenced by FormatAdjust().

void SwTextFrame::CheckDirection ( bool  bVert)
overridevirtual
void SwTextFrame::ChgThisLines ( )
private
void SwTextFrame::ClearPara ( )

Removes the Line information from the Cache.

Definition at line 96 of file txtcache.cxx.

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

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

void SwTextFrame::CollectAutoCmplWrds ( SwTextNode rNode,
sal_Int32  nActPos 
)
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 574 of file txtftn.cxx.

References SwFootnoteBossFrame::AppendFootnote(), SwFootnoteBossFrame::ChangeFootnoteRef(), SwLayouter::CollectEndnote(), SwLayouter::Collecting(), EndNote, SwFootnoteInfo::ePos, SwFootnoteBossFrame::FindFootnote(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), FindFootnoteRef(), SwSectionFrame::FindLastContent(), SwFrame::FindSctFrame(), FTNPOS_CHAPTER, SwRootFrame::GetCurrShell(), SwDoc::GetDfltFrameFormat(), GetDoc(), SwFootnoteFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwRectFnSet::GetHeight(), SwDoc::getIDocumentLayoutAccess(), 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(), mbFootnote, mbInFootnoteConnect, mnFootnoteLine, SwFootnoteBossFrame::MoveFootnotes(), SwFootnoteBossFrame::RearrangeFootnotes(), SwFootnoteBossFrame::RemoveFootnote(), ValidateBodyFrame(), ValidateFrame(), and SwRectFnSet::YDiff().

Referenced by SwTextFormatter::NewFootnotePortion().

void SwTextFrame::DestroyImpl ( )
overrideprivatevirtual
void SwTextFrame::dumpAsXmlAttributes ( xmlTextWriterPtr  writer) const
overridevirtual
SwTwips SwTextFrame::EmptyHeight ( ) const
private
void SwTextFrame::FillCursorPos ( SwFillData rFill) const
private

Definition at line 1295 of file frmcrsr.cxx.

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

Referenced by GetCursorOfst_().

bool SwTextFrame::FillRegister ( SwTwips rRegStart,
sal_uInt16 &  rRegDiff 
)
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 1757 of file itrcrsr.cxx.

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

TextFrameIndex SwTextFrame::FindBrk ( const OUString &  rText,
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 1618 of file txtfrm.cxx.

Referenced by Format_().

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

Definition at line 550 of file txtfrm.hxx.

SwTextFrame * SwTextFrame::FindQuoVadisFrame ( )
sal_uInt16 SwTextFrame::FirstLineHeight ( ) const
bool SwTextFrame::FollowFormatAllowed ( ) const
inline

Definition at line 730 of file txtfrm.hxx.

Referenced by CalcFollow().

void SwTextFrame::ForbidFollowFormat ( )
inline

Definition at line 740 of file txtfrm.hxx.

Referenced by CalcFollow(), and SwForbidFollowFormat::SwForbidFollowFormat().

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

Reimplemented from SwFrame.

Definition at line 1750 of file frmform.cxx.

References SwRectFnSet::AddBottom(), SwTextIter::Bottom(), SwRectFnSet::BottomDist(), CalcAdditionalFirstLineOffset(), CalcBaseOfstForFly(), CalcHeightOfLastLine(), CalcPreps(), ChgThisLines(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), SwContentFrame::FindMaster(), Format_(), FormatEmpty(), SwFrame::GetAttrSet(), SwTextIter::GetEnd(), GetFormatted(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetHeight(), SwFrame::GetIndPrev(), SwAttrSet::GetKeep(), getLength(), FormatLevel::GetLevel(), GetOfst(), SwTextLineAccess::GetPara(), GetPara(), SwFrame::GetPrev(), SwRectFnSet::GetPrtBottom(), SwParaPortion::GetReformat(), SwAttrSet::GetRegister(), SwContentNode::GetSwAttrSet(), GetText(), GetTextNodeForParaProps(), SwRectFnSet::GetTopMargin(), SwFrame::GetUpper(), SfxBoolItem::GetValue(), SwRectFnSet::GetWidth(), SwFrame::Grow(), HasFootnote(), HasPara(), HideAndShowObjects(), HideHidden(), SwFrame::InvalidatePos(), SwTextLineAccess::IsAvailable(), IsEmptyMaster(), IsFieldFollow(), SwFlowFrame::IsFollow(), IsHiddenNow(), IsLocked(), SwParaPortion::IsPrepMustFit(), IsWidow(), SwCharRange::Len(), SwRectFnSet::OverStep(), PREP_FOLLOW_FOLLOWS, Prepare(), SAL_WARN, SetEmpty(), SwRectFnSet::SetHeight(), SwRectFnSet::SetLimit(), SetOfst(), SetOfst_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SetWidow(), SwRectFnSet::SetYMargins(), SwFrame::Shrink(), and ValidateFrame().

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

void SwTextFrame::Format_ ( vcl::RenderContext pRenderContext,
SwParaPortion pPara 
)
private
void SwTextFrame::Format_ ( SwTextFormatter rLine,
SwTextFormatInfo rInf,
const bool  bAdjust = false 
)
private

Definition at line 1306 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(), SwLineLayout::GetNext(), GetOfst(), 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(), SwFlowFrame::IsFollow(), SwParaPortion::IsMargin(), SwLineLayout::IsMidHyph(), SwTextFormatInfo::IsNewLine(), SwParaPortion::IsPrepMustFit(), SwLineLayout::IsRest(), SwTextFormatter::IsStop(), SwTextFormatInfo::IsStop(), IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwTextFormatter::MakeRestPortion(), SwTextFormatInfo::MaxHyph(), SwTextIter::Next(), Pos, SwTextIter::Prev(), SAL_WARN, SetFieldFollow(), SwRepaint::SetOfst(), SetOfst_(), SetRepaint(), SwTextFormatInfo::SetRest(), SwRepaint::SetRightOfst(), SwTextFormatter::SetTruncLines(), SwTextFormatter::SetUnclipped(), SSize, SwRect::Top(), SwTextIter::Top(), SwTextIter::TruncLines(), SwRect::Width(), and SwTextIter::Y().

void SwTextFrame::FormatAdjust ( SwTextFormatter rLine,
WidowsAndOrphans rFrameBreak,
TextFrameIndex  nStrLen,
const bool  bDummy 
)
private
bool SwTextFrame::FormatEmpty ( )
private
bool SwTextFrame::FormatLine ( SwTextFormatter rLine,
const bool  bPrev 
)
private
void SwTextFrame::FormatOnceMore ( SwTextFormatter rLine,
SwTextFormatInfo rInf 
)
private
bool SwTextFrame::FormatQuick ( bool  bForceQuickFormat)
private
SwTwips SwTextFrame::GetAdditionalFirstLineOffset ( ) const
inline

Definition at line 626 of file txtfrm.hxx.

Referenced by SwTextMargin::CtorInitTextMargin().

sal_uLong SwTextFrame::GetAllLines ( ) const
inline

For displaying the line numbers.

Definition at line 654 of file txtfrm.hxx.

Referenced by RecalcAllLines(), and SwExtraPainter::SwExtraPainter().

bool SwTextFrame::GetAutoPos ( SwRect rOrig,
const SwPosition rPos 
) const
SwTwips SwTextFrame::GetBaseOfstForFly ( bool  bIgnoreFlysAnchoredAtThisFrame) const
inline

Definition at line 745 of file txtfrm.hxx.

SwTwips SwTextFrame::GetBaseVertOffsetForFly ( bool  bIgnoreFlysAnchoredAtThisFrame) const
const SvxFormatBreakItem & SwTextFrame::GetBreakItem ( ) const
overridevirtual

Reimplemented from SwFrame.

Definition at line 664 of file findfrm.cxx.

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

sal_uInt16 SwTextFrame::GetCacheIdx ( ) const
inline

Definition at line 602 of file txtfrm.hxx.

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

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

Returns the screen position of rPos.

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 179 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(), GetOfst(), SwRectFnSet::GetPrtBottom(), GetText(), GetTextNodeForParaProps(), SwRectFnSet::GetTop(), SwFrame::GetUpper(), HasPara(), SwRect::Height(), IsEmpty(), SwFlowFrame::IsFollow(), IsHiddenNow(), IsLocked(), SwFrame::IsRightToLeft(), IsSwapped(), SwFlowFrame::IsUndersized(), 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(), MV_RIGHTMARGIN, SwRect::Pos(), 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(), and SwFEShell::ShouldObjectBeSelected().

bool SwTextFrame::GetCursorOfst ( 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 662 of file frmcrsr.cxx.

References GetCursorOfst_(), SwCursorMoveState::m_eState, and MV_UPDOWN.

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

bool SwTextFrame::GetCursorOfst_ ( SwPosition pPos,
const Point rPoint,
const bool  bChgFrame,
SwCursorMoveState pCMS = nullptr 
) const
private
OUString SwTextFrame::GetCurWord ( SwPosition const &  rPos) const
SwDoc& SwTextFrame::GetDoc ( )
inline

Definition at line 448 of file txtfrm.hxx.

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

SwDoc const & SwTextFrame::GetDoc ( ) const

Definition at line 1323 of file txtfrm.cxx.

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

TextFrameIndex SwTextFrame::GetDropLen ( TextFrameIndex  nWishLen) const
bool SwTextFrame::GetDropRect ( SwRect rRect) const
inline

DropCaps and selections.

Definition at line 594 of file txtfrm.hxx.

bool SwTextFrame::GetDropRect_ ( SwRect rRect) const
private
SwTextFrame * SwTextFrame::GetFollow ( )
inline
const SwTextFrame * SwTextFrame::GetFollow ( ) const
inline

Definition at line 838 of file txtfrm.hxx.

References SwContentFrame::GetFollow().

SwTwips SwTextFrame::GetFootnoteFrameHeight ( ) const
inline
SwTwips SwTextFrame::GetFootnoteFrameHeight_ ( ) const
private
SwTwips SwTextFrame::GetFootnoteLine ( const SwTextFootnote pFootnote) const
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 3348 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(), GetCursorOfst_(), GetLineCount(), GetTopOfLine(), Hyphenate(), lcl_CalcHeightOfFirstContentLine(), LeftMargin(), PaintSwFrame(), PrepareVisualMove(), RightMargin(), sw_ChangeOffset(), UnitDown_(), UnitUp_(), and WouldFit().

SwTextFrame & SwTextFrame::GetFrameAtOfst ( TextFrameIndex  nOfst)
SwTextFrame * SwTextFrame::GetFrameAtPos ( const SwPosition rPos)

Definition at line 152 of file frmcrsr.cxx.

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

Referenced by GetFrameAtPos().

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

Definition at line 847 of file txtfrm.hxx.

References GetFrameAtPos().

SwTwips SwTextFrame::GetHeightOfLastLine ( ) const
inline

Definition at line 754 of file txtfrm.hxx.

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

bool SwTextFrame::GetInfo ( SfxPoolItem rHint) const
overridevirtual
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 390 of file txtfrm.hxx.

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

LanguageType SwTextFrame::GetLangOfChar ( TextFrameIndex  nIndex,
sal_uInt16  nScript,
bool  bNoChar = false 
) const
sal_uInt16 SwTextFrame::GetLineCount ( TextFrameIndex  nPos)
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 3672 of file txtfrm.cxx.

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

Referenced by FillCursorPos().

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

Definition at line 439 of file txtfrm.hxx.

static long SwTextFrame::GetMinPrtLine ( )
inlinestatic

Definition at line 600 of file txtfrm.hxx.

Referenced by PaintExtraData(), and PaintSwFrame().

TextFrameIndex SwTextFrame::GetOfst ( ) const
inline
const SwFormatPageDesc & SwTextFrame::GetPageDescItem ( ) const
overridevirtual

Reimplemented from SwFrame.

Definition at line 669 of file findfrm.cxx.

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

Referenced by UnfloatTableButton::MouseButtonDown().

SwRect SwTextFrame::GetPaintSwRect ( )
SwParaPortion * SwTextFrame::GetPara ( )
const SwParaPortion * SwTextFrame::GetPara ( ) const
inline

Definition at line 801 of file txtfrm.hxx.

References GetPara().

sal_uInt16 SwTextFrame::GetParHeight ( ) const
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 1216 of file itratr.cxx.

References CH_BLANK, CH_BREAK, CH_TAB, 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(), OutputDevice::GetMapMode(), SwAttrIter::GetNextAttr(), SwFormatFootnote::GetNumStr(), GetOfst(), SwViewShell::GetRefDev(), SwFrame::getRootFrame(), GetText(), GetTextNodeFirst(), SwFont::GetTextSize_(), HasPara(), Size::Height(), SwPosSize::Height(), SwScriptInfo::NextScriptChg(), SwAttrHandler::PushAndChg(), RES_CHRATR_SCALEW, RES_TXTATR_ANNOTATION, RES_TXTATR_FIELD, RES_TXTATR_FTN, SwAttrIter::SeekAndChgAttrIter(), OutputDevice::SetMapMode(), SwTextAttr::SetPriorityAttr(), SwTextAttr::Which(), and Size::Width().

Referenced by SwEditShell::GetScalingOfSelectedText().

const SwScriptInfo * SwTextFrame::GetScriptInfo ( ) const

Returns the script info stored at the paraportion.

Definition at line 3885 of file txtfrm.cxx.

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

Referenced by IsHiddenNow().

css::uno::Sequence< css::style::TabStop > SwTextFrame::GetTabStopInfo ( SwTwips  CurrentPos)
overridevirtual
const OUString & SwTextFrame::GetText ( ) const

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

Definition at line 1278 of file txtfrm.cxx.

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

Referenced by SwAccessibleParagraph::_correctValues(), SwAutoFormat::AutoCorrect(), SwEditShell::AutoCorrect(), SwAutoFormat::BuildEnum(), SwAutoFormat::BuildNegIndent(), CalcHeightOfLastLine(), SwAutoFormat::CalcLevel(), checkApplyParagraphMarkFormatToNumbering(), SwAutoCorrDoc::ChgAutoCorrWord(), ChgThisLines(), SwTextSizeInfo::CtorInitTextSizeInfo(), SwAutoFormat::DelEmptyLine(), SwAutoFormat::DeleteJoinCurNextPara(), SwAutoFormat::DeleteLeadingTrailingBlanks(), SwAutoFormat::DoTable(), SwAutoFormat::DoUnderline(), SwFrame::dumpAsXml(), FillCursorPos(), SwAccessiblePortionData::FillSpecialPos(), FindAttrsImpl(), sw::FindFormatImpl(), sw::FindTextImpl(), Format(), Format_(), FormatLine(), SwAccessiblePortionData::GetAccessiblePosition(), SwAccessibleParagraph::getCharacterBounds(), GetCharRect(), SwAccessibleParagraph::GetCurrentTabStop(), GetCursorOfst_(), GetCurWord(), SwAutoFormat::GetDigitLevel(), GetDropLen(), SwEditShell::GetDropText(), GetParHeight(), SwEditShell::GetPrevAutoCorrWord(), GetScalingOfSelectedText(), SwEditShell::GetScalingOfSelectedText(), SwEditShell::GetScriptType(), GetTopOfLine(), HasSelBlanks(), IsAtStartOrEndOfFrame(), SwAutoFormat::IsBlanksInString(), SwFrame::IsCollapse(), SwAutoFormat::IsEmptyLine(), SwCursorShell::IsEndPara(), SwAutoFormat::IsEnumericChar(), SwAutoFormat::IsFirstCharCapital(), IsHiddenNow(), IsIdxInside(), SwAutoFormat::IsNoAlphaLine(), SwCursor::IsSelOvr(), SwAutoFormat::IsSentenceAtEnd(), SwFlyFrame::IsShowUnfloatButton(), lcl_CleanStr(), lcl_ErgoVadis(), lcl_UpDown(), SwFEShell::MoveAnchor(), PrepareVisualMove(), sw::ReplaceBackReferences(), SetOfst_(), SwAccessiblePortionData::Skip(), SwAccessiblePortionData::Special(), SwAutoFormat::SwAutoFormat(), SwHyperlinkIter_Impl::SwHyperlinkIter_Impl(), and SwAccessiblePortionData::Text().

static SwCache* SwTextFrame::GetTextCache ( )
inlinestatic
SwTextNode* SwTextFrame::GetTextNodeFirst ( )
inline
SwTextNode const * SwTextFrame::GetTextNodeFirst ( ) const

Definition at line 1313 of file txtfrm.cxx.

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

SwTextNode const * SwTextFrame::GetTextNodeForFirstText ( ) const
SwTextNode const * SwTextFrame::GetTextNodeForParaProps ( ) const
sal_uLong SwTextFrame::GetThisLines ( ) const
inline
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 454 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().

SwTwips SwTextFrame::GrowTst ( const SwTwips  nGrow)
inline

Test grow.

Definition at line 811 of file txtfrm.hxx.

References SwFrame::Grow().

Referenced by SwTextFrameBreak::IsInside().

SwTwips SwTextFrame::HangingMargin ( ) const
bool SwTextFrame::HasAnimation ( ) const
inline

Definition at line 522 of file txtfrm.hxx.

Referenced by StopAnimation().

bool SwTextFrame::HasBlinkPor ( ) const
inline

Definition at line 519 of file txtfrm.hxx.

Referenced by FormatEmpty().

bool SwTextFrame::HasFootnote ( ) const
inline
bool SwTextFrame::HasPara ( ) const
inline
bool SwTextFrame::HasPara_ ( ) const

Definition at line 67 of file txtcache.cxx.

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

Referenced by HasPara().

bool SwTextFrame::HasRepaint ( ) const
inline

Definition at line 516 of file txtfrm.hxx.

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 1534 of file txtfrm.cxx.

References COMPLETE_STRING, SwContentFrame::FindMaster(), SwContact::GetAnchorId(), SwScriptInfo::GetBoundsOfHiddenRange(), SwContact::GetContentAnchor(), SwRootFrame::GetCurrShell(), SwFrame::GetDrawObjs(), SwIndex::GetIndex(), SwNodeIndex::GetNode(), SwFrame::getRootFrame(), SwNode::GetTextNode(), SdrObject::GetUserCall(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), HideAndShowObjects(), i, SwFlowFrame::IsFollow(), IsHiddenNow(), SwViewOption::IsShowHiddenChar(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), SwPosition::nContent, SwPosition::nNode, and sw_HideObj().

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

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

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

Definition at line 1428 of file txtfrm.cxx.

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

Referenced by Format().

bool SwTextFrame::Hyphenate ( SwInterHyphInfoTextFrame rInf)
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 753 of file txtfrm.cxx.

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

Referenced by CalcLineSpace(), and Prepare().

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

Definition at line 1672 of file txtfrm.cxx.

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

Referenced by Prepare(), and SwClientNotify().

void SwTextFrame::InvalidateRange_ ( const SwCharRange aRange,
const long  nD = 0 
)
private
bool SwTextFrame::IsEmpty ( ) const
inline
bool SwTextFrame::IsEmptyMaster ( ) const
inline

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

Definition at line 434 of file txtfrm.hxx.

References SwContentFrame::GetFollow().

Referenced by Format().

bool SwTextFrame::IsFieldFollow ( ) const
inline

Definition at line 512 of file txtfrm.hxx.

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

bool SwTextFrame::IsFootnoteNumFrame ( ) const
inline

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

Definition at line 609 of file txtfrm.hxx.

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

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

bool SwTextFrame::IsFootnoteNumFrame_ ( ) const
private
bool SwTextFrame::IsHiddenNow ( ) const
bool SwTextFrame::IsIdxInside ( TextFrameIndex  nPos,
TextFrameIndex  nLen 
) const
private
bool SwTextFrame::IsInFootnoteConnect ( ) const
inline

Definition at line 511 of file txtfrm.hxx.

Referenced by GetFootnoteFrameHeight_().

bool SwTextFrame::IsInside ( TextFrameIndex  nPos) const
inline

Respect the Follows.

Definition at line 816 of file txtfrm.hxx.

References GetFollow(), and GetOfst().

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

bool SwTextFrame::IsJustWidow ( ) const
inline

Definition at line 508 of file txtfrm.hxx.

Referenced by WidowsAndOrphans::FindWidows().

bool SwTextFrame::IsLocked ( ) const
inline
bool SwTextFrame::IsSwapped ( ) const
inline
bool SwTextFrame::IsSymbolAt ( TextFrameIndex  nPos) const

Definition at line 190 of file itratr.cxx.

References SwAttrIter::IsSymbol().

Referenced by GetCurWord().

bool SwTextFrame::IsWidow ( ) const
inline

Definition at line 507 of file txtfrm.hxx.

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

SwContentFrame * SwTextFrame::JoinFrame ( )
bool SwTextFrame::LeftMargin ( SwPaM pPam) const
overridevirtual
void SwTextFrame::Lock ( )
inlineprivate

Definition at line 233 of file txtfrm.hxx.

Referenced by TextFrameLockGuard::TextFrameLockGuard().

void SwTextFrame::MakePos ( )
overrideprivatevirtual
void SwTextFrame::ManipOfst ( TextFrameIndex const  nNewOfst)
inline
TextFrameIndex SwTextFrame::MapModelToView ( SwTextNode const *  pNode,
sal_Int32  nIndex 
) const
TextFrameIndex SwTextFrame::MapModelToViewPos ( SwPosition const &  rPos) const
std::pair< SwTextNode *, sal_Int32 > SwTextFrame::MapViewToModel ( TextFrameIndex  nIndex) const
SwPosition SwTextFrame::MapViewToModelPos ( TextFrameIndex  nIndex) const
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 152 of file porfly.cxx.

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

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

bool SwTextFrame::PaintEmpty ( const SwRect rRect,
bool  bCheck 
) const
private
void SwTextFrame::PaintExtraData ( const SwRect rRect) const
void SwTextFrame::PaintSwFrame ( vcl::RenderContext rRenderContext,
SwRect const &  rRect,
SwPrintData const *const  pPrintData = nullptr 
) const
overridevirtual
bool SwTextFrame::Prepare ( const PrepareHint  ePrep = PREP_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 2706 of file txtfrm.cxx.

References SwFootnoteInfo::aQuoVadis, Bottom, SwRect::Bottom(), CalcFlyPos(), CalcLineSpace(), COMPLETE_STRING, SwContentFrame::FindMaster(), SwFrame::FindPageFrame(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), GetDoc(), SwFrame::GetDrawObjs(), GetFollow(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwAnchoredObject::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), SwFrame::GetIndNext(), SwFrame::GetNext(), GetOfst(), SwTextLineAccess::GetPara(), SwParaPortion::GetParLen(), SwFrame::GetPrev(), SwAttrSet::GetRegister(), SwParaPortion::GetRepaint(), SwTextAttr::GetStart(), SwContentNode::GetSwAttrSet(), SwTextFootnote::GetTextNode(), GetTextNodeForParaProps(), SwFrame::GetUpper(), SfxBoolItem::GetValue(), GetValue, SwRect::HasArea(), SwParaPortion::HasFly(), SwFlowFrame::HasFollow(), HasFootnote(), HasPara(), SwRect::Height(), i, Init(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), SwFrame::InvalidateSize(), SwFrame::InvalidateSize_(), IsEmpty(), SwFlowFrame::IsFollow(), SwParaPortion::IsFootnoteNum(), IsFootnoteNumFrame(), SwFrameAreaDefinition::isFramePrintAreaValid(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInSct(), SwFrame::IsLayoutFrame(), IsLocked(), SwTextFly::IsOn(), SwParaPortion::IsPrepMustFit(), SwFlowFrame::IsUndersized(), SwFrame::IsVertical(), lcl_ErgoVadis(), MapModelToView(), sw::MergedAttrIter::NextAttr(), PREP_ADJUST_FRM, PREP_BOSS_CHGD, PREP_CLEAR, PREP_ERGOSUM, PREP_FLY_ARRIVE, PREP_FLY_ATTR_CHG, PREP_FLY_LEAVE, PREP_FTN, PREP_FTN_GONE, PREP_MOVEFTN, PREP_MUST_FIT, PREP_POS_CHGD, PREP_QUOVADIS, PREP_REGISTER, PREP_WIDOWS, PREP_WIDOWS_ORPHANS, Prepare(), PrepWidows(), SwTextFly::Relax(), RES_TXTATR_FIELD, RES_TXTATR_FTN, SwFrame::SetCompletePaint(), SwFrame::SetInvalidVert(), SetOfst_(), SwParaPortion::SetPrep(), SwParaPortion::SetPrepAdjust(), SwParaPortion::SetPrepMustFit(), SwSortedObjs::size(), SwRect::Top(), and SwParaPortion::UpdateQuoVadis().

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

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 1038 of file frmcrsr.cxx.

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

Referenced by SwCursor::DoSetBidiLevelLeftRight().

void SwTextFrame::PrepWidows ( const sal_uInt16  nNeed,
bool  bNotify 
)
private
void SwTextFrame::RecalcAllLines ( )
void SwTextFrame::RegisterToNode ( SwTextNode rNode,
bool  isForceNodeAsFirst = false 
)
void SwTextFrame::RemoveFootnote ( TextFrameIndex  nStart,
TextFrameIndex  nLen = TextFrameIndex(COMPLETE_STRING) 
)
void SwTextFrame::repaintTextFrames ( const SwTextNode rNode)
static
void SwTextFrame::ResetBlinkPor ( ) const
inline

Definition at line 871 of file txtfrm.hxx.

References mbHasBlinkPortions.

Referenced by FormatEmpty(), and Init().

void SwTextFrame::ResetPreps ( )
private

Definition at line 1336 of file txtfrm.cxx.

References GetCacheIdx(), GetPara(), and USHRT_MAX.

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

void SwTextFrame::ResetRepaint ( ) const
inline

Definition at line 862 of file txtfrm.hxx.

References mbRepaint.

Referenced by GetPaintSwRect(), and PaintSwFrame().

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

Definition at line 520 of file txtfrm.hxx.

Referenced by SwGrfNumPortion::Paint().

void SwTextFrame::SetBlinkPor ( ) const
inline

Definition at line 867 of file txtfrm.hxx.

References mbHasBlinkPortions.

Referenced by SwBlink::Insert().

void SwTextFrame::SetCacheIdx ( const sal_uInt16  nNew)
inline

Definition at line 603 of file txtfrm.hxx.

Referenced by FormatEmpty(), and SwTextLineAccess::GetPara().

void SwTextFrame::SetEmpty ( const bool  bNew)
inlineprivate

Definition at line 237 of file txtfrm.hxx.

Referenced by Format(), and FormatEmpty().

void SwTextFrame::SetFieldFollow ( const bool  bNew)
inlineprivate

Definition at line 238 of file txtfrm.hxx.

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

void SwTextFrame::SetFootnote ( const bool  bNew)
inline

Will be moved soon.

Definition at line 588 of file txtfrm.hxx.

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

void SwTextFrame::SetJustWidow ( const bool  bNew)
inlineprivate

Definition at line 236 of file txtfrm.hxx.

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

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

Definition at line 1261 of file txtfrm.cxx.

References SwModify::Add(), and m_pMergedPara.

void SwTextFrame::SetOfst ( TextFrameIndex  nNewOfst)
inline

Definition at line 852 of file txtfrm.hxx.

References SetOfst_().

Referenced by Format(), PrepWidows(), and sw_ChangeOffset().

void SwTextFrame::SetOfst_ ( TextFrameIndex  nNewOfst)
void SwTextFrame::SetPara ( SwParaPortion pNew,
bool  bDelete = true 
)
private
void SwTextFrame::SetRepaint ( ) const
inline

Definition at line 858 of file txtfrm.hxx.

References mbRepaint.

Referenced by Format_().

static void SwTextFrame::SetTextCache ( SwCache pNew)
inlinestatic

Definition at line 598 of file txtfrm.hxx.

Referenced by TextInit_().

void SwTextFrame::SetWidow ( const bool  bNew)
inlineprivate

Definition at line 235 of file txtfrm.hxx.

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

SwRect SwTextFrame::SmartTagScan ( SwTextNode rNode)
void SwTextFrame::SplitFrame ( TextFrameIndex  nTextPos)
void SwTextFrame::StopAnimation ( OutputDevice pOut)
void SwTextFrame::SwapWidthAndHeight ( )

Swaps width and height of the text frame.

Switches width and height of the text frame.

Definition at line 423 of file txtfrm.cxx.

References SwFrameAreaDefinition::getFrameArea(), Height, SwRect::Height(), SwFrame::IsVertLR(), mbIsSwapped, SwRect::Pos(), Width, and SwRect::Width().

Referenced by Format_(), GetCursorOfst_(), Hyphenate(), SwTestFormat::SwTestFormat(), TemporarySwap::TemporarySwap(), UnitDown_(), and TemporarySwap::~TemporarySwap().

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

Definition at line 1956 of file txtfrm.cxx.

References aFrameFormatSetRange, SfxBroadcaster::Broadcast(), CalcFootnoteFlag(), CalcLineSpace(), SwFrame::CheckDirChange(), SwFlowFrame::CheckKeep(), SwAttrSetChg::ClearItem(), COL_TRANSPARENT(), COMPLETE_STRING, SwLayoutFrame::ContainsAny(), SfxItemSet::Count(), SwAttrSetChg::Count(), SwFrame::FindNext(), SwFrame::FindSctFrame(), SwSmartTagMgr::Get(), SwFrame::GetAttrSet(), SwAttrSet::GetBackground(), SvxBrushItem::GetColor(), SwRootFrame::GetCurrShell(), GetDoc(), SwFrame::GetDrawObjs(), SwUpdateAttr::getEnd(), SwUpdateAttr::getFmtAttrs(), SwFrameAreaDefinition::getFrameArea(), SvxBrushItem::GetGraphicPos(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SfxItemSet::GetItemState(), SwFrame::GetPrev(), SwFrame::getRootFrame(), SwTextAttr::GetStart(), SwUpdateAttr::getStart(), SwFormatField::GetTextField(), SwUpdateAttr::getWhichAttr(), GPOS_NONE, hasA11yRelevantAttribute(), i, SwViewShell::InvalidateAccessibleParaAttrs(), SwFrame::InvalidateLineNum(), SwFrame::InvalidateNextPrtArea(), SwFrame::InvalidatePage(), SwFrame::InvalidatePrt(), SwFrame::InvalidatePrt_(), InvalidateRange(), InvalidateRange_(), SwFrame::InvalidateSize(), isA11yRelevantAttribute(), SwFlyFrame::IsFlyInContentFrame(), SwFlowFrame::IsFollow(), IsIdxInside(), SwFrame::IsInFootnote(), IsInRange(), SwFrame::IsInSct(), IsLocked(), isPARATR(), isPARATR_LIST(), lcl_ModifyOfst(), lcl_SetScriptInval(), lcl_SetWrong(), m_pMergedPara, MapModelToView(), SwContentFrame::Modify(), sw::MoveText::nDestStart, SwDocPosUpdate::nDocPos, sw::MoveText::nLen, sw::RedlineDelText::nLen, sw::RedlineUnDelText::nLen, sw::MoveText::nSourceStart, sw::RedlineDelText::nStart, sw::RedlineUnDelText::nStart, sw::MoveText::pDestNode, PREP_ADJUST_FRM, PREP_FTN, PREP_REGISTER, Prepare(), 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_DEL_CHR, RES_DEL_TXT, RES_DOCPOS_UPDATE, RES_FMT_CHG, RES_FRAMEDIR, RES_FRMATR_END, RES_INS_TXT, 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(), SwSortedObjs::size(), SwRect::Top(), sw::UpdateMergedParaForDelete(), sw::UpdateMergedParaForInsert(), SfxPoolItem::Which(), XATTR_FILL_FIRST, and XATTR_FILL_LAST.

void SwTextFrame::SwitchHorizontalToVertical ( SwRect rRect) const
void SwTextFrame::SwitchHorizontalToVertical ( Point rPoint) const

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

Definition at line 534 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().

long SwTextFrame::SwitchHorizontalToVertical ( long  nLimit) const

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

Definition at line 572 of file txtfrm.cxx.

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

void SwTextFrame::SwitchLTRtoRTL ( SwRect rRect) const
void SwTextFrame::SwitchLTRtoRTL ( Point rPoint) const

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

Definition at line 697 of file txtfrm.cxx.

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

void SwTextFrame::SwitchRTLtoLTR ( SwRect rRect) const
inline

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

Definition at line 722 of file txtfrm.hxx.

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

void SwTextFrame::SwitchRTLtoLTR ( Point rPoint) const
inline

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

Definition at line 728 of file txtfrm.hxx.

void SwTextFrame::SwitchVerticalToHorizontal ( SwRect rRect) const
void SwTextFrame::SwitchVerticalToHorizontal ( Point rPoint) const

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

Definition at line 624 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().

long SwTextFrame::SwitchVerticalToHorizontal ( long  nLimit) const

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

Definition at line 663 of file txtfrm.cxx.

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

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 3187 of file txtfrm.cxx.

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

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

Reimplemented from SwContentFrame.

Definition at line 1266 of file frmcrsr.cxx.

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

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

Definition at line 234 of file txtfrm.hxx.

Referenced by TextFrameLockGuard::~TextFrameLockGuard().

void SwTextFrame::ValidateBodyFrame ( )
private
void SwTextFrame::ValidateFrame ( )
private
void SwTextFrame::VisitPortions ( SwPortionHandler rPH) const
bool SwTextFrame::WouldFit ( SwTwips rMaxHeight,
bool &  bSplit,
bool  bTst 
)
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 3211 of file txtfrm.cxx.

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

Referenced by TestFormat().

Friends And Related Function Documentation

bool sw_ChangeOffset ( SwTextFrame pFrame,
TextFrameIndex  nNew 
)
friend

Definition at line 109 of file frmcrsr.cxx.

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

friend class SwTestFormat
friend

Definition at line 152 of file txtfrm.hxx.

friend class SwTextIter
friend

Definition at line 151 of file txtfrm.hxx.

friend class TextFrameLockGuard
friend

Definition at line 154 of file txtfrm.hxx.

friend class WidowsAndOrphans
friend

Definition at line 153 of file txtfrm.hxx.

Member Data Documentation

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

redline merge data

Definition at line 187 of file txtfrm.hxx.

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

bool SwTextFrame::mbEmpty
private

Definition at line 217 of file txtfrm.hxx.

bool SwTextFrame::mbFieldFollow
private

Definition at line 222 of file txtfrm.hxx.

bool SwTextFrame::mbFollowFormatAllowed
private

Definition at line 230 of file txtfrm.hxx.

bool SwTextFrame::mbFootnote
private

Definition at line 219 of file txtfrm.hxx.

Referenced by ConnectFootnote().

bool SwTextFrame::mbHasAnimation
private

Definition at line 223 of file txtfrm.hxx.

bool SwTextFrame::mbHasBlinkPortions
private

Definition at line 221 of file txtfrm.hxx.

Referenced by ResetBlinkPor(), and SetBlinkPor().

bool SwTextFrame::mbInFootnoteConnect
private

Definition at line 218 of file txtfrm.hxx.

Referenced by ConnectFootnote().

bool SwTextFrame::mbIsSwapped
private
bool SwTextFrame::mbJustWidow
private

Definition at line 216 of file txtfrm.hxx.

bool SwTextFrame::mbLocked
private

Definition at line 214 of file txtfrm.hxx.

bool SwTextFrame::mbRepaint
private

Definition at line 220 of file txtfrm.hxx.

Referenced by ResetRepaint(), and SetRepaint().

bool SwTextFrame::mbWidow
private

Definition at line 215 of file txtfrm.hxx.

SwTwips SwTextFrame::mnAdditionalFirstLineOffset
private

Definition at line 184 of file txtfrm.hxx.

Referenced by CalcAdditionalFirstLineOffset().

sal_uLong SwTextFrame::mnAllLines
private

Definition at line 166 of file txtfrm.hxx.

Referenced by ChgThisLines(), and RecalcAllLines().

sal_uInt16 SwTextFrame::mnCacheIndex
private

Definition at line 191 of file txtfrm.hxx.

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

SwTwips SwTextFrame::mnFlyAnchorOfst
private

Definition at line 171 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly().

SwTwips SwTextFrame::mnFlyAnchorOfstNoWrap
private

Definition at line 173 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly().

SwTwips SwTextFrame::mnFlyAnchorVertOfstNoWrap
private

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

Definition at line 175 of file txtfrm.hxx.

Referenced by CalcBaseOfstForFly(), and GetBaseVertOffsetForFly().

SwTwips SwTextFrame::mnFootnoteLine
private

Definition at line 176 of file txtfrm.hxx.

Referenced by ConnectFootnote(), and GetFootnoteLine().

SwTwips SwTextFrame::mnHeightOfLastLine
private

Definition at line 179 of file txtfrm.hxx.

Referenced by CalcHeightOfLastLine().

TextFrameIndex SwTextFrame::mnOffset
private

Definition at line 189 of file txtfrm.hxx.

Referenced by SetOfst_().

sal_uLong SwTextFrame::mnThisLines
private

Definition at line 167 of file txtfrm.hxx.

Referenced by ChgThisLines().

constexpr long SwTextFrame::nMinPrtLine = 0
staticprivate

Definition at line 163 of file txtfrm.hxx.

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 162 of file txtfrm.hxx.

Referenced by ~SwTextFrame().


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