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

inline some trivial functions

Change-Id: I327dbc236db9462b3cb3d24e2c6abca1ef4cddf4
Reviewed-on: https://gerrit.libreoffice.org/32149Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
üst 0dfc6f70
......@@ -296,7 +296,6 @@ sw::DrawFlyCntPortion* sw::DrawFlyCntPortion::Create(const SwTextFrame& rFrame,
return pNew;
}
SwFlyCntPortion::~SwFlyCntPortion() {};
sw::DrawFlyCntPortion::~DrawFlyCntPortion() {};
sw::FlyContentPortion::~FlyContentPortion() {};
......@@ -323,6 +322,7 @@ SdrObject* sw::DrawFlyCntPortion::GetSdrObj(const SwTextFrame& rFrame)
GetDrawContact()->GetAnchoredObj(pSdrObj)->MakeObjPos();
return pSdrObj;
}
/**
* After setting the RefPoints, the ascent needs to be recalculated
* because it is dependent on RelPos
......@@ -412,9 +412,4 @@ void SwFlyCntPortion::SetBase( const SwTextFrame& rFrame, const Point &rBase,
}
}
void sw::FlyContentPortion::GetFlyCursorOfst(Point& rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const
{
m_pFly->GetCursorOfst(&rPos, rPoint, pCMS);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -22,6 +22,7 @@
#include <ascharanchoredobjectposition.hxx>
#include "porglue.hxx"
#include "flyfrms.hxx"
class SwDrawContact;
class SwFlyInContentFrame;
......@@ -62,7 +63,7 @@ public:
virtual bool Format(SwTextFormatInfo& rInf) override;
OUTPUT_OPERATOR_OVERRIDE
virtual bool IsDraw() const =0;
virtual ~SwFlyCntPortion() override;
virtual ~SwFlyCntPortion() override {};
};
namespace sw
......@@ -76,7 +77,7 @@ namespace sw
static FlyContentPortion* Create(const SwTextFrame& rFrame, SwFlyInContentFrame* pFly, const Point& rBase, long nAscent, long nDescent, long nFlyAsc, long nFlyDesc, AsCharFlags nFlags);
inline SwFlyInContentFrame *GetFlyFrame() { return m_pFly; }
inline const SwFlyInContentFrame *GetFlyFrame() const { return m_pFly; }
void GetFlyCursorOfst(Point& rPoint, SwPosition& rPos, SwCursorMoveState* pCMS) const;
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;
......
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