23 #include <com/sun/star/text/RubyAdjust.hpp>
169 sal_uInt16
PreWidth()
const {
return m_pBracket->nPreWidth; };
170 sal_uInt16
PostWidth()
const {
return m_pBracket->nPostWidth; }
172 { m_pBracket->nPreWidth = m_pBracket->nPostWidth=0;
Width( 0 ); }
179 {
return ( m_nLineDiff < 0 ) ? m_nBlank2 :
m_nBlank1; }
181 {
return ( m_nLineDiff < 0 ) ? m_nBlank1 :
m_nBlank2; }
202 {
if(m_nAdjustment != css::text::RubyAdjust_LEFT &&
GetRoot().GetNext())
Adjust_(rInf); }
bool HasFlyInContent() const
virtual tools::Long CalcSpacing(tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const override
void CalcSize(SwTextFormatter &rLine, SwTextFormatInfo &rInf)
SwRubyPortion(const SwRubyPortion &rRuby, TextFrameIndex nEnd)
SwTextCursorSave(SwTextCursor *pTextCursor, SwMultiPortion *pMulti, SwTwips nY, sal_uInt16 &nX, TextFrameIndex nCurrStart, tools::Long nSpaceAdd)
virtual ~SwMultiPortion() override
virtual ~SwDoubleLinePortion() override
sal_uInt16 BracketWidth()
The SwPortionHandler interface implements a visitor for the layout engine's text portions.
void SetFlyInContent(bool bNew)
const SwLineLayout & GetRoot() const
TextFrameIndex GetRubyOffset() const
void SetLen(TextFrameIndex const nLen)
virtual tools::Long CalcSpacing(tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const override
SwTextCursor * pTextCursor
sal_uInt8 GetDirection() const
virtual void Paint(const SwTextPaintInfo &rInf) const override
virtual void HandlePortion(SwPortionHandler &rPH) const override
void PaintBracket(SwTextPaintInfo &rInf, tools::Long nSpaceAdd, bool bOpen) const
SwRotatedPortion(TextFrameIndex const nEnd, sal_uInt8 nDir)
void FormatBrackets(SwTextFormatInfo &rInf, SwTwips &nMaxWidth)
const SfxPoolItem * pItem
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
css::text::RubyAdjust GetAdjustment() const
bool IsFollowField() const
void Adjust_(SwTextFormatInfo &rInf)
TextFrameIndex m_nRubyOffset
sal_uInt8 GetLevel() const
Collection of SwLinePortion instances, representing one line of text.
SwTwips GetLineDiff() const
static void ResetSpaceAdd(SwLineLayout *pCurr)
void SetWhichPor(const PortionType nNew)
css::text::RubyAdjust m_nAdjustment
TextFrameIndex GetSpaceCnt(const SwTextSizeInfo &rInf) const
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, tools::Long nSpaceAdd) const override
Provides access to settings of a document.
TextFrameIndex GetSmallerSpaceCnt() const
void CalcBlanks(SwTextFormatInfo &rInf)
void Adjust(SwTextFormatInfo &rInf)
sal_uInt16 PreWidth() const
std::unique_ptr< SwBracket > m_pBracket
Base class for anything that can be part of a line in the Writer layout.
SwMultiPortion(TextFrameIndex const nEnd)
TextFrameIndex m_nBlank1
Number of blanks in the first line.
void SetDirection(sal_uInt8 nNew)
sal_uInt16 PostWidth() const
TextFrameIndex GetSpaceCnt() const
void ActualizeTabulator()
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, tools::Long nSpaceAdd) const override
virtual tools::Long CalcSpacing(tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const override
RubyPosition GetRubyPosition() const
void SetBrackets(const SwDoubleLinePortion &rDouble)
TextFrameIndex nStartOfAttr
bool HasTabulator() const
TextFrameIndex m_nBlank2
Number of blanks in the second line.
void SetRubyPosition(RubyPosition eNew)
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, tools::Long nSpaceAdd) const
SwBidiPortion(TextFrameIndex nEnd, sal_uInt8 nLv)
SwBracket * GetBrackets() const
RubyPosition m_eRubyPosition
SwDoubleLinePortion(SwDoubleLinePortion &rDouble, TextFrameIndex nEnd)