1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_ODFFIELDS_HXX
21 #define INCLUDED_XMLOFF_ODFFIELDS_HXX
23 #include <rtl/ustring.hxx>
25 inline constexpr OUString ODF_FORMTEXT
= u
"vnd.oasis.opendocument.field.FORMTEXT"_ustr
;
26 #define ODF_FORMFIELD_DEFAULT_LENGTH 5
28 inline constexpr OUString ODF_FORMCHECKBOX
= u
"vnd.oasis.opendocument.field.FORMCHECKBOX"_ustr
;
29 inline constexpr OUString ODF_FORMCHECKBOX_HELPTEXT
= u
"Checkbox_HelpText"_ustr
;
30 inline constexpr OUString ODF_FORMCHECKBOX_RESULT
= u
"Checkbox_Checked"_ustr
;
32 inline constexpr OUString ODF_FORMDROPDOWN
= u
"vnd.oasis.opendocument.field.FORMDROPDOWN"_ustr
;
33 inline constexpr OUString ODF_FORMDROPDOWN_LISTENTRY
= u
"Dropdown_ListEntry"_ustr
;
34 inline constexpr OUString ODF_FORMDROPDOWN_RESULT
= u
"Dropdown_Selected"_ustr
;
35 #define ODF_FORMDROPDOWN_ENTRY_COUNT_LIMIT 25
37 inline constexpr OUString ODF_FORMDATE
= u
"vnd.oasis.opendocument.field.FORMDATE"_ustr
;
38 inline constexpr OUString ODF_FORMDATE_DATEFORMAT
39 = u
"DateField_DateFormat"_ustr
; // e.g. "MM.DD.YY";
40 inline constexpr OUString ODF_FORMDATE_DATEFORMAT_LANGUAGE
41 = u
"DateField_DateFormat_Language"_ustr
; // e.g. "en-US", "hu-HU";
42 inline constexpr OUString ODF_FORMDATE_CURRENTDATE
43 = u
"DateField_CurrentDate"_ustr
; // date string in a specific format
44 inline constexpr OUString ODF_FORMDATE_CURRENTDATE_FORMAT
= u
"YYYY-MM-DD"_ustr
; // Coming from MSO
45 #define ODF_FORMDATE_CURRENTDATE_LANGUAGE LANGUAGE_ENGLISH_US
47 #define ODF_TOC "vnd.oasis.opendocument.field.TOC"
49 #define ODF_HYPERLINK "vnd.oasis.opendocument.field.HYPERLINK"
51 #define ODF_PAGEREF "vnd.oasis.opendocument.field.PAGEREF"
53 inline constexpr OUString ODF_UNHANDLED
= u
"vnd.oasis.opendocument.field.UNHANDLED"_ustr
;
54 inline constexpr OUString ODF_OLE_PARAM
= u
"vnd.oasis.opendocument.field.ole"_ustr
;
55 inline constexpr OUString ODF_ID_PARAM
= u
"vnd.oasis.opendocument.field.id"_ustr
;
56 inline constexpr OUString ODF_CODE_PARAM
= u
"vnd.oasis.opendocument.field.code"_ustr
;
58 #endif // INCLUDED_XMLOFF_ODFFIELDS_HXX
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */