LibreOffice Module sw (master) 1
|
This portion represents a part of the paragraph string. More...
#include <portxt.hxx>
Public Member Functions | |
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) |
Static Public Member Functions | |
static SwTextPortion * | CopyLinePortion (const SwLinePortion &rPortion) |
Private Member Functions | |
void | BreakCut (SwTextFormatInfo &rInf, const SwTextGuess &rGuess) |
void | BreakUnderflow (SwTextFormatInfo &rInf) |
bool | Format_ (SwTextFormatInfo &rInf) |
Additional Inherited Members | |
Protected Member Functions inherited from SwLinePortion | |
SwLinePortion () | |
Protected Attributes inherited from SwLinePortion | |
SwLinePortion * | mpNextPortion |
TextFrameIndex | mnLineLength |
SwTwips | mnAscent |
SwTwips | mnHangingBaseline |
This portion represents a part of the paragraph string.
Definition at line 26 of file portxt.hxx.
|
inline |
Definition at line 33 of file portxt.hxx.
References SwLinePortion::SetWhichPor(), and Text.
|
private |
Definition at line 219 of file portxt.cxx.
References SwTextGuess::BreakWidth(), SwLinePortion::CalcTextSize(), SwTextGuess::CutPos(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetIdx(), SwFont::GetItalic(), SwTextFormatInfo::GetLineStart(), SwPosSize::Height(), ITALIC_NONE, nLineWidth, SwTextSizeInfo::NotEOL(), SwTextSizeInfo::SetLen(), SwLinePortion::SetLen(), SwTextFormatInfo::Width(), SwPosSize::Width(), and SwTextPaintInfo::X().
Referenced by CreateHyphen(), and Format_().
|
private |
Definition at line 264 of file portxt.cxx.
References SwPosSize::Height(), SwLinePortion::SetAscent(), SwLinePortion::SetLen(), SwTextFormatInfo::SetUnderflow(), SwLinePortion::Truncate(), and SwPosSize::Width().
Referenced by Format_().
|
overridevirtual |
Reimplemented from SwLinePortion.
Definition at line 619 of file portxt.cxx.
References aStr, CH_BLANK, SwFrame::FindPageFrame(), GetExpText(), GetGridItem(), SwTextGridItem::GetGridType(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwTextSizeInfo::GetTextFrame(), SwLinePortion::GetWhichPor(), GRID_LINES_CHARS, SwLinePortion::InExpGrp(), SwLinePortion::InFixMargGrp(), SwLinePortion::InNumberGrp(), InputField, SwLinePortion::IsBlankPortion(), SwLinePortion::IsCombinedPortion(), SwLinePortion::IsDropPortion(), SwLinePortion::IsHolePortion(), SwTextGridItem::IsSnapToChars(), lcl_AddSpace(), SwTextSizeInfo::OnWin(), SwTextSizeInfo::SnapToGrid(), SPACING_PRECISION_FACTOR, and SwPosSize::Width().
Referenced by SwDropPortion::Format().
|
static |
Definition at line 211 of file portxt.cxx.
References SwLinePortion::SetWhichPor(), and Text.
Referenced by SwRubyPortion::Adjust_(), SwLineLayout::Append(), SwLineLayout::CalcLeftMargin(), and SwLineLayout::Insert().
bool SwTextPortion::CreateHyphen | ( | SwTextFormatInfo & | rInf, |
SwTextGuess const & | rGuess | ||
) |
Definition at line 252 of file txthyph.cxx.
References SvxAlternativeSpelling::aReplacement, SvxAlternativeSpelling::bIsAltSpelling, BreakCut(), SwTextGuess::BreakStart(), SwLinePortion::CalcTextSize(), CHAR_SOFTHYPHEN, SwFont::CheckKerning(), SwTextGuess::FieldDiff(), SwFont::GetActual(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetFont(), SwFont::GetFontCacheId(), SwTextSizeInfo::GetIdx(), SwTextSizeInfo::GetLen(), SwTextFormatInfo::GetLineStart(), SwTextFormatInfo::GetSoftHyphPos(), SwTextSizeInfo::GetText(), SwPosSize::Height(), SwTextGuess::HyphWord(), SwLinePortion::InFieldGrp(), SwLinePortion::Insert(), SwTextFormatInfo::IsHyphForbud(), SwTextFormatInfo::IsInterHyph(), SwLinePortion::mpNextPortion, SvxAlternativeSpelling::nChangedLength, SvxAlternativeSpelling::nChangedPos, SwTextSizeInfo::SetLen(), SwLinePortion::SetLen(), and SvxGetAltSpelling().
Referenced by Format_().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwDropPortion, SwExpandPortion, SwBlankPortion, SwPostItsPortion, SwFieldPortion, SwNumberPortion, SwGrfNumPortion, SwCombinedPortion, SwFootnotePortion, SwQuoVadisPortion, SwErgoSumPortion, SwHyphPortion, SwSoftHyphPortion, SwLineLayout, SwIsoRefPortion, SwIsoToxPortion, SwTextInputFieldPortion, SwFieldMarkPortion, and SwFieldFormCheckboxPortion.
Definition at line 442 of file portxt.cxx.
References Format_(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineWidth(), SwPosSize::Height(), SwLinePortion::InExpGrp(), SwTextFormatInfo::RealWidth(), SwLinePortion::SetAscent(), SwLinePortion::SetLen(), SwLinePortion::SetNextPortion(), SwTextFormatInfo::Width(), SwPosSize::Width(), and SwTextPaintInfo::X().
Referenced by SwDropPortion::Format(), SwExpandPortion::Format(), SwFieldPortion::Format(), SwLineLayout::Format(), SwTextInputFieldPortion::Format(), and SwDropPortion::FormatText().
|
private |
Definition at line 280 of file portxt.cxx.
References SwTextGuess::AlternativeSpelling(), BreakCut(), SwTextGuess::BreakPos(), SwTextGuess::BreakStart(), BreakUnderflow(), SwTextGuess::BreakWidth(), CH_BLANK, CH_FULL_BLANK, CH_SIX_PER_EM, SwFont::CheckKerning(), SwTextFormatInfo::ChgHyph(), COMPLETE_STRING, CreateHyphen(), SwTextGuess::ExtraBlankWidth(), SwLinePortion::ExtraBlankWidth(), SwTextGuess::FieldDiff(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), SwTextGuess::GetHangingPortion(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineStart(), SwTextFormatInfo::GetLineWidth(), SwTextFormatInfo::GetRoot(), SwTextFormatInfo::GetSoftHyphPos(), SwTextSizeInfo::GetTextFrame(), SwTextGuess::Guess(), SwPosSize::Height(), SwTextGuess::HyphWord(), SwLinePortion::InExpGrp(), SwLinePortion::InFieldGrp(), SwLinePortion::InNumberGrp(), SwLinePortion::Insert(), SwLinePortion::InTabGrp(), SwLinePortion::IsBlankPortion(), SwLinePortion::IsErgoSumPortion(), SwTextFormatInfo::IsFakeLineStart(), SwTextSizeInfo::IsFirstMulti(), SwLinePortion::IsFlyPortion(), SwLinePortion::IsFootnotePortion(), SwTextFormatInfo::IsHyphenate(), SwTextSizeInfo::IsOtherThanFootnoteInside(), SwTextFormatInfo::IsUnderflow(), lcl_HasContent(), SwBlankPortion::MayUnderflow(), SwTextGuess::ReleaseHangingPortion(), SwLinePortion::SetAscent(), SwLineLayout::SetEndHyph(), SwLinePortion::SetLen(), SwLineLayout::SetMidHyph(), SwTextFormatInfo::SetSoftHyphPos(), TAB_COMPAT, SwTextFormatInfo::Width(), SwPosSize::Width(), and SwTextPaintInfo::X().
Referenced by Format().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwBlankPortion, SwNumberPortion, and SwSoftHyphPortion.
Definition at line 470 of file portxt.cxx.
References CH_BLANK, SwTextSizeInfo::GetChar(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwLinePortion::GetNextPortion(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextSize(), SwLinePortion::Insert(), SwLinePortion::IsHolePortion(), SwLinePortion::IsKernPortion(), SwLinePortion::SetLen(), SwPosSize::Width(), and SwTextPaintInfo::X().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwExpandPortion, SwBlankPortion, SwPostItsPortion, SwFieldPortion, SwHiddenPortion, SwFootnotePortion, SwQuoVadisPortion, SwHyphPortion, SwHyphStrPortion, SwSoftHyphPortion, and SwTextInputFieldPortion.
Definition at line 570 of file portxt.cxx.
Referenced by CalcSpacing(), and GetSpaceCnt().
|
overridevirtual |
the parameter is actually SwTwips apparently?
Reimplemented from SwLinePortion.
Reimplemented in SwDropPortion, SwExpandPortion, SwNumberPortion, and SwErgoSumPortion.
Definition at line 504 of file portxt.cxx.
References SwLinePortion::GetModelPositionForViewPoint().
TextFrameIndex SwTextPortion::GetSpaceCnt | ( | const SwTextSizeInfo & | rInf, |
TextFrameIndex & | rCnt | ||
) | const |
Definition at line 577 of file portxt.cxx.
References aStr, CH_BLANK, SwFrame::FindPageFrame(), GetExpText(), GetGridItem(), SwTextGridItem::GetGridType(), SwLinePortion::GetLen(), SwTextSizeInfo::GetTextFrame(), SwLinePortion::GetWhichPor(), GRID_LINES_CHARS, SwLinePortion::InExpGrp(), SwLinePortion::InNumberGrp(), InputField, SwLinePortion::IsBlankPortion(), SwLinePortion::IsCombinedPortion(), SwLinePortion::IsDropPortion(), SwTextGridItem::IsSnapToChars(), lcl_AddSpace(), nPos, SwTextSizeInfo::OnWin(), and SwTextSizeInfo::SnapToGrid().
Referenced by SwTextPaintInfo::DrawText_(), and SwTextCursor::GetModelPositionForViewPoint().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwDropPortion, SwExpandPortion, SwFieldPortion, SwFootnotePortion, and SwTextInputFieldPortion.
Definition at line 511 of file portxt.cxx.
References SwFont::GetBottomBorderSpace(), SwTextSizeInfo::GetFont(), SwLinePortion::GetJoinBorderWithNext(), SwLinePortion::GetJoinBorderWithPrev(), SwFont::GetLeftBorderSpace(), SwFont::GetRightBorderSpace(), SwTextSizeInfo::GetTextSize(), SwFont::GetTopBorderSpace(), SwPosSize::Height(), and SwPosSize::Width().
Referenced by SwDropPortion::GetTextSize().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwExpandPortion, SwBlankPortion, SwFieldPortion, SwQuoVadisPortion, SwHyphPortion, SwHyphStrPortion, SwSoftHyphPortion, SwIsoRefPortion, and SwIsoToxPortion.
Definition at line 679 of file portxt.cxx.
References SwLinePortion::GetLen(), SwLinePortion::GetWhichPor(), and SwPortionHandler::Text().
|
overridevirtual |
Implements SwLinePortion.
Reimplemented in SwDropPortion, SwExpandPortion, SwBlankPortion, SwPostItsPortion, SwFieldPortion, SwHiddenPortion, SwNumberPortion, SwGrfNumPortion, SwCombinedPortion, SwFieldFormDropDownPortion, SwFieldFormDatePortion, SwFootnotePortion, SwQuoVadisPortion, SwSoftHyphPortion, SwSoftHyphStrPortion, SwRefPortion, SwIsoRefPortion, SwToxPortion, SwIsoToxPortion, SwTextInputFieldPortion, SwFieldMarkPortion, and SwFieldFormCheckboxPortion.
Definition at line 526 of file portxt.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_SUBST_FIELDEND, CH_TXT_ATR_SUBST_FIELDSTART, SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawBorder(), SwTextPaintInfo::DrawCSDFHighlighting(), SwTextPaintInfo::DrawMarkedText(), SwTextPaintInfo::DrawText(), SwTextPaintInfo::GetGrammarCheckList(), SwTextSizeInfo::GetIdx(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), SwTextPaintInfo::GetpWrongList(), SwTextPaintInfo::GetSmartTags(), SwTextSizeInfo::GetText(), SwLinePortion::mpNextPortion, SwTextSizeInfo::OnWin(), SwLinePortion::PrePaint(), and SwPosSize::Width().
Referenced by SwDropPortion::Paint(), SwRefPortion::Paint(), SwToxPortion::Paint(), SwTextInputFieldPortion::Paint(), and SwDropPortion::PaintText().