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

Non-breaking space or non-breaking hyphen. More...

#include <porexp.hxx>

Inheritance diagram for SwBlankPortion:
Collaboration diagram for SwBlankPortion:

Public Member Functions

 SwBlankPortion (sal_Unicode cCh, bool bMult=false)
virtual SwLinePortionCompress () override
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override
virtual void FormatEOL (SwTextFormatInfo &rInf) override
 Format End of Line. More...
virtual bool Format (SwTextFormatInfo &rInf) override
 Pass on the underflows and trigger them ourselves! More...
virtual void Paint (const SwTextPaintInfo &rInf) const override
virtual void HandlePortion (SwPortionHandler &rPH) const override
void dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
- Public Member Functions inherited from SwExpandPortion
 SwExpandPortion ()
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const override
 the parameter is actually SwTwips apparently? More...
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const override
- Public Member Functions inherited from SwTextPortion
 SwTextPortion ()
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)
- 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 ()
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)
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 sal_uInt16 MayUnderflow (const SwTextFormatInfo &rInf, TextFrameIndex nIdx, bool bUnderflow)
 If a Line is full of HardBlanks and overflows, we must not generate underflows! Causes problems with Fly. More...
- Static Public Member Functions inherited from SwTextPortion
static SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)

Private Attributes

sal_Unicode m_cChar
bool m_bMulti

Additional Inherited Members

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

Detailed Description

Non-breaking space or non-breaking hyphen.

Definition at line 42 of file porexp.hxx.

Constructor & Destructor Documentation

SwBlankPortion::SwBlankPortion ( sal_Unicode  cCh,
bool  bMult = false 

Definition at line 47 of file porexp.hxx.

References Blank, SwLinePortion::SetLen(), and SwLinePortion::SetWhichPor().

Member Function Documentation

SwLinePortion * SwBlankPortion::Compress ( )

Reimplemented from SwLinePortion.

Definition at line 107 of file porexp.cxx.

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

Reimplemented from SwExpandPortion.

Definition at line 223 of file porexp.cxx.

References SwLinePortion::dumpAsXmlAttributes(), SwLinePortion::GetLen(), m_bMulti, m_cChar, and void().

bool SwBlankPortion::Format ( SwTextFormatInfo rInf)
void SwBlankPortion::FormatEOL ( SwTextFormatInfo rInf)
bool SwBlankPortion::GetExpText ( const SwTextSizeInfo rInf,
OUString &  rText 
) const

Reimplemented from SwExpandPortion.

Definition at line 212 of file porexp.cxx.

References m_cChar.

void SwBlankPortion::HandlePortion ( SwPortionHandler rPH) const
sal_uInt16 SwBlankPortion::MayUnderflow ( const SwTextFormatInfo rInf,
TextFrameIndex  nIdx,
bool  bUnderflow 
void SwBlankPortion::Paint ( const SwTextPaintInfo rInf) const

Reimplemented from SwExpandPortion.

Definition at line 205 of file porexp.cxx.

References Blank, SwTextPaintInfo::DrawViewOpt(), m_bMulti, and SwExpandPortion::Paint().

Referenced by SwDoubleLinePortion::PaintBracket().

Member Data Documentation

bool SwBlankPortion::m_bMulti

Definition at line 45 of file porexp.hxx.

Referenced by dumpAsXml(), and Paint().

sal_Unicode SwBlankPortion::m_cChar

Definition at line 44 of file porexp.hxx.

Referenced by dumpAsXml(), GetExpText(), and HandlePortion().

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