29 : m_nFixWidth( nInitFixWidth )
59 rText =
aBuf.makeStringAndClear();
75 OUString aText(
aBuf.makeStringAndClear());
83#if OSL_DEBUG_LEVEL > 0
86 "SwGluePortion::Paint: blank expected" );
135 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwGluePortion"));
139 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"fix-width"), BAD_CAST(OString::number(
m_nFixWidth).getStr()));
141 (void)xmlTextWriterEndElement(pWriter);
162 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFixPortion"));
166 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"fix"),
167 BAD_CAST(OString::number(
m_nFix).getStr()));
169 (void)xmlTextWriterEndElement(pWriter);
192 while( pRight !=
this )
213 auto nRightGlue = pRight && 0 < pRight->
GetPrtGlue()
217 if( pLeft && nRightGlue && !pRight->
InTabGrp() )
241 while( pPrev != pLeft )
243 if( bNoMove || pPrev->
PrtWidth() >= nRightGlue ||
253 nRightGlue = nRightGlue - pPrev->
PrtWidth();
281 pRight = pLeft ? pLeft :
this;
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...
tools::Long AdjustX(tools::Long nHorzMove)
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
sal_uInt16 GetBlankWidth() const
bool IsPaintBlank() const
A glue portion is either a base class for other portions that want to have a certain width to push te...
virtual void Paint(const SwTextPaintInfo &rInf) const override
tools::Long GetPrtGlue() const
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?
void MoveAllGlue(SwGluePortion *pTarget)
void Join(SwGluePortion *pVictim)
sal_uInt16 GetFixWidth() const
void MoveGlue(SwGluePortion *pTarget, const tools::Long nPrtGlue)
virtual SwPosSize GetTextSize(const SwTextSizeInfo &rInfo) const override
SwGluePortion(const sal_uInt16 nInitFixWidth)
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const override
sal_uInt16 GetBlankWidth() const
Collection of SwLinePortion instances, representing one line of text.
std::deque< sal_uInt16 > * GetpKanaComp() const
Base class for anything that can be part of a line in the Writer layout.
void PrtWidth(SwTwips nNewWidth)
void dumpAsXmlAttributes(xmlTextWriterPtr writer, std::u16string_view rText, TextFrameIndex nOffset) const
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const
the parameter is actually SwTwips apparently?
SwLinePortion * GetNextPortion() const
void SetAscent(const SwTwips nNewAsc)
void SetNextPortion(SwLinePortion *pNew)
SwLinePortion * Cut(SwLinePortion *pVictim)
TextFrameIndex GetLen() const
bool IsKernPortion() const
void SubPrtWidth(const SwTwips nNew)
void AddPrtWidth(const SwTwips nNew)
SwLinePortion * FindPrevPortion(const SwLinePortion *pRoot)
void SetLen(TextFrameIndex const nLen)
bool IsHolePortion() const
bool IsFlyPortion() const
void SetWhichPor(const PortionType nNew)
bool InFixMargGrp() const
virtual SwLinePortion * Insert(SwLinePortion *pPortion)
void AdjustRight(const SwLineLayout *pCurr)
In the outer loop all portions are inspected - the GluePortions at the end are processed first.
SwPosSize(const SwTwips nW=0, const SwTwips nH=0)
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
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
This portion represents a part of the paragraph string.
const SwViewOption & GetOpt() const
SwPosSize GetTextSize(OutputDevice *pOut, const SwScriptInfo *pSI, const OUString &rText, TextFrameIndex nIdx, TextFrameIndex nLen) const
sal_Unicode GetChar(TextFrameIndex const nPos) const
TextFrameIndex GetLen() const
TextFrameIndex GetIdx() const
For the text replacement and restoration of SwTextSizeInfo.
bool IsBlank(bool bHard=false) const
struct _xmlTextWriter * xmlTextWriterPtr
OStringBuffer & padToLength(OStringBuffer &rBuffer, sal_Int32 nLength, char cFill='\0')
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
const sal_Unicode CH_BLANK
const sal_Unicode CH_BULLET