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 |
![]() | |
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 () |
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 | 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) |
virtual sal_uInt16 | GetViewWidth (const SwTextSizeInfo &rInf) const |
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) |
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 | |
![]() | |
SwLinePortion () | |
![]() | |
SwLinePortion * | mpNextPortion |
TextFrameIndex | mnLineLength |
sal_uInt16 | mnAscent |
This portion represents a part of the paragraph string.
Definition at line 27 of file portxt.hxx.
|
inline |
Definition at line 34 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(), SwLinePortion::SetLen(), SwTextSizeInfo::SetLen(), SwPosSize::Width(), SwTextFormatInfo::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 611 of file portxt.cxx.
References aStr, 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, SwLinePortion::SetLen(), SwTextSizeInfo::SetLen(), and SvxGetAltSpelling().
Referenced by Format_().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwCombinedPortion, SwGrfNumPortion, SwLineLayout, SwNumberPortion, SwErgoSumPortion, SwFieldFormCheckboxPortion, SwDropPortion, SwFieldMarkPortion, SwFieldPortion, SwQuoVadisPortion, SwSoftHyphPortion, SwPostItsPortion, SwTextInputFieldPortion, SwBlankPortion, SwFootnotePortion, SwIsoToxPortion, SwHyphPortion, SwIsoRefPortion, and SwExpandPortion.
Definition at line 439 of file portxt.cxx.
References Format_(), SwLinePortion::GetLen(), SwTextFormatInfo::GetLineWidth(), SwPosSize::Height(), SwLinePortion::InExpGrp(), SwTextFormatInfo::RealWidth(), SwLinePortion::SetAscent(), SwLinePortion::SetLen(), SwLinePortion::SetNextPortion(), SwPosSize::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by SwExpandPortion::Format(), SwTextInputFieldPortion::Format(), SwFieldPortion::Format(), SwDropPortion::Format(), SwLineLayout::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::FieldDiff(), IDocumentSettingAccess::get(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwTextFormatInfo::GetFly(), SwTextSizeInfo::GetFont(), SwTextGuess::GetHangingPortion(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwTextFormatInfo::GetLast(), SwLinePortion::GetLen(), SwTextSizeInfo::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, SwPosSize::Width(), SwTextFormatInfo::Width(), and SwTextPaintInfo::X().
Referenced by Format().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwNumberPortion, SwSoftHyphPortion, and SwBlankPortion.
Definition at line 467 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 SwHiddenPortion, SwQuoVadisPortion, SwFieldPortion, SwPostItsPortion, SwSoftHyphPortion, SwTextInputFieldPortion, SwHyphStrPortion, SwBlankPortion, SwFootnotePortion, SwHyphPortion, and SwExpandPortion.
Definition at line 565 of file portxt.cxx.
Referenced by CalcSpacing(), and GetSpaceCnt().
|
overridevirtual |
the parameter is actually SwTwips apparently?
Reimplemented from SwLinePortion.
Reimplemented in SwNumberPortion, SwErgoSumPortion, SwDropPortion, and SwExpandPortion.
Definition at line 501 of file portxt.cxx.
References SwLinePortion::GetModelPositionForViewPoint().
TextFrameIndex SwTextPortion::GetSpaceCnt | ( | const SwTextSizeInfo & | rInf, |
TextFrameIndex & | rCnt | ||
) | const |
Definition at line 572 of file portxt.cxx.
References aStr, 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().
|
overridevirtual |
Reimplemented from SwLinePortion.
Reimplemented in SwFieldPortion, SwDropPortion, SwTextInputFieldPortion, SwFootnotePortion, and SwExpandPortion.
Definition at line 508 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 SwFieldPortion, SwQuoVadisPortion, SwSoftHyphPortion, SwBlankPortion, SwHyphStrPortion, SwIsoToxPortion, SwIsoRefPortion, SwHyphPortion, and SwExpandPortion.
Definition at line 668 of file portxt.cxx.
References SwLinePortion::GetLen(), SwLinePortion::GetWhichPor(), SwPosSize::Height(), SwPortionHandler::Text(), and SwPosSize::Width().
|
overridevirtual |
Implements SwLinePortion.
Reimplemented in SwFieldFormDatePortion, SwFieldFormDropDownPortion, SwCombinedPortion, SwGrfNumPortion, SwNumberPortion, SwHiddenPortion, SwFieldFormCheckboxPortion, SwFieldMarkPortion, SwDropPortion, SwSoftHyphStrPortion, SwFieldPortion, SwQuoVadisPortion, SwSoftHyphPortion, SwPostItsPortion, SwTextInputFieldPortion, SwBlankPortion, SwFootnotePortion, SwIsoToxPortion, SwIsoRefPortion, SwExpandPortion, SwToxPortion, and SwRefPortion.
Definition at line 523 of file portxt.cxx.
References assert(), CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_SUBST_FIELDEND, CH_TXT_ATR_SUBST_FIELDSTART, SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawBorder(), SwTextPaintInfo::DrawMarkedText(), SwTextPaintInfo::DrawText(), SwTextPaintInfo::GetGrammarCheckList(), SwTextSizeInfo::GetIdx(), SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), SwTextPaintInfo::GetpWrongList(), SwTextPaintInfo::GetSmartTags(), SwTextSizeInfo::GetText(), SwLinePortion::mpNextPortion, SwTextSizeInfo::OnWin(), SwLinePortion::PrePaint(), and SwPosSize::Width().
Referenced by SwRefPortion::Paint(), SwToxPortion::Paint(), SwTextInputFieldPortion::Paint(), SwDropPortion::Paint(), and SwDropPortion::PaintText().