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

#include <itrform2.hxx>

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

Public Member Functions

void CalcDropHeight (const sal_uInt16 nLines)
 
SwTwips CalcBottomLine () const
 
void CalcUnclipped (SwTwips &rTop, SwTwips &rBottom)
 
bool CalcOnceMore ()
 
void CtorInitTextFormatter (SwTextFrame *pFrame, SwTextFormatInfo *pInf)
 
 SwTextFormatter (SwTextFrame *pTextFrame, SwTextFormatInfo *pTextFormatInf)
 
virtual ~SwTextFormatter () override
 
TextFrameIndex FormatLine (TextFrameIndex nStart)
 
void RecalcRealHeight ()
 
bool Hyphenate (SwInterHyphInfoTextFrame &rInf)
 
TextFrameIndex FormatQuoVadis (TextFrameIndex nStart)
 
bool IsStop () const
 
bool IsNewLine () const
 
bool IsQuick () const
 
void MakeDummyLine ()
 This function creates a Line that reaches to the other Page Margin. More...
 
void Insert (SwLineLayout *pLine)
 
sal_uInt16 GetFrameRstHeight () const
 
SwTwips CalcFitToContent_ ()
 
SwLinePortionMakeRestPortion (const SwLineLayout *pLine, TextFrameIndex nPos)
 
const SwFormatDropGetDropFormat () const
 
void ClearDropFormat ()
 
SwMultiPortionGetMulti () const
 
bool IsOnceMore () const
 
void SetOnceMore (bool bNew)
 
bool HasTruncLines () const
 
void SetTruncLines (bool bNew)
 
bool IsUnclipped () const
 
void SetUnclipped (bool bNew)
 
bool IsFlyInCntBase () const
 
void SetFlyInCntBase (bool bNew=true)
 
SwTextFormatInfoGetInfo ()
 
const SwTextFormatInfoGetInfo () const
 
void InitCntHyph ()
 
const sal_uInt8CntEndHyph () const
 
const sal_uInt8CntMidHyph () const
 
sal_uInt8CntEndHyph ()
 
sal_uInt8CntMidHyph ()
 
void MergeCharacterBorder (SwLinePortion &rPortion, SwLinePortion const *pPrev, SwTextFormatInfo &rInf)
 Merge border of the line portion with setting the portion's m_bJoinBorderWidthNext and m_bJoinBorderWidthPrev members and changing the size (width, height and ascent) of the portion to get a merged border. More...
 
bool ClearIfIsFirstOfBorderMerge (SwLinePortion const *pPortion)
 
- Public Member Functions inherited from SwTextPainter
 SwTextPainter (SwTextFrame *pTextFrame, SwTextPaintInfo *pTextPaintInf)
 
void DrawTextLine (const SwRect &rPaint, SwSaveClip &rClip, const bool bUnderSz, ::std::optional< SwTaggedPDFHelper > &roTaggedLabel, ::std::optional< SwTaggedPDFHelper > &roTaggedParagraph, bool isPDFTaggingEnabled)
 
void PaintDropPortion ()
 
void PaintMultiPortion (const SwRect &rPaint, SwMultiPortion &rMulti, const SwMultiPortion *pEnvPor=nullptr)
 
void SetPaintDrop (const bool bNew)
 
bool IsPaintDrop () const
 
SwTextPaintInfoGetInfo ()
 
const SwTextPaintInfoGetInfo () const
 
- Public Member Functions inherited from SwTextCursor
 SwTextCursor (SwTextFrame *pTextFrame, SwTextSizeInfo *pTextSizeInf)
 
void GetCharRect (SwRect *, TextFrameIndex, SwCursorMoveState *=nullptr, const tools::Long nMax=0)
 
void GetEndCharRect (SwRect *, TextFrameIndex, SwCursorMoveState *=nullptr, const tools::Long nMax=0)
 
TextFrameIndex GetModelPositionForViewPoint (SwPosition *pPos, const Point &rPoint, bool bChgNode, SwCursorMoveState *=nullptr) const
 
const SwLineLayoutCharCursorToLine (TextFrameIndex const nPos)
 
SwTwips AdjustBaseLine (const SwLineLayout &rLine, const SwLinePortion *pPor, SwTwips nPorHeight=0, SwTwips nAscent=0, const bool bAutoToCentered=false) const
 
- Public Member Functions inherited from SwTextAdjuster
void CalcAdjLine (SwLineLayout *pCurr)
 
void GetAdjusted () const
 
void CalcDropAdjust ()
 
void CalcDropRepaint ()
 
- Public Member Functions inherited from SwTextMargin
 SwTextMargin (SwTextFrame *pTextFrame, SwTextSizeInfo *pTextSizeInf)
 
SwTwips GetLeftMargin () const
 
SwTwips Left () const
 
SwTwips Right () const
 
SwTwips FirstLeft () const
 
SwTwips CurrWidth () const
 
SwTwips GetLineStart () const
 
SwTwips GetLineEnd () const
 
Point GetTopLeft () const
 
bool IsOneBlock () const
 
bool IsLastBlock () const
 
bool IsLastCenter () const
 
SvxAdjust GetAdjust () const
 
sal_uInt16 GetLineWidth () const
 
SwTwips GetLeftMin () const
 
bool HasNegFirst () const
 
SwTwips GetTabLeft () const
 
sal_uInt16 GetDropLines () const
 
void SetDropLines (const sal_uInt16 nNew)
 
sal_uInt16 GetDropLeft () const
 
sal_uInt16 GetDropHeight () const
 
void SetDropHeight (const sal_uInt16 nNew)
 
sal_uInt16 GetDropDescent () const
 
void SetDropDescent (const sal_uInt16 nNew)
 
void DropInit ()
 
TextFrameIndex GetTextStart () const
 
TextFrameIndex GetTextEnd () const
 
SwTextSizeInfoGetInfo ()
 
const SwTextSizeInfoGetInfo () const
 
- Public Member Functions inherited from SwTextIter
 SwTextIter (SwTextFrame *pTextFrame, SwTextInfo *pTextInf)
 
const SwLineLayoutGetCurr () const
 
const SwLineLayoutGetNext () const
 
const SwLineLayoutGetPrev ()
 
TextFrameIndex GetLength () const
 
sal_Int32 GetLineNr () const
 
TextFrameIndex GetStart () const
 
TextFrameIndex GetEnd () const
 
SwTwips Y () const
 
SwTwips RegStart () const
 
sal_uInt16 RegDiff () const
 
bool IsRegisterOn () const
 
SwTextInfoGetInfo ()
 
const SwTextInfoGetInfo () const
 
void Top ()
 
void Bottom ()
 
const SwLineLayoutNext ()
 
const SwLineLayoutPrev ()
 
const SwLineLayoutNextLine ()
 
const SwLineLayoutPrevLine ()
 
const SwLineLayoutGetNextLine () const
 
const SwLineLayoutGetPrevLine ()
 
void CharToLine (TextFrameIndex)
 
void TwipsToLine (const SwTwips)
 
