29 : m_nFixWidth( nInitFixWidth )
59 rText = aBuf.makeStringAndClear();
73 OUStringBuffer
aBuf(nCount);
75 OUString aText(aBuf.makeStringAndClear());
83 #if OSL_DEBUG_LEVEL > 0
86 "SwGluePortion::Paint: blank expected" );
93 aPos.AdjustX((
Width()/2) - (aBulletSize.Width()/2) );
97 aBulletPor.
Width( aBulletSize.Width() );
98 aBulletPor.
Height( aBulletSize.Height() );
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 )
201 pLeft = static_cast<SwGluePortion*>(pPos);
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;
void MoveAllGlue(SwGluePortion *pTarget)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
std::deque< sal_uInt16 > * GetpKanaComp() const
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
void SetPos(const Point &rNew)
void dumpAsXmlAttributes(xmlTextWriterPtr writer, std::u16string_view rText, TextFrameIndex nOffset) const
void MoveGlue(SwGluePortion *pTarget, const tools::Long nPrtGlue)
void SetLen(TextFrameIndex const nLen)
const sal_Unicode CH_BULLET
void DrawText(const OUString &rText, const SwLinePortion &rPor, TextFrameIndex nIdx=TextFrameIndex(0), TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING), const bool bKern=false) const
Of course Writer needs its own rectangles.
SwPosSize GetTextSize(OutputDevice *pOut, const SwScriptInfo *pSI, const OUString &rText, TextFrameIndex nIdx, TextFrameIndex nLen) const
sal_Unicode GetChar(TextFrameIndex const nPos) const
tools::Long GetPrtGlue() const
bool IsBlank(bool bHard=false) const
bool InFixMargGrp() const
This portion represents a part of the paragraph string.
void Join(SwGluePortion *pVictim)
const SwViewOption & GetOpt() const
void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &nOffset) const override
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const
the parameter is actually SwTwips apparently?
virtual bool GetExpText(const SwTextSizeInfo &rInf, OUString &rText) const override
Collection of SwLinePortion instances, representing one line of text.
void PrtWidth(SwTwips nNewWidth)
void SetWhichPor(const PortionType nNew)
bool IsFlyPortion() const
const sal_Unicode CH_BLANK
bool IsKernPortion() const
SwGluePortion(const sal_uInt16 nInitFixWidth)
virtual void Paint(const SwTextPaintInfo &rInf) const override
TextFrameIndex GetIdx() const
sal_uInt16 GetBlankWidth() const
virtual SwPosSize GetTextSize(const SwTextSizeInfo &rInfo) const override
SwLinePortion * Cut(SwLinePortion *pVictim)
TextFrameIndex GetLen() const
bool IsPaintBlank() const
bool IsHolePortion() const
const Point & GetPos() const
sal_uInt16 GetBlankWidth() const
Base class for anything that can be part of a line in the Writer layout.
For the text replacement and restoration of SwTextSizeInfo.
TextFrameIndex GetLen() const
void AddPrtWidth(const SwTwips nNew)
SwLinePortion * FindPrevPortion(const SwLinePortion *pRoot)
void SetNextPortion(SwLinePortion *pNew)
struct _xmlTextWriter * xmlTextWriterPtr
void SubPrtWidth(const SwTwips nNew)
void AdjustRight(const SwLineLayout *pCurr)
In the outer loop all portions are inspected - the GluePortions at the end are processed first...
sal_uInt16 GetFixWidth() const
SwLinePortion * GetNextPortion() 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...
void Height(tools::Long nNew)
virtual SwLinePortion * Insert(SwLinePortion *pPortion)
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const override
the parameter is actually SwTwips apparently?
SwPosSize(const SwTwips nW=0, const SwTwips nH=0)
void SetAscent(const SwTwips nNewAsc)
OStringBuffer & padToLength(OStringBuffer &rBuffer, sal_Int32 nLength, char cFill= '\0')