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 
19 namespace sw
20 {
21 namespace mark
22 {
23 class IDateFieldmark;
24 }
25 } // namespace sw
26 
28 namespace sw
29 {
31 {
32 private:
35 
36  std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
37 
38  void Apply();
39  void InitControls();
40 
41 public:
42  DateFormFieldDialog(weld::Widget* pParent, sw::mark::IDateFieldmark* pDateField, SwDoc* pDoc);
43  virtual ~DateFormFieldDialog() override;
44 
45  virtual short run() override
46  {
47  short nRet = GenericDialogController::run();
48  if (nRet == RET_OK)
49  Apply();
50  return nRet;
51  }
52 };
53 
54 } // namespace sw
55 
56 #endif
57 
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
SvNumberFormatter * m_pNumberFormatter
Definition: doc.hxx:185
Dialog to specify the properties of date form field.
virtual short run() override
sw::mark::IDateFieldmark * m_pDateField
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
DateFormFieldDialog(weld::Widget *pParent, sw::mark::IDateFieldmark *pDateField, SwDoc *pDoc)
virtual ~DateFormFieldDialog() override
RET_OK