void TruncLines (bool bNoteFollow=false)
 
SwTwips GetLineHeight () const
 
void CalcAscentAndHeight (SwTwips &rAscent, SwTwips &rHeight) const
 
bool IsFirstTextLine () const
 
bool IsParaLine () const
 
const SwLineInfoGetLineInfo () const
 
SwTwips GetFirstPos () const
 
bool SeekAndChg (SwTextSizeInfo &rInf)
 
bool SeekAndChgBefore (SwTextSizeInfo &rInf)
 
bool SeekStartAndChg (SwTextSizeInfo &rInf, const bool bPara=false)
 
SwTextFrameGetTextFrame ()
 
const SwTextFrameGetTextFrame () const
 
void CntHyphens (sal_uInt8 &nEndCnt, sal_uInt8 &nMidCnt) const
 
- Public Member Functions inherited from SwAttrIter
 SwAttrIter (SwTextNode &rTextNode, SwScriptInfo &rScrInf, SwTextFrame const *const pFrame=nullptr)
 All subclasses of this always have a SwTextFrame passed to the constructor, but SwAttrIter itself may be created without a SwTextFrame in certain special cases via this ctor here. More...
 
virtual ~SwAttrIter ()
 
SwRedlineItrGetRedln ()
 
TextFrameIndex GetNextAttr () const
 
bool Seek (TextFrameIndex nPos)
 Enables the attributes used at char pos nPos in the logical font. More...
 
bool IsSymbol (TextFrameIndex nPos)
 
bool SeekAndChgAttrIter (TextFrameIndex nPos, OutputDevice *pOut)
 Executes ChgPhysFnt if Seek() returns true and change font to merge character border with neighbours. More...
 
bool SeekStartAndChgAttrIter (OutputDevice *pOut, const bool bParaFont)
 
bool MaybeHasHints () const
 
SwTextAttrGetAttr (TextFrameIndex nPos) const
 Returns the attribute for a position. More...
 
SwFontGetFnt ()
 
const SwFontGetFnt () const
 
sal_uInt8 GetPropFont () const
 
void SetPropFont (const sal_uInt8 nNew)
 
SwAttrHandlerGetAttrHandler ()
 

Static Public Member Functions

static void MergeCharacterBorder (SwDropPortion const &rPortion)
 Merge border of the drop portion with modifying the font of the portions' part. More...
 
- Static Public Member Functions inherited from SwTextCursor
static void SetRightMargin (const bool bNew)
 
static bool IsRightMargin ()
 

Private Member Functions

SwLinePortionNewPortion (SwTextFormatInfo &rInf, ::std::optional< TextFrameIndex >)
 
SwTextPortionNewTextPortion (SwTextFormatInfo &rInf)
 
SwLinePortionNewExtraPortion (SwTextFormatInfo &rInf)
 
SwTabPortionNewTabPortion (SwTextFormatInfo &rInf, bool bAuto) const
 
SwNumberPortionNewNumberPortion (SwTextFormatInfo &rInf) const
 
SwDropPortionNewDropPortion (SwTextFormatInfo &rInf)
 
SwNumberPortionNewFootnoteNumPortion (SwTextFormatInfo const &rInf) const
 The portion for the Footnote Numbering in the Footnote Area. More...
 
SwErgoSumPortionNewErgoSumPortion (SwTextFormatInfo const &rInf) const
 
SwExpandPortionNewFieldPortion (SwTextFormatInfo &rInf, const SwTextAttr *pHt) const
 
SwFootnotePortionNewFootnotePortion (SwTextFormatInfo &rInf, SwTextAttr *pHt)
 The portion for the Footnote Reference in the Text. More...
 
SwFlyCntPortionNewFlyCntPortion (SwTextFormatInfo &rInf, SwTextAttr *pHt) const
 Sets a new portion for an object anchored as character. More...
 
SwLinePortionWhichFirstPortion (SwTextFormatInfo &rInf)
 
SwTextPortionWhichTextPor (SwTextFormatInfo &rInf) const
 
SwExpandPortionTryNewNoLengthPortion (SwTextFormatInfo const &rInfo)
 Try to create a new portion with zero length, for an end of a hint (where there is no CH_TXTATR). More...
 
void BuildPortions (SwTextFormatInfo &rInf)
 
bool BuildMultiPortion (SwTextFormatInfo &rInf, SwMultiPortion &rMulti)
 
void CalcFlyWidth (SwTextFormatInfo &rInf)
 Calculation of the emulated right side. More...
 
void CalcAdjustLine (SwLineLayout *pCurr)
 
void CalcRealHeight (bool bNewLine=false)
 
void FeedInf (SwTextFormatInfo &rInf) const
 
SwLinePortionUnderflow (SwTextFormatInfo &rInf)
 
void CalcAscent (SwTextFormatInfo &rInf, SwLinePortion *pPor)
 
bool AllowRepaintOpt () const
 
void FormatReset (SwTextFormatInfo &rInf)
 
void UpdatePos (SwLineLayout *pCurr, Point aStart, TextFrameIndex nStartIdx, bool bAlways=false) const
 The position of the portions changes with the adjustment. More...
 
void AlignFlyInCntBase (tools::Long nBaseLine) const
 Set all anchored as character objects to the passed BaseLine (in Y direction). More...
 
bool ChkFlyUnderflow (SwTextFormatInfo &rInf) const
 This is called after the real height of the line has been calculated Therefore it is possible, that more flys from below intersect with the line, or that flys from above do not intersect with the line anymore. More...
 
void InsertPortion (SwTextFormatInfo &rInf, SwLinePortion *pPor)
 
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, as the DropCap-setting claims. More...
 

Private Attributes

const SwFormatDropm_pDropFormat
 
SwMultiPortionm_pMulti
 
sal_uInt8 m_nContentEndHyph
 
sal_uInt8 m_nContentMidHyph
 
TextFrameIndex m_nLeftScanIdx
 
TextFrameIndex m_nRightScanIdx
 
bool m_bOnceMore: 1
 
bool m_bFlyInContentBase: 1
 
bool m_bTruncLines: 1
 
bool m_bUnclipped: 1
 
std::unique_ptr< sw::MergedAttrIterByEndm_pByEndIter
 
SwLinePortionm_pFirstOfBorderMerge
 

Additional Inherited Members

- Protected Member Functions inherited from SwTextPainter
void CtorInitTextPainter (SwTextFrame *pFrame, SwTextPaintInfo *pInf)
 
 SwTextPainter (SwTextNode const *pTextNode)
 
- Protected Member Functions inherited from SwTextCursor
void CtorInitTextCursor (SwTextFrame *pFrame, SwTextSizeInfo *pInf)
 
 SwTextCursor (SwTextNode const *pTextNode)
 
void AddExtraBlankWidth ()
 
- Protected Member Functions inherited from SwTextAdjuster
 SwTextAdjuster (SwTextNode const *pTextNode)
 
void CalcNewBlock (SwLineLayout *pCurr, const SwLinePortion *pStopAt, SwTwips nReal=0, bool bSkipKashida=false)
 
