diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-30 12:24:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-01-30 17:08:22 +0100 |
commit | a08110be32a6958f27ce9ddb1e2cb2227265dfe1 (patch) | |
tree | 539c5abe4378858ce504a2c74a10252802d9111f /sw/inc | |
parent | 93c4bfc96acf7f387120ff05883068d358a608c1 (diff) |
convert table width dialog to async
Change-Id: Id8fe4f8f0e3138b714aeb938f887483dab1214a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162739
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/colwd.hxx | 4 | ||||
-rw-r--r-- | sw/inc/swabstdlg.hxx | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sw/inc/colwd.hxx b/sw/inc/colwd.hxx index 8ead4ccf44d4..ab511ee118c0 100644 --- a/sw/inc/colwd.hxx +++ b/sw/inc/colwd.hxx @@ -33,11 +33,9 @@ private: DECL_LINK(LoseFocusHdl, weld::SpinButton&, void); - void Apply(); - public: SwTableWidthDlg(weld::Window* pParent, SwTableFUNC& rFnc); - virtual short run() override; + void Apply(); }; #endif diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 690b20c6ea3b..65fbf918efca 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -418,6 +418,15 @@ public: }; +class AbstractSwTableWidthDlg : public VclAbstractDialog +{ +protected: + virtual ~AbstractSwTableWidthDlg() override = default; +public: + virtual void Apply() = 0; +}; + + class SwAbstractDialogFactory { public: @@ -488,7 +497,7 @@ public: virtual VclPtr<SfxAbstractDialog> CreateSwBorderDlg(weld::Window* pParent, SfxItemSet& rSet, SwBorderModes nType) = 0; virtual VclPtr<SfxAbstractDialog> CreateSwWrapDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pSh) = 0; - virtual VclPtr<VclAbstractDialog> CreateSwTableWidthDlg(weld::Window *pParent, SwTableFUNC &rFnc) = 0; + virtual VclPtr<AbstractSwTableWidthDlg> CreateSwTableWidthDlg(weld::Window *pParent, SwTableFUNC &rFnc) = 0; virtual VclPtr<SfxAbstractTabDialog> CreateSwTableTabDlg(weld::Window* pParent, const SfxItemSet* pItemSet, SwWrtShell* pSh) = 0; |