LibreOffice Module sw (master)
1
|
#include <porfld.hxx>
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 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 |
![]() | |
SwExpandPortion () | |
virtual TextFrameIndex | GetModelPositionForViewPoint (sal_uInt16 nOfst) const override |
the parameter is actually SwTwips apparently? More... | |
![]() | |
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) |
![]() | |
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) |
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 SwLinePortion * | Insert (SwLinePortion *pPortion) |
virtual SwLinePortion * | Append (SwLinePortion *pPortion) |
SwLinePortion * | Cut (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 |
SwLinePortion * | FindPrevPortion (const SwLinePortion *pRoot) |
SwLinePortion * | FindLastPortion () |
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) |
![]() | |
SwPosSize (const sal_uInt16 nW=0, const sal_uInt16 nH=0) | |
SwPosSize (const Size &rSize) | |
virtual | ~SwPosSize () |
SwPosSize (SwPosSize const &)=default | |
SwPosSize (SwPosSize &&)=default | |
SwPosSize & | operator= (SwPosSize const &)=default |
SwPosSize & | operator= (SwPosSize &&)=default |
sal_uInt16 | Height () const |
virtual void | Height (const sal_uInt16 nNew, const bool=true) |
sal_uInt16 | Width () const |
void | Width (const sal_uInt16 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 () |
![]() | |
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 |
![]() | |
SwLinePortion * | mpNextPortion |
TextFrameIndex | mnLineLength |
sal_uInt16 | mnAscent |
Friends | |
class | SwTextFormatter |
Additional Inherited Members | |
![]() | |
static SwTextPortion * | CopyLinePortion (const SwLinePortion &rPortion) |
Definition at line 34 of file porfld.hxx.
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 Field, and SwLinePortion::SetWhichPor().
|
overridevirtual |
Definition at line 113 of file porfld.cxx.
References m_pFont.
void SwFieldPortion::CheckScript | ( | const SwTextSizeInfo & | rInf | ) |
Definition at line 198 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, and m_pFont.
Referenced by SwQuoVadisPortion::Format().
|
virtual |
Reimplemented in SwFieldFormDatePortion, SwFieldFormDropDownPortion, SwNumberPortion, SwHiddenPortion, SwErgoSumPortion, and SwQuoVadisPortion.
Definition at line 52 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 49 of file porfld.cxx.
References SwLinePortion::Compress(), SwLinePortion::GetLen(), and m_aExpand.
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwCombinedPortion, SwGrfNumPortion, SwNumberPortion, SwErgoSumPortion, SwQuoVadisPortion, and SwFootnotePortion.
Definition at line 295 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().
|
inline |
Definition at line 72 of file porfld.hxx.
References m_aExpand.
Referenced by SwTextCursor::GetCharRect_().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwHiddenPortion, SwQuoVadisPortion, and SwFootnotePortion.
Definition at line 444 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 100 of file porfld.hxx.
References m_nFieldLen.
|
inline |
Definition at line 70 of file porfld.hxx.
Referenced by Format(), and SwFieldPortion().
|
inline |
Definition at line 97 of file porfld.hxx.
References m_nNextOffset.
Referenced by SwRubyPortion::CalcRubyOffset(), and TakeNextOffset().
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwFootnotePortion.
Definition at line 467 of file porfld.cxx.
References SwExpandPortion::GetTextSize(), and m_pFont.
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwCombinedPortion.
Definition at line 118 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 455 of file porfld.cxx.
References SwLinePortion::GetLen(), SwLinePortion::GetWhichPor(), SwPosSize::Height(), m_aExpand, m_pFont, SwPortionHandler::Special(), and SwPosSize::Width().
|
inline |
Definition at line 94 of file porfld.hxx.
References m_bHasFollow.
Referenced by SwRubyPortion::CalcRubyOffset(), SwTextCursor::GetCharRect_(), GetExpText(), SwQuoVadisPortion::GetExpText(), SwTextFormatter::MakeRestPortion(), and SwNumberPortion::Paint().
|
inline |
|
inline |
Definition at line 91 of file porfld.hxx.
References m_bCenter.
Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inline |
Definition at line 82 of file porfld.hxx.
References m_bFollow.
Referenced by CheckScript(), Format(), SwCombinedPortion::Format(), and SwNumberPortion::Paint().
|
inline |
Definition at line 88 of file porfld.hxx.
References m_bHide.
Referenced by SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inline |
Definition at line 85 of file porfld.hxx.
References m_bLeft.
Referenced by SwNumberPortion::Clone(), SwNumberPortion::Paint(), and SwGrfNumPortion::Paint().
|
inlineprotected |
Definition at line 57 of file porfld.hxx.
References m_bNoLength.
|
overridevirtual |
Reimplemented from SwExpandPortion.
Reimplemented in SwFieldFormDatePortion, SwFieldFormDropDownPortion, SwCombinedPortion, SwGrfNumPortion, SwNumberPortion, SwHiddenPortion, SwQuoVadisPortion, and SwFootnotePortion.
Definition at line 431 of file porfld.cxx.
References SwTextPaintInfo::DrawViewOpt(), Field, SwTextSizeInfo::GetOpt(), SwViewOption::IsShowPlaceHolderFields(), m_bPlaceHolder, m_pFont, SwExpandPortion::Paint(), and SwPosSize::Width().
Referenced by SwFieldFormDropDownPortion::Paint(), and SwFieldFormDatePortion::Paint().
|
inline |
Definition at line 92 of file porfld.hxx.
References m_bCenter.
Referenced by SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 83 of file porfld.hxx.
References m_bFollow.
Referenced by Format(), and SwRubyPortion::SwRubyPortion().
Definition at line 56 of file porfld.hxx.
Referenced by Format().
|
inline |
|
inline |
Definition at line 89 of file porfld.hxx.
References m_bHide.
Referenced by SwNumberPortion::Format(), SwGrfNumPortion::Format(), and SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 86 of file porfld.hxx.
References m_bLeft.
Referenced by SwTextFormatter::NewFootnoteNumPortion(), and SwNumberPortion::SwNumberPortion().
|
inline |
Definition at line 98 of file porfld.hxx.
Referenced by Clone(), Format(), and SwRubyPortion::SwRubyPortion().
|
inlineprotected |
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, and m_nNextOffset.
|
friend |
Definition at line 36 of file porfld.hxx.
|
protected |
Definition at line 38 of file porfld.hxx.
Referenced by Compress(), SwQuoVadisPortion::Format(), Format(), SwCombinedPortion::Format(), GetExp(), SwFootnotePortion::GetExpText(), GetExpText(), SwQuoVadisPortion::GetExpText(), SwQuoVadisPortion::GetQuoText(), SwQuoVadisPortion::HandlePortion(), 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 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 65 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(), 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(), Format(), GetTextSize(), HandlePortion(), HasFont(), SwQuoVadisPortion::Paint(), Paint(), SwHiddenPortion::Paint(), SwNumberPortion::Paint(), SwFieldPortion(), and ~SwFieldPortion().