Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / core / inc / datecontentcontrolbutton.hxx
blob48b08f2db9816e6a33663332fe526da5df0f3b09
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include "contentcontrolbutton.hxx"
14 class SwEditWin;
15 class SvNumberFormatter;
16 class SwContentControl;
18 /**
19 * This button is shown when the cursor is on a date content control. The user can select a date
20 * from a date picker.
22 class SwDateContentControlButton final : public SwContentControlButton
24 private:
25 SvNumberFormatter* m_pNumberFormatter;
27 std::unique_ptr<weld::Calendar> m_xCalendar;
29 DECL_LINK(SelectHandler, weld::Calendar&, void);
31 public:
32 SwDateContentControlButton(SwEditWin* pEditWin,
33 const std::shared_ptr<SwContentControl>& pContentControl,
34 SvNumberFormatter* pNumberFormatter);
35 ~SwDateContentControlButton() override;
37 void LaunchPopup() override;
38 void DestroyPopup() override;
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */