21 #include <libxml/xmlwriter.h>
26 #include <rtl/ustring.hxx>
35 #define PORGRP_TXT 0x8000
36 #define PORGRP_EXP 0x4000
37 #define PORGRP_FLD 0x2000
38 #define PORGRP_HYPH 0x1000
39 #define PORGRP_NUMBER 0x0800
40 #define PORGRP_GLUE 0x0400
41 #define PORGRP_FIX 0x0200
42 #define PORGRP_TAB 0x0100
44 #define PORGRP_FIXMARG 0x0040
46 #define PORGRP_TABNOTLFT 0x0010
47 #define PORGRP_TOXREF 0x0008
93 inline void Truncate();
113 bool InSpaceGrp()
const {
return InTextGrp() || IsMultiPortion(); }
149 virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst)
const;
163 virtual bool GetExpText(
const SwTextSizeInfo &rInf, OUString &rText )
const;
166 virtual sal_uInt16 GetViewWidth(
const SwTextSizeInfo &rInf )
const;
181 void dumpAsXmlAttributes(
xmlTextWriterPtr writer, std::u16string_view rText,
187 *
static_cast<SwPosSize*
>(
this) = rPortion;
199 mpNextPortion( nullptr ),
200 mnLineLength( rPortion.mnLineLength ),
201 mnAscent( rPortion.mnAscent ),
202 mnHangingBaseline( rPortion.mnHangingBaseline ),
203 mnWhichPor( rPortion.mnWhichPor ),
204 m_bJoinBorderWithPrev( rPortion.m_bJoinBorderWithPrev ),
205 m_bJoinBorderWithNext( rPortion.m_bJoinBorderWithNext )
bool IsGrfNumPortion() const
#define PORGRP_TXT
Portion groups.
bool IsTextPortion() const
bool GetJoinBorderWithPrev() const
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
bool IsControlCharPortion() const
bool IsLayPortion() const
bool IsMarginPortion() const
bool InToxRefOrFieldGrp() const
bool IsTabDecimalPortion() const
bool IsBreakPortion() const
SwPosSize & operator=(SwPosSize const &)=default
SwTwips GetHangingBaseline() const
bool InFixMargGrp() const
bool IsSoftHyphPortion() const
bool IsCombinedPortion() const
bool IsFootnoteNumPortion() const
void PrtWidth(SwTwips nNewWidth)
bool IsTabRightPortion() const
void SetWhichPor(const PortionType nNew)
bool IsTabCenterPortion() const
SwLinePortion & operator=(const SwLinePortion &rPortion)
bool IsFlyPortion() const
bool IsKernPortion() const
bool IsNumberPortion() const
void SetJoinBorderWithNext(const bool bJoinNext)
bool IsTabLeftPortion() const
bool IsDropPortion() const
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
SwTwips GetAscent() const
PortionType GetWhichPor() const
bool IsFootnotePortion() const
bool IsErgoSumPortion() const
void AddPrtWidth(const SwTwips nNew)
void SetNextPortion(SwLinePortion *pNew)
struct _xmlTextWriter * xmlTextWriterPtr
bool IsArrowPortion() const
void SubPrtWidth(const SwTwips nNew)
bool IsQuoVadisPortion() const
bool GetJoinBorderWithNext() const
SwLinePortion * GetNextPortion() const
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName) override
float GetTextSize(std::u16string_view sValue)
void SetHangingBaseline(const SwTwips nNewBaseline)
bool IsFlyCntPortion() const
bool IsPostItsPortion() const
SwTwips mnHangingBaseline
void SetAscent(const SwTwips nNewAsc)
bool IsBlankPortion() const