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:
[legend]
Collaboration diagram for SwFieldPortion:
[legend]

Public Member Functions

 SwFieldPortion (const SwFieldPortion &rField)
 
 SwFieldPortion (const OUString &rExpand, std::unique_ptr< SwFont > pFnt=nullptr, bool bPlaceHolder=false)
 
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)
 
virtual SwFieldPortionClone (const OUString &rExpand) const
 
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const override
 
virtual void HandlePortion (SwPortionHandler &rPH) const override
 
- Public Member Functions inherited from SwExpandPortion
 SwExpandPortion ()
 
virtual TextFrameIndex GetCursorOfst (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 long CalcSpacing (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)
 
sal_uInt16 & GetAscent ()
 
sal_uInt16 GetAscent () const
 
void SetAscent (const sal_uInt16 nNewAsc)
 
void PrtWidth (sal_uInt16 nNewWidth)
 
sal_uInt16 PrtWidth () const
 
void AddPrtWidth (const sal_uInt16 nNew)
 
void SubPrtWidth (const sal_uInt16 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 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)
 
- Public Member Functions inherited from SwPosSize
 SwPosSize (const sal_uInt16 nW=0, const sal_uInt16 nH=0)
 
 SwPosSize (const Size &rSize)
 
sal_uInt16 Height () const
 
void Height (const sal_uInt16 nNew)
 
sal_uInt16 Width () const
 
void Width (const sal_uInt16 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
 
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
SwLinePortionmpNextPortion
 
TextFrameIndex nLineLength
 
sal_uInt16 nAscent
 

Friends

class SwTextFormatter
 

Additional Inherited Members

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

Detailed Description

Definition at line 30 of file porfld.hxx.

Constructor & Destructor Documentation

SwFieldPortion::SwFieldPortion ( const SwFieldPortion rField)

Definition at line 90 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 
)

Definition at line 78 of file porfld.cxx.

References Field, and SwLinePortion::SetWhichPor().

SwFieldPortion::~SwFieldPortion ( )
overridevirtual

Definition at line 114 of file porfld.cxx.

References SwBlink::Delete(), m_pFont, and pBlink.

Member Function Documentation

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

Reimplemented from SwLinePortion.

Definition at line 52 of file porfld.cxx.

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

bool SwFieldPortion::Format ( SwTextFormatInfo rInf)
overridevirtual

Reimplemented from SwExpandPortion.

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

Definition at line 293 of file porfld.cxx.

References CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, CHAR_ZWNBSP, 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_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(), SwTextFormatInfo::Width(), and Point::X().

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

const OUString& SwFieldPortion::GetExp ( ) const
inline

Definition at line 66 of file porfld.hxx.

References m_aExpand.

Referenced by SwTextCursor::GetCharRect_().

bool SwFieldPortion::GetExpText ( const SwTextSizeInfo rInf,
OUString &  rText 
) const
overridevirtual
const SwFont* SwFieldPortion::GetFont ( ) const
inline

Definition at line 64 of file porfld.hxx.

Referenced by Format(), and SwFieldPortion().

TextFrameIndex SwFieldPortion::GetNextOffset ( ) const
inline

Definition at line 91 of file porfld.hxx.

References m_nNextOffset.

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

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

Reimplemented from SwExpandPortion.

Reimplemented in SwFootnotePortion.

Definition at line 465 of file porfld.cxx.

References SwExpandPortion::GetTextSize(), and m_pFont.

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

Definition at line 62 of file porfld.hxx.

References m_pFont.

Referenced by SwFieldPortion().

bool SwFieldPortion::IsCenter ( ) const
inline

Definition at line 85 of file porfld.hxx.

References m_bCenter.

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

bool SwFieldPortion::IsFollow ( ) const
inline
bool SwFieldPortion::IsHide ( ) const
inline

Definition at line 82 of file porfld.hxx.

References m_bHide.

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

bool SwFieldPortion::IsLeft ( ) const
inline

Definition at line 79 of file porfld.hxx.

References m_bLeft.

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

bool SwFieldPortion::IsNoLength ( ) const
inlineprotected

Definition at line 51 of file porfld.hxx.

References m_bNoLength.

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

Definition at line 86 of file porfld.hxx.

References m_bCenter.

Referenced by SwNumberPortion::SwNumberPortion().

void SwFieldPortion::SetFollow ( bool  bNew)
inline

Definition at line 77 of file porfld.hxx.

References m_bFollow.

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

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

Definition at line 50 of file porfld.hxx.

Referenced by Format().

void SwFieldPortion::SetHasFollow ( bool  bNew)
inline

Definition at line 89 of file porfld.hxx.

References m_bHasFollow.

Referenced by Format().

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

Definition at line 80 of file porfld.hxx.

References m_bLeft.

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

void SwFieldPortion::SetNextOffset ( TextFrameIndex  nNew)
inline

Definition at line 92 of file porfld.hxx.

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

void SwFieldPortion::SetNoLength ( )
inlineprotected

Definition at line 52 of file porfld.hxx.

References m_bNoLength.

Referenced by SwTextFormatter::TryNewNoLengthPortion().

void SwFieldPortion::TakeNextOffset ( const SwFieldPortion pField)

Definition at line 70 of file porfld.cxx.

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

Friends And Related Function Documentation

friend class SwTextFormatter
friend

Definition at line 32 of file porfld.hxx.

Member Data Documentation

OUString SwFieldPortion::m_aExpand
protected
bool SwFieldPortion::m_bAnimated
protected

Definition at line 44 of file porfld.hxx.

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

bool SwFieldPortion::m_bCenter
protected

Definition at line 42 of file porfld.hxx.

Referenced by IsCenter(), and SetCenter().

bool SwFieldPortion::m_bFollow
protected

Definition at line 39 of file porfld.hxx.

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

bool SwFieldPortion::m_bHasFollow
protected

Definition at line 43 of file porfld.hxx.

Referenced by HasFollow(), and SetHasFollow().

bool SwFieldPortion::m_bHide
protected

Definition at line 41 of file porfld.hxx.

Referenced by IsHide(), and SetHide().

bool SwFieldPortion::m_bLeft
protected

Definition at line 40 of file porfld.hxx.

Referenced by IsLeft(), and SetLeft().

bool SwFieldPortion::m_bNoLength
protected

Definition at line 48 of file porfld.hxx.

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

bool SwFieldPortion::m_bNoPaint
protected
const bool SwFieldPortion::m_bPlaceHolder
protected

Definition at line 47 of file porfld.hxx.

Referenced by Clone(), and Paint().

bool SwFieldPortion::m_bReplace
protected

Definition at line 46 of file porfld.hxx.

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

sal_uInt16 SwFieldPortion::m_nAttrFieldType

Definition at line 59 of file porfld.hxx.

TextFrameIndex SwFieldPortion::m_nNextOffset
protected

Definition at line 36 of file porfld.hxx.

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

TextFrameIndex SwFieldPortion::m_nNextScriptChg
protected

Definition at line 37 of file porfld.hxx.

Referenced by CheckScript(), and Format().

sal_uInt16 SwFieldPortion::m_nViewWidth
protected

Definition at line 38 of file porfld.hxx.

Referenced by GetViewWidth().

std::unique_ptr<SwFont> SwFieldPortion::m_pFont
protected

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