LibreOffice Module sw (master)  1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
SwFieldPortion Class Reference

#include <porfld.hxx>

Inheritance diagram for SwFieldPortion:
Collaboration diagram for SwFieldPortion:

Public Member Functions

 SwFieldPortion (const SwFieldPortion &rField)
 SwFieldPortion (const OUString &rExpand, std::unique_ptr< SwFont > pFnt=nullptr, bool bPlaceHolder=false, TextFrameIndex nLen=TextFrameIndex(1))
virtual ~SwFieldPortion () override
void TakeNextOffset (const SwFieldPortion *pField)
void CheckScript (const SwTextSizeInfo &rInf)
bool HasFont () const
const SwFontGetFont () const
const OUString & GetExp () const
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override
virtual bool Format (SwTextFormatInfo &rInf) override
virtual void Paint (const SwTextPaintInfo &rInf) const override
virtual SwLinePortionCompress () override
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) const override
bool IsFollow () const
void SetFollow (bool bNew)
bool IsLeft () const
void SetLeft (bool bNew)
bool IsHide () const
void SetHide (bool bNew)
bool IsCenter () const
void SetCenter (bool bNew)
bool HasFollow () const
void SetHasFollow (bool bNew)
TextFrameIndex GetNextOffset () const
void SetNextOffset (TextFrameIndex nNew)
TextFrameIndex GetFieldLen () const
virtual SwFieldPortionClone (const OUString &rExpand) const
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) 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...
- Public Member Functions inherited from SwTextPortion
 SwTextPortion ()
virtual void FormatEOL (SwTextFormatInfo &rInf) 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)
- 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 ()
void CalcTextSize (const SwTextSizeInfo &rInfo)
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
void Move (SwTextPaintInfo &rInf)
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)

Public Attributes

sal_uInt16 m_nAttrFieldType

Protected Member Functions

void SetFont (std::unique_ptr< SwFont > pNew)
bool IsNoLength () const
void SetNoLength ()
- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()

Protected Attributes

OUString m_aExpand
std::unique_ptr< SwFontm_pFont
TextFrameIndex m_nNextOffset
TextFrameIndex m_nNextScriptChg
TextFrameIndex m_nFieldLen
sal_uInt16 m_nViewWidth
bool m_bFollow: 1
bool m_bLeft: 1
bool m_bHide: 1
bool m_bCenter: 1
bool m_bHasFollow: 1
bool m_bAnimated: 1
bool m_bNoPaint: 1
bool m_bReplace: 1
const bool m_bPlaceHolder: 1
bool m_bNoLength: 1
- Protected Attributes inherited from SwLinePortion
TextFrameIndex mnLineLength
SwTwips mnAscent
SwTwips mnHangingBaseline


class SwTextFormatter

Additional Inherited Members

- Static Public Member Functions inherited from SwTextPortion
static SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)

Detailed Description

Definition at line 34 of file porfld.hxx.

Constructor & Destructor Documentation

SwFieldPortion::SwFieldPortion ( const SwFieldPortion rField)

Definition at line 88 of file porfld.cxx.

References Field, GetExp, GetFont(), HasFont(), m_pFont, and SwLinePortion::SetWhichPor().

Referenced by Clone().

