summaryrefslogtreecommitdiff
path: root/sw/inc/hints.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/hints.hxx')
-rw-r--r--sw/inc/hints.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index d7a1049b12d1..645cf6b0c8d3 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -41,6 +41,7 @@ class SwTableLine;
class SwTableLineFormat;
class SwTableBox;
class SwAttrSetChg;
+class SwUpdateAttr;
// Base class for all Message-Hints:
// "Overhead" of SfxPoolItem is handled here
@@ -322,9 +323,16 @@ public:
SwModify* m_pDying;
ObjectDyingHint(SwModify* pDead) : SfxHint(SfxHintId::SwObjectDying), m_pDying(pDead) {}
};
+class UpdateAttrHint final : public SfxHint
+{
+public:
+ const SwUpdateAttr* m_pOld;
+ const SwUpdateAttr* m_pNew;
+ UpdateAttrHint(const SwUpdateAttr* pOld, const SwUpdateAttr* pNew) : SfxHint(SfxHintId::SwUpdateAttr), m_pOld(pOld), m_pNew(pNew) {}
+};
} // namespace sw
-class SwUpdateAttr final : public SwMsgPoolItem
+class SwUpdateAttr final
{
private:
sal_Int32 m_nStart;
@@ -333,7 +341,6 @@ private:
std::vector<sal_uInt16> m_aWhichFmtAttrs; // attributes changed inside RES_TXTATR_AUTOFMT
public:
- DECLARE_ITEM_TYPE_FUNCTION(SwUpdateAttr)
SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW );
SwUpdateAttr( sal_Int32 nS, sal_Int32 nE, sal_uInt16 nW, std::vector<sal_uInt16> aW );