37 #define LINE_BREAK_WIDTH 150
38 #define SPECIAL_FONT_HEIGHT 200
52 const Color& rColor );
103 bool bBG =
false,
bool bGridKern =
false );
170 : mnViewWidth( 0 ), mnHalfCharWidth( 0 ), mcChar( cChar )
176 OUString & rOutString,
SwFont & rTmpFont,
int & rDeltaY)
const;
195 OUString & rOutString,
SwFont & rTmpFont,
int & rDeltaY)
const override;
virtual SwLinePortion * Compress() override
virtual bool Format(SwTextFormatInfo &rInf) override
virtual bool DoPaint(SwTextPaintInfo const &rInf, OUString &rOutString, SwFont &rTmpFont, int &rDeltaY) const override
virtual void Paint(const SwTextPaintInfo &rInf) const override
const FontStrikeout m_eStrikeout
virtual void Paint(const SwTextPaintInfo &rInf) const override
const Point & GetPos() const
SwArrowPortion(const SwLinePortion &rPortion)
virtual bool DoPaint(SwTextPaintInfo const &rInf, OUString &rOutString, SwFont &rTmpFont, int &rDeltaY) const
The SwPortionHandler interface implements a visitor for the layout engine's text portions.
virtual SwLinePortion * Compress() override
virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo &rInf) const override
void SetLen(TextFrameIndex const nLen)
SwControlCharPortion(sal_Unicode cChar)
SwKernPortion(SwLinePortion &rPortion, short nKrn, bool bBG=false, bool bGridKern=false)
sal_uInt16 mnHalfCharWidth
virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo &rInf) const override
virtual void FormatEOL(SwTextFormatInfo &rInf) override
virtual void Paint(const SwTextPaintInfo &rInf) const override
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
SwTwips m_nTextHeight
Height of the line-break character itself, without spacing added for clearing.
virtual bool Format(SwTextFormatInfo &rInf) override
SwTmpEndPortion(const SwLinePortion &rPortion, const FontLineStyle eUnderline, const FontStrikeout eStrikeout, const Color &rColor)
This portion represents a part of the paragraph string.
virtual void Paint(const SwTextPaintInfo &rInf) const override
void SetWhichPor(const PortionType nNew)
virtual void Paint(const SwTextPaintInfo &rInf) const override
SwLineBreakClear m_eClear
Tracks the type of the breaking clear from SwTextLineBreak, if there is one.
SwLineBreakClear GetClear() const
void SetRedline(const RedlineType eRedline)
Indicator that the content does not fit into a fixed height frame (red triangle on the UI)...
static constexpr OUStringLiteral S_NOBREAK_FOR_REDLINE
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const override
the parameter is actually SwTwips apparently?
virtual SwLinePortion * Compress() override
SwBookmarkPortion(sal_Unicode const cChar)
Base class for anything that can be part of a line in the Writer layout.
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
const FontLineStyle m_eUnderline
virtual bool Format(SwTextFormatInfo &rInf) override
virtual void Paint(const SwTextPaintInfo &rInf) const override
SwHiddenTextPortion(TextFrameIndex const nLen)
SwBreakPortion(const SwLinePortion &rPortion, const SwTextAttr *pAttr)
for showing bookmark starts and ends; note that in contrast to SwControlCharPortion these do not have...
struct _xmlTextWriter * xmlTextWriterPtr
SwHangingPortion(SwPosSize aSize)
sal_uInt16 GetInnerWidth() const
o3tl::strong_int< sal_Int32, struct Tag_TextFrameIndex > TextFrameIndex
Denotes a character index in a text frame at a layout level, after extent mapping from a text node at...
virtual void HandlePortion(SwPortionHandler &rPH) const override