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

This portion represents a part of the paragraph string. More...

#include <portxt.hxx>

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

Public Member Functions

 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)
 

Static Public Member Functions

static SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)
 

Private Member Functions

void BreakCut (SwTextFormatInfo &rInf, const SwTextGuess &rGuess)
 
void BreakUnderflow (SwTextFormatInfo &rInf)
 
bool Format_ (SwTextFormatInfo &rInf)
 

Additional Inherited Members

- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
 
- Protected Attributes inherited from SwLinePortion
SwLinePortionmpNextPortion
 
TextFrameIndex mnLineLength
 
SwTwips mnAscent
 
SwTwips mnHangingBaseline
 

Detailed Description

This portion represents a part of the paragraph string.

Definition at line 26 of file portxt.hxx.

Constructor & Destructor Documentation

◆ SwTextPortion()

SwTextPortion::SwTextPortion ( )
inline

Definition at line 33 of file portxt.hxx.

References SwLinePortion::SetWhichPor(), and Text.

Member Function Documentation

◆ BreakCut()

void SwTextPortion::BreakCut ( SwTextFormatInfo rInf,
const SwTextGuess rGuess 
)
private

◆ BreakUnderflow()

void SwTextPortion::BreakUnderflow ( SwTextFormatInfo rInf)
private

◆ CalcSpacing()

tools::Long SwTextPortion::CalcSpacing ( tools::Long  nSpaceAdd,
const SwTextSizeInfo rInf 
) const
overridevirtual

◆ CopyLinePortion()

SwTextPortion * SwTextPortion::CopyLinePortion ( const SwLinePortion rPortion)
static

◆ CreateHyphen()

bool SwTextPortion::CreateHyphen ( SwTextFormatInfo rInf,
SwTextGuess const &  rGuess 
)

◆ Format()

bool SwTextPortion::Format ( SwTextFormatInfo rInf)
overridevirtual

◆ Format_()

bool SwTextPortion::Format_ ( SwTextFormatInfo rInf)
private

Definition at line 280 of file portxt.cxx.

References SwTextGuess::AlternativeSpelling(), BreakCut(), SwTextGuess::BreakPos(), SwTextGuess::BreakStart(), BreakUnderflow(), SwTextGuess::BreakWidth(), CH_BLANK, CH_FULL_BLANK, CH_SIX_PER_EM, SwFont::CheckKerning(), SwTextFormatInfo::ChgHyph(), COMPLETE_STRING, CreateHyphen(), SwTextGuess::ExtraBlankWidth(), SwLinePortion::ExtraBlankWidth(), SwTextGuess::FieldDiff(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), SwTextGuess::GetHangingPortion(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineStart(), SwTextFormatInfo::GetLineWidth(), SwTextFormatInfo::GetRoot(), SwTextFormatInfo::GetSoftHyphPos(), SwTextSizeInfo::GetTextFrame(), SwTextGuess::Guess(), SwPosSize::Height(), SwTextGuess::HyphWord(), SwLinePortion::InExpGrp(), SwLinePortion::InFieldGrp(), SwLinePortion::InNumberGrp(), SwLinePortion::Insert(), SwLinePortion::InTabGrp(), SwLinePortion::IsBlankPortion(), SwLinePortion::IsErgoSumPortion(), SwTextFormatInfo::IsFakeLineStart(), SwTextSizeInfo::IsFirstMulti(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsFootnotePortion(), SwTextFormatInfo::IsHyphenate(), SwTextSizeInfo::IsOtherThanFootnoteInside(), SwTextFormatInfo::IsUnderflow(), lcl_HasContent(), SwBlankPortion::MayUnderflow(), SwTextGuess::ReleaseHangingPortion(), SwLinePortion::SetAscent(), SwLineLayout::SetEndHyph(), SwLinePortion::SetLen(), SwLineLayout::SetMidHyph(), SwTextFormatInfo::SetSoftHyphPos(), TAB_COMPAT, SwTextFormatInfo::Width(), SwPosSize::Width(), and SwTextPaintInfo::X().

Referenced by Format().

◆ FormatEOL()

void SwTextPortion::FormatEOL ( SwTextFormatInfo rInf)
overridevirtual

◆ GetExpText()

bool SwTextPortion::GetExpText ( const SwTextSizeInfo rInf,
OUString &  rText 
) const
overridevirtual

◆ GetModelPositionForViewPoint()

TextFrameIndex SwTextPortion::GetModelPositionForViewPoint ( sal_uInt16  nOfst) const
overridevirtual

the parameter is actually SwTwips apparently?

Reimplemented from SwLinePortion.

Reimplemented in SwDropPortion, SwExpandPortion, SwNumberPortion, and SwErgoSumPortion.

Definition at line 504 of file portxt.cxx.

References SwLinePortion::GetModelPositionForViewPoint().

◆ GetSpaceCnt()

TextFrameIndex SwTextPortion::GetSpaceCnt ( const SwTextSizeInfo rInf,
TextFrameIndex rCnt 
) const

◆ GetTextSize()

SwPosSize SwTextPortion::GetTextSize ( const SwTextSizeInfo rInfo) const
overridevirtual

◆ HandlePortion()

void SwTextPortion::HandlePortion ( SwPortionHandler rPH) const
overridevirtual

◆ Paint()

void SwTextPortion::Paint ( const SwTextPaintInfo rInf) const
overridevirtual

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