SwTwips CalcKanaAdj (SwLineLayout *pCurr)
 
- Protected Member Functions inherited from SwTextMargin
void Right (const SwTwips nNew)
 
void CtorInitTextMargin (SwTextFrame *pFrame, SwTextSizeInfo *pInf)
 
 SwTextMargin (SwTextNode const *pTextNode)
 
- Protected Member Functions inherited from SwTextIter
SwLineLayoutGetPrev_ ()
 
void Init ()
 
void CtorInitTextIter (SwTextFrame *pFrame, SwTextInfo *pInf)
 
 SwTextIter (SwTextNode const *pTextNode)
 
- Protected Member Functions inherited from SwAttrIter
void Chg (SwTextAttr const *pHt)
 
void Rst (SwTextAttr const *pHt)
 
void CtorInitAttrIter (SwTextNode &rTextNode, SwScriptInfo &rScrInf, SwTextFrame const *pFrame=nullptr)
 
 SwAttrIter (SwTextNode const *pTextNode)
 
- Protected Attributes inherited from SwTextIter
SwLineInfo m_aLineInf
 
SwTextFramem_pFrame
 
SwTextInfom_pInf
 
SwLineLayoutm_pCurr
 
SwLineLayoutm_pPrev
 
SwTwips m_nFrameStart
 
SwTwips m_nY
 
SwTwips m_nRegStart
 
TextFrameIndex m_nStart
 
sal_uInt16 m_nRegDiff
 
sal_Int32 m_nLineNr
 
bool m_bPrev: 1
 
bool m_bRegisterOn: 1
 
bool m_bOneBlock: 1
 
bool m_bLastBlock: 1
 
bool m_bLastCenter: 1
 
- Protected Attributes inherited from SwAttrIter
SwAttrHandler m_aAttrHandler
 
SwViewShellm_pViewShell
 
SwFontm_pFont
 
SwScriptInfom_pScriptInfo
 

Detailed Description

Definition at line 33 of file itrform2.hxx.

Constructor & Destructor Documentation

◆ SwTextFormatter()

SwTextFormatter::SwTextFormatter ( SwTextFrame pTextFrame,
SwTextFormatInfo pTextFormatInf 
)
inline

Definition at line 153 of file itrform2.hxx.

References CtorInitTextFormatter().

◆ ~SwTextFormatter()

SwTextFormatter::~SwTextFormatter ( )
overridevirtual

Definition at line 118 of file itrform2.cxx.

References GetInfo(), SwTextFormatInfo::GetRest(), and SwTextFormatInfo::SetRest().

Member Function Documentation

◆ AlignFlyInCntBase()

void SwTextFormatter::AlignFlyInCntBase ( tools::Long  nBaseLine) const
private

◆ AllowRepaintOpt()

bool SwTextFormatter::AllowRepaintOpt ( ) const
private

◆ BuildMultiPortion()

bool SwTextFormatter::BuildMultiPortion ( SwTextFormatInfo rInf,
SwMultiPortion rMulti 
)
private

Definition at line 1907 of file pormulti.cxx.

