LibreOffice Module sw (master)  1
DateFormFieldButton.hxx
Go to the documentation of this file.
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.
4  *
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  */
9 
10 #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_DATEFORMEFIELDBUTTO_HXX
11 #define INCLUDED_SW_SOURCE_CORE_TEXT_DATEFORMEFIELDBUTTO_HXX
12 
13 #include "FormFieldButton.hxx"
14 
15 class SwEditWin;
16 class SvNumberFormatter;
17 namespace sw::mark
18 {
19 class DateFieldmark;
20 }
21 
27 {
28 private:
31 
32  std::unique_ptr<weld::Calendar> m_xCalendar;
33 
34  DECL_LINK(ImplSelectHdl, weld::Calendar&, void);
35 
36 public:
38  SvNumberFormatter* pNumberFormatter);
39  virtual ~DateFormFieldButton() override;
40 
41  virtual void LaunchPopup() override;
42  virtual void DestroyPopup() override;
43 };
44 
45 #endif
46 
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Fieldmark representing a date form field.
Definition: bookmrk.hxx:305
DateFormFieldButton(SwEditWin *pEditWin, sw::mark::DateFieldmark &rFieldMark, SvNumberFormatter *pNumberFormatter)
This button is shown when the cursor is on a date form field.
std::unique_ptr< weld::Calendar > m_xCalendar
sw::mark::DateFieldmark * m_pDateFieldmark
virtual void LaunchPopup() override
This button is shown when the cursor is on a form field with drop-down capability.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
virtual void DestroyPopup() override
DECL_LINK(ImplSelectHdl, weld::Calendar &, void)
SvNumberFormatter * m_pNumberFormatter
virtual ~DateFormFieldButton() override