49 m_bRegisterOn = pNode->GetSwAttrSet().GetRegister().GetValue()
157 pLay = pRoot->
IsDummy() ?
nullptr : pRoot;
177 while( pMyPrev && pMyPrev->
IsDummy() )
182 return pMyPrev ? pMyPrev : pLast;
216 sal_uInt16 nPorHeight, sal_uInt16 nPorAscent,
217 const bool bAutoToCentered )
const
221 nPorHeight = pPor->
Height();
242 nOfst = nOfst + nPorAscent;
251 const sal_uInt16 nLineNet = rLine.
Height() - nRubyHeight;
255 nOfst += ( nLineNet - nPorHeight ) / 2;
257 nOfst += nRubyHeight;
265 nOfst = nOfst + nPorAscent;
268 OSL_ENSURE( rLine.
Height() >= nPorHeight,
"Portion height > Line height");
269 nOfst += ( rLine.
Height() - nPorHeight ) / 2 + nPorAscent;
272 nOfst += rLine.
Height() - nPorHeight + nPorAscent;
284 nOfst += rLine.
Height() - ( rLine.
Height() - nPorHeight ) / 2 - nPorAscent;
286 nOfst += ( rLine.
Height() - nPorHeight ) / 2 + nPorAscent;
313 while( pPor && !bRet )
338 if ( pFollow && ! pFollow->
IsLocked() &&
347 nRangeEnd = nRangeEnd + pLine->
GetLen();
361 if ( nEnd <= nTmpPos && nTmpPos < nRangeEnd )
407 pOut( rInfo.GetOut() ),
408 bOnWin( rInfo.OnWin() )
410 OSL_ENSURE( rInfo.
GetRefDev(),
"No reference device for text formatting" );
void CtorInitTextIter(SwTextFrame *pFrame, SwTextInfo *pInf)
const sal_Unicode CH_BREAK
Represents the visualization of a paragraph.
bool MaybeHasHints() const
SwHookOut(SwTextSizeInfo &rInfo)
sal_uInt16 Height() const
const SwLineLayout * NextLine()
const SwRect & getFramePrintArea() const
void SetOnWin(const bool bNew)
SwParaPortion * GetPara()
constexpr TypedWhichId< SwFormatFlyCnt > RES_TXTATR_FLYCNT(57)
bool GetRubyTextBelow() const
void CharToLine(TextFrameIndex)
const SwLineLayout * Next()
void Pos(const Point &rNew)
SwTextAttr const * NextAttr(SwTextNode const **ppNode=nullptr)
void CtorInitAttrIter(SwTextNode &rTextNode, SwScriptInfo &rScrInf, SwTextFrame const *pFrame=nullptr)
const SwRect & getFrameArea() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
void CtorInitLineInfo(const SwAttrSet &rAttrSet, const SwTextNode &rTextNode)
const SwLineLayout * GetNextLine() const
bool IsSquaredMode() const
vcl::RenderContext * GetRefDev()
SwLineLayout * GetPrev_()
SwTextFrame * GetFollow()
TextFrameIndex GetOffset() const
static bool lcl_NeedsFieldRest(const SwLineLayout *pCurr)
void CalcAscentAndHeight(sal_uInt16 &rAscent, sal_uInt16 &rHeight) const
SwTextNode * GetTextNodeFirst()
void SetRealHeight(sal_uInt16 nNew)
SwTextNode const * GetTextNodeForParaProps() const
virtual void Height(const sal_uInt16 nNew, const bool bText=true) override
sal_uInt16 AdjustBaseLine(const SwLineLayout &rLine, const SwLinePortion *pPor, sal_uInt16 nPorHeight=0, sal_uInt16 nAscent=0, const bool bAutoToCentered=false) const
const SwLineLayout * GetPrevLine()
Collection of SwLinePortion instances, representing one line of text.
const SwLineInfo & GetLineInfo() const
SwPageFrame * FindPageFrame()
SwParaPortion * GetParaPortion()
TextFrameIndex MapModelToView(MergedPara const &, SwTextNode const *pNode, sal_Int32 nIndex)
SwTextGridItem const * GetGridItem(SwPageFrame const *const)
void TwipsToLine(const SwTwips)
const SwLineLayout * GetPrev()
sal_uInt16 GetLineHeight() const
void TruncLines(bool bNoteFollow=false)
bool FillRegister(SwTwips &rRegStart, sal_uInt16 &rRegDiff)
Determines the start position and step size of the register.
TextFrameIndex GetLen() const
bool IsMultiPortion() const
Base class for anything that can be part of a line in the Writer layout.
const SwLineLayout * Prev()
SwTextNode is a paragraph in the document model.
void SetNext(SwLineLayout *pNew)
SwTextSizeInfo & GetInfo()
const SwLineLayout * PrevLine()
SwScriptInfo & GetScriptInfo()
double getLength(const B2DPolygon &rCandidate)
void SetFollowField(const bool bNew)
void CntHyphens(sal_uInt8 &nEndCnt, sal_uInt8 &nMidCnt) const
sal_uInt16 GetRealHeight() const
void SetOut(OutputDevice *pNewOut)
const SwLineLayout * CharCursorToLine(TextFrameIndex const nPos)
SwTextFrame * GetTextFrame()
VclPtr< OutputDevice > pOut
SwLinePortion * GetNextPortion() const
SvxParaVertAlignItem::Align GetVertAlign() const
void InvalidateRange_(const SwCharRange &, const tools::Long=0)
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 RemoveFootnote(TextFrameIndex nStart, TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING))
Footnote.
sal_uInt16 GetRubyHeight() const
TextFrameIndex GetTextStart() const