19 #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORDROP_HXX
20 #define INCLUDED_SW_SOURCE_CORE_TEXT_PORDROP_HXX
39 std::unique_ptr<SwDropPortionPart>
pFollow;
40 std::unique_ptr<SwFont>
pFnt;
48 : pFnt( &rFont ), nLen( nL ), nWidth( 0 ), m_bJoinBorderWithNext(false), m_bJoinBorderWithPrev(false) {};
52 void SetFollow( std::unique_ptr<SwDropPortionPart> pNew ) { pFollow = std::move(pNew); };
56 void SetWidth( sal_uInt16 nNew ) { nWidth = nNew; }
67 std::unique_ptr<SwDropPortionPart>
pPart;
80 const sal_uInt16 nDropHeight,
81 const sal_uInt16 nDropDescent,
82 const sal_uInt16 nDistance );
98 void SetPart( std::unique_ptr<SwDropPortionPart> pNew ) { pPart = std::move(pNew); }
100 void SetY(
short nNew ) { nY = nNew; }
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
std::unique_ptr< SwDropPortionPart > pPart
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)
std::unique_ptr< SwDropPortionPart > pFollow
sal_uInt16 GetDropDescent() const
void SetPart(std::unique_ptr< SwDropPortionPart > pNew)
bool FormatText(SwTextFormatInfo &rInf)
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
virtual void Paint(const SwTextPaintInfo &rInf) const override
void SetJoinBorderWithNext(const bool bJoinNext)
SwDropPortionPart * GetFollow() const
void SetJoinBorderWithPrev(const bool bJoinPrev)
virtual ~SwDropPortion() override
std::unique_ptr< SwFont > pFnt
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 GetJoinBorderWithPrev() const