summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-20 17:27:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-21 18:19:58 +0200
commit9940f077fdfc0c271aa66ad64578ae2236a2ca81 (patch)
treea52b00f3ba98d78f88a0d2aa5a02605746f8e6c7 /sw/source/ui/dbui
parentf19a599f6911f5ccd1049228454b6c6c8fd6d5cb (diff)
add Toggleable as a separate thing to a Button
and inherit ToggleButton from both it and Button Change-Id: If0e500aca8d0ffa087cb5e2bfc1786372fbff4eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115921 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx9
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx8
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.hxx6
-rw-r--r--sw/source/ui/dbui/mmdocselectpage.cxx4
-rw-r--r--sw/source/ui/dbui/mmdocselectpage.hxx2
-rw-r--r--sw/source/ui/dbui/mmgreetingspage.cxx10
-rw-r--r--sw/source/ui/dbui/mmgreetingspage.hxx6
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.cxx2
-rw-r--r--sw/source/ui/dbui/mmlayoutpage.hxx2
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.cxx4
-rw-r--r--sw/source/ui/dbui/mmoutputtypepage.hxx2
-rw-r--r--sw/source/ui/dbui/mmresultdialogs.cxx14
12 files changed, 35 insertions, 34 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index b9047f92201d..6e4d47ca9190 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -387,14 +387,15 @@ SwInsertDBColAutoPilot::~SwInsertDBColAutoPilot()
{
}
-IMPL_LINK( SwInsertDBColAutoPilot, PageHdl, weld::ToggleButton&, rButton, void )
+IMPL_LINK( SwInsertDBColAutoPilot, PageHdl, weld::Toggleable&, rButton, void )
{
if (!rButton.get_active())
return;
bool bShowTable = m_xRbAsTable->get_active();
- m_xHeadFrame->set_label(MnemonicGenerator::EraseAllMnemonicChars(rButton.get_label().replace('_', '~')));
+ weld::RadioButton& rRadio = dynamic_cast<weld::RadioButton&>(rButton);
+ m_xHeadFrame->set_label(MnemonicGenerator::EraseAllMnemonicChars(rRadio.get_label().replace('_', '~')));
m_xLbTextDbColumn->set_visible( !bShowTable );
m_xIbDbcolToEdit->set_visible( !bShowTable );
@@ -421,7 +422,7 @@ IMPL_LINK( SwInsertDBColAutoPilot, PageHdl, weld::ToggleButton&, rButton, void )
TVSelectHdl( bShowTable ? *m_xLbTableDbColumn : *m_xLbTextDbColumn );
}
-IMPL_LINK( SwInsertDBColAutoPilot, DBFormatHdl, weld::ToggleButton&, rButton, void )
+IMPL_LINK( SwInsertDBColAutoPilot, DBFormatHdl, weld::Toggleable&, rButton, void )
{
if (!rButton.get_active())
return;
@@ -801,7 +802,7 @@ IMPL_LINK_NOARG(SwInsertDBColAutoPilot, CBSelectHdl, weld::ComboBox&, void)
}
}
-IMPL_LINK_NOARG(SwInsertDBColAutoPilot, HeaderHdl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwInsertDBColAutoPilot, HeaderHdl, weld::Toggleable&, void)
{
bool bEnable = m_xCbTableHeadon->get_active();
m_xRbHeadlColnms->set_sensitive( bEnable );
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index ec7f7ae75108..3217a01147d5 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -230,7 +230,7 @@ void SwMailMergeAddressBlockPage::EnableAddressBlock(bool bAll, bool bSelective)
m_xStep4->set_sensitive(bSelective);
}
-IMPL_LINK(SwMailMergeAddressBlockPage, AddressBlockHdl_Impl, weld::ToggleButton&, rBox, void)
+IMPL_LINK(SwMailMergeAddressBlockPage, AddressBlockHdl_Impl, weld::Toggleable&, rBox, void)
{
EnableAddressBlock(rBox.get_sensitive(), rBox.get_active());
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
@@ -251,7 +251,7 @@ IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressBlockSelectHdl_Impl, LinkPar
GetWizard()->enableButtons(WizardButtonFlags::NEXT, GetWizard()->isStateEnabled(MM_GREETINGSPAGE));
}
-IMPL_LINK(SwMailMergeAddressBlockPage, HideParagraphsHdl_Impl, weld::ToggleButton&, rBox, void)
+IMPL_LINK(SwMailMergeAddressBlockPage, HideParagraphsHdl_Impl, weld::Toggleable&, rBox, void)
{
SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem();
rConfigItem.SetHideEmptyParagraphs(rBox.get_active());
@@ -333,7 +333,7 @@ SwSelectAddressBlockDialog::SwSelectAddressBlockDialog(weld::Window* pParent, Sw
m_xDeletePB->connect_clicked(LINK(this, SwSelectAddressBlockDialog, DeleteHdl_Impl));
- Link<weld::ToggleButton&,void> aLk = LINK(this, SwSelectAddressBlockDialog, IncludeHdl_Impl);
+ Link<weld::Toggleable&,void> aLk = LINK(this, SwSelectAddressBlockDialog, IncludeHdl_Impl);
m_xNeverRB->connect_toggled(aLk);
m_xAlwaysRB->connect_toggled(aLk);
m_xDependentRB->connect_toggled(aLk);
@@ -435,7 +435,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, weld::Button&, rButt
m_xDeletePB->set_sensitive(m_aAddressBlocks.getLength() > 1);
}
-IMPL_LINK_NOARG(SwSelectAddressBlockDialog, IncludeHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwSelectAddressBlockDialog, IncludeHdl_Impl, weld::Toggleable&, void)
{
m_xCountryED->set_sensitive(m_xDependentRB->get_active());
}
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx
index 1ab100c9539b..65071c11d7a6 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.hxx
@@ -69,10 +69,10 @@ class SwMailMergeAddressBlockPage : public vcl::OWizardPage
DECL_LINK(AddressListHdl_Impl, weld::Button&, void);
DECL_LINK(SettingsHdl_Impl, weld::Button&, void);
DECL_LINK(AssignHdl_Impl, weld::Button&, void);
- DECL_LINK(AddressBlockHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(AddressBlockHdl_Impl, weld::Toggleable&, void);
DECL_LINK(InsertDataHdl_Impl, weld::Button&, void);
DECL_LINK(AddressBlockSelectHdl_Impl, LinkParamNone*, void);
- DECL_LINK(HideParagraphsHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(HideParagraphsHdl_Impl, weld::Toggleable&, void);
void EnableAddressBlock(bool bAll, bool bSelective);
@@ -103,7 +103,7 @@ class SwSelectAddressBlockDialog : public SfxDialogController
DECL_LINK(NewCustomizeHdl_Impl, weld::Button&, void);
DECL_LINK(DeleteHdl_Impl, weld::Button&, void);
- DECL_LINK(IncludeHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(IncludeHdl_Impl, weld::Toggleable&, void);
public:
SwSelectAddressBlockDialog(weld::Window* pParent, SwMailMergeConfigItem& rConfig);
diff --git a/sw/source/ui/dbui/mmdocselectpage.cxx b/sw/source/ui/dbui/mmdocselectpage.cxx
index 5ef0ee737f3a..cfed29e5a49d 100644
--- a/sw/source/ui/dbui/mmdocselectpage.cxx
+++ b/sw/source/ui/dbui/mmdocselectpage.cxx
@@ -56,7 +56,7 @@ SwMailMergeDocSelectPage::SwMailMergeDocSelectPage(weld::Container* pPage, SwMai
m_xCurrentDocRB->set_active(true);
DocSelectHdl(*m_xNewDocRB);
- Link<weld::ToggleButton&,void> aDocSelectLink = LINK(this, SwMailMergeDocSelectPage, DocSelectHdl);
+ Link<weld::Toggleable&,void> aDocSelectLink = LINK(this, SwMailMergeDocSelectPage, DocSelectHdl);
m_xCurrentDocRB->connect_toggled(aDocSelectLink);
m_xNewDocRB->connect_toggled(aDocSelectLink);
m_xLoadDocRB->connect_toggled(aDocSelectLink);
@@ -87,7 +87,7 @@ SwMailMergeDocSelectPage::~SwMailMergeDocSelectPage()
{
}
-IMPL_LINK_NOARG(SwMailMergeDocSelectPage, DocSelectHdl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMailMergeDocSelectPage, DocSelectHdl, weld::Toggleable&, void)
{
m_xRecentDocLB->set_sensitive(m_xRecentDocRB->get_active());
m_pWizard->UpdateRoadmap();
diff --git a/sw/source/ui/dbui/mmdocselectpage.hxx b/sw/source/ui/dbui/mmdocselectpage.hxx
index 5220c3fd7fe2..d1cdca67d330 100644
--- a/sw/source/ui/dbui/mmdocselectpage.hxx
+++ b/sw/source/ui/dbui/mmdocselectpage.hxx
@@ -42,7 +42,7 @@ class SwMailMergeDocSelectPage : public vcl::OWizardPage
std::unique_ptr<weld::Label> m_xDataSourceWarningFT;
std::unique_ptr<weld::Button> m_xExchangeDatabasePB;
- DECL_LINK(DocSelectHdl, weld::ToggleButton&, void);
+ DECL_LINK(DocSelectHdl, weld::Toggleable&, void);
DECL_LINK(FileSelectHdl, weld::Button&, void);
DECL_LINK(ExchangeDatabaseHdl, weld::Button&, void);
diff --git a/sw/source/ui/dbui/mmgreetingspage.cxx b/sw/source/ui/dbui/mmgreetingspage.cxx
index 8287e064ec43..77e9242ba2d2 100644
--- a/sw/source/ui/dbui/mmgreetingspage.cxx
+++ b/sw/source/ui/dbui/mmgreetingspage.cxx
@@ -56,7 +56,7 @@ static void lcl_StoreGreetingsBox(const weld::ComboBox& rBox,
rConfig.SetCurrentGreeting(eType, rBox.get_active());
}
-IMPL_LINK_NOARG(SwGreetingsHandler, IndividualHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwGreetingsHandler, IndividualHdl_Impl, weld::Toggleable&, void)
{
bool bIndividual = m_xPersonalizedCB->get_sensitive() && m_xPersonalizedCB->get_active();
m_xFemaleFT->set_sensitive(bIndividual);
@@ -216,7 +216,7 @@ SwMailMergeGreetingsPage::SwMailMergeGreetingsPage(weld::Container* pPage, SwMai
m_bIsTabPage = true;
m_xGreetingLineCB->connect_toggled(LINK(this, SwMailMergeGreetingsPage, ContainsHdl_Impl));
- Link<weld::ToggleButton&,void> aIndividualLink = LINK(this, SwGreetingsHandler, IndividualHdl_Impl);
+ Link<weld::Toggleable&,void> aIndividualLink = LINK(this, SwGreetingsHandler, IndividualHdl_Impl);
m_xPersonalizedCB->connect_toggled(aIndividualLink);
Link<weld::Button&,void> aGreetingLink = LINK(this, SwGreetingsHandler, GreetingHdl_Impl);
m_xFemalePB->connect_clicked(aGreetingLink);
@@ -303,7 +303,7 @@ bool SwMailMergeGreetingsPage::commitPage( ::vcl::WizardTypes::CommitPageReason
return true;
}
-IMPL_LINK(SwMailMergeGreetingsPage, ContainsHdl_Impl, weld::ToggleButton&, rBox, void)
+IMPL_LINK(SwMailMergeGreetingsPage, ContainsHdl_Impl, weld::Toggleable&, rBox, void)
{
bool bContainsGreeting = rBox.get_active();
SwGreetingsHandler::Contains(bContainsGreeting);
@@ -349,7 +349,7 @@ SwMailBodyDialog::SwMailBodyDialog(weld::Window* pParent)
m_xBodyMLE->set_size_request(m_xBodyMLE->get_approximate_digit_width() * 45,
m_xBodyMLE->get_height_rows(6));
m_xGreetingLineCB->connect_toggled(LINK(this, SwMailBodyDialog, ContainsHdl_Impl));
- Link<weld::ToggleButton&,void> aIndividualLink = LINK(this, SwGreetingsHandler, IndividualHdl_Impl);
+ Link<weld::Toggleable&,void> aIndividualLink = LINK(this, SwGreetingsHandler, IndividualHdl_Impl);
m_xPersonalizedCB->connect_toggled(aIndividualLink);
Link<weld::Button&,void> aGreetingLink = LINK(this, SwGreetingsHandler, GreetingHdl_Impl);
m_xFemalePB->connect_clicked(aGreetingLink);
@@ -387,7 +387,7 @@ SwMailBodyDialog::~SwMailBodyDialog()
{
}
-IMPL_LINK(SwMailBodyDialog, ContainsHdl_Impl, weld::ToggleButton&, rBox, void)
+IMPL_LINK(SwMailBodyDialog, ContainsHdl_Impl, weld::Toggleable&, rBox, void)
{
SwGreetingsHandler::Contains(rBox.get_active());
m_rConfigItem.SetGreetingLine(rBox.get_active(), true);
diff --git a/sw/source/ui/dbui/mmgreetingspage.hxx b/sw/source/ui/dbui/mmgreetingspage.hxx
index 3fd55ea2b002..86aaf9c553f2 100644
--- a/sw/source/ui/dbui/mmgreetingspage.hxx
+++ b/sw/source/ui/dbui/mmgreetingspage.hxx
@@ -76,7 +76,7 @@ protected:
~SwGreetingsHandler() {}
- DECL_LINK(IndividualHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(IndividualHdl_Impl, weld::Toggleable&, void);
DECL_LINK(GreetingHdl_Impl, weld::Button&, void);
void Contains(bool bContainsGreeting);
@@ -95,7 +95,7 @@ class SwMailMergeGreetingsPage : public vcl::OWizardPage, public SwGreetingsHand
OUString m_sDocument;
- DECL_LINK(ContainsHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(ContainsHdl_Impl, weld::Toggleable&, void);
DECL_LINK(InsertDataHdl_Impl, weld::Button&, void);
DECL_LINK(GreetingSelectComboBoxHdl_Impl, weld::ComboBox&, void);
DECL_LINK(GreetingSelectListBoxHdl_Impl, weld::ComboBox&, void);
@@ -116,7 +116,7 @@ class SwMailBodyDialog : public SfxDialogController, public SwGreetingsHandler
std::unique_ptr<weld::TextView> m_xBodyMLE;
std::unique_ptr<weld::Button> m_xOK;
- DECL_LINK(ContainsHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(ContainsHdl_Impl, weld::Toggleable&, void);
DECL_LINK(OKHdl, weld::Button&, void);
public:
diff --git a/sw/source/ui/dbui/mmlayoutpage.cxx b/sw/source/ui/dbui/mmlayoutpage.cxx
index b31025719351..7d12b35e5e68 100644
--- a/sw/source/ui/dbui/mmlayoutpage.cxx
+++ b/sw/source/ui/dbui/mmlayoutpage.cxx
@@ -683,7 +683,7 @@ IMPL_LINK(SwMailMergeLayoutPage, GreetingsHdl_Impl, weld::Button&, rButton, void
m_xExampleFrame->Invalidate();
}
-IMPL_LINK(SwMailMergeLayoutPage, AlignToTextHdl_Impl, weld::ToggleButton&, rBox, void)
+IMPL_LINK(SwMailMergeLayoutPage, AlignToTextHdl_Impl, weld::Toggleable&, rBox, void)
{
bool bCheck = rBox.get_active() && rBox.get_sensitive();
m_xLeftFT->set_sensitive(!bCheck);
diff --git a/sw/source/ui/dbui/mmlayoutpage.hxx b/sw/source/ui/dbui/mmlayoutpage.hxx
index a0f732e8af28..abec12bb2c52 100644
--- a/sw/source/ui/dbui/mmlayoutpage.hxx
+++ b/sw/source/ui/dbui/mmlayoutpage.hxx
@@ -60,7 +60,7 @@ class SwMailMergeLayoutPage : public vcl::OWizardPage
DECL_LINK(ZoomHdl_Impl, weld::ComboBox&, void);
DECL_LINK(ChangeAddressHdl_Impl, weld::MetricSpinButton&, void);
DECL_LINK(GreetingsHdl_Impl, weld::Button&, void);
- DECL_LINK(AlignToTextHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(AlignToTextHdl_Impl, weld::Toggleable&, void);
static SwFrameFormat* InsertAddressFrame(
SwWrtShell& rShell,
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index d55275d02ff7..660c9ea74384 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -45,7 +45,7 @@ SwMailMergeOutputTypePage::SwMailMergeOutputTypePage(weld::Container* pPage, SwM
, m_xLetterHint(m_xBuilder->weld_label("letterft"))
, m_xMailHint(m_xBuilder->weld_label("emailft"))
{
- Link<weld::ToggleButton&,void> aLink = LINK(this, SwMailMergeOutputTypePage, TypeHdl_Impl);
+ Link<weld::Toggleable&,void> aLink = LINK(this, SwMailMergeOutputTypePage, TypeHdl_Impl);
m_xLetterRB->connect_toggled(aLink);
m_xMailRB->connect_toggled(aLink);
@@ -61,7 +61,7 @@ SwMailMergeOutputTypePage::~SwMailMergeOutputTypePage()
{
}
-IMPL_LINK_NOARG(SwMailMergeOutputTypePage, TypeHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMailMergeOutputTypePage, TypeHdl_Impl, weld::Toggleable&, void)
{
bool bLetter = m_xLetterRB->get_active();
m_xLetterHint->set_visible(bLetter);
diff --git a/sw/source/ui/dbui/mmoutputtypepage.hxx b/sw/source/ui/dbui/mmoutputtypepage.hxx
index eccd2bb9d08f..0fa6c00d0fdc 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.hxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.hxx
@@ -32,7 +32,7 @@ class SwMailMergeOutputTypePage : public vcl::OWizardPage
std::unique_ptr<weld::Label> m_xLetterHint;
std::unique_ptr<weld::Label> m_xMailHint;
- DECL_LINK(TypeHdl_Impl, weld::ToggleButton&, void);
+ DECL_LINK(TypeHdl_Impl, weld::Toggleable&, void);
public:
SwMailMergeOutputTypePage(weld::Container* pPage, SwMailMergeWizard* pWizard);
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index d726c1c2d830..6e081c68a9a1 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -257,7 +257,7 @@ SwMMResultSaveDialog::SwMMResultSaveDialog(weld::Window* pParent)
, m_xToNF(m_xBuilder->weld_spin_button("to"))
, m_xOKButton(m_xBuilder->weld_button("ok"))
{
- Link<weld::ToggleButton&,void> aLink = LINK(this, SwMMResultSaveDialog, DocumentSelectionHdl_Impl);
+ Link<weld::Toggleable&,void> aLink = LINK(this, SwMMResultSaveDialog, DocumentSelectionHdl_Impl);
m_xSaveAsOneRB->connect_toggled(aLink);
m_xSaveIndividualRB->connect_toggled(aLink);
m_xFromRB->connect_toggled(aLink);
@@ -295,7 +295,7 @@ SwMMResultPrintDialog::SwMMResultPrintDialog(weld::Window* pParent)
m_xPrinterLB->connect_changed(LINK(this, SwMMResultPrintDialog, PrinterChangeHdl_Impl));
m_xPrinterSettingsPB->connect_clicked(LINK(this, SwMMResultPrintDialog, PrinterSetupHdl_Impl));
- Link<weld::ToggleButton&,void> aLink = LINK(this, SwMMResultPrintDialog, DocumentSelectionHdl_Impl);
+ Link<weld::Toggleable&,void> aLink = LINK(this, SwMMResultPrintDialog, DocumentSelectionHdl_Impl);
m_xPrintAllRB->connect_toggled(aLink);
m_xFromRB->connect_toggled(aLink);
// m_pPrintAllRB is the default, so disable m_xFromNF and m_xToNF initially.
@@ -338,7 +338,7 @@ SwMMResultEmailDialog::SwMMResultEmailDialog(weld::Window* pParent)
m_xSendAsLB->connect_changed(LINK(this, SwMMResultEmailDialog, SendTypeHdl_Impl));
m_xPasswordCB->connect_toggled( LINK( this, SwMMResultEmailDialog, CheckHdl ));
- Link<weld::ToggleButton&,void> aLink = LINK(this, SwMMResultEmailDialog, DocumentSelectionHdl_Impl);
+ Link<weld::Toggleable&,void> aLink = LINK(this, SwMMResultEmailDialog, DocumentSelectionHdl_Impl);
m_xSendAllRB->connect_toggled(aLink);
m_xFromRB->connect_toggled(aLink);
// m_xSendAllRB is the default, so disable m_xFromNF and m_xToNF initially.
@@ -455,7 +455,7 @@ void SwMMResultEmailDialog::FillInEmailSettings()
m_xToNF->set_value(nCount);
}
-IMPL_LINK_NOARG(SwMMResultSaveDialog, DocumentSelectionHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMMResultSaveDialog, DocumentSelectionHdl_Impl, weld::Toggleable&, void)
{
bool bEnableFromTo = m_xFromRB->get_active();
m_xFromNF->set_sensitive(bEnableFromTo);
@@ -463,7 +463,7 @@ IMPL_LINK_NOARG(SwMMResultSaveDialog, DocumentSelectionHdl_Impl, weld::ToggleBut
m_xToNF->set_sensitive(bEnableFromTo);
}
-IMPL_LINK_NOARG(SwMMResultEmailDialog, CheckHdl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMMResultEmailDialog, CheckHdl, weld::Toggleable&, void)
{
bool bEnable = m_xPasswordCB->get_active();
@@ -471,7 +471,7 @@ IMPL_LINK_NOARG(SwMMResultEmailDialog, CheckHdl, weld::ToggleButton&, void)
m_xPasswordLB->set_sensitive(bEnable);
}
-IMPL_LINK_NOARG(SwMMResultPrintDialog, DocumentSelectionHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMMResultPrintDialog, DocumentSelectionHdl_Impl, weld::Toggleable&, void)
{
bool bEnableFromTo = m_xFromRB->get_active();
m_xFromNF->set_sensitive(bEnableFromTo);
@@ -479,7 +479,7 @@ IMPL_LINK_NOARG(SwMMResultPrintDialog, DocumentSelectionHdl_Impl, weld::ToggleBu
m_xToNF->set_sensitive(bEnableFromTo);
}
-IMPL_LINK_NOARG(SwMMResultEmailDialog, DocumentSelectionHdl_Impl, weld::ToggleButton&, void)
+IMPL_LINK_NOARG(SwMMResultEmailDialog, DocumentSelectionHdl_Impl, weld::Toggleable&, void)
{
bool bEnableFromTo = m_xFromRB->get_active();
m_xFromNF->set_sensitive(bEnableFromTo);