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

#include <porrst.hxx>

Inheritance diagram for SwBreakPortion:
Collaboration diagram for SwBreakPortion:

Public Member Functions

 SwBreakPortion (const SwLinePortion &rPortion, const SwTextAttr *pAttr)
virtual SwLinePortionCompress () override
virtual void Paint (const SwTextPaintInfo &rInf) const override
virtual bool Format (SwTextFormatInfo &rInf) override
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) const override
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const override
 the parameter is actually SwTwips apparently? More...
virtual void HandlePortion (SwPortionHandler &rPH) const override
void dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
void SetRedline (const RedlineType eRedline)
SwLineBreakClear GetClear () const
- 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 GetHangingBaseline () const
void SetHangingBaseline (const SwTwips nNewBaseline)
virtual SwLinePortionInsert (SwLinePortion *pPortion)
virtual SwLinePortionAppend (SwLinePortion *pPortion)
SwLinePortionCut (SwLinePortion *pVictim)
void Truncate ()
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 SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const
void CalcTextSize (const SwTextSizeInfo &rInfo)
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
virtual void FormatEOL (SwTextFormatInfo &rInf)
void Move (SwTextPaintInfo &rInf)
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const
virtual tools::Long CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const
bool GetJoinBorderWithPrev () const
bool GetJoinBorderWithNext () const
void SetJoinBorderWithPrev (const bool bJoinPrev)
void SetJoinBorderWithNext (const bool bJoinNext)
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 Attributes

static constexpr OUStringLiteral S_NOBREAK_FOR_REDLINE = u"\u00A0"

Private Attributes

RedlineType m_eRedline
SwLineBreakClear m_eClear
 Tracks the type of the breaking clear from SwTextLineBreak, if there is one. More...
SwTwips m_nTextHeight
 Height of the line-break character itself, without spacing added for clearing. More...

Additional Inherited Members

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

Detailed Description

Definition at line 58 of file porrst.hxx.

Constructor & Destructor Documentation

SwBreakPortion::SwBreakPortion ( const SwLinePortion rPortion,
const SwTextAttr pAttr 

Member Function Documentation

SwLinePortion * SwBreakPortion::Compress ( )

Reimplemented from SwLinePortion.

Definition at line 123 of file porrst.cxx.

References SwLinePortion::GetNextPortion(), and SwLinePortion::InTextGrp().

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

Reimplemented from SwLinePortion.

Definition at line 205 of file porrst.cxx.

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

bool SwBreakPortion::Format ( SwTextFormatInfo rInf)
SwLineBreakClear SwBreakPortion::GetClear ( ) const

Definition at line 218 of file porrst.cxx.

References m_eClear.

Referenced by SwLineLayout::CalcLine(), SwTextPaintInfo::DrawLineBreak(), and SwTextFly::GetMaxBottom().

TextFrameIndex SwBreakPortion::GetModelPositionForViewPoint ( sal_uInt16  nOfst) const

the parameter is actually SwTwips apparently?

Reimplemented from SwLinePortion.

Definition at line 115 of file porrst.cxx.

sal_uInt16 SwBreakPortion::GetViewWidth ( const SwTextSizeInfo rInf) const

Reimplemented from SwLinePortion.

Definition at line 120 of file porrst.cxx.

void SwBreakPortion::HandlePortion ( SwPortionHandler rPH) const

Reimplemented from SwLinePortion.

Definition at line 200 of file porrst.cxx.

References SwLinePortion::GetLen(), SwLinePortion::GetWhichPor(), and SwPortionHandler::Text().

void SwBreakPortion::Paint ( const SwTextPaintInfo rInf) const
void SwBreakPortion::SetRedline ( const RedlineType  eRedline)

Definition at line 84 of file porrst.hxx.

Member Data Documentation

SwLineBreakClear SwBreakPortion::m_eClear

Tracks the type of the breaking clear from SwTextLineBreak, if there is one.

Definition at line 63 of file porrst.hxx.

Referenced by Format(), GetClear(), and SwBreakPortion().

RedlineType SwBreakPortion::m_eRedline

Definition at line 60 of file porrst.hxx.

Referenced by Paint(), and SwBreakPortion().

SwTwips SwBreakPortion::m_nTextHeight

Height of the line-break character itself, without spacing added for clearing.

Definition at line 66 of file porrst.hxx.

Referenced by dumpAsXml(), Format(), Paint(), and SwBreakPortion().

constexpr OUStringLiteral SwBreakPortion::S_NOBREAK_FOR_REDLINE = u"\u00A0"

Definition at line 83 of file porrst.hxx.

Referenced by Paint().

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