Kaydet (Commit) 7a1add76 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen Kaydeden (comit) Björn Michaelsen

IsDraw() isnt called anymore

Change-Id: I6b2fc84886f7812e4f84cd994b1335dcf37576c1
Reviewed-on: https://gerrit.libreoffice.org/32150Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
üst 14aeace3
......@@ -62,7 +62,6 @@ public:
void SetBase(const SwTextFrame& rFrame, const Point& rBase, long nLnAscent, long nLnDescent, long nFlyAscent, long nFlyDescent, AsCharFlags nFlags);
virtual bool Format(SwTextFormatInfo& rInf) override;
OUTPUT_OPERATOR_OVERRIDE
virtual bool IsDraw() const =0;
virtual ~SwFlyCntPortion() override {};
};
......@@ -78,7 +77,6 @@ namespace sw
inline SwFlyInContentFrame *GetFlyFrame() { return m_pFly; }
inline const SwFlyInContentFrame *GetFlyFrame() const { return m_pFly; }
void GetFlyCursorOfst(Point& rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const { m_pFly->GetCursorOfst(&rPos, rPoint, pCMS); };
virtual bool IsDraw() const override { return false; }
virtual void Paint(const SwTextPaintInfo& rInf) const override;
virtual ~FlyContentPortion() override;
};
......@@ -91,7 +89,6 @@ namespace sw
static DrawFlyCntPortion* Create(const SwTextFrame& rFrame, SwDrawContact* pDrawContact, const Point& rBase, long nAsc, long nDescent, long nFlyAsc, long nFlyDesc, AsCharFlags nFlags);
inline SwDrawContact* GetDrawContact() { return m_pContact; }
inline const SwDrawContact* GetDrawContact() const { return m_pContact; }
virtual bool IsDraw() const override { return true; }
virtual void Paint(const SwTextPaintInfo& rInf) const override;
virtual ~DrawFlyCntPortion() override;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment