LibreOffice Module sw (master)
1
|
#include <itrform2.hxx>
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 void | SetRightMargin (const bool bNew) |
static bool | IsRightMargin () |
Private Member Functions | |
SwLinePortion * | NewPortion (SwTextFormatInfo &rInf) |
SwTextPortion * | NewTextPortion (SwTextFormatInfo &rInf) |
SwLinePortion * | NewExtraPortion (SwTextFormatInfo &rInf) |
SwTabPortion * | NewTabPortion (SwTextFormatInfo &rInf, bool bAuto) const |
SwNumberPortion * | NewNumberPortion (SwTextFormatInfo &rInf) const |
SwDropPortion * | NewDropPortion (SwTextFormatInfo &rInf) |
SwNumberPortion * | NewFootnoteNumPortion (SwTextFormatInfo const &rInf) const |
The portion for the Footnote Numbering in the Footnote Area. More... | |
SwErgoSumPortion * | NewErgoSumPortion (SwTextFormatInfo const &rInf) const |
SwExpandPortion * | NewFieldPortion (SwTextFormatInfo &rInf, const SwTextAttr *pHt) const |
SwFootnotePortion * | NewFootnotePortion (SwTextFormatInfo &rInf, SwTextAttr *pHt) |
The portion for the Footnote Reference in the Text. More... | |
SwFlyCntPortion * | NewFlyCntPortion (SwTextFormatInfo &rInf, SwTextAttr *pHt) const |
Sets a new portion for an object anchored as character. More... | |
SwLinePortion * | WhichFirstPortion (SwTextFormatInfo &rInf) |
SwTextPortion * | WhichTextPor (SwTextFormatInfo &rInf) const |
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). 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 |
SwLinePortion * | Underflow (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 SwFormatDrop * | m_pDropFormat |
SwMultiPortion * | m_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::MergedAttrIterByEnd > | m_pByEndIter |
SwLinePortion * | m_pFirstOfBorderMerge |
Definition at line 33 of file itrform2.hxx.
|
inline |
Definition at line 153 of file itrform2.hxx.
References CtorInitTextFormatter(), and false.
|
overridevirtual |
Definition at line 113 of file itrform2.cxx.
References GetInfo(), SwTextFormatInfo::GetRest(), and SwTextFormatInfo::SetRest().
|
private |
Set all anchored as character objects to the passed BaseLine (in Y direction).
Definition at line 2300 of file itrform2.cxx.
References SwLineLayout::GetFirstPortion(), GetInfo(), GetMulti(), SwLinePortion::GetNextPortion(), SwTextIter::GetTextFrame(), SwTextSizeInfo::GetTextFrame(), SwLinePortion::IsFlyCntPortion(), SwLinePortion::IsGrfNumPortion(), SwTextFrame::IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwLineLayout::MaxAscentDescent(), None, Point, Reverse, Rotate, SwTextFrame::SwitchHorizontalToVertical(), X, and SwTextIter::Y().
Referenced by FormatLine().
|
private |
Definition at line 2114 of file itrform2.cxx.
References CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, COMPLETE_STRING, SwTextMargin::GetAdjust(), SwLineLayout::GetFirstPortion(), SwTextFrame::GetFollow(), GetInfo(), SwLinePortion::GetLen(), getLength(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwTextFormatInfo::GetReformatStart(), SwTextSizeInfo::GetText(), SwTextSizeInfo::HasHint(), SwLinePortion::IsFlyPortion(), SwTextMargin::IsLastBlock(), SwTextMargin::IsLastCenter(), SwTextIter::m_nStart, SwTextIter::m_pCurr, and SwTextIter::m_pFrame.
Referenced by FormatLine().
|
private |
Definition at line 1899 of file pormulti.cxx.
References SwMultiPortion::ActualizeTabulator(), SwLinePortion::AddPrtWidth(), Bookmark, BuildPortions(), SwTextAdjuster::CalcNewBlock(), SwMultiPortion::CalcSize(), Clone(), SwFootnoteBossFrame::FindBodyCont(), SwLinePortion::FindLastPortion(), SwFrame::FindPageFrame(), SwLinePortion::FormatEOL(), FormatReset(), SwTextMargin::GetAdjust(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetCachedVclData(), SwMultiPortion::GetDirection(), SwLineLayout::GetFirstPortion(), SwTextSizeInfo::GetFont(), SwTableLine::GetFrameFormat(), SwFrameAreaDefinition::getFramePrintArea(), SwFormat::GetFrameSize(), GetGridItem(), SwTextGridItem::GetGridType(), SwFormatFrameSize::GetHeightSizeType(), SwTextSizeInfo::GetIdx(), GetInfo(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineStart(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwTextPaintInfo::GetPaintOfst(), SwTextPaintInfo::GetPos(), SwAttrIter::GetPropFont(), SwTextFormatInfo::GetRest(), SwMultiPortion::GetRoot(), SwTextFormatInfo::GetRoot(), SwTextGridItem::GetRubyTextBelow(), SwTextIter::GetStart(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwFrame::GetUpper(), SwLinePortion::GetWhichPor(), GRID_LINES_CHARS, SwMultiPortion::HasBrackets(), SwMultiPortion::HasRotation(), SwPosSize::Height(), SwRect::Height(), SwLineLayout::Height(), SwLinePortion::InFieldGrp(), SwMultiPortion::IsBidi(), SwFrame::IsCellFrame(), SwMultiPortion::IsDouble(), SwTextFormatInfo::IsFootnoteDone(), SwMultiPortion::IsFormatted(), SwLinePortion::IsHolePortion(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwTextFormatInfo::IsNumDone(), SwFrame::IsRightToLeft(), SwMultiPortion::IsRuby(), SwTextSizeInfo::IsRuby(), SwFrame::IsVertical(), lcl_ExtractFieldFollow(), lcl_TruncateMultiPortion(), SwTextIter::m_nStart, SwTextIter::m_pCurr, SwTextIter::m_pFrame, m_pMulti, SwLayoutModeModifier::Modify(), SwMultiPortion::OnRight(), SwMultiPortion::OnTop(), SwTextIter::SeekAndChg(), SwTextIter::SeekAndChgBefore(), SwLinePortion::SetAscent(), SwTextSizeInfo::SetCachedVclData(), 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(), SwAttrIter::SwFontSave, Variable, SwPosSize::Width(), SwRect::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by BuildPortions().
|
private |
Definition at line 372 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(), SwTabPortion::FormatEOL(), SwLinePortion::FormatEOL(), SwFont::GetActual(), GetAppCharClass(), SwLinePortion::GetAscent(), SwTextFrame::GetDoc(), SwFixPortion::GetFix(), SwTextFormatInfo::GetFly(), GetFont(), SwTextSizeInfo::GetFont(), GetGridItem(), SwTextGridItem::GetGridType(), GetGridWidth(), SwFont::GetHeight(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextFormatInfo::GetLastTab(), SwTextMargin::GetLeftMargin(), SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), SwLinePortion::GetNextPortion(), SwTextPaintInfo::GetPaintOfst(), SwRectFnSet::GetPrtLeft(), SwTextFormatInfo::GetReformatStart(), SwTextFormatInfo::GetRest(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwFont::GetUnderline(), GRID_LINES_CHARS, 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(), SwLinePortion::IsKernPortion(), CharClass::isLetterNumeric(), SwLinePortion::IsMultiPortion(), SwTextSizeInfo::IsRuby(), 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(), Point, SwScriptInfo::ScriptType(), SwTextIter::SeekAndChg(), SwLineLayout::SetFly(), SetFlyInCntBase(), SwTextFormatInfo::SetFull(), SwTextFormatInfo::SetLast(), SwLinePortion::SetNextPortion(), SwTextFormatInfo::SetNumDone(), SwTextPaintInfo::SetPaintOfst(), SwTextFormatInfo::SetTabOverflow(), SwTextSizeInfo::SnapToGrid(), SwTextFrame::SwitchHorizontalToVertical(), void(), SwScriptInfo::WhichFont(), SwPosSize::Width(), SwTextFormatInfo::Width(), SwTextPaintInfo::X(), SwTextIter::Y(), and SwTextPaintInfo::Y().
Referenced by BuildMultiPortion(), CalcFitToContent_(), and FormatLine().
|
private |
Definition at line 746 of file itrform2.cxx.
References SwTextAdjuster::CalcAdjLine(), SwTextMargin::GetAdjust(), SwTextIter::GetStart(), SwTextMargin::GetTopLeft(), IsFlyInCntBase(), m_pMulti, SwLineLayout::SetFormatAdj(), and UpdatePos().
Referenced by FormatLine(), and FormatQuoVadis().
|
private |
Definition at line 761 of file itrform2.cxx.
References Bookmark, false, SwLinePortion::GetAscent(), SwTextSizeInfo::GetAscent(), SwFont::GetBottomBorderSpace(), GetFont(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetHangingBaseline(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineStart(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextHeight(), SwFont::GetTopBorderSpace(), SwLinePortion::GetWhichPor(), SwPosSize::Height(), SwLinePortion::InFieldGrp(), SwLinePortion::InNumberGrp(), SwLinePortion::InTabGrp(), SwLinePortion::InTextGrp(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsQuoVadisPortion(), SwLineLayout::IsRest(), SwTextIter::m_pCurr, SwAttrIter::m_pFont, m_pMulti, SwTextIter::SeekAndChg(), SwTextIter::SeekAndChgBefore(), SwTextIter::SeekStartAndChg(), SwLinePortion::SetAscent(), and SwLinePortion::SetHangingBaseline().
Referenced by BuildPortions(), NewPortion(), and NewTextPortion().
SwTwips SwTextFormatter::CalcBottomLine | ( | ) | const |
Definition at line 2078 of file itrform2.cxx.
References SwRect::Bottom(), SwTextIter::Bottom(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetInfo(), SwTextIter::GetLineHeight(), SwTextFly::GetMinBottom(), SwTextInfo::GetParaPortion(), SwParaPortion::GetRepaint(), SwTextPaintInfo::GetTextFly(), HasTruncLines(), SwRect::Height(), SwTextIter::m_pFrame, SwRect::Top(), and SwTextIter::Y().
Referenced by SwTextFrame::FormatAdjust().
void SwTextFormatter::CalcDropHeight | ( | const sal_uInt16 | nLines | ) |
Definition at line 483 of file txtdrop.cxx.
References SwTextIter::CalcAscentAndHeight(), SwTextIter::GetCurr(), SwTextMargin::GetDropLines(), SwTextIter::GetNext(), SwTextIter::IsRegisterOn(), SwTextIter::m_bRegisterOn, SwTextIter::Next(), SwTextMargin::SetDropDescent(), SwTextMargin::SetDropHeight(), SwTextMargin::SetDropLines(), and SwTextIter::Top().
Referenced by CalcOnceMore(), SwTextFrame::FormatOnceMore(), and NewDropPortion().
SwTwips SwTextFormatter::CalcFitToContent_ | ( | ) |
Definition at line 2103 of file itrform2.cxx.
References BuildPortions(), SwLineLayout::CalcLine(), FormatReset(), GetInfo(), SwTextIter::m_pCurr, and SwPosSize::Width().
Referenced by SwTextFrame::CalcAdditionalFirstLineOffset(), and SwTextFrame::CalcFitToContent().
|
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 2435 of file itrform2.cxx.
References ADD_VERTICAL_FLY_OFFSETS, 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(), GetMulti(), SwTextFly::GetNextTop(), SwRectFnSet::GetPrtLeft(), SwLineLayout::GetRealHeight(), SwTextSizeInfo::GetText(), SwTextPaintInfo::GetTextFly(), SwTextIter::GetTextFrame(), SwTextSizeInfo::GetTextFrame(), SwTextMargin::HasNegFirst(), Height, SwPosSize::Height(), i, SwTextIter::IsFirstTextLine(), SwTextFormatInfo::IsIgnoreFly(), SwTextFly::IsOn(), SwFrame::IsRightToLeft(), SwRectFnSet::IsVert(), SwFrame::IsVertical(), SwRect::Left(), SwTextMargin::Left(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, Point, SwTextFormatInfo::RealWidth(), SwRect::Right(), SwTextMargin::Right(), SAL_MAX_UINT16, SwLinePortion::SetAscent(), SwLineLayout::SetDummy(), SwTextFormatInfo::SetFly(), SwLineLayout::SetForcedLeftMargin(), SwTextFormatInfo::SetNewLine(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), SwTextFrame::SwitchRTLtoLTR(), SwTextFrame::SwitchVerticalToHorizontal(), SwRect::Top(), SwTextFormatInfo::Width(), SwTextPaintInfo::X(), and SwTextIter::Y().
Referenced by BuildPortions(), NewPortion(), and Underflow().
bool SwTextFormatter::CalcOnceMore | ( | ) |
Definition at line 2065 of file itrform2.cxx.
References CalcDropHeight(), SwTextMargin::GetDropHeight(), SwFormatDrop::GetLines(), m_bOnceMore, and m_pDropFormat.
Referenced by SwTextFrame::Format_().
Definition at line 1872 of file itrform2.cxx.
References SwFrame::FindPageFrame(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextGridItem::GetBaseHeight(), SwTextFrame::GetDoc(), GetGridItem(), SwDoc::getIDocumentSettingAccess(), GetInfo(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), getLength(), SvxLineSpacingItem::GetLineHeight(), SwTextIter::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SwLineInfo::GetLineSpacing(), SwLineLayout::GetNext(), SwTextInfo::GetParaPortion(), SvxLineSpacingItem::GetPropLineSpace(), SwTextGridItem::GetRubyHeight(), SwTextGridItem::GetRubyTextBelow(), SwTextIter::GetStart(), SwTextIter::GetTextFrame(), SwLineLayout::GetTextHeight(), SwLineLayout::Height(), SwLineLayout::IsDummy(), SwTextIter::IsParaLine(), SwTextIter::IsRegisterOn(), SwRectFnSet::IsVert(), SwTextIter::m_aLineInf, SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwTextIter::m_pInf, PROP_LINE_SPACING_SHRINKS_FIRST_LINE, SwTextIter::RegDiff(), SwTextIter::RegStart(), SwLinePortion::SetAscent(), SwLineLayout::SetClipping(), SwParaPortion::SetFixLineHeight(), SwLineLayout::SetRealHeight(), SwTextFrame::SwitchHorizontalToVertical(), SwTextIter::Y(), and SwRectFnSet::YDiff().
Referenced by CalcFlyWidth(), FormatLine(), GuessDropHeight(), NewFootnotePortion(), and RecalcRealHeight().
Definition at line 2166 of file itrform2.cxx.
References SwLinePortion::GetAscent(), SwTextIter::GetCurr(), SwTextFrame::IsSwapped(), SwFrame::IsVertical(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwLineLayout::MaxAscentDescent(), and SwTextIter::Y().
Referenced by SwTextFrame::FormatLine().
|
private |
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.
We check this and return true, meaning that the line has to be formatted again.
Definition at line 2347 of file itrform2.cxx.
References SwTextIter::GetCurr(), SwLineLayout::GetFirstPortion(), SwTextFly::GetFrame(), SwTextMargin::GetLeftMargin(), SwLinePortion::GetNextPortion(), SwLineLayout::GetRealHeight(), SwTextPaintInfo::GetTextFly(), Height, SwPosSize::Height(), SwLineLayout::Height(), SwLinePortion::IsFlyPortion(), SwTextFly::IsOn(), SwFrame::IsVertical(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwTextFormatInfo::RealWidth(), SwTextFormatInfo::SetLineHeight(), SwTextFormatInfo::SetLineNetHeight(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchVerticalToHorizontal(), SwPosSize::Width(), and SwTextIter::Y().
Referenced by FormatLine().
|
inline |
Definition at line 197 of file itrform2.hxx.
Referenced by NewDropPortion().
bool SwTextFormatter::ClearIfIsFirstOfBorderMerge | ( | SwLinePortion const * | pPortion | ) |
Definition at line 153 of file itrform2.cxx.
References m_pFirstOfBorderMerge.
Referenced by SwLineLayout::CalcLine(), and Underflow().
|
inline |
Definition at line 219 of file itrform2.hxx.
References m_nContentEndHyph.
Referenced by BuildPortions(), FeedInf(), and SwTextFrame::Format_().
|
inline |
Definition at line 221 of file itrform2.hxx.
References m_nContentEndHyph.
|
inline |
Definition at line 220 of file itrform2.hxx.
References m_nContentMidHyph.
Referenced by BuildPortions(), FeedInf(), and SwTextFrame::Format_().
|
inline |
Definition at line 222 of file itrform2.hxx.
References m_nContentMidHyph.
void SwTextFormatter::CtorInitTextFormatter | ( | SwTextFrame * | pFrame, |
SwTextFormatInfo * | pInf | ||
) |
Definition at line 88 of file itrform2.cxx.
References COMPLETE_STRING, SwTextPainter::CtorInitTextPainter(), SwTextFormatInfo::GetDropFormat(), GetInfo(), getLength(), m_bFlyInContentBase, m_bOnceMore, m_bTruncLines, m_nContentEndHyph, m_nContentMidHyph, m_nLeftScanIdx, m_nRightScanIdx, SwTextIter::m_nStart, m_pByEndIter, m_pDropFormat, m_pFirstOfBorderMerge, SwTextIter::m_pInf, and m_pMulti.
Referenced by SwTextFrame::FormatOnceMore(), and SwTextFormatter().
|
private |
Definition at line 2028 of file itrform2.cxx.
References SwTextFormatInfo::ChkNoHyph(), SwRedlineItr::Clear(), ClearFly(), CntEndHyph(), CntMidHyph(), SwTextFormatInfo::First(), SwTextMargin::FirstLeft(), SwAttrIter::GetFnt(), SwTextMargin::GetLeftMargin(), SwAttrIter::GetRedln(), SwTextFormatInfo::Init(), SwTextMargin::Left(), SwTextFormatInfo::Left(), SwTextFormatInfo::LeftMargin(), SwTextIter::m_nStart, SwTextIter::m_pCurr, SwTextFormatInfo::RealWidth(), SwRedlineItr::Reset(), SwTextMargin::Right(), SwTextFormatInfo::Right(), SwTextSizeInfo::SetIdx(), SwTextFormatInfo::SetLineStart(), SwTextFormatInfo::SetRoot(), and SwTextFormatInfo::Width().
Referenced by FormatQuoVadis(), FormatReset(), and Underflow().
TextFrameIndex SwTextFormatter::FormatLine | ( | TextFrameIndex | nStart | ) |
Definition at line 1659 of file itrform2.cxx.
References AlignFlyInCntBase(), AllowRepaintOpt(), BuildPortions(), CalcAdjustLine(), SwTextIter::CalcAscentAndHeight(), SwTextAdjuster::CalcKanaAdj(), SwLineLayout::CalcLine(), CalcRealHeight(), SwTextFormatInfo::CheckFootnotePortion(), ChkFlyUnderflow(), SwTextMargin::DropInit(), FormatReset(), SwLinePortion::GetAscent(), SwLineLayout::GetFirstPortion(), GetFrameRstHeight(), GetInfo(), GetLen(), SwLinePortion::GetLen(), getLength(), SwTextIter::GetLineHeight(), SwTextFormatInfo::GetLineHeight(), SwLinePortion::GetNextPortion(), SwTextInfo::GetParaPortion(), SwLineLayout::GetRealHeight(), SwParaPortion::GetReformat(), SwTextFormatInfo::GetRest(), SwTextIter::GetStart(), SwTextPaintInfo::GetTextFly(), SwTextIter::GetTextFrame(), SwTextMargin::GetTopLeft(), SwPosSize::Height(), SwLineLayout::Height(), SwLinePortion::InFieldGrp(), SwTextFormatInfo::IsArrowDone(), SwTextFormatInfo::IsErgoDone(), SwLineLayout::IsFly(), SwLinePortion::IsFlyCntPortion(), IsFlyInCntBase(), SwLinePortion::IsFlyPortion(), 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(), SwTextSizeInfo::SetFootnoteInside(), SwLinePortion::SetLen(), SwTextSizeInfo::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().
TextFrameIndex SwTextFormatter::FormatQuoVadis | ( | TextFrameIndex | nStart | ) |
Definition at line 1071 of file txtftn.cxx.
References SwLinePortion::Append(), CalcAdjustLine(), CH_BREAK, FeedInf(), SwFrame::FindColFrame(), SwFrame::FindFootnoteFrame(), SwLinePortion::FindLastPortion(), SwFrame::FindPageFrame(), SwLinePortion::Format(), FormatLine(), SwTextMargin::GetAdjust(), SwTextSizeInfo::GetAscent(), SwFootnoteFrame::GetAttr(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwLineLayout::GetFirstPortion(), SwFootnoteFrame::GetFollow(), SwTextFrame::GetFollow(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), GetInfo(), SwLinePortion::GetLen(), SwFrame::GetNext(), SwLinePortion::GetNextPortion(), SwAttrIter::GetRedln(), SwTextFormatInfo::GetRest(), SwTextIter::GetTextFrame(), SwTextSizeInfo::GetTextHeight(), SwFrame::GetUpper(), SwFlowFrame::HasFollow(), 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_().
|
private |
Definition at line 2052 of file itrform2.cxx.
References FeedInf(), SwLineLayout::FinishKanaComp(), SwLineLayout::FinishSpaceAdd(), SwLineLayout::Init(), SwTextIter::m_pCurr, m_pFirstOfBorderMerge, SwLineLayout::ResetFlags(), and SwLinePortion::Truncate().
Referenced by BuildMultiPortion(), CalcFitToContent_(), and FormatLine().
|
inline |
Definition at line 196 of file itrform2.hxx.
References m_pDropFormat.
Referenced by SwTextFrame::Format_(), SwTextFrame::FormatOnceMore(), SwTextFrame::FormatQuick(), and WhichFirstPortion().
sal_uInt16 SwTextFormatter::GetFrameRstHeight | ( | ) | const |
Definition at line 136 of file itrform2.cxx.
References SwFrame::FindPageFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRect::Height(), SwLineLayout::Height(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwRect::Top(), and SwTextIter::Y().
Referenced by FormatLine(), and MakeDummyLine().
|
inline |
Definition at line 213 of file itrform2.hxx.
References SwTextIter::GetInfo().
Referenced by AlignFlyInCntBase(), AllowRepaintOpt(), BuildMultiPortion(), CalcBottomLine(), CalcFitToContent_(), CalcRealHeight(), CtorInitTextFormatter(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), FormatLine(), SwTextFrame::FormatLine(), SwTextFrame::FormatOnceMore(), FormatQuoVadis(), Hyphenate(), IsNewLine(), IsQuick(), IsStop(), MakeRestPortion(), NewFlyCntPortion(), UpdatePos(), and ~SwTextFormatter().
|
inline |
Definition at line 215 of file itrform2.hxx.
References SwTextIter::GetInfo().
|
inline |
Definition at line 199 of file itrform2.hxx.
References m_pMulti.
Referenced by AlignFlyInCntBase(), CalcFlyWidth(), NewFlyCntPortion(), and UpdatePos().
|
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 545 of file txtdrop.cxx.
References SwTextIter::CalcAscentAndHeight(), CalcRealHeight(), SwTextMargin::GetDropDescent(), SwTextMargin::GetDropLines(), SwTextMargin::SetDropDescent(), SwTextMargin::SetDropHeight(), and SwTextMargin::SetDropLines().
Referenced by NewDropPortion().
|
inline |
Definition at line 204 of file itrform2.hxx.
References m_bTruncLines.
Referenced by CalcBottomLine().
bool SwTextFormatter::Hyphenate | ( | SwInterHyphInfoTextFrame & | rInf | ) |
! rHyphInf.SetHyphWord( ... ) must done here
Definition at line 126 of file txthyph.cxx.
References FormatLine(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwTextFrame::GetFollow(), SwTextSizeInfo::GetFont(), GetInfo(), SwFont::GetLanguage(), SwLinePortion::GetLen(), SwBreakIt::GetLocale(), SwTextIter::GetNext(), SwLinePortion::GetNextPortion(), SwTextSizeInfo::GetText(), SwTextPaintInfo::GetTextFly(), SwTextFormatInfo::HyphWord(), SwLinePortion::InHyphGrp(), InitCntHyph(), SwTextFly::IsOn(), SwTextIter::IsParaLine(), SwLinePortion::IsParaPortion(), SwLinePortion::IsSoftHyphPortion(), SwInterHyphInfoTextFrame::m_nEnd, SwTextIter::m_nStart, SwInterHyphInfoTextFrame::m_nStart, SwInterHyphInfoTextFrame::m_nWordLen, SwInterHyphInfoTextFrame::m_nWordStart, SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwLinePortion::PrtWidth(), SwInterHyphInfoTextFrame::SetHyphWord(), and SetParaPortion().
Referenced by SwTextFrame::Hyphenate().
|
inline |
Definition at line 218 of file itrform2.hxx.
References SwTextIter::CntHyphens().
Referenced by SwTextFrame::Format_(), and Hyphenate().
void SwTextFormatter::Insert | ( | SwLineLayout * | pLine | ) |
Definition at line 124 of file itrform2.cxx.
References SwLineLayout::GetNext(), SwTextIter::m_pCurr, and SwLineLayout::SetNext().
Referenced by SwTextFrame::Format_(), SwTextFrame::FormatQuick(), and MakeDummyLine().
|
private |
Definition at line 308 of file itrform2.cxx.
References IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextFrame::GetDoc(), SwLinePortion::GetHangingBaseline(), SwDoc::getIDocumentSettingAccess(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwTextIter::GetTextFrame(), SwPosSize::Height(), SwLineLayout::Height(), SwLinePortion::Insert(), SwLinePortion::IsDropPortion(), SwLinePortion::IsFlyCntPortion(), SwLinePortion::IsFootnotePortion(), SwTextSizeInfo::IsOtherThanFootnoteInside(), SwLinePortion::IsTextPortion(), SwTextIter::m_pCurr, MergeCharacterBorder(), SwLinePortion::Move(), MS_WORD_COMP_MIN_LINE_HEIGHT_BY_FLY, SwLinePortion::SetAscent(), SwLinePortion::SetHangingBaseline(), SwTextFormatInfo::SetLast(), and SwTextSizeInfo::SetOtherThanFootnoteInside().
Referenced by BuildPortions().
|
inline |
Definition at line 210 of file itrform2.hxx.
References m_bFlyInContentBase.
Referenced by CalcAdjustLine(), SwMultiPortion::CalcSize(), FormatLine(), and SwTextFrame::FormatLine().
|
inline |
Definition at line 177 of file itrform2.hxx.
References GetInfo(), and SwTextFormatInfo::IsNewLine().
Referenced by FormatLine(), and SwTextFrame::FormatLine().
|
inline |
Definition at line 201 of file itrform2.hxx.
References m_bOnceMore.
Referenced by SwTextFrame::Format_(), SwTextFrame::FormatOnceMore(), and NewDropPortion().
|
inline |
Definition at line 180 of file itrform2.hxx.
References GetInfo(), and SwTextFormatInfo::IsQuick().
Referenced by FormatLine(), NewFlyCntPortion(), and UpdatePos().
|
inline |
Definition at line 174 of file itrform2.hxx.
References GetInfo(), and SwTextFormatInfo::IsStop().
Referenced by SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), FormatLine(), and SwTextFrame::FormatLine().
|
inline |
Definition at line 207 of file itrform2.hxx.
References m_bUnclipped.
Referenced by SwTextFrame::FormatLine().
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 1275 of file txtftn.cxx.
References GetFrameRstHeight(), SwLineLayout::Height(), Insert(), SwTextIter::m_pCurr, SwTextIter::Next(), and SwLinePortion::SetAscent().
Referenced by SwTextFrame::FormatAdjust().
SwLinePortion * SwTextFormatter::MakeRestPortion | ( | const SwLineLayout * | pLine, |
TextFrameIndex | nPos | ||
) |
Definition at line 2389 of file pormulti.cxx.
References COMPLETE_STRING, SwAttrIter::GetAttr(), SwMultiPortion::GetDirection(), SwTextFrame::GetDoc(), SwLineLayout::GetFirstPortion(), GetFont(), SwDoc::getIDocumentSettingAccess(), GetInfo(), SwLinePortion::GetLen(), SwTextSizeInfo::GetMultiCreator(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwMultiPortion::GetRoot(), SwFieldPortion::HasFollow(), SwMultiPortion::HasRotation(), SwLinePortion::InFieldGrp(), SwMultiPortion::IsBidi(), SwMultiPortion::IsDouble(), SwLinePortion::IsMultiPortion(), SwMultiPortion::IsRuby(), SwTextIter::m_pFrame, NewFieldPortion(), SwMultiPortion::OnTop(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), SwMultiPortion::SetFollowField(), SwLineLayout::SetNext(), SwLinePortion::SetNextPortion(), and SwTextAttr::Which().
Referenced by SwTextFrame::Format_().
|
static |
Merge border of the drop portion with modifying the font of the portions' part.
Removing left or right border.
rPortion | drop portion for merge |
Definition at line 2764 of file itrform2.cxx.
References SwDropPortionPart::GetFollow(), SwDropPortionPart::GetFont(), SwDropPortion::GetLines(), SwDropPortion::GetPart(), SwDropPortionPart::SetJoinBorderWithNext(), and SwDropPortionPart::SetJoinBorderWithPrev().
Referenced by BuildPortions(), and InsertPortion().
void SwTextFormatter::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.
rPortion | portion for merge |
pPrev | portion immediately before rPortion |
rInf | contain information |
Definition at line 2782 of file itrform2.cxx.
References SwLinePortion::GetAscent(), SwAttrIter::GetFnt(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetIdx(), SwLinePortion::GetJoinBorderWithNext(), SwLinePortion::GetJoinBorderWithPrev(), SwFont::GetLeftBorderSpace(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwFont::GetRightBorderSpace(), SwTextSizeInfo::GetText(), SwFont::HasBorder(), Height, SwPosSize::Height(), SwLinePortion::InTextGrp(), SwTextFormatInfo::IsFull(), SwLinePortion::IsKernPortion(), m_pFirstOfBorderMerge, SwAttrIter::Seek(), SwLinePortion::SetAscent(), SwLinePortion::SetJoinBorderWithNext(), SwLinePortion::SetJoinBorderWithPrev(), and SwPosSize::Width().
|
private |
Definition at line 560 of file txtdrop.cxx.
References CalcDropHeight(), ClearDropFormat(), SwFormat::GetAttrSet(), SwFormatDrop::GetCharFormat(), SwFormatDrop::GetChars(), SwFormatDrop::GetDistance(), SwTextFrame::GetDoc(), SwTextMargin::GetDropDescent(), SwTextMargin::GetDropHeight(), SwTextFrame::GetDropLen(), SwTextMargin::GetDropLines(), SwTextSizeInfo::GetFont(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwFormatDrop::GetLines(), SwTextIter::GetNext(), SwAttrIter::GetNextAttr(), SwTextSizeInfo::GetTextFrame(), SwFormatDrop::GetWholeWord(), GuessDropHeight(), IsOnceMore(), SwFrame::IsVertical(), m_pDropFormat, SwTextIter::m_pFrame, SwAttrIter::m_pScriptInfo, SwScriptInfo::NextScriptChg(), SwAttrIter::Seek(), SwFont::SetDiffFnt(), SwDropPortionPart::SetFollow(), SwLinePortion::SetLen(), SwTextPainter::SetPaintDrop(), SwDropPortion::SetPart(), and SwFont::SetVertical().
Referenced by WhichFirstPortion().
|
private |
Definition at line 1043 of file txtftn.cxx.
References SwFrame::FindPageFrame(), SwTextFrame::FindQuoVadisFrame(), SwFootnoteFrame::GetAttr(), SwTextFrame::GetDoc(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwTextSizeInfo::GetIdx(), SwTextFrame::GetOffset(), SwTextFrame::GetPara(), SwFrame::GetPrev(), SwFrame::ImplFindFootnoteFrame(), SwFormatFootnote::IsEndNote(), SwTextFormatInfo::IsErgoDone(), SwFrame::IsInFootnote(), lcl_GetPageNumber(), SwFootnoteInfo::m_aErgoSum, SwTextIter::m_pFrame, and SwParaPortion::SetErgoSumNum().
Referenced by WhichFirstPortion().
|
private |
Definition at line 360 of file txtfld.cxx.
References SwAttrIter::GetAttr(), SwTextSizeInfo::GetIdx(), lcl_NewMetaPortion(), NewFieldPortion(), NewFlyCntPortion(), NewFootnotePortion(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SwLinePortion::SetLen(), SwTextSizeInfo::SetLen(), and SwTextAttr::Which().
Referenced by NewPortion().
|
private |
Definition at line 76 of file txtfld.cxx.
References aStr, ATTR_BOOKMARKFLD, ATTR_DATEFLD, ATTR_PAGECOUNTFLD, ATTR_PAGENUMBERFLD, ATTR_SETREFATTRFLD, ATTR_TIMEFLD, SwGetExpField::ChangeExpansion(), SwPageNumberFieldType::ChangeExpansion(), Chapter, SwDBField::ChgBodyTextFlag(), SwGetExpField::ChgBodyTextFlag(), CombinedChars, Database, DATEFLD, DateTime, DocStat, SwField::ExpandField(), SwFrame::FindPageFrame(), SwFormat::GetAttrSet(), SwViewShell::GetDoc(), SwTextFrame::GetDoc(), GetExp, SwFormatField::GetField(), SwField::GetFieldName(), SwAttrIter::GetFnt(), SwField::GetFormat(), SwTextAttr::GetFormatField(), SwDoc::getIDocumentSettingAccess(), SwLangHelper::GetLanguage(), SwFont::GetLanguage(), SwField::GetLanguage(), SwViewShell::GetLayout(), SvxNumberType::GetNumberingType(), SwPageDesc::GetNumType(), SwTextSizeInfo::GetOpt(), SwPageFrame::GetPageDesc(), SwRootFrame::GetPageNum(), GetRef, SwFrame::getRootFrame(), SwField::GetTyp(), SwFrame::GetVirtPageNum(), SwTextSizeInfo::GetVsh(), HiddenText, SwViewShell::Imp(), SwViewOption::IsFieldName(), SwGetExpField::IsInBodyText(), SwViewShellImp::IsUpdateExpFields(), SwRootFrame::IsVirtPageNum(), JumpEdit, LANGUAGE, lcl_IsInBody(), SwAttrIter::m_pFont, SwTextIter::m_pFrame, PageNumber, Postit, REF_BOOKMARK, REF_SETREFATTR, RefPageGet, Script, SwTextIter::SeekAndChg(), SwField::SetLanguage(), SVX_NUM_PAGEDESC, TIMEFLD, and SwFieldType::Which().
Referenced by MakeRestPortion(), and NewExtraPortion().
|
private |
Sets a new portion for an object anchored as character.
Definition at line 2664 of file itrform2.cxx.
References abs(), sw::FlyContentPortion::Create(), sw::DrawFlyCntPortion::Create(), SwLinePortion::GetAscent(), GetInfo(), SwTextFormatInfo::GetLast(), SwTextMargin::GetLeftMargin(), GetMulti(), SwFlyInContentFrame::GetRefPoint(), SwFlyInContentFrame::GetRelPos(), SwTextIter::GetTextFrame(), SwTextSizeInfo::GetTextFrame(), SwFrameAreaDefinition::isFrameAreaPositionValid(), IsQuick(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwLineLayout::MaxAscentDescent(), None, Point, Quick, RES_FLYFRMFMT(), Reverse, Rotate, SwTextSizeInfo::SelectFont(), SwFlyCntPortion::SetBase(), SwTextFrame::SwitchHorizontalToVertical(), UlSpace, SwFormat::Which(), SwTextPaintInfo::X(), and SwTextIter::Y().
Referenced by NewExtraPortion().
|
private |
The portion for the Footnote Numbering in the Footnote Area.
Definition at line 932 of file txtftn.cxx.
References CJK, CTL, SwRedlineTable::FindAtPosition(), SwFrame::FindFootnoteFrame(), SwFormatFootnote::getAnchor(), SwFootnoteFrame::GetAttr(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwRangeRedline::GetAuthor(), SwTextFormatInfo::GetCharAttr(), SwEndNoteInfo::GetCharFormat(), SwTextFrame::GetDoc(), SwDoc::GetEndNoteInfo(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwFrame::GetIndPrev(), IDocumentRedlineAccess::GetRedlineTable(), SwFrame::getRootFrame(), SwRangeRedline::GetStackCount(), SwTextInfo::GetTextStart(), SwRangeRedline::GetType(), SwFormatFootnote::GetViewNumStr(), SwFormatFootnote::IsEndNote(), SwTextFormatInfo::IsFootnoteDone(), SwFrame::IsInFootnote(), SwFrame::IsRightToLeft(), SwFrame::IsVertical(), ITALIC_NONE, Latin, LINESTYLE_NONE, SwTextIter::m_nStart, SwTextIter::m_pFrame, RES_CHRATR_BEGIN(), RES_CHRATR_COLOR(), RES_CHRATR_CROSSEDOUT(), RES_CHRATR_END(), RES_CHRATR_UNDERLINE(), SwFieldPortion::SetLeft(), SwPaM::Start(), SW_MOD, WEIGHT_NORMAL, and sw::XTextRangeToSwPaM().
Referenced by WhichFirstPortion().
|
private |
The portion for the Footnote Reference in the Text.
Definition at line 792 of file txtftn.cxx.
References CalcRealHeight(), SwTextFrame::ConnectFootnote(), SwFootnoteBossFrame::FindFootnote(), SwFrame::FindFootnoteBossFrame(), SwFootnoteBossFrame::FindFootnoteCont(), SwTextFrame::FindFootnoteRef(), SwFrame::FindSctFrame(), FTNPOS_CHAPTER, SwLinePortion::GetAscent(), SwTextFrame::GetDoc(), SwDoc::GetFootnoteInfo(), SwFrameAreaDefinition::getFrameArea(), SwFrame::GetIndPrev(), SwTextIter::GetLineNr(), SwFrame::GetPrev(), SwLineLayout::GetRealHeight(), SwFrame::getRootFrame(), SwRectFnSet::GetTop(), SwFormatFootnote::GetViewNumStr(), SwLineLayout::Height(), SwFormatFootnote::IsEndNote(), SwFrame::IsFootnoteAllowed(), SwSectionFrame::IsFootnoteAtEnd(), SwFrame::IsInTab(), SwTextFormatInfo::IsQuick(), SwTextFrame::IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), lcl_GetFootnoteLower(), SwLayoutFrame::Lower(), SwFootnoteInfo::m_ePos, SwTextIter::m_pCurr, SwTextIter::m_pFrame, SwLinePortion::SetAscent(), SwTextSizeInfo::SetFootnoteInside(), SwLineLayout::SetRealHeight(), SwTextFormatInfo::SetStop(), swap(), SwTextFrame::SwitchHorizontalToVertical(), SwTextIter::Y(), and SwRectFnSet::YDiff().
Referenced by NewExtraPortion().
|
private |
Definition at line 607 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(), SvxNumberFormat::GetBrush(), SvxNumberFormat::GetBulletChar(), SvxNumberFormat::GetBulletFont(), SwTextFormatInfo::GetCharAttr(), SwNumFormat::GetCharFormat(), SvxNumberFormat::GetCharTextDistance(), SwNumFormat::GetGraphicOrientation(), SvxNumberFormat::GetGraphicSize(), SwNode::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextNode::GetLabelFollowedBy(), SwTextFormatInfo::GetLast(), SvxNumberFormat::GetNumAdjust(), SvxNumberType::GetNumberingType(), SwTextNode::GetNumRule(), SwTextNode::GetNumString(), SvxNumberFormat::GetPositionAndSpaceMode(), SwFrame::getRootFrame(), SwTextIter::GetTextFrame(), SwTextFrame::GetTextNodeForParaProps(), SwTextInfo::GetTextStart(), SwTextSizeInfo::GetVsh(), SwPosSize::Height(), SwTextNode::IsCountedInList(), 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, SVX_NUM_BITMAP, SVX_NUM_CHAR_SPECIAL, and WEIGHT_NORMAL.
Referenced by WhichFirstPortion().
|
private |
Definition at line 1356 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, false, SwTabPortion::Format(), IDocumentSettingAccess::get(), SwEndNoteInfo::GetAnchorCharFormat(), SwLinePortion::GetAscent(), SwAttrIter::GetAttr(), SwFormat::GetAttrSet(), SwTextSizeInfo::GetChar(), SwTextIter::GetCurr(), SwTextFrame::GetDoc(), SwDoc::GetEndNoteInfo(), SwFixPortion::GetFix(), SwTextFormatInfo::GetFly(), GetFont(), SwTextSizeInfo::GetFont(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwTextFormatInfo::GetHookChar(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SfxItemSet::GetItemIfSet(), SwTextFormatInfo::GetLast(), SwTextFormatInfo::GetLastTab(), SwLinePortion::GetLen(), SwTextSizeInfo::GetMultiCreator(), SwFont::GetOrientation(), SwTextFormatInfo::GetRest(), SwTextFormatInfo::GetTabDecimal(), SwTextSizeInfo::GetText(), SwTextIter::GetTextFrame(), SwTextSizeInfo::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, Ruby, SwLinePortion::SetAscent(), SwTextFormatInfo::SetFly(), SwTextFormatInfo::SetFootnoteDone(), SwTextFormatInfo::SetFull(), SwTextFrame::SetHasRotatedPortions(), SwLinePortion::SetLen(), SwTextSizeInfo::SetLen(), SwTextFormatInfo::SetNewLine(), SwTextFormatInfo::SetNumDone(), SwTextFormatInfo::SetRest(), SwTextSizeInfo::SetStopUnderflow(), SwTextFormatInfo::SetTabDecimal(), TAB_COMPAT, TabDecimal, Underflow(), WhichFirstPortion(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by BuildPortions().
|
private |
Definition at line 70 of file txttab.cxx.
References SvxTabStopItem::Count(), 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(), SwRect::Left(), SwTextMargin::Left(), SwTextIter::m_aLineInf, SwTextIter::m_pCurr, SwTextIter::m_pFrame, nCount, SwLineInfo::NumberOfTabStops(), Point, SwTabPortion::PostFormat(), RES_PARATR_TABSTOP(), SwRect::Right(), SwTextMargin::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(), SwPosSize::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by NewPortion(), and WhichFirstPortion().
|
private |
Definition at line 1086 of file itrform2.cxx.
References CalcAscent(), SwTextSizeInfo::GetFont(), SwFont::GetHeight(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLineWidth(), SwAttrIter::GetNextAttr(), SwTextSizeInfo::GetText(), m_nLeftScanIdx, m_nRightScanIdx, SwAttrIter::m_pScriptInfo, min(), SwScriptInfo::NextBookmark(), SwScriptInfo::NextDirChg(), SwScriptInfo::NextHiddenChg(), SwScriptInfo::NextScriptChg(), SwTextFormatInfo::ScanPortionEnd(), SwAttrIter::Seek(), SwTextSizeInfo::SetLen(), and WhichTextPor().
Referenced by NewPortion().
void SwTextFormatter::RecalcRealHeight | ( | ) |
Definition at line 1864 of file itrform2.cxx.
References CalcRealHeight(), and SwTextIter::Next().
Referenced by SwTextFrame::CalcLineSpace().
|
inline |
Definition at line 211 of file itrform2.hxx.
References m_bFlyInContentBase.
Referenced by BuildPortions(), SwLineLayout::CalcLine(), and FormatLine().
|
inline |
Definition at line 202 of file itrform2.hxx.
References m_bOnceMore.
Referenced by SwTextFrame::AdjustFollow_(), and SwTextFrame::FormatOnceMore().
|
inline |
Definition at line 205 of file itrform2.hxx.
References m_bTruncLines.
Referenced by SwTextFrame::Format_().
|
inline |
Definition at line 208 of file itrform2.hxx.
References m_bUnclipped.
Referenced by SwTextFrame::Format_(), and SwTextFrame::FormatLine().
|
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 321 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().
|
private |
Definition at line 163 of file itrform2.cxx.
References CalcFlyWidth(), ClearIfIsFirstOfBorderMerge(), FeedInf(), SwLineLayout::GetFirstPortion(), SwTextFormatInfo::GetFly(), SwTextFormatInfo::GetLast(), SwTextMargin::GetLeftMargin(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwTextFormatInfo::GetRest(), SwTextFormatInfo::GetSoftHyphPos(), SwTextFormatInfo::GetUnderflow(), SwTextFormatInfo::GetUnderScorePos(), SwLinePortion::GetWhichPor(), SwLinePortion::InExpGrp(), SwLinePortion::InTextGrp(), SwLinePortion::IsDropPortion(), SwLinePortion::IsFlyCntPortion(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsKernPortion(), SwLinePortion::IsSoftHyphPortion(), m_pByEndIter, SwTextIter::m_pCurr, SwLinePortion::Move(), SwTextIter::SeekAndChg(), SwTextFormatInfo::SetFly(), SwTextFormatInfo::SetFull(), SwTextFormatInfo::SetLast(), SwTextSizeInfo::SetLen(), SwLinePortion::SetNextPortion(), SwTextPaintInfo::SetPaintOfst(), SwTextFormatInfo::SetRest(), SwTextFormatInfo::SetSoftHyphPos(), SwTextSizeInfo::SetStopUnderflow(), SwTextFormatInfo::SetUnderflow(), SwTextFormatInfo::SetUnderScorePos(), SwLinePortion::SetWhichPor(), SwLinePortion::Truncate(), SwPosSize::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by NewPortion().
|
private |
The position of the portions changes with the adjustment.
This method updates the reference point of the anchored as character objects, for example after adjustment change (right alignment, justified, etc.) Mainly to correct the X position.
Definition at line 2178 of file itrform2.cxx.
References Bidi, SwLinePortion::GetAscent(), GetDirection(), SwLineLayout::GetFirstPortion(), SwTextSizeInfo::GetIdx(), GetInfo(), SwLinePortion::GetLen(), GetMulti(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwLineLayout::GetpKanaComp(), SwLineLayout::GetpLLSpaceAdd(), SwTextPaintInfo::GetPos(), SwLineLayout::GetRealHeight(), SwMultiPortion::GetRoot(), SwTextSizeInfo::GetTextFrame(), SwMultiPortion::HasBrackets(), Height, SwLineLayout::Height(), SwMultiPortion::IsBidi(), SwLinePortion::IsFlyCntPortion(), SwLinePortion::IsGrfNumPortion(), SwLinePortion::IsMultiPortion(), IsQuick(), SwMultiPortion::IsRevers(), SwTextFrame::IsSwapped(), SwTextFormatInfo::IsTest(), SwFrame::IsVertical(), SwTextIter::m_pFrame, m_pMulti, SwLineLayout::MaxAscentDescent(), SwLinePortion::Move(), Point, SwTextSizeInfo::ResetKanaIdx(), SwTextPaintInfo::ResetSpaceIdx(), Reverse, Rotate, SwTextSizeInfo::SetDirection(), SwTextSizeInfo::SetIdx(), SwTextSizeInfo::SetKanaComp(), SwTextPaintInfo::SetPos(), SwTextPaintInfo::SetpSpaceAdd(), SwTextFrame::SwitchHorizontalToVertical(), UlSpace, Width, SwPosSize::Width(), SwTextPaintInfo::X(), and SwTextPaintInfo::Y().
Referenced by CalcAdjustLine(), and FormatLine().
|
private |
Definition at line 1160 of file itrform2.cxx.
References SwTextFormatInfo::CheckCurrentPosBookmark(), SwScriptInfo::End, IDocumentSettingAccess::get(), SwScriptInfo::GetBookmark(), SwTextFrame::GetDoc(), GetDropFormat(), GetGridItem(), SwTextFormatInfo::GetHookChar(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwFrame::GetIndPrev(), SwLinePortion::GetNextPortion(), SwTextNode::GetNumRule(), SwTextFrame::GetOffset(), SwTextInfo::GetParaPortion(), SwTextFormatInfo::GetRest(), SwTextIter::GetTextFrame(), SwTextFrame::GetTextNodeForParaProps(), SwMultiPortion::HasRotation(), SwLinePortion::InNumberGrp(), SwTextFormatInfo::IsArrowDone(), SwTextFormatInfo::IsErgoDone(), SwLinePortion::IsErgoSumPortion(), SwFlowFrame::IsFollow(), SwTextFormatInfo::IsFootnoteDone(), SwTextFrame::IsFootnoteNumFrame(), SwLinePortion::IsFootnoteNumPortion(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwTextSizeInfo::IsMulti(), SwTextFormatInfo::IsNumDone(), SwTextIter::m_pCurr, SwTextIter::m_pFrame, m_pMulti, SwAttrIter::m_pScriptInfo, NewDropPortion(), NewErgoSumPortion(), NewFootnoteNumPortion(), NewNumberPortion(), NewTabPortion(), SwScriptInfo::Point, SwTextFormatInfo::SetArrowDone(), SwTextFormatInfo::SetErgoDone(), SwTextFormatInfo::SetFootnoteDone(), SwParaPortion::SetFootnoteNum(), SwTextFormatInfo::SetNumDone(), SwLineLayout::SetRest(), SwTextFormatInfo::SetRest(), SwScriptInfo::Start, TAB_COMPAT, and TryNewNoLengthPortion().
Referenced by NewPortion().
|
private |
Definition at line 934 of file itrform2.cxx.
References ch, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, sw::mark::ExpandFieldmark(), SfxObjectShell::GetBaseModel(), SwTextFrame::GetDoc(), SwDoc::GetDocShell(), sw::mark::IFieldmark::GetFieldname(), SwAttrIter::GetFnt(), SwTextSizeInfo::GetIdx(), SwNode::GetIndex(), SwLinePortion::GetLen(), SwUnoCursorHelper::GetNestedTextContent(), SwLinePortion::GetNextPortion(), SwPaM::GetNode(), SwTextSizeInfo::GetOpt(), comphelper::getProcessComponentContext(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextFrame(), SwNode::GetTextNode(), SwFieldType::GetTypeStr(), i, Input, SwViewOption::IsFieldName(), SwTextIter::m_pCurr, ODF_FORMCHECKBOX, ODF_FORMDATE, ODF_FORMDROPDOWN, ODF_FORMTEXT, SAL_INFO, Color::STRtoRGB(), and SwTextPaintInfo::X().
Referenced by NewTextPortion().
|
private |
Definition at line 42 of file itrform2.hxx.
Referenced by CtorInitTextFormatter(), IsFlyInCntBase(), and SetFlyInCntBase().
|
private |
Definition at line 41 of file itrform2.hxx.
Referenced by CalcOnceMore(), CtorInitTextFormatter(), IsOnceMore(), and SetOnceMore().
|
private |
Definition at line 43 of file itrform2.hxx.
Referenced by CtorInitTextFormatter(), HasTruncLines(), and SetTruncLines().
|
private |
Definition at line 44 of file itrform2.hxx.
Referenced by IsUnclipped(), and SetUnclipped().
|
private |
Definition at line 37 of file itrform2.hxx.
Referenced by CntEndHyph(), and CtorInitTextFormatter().
|
private |
Definition at line 38 of file itrform2.hxx.
Referenced by CntMidHyph(), and CtorInitTextFormatter().
|
private |
Definition at line 39 of file itrform2.hxx.
Referenced by CtorInitTextFormatter(), and NewTextPortion().
|
private |
Definition at line 40 of file itrform2.hxx.
Referenced by CtorInitTextFormatter(), and NewTextPortion().
|
private |
Definition at line 45 of file itrform2.hxx.
Referenced by CtorInitTextFormatter(), TryNewNoLengthPortion(), and Underflow().
|
private |
Definition at line 35 of file itrform2.hxx.
Referenced by CalcOnceMore(), CtorInitTextFormatter(), GetDropFormat(), and NewDropPortion().
|
private |
Definition at line 46 of file itrform2.hxx.
Referenced by ClearIfIsFirstOfBorderMerge(), CtorInitTextFormatter(), FormatReset(), and MergeCharacterBorder().
|
private |
Definition at line 36 of file itrform2.hxx.
Referenced by BuildMultiPortion(), BuildPortions(), CalcAdjustLine(), CalcAscent(), CtorInitTextFormatter(), GetMulti(), NewPortion(), UpdatePos(), and WhichFirstPortion().