summaryrefslogtreecommitdiff
path: root/sw/source/filter/inc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2019-09-20 01:11:59 +0200
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2019-09-20 02:39:55 +0200
commit6170da5135683735a34b9fac992a9a668b95ffe5 (patch)
tree91f35e9f5f9581f8fb5410a4e23e3acdc70e8cf0 /sw/source/filter/inc
parent11feca7a98e21062a2284e7d4dbb21030598cb65 (diff)
no more SwClient in sw/source/filter/basflt/
Change-Id: I56c9d140bc92ad517cb808e99cdb942f89cdbedc Reviewed-on: https://gerrit.libreoffice.org/79263 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r--sw/source/filter/inc/fltshell.hxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx
index d7991b096884..e3f24316dde5 100644
--- a/sw/source/filter/inc/fltshell.hxx
+++ b/sw/source/filter/inc/fltshell.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SW_SOURCE_FILTER_INC_FLTSHELL_HXX
#include <hintids.hxx>
+#include <svl/listener.hxx>
#include <tools/datetime.hxx>
#include <mdiexp.hxx>
#include <ndindex.hxx>
@@ -177,12 +178,12 @@ public:
void DeleteAndDestroy(Entries::size_type nCnt);
};
-class SwFltAnchorClient;
+class SwFltAnchorListener;
-class SW_DLLPUBLIC SwFltAnchor : public SfxPoolItem
+class SW_DLLPUBLIC SwFltAnchor: public SfxPoolItem
{
SwFrameFormat* pFrameFormat;
- std::unique_ptr<SwFltAnchorClient> pClient;
+ std::unique_ptr<SwFltAnchorListener> pListener;
public:
SwFltAnchor(SwFrameFormat* pFlyFormat);
@@ -192,19 +193,17 @@ public:
// "purely virtual methods" of SfxPoolItem
virtual bool operator==(const SfxPoolItem&) const override;
virtual SfxPoolItem* Clone(SfxItemPool* = nullptr) const override;
- void SetFrameFormat(SwFrameFormat * _pFrameFormat);
- const SwFrameFormat* GetFrameFormat() const { return pFrameFormat;}
- SwFrameFormat* GetFrameFormat() { return pFrameFormat;}
+ void SetFrameFormat(SwFrameFormat* _pFrameFormat);
+ const SwFrameFormat* GetFrameFormat() const { return pFrameFormat; }
+ SwFrameFormat* GetFrameFormat() { return pFrameFormat; }
};
-class SwFltAnchorClient : public SwClient
+class SwFltAnchorListener : public SvtListener
{
- SwFltAnchor * m_pFltAnchor;
-
-public:
- SwFltAnchorClient(SwFltAnchor * pFltAnchor);
-
- virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override;
+ SwFltAnchor* m_pFltAnchor;
+ public:
+ SwFltAnchorListener(SwFltAnchor* pFltAnchor);
+ virtual void Notify(const SfxHint&) override;
};
class SW_DLLPUBLIC SwFltRedline : public SfxPoolItem