summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-06-16 18:30:35 +0200
committerAndras Timar <andras.timar@collabora.com>2023-06-23 18:42:59 +0200
commita3d479abf247d5f3379131302532c8f0e8da6667 (patch)
treedf4f162137b5cccfef274cf10bbd773f89dffb2e /sw
parent1eb31531051ea1abd36905b252618374700cc0a5 (diff)
jsdialog: enable Insert Title Page dialog
we need to weld also RB_INSERT_NEW_PAGES so when we check it - JSDialog executor will make it active and RB_USE_EXISTING_PAGES inactive Change-Id: I0abc5b6610e301abb1d24ecea680f63358dc5584 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153189 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/titlepage.cxx1
-rw-r--r--sw/source/uibase/inc/titlepage.hxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/misc/titlepage.cxx b/sw/source/ui/misc/titlepage.cxx
index 4308c8db246d..0d8c776cce64 100644
--- a/sw/source/ui/misc/titlepage.cxx
+++ b/sw/source/ui/misc/titlepage.cxx
@@ -150,6 +150,7 @@ SwTitlePageDlg::SwTitlePageDlg(weld::Window *pParent)
, mpIndexDesc(nullptr)
, mpNormalDesc(nullptr)
, m_xUseExistingPagesRB(m_xBuilder->weld_radio_button("RB_USE_EXISTING_PAGES"))
+ , m_xInsertNewPagesRB(m_xBuilder->weld_radio_button("RB_INSERT_NEW_PAGES"))
, m_xPageCountNF(m_xBuilder->weld_spin_button("NF_PAGE_COUNT"))
, m_xDocumentStartRB(m_xBuilder->weld_radio_button("RB_DOCUMENT_START"))
, m_xPageStartRB(m_xBuilder->weld_radio_button("RB_PAGE_START"))
diff --git a/sw/source/uibase/inc/titlepage.hxx b/sw/source/uibase/inc/titlepage.hxx
index 9e8c58984652..13f167786339 100644
--- a/sw/source/uibase/inc/titlepage.hxx
+++ b/sw/source/uibase/inc/titlepage.hxx
@@ -31,6 +31,7 @@ private:
const SwPageDesc* mpNormalDesc;
std::unique_ptr<weld::RadioButton> m_xUseExistingPagesRB;
+ std::unique_ptr<weld::RadioButton> m_xInsertNewPagesRB; // required by LOK JSDialogs
std::unique_ptr<weld::SpinButton> m_xPageCountNF;
std::unique_ptr<weld::RadioButton> m_xDocumentStartRB;
std::unique_ptr<weld::RadioButton> m_xPageStartRB;