SwFieldPortion::SwFieldPortion ( const OUString &  rExpand,
std::unique_ptr< SwFont pFnt = nullptr,
bool  bPlaceHolder = false,
TextFrameIndex  nLen = TextFrameIndex(1) 

Definition at line 75 of file porfld.cxx.

References false, Field, and SwLinePortion::SetWhichPor().

SwFieldPortion::~SwFieldPortion ( )

Definition at line 113 of file porfld.cxx.

References m_pFont.

Member Function Documentation

void SwFieldPortion::CheckScript ( const SwTextSizeInfo rInf)
SwFieldPortion * SwFieldPortion::Clone ( const OUString &  rExpand) const
SwLinePortion * SwFieldPortion::Compress ( )

Reimplemented from SwLinePortion.

Definition at line 49 of file porfld.cxx.

References SwLinePortion::Compress(), SwLinePortion::GetLen(), and m_aExpand.

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

Reimplemented from SwExpandPortion.

Definition at line 475 of file porfld.cxx.

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

bool SwFieldPortion::Format ( SwTextFormatInfo rInf)

Reimplemented from SwExpandPortion.

Reimplemented in SwCombinedPortion, SwGrfNumPortion, SwNumberPortion, SwErgoSumPortion, SwQuoVadisPortion, and SwFootnotePortion.

Definition at line 303 of file porfld.cxx.

References CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, CHAR_WJ, CHAR_ZWSP, Clone(), COMPLETE_STRING, SwTextPortion::Format(), SwLinePortion::FormatEOL(), SwTextSizeInfo::GetAscent(), SwFont::GetBottomBorderSpace(), GetFont(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), SwTextFormatInfo::GetLineStart(), SwTextSizeInfo::GetOut(), SwTextPaintInfo::GetPos(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextHeight(), SwFont::GetTopBorderSpace(), SwTextFormatInfo::GetUnderflow(), SwTextFormatInfo::GetUnderScorePos(), SwTextSizeInfo::GetVsh(), SwPosSize::Height(), IsFollow(), SwLinePortion::IsQuoVadisPortion(), m_aExpand, m_bNoLength, m_nFieldLen, m_nNextOffset, m_nNextScriptChg, m_pFont, SwTextFormatInfo::ScanPortionEnd(), SwLinePortion::SetAscent(), SwLayoutModeModifier::SetAuto(), SetFollow(), SetFont(), SetHasFollow(), SwTextFormatInfo::SetHookChar(), SwLinePortion::SetLen(), SwTextSizeInfo::SetLen(), SwTextFormatInfo::SetLineStart(), SetNextOffset(), SwTextSizeInfo::SetNotEOL(), SwTextFormatInfo::SetRest(), SwTextFormatInfo::SetUnderScorePos(), SwPosSize::Width(), and SwTextFormatInfo::Width().

Referenced by SwFootnotePortion::Format(), SwQuoVadisPortion::Format(), SwErgoSumPortion::Format(), SwNumberPortion::Format(), and SwGrfNumPortion::Format().

const OUString& SwFieldPortion::GetExp ( ) const

Definition at line 72 of file porfld.hxx.

References m_aExpand.

Referenced by SwTextCursor::GetCharRect_().

bool SwFieldPortion::GetExpText ( const SwTextSizeInfo rInf,
OUString &  rText 
) const
TextFrameIndex SwFieldPortion::GetFieldLen ( ) const

Definition at line 100 of file porfld.hxx.

References m_nFieldLen.

const SwFont* SwFieldPortion::GetFont ( ) const

Definition at line 70 of file porfld.hxx.

Referenced by Format(), and SwFieldPortion().

TextFrameIndex SwFieldPortion::GetNextOffset ( ) const

Definition at line 97 of file porfld.hxx.

References m_nNextOffset.

Referenced by SwRubyPortion::CalcRubyOffset(), and TakeNextOffset().

SwPosSize SwFieldPortion::GetTextSize ( const SwTextSizeInfo rInfo) const

Reimplemented from SwExpandPortion.

Reimplemented in SwFootnotePortion.

Definition at line 487 of file porfld.cxx.

References SwExpandPortion::GetTextSize(), and m_pFont.

sal_uInt16 SwFieldPortion::GetViewWidth ( const SwTextSizeInfo rInf) const
void SwFieldPortion::HandlePortion ( SwPortionHandler rPH) const
bool SwFieldPortion::HasFollow ( ) const
bool SwFieldPortion::HasFont ( ) const

Definition at line 68 of file porfld.hxx.

References m_pFont.

Referenced by SwFieldPortion().

bool SwFieldPortion::IsCenter ( ) const

Definition at line 91 of file porfld.hxx.

References m_bCenter.

Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().

bool SwFieldPortion::IsFollow ( ) const

Definition at line 82 of file porfld.hxx.

References m_bFollow.

Referenced by CheckScript(), Format(), SwCombinedPortion::Format(), and SwNumberPortion::Paint().

bool SwFieldPortion::IsHide ( ) const

Definition at line 88 of file porfld.hxx.

References m_bHide.

Referenced by SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().

bool SwFieldPortion::IsLeft ( ) const

Definition at line 85 of file porfld.hxx.

References m_bLeft.

Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().

bool SwFieldPortion::IsNoLength ( ) const

Definition at line 57 of file porfld.hxx.

References m_bNoLength.

void SwFieldPortion::Paint ( const SwTextPaintInfo rInf) const
void SwFieldPortion::SetCenter ( bool  bNew)

Definition at line 92 of file porfld.hxx.

References m_bCenter.

Referenced by SwNumberPortion::SwNumberPortion().

void SwFieldPortion::SetFollow ( bool  bNew)

Definition at line 83 of file porfld.hxx.

References m_bFollow.

Referenced by Format(), and SwRubyPortion::SwRubyPortion().

void SwFieldPortion::SetFont ( std::unique_ptr< SwFont pNew)

Definition at line 56 of file porfld.hxx.

Referenced by Format().

void SwFieldPortion::SetHasFollow ( bool  bNew)

Definition at line 95 of file porfld.hxx.

References m_bHasFollow.

Referenced by Format().

void SwFieldPortion::SetHide ( bool  bNew)
void SwFieldPortion::SetLeft ( bool  bNew)

Definition at line 86 of file porfld.hxx.

References m_bLeft.

Referenced by SwTextFormatter::NewFootnoteNumPortion(), and SwNumberPortion::SwNumberPortion().

void SwFieldPortion::SetNextOffset ( TextFrameIndex  nNew)

Definition at line 98 of file porfld.hxx.

Referenced by Clone(), Format(), and SwRubyPortion::SwRubyPortion().

void SwFieldPortion::SetNoLength ( )

Definition at line 58 of file porfld.hxx.

References m_bNoLength.

Referenced by SwTextFormatter::TryNewNoLengthPortion().

void SwFieldPortion::TakeNextOffset ( const SwFieldPortion pField)

Definition at line 67 of file porfld.cxx.

References GetNextOffset(), m_aExpand, m_bFollow, m_nNextOffset, and u.

Friends And Related Function Documentation

friend class SwTextFormatter

Definition at line 36 of file porfld.hxx.

Member Data Documentation

OUString SwFieldPortion::m_aExpand
bool SwFieldPortion::m_bAnimated

Definition at line 50 of file porfld.hxx.

Referenced by SwGrfNumPortion::IsAnimated(), and SwGrfNumPortion::SetAnimated().

bool SwFieldPortion::m_bCenter

Definition at line 48 of file porfld.hxx.

Referenced by IsCenter(), and SetCenter().

bool SwFieldPortion::m_bFollow

Definition at line 45 of file porfld.hxx.

Referenced by IsFollow(), SetFollow(), and TakeNextOffset().

bool SwFieldPortion::m_bHasFollow

Definition at line 49 of file porfld.hxx.

Referenced by HasFollow(), and SetHasFollow().

bool SwFieldPortion::m_bHide

Definition at line 47 of file porfld.hxx.

Referenced by IsHide(), and SetHide().

bool SwFieldPortion::m_bLeft

Definition at line 46 of file porfld.hxx.

Referenced by IsLeft(), and SetLeft().

bool SwFieldPortion::m_bNoLength

Definition at line 54 of file porfld.hxx.

Referenced by Clone(), Format(), IsNoLength(), and SetNoLength().

bool SwFieldPortion::m_bNoPaint
const bool SwFieldPortion::m_bPlaceHolder

Definition at line 53 of file porfld.hxx.

Referenced by Clone(), and Paint().

bool SwFieldPortion::m_bReplace

Definition at line 52 of file porfld.hxx.

Referenced by SwGrfNumPortion::Paint(), and SwGrfNumPortion::SwGrfNumPortion().

sal_uInt16 SwFieldPortion::m_nAttrFieldType

Definition at line 65 of file porfld.hxx.

TextFrameIndex SwFieldPortion::m_nFieldLen

Definition at line 42 of file porfld.hxx.

Referenced by CheckScript(), Format(), and GetFieldLen().

TextFrameIndex SwFieldPortion::m_nNextOffset

Definition at line 40 of file porfld.hxx.

Referenced by Clone(), Format(), GetNextOffset(), and TakeNextOffset().

TextFrameIndex SwFieldPortion::m_nNextScriptChg

Definition at line 41 of file porfld.hxx.

Referenced by CheckScript(), and Format().

sal_uInt16 SwFieldPortion::m_nViewWidth

Definition at line 44 of file porfld.hxx.

Referenced by GetViewWidth().

std::unique_ptr<SwFont> SwFieldPortion::m_pFont

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