114 bool bAlways =
false )
const;
Text portion for the Format -> Paragraph -> Drop Caps functionality.
Used in footnotes if they break across pages, follow starts with this portion.
This portion represents an as-character anchored fly (shape, frame, etc.)
a clone of SwInterHyphInfo, but with TextFrameIndex instead of node index
Collection of SwLinePortion instances, representing one line of text.
Base class for anything that can be part of a line in the Writer layout.
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
SwExpandPortion * TryNewNoLengthPortion(SwTextFormatInfo const &rInfo)
Try to create a new portion with zero length, for an end of a hint (where there is no CH_TXTATR).
bool IsFlyInCntBase() const
void SetUnclipped(bool bNew)
std::unique_ptr< sw::MergedAttrIterByEnd > m_pByEndIter
sal_uInt16 GetFrameRstHeight() const
bool AllowRepaintOpt() const
TextFrameIndex m_nRightScanIdx
SwExpandPortion * NewFieldPortion(SwTextFormatInfo &rInf, const SwTextAttr *pHt) const
void GuessDropHeight(const sal_uInt16 nLines)
We assume that the font height doesn't change and that at first there are at least as many lines,...
SwTextPortion * NewTextPortion(SwTextFormatInfo &rInf)
sal_uInt8 m_nContentEndHyph
const sal_uInt8 & CntMidHyph() const
bool ClearIfIsFirstOfBorderMerge(SwLinePortion const *pPortion)
SwErgoSumPortion * NewErgoSumPortion(SwTextFormatInfo const &rInf) const
bool Hyphenate(SwInterHyphInfoTextFrame &rInf)
bool HasTruncLines() const
SwMultiPortion * GetMulti() const
SwTextFormatter(SwTextFrame *pTextFrame, SwTextFormatInfo *pTextFormatInf)
void SetFlyInCntBase(bool bNew=true)
SwTabPortion * NewTabPortion(SwTextFormatInfo &rInf, bool bAuto) const
const sal_uInt8 & CntEndHyph() const
void SetOnceMore(bool bNew)
void MakeDummyLine()
This function creates a Line that reaches to the other Page Margin.
void SetTruncLines(bool bNew)
void CalcFlyWidth(SwTextFormatInfo &rInf)
Calculation of the emulated right side.
void CalcUnclipped(SwTwips &rTop, SwTwips &rBottom)
void FormatReset(SwTextFormatInfo &rInf)
void CalcDropHeight(const sal_uInt16 nLines)
SwTwips CalcFitToContent_()
void CtorInitTextFormatter(SwTextFrame *pFrame, SwTextFormatInfo *pInf)
SwLinePortion * NewPortion(SwTextFormatInfo &rInf, ::std::optional< TextFrameIndex >)
void AlignFlyInCntBase(tools::Long nBaseLine) const
Set all anchored as character objects to the passed BaseLine (in Y direction).
SwDropPortion * NewDropPortion(SwTextFormatInfo &rInf)
bool ChkFlyUnderflow(SwTextFormatInfo &rInf) const
This is called after the real height of the line has been calculated Therefore it is possible,...
void CalcAscent(SwTextFormatInfo &rInf, SwLinePortion *pPor)
const SwFormatDrop * GetDropFormat() const
TextFrameIndex FormatQuoVadis(TextFrameIndex nStart)
SwLinePortion * MakeRestPortion(const SwLineLayout *pLine, TextFrameIndex nPos)
void BuildPortions(SwTextFormatInfo &rInf)
void CalcAdjustLine(SwLineLayout *pCurr)
TextFrameIndex FormatLine(TextFrameIndex nStart)
SwMultiPortion * m_pMulti
SwNumberPortion * NewNumberPortion(SwTextFormatInfo &rInf) const
SwLinePortion * WhichFirstPortion(SwTextFormatInfo &rInf)
void UpdatePos(SwLineLayout *pCurr, Point aStart, TextFrameIndex nStartIdx, bool bAlways=false) const
The position of the portions changes with the adjustment.
SwLinePortion * NewExtraPortion(SwTextFormatInfo &rInf)
bool BuildMultiPortion(SwTextFormatInfo &rInf, SwMultiPortion &rMulti)
const SwTextFormatInfo & GetInfo() const
TextFrameIndex m_nLeftScanIdx
static void MergeCharacterBorder(SwDropPortion const &rPortion)
Merge border of the drop portion with modifying the font of the portions' part.
SwFootnotePortion * NewFootnotePortion(SwTextFormatInfo &rInf, SwTextAttr *pHt)
The portion for the Footnote Reference in the Text.
SwNumberPortion * NewFootnoteNumPortion(SwTextFormatInfo const &rInf) const
The portion for the Footnote Numbering in the Footnote Area.
void CalcRealHeight(bool bNewLine=false)
const SwFormatDrop * m_pDropFormat
SwFlyCntPortion * NewFlyCntPortion(SwTextFormatInfo &rInf, SwTextAttr *pHt) const
Sets a new portion for an object anchored as character.
void FeedInf(SwTextFormatInfo &rInf) const
SwTextPortion * WhichTextPor(SwTextFormatInfo &rInf) const
SwLinePortion * m_pFirstOfBorderMerge
SwLinePortion * Underflow(SwTextFormatInfo &rInf)
void InsertPortion(SwTextFormatInfo &rInf, SwLinePortion *pPor)
SwTwips CalcBottomLine() const
SwTextFormatInfo & GetInfo()
virtual ~SwTextFormatter() override
void Insert(SwLineLayout *pLine)
sal_uInt8 m_nContentMidHyph
Represents the visualization of a paragraph.
void CntHyphens(sal_uInt8 &nEndCnt, sal_uInt8 &nMidCnt) const
This portion represents a part of the paragraph string.