LibreOffice Module sw (master) 1
|
#include <porfld.hxx>
Public Member Functions | |
SwFieldPortion (const SwFieldPortion &rField) | |
SwFieldPortion (OUString aExpand, 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 SwFont * | GetFont () 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 SwLinePortion * | Compress () 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 SwFieldPortion * | Clone (const OUString &rExpand) const |
virtual SwPosSize | GetTextSize (const SwTextSizeInfo &rInfo) const override |
virtual void | HandlePortion (SwPortionHandler &rPH) const override |
void | SetContentControl (bool bContentControl) |
void | dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override |
Public Member Functions inherited from SwExpandPortion | |
SwExpandPortion () | |
virtual bool | Format (SwTextFormatInfo &rInf) override |
virtual TextFrameIndex | GetModelPositionForViewPoint (sal_uInt16 nOfst) const override |
the parameter is actually SwTwips apparently? More... | |
virtual bool | GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override |
virtual SwPosSize | GetTextSize (const SwTextSizeInfo &rInfo) const override |
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 SwTextPortion | |
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 () |
SwLinePortion * | GetNextPortion () const |
SwLinePortion & | operator= (const SwLinePortion &rPortion) |
TextFrameIndex | GetLen () const |
void | SetLen (TextFrameIndex const nLen) |
void | SetNextPortion (SwLinePortion *pNew) |
SwTwips & | GetAscent () |
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 | ExtraBlankWidth () const |
void | ExtraBlankWidth (const SwTwips nNew) |
SwTwips | GetHangingBaseline () const |
void | SetHangingBaseline (const SwTwips nNewBaseline) |
virtual SwLinePortion * | Insert (SwLinePortion *pPortion) |
virtual SwLinePortion * | Append (SwLinePortion *pPortion) |
SwLinePortion * | Cut (SwLinePortion *pVictim) |
void | Truncate () |
virtual SwLinePortion * | Compress () |
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 |
SwLinePortion * | FindPrevPortion (const SwLinePortion *pRoot) |
SwLinePortion * | FindLastPortion () |
virtual TextFrameIndex | GetModelPositionForViewPoint (sal_uInt16 nOfst) const |
the parameter is actually SwTwips apparently? More... | |
virtual SwPosSize | GetTextSize (const SwTextSizeInfo &rInfo) const |
void | CalcTextSize (const SwTextSizeInfo &rInfo) |
virtual void | Paint (const SwTextPaintInfo &rInf) const =0 |
void | PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const |
virtual bool | Format (SwTextFormatInfo &rInf) |
virtual void | FormatEOL (SwTextFormatInfo &rInf) |
void | Move (SwTextPaintInfo &rInf) |
virtual bool | GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const |
virtual sal_uInt16 | GetViewWidth (const SwTextSizeInfo &rInf) const |
virtual tools::Long | CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const |
virtual void | HandlePortion (SwPortionHandler &rPH) const |
bool | GetJoinBorderWithPrev () const |
bool | GetJoinBorderWithNext () const |
void | SetJoinBorderWithPrev (const bool bJoinPrev) |
void | SetJoinBorderWithNext (const bool bJoinNext) |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &rOffset) const |
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 | |
SwPosSize & | operator= (SwPosSize const &)=default |
SwPosSize & | operator= (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) |
SwPosSize & | operator= (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< SwFont > | m_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 |
bool | m_bContentControl = false |
Protected Attributes inherited from SwLinePortion | |
SwLinePortion * | mpNextPortion |
TextFrameIndex | mnLineLength |
SwTwips | mnAscent |
SwTwips | mnHangingBaseline |
Friends | |
class | SwTextFormatter |
Additional Inherited Members | |
Static Public Member Functions inherited from SwTextPortion | |
static SwTextPortion * | CopyLinePortion (const SwLinePortion &rPortion) |
Definition at line 34 of file porfld.hxx.
SwFieldPortion::SwFieldPortion | ( | const SwFieldPortion & | rField | ) |
Definition at line 89 of file porfld.cxx.
References Field, GetExp, GetFont(), HasFont(), m_pFont, and SwLinePortion::SetWhichPor().
Referenced by Clone().
SwFieldPortion::SwFieldPortion | ( | OUString | aExpand, |
std::unique_ptr< SwFont > | pFnt = nullptr , |
||
bool | bPlaceHolder = false , |
||
TextFrameIndex | nLen = TextFrameIndex(1) |
||
) |
Definition at line 76 of file porfld.cxx.
References Field, and SwLinePortion::SetWhichPor().
|
overridevirtual |
Definition at line 114 of file porfld.cxx.
References m_pFont.
void SwFieldPortion::CheckScript | ( | const SwTextSizeInfo & | rInf | ) |
Definition at line 207 of file porfld.cxx.
References CJK, CTL, SwScriptInfo::DirType(), g_pBreakIt, SwFont::GetActual(), SwBreakIt::GetBreakIter(), SwScriptInfo::GetDefaultDir(), GetExpText(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetIdx(), SwTextInfo::GetParaPortion(), SwParaPortion::GetScriptInfo(), IsFollow(), SwLinePortion::IsFootnoteNumPortion(), SwLinePortion::IsFootnotePortion(), SwLinePortion::IsNumberPortion(), Latin, m_nFieldLen, m_nNextScriptChg, m_pFont, and min().
Referenced by SwQuoVadisPortion::Format().
|
virtual |
Reimplemented in SwHiddenPortion, SwNumberPortion, SwFieldFormDropDownPortion, SwFieldFormDatePortion, SwQuoVadisPortion, and SwErgoSumPortion.
Definition at line 53 of file porfld.cxx.
References m_bNoLength, m_bPlaceHolder, m_nNextOffset, m_pFont, SetNextOffset(), and SwFieldPortion().
Referenced by Format().
|
overridevirtual |
Reimplemented from SwLinePortion.
Definition at line 50 of file porfld.cxx.
References SwLinePortion::Compress(), SwLinePortion::GetLen(), and m_aExpand.
Referenced by Format().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Definition at line 487 of file porfld.cxx.
References SwLinePortion::dumpAsXmlAttributes(), SwLinePortion::GetLen(), m_aExpand, and m_pFont.
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwNumberPortion, SwGrfNumPortion, SwCombinedPortion, SwFootnotePortion, SwQuoVadisPortion, and SwErgoSumPortion.
Definition at line 304 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, Compress(), SwTextPortion::Format(), SwLinePortion::FormatEOL(), SwTextSizeInfo::GetAscent(), SwFont::GetBottomBorderSpace(), SwTextSizeInfo::GetFont(), GetFont(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), getLength(), 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(), SwTextSizeInfo::SetLen(), SwLinePortion::SetLen(), SwTextFormatInfo::SetLineStart(), SetNextOffset(), SwTextSizeInfo::SetNotEOL(), SwTextFormatInfo::SetRest(), SwTextFormatInfo::SetUnderScorePos(), SwTextFormatInfo::Width(), SwPosSize::Width(), and Point::X().
Referenced by SwNumberPortion::Format(), SwGrfNumPortion::Format(), SwFootnotePortion::Format(), SwQuoVadisPortion::Format(), and SwErgoSumPortion::Format().
|
inline |
Definition at line 73 of file porfld.hxx.
References m_aExpand.
Referenced by SwTextFormatter::BuildMultiPortion(), SwTextCursor::GetCharRect_(), and lcl_GetCharRectInsideField().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwHiddenPortion, SwFootnotePortion, and SwQuoVadisPortion.
Definition at line 471 of file porfld.cxx.
References SwTextSizeInfo::GetOpt(), HasFollow(), SwViewOption::IsFieldShadings(), SwViewOption::IsPagePreview(), SwViewOption::IsReadonly(), m_aExpand, and SwTextSizeInfo::OnWin().
Referenced by CheckScript(), SwHiddenPortion::GetExpText(), SwTextGuess::Guess(), and lcl_HasContent().
|
inline |
Definition at line 101 of file porfld.hxx.
References m_nFieldLen.
|
inline |
Definition at line 71 of file porfld.hxx.
References m_pFont.
Referenced by SwTextFormatter::CalcAscent(), Format(), and SwFieldPortion().
|
inline |
Definition at line 98 of file porfld.hxx.
References m_nNextOffset.
Referenced by SwRubyPortion::CalcRubyOffset(), and TakeNextOffset().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwFootnotePortion.
Definition at line 504 of file porfld.cxx.
References SwExpandPortion::GetTextSize(), and m_pFont.
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwCombinedPortion.
Definition at line 119 of file porfld.cxx.
References SwTextSizeInfo::GetOpt(), SwTextSizeInfo::GetTextSize(), SwViewOption::IsFieldShadings(), SwViewOption::IsPagePreview(), SwViewOption::IsReadonly(), m_nViewWidth, SwTextSizeInfo::OnWin(), and SwPosSize::Width().
Referenced by SwCombinedPortion::GetViewWidth().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwQuoVadisPortion.
Definition at line 482 of file porfld.cxx.
References SwLinePortion::GetLen(), SwLinePortion::GetWhichPor(), m_aExpand, and SwPortionHandler::Special().
|
inline |
Definition at line 95 of file porfld.hxx.
References m_bHasFollow.
Referenced by SwTextPainter::CalcPaintOfst(), SwRubyPortion::CalcRubyOffset(), SwTextPainter::DrawTextLine(), SwTextCursor::GetCharRect_(), GetExpText(), SwQuoVadisPortion::GetExpText(), SwTextCursor::GetModelPositionForViewPoint(), SwTextFormatter::MakeRestPortion(), and SwNumberPortion::Paint().
|
inline |
Definition at line 69 of file porfld.hxx.
References m_pFont.
Referenced by SwTextFormatter::CalcAscent(), SwTabPortion::PreFormat(), and SwFieldPortion().
|
inline |
Definition at line 92 of file porfld.hxx.
References m_bCenter.
Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inline |
Definition at line 83 of file porfld.hxx.
References m_bFollow.
Referenced by CheckScript(), Format(), SwCombinedPortion::Format(), SwTextCursor::GetModelPositionForViewPoint(), and SwNumberPortion::Paint().
|
inline |
Definition at line 89 of file porfld.hxx.
References m_bHide.
Referenced by SwTextFormatter::BuildPortions(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inline |
Definition at line 86 of file porfld.hxx.
References m_bLeft.
Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inlineprotected |
Definition at line 58 of file porfld.hxx.
References m_bNoLength.
Referenced by SwTextFormatter::Underflow().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwHiddenPortion, SwNumberPortion, SwGrfNumPortion, SwCombinedPortion, SwFieldFormDropDownPortion, SwFieldFormDatePortion, SwFootnotePortion, and SwQuoVadisPortion.
Definition at line 458 of file porfld.cxx.
References SwTextPaintInfo::DrawViewOpt(), Field, SwTextSizeInfo::GetOpt(), SwViewOption::IsShowPlaceHolderFields(), m_bContentControl, m_bPlaceHolder, m_pFont, SwExpandPortion::Paint(), and SwPosSize::Width().
Referenced by SwFieldFormDropDownPortion::Paint(), and SwFieldFormDatePortion::Paint().
|
inline |
Definition at line 93 of file porfld.hxx.
References m_bCenter.
Referenced by SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 112 of file porfld.hxx.
References m_bContentControl.
|
inline |
Definition at line 84 of file porfld.hxx.
References m_bFollow.
Referenced by SwTextFormatter::BuildMultiPortion(), Format(), and SwRubyPortion::SwRubyPortion().
|
inlineprotected |
|
inline |
|
inline |
Definition at line 90 of file porfld.hxx.
References m_bHide.
Referenced by SwNumberPortion::Format(), SwGrfNumPortion::Format(), and SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 87 of file porfld.hxx.
References m_bLeft.
Referenced by SwTextFormatter::NewFootnoteNumPortion(), and SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 99 of file porfld.hxx.
References m_nNextOffset.
Referenced by Clone(), Format(), and SwRubyPortion::SwRubyPortion().
|
inlineprotected |
Definition at line 59 of file porfld.hxx.
References m_bNoLength.
Referenced by SwTextFormatter::TryNewNoLengthPortion().
void SwFieldPortion::TakeNextOffset | ( | const SwFieldPortion * | pField | ) |
Definition at line 68 of file porfld.cxx.
References GetNextOffset(), m_aExpand, m_bFollow, m_nNextOffset, and u.
|
friend |
Definition at line 36 of file porfld.hxx.
|
protected |
Definition at line 38 of file porfld.hxx.
Referenced by Compress(), dumpAsXml(), Format(), SwCombinedPortion::Format(), SwQuoVadisPortion::Format(), GetExp(), GetExpText(), SwFootnotePortion::GetExpText(), SwQuoVadisPortion::GetExpText(), SwQuoVadisPortion::GetQuoText(), HandlePortion(), SwQuoVadisPortion::HandlePortion(), SwNumberPortion::Paint(), SwCombinedPortion::Paint(), SwCombinedPortion::SwCombinedPortion(), SwErgoSumPortion::SwErgoSumPortion(), and TakeNextOffset().
|
protected |
Definition at line 50 of file porfld.hxx.
Referenced by SwGrfNumPortion::IsAnimated(), and SwGrfNumPortion::SetAnimated().
|
protected |
Definition at line 48 of file porfld.hxx.
Referenced by IsCenter(), and SetCenter().
|
protected |
Definition at line 55 of file porfld.hxx.
Referenced by Paint(), and SetContentControl().
|
protected |
Definition at line 45 of file porfld.hxx.
Referenced by IsFollow(), SetFollow(), and TakeNextOffset().
|
protected |
Definition at line 49 of file porfld.hxx.
Referenced by HasFollow(), and SetHasFollow().
|
protected |
Definition at line 47 of file porfld.hxx.
|
protected |
Definition at line 46 of file porfld.hxx.
|
protected |
Definition at line 54 of file porfld.hxx.
Referenced by Clone(), Format(), IsNoLength(), and SetNoLength().
|
protected |
Definition at line 51 of file porfld.hxx.
Referenced by SwGrfNumPortion::Format(), SwGrfNumPortion::Paint(), and SwGrfNumPortion::SwGrfNumPortion().
|
protected |
Definition at line 53 of file porfld.hxx.
|
protected |
Definition at line 52 of file porfld.hxx.
Referenced by SwGrfNumPortion::Paint(), and SwGrfNumPortion::SwGrfNumPortion().
sal_uInt16 SwFieldPortion::m_nAttrFieldType |
Definition at line 66 of file porfld.hxx.
|
protected |
Definition at line 42 of file porfld.hxx.
Referenced by CheckScript(), Format(), and GetFieldLen().
|
protected |
Definition at line 40 of file porfld.hxx.
Referenced by Clone(), Format(), GetNextOffset(), SetNextOffset(), and TakeNextOffset().
|
protected |
Definition at line 41 of file porfld.hxx.
Referenced by CheckScript(), and Format().
|
protected |
Definition at line 44 of file porfld.hxx.
Referenced by GetViewWidth().
|
protected |
Definition at line 39 of file porfld.hxx.
Referenced by CheckScript(), Clone(), SwHiddenPortion::Clone(), SwNumberPortion::Clone(), dumpAsXml(), Format(), GetFont(), GetTextSize(), HasFont(), Paint(), SwHiddenPortion::Paint(), SwNumberPortion::Paint(), SwQuoVadisPortion::Paint(), SetFont(), SwFieldPortion(), and ~SwFieldPortion().