References SwMultiPortion::ActualizeTabulator(), SwLinePortion::AddPrtWidth(), Bookmark, SwDoubleLinePortion::BracketWidth(), BuildPortions(), SwTextAdjuster::CalcNewBlock(), SwMultiPortion::CalcSize(), Clone(), SwFootnoteBossFrame::FindBodyCont(), SwLinePortion::FindLastPortion(), SwFrame::FindPageFrame(), SwLinePortion::FormatEOL(), FormatReset(), SwTextMargin::GetAdjust(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetCachedVclData(), SwMultiPortion::GetDirection(), SwFieldPortion::GetExp(), SwLineLayout::GetFirstPortion(), SwTextSizeInfo::GetFont(), SwTableLine::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwFormat::GetFrameSize(), GetGridItem(), SwTextGridItem::GetGridType(), SwFormatFrameSize::GetHeightSizeType(), SwTextSizeInfo::GetIdx(), GetInfo(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwBidiPortion::GetLevel(), SwDoubleLinePortion::GetLineDiff(), SwTextFormatInfo::GetLineStart(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwTextPaintInfo::GetPaintOfst(), SwTextPaintInfo::GetPos(), SwAttrIter::GetPropFont(), SwTextFormatInfo::GetRest(), SwTextFormatInfo::GetRoot(), SwMultiPortion::GetRoot(), SwTextGridItem::GetRubyTextBelow(), SwTextIter::GetStart(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwFrame::GetUpper(), SwLinePortion::GetWhichPor(), GRID_LINES_CHARS, SwMultiPortion::HasBrackets(), SwMultiPortion::HasRotation(), SwPosSize::Height(), SwLineLayout::Height(), SwRect::Height(), SwLinePortion::InFieldGrp(), SwMultiPortion::IsBidi(), SwFrame::IsCellFrame(), SwMultiPortion::IsDouble(), SwTextFormatInfo::IsFootnoteDone(), SwMultiPortion::IsFormatted(), SwLinePortion::IsHolePortion(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwTextFormatInfo::IsNumDone(), SwFrame::IsRightToLeft(), SwTextSizeInfo::IsRuby(), SwMultiPortion::IsRuby(), SwTextFormatInfo::IsStop(), SwFrame::IsVertical(), lcl_ExtractFieldFollow(), lcl_TruncateMultiPortion(), SwTextIter::m_nStart, SwTextIter::m_pCurr, SwTextIter::m_pFrame, m_pMulti, SwLayoutModeModifier::Modify(), SwMultiPortion::OnRight(), SwMultiPortion::OnTop(), SwTextFormatInfo::RealWidth(), SwTextIter::SeekAndChg(), SwTextIter::SeekAndChgBefore(), SwLinePortion::SetAscent(), SwTextSizeInfo::SetCachedVclData(), SwTextSizeInfo::SetFirstMulti(), SwFieldPortion::SetFollow(), SwMultiPortion::SetFollowField(), SwTextFormatInfo::SetFootnoteDone(), SwMultiPortion::SetFormatted(), SwTextSizeInfo::SetIdx(), SwTextFormatInfo::SetLast(), SwLinePortion::SetLen(), SwTextSizeInfo::SetMulti(), SwLineLayout::SetNext(), SwLinePortion::SetNextPortion(), SwTextFormatInfo::SetNumDone(), SwTextPaintInfo::SetPaintOfst(), SwAttrIter::SetPropFont(), SwLineLayout::SetRealHeight(), SwTextFormatInfo::SetRest(), SwTextSizeInfo::SetRuby(), SwTextSizeInfo::SetSnapToGrid(), SwTextFormatInfo::SetStop(), SwTextSizeInfo::SetText(), SwTextSizeInfo::SnapToGrid(), Variable, SwTextFormatInfo::Width(), SwPosSize::Width(), SwRect::Width(), Point::X(), and SwTextPaintInfo::X().

Referenced by BuildPortions().

◆ BuildPortions()

void SwTextFormatter::BuildPortions ( SwTextFormatInfo rInf)
private

Definition at line 377 of file itrform2.cxx.

References BuildMultiPortion(), CalcAscent(), CalcFlyWidth(), SwTextFormatInfo::CheckCurrentPosBookmark(), SwTextFormatInfo::ChkNoHyph(), CJK, ClearFly(), SwTextFormatInfo::ClrUnderflow(), CntEndHyph(), CntMidHyph(), COMPLETE_STRING, SwFootnoteBossFrame::FindBodyCont(), SwLinePortion::FindLastPortion(), SwFrame::FindPageFrame(), SwTextFormatInfo::ForcedLeftMargin(), SwLinePortion::Format(), SwLinePortion::FormatEOL(), SwTabPortion::FormatEOL(), SwFont::GetActual(), SwFormatAnchor::GetAnchorId(), GetAppCharClass(), SwLinePortion::GetAscent(), SwFormatAnchor::GetContentAnchor(), SwTextFrame::GetDoc(), SwFixPortion::GetFix(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), GetFont(), GetGridItem(), SwTextGridItem::GetGridType(), GetGridWidth(), SwFont::GetHeight(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextFormatInfo::GetLastTab(), SwTextMargin::GetLeftMargin(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwTextPaintInfo::GetPaintOfst(), SwRectFnSet::GetPrtLeft(), SwTextFormatInfo::GetReformatStart(), SwTextFormatInfo::GetRest(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwTextIter::GetTextFrame(), SwFont::GetUnderline(), SwFrame::GetUpper(), GRID_LINES_CHARS, SwMultiPortion::HasFlyInContent(), SwTextSizeInfo::HasScriptSpace(), SwLineLayout::Height(), i, SwLinePortion::InFieldGrp(), SwLinePortion::InFixMargGrp(), SwLinePortion::InNumberGrp(), InsertPortion(), SwLinePortion::InTabGrp(), SwLinePortion::InTextGrp(), SwMultiPortion::IsBidi(), SwLinePortion::IsDropPortion(), SwLinePortion::IsFlyCntPortion(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsGrfNumPortion(), SwFieldPortion::IsHide(), SwLinePortion::IsKernPortion(), CharClass::isLetterNumeric(), SwLinePortion::IsMultiPortion(), SwTextSizeInfo::IsRuby(), SwTextGridItem::IsSnapToChars(), SwTextFormatInfo::IsStop(), SwLinePortion::IsTabLeftPortion(), SwTextFormatInfo::IsUnderflow(), IsUnderlineBreak(), SwRectFnSet::IsVert(), SwTextFormatInfo::LastKernPortion(), LINESTYLE_NONE, SwTextIter::m_pCurr, SwAttrIter::m_pFont, SwTextIter::m_pFrame, m_pMulti, SwAttrIter::m_pScriptInfo, MergeCharacterBorder(), min(), NewPortion(), SwScriptInfo::NextScriptChg(), SwScriptInfo::ScriptType(), SwTextIter::SeekAndChg(), SwLineLayout::SetFly(), SetFlyInCntBase(), SwTextFormatInfo::SetFull(), SwTextFormatInfo::SetLast(), SwLinePortion::SetNextPortion(), SwTextFormatInfo::SetNumDone(), SwTextPaintInfo::SetPaintOfst(), SwTextFormatInfo::SetTabOverflow(), SwTextSizeInfo::SnapToGrid(), SwTextFrame::SwitchHorizontalToVertical(), SwScriptInfo::WhichFont(), SwTextFormatInfo::Width(), SwPosSize::Width(), SwTextPaintInfo::X(), Point::Y(), SwTextPaintInfo::Y(), and SwTextIter::Y().

Referenced by BuildMultiPortion(), CalcFitToContent_(), and FormatLine().

◆ CalcAdjustLine()

void SwTextFormatter::CalcAdjustLine ( SwLineLayout pCurr)
private

◆ CalcAscent()

void SwTextFormatter::CalcAscent ( SwTextFormatInfo rInf,
SwLinePortion pPor 
)
private

◆ CalcBottomLine()

SwTwips SwTextFormatter::CalcBottomLine ( ) const

◆ CalcDropHeight()

void SwTextFormatter::CalcDropHeight ( const sal_uInt16  nLines)

◆ CalcFitToContent_()

SwTwips SwTextFormatter::CalcFitToContent_ ( )

◆ CalcFlyWidth()

void SwTextFormatter::CalcFlyWidth ( SwTextFormatInfo rInf)
private

Calculation of the emulated right side.

Determines the next object, that reaches into the rest of the line and constructs the appropriate FlyPortion. SwTextFly::GetFrame(const SwRect&, bool) will be needed for this.

The right edge can be shortened by flys

Definition at line 2672 of file itrform2.cxx.

References abs(), ADD_VERTICAL_FLY_OFFSETS, SwRect::AddBottom(), SwRect::Bottom(), CalcRealHeight(), SwFootnoteBossFrame::FindBodyCont(), SwFrame::FindPageFrame(), SwTextFormatInfo::ForcedLeftMargin(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextFrame::GetDoc(), SwTextMargin::GetDropLeft(), SwFixPortion::GetFix(), SwTextFormatInfo::GetFly(), SwTextFly::GetFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetGridItem(), GetGridWidth(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextMargin::GetLeftMargin(), SwTextMargin::GetLeftMin(), SwTextFormatInfo::GetLineHeight(), SwTextFormatInfo::GetLineNetHeight(), SwTextFrame::GetLowerMarginForFlyIntersect(), GetMulti(), SwTextFly::GetNextTop(), SwRectFnSet::GetPrtLeft(), SwLineLayout::GetRealHeight(), SwTextSizeInfo::GetText(), SwTextPaintInfo::GetTextFly(), SwTextSizeInfo::GetTextFrame(), SwTextIter::GetTextFrame(), SwRect::HasArea(), SwTextMargin::HasNegFirst(), Height, SwPosSize::Height(), SwRect::Height(), i, SwRect::Intersection(), SwRect::IsEmpty(), SwTextIter::IsFirstTextLine(), SwTextFormatInfo::IsIgnoreFly(), SwTextFly::IsOn(), SwFrame::IsRightToLeft(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), SwTextMargin::Left(), SwRect::Left(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwRect::Overlaps(), SwRect::Pos(), SwTextFormatInfo::RealWidth(), SwTextMargin::Right(), SwRect::Right(), SAL_MAX_UINT16, SwLinePortion::SetAscent(), SwLineLayout::SetDummy(), SwTextFormatInfo::SetFly(), SwLineLayout::SetForcedLeftMargin(), SwTextFormatInfo::SetNewLine(), SwRect::SubTop(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), SwTextFrame::SwitchRTLtoLTR(), SwTextFrame::SwitchVerticalToHorizontal(), TEXT_MIN_SMALL, SwRect::Top(), SwTextFormatInfo::Width(), SwRect::Width(), SwTextPaintInfo::X(), Point::Y(), and SwTextIter::Y().

Referenced by BuildPortions(), NewPortion(), and Underflow().

◆ CalcOnceMore()

bool SwTextFormatter::CalcOnceMore ( )

◆ CalcRealHeight()

void SwTextFormatter::CalcRealHeight ( bool  bNewLine = false)
private

◆ CalcUnclipped()

void SwTextFormatter::CalcUnclipped ( SwTwips rTop,
SwTwips rBottom 
)

◆ ChkFlyUnderflow()

bool SwTextFormatter::ChkFlyUnderflow ( SwTextFormatInfo rInf) const
private

◆ ClearDropFormat()

void SwTextFormatter::ClearDropFormat ( )
inline

Definition at line 197 of file itrform2.hxx.

References m_pDropFormat.

Referenced by NewDropPortion().

◆ ClearIfIsFirstOfBorderMerge()

bool SwTextFormatter::ClearIfIsFirstOfBorderMerge ( SwLinePortion const *  pPortion)

Definition at line 158 of file itrform2.cxx.

References m_pFirstOfBorderMerge.

Referenced by SwLineLayout::CalcLine(), and Underflow().

◆ CntEndHyph() [1/2]

sal_uInt8 & SwTextFormatter::CntEndHyph ( )
inline

Definition at line 221 of file itrform2.hxx.

References m_nContentEndHyph.

◆ CntEndHyph() [2/2]

const sal_uInt8 & SwTextFormatter::CntEndHyph ( ) const
inline

Definition at line 219 of file itrform2.hxx.

References m_nContentEndHyph.

Referenced by BuildPortions(), FeedInf(), and SwTextFrame::Format_().

◆ CntMidHyph() [1/2]

sal_uInt8 & SwTextFormatter::CntMidHyph ( )
inline

Definition at line 222 of file itrform2.hxx.

References m_nContentMidHyph.

◆ CntMidHyph() [2/2]

const sal_uInt8 & SwTextFormatter::CntMidHyph ( ) const
inline

Definition at line 220 of file itrform2.hxx.

References m_nContentMidHyph.

Referenced by BuildPortions(), FeedInf(), and SwTextFrame::Format_().

◆ CtorInitTextFormatter()

void SwTextFormatter::CtorInitTextFormatter ( SwTextFrame pFrame,
SwTextFormatInfo pInf 
)

◆ FeedInf()

void SwTextFormatter::FeedInf ( SwTextFormatInfo rInf) const
private

◆ FormatLine()

TextFrameIndex SwTextFormatter::FormatLine ( TextFrameIndex  nStart)

Definition at line 1878 of file itrform2.cxx.

References AlignFlyInCntBase(), AllowRepaintOpt(), BuildPortions(), CalcAdjustLine(), SwTextIter::CalcAscentAndHeight(), SwTextAdjuster::CalcKanaAdj(), SwLineLayout::CalcLine(), CalcRealHeight(), SwTextFormatInfo::CheckFootnotePortion(), ChkFlyUnderflow(), SwTextMargin::DropInit(), FormatReset(), sw::proofreadingiterator::get(), SwLinePortion::GetAscent(), SwLineLayout::GetFirstPortion(), GetFrameRstHeight(), GetInfo(), SwLinePortion::GetLen(), GetLen(), getLength(), SwTextIter::GetLineHeight(), SwLinePortion::GetNextPortion(), SwTextInfo::GetParaPortion(), SwLineLayout::GetRealHeight(), SwParaPortion::GetReformat(), SwTextFormatInfo::GetRest(), SwTextIter::GetStart(), SwTextPaintInfo::GetTextFly(), SwTextIter::GetTextFrame(), SwTextMargin::GetTopLeft(), SwTextFrame::HasNonLastSplitFlyDrawObj(), SwPosSize::Height(), SwLineLayout::Height(), SwLinePortion::InFieldGrp(), SwTextFormatInfo::IsArrowDone(), SwTextFormatInfo::IsErgoDone(), SwLineLayout::IsFly(), SwLinePortion::IsFlyCntPortion(), IsFlyInCntBase(), SwLinePortion::IsFlyPortion(), SwTextFormatInfo::IsFootnoteDone(), SwLinePortion::IsFootnotePortion(), IsNewLine(), SwTextFormatInfo::IsNumDone(), SwTextFly::IsOn(), IsQuick(), IsStop(), SwTextFrame::IsSwapped(), SwFrame::IsVertical(), SwCharRange::LeftMove(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwTextSizeInfo::ResetMaxWidthDiff(), SwTextFormatInfo::SetArrowDone(), SwTextFormatInfo::SetDropInit(), SwLineLayout::SetEndHyph(), SwTextFormatInfo::SetErgoDone(), SetFlyInCntBase(), SwTextFormatInfo::SetFootnoteDone(), SwTextSizeInfo::SetFootnoteInside(), SwTextSizeInfo::SetLen(), SwLinePortion::SetLen(), SwTextFormatInfo::SetLineHeight(), SwTextFormatInfo::SetLineNetHeight(), SwLineLayout::SetMidHyph(), SwTextFormatInfo::SetNumDone(), SwTextSizeInfo::SetOtherThanFootnoteInside(), SwTextPaintInfo::SetPaintOfst(), SwLineLayout::SetRealHeight(), SwTextFormatInfo::SetRest(), SwTextFormatInfo::SetShift(), TAB_OVER_MARGIN, SwLinePortion::Truncate(), UpdatePos(), SwPosSize::Width(), and SwTextIter::Y().

Referenced by SwTextFrame::FormatLine(), SwTextFrame::FormatQuick(), FormatQuoVadis(), and Hyphenate().

◆ FormatQuoVadis()

TextFrameIndex SwTextFormatter::FormatQuoVadis ( TextFrameIndex  nStart)

Definition at line 1072 of file txtftn.cxx.

References SwLinePortion::Append(), CalcAdjustLine(), CH_BREAK, FeedInf(), SwFrame::FindColFrame(), SwFrame::FindFootnoteFrame(), SwLinePortion::FindLastPortion(), SwFrame::FindPageFrame(), SwLinePortion::Format(), SwQuoVadisPortion::Format(), FormatLine(), SwTextMargin::GetAdjust(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetAscent(), SwFootnoteFrame::GetAttr(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwLineLayout::GetFirstPortion(), SwTextFrame::GetFollow(), SwFootnoteFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), GetInfo(), SwLinePortion::GetLen(), SwFrame::GetNext(), SwLinePortion::GetNextPortion(), SwAttrIter::GetRedln(), SwTextFormatInfo::GetRest(), SwTextIter::GetTextFrame(), SwTextSizeInfo::GetTextHeight(), SwFrame::GetUpper(), SwLineLayout::HasRedline(), SwPosSize::Height(), SwFrame::ImplFindFootnoteFrame(), SwFormatFootnote::IsEndNote(), SwLinePortion::IsFlyPortion(), SwFrame::IsInFootnote(), SwLinePortion::IsMarginPortion(), SwLinePortion::IsQuoVadisPortion(), SwTextFrame::IsSwapped(), SwFrame::IsVertical(), lcl_GetPageNumber(), SwTextFormatInfo::Left(), SwFootnoteInfo::m_aQuoVadis, SwTextIter::m_nStart, SwTextIter::m_pCurr, SwAttrIter::m_pFont, SwTextIter::m_pFrame, sw::MapViewToModel(), SwLinePortion::Move(), pos, SwTextFormatInfo::RealWidth(), SwTextMargin::Right(), SwRedlineItr::Seek(), SwTextIter::SeekStartAndChg(), SwLinePortion::SetAscent(), SwGluePortion::SetFixWidth(), SwLinePortion::SetLen(), SwLinePortion::SetNextPortion(), SwTextFormatInfo::SetRest(), swap(), Width, and SwPosSize::Width().

Referenced by SwTextFrame::AdjustFollow_().

◆ FormatReset()

void SwTextFormatter::FormatReset ( SwTextFormatInfo rInf)
private

◆ GetDropFormat()

const SwFormatDrop * SwTextFormatter::GetDropFormat ( ) const
inline

◆ GetFrameRstHeight()

sal_uInt16 SwTextFormatter::GetFrameRstHeight ( ) const

◆ GetInfo() [1/2]

SwTextFormatInfo & SwTextFormatter::GetInfo ( )
inline

◆ GetInfo() [2/2]

const SwTextFormatInfo & SwTextFormatter::GetInfo ( ) const
inline

Definition at line 215 of file itrform2.hxx.

References SwTextIter::GetInfo().

◆ GetMulti()

SwMultiPortion * SwTextFormatter::GetMulti ( ) const
inline

Definition at line 199 of file itrform2.hxx.

References m_pMulti.

Referenced by AlignFlyInCntBase(), CalcFlyWidth(), NewFlyCntPortion(), and UpdatePos().

◆ GuessDropHeight()

void SwTextFormatter::GuessDropHeight ( const sal_uInt16  nLines)
private

We assume that the font height doesn't change and that at first there are at least as many lines, as the DropCap-setting claims.

Definition at line 546 of file txtdrop.cxx.

References SwTextIter::CalcAscentAndHeight(), CalcRealHeight(), SwTextMargin::GetDropDescent(), SwTextMargin::GetDropLines(), SwTextMargin::SetDropDescent(), SwTextMargin::SetDropHeight(), and SwTextMargin::SetDropLines().

Referenced by NewDropPortion().

◆ HasTruncLines()

bool SwTextFormatter::HasTruncLines ( ) const
inline

Definition at line 204 of file itrform2.hxx.

References m_bTruncLines.

Referenced by CalcBottomLine().

◆ Hyphenate()

bool SwTextFormatter::Hyphenate ( SwInterHyphInfoTextFrame rInf)

◆ InitCntHyph()

void SwTextFormatter::InitCntHyph ( )
inline

Definition at line 218 of file itrform2.hxx.

References SwTextIter::CntHyphens(), m_nContentEndHyph, and m_nContentMidHyph.

Referenced by SwTextFrame::Format_(), and Hyphenate().

◆ Insert()

void SwTextFormatter::Insert ( SwLineLayout pLine)

◆ InsertPortion()

void SwTextFormatter::InsertPortion ( SwTextFormatInfo rInf,
SwLinePortion pPor 
)
private

◆ IsFlyInCntBase()

bool SwTextFormatter::IsFlyInCntBase ( ) const
inline

◆ IsNewLine()

bool SwTextFormatter::IsNewLine ( ) const
inline

Definition at line 177 of file itrform2.hxx.

References GetInfo(), and SwTextFormatInfo::IsNewLine().

Referenced by SwTextFrame::FormatLine(), and FormatLine().

◆ IsOnceMore()

bool SwTextFormatter::IsOnceMore ( ) const
inline

Definition at line 201 of file itrform2.hxx.

References m_bOnceMore.

Referenced by SwTextFrame::FormatImpl(), SwTextFrame::FormatOnceMore(), and NewDropPortion().

◆ IsQuick()

bool SwTextFormatter::IsQuick ( ) const
inline

Definition at line 180 of file itrform2.hxx.

References GetInfo(), and SwTextFormatInfo::IsQuick().

Referenced by FormatLine(), NewFlyCntPortion(), and UpdatePos().

◆ IsStop()

bool SwTextFormatter::IsStop ( ) const
inline

◆ IsUnclipped()

bool SwTextFormatter::IsUnclipped ( ) const
inline

Definition at line 207 of file itrform2.hxx.

References m_bUnclipped.

Referenced by SwTextFrame::FormatLine().

◆ MakeDummyLine()

void SwTextFormatter::MakeDummyLine ( )

This function creates a Line that reaches to the other Page Margin.

DummyLines or DummyPortions make sure, that oscillations stop, because there's no way to flow back. They are used for Footnotes in paragraph-bound Frames and for Footnote oscillations

Definition at line 1276 of file txtftn.cxx.

References GetFrameRstHeight(), SwLineLayout::Height(), Insert(), SwTextIter::m_pCurr, SwTextIter::Next(), and SwLinePortion::SetAscent().

Referenced by SwTextFrame::FormatAdjust().

◆ MakeRestPortion()

SwLinePortion * SwTextFormatter::MakeRestPortion ( const SwLineLayout pLine,
TextFrameIndex  nPos 
)

◆ MergeCharacterBorder() [1/2]

void SwTextFormatter::MergeCharacterBorder ( SwDropPortion const &  rPortion)
static

Merge border of the drop portion with modifying the font of the portions' part.

Removing left or right border.

Parameters
rPortiondrop portion for merge

Definition at line 3025 of file itrform2.cxx.

References SwDropPortionPart::GetFollow(), SwDropPortionPart::GetFont(), SwDropPortion::GetLines(), SwDropPortion::GetPart(), SwDropPortionPart::SetJoinBorderWithNext(), and SwDropPortionPart::SetJoinBorderWithPrev().

Referenced by BuildPortions(), and InsertPortion().

◆ MergeCharacterBorder() [2/2]

void SwTextFormatter::MergeCharacterBorder ( SwLinePortion rPortion,
SwLinePortion const *  pPrev,
SwTextFormatInfo rInf 
)

◆ NewDropPortion()

SwDropPortion * SwTextFormatter::NewDropPortion ( SwTextFormatInfo rInf)
private

◆ NewErgoSumPortion()

SwErgoSumPortion * SwTextFormatter::NewErgoSumPortion ( SwTextFormatInfo const &  rInf) const
private

◆ NewExtraPortion()

SwLinePortion * SwTextFormatter::NewExtraPortion ( SwTextFormatInfo rInf)
private

◆ NewFieldPortion()

SwExpandPortion * SwTextFormatter::NewFieldPortion ( SwTextFormatInfo rInf,
const SwTextAttr pHt 
) const
private

◆ NewFlyCntPortion()

SwFlyCntPortion * SwTextFormatter::NewFlyCntPortion ( SwTextFormatInfo rInf,
SwTextAttr pHt 
) const
private

◆ NewFootnoteNumPortion()

SwNumberPortion * SwTextFormatter::NewFootnoteNumPortion ( SwTextFormatInfo const &  rInf) const
private

◆ NewFootnotePortion()

SwFootnotePortion * SwTextFormatter::NewFootnotePortion ( SwTextFormatInfo rInf,
SwTextAttr pHt 
)
private

◆ NewNumberPortion()

SwNumberPortion * SwTextFormatter::NewNumberPortion ( SwTextFormatInfo rInf) const
private

Definition at line 584 of file txtfld.cxx.

References checkApplyParagraphMarkFormatToNumbering(), CJK, CTL, DO_NOT_RESET_PARA_ATTRS_FOR_NUM_FONT, IDocumentSettingAccess::get(), SwNumRule::Get(), SwTextNode::GetActualListLevel(), SwLinePortion::GetAscent(), SwFormat::GetAttrSet(), SwTextAttr::GetAutoFormat(), SvxNumberFormat::GetBrush(), SvxNumberFormat::GetBulletChar(), SvxNumberFormat::GetBulletFont(), SwTextFormatInfo::GetCharAttr(), SwNumFormat::GetCharFormat(), SvxNumberFormat::GetCharTextDistance(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwNumFormat::GetGraphicOrientation(), SvxNumberFormat::GetGraphicSize(), SwDoc::getIDocumentRedlineAccess(), SwNode::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextNode::GetLabelFollowedBy(), SwTextFormatInfo::GetLast(), SwViewShell::GetLayout(), SvxNumberFormat::GetNumAdjust(), SvxNumberType::GetNumberingType(), SwTextNode::GetNumRule(), SwTextNode::GetNumString(), SvxNumberFormat::GetPositionAndSpaceMode(), SwTextNode::GetpSwpHints(), IDocumentRedlineAccess::GetRedlineTable(), SwFrame::getRootFrame(), SwTextAttr::GetStart(), SwFormatAutoFormat::GetStyleHandle(), SwTextNode::GetText(), SwTextSizeInfo::GetTextFrame(), SwTextIter::GetTextFrame(), SwTextFrame::GetTextNodeForParaProps(), SwTextInfo::GetTextStart(), SwTextSizeInfo::GetVsh(), SwPosSize::Height(), HIDDEN, i, SwTextNode::IsCountedInList(), SwRootFrame::IsHideRedlines(), SwTextNode::IsNumbered(), SwTextFormatInfo::IsNumDone(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), ITALIC_NONE, SvxNumberFormat::LABEL_ALIGNMENT, Latin, lcl_setRedlineAttr(), LINESTYLE_NONE, SwTextIter::m_nStart, SwTextIter::m_pFrame, MAXLEVEL, NO_NUMBERING_SHOW_FOLLOWBY, NON_PRINTING_CHARACTER_COLOR, ORIGTEXT, RES_TXTATR_AUTOFMT(), SwRedlineTable::size(), SVX_NUM_BITMAP, SVX_NUM_CHAR_SPECIAL, WEIGHT_NORMAL, and SwTextAttr::Which().

Referenced by WhichFirstPortion().

◆ NewPortion()

SwLinePortion * SwTextFormatter::NewPortion ( SwTextFormatInfo rInf,
::std::optional< TextFrameIndex oMovedFlyIndex 
)
private

Definition at line 1567 of file itrform2.cxx.

References Bidi, CalcAscent(), CalcFlyWidth(), CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, CHAR_WJ, CHAR_ZWSP, SwTextFormatInfo::ClearHookChar(), DIR_BOTTOM2TOP, DIR_TOP2BOTTOM, SwTabPortion::Format(), sw::proofreadingiterator::get(), SwEndNoteInfo::GetAnchorCharFormat(), SwLinePortion::GetAscent(), SwAttrIter::GetAttr(), SwTextSizeInfo::GetChar(), SwTextIter::GetCurr(), SwTextFrame::GetDoc(), SwDoc::GetEndNoteInfo(), SwFixPortion::GetFix(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), GetFont(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwTextFormatInfo::GetHookChar(), SwTextSizeInfo::GetIdx(), SfxItemSet::GetItemIfSet(), SwTextFormatInfo::GetLast(), SwTextFormatInfo::GetLastTab(), SwLinePortion::GetLen(), SwTextSizeInfo::GetMultiCreator(), SwFont::GetOrientation(), SwTextFormatInfo::GetRest(), SwTextFormatInfo::GetTabDecimal(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwTextIter::GetTextFrame(), SwTextFormatInfo::GetUnderflow(), SwLinePortion::GetWhichPor(), SwTextSizeInfo::HasHint(), SwPosSize::Height(), SwLineLayout::Height(), SwLinePortion::InFieldGrp(), SwLinePortion::InNumberGrp(), SwMultiPortion::IsBidi(), SwLinePortion::IsBreakPortion(), SwLineLayout::IsDummy(), SwFormatFootnote::IsEndNote(), SwLinePortion::IsFootnotePortion(), SwTextFormatInfo::IsFull(), SwTextFormatInfo::IsNewLine(), SwLinePortion::IsPostItsPortion(), SwTextFormatInfo::IsStop(), SwFrame::IsVertical(), lcl_OldFieldRest(), SwTextIter::m_pCurr, m_pMulti, NewExtraPortion(), NewTabPortion(), NewTextPortion(), RES_CHRATR_ROTATE(), Rotate, rSet, Ruby, SAL_WARN_IF, SwLinePortion::SetAscent(), SwTextFormatInfo::SetFly(), SwTextFormatInfo::SetFootnoteDone(), SwTextFormatInfo::SetFull(), SwTextFrame::SetHasRotatedPortions(), SwTextSizeInfo::SetLen(), SwLinePortion::SetLen(), SwTextFormatInfo::SetNewLine(), SwTextFormatInfo::SetNumDone(), SwTextFormatInfo::SetRest(), SwTextFormatInfo::SetStop(), SwTextSizeInfo::SetStopUnderflow(), SwTextFormatInfo::SetTabDecimal(), TAB_COMPAT, TabDecimal, Underflow(), WhichFirstPortion(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().

Referenced by BuildPortions().

◆ NewTabPortion()

SwTabPortion * SwTextFormatter::NewTabPortion ( SwTextFormatInfo rInf,
bool  bAuto 
) const
private

Definition at line 70 of file txttab.cxx.

References SvxTabStopItem::Count(), sw::proofreadingiterator::get(), IDocumentSettingAccess::get(), SvxTabStop::GetAdjustment(), SwFrame::GetAttrSet(), SvxTabStop::GetDecimal(), SfxItemPool::GetDefaultItem(), SwLineInfo::GetDefTabStop(), SwTextFrame::GetDoc(), SvxTabStop::GetFill(), SwFrameAreaDefinition::getFrameArea(), SwDoc::getIDocumentSettingAccess(), SwTextFormatInfo::GetLastTab(), SwTextMargin::GetLeftMargin(), SwLineInfo::GetListTabStopPosition(), SwLinePortion::GetNextPortion(), SwAttrSet::GetPool(), SwTextMargin::GetTabLeft(), SvxTabStop::GetTabPos(), SwTabPortion::GetTabPos(), SwLineInfo::GetTabStop(), SwTextSizeInfo::GetTextFrame(), SwLineLayout::HasForcedLeftMargin(), SwLinePortion::IsFlyPortion(), SwLineInfo::IsListTabStopIncluded(), SwFrame::IsRightToLeft(), SwLinePortion::IsTabCenterPortion(), SwLinePortion::IsTabDecimalPortion(), SwFrame::IsVertical(), SwFrame::IsVertLR(), SwTextMargin::Left(), SwRect::Left(), SwTextIter::m_aLineInf, SwTextIter::m_pCurr, SwTextIter::m_pFrame, nCount, SwLineInfo::NumberOfTabStops(), SwTabPortion::PostFormat(), RES_PARATR_TABSTOP(), SwTextMargin::Right(), SwRect::Right(), SwLineInfo::SetDefTabStop(), SVX_TAB_DEFDIST, SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), TAB_AT_LEFT_INDENT_FOR_PARA_IN_LIST, TAB_COMPAT, TAB_OVER_SPACING, TABS_RELATIVE_TO_INDENT, SwRect::Top(), SwTextFormatInfo::Width(), SwPosSize::Width(), Point::X(), SwTextPaintInfo::X(), and Point::Y().

Referenced by NewPortion(), and WhichFirstPortion().

◆ NewTextPortion()

SwTextPortion * SwTextFormatter::NewTextPortion ( SwTextFormatInfo rInf)
private

◆ RecalcRealHeight()

void SwTextFormatter::RecalcRealHeight ( )

Definition at line 2101 of file itrform2.cxx.

References CalcRealHeight(), and SwTextIter::Next().

Referenced by SwTextFrame::CalcLineSpace().

◆ SetFlyInCntBase()

void SwTextFormatter::SetFlyInCntBase ( bool  bNew = true)
inline

Definition at line 211 of file itrform2.hxx.

References m_bFlyInContentBase.

Referenced by BuildPortions(), SwLineLayout::CalcLine(), and FormatLine().

◆ SetOnceMore()

void SwTextFormatter::SetOnceMore ( bool  bNew)
inline

Definition at line 202 of file itrform2.hxx.

References m_bOnceMore.

Referenced by SwTextFrame::AdjustFollow_(), and SwTextFrame::FormatOnceMore().

◆ SetTruncLines()

void SwTextFormatter::SetTruncLines ( bool  bNew)
inline

Definition at line 205 of file itrform2.hxx.

References m_bTruncLines.

Referenced by SwTextFrame::Format_().

◆ SetUnclipped()

void SwTextFormatter::SetUnclipped ( bool  bNew)
inline

Definition at line 208 of file itrform2.hxx.

References m_bUnclipped.

Referenced by SwTextFrame::Format_(), and SwTextFrame::FormatLine().

◆ TryNewNoLengthPortion()

SwExpandPortion * SwTextFormatter::TryNewNoLengthPortion ( SwTextFormatInfo const &  rInfo)
private

Try to create a new portion with zero length, for an end of a hint (where there is no CH_TXTATR).

Because there may be multiple hint ends at a given index, m_pByEndIter is used to keep track of the already created portions. But the portions created here may actually be deleted again, due to Underflow. In that case, m_pByEndIter must be decremented, so the portion will be created again on the next line.

Definition at line 316 of file txtfld.cxx.

References SwTextAttr::GetAnyEnd(), SwTextSizeInfo::GetIdx(), SwTextSizeInfo::GetTextFrame(), lcl_NewMetaPortion(), m_pByEndIter, SwTextFrame::MapModelToView(), RES_TXTATR_METAFIELD(), SwFieldPortion::SetNoLength(), and SwTextAttr::Which().

Referenced by WhichFirstPortion().

◆ Underflow()

SwLinePortion * SwTextFormatter::Underflow ( SwTextFormatInfo rInf)
private

◆ UpdatePos()

void SwTextFormatter::UpdatePos ( SwLineLayout pCurr,
Point  aStart,
TextFrameIndex  nStartIdx,
bool  bAlways = false 
) const
private

◆ WhichFirstPortion()

SwLinePortion * SwTextFormatter::WhichFirstPortion ( SwTextFormatInfo rInf)
private

◆ WhichTextPor()

SwTextPortion * SwTextFormatter::WhichTextPor ( SwTextFormatInfo rInf) const
private

Member Data Documentation

◆ m_bFlyInContentBase

bool SwTextFormatter::m_bFlyInContentBase
private

Definition at line 42 of file itrform2.hxx.

Referenced by CtorInitTextFormatter(), IsFlyInCntBase(), and SetFlyInCntBase().

◆ m_bOnceMore

bool SwTextFormatter::m_bOnceMore
private

Definition at line 41 of file itrform2.hxx.

Referenced by CalcOnceMore(), CtorInitTextFormatter(), IsOnceMore(), and SetOnceMore().

◆ m_bTruncLines

bool SwTextFormatter::m_bTruncLines
private

Definition at line 43 of file itrform2.hxx.

Referenced by CtorInitTextFormatter(), HasTruncLines(), and SetTruncLines().

◆ m_bUnclipped

bool SwTextFormatter::m_bUnclipped
private

Definition at line 44 of file itrform2.hxx.

Referenced by IsUnclipped(), and SetUnclipped().

◆ m_nContentEndHyph

sal_uInt8 SwTextFormatter::m_nContentEndHyph
private

Definition at line 37 of file itrform2.hxx.

Referenced by CntEndHyph(), CtorInitTextFormatter(), and InitCntHyph().

◆ m_nContentMidHyph

sal_uInt8 SwTextFormatter::m_nContentMidHyph
private

Definition at line 38 of file itrform2.hxx.

Referenced by CntMidHyph(), CtorInitTextFormatter(), and InitCntHyph().

◆ m_nLeftScanIdx

TextFrameIndex SwTextFormatter::m_nLeftScanIdx
private

Definition at line 39 of file itrform2.hxx.

Referenced by CtorInitTextFormatter(), and NewTextPortion().

◆ m_nRightScanIdx

TextFrameIndex SwTextFormatter::m_nRightScanIdx
private

Definition at line 40 of file itrform2.hxx.

Referenced by CtorInitTextFormatter(), and NewTextPortion().

◆ m_pByEndIter

std::unique_ptr<sw::MergedAttrIterByEnd> SwTextFormatter::m_pByEndIter
private

Definition at line 45 of file itrform2.hxx.

Referenced by CtorInitTextFormatter(), TryNewNoLengthPortion(), and Underflow().

◆ m_pDropFormat

const SwFormatDrop* SwTextFormatter::m_pDropFormat
private

◆ m_pFirstOfBorderMerge

SwLinePortion* SwTextFormatter::m_pFirstOfBorderMerge
private

◆ m_pMulti

SwMultiPortion* SwTextFormatter::m_pMulti
private

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