23 #include <com/sun/star/text/RubyAdjust.hpp>
89 bool m_bFollowField :1;
90 bool m_bFlyInContent:1;
100 , m_bFormatted(
false)
101 , m_bFollowField(
false)
102 , m_bFlyInContent(
false)
136 void ActualizeTabulator();
145 inline bool HasBrackets()
const;
147 bool IsRevers()
const {
return 0 != (2 & m_nDirection); }
172 sal_uInt16
PreWidth()
const {
return m_pBracket->nPreWidth; };
173 sal_uInt16
PostWidth()
const {
return m_pBracket->nPostWidth; }
175 { m_pBracket->nPreWidth = m_pBracket->nPostWidth=0;
Width( 0 ); }
182 {
return ( m_nLineDiff < 0 ) ? m_nBlank2 :
m_nBlank1; }
184 {
return ( m_nLineDiff < 0 ) ? m_nBlank1 :
m_nBlank2; }
205 {
if(m_nAdjustment != css::text::RubyAdjust_LEFT &&
GetRoot().GetNext())
Adjust_(rInf); }
bool HasFlyInContent() const
SwRubyPortion(const SwRubyPortion &rRuby, TextFrameIndex nEnd)
virtual ~SwDoubleLinePortion() override
sal_uInt16 BracketWidth()
virtual tools::Long CalcSpacing(tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const
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
void PaintBracket(SwTextPaintInfo &rInf, tools::Long nSpaceAdd, bool bOpen) const
SwRotatedPortion(TextFrameIndex const nEnd, sal_uInt8 nDir)
virtual void Paint(const SwTextPaintInfo &rInf) const =0
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
virtual void dumpAsXml(xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &rOffset) const
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
SwTextCursorSave(SwTextCursor *pTextCursor, SwMultiPortion *pMulti, SwTwips nY, SwTwips &nX, TextFrameIndex nCurrStart, tools::Long nSpaceAdd)
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, tools::Long nSpaceAdd) const override
virtual void HandlePortion(SwPortionHandler &rPH) const
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
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
struct _xmlTextWriter * xmlTextWriterPtr
bool HasTabulator() const
TextFrameIndex m_nBlank2
Number of blanks in the second line.
void SetRubyPosition(RubyPosition eNew)
SwBidiPortion(TextFrameIndex nEnd, sal_uInt8 nLv)
SwBracket * GetBrackets() const
RubyPosition m_eRubyPosition
SwDoubleLinePortion(SwDoubleLinePortion &rDouble, TextFrameIndex nEnd)
bool m_bDetectedRangeSegmentation false