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

Collection of SwLineLayout instances, represents the paragraph text in Writer layout. More...

#include <porlay.hxx>

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

Public Types

enum  FootnoteOrNot {
  OnlyNumbering ,
  FootnoteToo
}
 

Public Member Functions

 SwParaPortion ()
 
virtual ~SwParaPortion () override
 
void FormatReset ()
 
void ResetPreps ()
 
SwRepaintGetRepaint ()
 
const SwRepaintGetRepaint () const
 
SwCharRangeGetReformat ()
 
const SwCharRangeGetReformat () const
 
void SetDelta (tools::Long nDelta)
 
tools::Long GetDelta () const
 
SwScriptInfoGetScriptInfo ()
 
const SwScriptInfoGetScriptInfo () 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 SwDropPortionFindDropPortion () 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 SwLinePortionInsert (SwLinePortion *pPortion) override
 
virtual SwLinePortionAppend (SwLinePortion *pPortion) override
 
SwLinePortionGetFirstPortion () 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
 
SwLineLayoutGetNext ()
 
const SwLineLayoutGetNext () 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
 
SwMarginPortionCalcLeftMargin ()
 
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 ()
 
SwLinePortionGetNextPortion () const
 
SwLinePortionoperator= (const SwLinePortion &rPortion)
 
TextFrameIndex GetLen () const
 
void SetLen (TextFrameIndex const nLen)
 
void SetNextPortion (SwLinePortion *pNew)
 
SwTwipsGetAscent ()
 
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 SwLinePortionInsert (SwLinePortion *pPortion)
 
virtual SwLinePortionAppend (SwLinePortion *pPortion)
 
SwLinePortionCut (SwLinePortion *pVictim)
 
void Truncate ()
 
virtual SwLinePortionCompress ()
 
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
 
SwLinePortionFindPrevPortion (const SwLinePortion *pRoot)
 
SwLinePortionFindLastPortion ()
 
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
 
SwPosSizeoperator= (SwPosSize const &)=default
 
SwPosSizeoperator= (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)
 
SwPosSizeoperator= (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 SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)
 
- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
 
- Protected Attributes inherited from SwLinePortion
SwLinePortionmpNextPortion
 
TextFrameIndex mnLineLength
 
SwTwips mnAscent
 
SwTwips mnHangingBaseline
 

Detailed Description

Collection of SwLineLayout instances, represents the paragraph text in Writer layout.

Typically owned by an SwTextFrame.

Definition at line 250 of file porlay.hxx.

Member Enumeration Documentation

◆ FootnoteOrNot

Enumerator
OnlyNumbering 
FootnoteToo 

Definition at line 322 of file porlay.hxx.

Constructor & Destructor Documentation

◆ SwParaPortion()

SwParaPortion::SwParaPortion ( )

◆ ~SwParaPortion()

SwParaPortion::~SwParaPortion ( )
overridevirtual

Definition at line 2643 of file porlay.cxx.

Member Function Documentation

◆ dumpAsXml()

void SwParaPortion::dumpAsXml ( xmlTextWriterPtr  pWriter,
const OUString &  rText,
TextFrameIndex nOffset 
) const
overridevirtual

Reimplemented from SwLineLayout.

Definition at line 2710 of file porlay.cxx.

References SwLinePortion::dumpAsXmlAttributes(), and SwLinePortion::GetLen().

◆ FindDropPortion()

const SwDropPortion * SwParaPortion::FindDropPortion ( ) const

◆ FormatReset()

void SwParaPortion::FormatReset ( )
inline

◆ GetDelta()

tools::Long SwParaPortion::GetDelta ( ) const
inline

◆ GetParLen()

TextFrameIndex SwParaPortion::GetParLen ( ) const

Definition at line 2647 of file porlay.cxx.

References SwLinePortion::GetLen(), and SwLineLayout::GetNext().

Referenced by SwTextFrame::Prepare().

◆ GetReformat() [1/2]

SwCharRange & SwParaPortion::GetReformat ( )
inline

◆ GetReformat() [2/2]

const SwCharRange & SwParaPortion::GetReformat ( ) const
inline

