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:
Collaboration diagram for SwTextPortion:

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)
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 ()
void CalcTextSize (const SwTextSizeInfo &rInfo)
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
void Move (SwTextPaintInfo &rInf)
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) const
bool GetJoinBorderWithPrev () const
bool GetJoinBorderWithNext () const
void SetJoinBorderWithPrev (const bool bJoinPrev)
void SetJoinBorderWithNext (const bool bJoinNext)
virtual void dumpAsXml (xmlTextWriterPtr pWriter) 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
TextFrameIndex mnLineLength
SwTwips mnAscent

Detailed Description

This portion represents a part of the paragraph string.

Definition at line 26 of file portxt.hxx.

Constructor & Destructor Documentation

SwTextPortion::SwTextPortion ( )

Definition at line 33 of file portxt.hxx.

References SwLinePortion::SetWhichPor(), and Text.

Member Function Documentation

void SwTextPortion::BreakCut ( SwTextFormatInfo rInf,
const SwTextGuess rGuess 
void SwTextPortion::BreakUnderflow ( SwTextFormatInfo rInf)
tools::Long SwTextPortion::CalcSpacing ( tools::Long  nSpaceAdd,
const SwTextSizeInfo rInf 
) const
SwTextPortion * SwTextPortion::CopyLinePortion ( const SwLinePortion rPortion)
bool SwTextPortion::CreateHyphen ( SwTextFormatInfo rInf,
SwTextGuess const &  rGuess 
bool SwTextPortion::Format ( SwTextFormatInfo rInf)
bool SwTextPortion::Format_ ( SwTextFormatInfo rInf)

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::FieldDiff(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), SwTextGuess::GetHangingPortion(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwTextSizeInfo::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, SwPosSize::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().

Referenced by Format().

void SwTextPortion::FormatEOL ( SwTextFormatInfo rInf)
bool SwTextPortion::GetExpText ( const SwTextSizeInfo rInf,
OUString &  rText 
) const
TextFrameIndex SwTextPortion::GetModelPositionForViewPoint ( sal_uInt16  nOfst) const

the parameter is actually SwTwips apparently?

Reimplemented from SwLinePortion.

Reimplemented in SwNumberPortion, SwErgoSumPortion, SwDropPortion, and SwExpandPortion.

Definition at line 501 of file portxt.cxx.

References SwLinePortion::GetModelPositionForViewPoint().

TextFrameIndex SwTextPortion::GetSpaceCnt ( const SwTextSizeInfo rInf,
TextFrameIndex rCnt 
) const
SwPosSize SwTextPortion::GetTextSize ( const SwTextSizeInfo rInfo) const
void SwTextPortion::HandlePortion ( SwPortionHandler rPH) const
void SwTextPortion::Paint ( const SwTextPaintInfo rInf) const

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