diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-09-30 10:49:12 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-11-13 09:38:36 +0100 |
commit | 817a06d857bff5be35f8eb7bf830b75871556bc5 (patch) | |
tree | c6999a58916183489cb1652af74b48e9098134b0 /cui/source/inc | |
parent | 0d3fb848a2995a0869c4c5fa8916214a513865ac (diff) |
Make Split Table Cell dialog async
Change-Id: I4efbb24f721aa50cc4dbbe78ae1e7e6087f8c876
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103670
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105594
Tested-by: Jenkins
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/splitcelldlg.hxx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/cui/source/inc/splitcelldlg.hxx b/cui/source/inc/splitcelldlg.hxx index 88b1de85c9a7..5085c1938917 100644 --- a/cui/source/inc/splitcelldlg.hxx +++ b/cui/source/inc/splitcelldlg.hxx @@ -21,7 +21,7 @@ #include <svx/svxdlg.hxx> #include <vcl/weld.hxx> -class SvxSplitTableDlg : public SvxAbstractSplitTableDialog, public weld::GenericDialogController +class SvxSplitTableDlg : public weld::GenericDialogController { private: std::unique_ptr<weld::SpinButton> m_xCountEdit; @@ -37,12 +37,28 @@ public: DECL_LINK(ClickHdl, weld::Button&, void); + virtual bool IsHorizontal() const; + virtual bool IsProportional() const; + virtual tools::Long GetCount() const; + + virtual void SetSplitVerticalByDefault(); +}; + +class SvxAbstractSplitTableDialog_Impl : public SvxAbstractSplitTableDialog +{ + std::shared_ptr<SvxSplitTableDlg> m_xDlg; + +public: + SvxAbstractSplitTableDialog_Impl(std::shared_ptr<SvxSplitTableDlg> pDlg) : m_xDlg(std::move(pDlg)) {} + virtual bool IsHorizontal() const override; virtual bool IsProportional() const override; virtual tools::Long GetCount() const override; - virtual short Execute() override; virtual void SetSplitVerticalByDefault() override; + + virtual short Execute() override; + virtual bool StartExecuteAsync(AsyncContext& rContext) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |