LibreOffice Module sw (master)  1
DateFormFieldDialog.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_UIBASE_INC_DATEFORMFIELDDIALOG_HXX
11 #define INCLUDED_SW_SOURCE_UIBASE_INC_DATEFORMFIELDDIALOG_HXX
12 
13 #include <vcl/weld.hxx>
14 #include "numfmtlb.hxx"
15 
16 class SvNumberFormatter;
17 class SwDoc;
18 namespace sw::mark
19 {
20 class IDateFieldmark;
21 }
22 
24 namespace sw
25 {
27 {
28 private:
31 
32  std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
33 
34  void Apply();
35  void InitControls();
36 
37 public:
38  DateFormFieldDialog(weld::Widget* pParent, sw::mark::IDateFieldmark* pDateField, SwDoc& rDoc);
39  virtual ~DateFormFieldDialog() override;
40 
41  virtual short run() override
42  {
43  short nRet = GenericDialogController::run();
44  if (nRet == RET_OK)
45  Apply();
46  return nRet;
47  }
48 };
49 
50 } // namespace sw
51 
52 #endif
53 
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
SvNumberFormatter * m_pNumberFormatter
Definition: doc.hxx:186
Dialog to specify the properties of date form field.
virtual short run() override
sw::mark::IDateFieldmark * m_pDateField
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
virtual ~DateFormFieldDialog() override
RET_OK
DateFormFieldDialog(weld::Widget *pParent, sw::mark::IDateFieldmark *pDateField, SwDoc &rDoc)