Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / inc / DateFormFieldDialog.hxx
blob2b4573af7dea7a5134407c0a68c431cb83ac3100
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.
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 */
10 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_DATEFORMFIELDDIALOG_HXX
11 #define INCLUDED_SW_SOURCE_UIBASE_INC_DATEFORMFIELDDIALOG_HXX
13 #include <vcl/weld.hxx>
14 #include "numfmtlb.hxx"
16 class SvNumberFormatter;
17 class SwDoc;
18 namespace sw::mark
20 class IDateFieldmark;
23 /// Dialog to specify the properties of date form field
24 namespace sw
26 class DateFormFieldDialog final : public weld::GenericDialogController
28 private:
29 sw::mark::IDateFieldmark* m_pDateField;
30 SvNumberFormatter* m_pNumberFormatter;
32 std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
34 void Apply();
35 void InitControls();
37 public:
38 DateFormFieldDialog(weld::Widget* pParent, sw::mark::IDateFieldmark* pDateField, SwDoc& rDoc);
39 virtual ~DateFormFieldDialog() override;
41 virtual short run() override
43 short nRet = GenericDialogController::run();
44 if (nRet == RET_OK)
45 Apply();
46 return nRet;
50 } // namespace sw
52 #endif
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */