1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include "contentcontrolbutton.hxx"
15 class SvNumberFormatter
;
16 class SwContentControl
;
19 * This button is shown when the cursor is on a date content control. The user can select a date
22 class SwDateContentControlButton final
: public SwContentControlButton
25 SvNumberFormatter
* m_pNumberFormatter
;
27 std::unique_ptr
<weld::Calendar
> m_xCalendar
;
29 DECL_LINK(SelectHandler
, weld::Calendar
&, void);
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: */