19 #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORLIN_HXX
20 #define INCLUDED_SW_SOURCE_CORE_TEXT_PORLIN_HXX
25 #include <rtl/ustring.hxx>
34 #define PORGRP_TXT 0x8000
35 #define PORGRP_EXP 0x4000
36 #define PORGRP_FLD 0x2000
37 #define PORGRP_HYPH 0x1000
38 #define PORGRP_NUMBER 0x0800
39 #define PORGRP_GLUE 0x0400
40 #define PORGRP_FIX 0x0200
41 #define PORGRP_TAB 0x0100
43 #define PORGRP_FIXMARG 0x0040
45 #define PORGRP_TABNOTLFT 0x0010
46 #define PORGRP_TOXREF 0x0008
79 void SetAscent(
const sal_uInt16 nNewAsc ) { mnAscent = nNewAsc; }
176 *
static_cast<SwPosSize*
>(
this) = rPortion;
187 mpNextPortion( nullptr ),
188 mnLineLength( rPortion.mnLineLength ),
189 mnAscent( rPortion.mnAscent ),
190 mnWhichPor( rPortion.mnWhichPor ),
191 m_bJoinBorderWithPrev( rPortion.m_bJoinBorderWithPrev ),
192 m_bJoinBorderWithNext( rPortion.m_bJoinBorderWithNext )
virtual bool Format(SwTextFormatInfo &rInf)
void Move(SwTextPaintInfo &rInf)
bool IsGrfNumPortion() const
virtual tools::Long CalcSpacing(tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const
#define PORGRP_TXT
Portion groups.
bool IsTextPortion() const
bool GetJoinBorderWithPrev() const
void CalcTextSize(const SwTextSizeInfo &rInfo)
The SwPortionHandler interface implements a visitor for the layout engine's text portions.
void SetLen(TextFrameIndex const nLen)
bool IsHangingPortion() const
void SetJoinBorderWithPrev(const bool bJoinPrev)
bool IsParaPortion() const
virtual SwLinePortion * Compress()
bool IsControlCharPortion() const
bool IsLayPortion() const
bool IsMarginPortion() const
bool InToxRefOrFieldGrp() const
virtual void Paint(const SwTextPaintInfo &rInf) const =0
bool IsBreakPortion() const
bool InFixMargGrp() const
bool IsSoftHyphPortion() const
bool IsCombinedPortion() const
bool IsFootnoteNumPortion() const
virtual SwLinePortion * Append(SwLinePortion *pPortion)
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const
the parameter is actually SwTwips apparently?
virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo &rInf) const
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const
bool IsTabRightPortion() const
void SetWhichPor(const PortionType nNew)
SwLinePortion & operator=(const SwLinePortion &rPortion)
bool IsFlyPortion() const
bool IsKernPortion() const
bool IsNumberPortion() const
virtual void HandlePortion(SwPortionHandler &rPH) const
void SetJoinBorderWithNext(const bool bJoinNext)
bool IsTabLeftPortion() const
bool IsDropPortion() const
void PrePaint(const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
SwLinePortion * Cut(SwLinePortion *pVictim)
TextFrameIndex GetLen() const
bool m_bJoinBorderWithPrev
bool IsHolePortion() const
bool m_bJoinBorderWithNext
SwLinePortion * mpNextPortion
bool IsMultiPortion() const
Base class for anything that can be part of a line in the Writer layout.
TextFrameIndex mnLineLength
PortionType GetWhichPor() const
bool IsFootnotePortion() const
SwLinePortion * FindLastPortion()
bool IsErgoSumPortion() const
virtual SwPosSize GetTextSize(const SwTextSizeInfo &rInfo) const
SwLinePortion * FindPrevPortion(const SwLinePortion *pRoot)
sal_uInt16 GetAscent() const
void SetNextPortion(SwLinePortion *pNew)
void SetAscent(const sal_uInt16 nNewAsc)
bool IsArrowPortion() const
void PrtWidth(sal_uInt16 nNewWidth)
virtual void FormatEOL(SwTextFormatInfo &rInf)
bool IsQuoVadisPortion() const
sal_uInt16 PrtWidth() const
void SubPrtWidth(const sal_uInt16 nNew)
bool GetJoinBorderWithNext() const
SwLinePortion * GetNextPortion() const
bool IsFlyCntPortion() const
virtual SwLinePortion * Insert(SwLinePortion *pPortion)
bool IsPostItsPortion() const
void AddPrtWidth(const sal_uInt16 nNew)
bool IsBlankPortion() const