diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-20 17:27:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-21 18:19:58 +0200 |
commit | 9940f077fdfc0c271aa66ad64578ae2236a2ca81 (patch) | |
tree | a52b00f3ba98d78f88a0d2aa5a02605746f8e6c7 /starmath | |
parent | f19a599f6911f5ccd1049228454b6c6c8fd6d5cb (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 'starmath')
-rw-r--r-- | starmath/inc/dialog.hxx | 6 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index fc303ba29fc3..ac1f65ac9913 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -50,7 +50,7 @@ class SmPrintOptionsTabPage final : public SfxTabPage std::unique_ptr<weld::CheckButton> m_xSaveOnlyUsedSymbols; std::unique_ptr<weld::CheckButton> m_xAutoCloseBrackets; - DECL_LINK(SizeButtonClickHdl, weld::ToggleButton&, void); + DECL_LINK(SizeButtonClickHdl, weld::Toggleable&, void); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; @@ -89,7 +89,7 @@ class SmFontDialog : public weld::GenericDialogController std::unique_ptr<weld::CustomWeld> m_xShowFont; DECL_LINK(FontSelectHdl, weld::ComboBox&, void); - DECL_LINK(AttrChangeHdl, weld::ToggleButton&, void); + DECL_LINK(AttrChangeHdl, weld::Toggleable&, void); public: SmFontDialog(weld::Window* pParent, OutputDevice *pFntListDevice, bool bHideCheckboxes); @@ -206,7 +206,7 @@ class SmDistanceDialog final : public weld::GenericDialogController DECL_LINK(GetFocusHdl, weld::Widget&, void); DECL_LINK(MenuSelectHdl, const OString&, void); DECL_LINK(DefaultButtonClickHdl, weld::Button&, void); - DECL_LINK(CheckBoxClickHdl, weld::ToggleButton&, void); + DECL_LINK(CheckBoxClickHdl, weld::Toggleable&, void); void SetCategory(sal_uInt16 Category); diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 523f2fa89d7f..802588f9c38c 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -153,7 +153,7 @@ void SetFontStyle(std::u16string_view rStyleName, vcl::Font &rFont) rFont.SetWeight((nIndex & 0x2) ? WEIGHT_BOLD : WEIGHT_NORMAL); } -IMPL_LINK_NOARG(SmPrintOptionsTabPage, SizeButtonClickHdl, weld::ToggleButton&, void) +IMPL_LINK_NOARG(SmPrintOptionsTabPage, SizeButtonClickHdl, weld::Toggleable&, void) { m_xZoom->set_sensitive(m_xSizeZoomed->get_active()); } @@ -267,7 +267,7 @@ IMPL_LINK( SmFontDialog, FontSelectHdl, weld::ComboBox&, rComboBox, void ) m_aShowFont.SetFont(maFont); } -IMPL_LINK_NOARG(SmFontDialog, AttrChangeHdl, weld::ToggleButton&, void) +IMPL_LINK_NOARG(SmFontDialog, AttrChangeHdl, weld::Toggleable&, void) { if (m_xBoldCheckBox->get_active()) maFont.SetWeight(WEIGHT_BOLD); @@ -644,7 +644,7 @@ IMPL_LINK_NOARG( SmDistanceDialog, DefaultButtonClickHdl, weld::Button&, void ) } } -IMPL_LINK( SmDistanceDialog, CheckBoxClickHdl, weld::ToggleButton&, rCheckBox, void ) +IMPL_LINK( SmDistanceDialog, CheckBoxClickHdl, weld::Toggleable&, rCheckBox, void ) { if (&rCheckBox == m_xCheckBox1.get()) { |