23 : GenericDialogController(pParent,
"cui/ui/splitcellsdialog.ui",
"SplitCellsDialog")
24 , m_xCountEdit(m_xBuilder->weld_spin_button(
"countnf"))
25 , m_xHorzBox(!bIsTableVertical ? m_xBuilder->weld_radio_button(
"hori") : m_xBuilder->weld_radio_button(
"vert"))
26 , m_xVertBox(!bIsTableVertical ? m_xBuilder->weld_radio_button(
"vert") : m_xBuilder->weld_radio_button(
"hori"))
27 , m_xPropCB(m_xBuilder->weld_check_button(
"prop"))
28 , mnMaxVertical(nMaxVertical)
29 , mnMaxHorizontal(nMaxHorizontal)
36 if (!bIsTableVertical)
45 int nHorzTopAttach =
m_xHorzBox->get_grid_top_attach();
46 int nVertTopAttach =
m_xVertBox->get_grid_top_attach();
47 m_xHorzBox->set_grid_top_attach(nVertTopAttach);
48 m_xVertBox->set_grid_top_attach(nHorzTopAttach);
55 if (!rButton.get_active())
57 const bool bIsVert = m_xVertBox->get_active();
58 tools::Long nMax = bIsVert ? mnMaxVertical : mnMaxHorizontal;
59 m_xPropCB->set_sensitive(!bIsVert);
60 m_xCountEdit->set_max(nMax);
86 return m_xDlg->IsHorizontal();
91 return m_xDlg->IsProportional();
101 m_xDlg->SetSplitVerticalByDefault();
virtual bool IsHorizontal() const override
std::shared_ptr< SvxSplitTableDlg > m_xDlg
virtual void SetSplitVerticalByDefault() override
virtual tools::Long GetCount() const override
virtual bool IsProportional() const override
virtual bool StartExecuteAsync(AsyncContext &rContext) override
virtual short Execute() override
std::unique_ptr< weld::CheckButton > m_xPropCB
std::unique_ptr< weld::SpinButton > m_xCountEdit
std::unique_ptr< weld::RadioButton > m_xVertBox
void SetSplitVerticalByDefault()
SvxSplitTableDlg(weld::Window *pParent, bool bIsTableVertical, tools::Long nMaxVertical, tools::Long nMaxHorizontal)
bool IsProportional() const
tools::Long mnMaxVertical
std::unique_ptr< weld::RadioButton > m_xHorzBox
bool IsHorizontal() const
tools::Long GetCount() const
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define LINK(Instance, Class, Member)
IMPL_LINK(SvxSplitTableDlg, ToggleHdl, weld::Toggleable &, rButton, void)