diff options
Diffstat (limited to 'cui/source/inc/splitcelldlg.hxx')
-rw-r--r-- | cui/source/inc/splitcelldlg.hxx | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/cui/source/inc/splitcelldlg.hxx b/cui/source/inc/splitcelldlg.hxx index b0c2fddae3c7..ce14e0714a3e 100644 --- a/cui/source/inc/splitcelldlg.hxx +++ b/cui/source/inc/splitcelldlg.hxx @@ -16,13 +16,12 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CUI_SOURCE_INC_SPLITCELLDLG_HXX -#define INCLUDED_CUI_SOURCE_INC_SPLITCELLDLG_HXX +#pragma once #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; @@ -30,22 +29,36 @@ private: std::unique_ptr<weld::RadioButton> m_xVertBox; std::unique_ptr<weld::CheckButton> m_xPropCB; - long mnMaxVertical; - long mnMaxHorizontal; + tools::Long mnMaxVertical; + tools::Long mnMaxHorizontal; public: - SvxSplitTableDlg(weld::Window *pParent, bool bIsTableVertical, long nMaxVertical, long nMaxHorizontal); + SvxSplitTableDlg(weld::Window *pParent, bool bIsTableVertical, tools::Long nMaxVertical, tools::Long nMaxHorizontal); - DECL_LINK(ClickHdl, weld::Button&, void); + DECL_LINK(ToggleHdl, weld::Toggleable&, void); + + bool IsHorizontal() const; + bool IsProportional() const; + tools::Long GetCount() const; + + 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 long GetCount() const override; + virtual tools::Long GetCount() const override; - virtual short Execute() override; virtual void SetSplitVerticalByDefault() override; -}; -#endif + virtual short Execute() override; + virtual bool StartExecuteAsync(AsyncContext& rContext) override; +}; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |