diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-01 02:57:05 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-01 13:18:52 +0000 |
commit | 720dc84b855b6f200d97882157ac07d96207ffab (patch) | |
tree | 8a0305ce60ce67dd756d401764c1914b69ee913f /sw/inc/dcontact.hxx | |
parent | 7e8bef556184851edd7a716cf3284cd1ae3b3366 (diff) |
move GetOrdNumForNewRef() and CreateNewRef() ...
... from SwFlyFrame to SwFlyDrawContact as that is the object they are
doing most of the work. Also refactor a bit while at it.
Change-Id: I9a08592afb15be32c2c36408e4126807871f77c8
Reviewed-on: https://gerrit.libreoffice.org/34733
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'sw/inc/dcontact.hxx')
-rw-r--r-- | sw/inc/dcontact.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx index 781257df184b..351d59824f9f 100644 --- a/sw/inc/dcontact.hxx +++ b/sw/inc/dcontact.hxx @@ -191,12 +191,13 @@ class SW_DLLPUBLIC SwFlyDrawContact final : public SwContact private: std::unique_ptr<SwFlyDrawObj> mpMasterObj; void SwClientNotify(const SwModify&, const SfxHint& rHint) override; - + sal_uInt32 GetOrdNumForNewRef(const SwFlyFrame* pFly); public: /// Creates DrawObject and registers it with the Model. SwFlyDrawContact( SwFlyFrameFormat* pToRegisterIn, SdrModel* pMod ); + SwVirtFlyDrawObj* CreateNewRef(SwFlyFrame* pFly); virtual ~SwFlyDrawContact() override; virtual const SwAnchoredObject* GetAnchoredObj( const SdrObject* _pSdrObj ) const override; |