summaryrefslogtreecommitdiff
path: root/sw/inc/calbck.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-09-03 19:41:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-09-04 09:49:08 +0200
commit0272d39589ad36a38f85928d6a21eb13d28d2904 (patch)
treed27a26b3f5e50e574b8e4a57c6ffd9c268c306c7 /sw/inc/calbck.hxx
parent10363c80eb3fd0637d91714fe977de77b43d3aa3 (diff)
convert SwFindNearestNode to regular class
and simplify the GetInfo(), it is only used for this single purpose. Change-Id: I462cc10ff9341ace66581bd6af0cacc632866281 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r--sw/inc/calbck.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 37e8b9ed62da..58a336bbc92b 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -38,6 +38,7 @@ class SwCellFrame;
class SwTabFrame;
class SwRowFrame;
class SwTable;
+class SwFindNearestNode;
/*
SwModify and SwClient cooperate in propagating attribute changes.
@@ -169,7 +170,7 @@ public:
// get information about attribute
- virtual bool GetInfo( SfxPoolItem& ) const { return true; }
+ virtual bool GetInfo( SwFindNearestNode& ) const { return true; }
};
@@ -204,7 +205,7 @@ public:
bool HasOnlyOneListener() const { return m_pWriterListeners && m_pWriterListeners->IsLast(); }
// get information about attribute
- virtual bool GetInfo( SfxPoolItem& ) const override;
+ virtual bool GetInfo( SwFindNearestNode& ) const override;
void LockModify() { m_bModifyLocked = true; }
void UnlockModify() { m_bModifyLocked = false; }
@@ -254,7 +255,7 @@ namespace sw
}
/** get Client information */
- virtual bool GetInfo( SfxPoolItem& rInfo) const override;
+ virtual bool GetInfo( SwFindNearestNode& rInfo) const override;
private:
virtual void SwClientNotify(const SwModify& rModify, const SfxHint& rHint) override;
};