Definition at line 288 of file porlay.hxx.

References m_aReformat.

◆ GetRepaint() [1/2]

SwRepaint & SwParaPortion::GetRepaint ( )
inline

◆ GetRepaint() [2/2]

const SwRepaint & SwParaPortion::GetRepaint ( ) const
inline

Definition at line 286 of file porlay.hxx.

References m_aRepaint.

◆ GetScriptInfo() [1/2]

SwScriptInfo & SwParaPortion::GetScriptInfo ( )
inline

◆ GetScriptInfo() [2/2]

const SwScriptInfo & SwParaPortion::GetScriptInfo ( ) const
inline

Definition at line 292 of file porlay.hxx.

References m_aScriptInfo.

◆ HasContentPortions()

bool SwParaPortion::HasContentPortions ( ) const

◆ HasFly()

bool SwParaPortion::HasFly ( ) const
inline

Definition at line 302 of file porlay.hxx.

References m_bFlys.

Referenced by SwTextFrame::Prepare().

◆ HasNumberingPortion()

bool SwParaPortion::HasNumberingPortion ( FootnoteOrNot  eFootnote) const

◆ IsFixLineHeight()

bool SwParaPortion::IsFixLineHeight ( ) const
inline

Definition at line 316 of file porlay.hxx.

References m_bFixLineHeight.

Referenced by SwTextFrame::CalcLineSpace().

◆ IsFollowField()

bool SwParaPortion::IsFollowField ( ) const
inline

Definition at line 314 of file porlay.hxx.

References m_bFollowField.

Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::PrepWidows().

◆ IsFootnoteNum()

bool SwParaPortion::IsFootnoteNum ( ) const
inline

Definition at line 319 of file porlay.hxx.

References m_bFootnoteNum.

Referenced by SwTextFrame::Prepare().

◆ IsMargin()

bool SwParaPortion::IsMargin ( ) const
inline

Definition at line 321 of file porlay.hxx.

References m_bMargin.

Referenced by SwTextFrame::Format_().

◆ IsPrep()

bool SwParaPortion::IsPrep ( ) const
inline

Definition at line 306 of file porlay.hxx.

References m_bPrep.

Referenced by SwTextFrame::CalcPreps().

◆ IsPrepAdjust()

bool SwParaPortion::IsPrepAdjust ( ) const
inline

Definition at line 312 of file porlay.hxx.

References m_bPrepAdjust.

Referenced by SwTextFrame::CalcPreps().

◆ IsPrepMustFit()

bool SwParaPortion::IsPrepMustFit ( ) const
inline

◆ IsPrepWidows()

bool SwParaPortion::IsPrepWidows ( ) const
inline

Definition at line 308 of file porlay.hxx.

References m_bPrepWidows.

Referenced by SwTextFrame::CalcFollow(), and SwTextFrame::CalcPreps().

◆ ResetPreps()

void SwParaPortion::ResetPreps ( )
inline

Definition at line 335 of file porlay.hxx.

References m_bPrep, m_bPrepAdjust, m_bPrepMustFit, and m_bPrepWidows.

Referenced by FormatReset().

◆ SetDelta()

void SwParaPortion::SetDelta ( tools::Long  nDelta)
inline

◆ SetErgoSumNum()

void SwParaPortion::SetErgoSumNum ( const OUString &  rErgo)

◆ SetFixLineHeight()

void SwParaPortion::SetFixLineHeight ( )
inline

Definition at line 315 of file porlay.hxx.

References m_bFixLineHeight.

Referenced by SwTextFormatter::CalcRealHeight().

◆ SetFly()

void SwParaPortion::SetFly ( )
inline

Definition at line 301 of file porlay.hxx.

References m_bFlys.

Referenced by SwTextAdjuster::CalcFlyPortion(), SwFlyPortion::Format(), and SwFlyCntPortion::Format().

◆ SetFollowField()

void SwParaPortion::SetFollowField ( const bool  bNew)
inline

Definition at line 313 of file porlay.hxx.

References m_bFollowField.

Referenced by SwTextIter::TruncLines().

◆ SetFootnoteNum()

