summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-20 13:00:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-20 17:01:53 +0200
commit48182506886230a70cfa2ce3c61470701cb1138e (patch)
treef96e31fdd128bd96beddc02de72fb77ebe1b0a74 /sw
parent3cf28a1ab93515739e9fd20ffb3a575017ac9e69 (diff)
use toggle instead of click for CheckButton
Change-Id: Ic8957a59addbf08f2b2e4e84167991f00048c6a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115876 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/config/optpage.cxx32
-rw-r--r--sw/source/ui/misc/linenum.cxx4
-rw-r--r--sw/source/uibase/inc/linenum.hxx2
-rw-r--r--sw/source/uibase/inc/optpage.hxx4
4 files changed, 21 insertions, 21 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index 5db1c92b304c..8b2352350a31 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -2022,7 +2022,7 @@ SwCompareOptionsTabPage::SwCompareOptionsTabPage(weld::Container* pPage, weld::D
m_xWordRB->connect_clicked( aLnk );
m_xCharRB->connect_clicked( aLnk );
- m_xIgnoreCB->connect_clicked( LINK( this, SwCompareOptionsTabPage, IgnoreHdl) );
+ m_xIgnoreCB->connect_toggled( LINK( this, SwCompareOptionsTabPage, IgnoreHdl) );
}
SwCompareOptionsTabPage::~SwCompareOptionsTabPage()
@@ -2133,7 +2133,7 @@ IMPL_LINK_NOARG(SwCompareOptionsTabPage, ComparisonHdl, weld::Button&, void)
m_xLenNF->set_sensitive( bChecked && m_xIgnoreCB->get_active() );
}
-IMPL_LINK_NOARG(SwCompareOptionsTabPage, IgnoreHdl, weld::Button&, void)
+IMPL_LINK_NOARG(SwCompareOptionsTabPage, IgnoreHdl, weld::ToggleButton&, void)
{
m_xLenNF->set_sensitive(m_xIgnoreCB->get_active());
}
@@ -2212,20 +2212,20 @@ void SwTestTabPage::Reset( const SfxItemSet* )
void SwTestTabPage::Init()
{
// handler
- Link<weld::Button&,void> aLk = LINK( this, SwTestTabPage, AutoClickHdl );
- m_xTest1CBox->connect_clicked( aLk );
- m_xTest2CBox->connect_clicked( aLk );
- m_xTest3CBox->connect_clicked( aLk );
- m_xTest4CBox->connect_clicked( aLk );
- m_xTest5CBox->connect_clicked( aLk );
- m_xTest6CBox->connect_clicked( aLk );
- m_xTest7CBox->connect_clicked( aLk );
- m_xTest8CBox->connect_clicked( aLk );
- m_xTest9CBox->connect_clicked( aLk );
- m_xTest10CBox->connect_clicked( aLk );
-}
-
-IMPL_LINK_NOARG(SwTestTabPage, AutoClickHdl, weld::Button&, void)
+ Link<weld::ToggleButton&,void> aLk = LINK( this, SwTestTabPage, AutoClickHdl );
+ m_xTest1CBox->connect_toggled( aLk );
+ m_xTest2CBox->connect_toggled( aLk );
+ m_xTest3CBox->connect_toggled( aLk );
+ m_xTest4CBox->connect_toggled( aLk );
+ m_xTest5CBox->connect_toggled( aLk );
+ m_xTest6CBox->connect_toggled( aLk );
+ m_xTest7CBox->connect_toggled( aLk );
+ m_xTest8CBox->connect_toggled( aLk );
+ m_xTest9CBox->connect_toggled( aLk );
+ m_xTest10CBox->connect_toggled( aLk );
+}
+
+IMPL_LINK_NOARG(SwTestTabPage, AutoClickHdl, weld::ToggleButton&, void)
{
bAttrModified = true;
}
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 34a913181350..ec107202aba0 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -166,7 +166,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(const SwView& rVw)
}
// Line Numbering
- m_xNumberingOnCB->connect_clicked(LINK(this, SwLineNumberingDlg, LineOnOffHdl));
+ m_xNumberingOnCB->connect_toggled(LINK(this, SwLineNumberingDlg, LineOnOffHdl));
m_xDivisorED->connect_changed(LINK(this, SwLineNumberingDlg, ModifyHdl));
ModifyHdl(*m_xDivisorED);
LineOnOffHdl(*m_xNumberingOnCB);
@@ -250,7 +250,7 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, ModifyHdl, weld::Entry&, void)
}
// On/Off
-IMPL_LINK_NOARG(SwLineNumberingDlg, LineOnOffHdl, weld::Button&, void)
+IMPL_LINK_NOARG(SwLineNumberingDlg, LineOnOffHdl, weld::ToggleButton&, void)
{
bool bEnable = m_xNumberingOnCB->get_active();
m_xBodyContent->set_sensitive(bEnable);
diff --git a/sw/source/uibase/inc/linenum.hxx b/sw/source/uibase/inc/linenum.hxx
index 21f4d78864ca..c05a8fe7d61c 100644
--- a/sw/source/uibase/inc/linenum.hxx
+++ b/sw/source/uibase/inc/linenum.hxx
@@ -48,7 +48,7 @@ private:
std::unique_ptr<weld::Widget> m_xNumIntervalFT;
std::unique_ptr<weld::Widget> m_xNumRowsFT;
DECL_LINK(OKHdl, weld::Button&, void);
- DECL_LINK(LineOnOffHdl, weld::Button&, void);
+ DECL_LINK(LineOnOffHdl, weld::ToggleButton&, void);
DECL_LINK(ModifyHdl, weld::Entry&, void);
public:
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx
index ead7dbc40675..832fd87b0733 100644
--- a/sw/source/uibase/inc/optpage.hxx
+++ b/sw/source/uibase/inc/optpage.hxx
@@ -362,7 +362,7 @@ private:
std::unique_ptr<weld::CheckButton> m_xTest10CBox;
void Init();
- DECL_LINK(AutoClickHdl, weld::Button&, void);
+ DECL_LINK(AutoClickHdl, weld::ToggleButton&, void);
};
#endif // DBG_UTIL
@@ -377,7 +377,7 @@ class SwCompareOptionsTabPage : public SfxTabPage
std::unique_ptr<weld::CheckButton> m_xStoreRsidCB;
DECL_LINK(ComparisonHdl, weld::Button&, void);
- DECL_LINK(IgnoreHdl, weld::Button&, void);
+ DECL_LINK(IgnoreHdl, weld::ToggleButton&, void);
public:
SwCompareOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);