diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-19 22:54:57 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-20 16:40:15 +0200 |
commit | e7c96f3e8f2c2f6bf31ec21fe0d1fbaecb07c3f9 (patch) | |
tree | 1187507c132ce5ee588e5a4c5ed738f76184bfc9 /sw/inc/fmtrfmrk.hxx | |
parent | b684cd4b071be9b26dd35e3104450135ffbfea98 (diff) |
i#107771: sw: make SwXReferenceMark a client of its format poolitem
In other words, stop registering at SwDoc's "UnoCallBack"
Change-Id: I9e08966cf8e2d2a373867d81549c8887f73993c8
Diffstat (limited to 'sw/inc/fmtrfmrk.hxx')
-rw-r--r-- | sw/inc/fmtrfmrk.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/inc/fmtrfmrk.hxx b/sw/inc/fmtrfmrk.hxx index 88e7861008ec..d8e807d18381 100644 --- a/sw/inc/fmtrfmrk.hxx +++ b/sw/inc/fmtrfmrk.hxx @@ -22,11 +22,15 @@ #include <rtl/ustring.hxx> #include <svl/poolitem.hxx> +#include <calbck.hxx> + class SwTxtRefMark; // ATT_REFMARK -class SwFmtRefMark : public SfxPoolItem +class SwFmtRefMark + : public SfxPoolItem + , public SwModify { friend class SwTxtRefMark; SwTxtRefMark* pTxtAttr; @@ -44,6 +48,8 @@ public: virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE; + void InvalidateRefMark(); + const SwTxtRefMark *GetTxtRefMark() const { return pTxtAttr; } SwTxtRefMark *GetTxtRefMark() { return pTxtAttr; } |