void SwParaPortion::SetFootnoteNum ( const bool  bNew)
inline

Definition at line 318 of file porlay.hxx.

References m_bFootnoteNum.

Referenced by SwTextFormatter::WhichFirstPortion().

◆ SetMargin()

void SwParaPortion::SetMargin ( const bool  bNew = true)
inline

Definition at line 320 of file porlay.hxx.

References m_bMargin.

Referenced by SwLineLayout::CalcLine().

◆ SetPrep()

void SwParaPortion::SetPrep ( )
inline

Definition at line 305 of file porlay.hxx.

References m_bPrep.

Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().

◆ SetPrepAdjust()

void SwParaPortion::SetPrepAdjust ( )
inline

Definition at line 311 of file porlay.hxx.

References m_bPrepAdjust.

Referenced by SwTextFrame::CalcLineSpace(), SwTextFrame::Format(), and SwTextFrame::Prepare().

◆ SetPrepMustFit()

void SwParaPortion::SetPrepMustFit ( const bool  bNew)
inline

◆ SetPrepWidows()

void SwParaPortion::SetPrepWidows ( )
inline

Definition at line 307 of file porlay.hxx.

References m_bPrepWidows.

Referenced by SwTextFrame::PrepWidows().

◆ UpdateQuoVadis()

bool SwParaPortion::UpdateQuoVadis ( std::u16string_view  rQuo)

Member Data Documentation

◆ m_aReformat

SwCharRange SwParaPortion::m_aReformat
private

Definition at line 255 of file porlay.hxx.

Referenced by FormatReset(), and GetReformat().

◆ m_aRepaint

SwRepaint SwParaPortion::m_aRepaint
private

Definition at line 253 of file porlay.hxx.

Referenced by GetRepaint().

◆ m_aScriptInfo

SwScriptInfo SwParaPortion::m_aScriptInfo
private

Definition at line 256 of file porlay.hxx.

Referenced by GetScriptInfo().

◆ m_bFixLineHeight

bool SwParaPortion::m_bFixLineHeight
private

Definition at line 270 of file porlay.hxx.

Referenced by FormatReset(), IsFixLineHeight(), and SetFixLineHeight().

◆ m_bFlys

bool SwParaPortion::m_bFlys
private

Definition at line 263 of file porlay.hxx.

Referenced by HasFly(), SetFly(), and SwParaPortion().

◆ m_bFollowField

bool SwParaPortion::m_bFollowField
private

Definition at line 268 of file porlay.hxx.

Referenced by FormatReset(), IsFollowField(), and SetFollowField().

◆ m_bFootnoteNum

bool SwParaPortion::m_bFootnoteNum
private

Definition at line 271 of file porlay.hxx.

Referenced by IsFootnoteNum(), SetFootnoteNum(), and SwParaPortion().

◆ m_bMargin

bool SwParaPortion::m_bMargin
private

Definition at line 272 of file porlay.hxx.

Referenced by FormatReset(), IsMargin(), SetMargin(), and SwParaPortion().

◆ m_bPrep

bool SwParaPortion::m_bPrep
private

Definition at line 264 of file porlay.hxx.

Referenced by IsPrep(), ResetPreps(), and SetPrep().

◆ m_bPrepAdjust

bool SwParaPortion::m_bPrepAdjust
private

Definition at line 266 of file porlay.hxx.

Referenced by IsPrepAdjust(), ResetPreps(), and SetPrepAdjust().

◆ m_bPrepMustFit

bool SwParaPortion::m_bPrepMustFit
private

Definition at line 267 of file porlay.hxx.

Referenced by IsPrepMustFit(), ResetPreps(), and SetPrepMustFit().

◆ m_bPrepWidows

bool SwParaPortion::m_bPrepWidows
private

Definition at line 265 of file porlay.hxx.

Referenced by IsPrepWidows(), ResetPreps(), and SetPrepWidows().

◆ m_nDelta

tools::Long SwParaPortion::m_nDelta
private

Definition at line 259 of file porlay.hxx.

Referenced by FormatReset(), GetDelta(), and SetDelta().


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