diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-14 16:45:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-15 15:00:56 +0200 |
commit | 299e128b5175f4c3d794848ab51e81d14385a547 (patch) | |
tree | b2af5ebbd9c2692e121f0b6ba064d34bfef60a1a /include/svx | |
parent | 0abbf64dc1ebe9f12523a69ce1cfd25fe189d869 (diff) |
replace TimeSpinButton with FormattedSpinButton
with a TimeFormatter rather than have duplicate functionality
Change-Id: I99f1f2aabee5f81485f97755ba3675870317cfb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98791
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/ctredlin.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx index 55462c9dce28..b7d0f80ada23 100644 --- a/include/svx/ctredlin.hxx +++ b/include/svx/ctredlin.hxx @@ -144,6 +144,11 @@ public: void Show() { m_xContainer->show(); } }; +namespace weld +{ + class TimeFormatter; +} + /// Tabpage with the filter text entries etc. class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxTPFilter final : public SvxTPage { @@ -156,11 +161,13 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxTPFilter final : public SvxTPage std::unique_ptr<weld::CheckButton> m_xCbDate; std::unique_ptr<weld::ComboBox> m_xLbDate; std::unique_ptr<SvtCalendarBox> m_xDfDate; - std::unique_ptr<weld::TimeSpinButton> m_xTfDate; + std::unique_ptr<weld::FormattedSpinButton> m_xTfDate; + std::unique_ptr<weld::TimeFormatter> m_xTfDateFormatter; std::unique_ptr<weld::Button> m_xIbClock; std::unique_ptr<weld::Label> m_xFtDate2; std::unique_ptr<SvtCalendarBox> m_xDfDate2; - std::unique_ptr<weld::TimeSpinButton> m_xTfDate2; + std::unique_ptr<weld::FormattedSpinButton> m_xTfDate2; + std::unique_ptr<weld::TimeFormatter> m_xTfDate2Formatter; std::unique_ptr<weld::Button> m_xIbClock2; std::unique_ptr<weld::CheckButton> m_xCbAuthor; std::unique_ptr<weld::ComboBox> m_xLbAuthor; @@ -178,7 +185,7 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxTPFilter final : public SvxTPage DECL_LINK( ModifyHdl, weld::Entry&, void ); DECL_LINK( ModifyListBoxHdl, weld::ComboBox&, void ); DECL_LINK( ModifyDate, SvtCalendarBox&, void ); - DECL_LINK( ModifyTime, weld::TimeSpinButton&, void ); + DECL_LINK( ModifyTime, weld::FormattedSpinButton&, void ); DECL_LINK( RefHandle, weld::Button&, void ); void EnableDateLine1(bool bFlag); |