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
17class SwDoc;
18namespace sw::mark
19{
20class IDateFieldmark;
21}
22
24namespace sw
25{
27{
28private:
31
32 std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
33
34 void Apply();
35 void InitControls();
36
37public:
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: */
Definition: doc.hxx:197
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
SvNumberFormatter * m_pNumberFormatter
sw::mark::IDateFieldmark * m_pDateField
DateFormFieldDialog(weld::Widget *pParent, sw::mark::IDateFieldmark *pDateField, SwDoc &rDoc)
virtual short run() override
virtual ~DateFormFieldDialog() override
Dialog to specify the properties of date form field.
RET_OK