|
LibreOffice Module sw (master) 1
|
Collection of SwLineLayout instances, represents the paragraph text in Writer layout. More...
#include <porlay.hxx>
Public Types | |
| enum | FootnoteOrNot { OnlyNumbering , FootnoteToo } |
Public Member Functions | |
| SwParaPortion () | |
| virtual | ~SwParaPortion () override |
| void | FormatReset () |
| void | ResetPreps () |
| SwRepaint & | GetRepaint () |
| const SwRepaint & | GetRepaint () const |
| SwCharRange & | GetReformat () |
| const SwCharRange & | GetReformat () const |
| void | SetDelta (tools::Long nDelta) |
| tools::Long | GetDelta () const |
| SwScriptInfo & | GetScriptInfo () |
| const SwScriptInfo & | GetScriptInfo () const |
| TextFrameIndex | GetParLen () const |
| bool | UpdateQuoVadis (std::u16string_view rQuo) |
| Is called in SwTextFrame::Prepare() More... | |
| void | SetFly () |
| bool | HasFly () const |
| void | SetPrep () |
| bool | IsPrep () const |
| void | SetPrepWidows () |
| bool | IsPrepWidows () const |
| void | SetPrepMustFit (const bool bNew) |
| bool | IsPrepMustFit () const |
| void | SetPrepAdjust () |
| bool | IsPrepAdjust () const |
| void | SetFollowField (const bool bNew) |
| bool | IsFollowField () const |
| void | SetFixLineHeight () |
| bool | IsFixLineHeight () const |
| void | SetFootnoteNum (const bool bNew) |
| bool | IsFootnoteNum () const |
| void | SetMargin (const bool bNew=true) |
| bool | IsMargin () const |
| bool | HasNumberingPortion (FootnoteOrNot) const |
| bool | HasContentPortions () const |
| void | SetErgoSumNum (const OUString &rErgo) |
| const SwDropPortion * | FindDropPortion () const |
| void | dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override |
Public Member Functions inherited from SwLineLayout | |
| virtual void | Height (const SwTwips nNew, const bool bText=true) override |
| virtual SwLinePortion * | Insert (SwLinePortion *pPortion) override |
| virtual SwLinePortion * | Append (SwLinePortion *pPortion) override |
| SwLinePortion * | GetFirstPortion () const |
| void | ResetFlags () |
| void | SetFormatAdj (const bool bNew) |
| bool | IsFormatAdj () const |
| void | SetEndHyph (const bool bNew) |
| bool | IsEndHyph () const |
| void | SetMidHyph (const bool bNew) |
| bool | IsMidHyph () const |
| void | SetFly (const bool bNew) |
| bool | IsFly () const |
| void | SetRest (const bool bNew) |
| bool | IsRest () const |
| void | SetBlinking (const bool bNew) |
| bool | IsBlinking () const |
| void | SetContent (const bool bNew) |
| bool | HasContent () const |
| void | SetRedline (const bool bNew) |
| bool | HasRedline () const |
| void | SetRedlineEnd (const bool bNew) |
| bool | HasRedlineEnd () const |
| void | SetRedlineEndType (const enum RedlineType eNew) |
| RedlineType | GetRedlineEndType () const |
| void | SetRedlineText (const OUString &sText) |
| const OUString * | GetRedlineText () const |
| void | SetForcedLeftMargin () |
| bool | HasForcedLeftMargin () const |
| void | SetHanging (const bool bNew) |
| bool | IsHanging () const |
| void | SetUnderscore (const bool bNew) |
| bool | HasUnderscore () const |
| void | SetDummy (const bool bNew) |
| bool | IsDummy () const |
| void | SetClipping (const bool bNew) |
| bool | IsClipping () const |
| SwLineLayout () | |
| virtual | ~SwLineLayout () override |
| SwLineLayout * | GetNext () |
| const SwLineLayout * | GetNext () const |
| void | SetNext (SwLineLayout *pNew) |
| void | Init (SwLinePortion *pNextPortion=nullptr) |
| void | CalcLine (SwTextFormatter &rLine, SwTextFormatInfo &rInf) |
| void | SetRealHeight (SwTwips nNew) |
| SwTwips | GetRealHeight () const |
| SwTwips | GetTextHeight () const |
| SwMarginPortion * | CalcLeftMargin () |
| SwTwips | GetHangingMargin () const |
| virtual bool | Format (SwTextFormatInfo &rInf) override |
| bool | IsSpaceAdd () const |
| void | InitSpaceAdd () |
| void | CreateSpaceAdd (const tools::Long nInit=0) |
| void | FinishSpaceAdd () |
| sal_uInt16 | GetLLSpaceAddCount () const |
| void | SetLLSpaceAdd (tools::Long nNew, sal_uInt16 nIdx) |
| tools::Long | GetLLSpaceAdd (sal_uInt16 nIdx) |
| void | RemoveFirstLLSpaceAdd () |
| std::vector< tools::Long > * | GetpLLSpaceAdd () const |
| void | SetKanaComp (std::unique_ptr< std::deque< sal_uInt16 > > pNew) |
| void | FinishKanaComp () |
| std::deque< sal_uInt16 > * | GetpKanaComp () const |
| std::deque< sal_uInt16 > & | GetKanaComp () |
| void | MaxAscentDescent (SwTwips &_orAscent, SwTwips &_orDescent, SwTwips &_orObjAscent, SwTwips &_orObjDescent, const SwLinePortion *_pDontConsiderPortion=nullptr, const bool _bNoFlyCntPorAndLinePor=false) const |
| determine ascent and descent for positioning of as-character anchored object More... | |
| void | dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override |
| SwTwips | Height () const |
| virtual void | Height (const SwTwips nNew, const bool=true) |
Public Member Functions inherited from SwTextPortion | |
| SwTextPortion () | |
| virtual void | Paint (const SwTextPaintInfo &rInf) const override |
| virtual bool | Format (SwTextFormatInfo &rInf) override |
| virtual void | FormatEOL (SwTextFormatInfo &rInf) override |
| virtual TextFrameIndex | GetModelPositionForViewPoint (sal_uInt16 nOfst) const override |
| the parameter is actually SwTwips apparently? More... | |
| virtual SwPosSize | GetTextSize (const SwTextSizeInfo &rInfo) const override |
| virtual bool | GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override |
| virtual tools::Long | CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const override |
| TextFrameIndex | GetSpaceCnt (const SwTextSizeInfo &rInf, TextFrameIndex &rCnt) const |
| bool | CreateHyphen (SwTextFormatInfo &rInf, SwTextGuess const &rGuess) |
| virtual void | HandlePortion (SwPortionHandler &rPH) const override |
Public Member Functions inherited from SwLinePortion | |
| SwLinePortion (const SwLinePortion &rPortion) | |
| virtual | ~SwLinePortion () |
| SwLinePortion * | GetNextPortion () const |
| SwLinePortion & | operator= (const SwLinePortion &rPortion) |
| TextFrameIndex | GetLen () const |
| void | SetLen (TextFrameIndex const nLen) |
| void | SetNextPortion (SwLinePortion *pNew) |
| SwTwips & | GetAscent () |
| SwTwips | GetAscent () const |
| void | SetAscent (const SwTwips nNewAsc) |
| void | PrtWidth (SwTwips nNewWidth) |
| SwTwips | PrtWidth () const |
| void | AddPrtWidth (const SwTwips nNew) |
| void | SubPrtWidth (const SwTwips nNew) |
| SwTwips | ExtraBlankWidth () const |
| void | ExtraBlankWidth (const SwTwips nNew) |
| SwTwips | GetHangingBaseline () const |
| void | SetHangingBaseline (const SwTwips nNewBaseline) |
| virtual SwLinePortion * | Insert (SwLinePortion *pPortion) |
| virtual SwLinePortion * | Append (SwLinePortion *pPortion) |
| SwLinePortion * | Cut (SwLinePortion *pVictim) |
| void | Truncate () |
| virtual SwLinePortion * | Compress () |
| void | SetWhichPor (const PortionType nNew) |
| PortionType | GetWhichPor () const |
| bool | InTextGrp () const |
| bool | InGlueGrp () const |
| bool | InTabGrp () const |
| bool | InHyphGrp () const |
| bool | InNumberGrp () const |
| bool | InFixGrp () const |
| bool | InFieldGrp () const |
| bool | InToxRefGrp () const |
| bool | InToxRefOrFieldGrp () const |
| bool | InExpGrp () const |
| bool | InFixMargGrp () const |
| bool | InSpaceGrp () const |
| bool | IsGrfNumPortion () const |
| bool | IsFlyCntPortion () const |
| bool | IsBlankPortion () const |
| bool | IsBreakPortion () const |
| bool | IsErgoSumPortion () const |
| bool | IsQuoVadisPortion () const |
| bool | IsTabLeftPortion () const |
| bool | IsTabRightPortion () const |
| bool | IsTabCenterPortion () const |
| bool | IsTabDecimalPortion () const |
| bool | IsFootnoteNumPortion () const |
| bool | IsFootnotePortion () const |
| bool | IsDropPortion () const |
| bool | IsLayPortion () const |
| bool | IsParaPortion () const |
| bool | IsMarginPortion () const |
| bool | IsFlyPortion () const |
| bool | IsHolePortion () const |
| bool | IsSoftHyphPortion () const |
| bool | IsPostItsPortion () const |
| bool | IsCombinedPortion () const |
| bool | IsTextPortion () const |
| bool | IsHangingPortion () const |
| bool | IsKernPortion () const |
| bool | IsArrowPortion () const |
| bool | IsMultiPortion () const |
| bool | IsNumberPortion () const |
| bool | IsControlCharPortion () const |
| SwLinePortion * | FindPrevPortion (const SwLinePortion *pRoot) |
| SwLinePortion * | FindLastPortion () |
| virtual TextFrameIndex | GetModelPositionForViewPoint (sal_uInt16 nOfst) const |
| the parameter is actually SwTwips apparently? More... | |
| virtual SwPosSize | GetTextSize (const SwTextSizeInfo &rInfo) const |
| void | CalcTextSize (const SwTextSizeInfo &rInfo) |
| virtual void | Paint (const SwTextPaintInfo &rInf) const =0 |
| void | PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const |
| virtual bool | Format (SwTextFormatInfo &rInf) |
| virtual void | FormatEOL (SwTextFormatInfo &rInf) |
| void | Move (SwTextPaintInfo &rInf) |
| virtual bool | GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const |
| virtual sal_uInt16 | GetViewWidth (const SwTextSizeInfo &rInf) const |
| virtual tools::Long | CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const |
| virtual void | HandlePortion (SwPortionHandler &rPH) const |
| bool | GetJoinBorderWithPrev () const |
| bool | GetJoinBorderWithNext () const |
| void | SetJoinBorderWithPrev (const bool bJoinPrev) |
| void | SetJoinBorderWithNext (const bool bJoinNext) |
| virtual void | dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &rOffset) const |
| void | dumpAsXmlAttributes (xmlTextWriterPtr writer, std::u16string_view rText, TextFrameIndex nOffset) const |
Public Member Functions inherited from SwPosSize | |
| SwPosSize (const SwTwips nW=0, const SwTwips nH=0) | |
| SwPosSize (const Size &rSize) | |
| virtual | ~SwPosSize () |
| SwPosSize (SwPosSize const &)=default | |
| SwPosSize (SwPosSize &&)=default | |
| SwPosSize & | operator= (SwPosSize const &)=default |
| SwPosSize & | operator= (SwPosSize &&)=default |
| SwTwips | Height () const |
| virtual void | Height (const SwTwips nNew, const bool=true) |
| SwTwips | Width () const |
| void | Width (const SwTwips nNew) |
| Size | SvLSize () const |
| void | SvLSize (const Size &rSize) |
| void | SvXSize (const Size &rSize) |
| SwPosSize & | operator= (const Size &rSize) |
Private Attributes | |
| SwRepaint | m_aRepaint |
| SwCharRange | m_aReformat |
| SwScriptInfo | m_aScriptInfo |
| tools::Long | m_nDelta |
| bool | m_bFlys: 1 |
| bool | m_bPrep: 1 |
| bool | m_bPrepWidows: 1 |
| bool | m_bPrepAdjust: 1 |
| bool | m_bPrepMustFit: 1 |
| bool | m_bFollowField: 1 |
| bool | m_bFixLineHeight: 1 |
| bool | m_bFootnoteNum: 1 |
| bool | m_bMargin: 1 |
Additional Inherited Members | |
Static Public Member Functions inherited from SwTextPortion | |
| static SwTextPortion * | CopyLinePortion (const SwLinePortion &rPortion) |
Protected Member Functions inherited from SwLinePortion | |
| SwLinePortion () | |
Protected Attributes inherited from SwLinePortion | |
| SwLinePortion * | mpNextPortion |
| TextFrameIndex | mnLineLength |
| SwTwips | mnAscent |
| SwTwips | mnHangingBaseline |
Collection of SwLineLayout instances, represents the paragraph text in Writer layout.
Typically owned by an SwTextFrame.
Definition at line 250 of file porlay.hxx.
| Enumerator | |
|---|---|
| OnlyNumbering | |
| FootnoteToo | |
Definition at line 322 of file porlay.hxx.
| SwParaPortion::SwParaPortion | ( | ) |
Definition at line 2636 of file porlay.cxx.
References FormatReset(), m_bFlys, m_bFootnoteNum, m_bMargin, Para, and SwLinePortion::SetWhichPor().
|
overridevirtual |
Definition at line 2643 of file porlay.cxx.
|
overridevirtual |
Reimplemented from SwLineLayout.
Definition at line 2710 of file porlay.cxx.
References SwLinePortion::dumpAsXmlAttributes(), and SwLinePortion::GetLen().
| const SwDropPortion * SwParaPortion::FindDropPortion | ( | ) | const |
Definition at line 2693 of file porlay.cxx.
References SwLinePortion::GetLen(), SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwLinePortion::IsDropPortion(), and SwLineLayout::IsDummy().
Referenced by SwTextMargin::DropInit(), and SwTextPainter::PaintDropPortion().
|
inline |
Definition at line 340 of file porlay.hxx.
References COMPLETE_STRING, m_aReformat, m_bFixLineHeight, m_bFollowField, m_bMargin, m_nDelta, and ResetPreps().
Referenced by SwTextFrame::FormatImpl(), and SwParaPortion().
|
inline |
Definition at line 290 of file porlay.hxx.
References m_nDelta.
Referenced by SwTextFrame::FormatAdjust(), SwTextFrame::FormatLine(), and SwTextFrame::InvalidateRange_().
| TextFrameIndex SwParaPortion::GetParLen | ( | ) | const |
Definition at line 2647 of file porlay.cxx.
References SwLinePortion::GetLen(), and SwLineLayout::GetNext().
Referenced by SwTextFrame::Prepare().
|
inline |
Definition at line 287 of file porlay.hxx.
References m_aReformat.
Referenced by SwTextFrame::CalcFollow(), SwTextFrame::CalcPreps(), SwTextFrame::Format(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatLine(), SwTextFormatter::FormatLine(), SwTextFrame::FormatOnceMore(), SwTextFrame::FormatQuick(), SwTextFormatInfo::GetReformatStart(), SwTextFrame::InvalidateRange_(), and SwTextFrame::SetOffset_().
|
inline |
Definition at line 288 of file porlay.hxx.
References m_aReformat.
|
inline |
Definition at line 285 of file porlay.hxx.
References m_aRepaint.
Referenced by SwTextAdjuster::CalcAdjLine(), SwTextFormatter::CalcBottomLine(), SwTextAdjuster::CalcDropRepaint(), SwTextFrame::CalcPreps(), SwTextFrame::ChgThisLines(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), SwTextAdjuster::FormatBlock(), SwTextFrame::FormatLine(), SwTextFrame::FormatQuick(), SwTextPaintInfo::GetPaintOfst(), SwTextFrame::GetPaintSwRect(), SwTextFrame::PaintSwFrame(), SwTextFrame::Prepare(), and SwTextPaintInfo::SetPaintOfst().
|
inline |
Definition at line 286 of file porlay.hxx.
References m_aRepaint.
|
inline |
Definition at line 291 of file porlay.hxx.
References m_aScriptInfo.
Referenced by SwTextAdjuster::CalcNewBlock(), SwFieldPortion::CheckScript(), SwTextPainter::CheckSpecialUnderline(), SwTextIter::CtorInitTextIter(), SwTextPaintInfo::DrawText_(), SwTextCursor::GetModelPositionForViewPoint(), SwTextFrame::GetScriptInfo(), SwTextGuess::Guess(), and lcl_SetScriptInval().
|
inline |
Definition at line 292 of file porlay.hxx.
References m_aScriptInfo.
| bool SwParaPortion::HasContentPortions | ( | ) | const |
Definition at line 2679 of file porlay.cxx.
References SwLinePortion::GetNextPortion(), SwLinePortion::InGlueGrp(), SwLinePortion::IsFlyPortion(), and SwLinePortion::IsKernPortion().
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements().
|
inline |
Definition at line 302 of file porlay.hxx.
References m_bFlys.
Referenced by SwTextFrame::Prepare().
| bool SwParaPortion::HasNumberingPortion | ( | FootnoteOrNot | eFootnote | ) | const |
Definition at line 2659 of file porlay.cxx.
References FootnoteToo, SwLinePortion::GetNextPortion(), SwLinePortion::InGlueGrp(), SwLinePortion::InHyphGrp(), SwLinePortion::InNumberGrp(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsFootnoteNumPortion(), and SwLinePortion::IsKernPortion().
Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), and SwTaggedPDFHelper::BeginNumberedListStructureElements().
|
inline |
Definition at line 316 of file porlay.hxx.
References m_bFixLineHeight.
Referenced by SwTextFrame::CalcLineSpace().
|
inline |
Definition at line 314 of file porlay.hxx.
References m_bFollowField.
Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::PrepWidows().
|
inline |
Definition at line 319 of file porlay.hxx.
References m_bFootnoteNum.
Referenced by SwTextFrame::Prepare().
|
inline |
Definition at line 321 of file porlay.hxx.
References m_bMargin.
Referenced by SwTextFrame::Format_().
|
inline |
Definition at line 306 of file porlay.hxx.
References m_bPrep.
Referenced by SwTextFrame::CalcPreps().
|
inline |
Definition at line 312 of file porlay.hxx.
References m_bPrepAdjust.
Referenced by SwTextFrame::CalcPreps().
|
inline |
Definition at line 310 of file porlay.hxx.
References m_bPrepMustFit.
Referenced by SwTextFrame::CalcPreps(), SwTextFrame::Format(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatImpl(), SwTextFrame::Prepare(), and SwTextFrame::ValidateFrame().
|
inline |
Definition at line 308 of file porlay.hxx.
References m_bPrepWidows.
Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::CalcPreps().
|
inline |
Definition at line 335 of file porlay.hxx.
References m_bPrep, m_bPrepAdjust, m_bPrepMustFit, and m_bPrepWidows.
Referenced by FormatReset().
|
inline |
Definition at line 289 of file porlay.hxx.
References m_nDelta.
Referenced by SwTextFrame::CalcFollow(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatLine(), SwTextFrame::FormatQuick(), SwTextFrame::InvalidateRange_(), and SwTextFrame::SetOffset_().
| void SwParaPortion::SetErgoSumNum | ( | const OUString & | rErgo | ) |
Definition at line 1547 of file txtftn.cxx.
References SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwLinePortion::IsQuoVadisPortion(), and SwQuoVadisPortion::SetNumber().
Referenced by SwTextFormatter::NewErgoSumPortion().
|
inline |
Definition at line 315 of file porlay.hxx.
References m_bFixLineHeight.
Referenced by SwTextFormatter::CalcRealHeight().
|
inline |
Definition at line 301 of file porlay.hxx.
References m_bFlys.
Referenced by SwTextAdjuster::CalcFlyPortion(), SwFlyPortion::Format(), and SwFlyCntPortion::Format().
|
inline |
Definition at line 313 of file porlay.hxx.
References m_bFollowField.
Referenced by SwTextIter::TruncLines().
|
inline |
Definition at line 318 of file porlay.hxx.
References m_bFootnoteNum.
Referenced by SwTextFormatter::WhichFirstPortion().
|
inline |
Definition at line 320 of file porlay.hxx.
References m_bMargin.
Referenced by SwLineLayout::CalcLine().
|
inline |
Definition at line 305 of file porlay.hxx.
References m_bPrep.
Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().
|
inline |
Definition at line 311 of file porlay.hxx.
References m_bPrepAdjust.
Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().
|
inline |
Definition at line 309 of file porlay.hxx.
References m_bPrepMustFit.
Referenced by SwTextFrame::CalcPreps(), SwTextFrame::Format(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatImpl(), SwTextFrame::Prepare(), and SwTextFrame::ValidateFrame().
|
inline |
Definition at line 307 of file porlay.hxx.
References m_bPrepWidows.
Referenced by SwTextFrame::PrepWidows().
| bool SwParaPortion::UpdateQuoVadis | ( | std::u16string_view | rQuo | ) |
Is called in SwTextFrame::Prepare()
Definition at line 1569 of file txtftn.cxx.
References SwLineLayout::GetNext(), SwLinePortion::GetNextPortion(), SwQuoVadisPortion::GetQuoText(), and SwLinePortion::IsQuoVadisPortion().
Referenced by SwTextFrame::Prepare().
|
private |
Definition at line 255 of file porlay.hxx.
Referenced by FormatReset(), and GetReformat().
|
private |
Definition at line 253 of file porlay.hxx.
Referenced by GetRepaint().
|
private |
Definition at line 256 of file porlay.hxx.
Referenced by GetScriptInfo().
|
private |
Definition at line 270 of file porlay.hxx.
Referenced by FormatReset(), IsFixLineHeight(), and SetFixLineHeight().
|
private |
Definition at line 263 of file porlay.hxx.
Referenced by HasFly(), SetFly(), and SwParaPortion().
|
private |
Definition at line 268 of file porlay.hxx.
Referenced by FormatReset(), IsFollowField(), and SetFollowField().
|
private |
Definition at line 271 of file porlay.hxx.
Referenced by IsFootnoteNum(), SetFootnoteNum(), and SwParaPortion().
|
private |
Definition at line 272 of file porlay.hxx.
Referenced by FormatReset(), IsMargin(), SetMargin(), and SwParaPortion().
|
private |
Definition at line 264 of file porlay.hxx.
Referenced by IsPrep(), ResetPreps(), and SetPrep().
|
private |
Definition at line 266 of file porlay.hxx.
Referenced by IsPrepAdjust(), ResetPreps(), and SetPrepAdjust().
|
private |
Definition at line 267 of file porlay.hxx.
Referenced by IsPrepMustFit(), ResetPreps(), and SetPrepMustFit().
|
private |
Definition at line 265 of file porlay.hxx.
Referenced by IsPrepWidows(), ResetPreps(), and SetPrepWidows().
|
private |
Definition at line 259 of file porlay.hxx.
Referenced by FormatReset(), GetDelta(), and SetDelta().