summaryrefslogtreecommitdiff
path: root/sw/inc/unoframe.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2019-01-15 22:23:37 +0100
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2019-01-16 21:02:59 +0100
commit9bc56a8b61c276a4fa08db3e45b78122273feb2b (patch)
treea48d423af36534e0899b13f150f3feccf65373e3 /sw/inc/unoframe.hxx
parentd807d6a65f439da88623e45b1dabe7d9ef36cd3c (diff)
SwXOLEListener: not SwClient/Modify
Change-Id: Ie27432549e835622ab8480acfb3ed613aef623ab Reviewed-on: https://gerrit.libreoffice.org/66411 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.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx
index 43876e94a580..8751e7806480 100644
--- a/sw/inc/unoframe.hxx
+++ b/sw/inc/unoframe.hxx
@@ -29,6 +29,7 @@
#include <com/sun/star/document/XEventsSupplier.hpp>
#include <cppuhelper/implbase.hxx>
+#include <svl/listener.hxx>
#include "flyenum.hxx"
#include "frmfmt.hxx"
@@ -306,10 +307,10 @@ public:
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( ) override;
};
-class SwXOLEListener : public cppu::WeakImplHelper<css::util::XModifyListener>,
- public SwClient
+class SwXOLEListener : public cppu::WeakImplHelper<css::util::XModifyListener>, public SvtListener
{
- css::uno::Reference< css::frame::XModel > xOLEModel;
+ SwFormat* m_pOLEFormat;
+ css::uno::Reference<css::frame::XModel> m_xOLEModel;
public:
SwXOLEListener(SwFormat& rOLEFormat, css::uno::Reference< css::frame::XModel > const & xOLE);
@@ -321,8 +322,7 @@ public:
// css::util::XModifyListener
virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) override;
-protected:
- virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
+ virtual void Notify( const SfxHint& ) override;
};
#endif