47 : m_pFnt( &rFont ), m_nLen( nL ), m_nWidth( 0 ), m_bJoinBorderWithNext(
false), m_bJoinBorderWithPrev(
false) {};
51 void SetFollow( std::unique_ptr<SwDropPortionPart> pNew ) { m_pFollow = std::move(pNew); };
55 void SetWidth( sal_uInt16 nNew ) { m_nWidth = nNew; }
67 std::unique_ptr<SwDropPortionPart>
m_pPart;
80 const sal_uInt16 nDropHeight,
81 const sal_uInt16 nDropDescent,
82 const sal_uInt16 nDistance );
98 void SetPart( std::unique_ptr<SwDropPortionPart> pNew ) { m_pPart = std::move(pNew); }
100 void SetY(
short nNew ) { m_nY = nNew; }
102 SwFont*
GetFnt()
const {
return m_pPart ? &m_pPart->GetFont() :
nullptr; }
virtual TextFrameIndex GetModelPositionForViewPoint(sal_uInt16 nOfst) const override
the parameter is actually SwTwips apparently?
~SwDropPortionPart()
SwDropPortionPart DTor.
sal_uInt16 GetLines() const
bool m_bJoinBorderWithNext
sal_uInt16 GetDropLeft() const
void SetWidth(sal_uInt16 nNew)
static void DeleteDropCapCache()
SwDropPortionPart(SwFont &rFont, const TextFrameIndex nL)
SwDropPortionPart * GetPart() const
Text portion for the Format -> Paragraph -> Drop Caps functionality.
void PaintText(const SwTextPaintInfo &rInf) const
Manipulate the width, otherwise the chars are being stretched.
sal_uInt16 GetDistance() const
This portion represents a part of the paragraph string.
SwDropCapCache * pDropCapCache
void SetFollow(std::unique_ptr< SwDropPortionPart > pNew)
sal_uInt16 GetDropDescent() const
void SetPart(std::unique_ptr< SwDropPortionPart > pNew)
sal_uInt16 m_nDropDescent
bool FormatText(SwTextFormatInfo &rInf)
std::unique_ptr< SwDropPortionPart > m_pPart
sal_uInt16 GetWidth() const
virtual bool Format(SwTextFormatInfo &rInf) override
void PaintDrop(const SwTextPaintInfo &rInf) const
TextFrameIndex GetLen() const
virtual SwPosSize GetTextSize(const SwTextSizeInfo &rInfo) const override
bool GetJoinBorderWithNext() const
bool m_bJoinBorderWithPrev
std::unique_ptr< SwFont > m_pFnt
virtual void Paint(const SwTextPaintInfo &rInf) const override
std::unique_ptr< SwDropPortionPart > m_pFollow
void SetJoinBorderWithNext(const bool bJoinNext)
SwDropPortionPart * GetFollow() const
void SetJoinBorderWithPrev(const bool bJoinPrev)
virtual ~SwDropPortion() override
SwDropPortion(const sal_uInt16 nLineCnt, const sal_uInt16 nDropHeight, const sal_uInt16 nDropDescent, const sal_uInt16 nDistance)
SwDropPortion CTor, DTor.
sal_uInt16 GetDropHeight() const
bool m_bDetectedRangeSegmentation false
bool GetJoinBorderWithPrev() const