19 #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORMULTI_HXX
20 #define INCLUDED_SW_SOURCE_CORE_TEXT_PORMULTI_HXX
24 #include <com/sun/star/text/RubyAdjust.hpp>
170 sal_uInt16
PreWidth()
const {
return pBracket->nPreWidth; };
171 sal_uInt16
PostWidth()
const {
return pBracket->nPostWidth; }
173 { pBracket->nPreWidth = pBracket->nPostWidth=0;
Width( 0 ); }
180 {
return ( nLineDiff < 0 ) ? nBlank2 :
nBlank1; }
182 {
return ( nLineDiff < 0 ) ? nBlank1 :
nBlank2; }
203 {
if(nAdjustment != css::text::RubyAdjust_LEFT &&
GetRoot().GetNext())
Adjust_(rInf); }
bool HasFlyInContent() const
TextFrameIndex nBlank1
Number of blanks in the first line.
TextFrameIndex nRubyOffset
void CalcSize(SwTextFormatter &rLine, SwTextFormatInfo &rInf)
SwRubyPortion(const SwRubyPortion &rRuby, TextFrameIndex nEnd)
virtual ~SwMultiPortion() override
virtual ~SwDoubleLinePortion() override
sal_uInt16 BracketWidth()
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, long nSpaceAdd) const
virtual long CalcSpacing(long nSpaceAdd, const SwTextSizeInfo &rInf) const override
The SwPortionHandler interface implements a visitor for the layout engine's text portions.
void SetFlyInContent(bool bNew)
TextFrameIndex nBlank2
Number of blanks in the second line.
const SwLineLayout & GetRoot() const
TextFrameIndex GetRubyOffset() const
void SetLen(TextFrameIndex const nLen)
virtual long CalcSpacing(long nSpaceAdd, const SwTextSizeInfo &rInf) const override
SwTextCursor * pTextCursor
void PaintBracket(SwTextPaintInfo &rInf, long nSpaceAdd, bool bOpen) const
sal_uInt8 GetDirection() const
virtual void Paint(const SwTextPaintInfo &rInf) const override
std::unique_ptr< SwBracket > pBracket
virtual void HandlePortion(SwPortionHandler &rPH) const override
SwRotatedPortion(TextFrameIndex const nEnd, sal_uInt8 nDir)
void FormatBrackets(SwTextFormatInfo &rInf, SwTwips &nMaxWidth)
virtual long CalcSpacing(long nSpaceAdd, const SwTextSizeInfo &rInf) const override
const SfxPoolItem * pItem
css::text::RubyAdjust GetAdjustment() const
bool IsFollowField() const
void Adjust_(SwTextFormatInfo &rInf)
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, long nSpaceAdd) const override
css::text::RubyAdjust nAdjustment
sal_uInt8 GetLevel() const
SwTextCursorSave(SwTextCursor *pTextCursor, SwMultiPortion *pMulti, SwTwips nY, sal_uInt16 &nX, TextFrameIndex nCurrStart, long nSpaceAdd)
Collection of SwLinePortion instances, representing one line of text.
SwTwips GetLineDiff() const
static void ResetSpaceAdd(SwLineLayout *pCurr)
void SetWhichPor(const PortionType nNew)
TextFrameIndex GetSpaceCnt(const SwTextSizeInfo &rInf) const
virtual bool ChgSpaceAdd(SwLineLayout *pCurr, 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
Base class for anything that can be part of a line in the Writer layout.
SwMultiPortion(TextFrameIndex const nEnd)
void SetDirection(sal_uInt8 nNew)
sal_uInt16 PostWidth() const
TextFrameIndex GetSpaceCnt() const
void ActualizeTabulator()
RubyPosition GetRubyPosition() const
void SetBrackets(const SwDoubleLinePortion &rDouble)
TextFrameIndex nStartOfAttr
bool HasTabulator() const
void SetRubyPosition(RubyPosition eNew)
SwBidiPortion(TextFrameIndex nEnd, sal_uInt8 nLv)
SwBracket * GetBrackets() const
RubyPosition m_eRubyPosition
SwDoubleLinePortion(SwDoubleLinePortion &rDouble, TextFrameIndex nEnd)