diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2021-08-07 11:38:03 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2021-08-10 08:29:55 +0200 |
commit | fa5202f746b25ea444d120d746a0dc35b8f8cca5 (patch) | |
tree | fc3dbc7d8d8eac58c85a60fe60036fa482a67a26 /sw/inc | |
parent | df3d733724de84a2b54398434b621049a326c4d8 (diff) |
give SwTableBoxFormat::TableBoxAttributeChanged its own function
- ... because at somewhere around growing past 100 LOC it deserved that.
- also make the box a reference there as it should never be a nullptr
Change-Id: Ia14cfb7a88e14fdd02f6011a745c2b008d94bc10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120159
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/swtblfmt.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/inc/swtblfmt.hxx b/sw/inc/swtblfmt.hxx index 14b200164b5d..e61049919df1 100644 --- a/sw/inc/swtblfmt.hxx +++ b/sw/inc/swtblfmt.hxx @@ -46,16 +46,17 @@ public: virtual bool supportsFullDrawingLayerFillAttributeSet() const override; }; -class SAL_DLLPUBLIC_RTTI SwTableBoxFormat final : public SwFrameFormat +class SAL_DLLPUBLIC_RTTI SwTableBoxFormat final: public SwFrameFormat { friend class SwDoc; - SwTableBoxFormat( SwAttrPool& rPool, SwFrameFormat *pDrvdFrame ) - : SwFrameFormat( rPool, OUString(), pDrvdFrame, RES_FRMFMT, aTableBoxSetRange ) + SwTableBoxFormat(SwAttrPool& rPool, SwFrameFormat* pDrvdFrame) + : SwFrameFormat(rPool, OUString(), pDrvdFrame, RES_FRMFMT, aTableBoxSetRange) {} // For recognition of changes (especially TableBoxAttribute). virtual void SwClientNotify(const SwModify&, const SfxHint&) override; + void BoxAttributeChanged(SwTableBox& rBox, const SwTableBoxNumFormat* pNewFormat, const SwTableBoxFormula* pNewFormula, const SwTableBoxValue* pNewValue, const sal_uLong nOldFormat); public: virtual bool supportsFullDrawingLayerFillAttributeSet() const override; |