diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2019-09-22 01:28:39 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2019-09-23 10:44:16 +0200 |
commit | e2372c4bef2180ab8cbb04128accf6ab40654448 (patch) | |
tree | 7a96ead2d75d4abb83969e0ed08fa14bd1f5d6b7 /sw/inc/unoframe.hxx | |
parent | bd2651c74d771ca35bb99a5651a59e1fd3440f0a (diff) |
SwXFrame: SwClient no more
Change-Id: I0831e662a5142ae824dde537baa8c2dd5d15671a
Reviewed-on: https://gerrit.libreoffice.org/79369
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/inc/unoframe.hxx')
-rw-r--r-- | sw/inc/unoframe.hxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx index 207fbaac7414..c7e432a075ba 100644 --- a/sw/inc/unoframe.hxx +++ b/sw/inc/unoframe.hxx @@ -54,11 +54,12 @@ class SwXFrame : public cppu::WeakImplHelper css::container::XNamed, css::text::XTextContent >, - public SwClient + public SvtListener { private: class Impl; ::sw::UnoImplPtr<Impl> m_pImpl; + SwFrameFormat* m_pFrameFormat; const SfxItemPropertySet* m_pPropSet; SwDoc* m_pDoc; @@ -76,11 +77,12 @@ private: sal_Int64 m_nVisibleAreaWidth; sal_Int64 m_nVisibleAreaHeight; css::uno::Reference<css::text::XText> m_xParentText; + void DisposeInternal(); protected: css::uno::Reference< css::beans::XPropertySet > mxStyleData; css::uno::Reference< css::container::XNameAccess > mxStyleFamily; - virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; + virtual void Notify(const SfxHint&) override; virtual ~SwXFrame() override; @@ -149,13 +151,10 @@ public: void attachToRange(const css::uno::Reference< css::text::XTextRange > & xTextRange); const SwFrameFormat* GetFrameFormat() const - { - return dynamic_cast<const SwFrameFormat*>( GetRegisteredIn() ); - } + { return m_pFrameFormat; } SwFrameFormat* GetFrameFormat() - { - return dynamic_cast< SwFrameFormat*>( GetRegisteredIn() ); - } + { return m_pFrameFormat; } + FlyCntType GetFlyCntType()const {return eType;} bool IsDescriptor() const {return bIsDescriptor;} |