45 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwExpandPortion"));
49 (void)xmlTextWriterEndElement(pWriter);
54 SwTextSlot aDiffText( &rInf,
this,
false,
false );
60 SwTextSlot aDiffText( &rInf,
this,
true,
false );
79 SwTextSlot aDiffText( &rInf,
this,
true,
true );
228 std::shared_ptr<SwRect> pPortionRect = std::make_shared<SwRect>();
229 rInf.
CalcRect(*
this, pPortionRect.get());
230 aPos.
AdjustX((pPortionRect->Width() / 2) - (aMarkerSize.
Width() / 2));
271 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwBlankPortion"));
275 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"char"),
276 BAD_CAST(OUString(
m_cChar).toUtf8().getStr()));
277 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"multi"),
278 BAD_CAST(OString::boolean(
m_bMulti).getStr()));
280 (void)xmlTextWriterEndElement(pWriter);
284 : m_bScript( bScrpt )
@ USE_VARIABLE_WIDTH_NBSP
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 bool get(DocumentSettingId id) const =0
Return the specified document setting.
tools::Long AdjustX(tools::Long nHorzMove)
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const override
virtual void HandlePortion(SwPortionHandler &rPH) const override
virtual void FormatEOL(SwTextFormatInfo &rInf) override
Format End of Line.
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
virtual bool Format(SwTextFormatInfo &rInf) override
Pass on the underflows and trigger them ourselves!
static sal_uInt16 MayUnderflow(const SwTextFormatInfo &rInf, TextFrameIndex nIdx, bool bUnderflow)
If a Line is full of HardBlanks and overflows, we must not generate underflows! Causes problems with ...
virtual SwLinePortion * Compress() override
virtual void Paint(const SwTextPaintInfo &rInf) const override
IDocumentSettingAccess const & getIDocumentSettingAccess() const
virtual void Paint(const SwTextPaintInfo &rInf) const override
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const override
virtual bool Format(SwTextFormatInfo &rInf) override
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const override
the parameter is actually SwTwips apparently?
virtual SwPosSize GetTextSize(const SwTextSizeInfo &rInfo) const override
virtual void HandlePortion(SwPortionHandler &rPH) const override
To take Asian or other languages into consideration, an SwFont object consists of 3 SwSubFonts (Latin...
void SetRightBorder(const editeng::SvxBorderLine *pRightBorder)
void SetColor(const Color &rColor)
const Color & GetColor() const
Base class for anything that can be part of a line in the Writer layout.
TextFrameIndex mnLineLength
bool IsBlankPortion() const
void dumpAsXmlAttributes(xmlTextWriterPtr writer, std::u16string_view rText, TextFrameIndex nOffset) const
SwLinePortion * mpNextPortion
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const
the parameter is actually SwTwips apparently?
SwLinePortion * GetNextPortion() const
void SetAscent(const SwTwips nNewAsc)
bool GetJoinBorderWithPrev() const
PortionType GetWhichPor() const
TextFrameIndex GetLen() const
bool IsKernPortion() const
bool GetJoinBorderWithNext() const
SwLinePortion * FindPrevPortion(const SwLinePortion *pRoot)
bool IsFlyPortion() const
virtual bool Format(SwTextFormatInfo &rInf)
void SetWhichPor(const PortionType nNew)
void PrePaint(const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
The SwPortionHandler interface implements a visitor for the layout engine's text portions.
virtual void Special(TextFrameIndex nLength, const OUString &rText, PortionType nType)=0
special portion.
virtual sal_uInt16 GetViewWidth(const SwTextSizeInfo &rInf) const override
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const override
SwPostItsPortion(bool bScrpt)
virtual bool Format(SwTextFormatInfo &rInf) override
virtual void Paint(const SwTextPaintInfo &rInf) const override
SwLinePortion * GetLast()
TextFrameIndex GetLineStart() const
void SetLast(SwLinePortion *pNewLast)
void SetUnderflow(SwLinePortion *pNew)
void DrawCSDFHighlighting(const SwLinePortion &rPor) const
void DrawMarkedText(const SwLinePortion &rPor, TextFrameIndex nLen, const bool bWrong, const bool bSmartTags, const bool bGrammarCheck) const
void DrawText(const OUString &rText, const SwLinePortion &rPor, TextFrameIndex nIdx=TextFrameIndex(0), TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING), const bool bKern=false) const
void SetPos(const Point &rNew)
const Point & GetPos() const
void CalcRect(const SwLinePortion &rPor, SwRect *pRect, SwRect *pIntersect=nullptr, const bool bInsideBox=false) const
Calculate the rectangular area where the portion takes place.
void DrawBackBrush(const SwLinePortion &rPor) const
sw::WrongListIterator * GetGrammarCheckList() const
void DrawPostIts(bool bScript) const
void DrawViewOpt(const SwLinePortion &rPor, PortionType nWhich, const Color *pColor=nullptr) const
void DrawBorder(const SwLinePortion &rPor) const
Draw character border around a line portion.
sw::WrongListIterator * GetSmartTags() const
This portion represents a part of the paragraph string.
virtual bool Format(SwTextFormatInfo &rInf) override
SwTextFrame * GetTextFrame()
vcl::RenderContext * GetOut()
const SwViewOption & GetOpt() const
void SetIdx(const TextFrameIndex nNew)
SwPosSize GetTextSize(OutputDevice *pOut, const SwScriptInfo *pSI, const OUString &rText, TextFrameIndex nIdx, TextFrameIndex nLen) const
bool StopUnderflow() const
sal_Unicode GetChar(TextFrameIndex const nPos) const
TextFrameIndex GetLen() const
const OUString & GetText() const
TextFrameIndex GetIdx() const
bool HasHint(TextFrameIndex nPos) const
For the text replacement and restoration of SwTextSizeInfo.
bool IsBlank(bool bHard=false) const
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
struct _xmlTextWriter * xmlTextWriterPtr
#define CH_TXTATR_BREAKWORD
vcl::Font GetFont(vcl::Font const &rFont, DrawModeFlags nDrawMode, StyleSettings const &rStyleSettings)
const sal_Unicode CH_BREAK
const sal_Unicode CH_BLANK
#define NON_PRINTING_CHARACTER_COLOR