diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-16 17:26:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-13 15:18:54 +0200 |
commit | 20bc07707949508f029da5e523fedda3cd64ccc8 (patch) | |
tree | ea692c2791883245776b8761c55f343ea7ce40ff /include | |
parent | 282ddcf0bf0893f9a71eef2b1fea3db86b1c3292 (diff) |
tdf#143357 use a DateFormatter and a separate Calendar menubutton
similar to what we ended up with in DateControl in
svtools/source/brwbox/ebbcontrols.cxx
Change-Id: I37c843ff7e1e8e39b318db80fe590ce5f796f46a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119082
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/ctrlbox.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index eda2f1cd08dc..e58f3ede418e 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -291,7 +291,7 @@ private: class SVT_DLLPUBLIC SvtCalendarBox { public: - SvtCalendarBox(std::unique_ptr<weld::MenuButton> pControl); + SvtCalendarBox(std::unique_ptr<weld::MenuButton> pControl, bool bUseLabel = true); ~SvtCalendarBox(); weld::MenuButton& get_button() { return *m_xControl; } @@ -317,6 +317,8 @@ private: DECL_LINK(SelectHdl, weld::Calendar&, void); DECL_LINK(ActivateHdl, weld::Calendar&, void); + bool m_bUseLabel; + std::unique_ptr<weld::MenuButton> m_xControl; std::unique_ptr<weld::Builder> m_xBuilder; std::unique_ptr<weld::Widget> m_xTopLevel; |