diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2020-02-04 01:50:56 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2020-02-07 19:49:13 +0100 |
commit | c73b5e969b2f9abdb2b9191938ca30bec5af725d (patch) | |
tree | 5bb49b193f7c143f380d8e5ce580552b588888ec /sw/inc/fmtfld.hxx | |
parent | 61fbdb13121643c6faf917912bd39c6b9720888a (diff) |
SwFormatField::Modify no more (folded into SwClientNotify)
- refactor out field formatting
* make direct calls explicit with new UpdateTextNode() call
* try to bring at least some sanity to the event handler
Change-Id: I40a39ddf70476b7fa0bf5e157fb263e863bb1d20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87927
Tested-by: Jenkins
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/inc/fmtfld.hxx')
-rw-r--r-- | sw/inc/fmtfld.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/fmtfld.hxx b/sw/inc/fmtfld.hxx index 18d8ffb136f8..cde0efe48f5a 100644 --- a/sw/inc/fmtfld.hxx +++ b/sw/inc/fmtfld.hxx @@ -47,7 +47,6 @@ class SW_DLLPUBLIC SwFormatField final std::unique_ptr<SwField> mpField; SwTextField* mpTextField; // the TextAttribute - virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; virtual void SwClientNotify( const SwModify& rModify, const SfxHint& rHint ) override; public: @@ -105,6 +104,8 @@ public: SAL_DLLPRIVATE void SetXTextField(css::uno::Reference<css::text::XTextField> const& xTextField) { m_wXTextField = xTextField; } void dumpAsXml(xmlTextWriterPtr pWriter) const override; + + void UpdateTextNode(const SfxPoolItem* pOld, const SfxPoolItem* pNew); }; enum class SwFormatFieldHintWhich |