LibreOffice Module sw (master)
1
|
#include <porglue.hxx>
Public Member Functions | |
SwGluePortion (const sal_uInt16 nInitFixWidth) | |
void | Join (SwGluePortion *pVictim) |
tools::Long | GetPrtGlue () const |
sal_uInt16 | GetFixWidth () const |
void | SetFixWidth (const sal_uInt16 nNew) |
void | MoveGlue (SwGluePortion *pTarget, const tools::Long nPrtGlue) |
void | MoveAllGlue (SwGluePortion *pTarget) |
void | MoveHalfGlue (SwGluePortion *pTarget) |
void | AdjFixWidth () |
virtual void | Paint (const SwTextPaintInfo &rInf) const 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 |
![]() | |
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 |
virtual bool | Format (SwTextFormatInfo &rInf) |
virtual void | FormatEOL (SwTextFormatInfo &rInf) |
void | Move (SwTextPaintInfo &rInf) |
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) |
![]() | |
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) |
Private Attributes | |
sal_uInt16 | m_nFixWidth |
Additional Inherited Members | |
![]() | |
SwLinePortion () | |
![]() | |
SwLinePortion * | mpNextPortion |
TextFrameIndex | mnLineLength |
sal_uInt16 | mnAscent |
Definition at line 27 of file porglue.hxx.
|
explicit |
Definition at line 28 of file porglue.cxx.
References Glue, m_nFixWidth, SwLinePortion::PrtWidth(), and SwLinePortion::SetWhichPor().
|
inline |
Definition at line 70 of file porglue.hxx.
References m_nFixWidth, and SwLinePortion::PrtWidth().
Referenced by SwTextAdjuster::CalcFlyPortion(), and Join().
|
overridevirtual |
Reimplemented from SwLinePortion.
Definition at line 52 of file porglue.cxx.
References aBuf, CH_BULLET, SwLinePortion::GetLen(), SwTextSizeInfo::GetOpt(), SwViewOption::IsBlank(), SwTextSizeInfo::IsNoSymbol(), SwTextSizeInfo::OnWin(), and comphelper::string::padToLength().
|
inline |
Definition at line 37 of file porglue.hxx.
References m_nFixWidth.
Referenced by Paint(), and SwTabPortion::PostFormat().
|
overridevirtual |
the parameter is actually SwTwips apparently?
Reimplemented from SwLinePortion.
Definition at line 35 of file porglue.cxx.
References SwLinePortion::GetLen(), SwLinePortion::GetModelPositionForViewPoint(), and SwPosSize::Width().
|
inline |
Definition at line 66 of file porglue.hxx.
References m_nFixWidth, and SwPosSize::Width().
Referenced by SwMarginPortion::AdjustRight(), MoveAllGlue(), MoveGlue(), and MoveHalfGlue().
|
overridevirtual |
Reimplemented from SwLinePortion.
Definition at line 44 of file porglue.cxx.
References SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), SwPosSize::Height(), SwPosSize::SwPosSize(), and SwPosSize::Width().
void SwGluePortion::Join | ( | SwGluePortion * | pVictim | ) |
Definition at line 118 of file porglue.cxx.
References SwLinePortion::AddPrtWidth(), AdjFixWidth(), SwLinePortion::Cut(), SwLinePortion::GetLen(), SwPosSize::Height(), SwLinePortion::PrtWidth(), and SwLinePortion::SetLen().
Referenced by SwLineLayout::CalcLeftMargin().
|
inline |
Definition at line 76 of file porglue.hxx.
References GetPrtGlue(), and MoveGlue().
Referenced by SwMarginPortion::AdjustRight(), and SwTextAdjuster::CalcDropAdjust().
void SwGluePortion::MoveGlue | ( | SwGluePortion * | pTarget, |
const tools::Long | nPrtGlue | ||
) |
Definition at line 108 of file porglue.cxx.
References SwLinePortion::AddPrtWidth(), GetPrtGlue(), and SwLinePortion::SubPrtWidth().
Referenced by SwMarginPortion::AdjustRight(), SwTextAdjuster::CalcDropAdjust(), MoveAllGlue(), and MoveHalfGlue().
|
inline |
Definition at line 81 of file porglue.hxx.
References GetPrtGlue(), and MoveGlue().
Referenced by SwTextAdjuster::CalcFlyAdjust().
|
overridevirtual |
Implements SwLinePortion.
Reimplemented in SwAutoTabDecimalPortion, SwFlyPortion, and SwTabPortion.
Definition at line 65 of file porglue.cxx.
References aBuf, CH_BLANK, CH_BULLET, SwTextPaintInfo::DrawText(), SwLinePortion::GetAscent(), SwTextSizeInfo::GetChar(), GetFixWidth(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetIdx(), SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), SwTextSizeInfo::GetOpt(), SwTextPaintInfo::GetPos(), SwTextSizeInfo::GetTextSize(), SwPosSize::Height(), SwViewOption::IsBlank(), SwTextSizeInfo::IsNoSymbol(), SwFont::IsPaintBlank(), SwTextSizeInfo::OnWin(), comphelper::string::padToLength(), Point, SwLinePortion::SetAscent(), SwTextPaintInfo::SetPos(), and SwPosSize::Width().
|
inline |
Definition at line 38 of file porglue.hxx.
Referenced by SwLineLayout::CalcLeftMargin(), SwFlyPortion::Format(), SwTextFormatter::FormatQuoVadis(), SwTabPortion::PostFormat(), and SwTabPortion::PreFormat().
|
private |
Definition at line 30 of file porglue.hxx.
Referenced by AdjFixWidth(), GetFixWidth(), GetPrtGlue(), and SwGluePortion().