summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-16 17:26:23 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-08-17 15:10:10 +0200
commite7950b8e8f7f4a52a841a5f1ebfedc68be3454ea (patch)
treeff5ca9ccd621f596754a4d48fc3dd845a17f7aa9 /include
parentd6808f6ba03f74f99759e8d59ac0a04fcc9c6dd8 (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/+/120453 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r--include/svtools/ctrlbox.hxx4
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;