LibreOffice Module xmloff (master) 1
odffields.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_XMLOFF_ODFFIELDS_HXX
21#define INCLUDED_XMLOFF_ODFFIELDS_HXX
22
23#include <rtl/ustring.hxx>
24
25inline constexpr OUStringLiteral ODF_FORMTEXT = u"vnd.oasis.opendocument.field.FORMTEXT";
26#define ODF_FORMFIELD_DEFAULT_LENGTH 5
27
28inline constexpr OUStringLiteral ODF_FORMCHECKBOX = u"vnd.oasis.opendocument.field.FORMCHECKBOX";
29inline constexpr OUStringLiteral ODF_FORMCHECKBOX_HELPTEXT = u"Checkbox_HelpText";
30inline constexpr OUStringLiteral ODF_FORMCHECKBOX_RESULT = u"Checkbox_Checked";
31
32inline constexpr OUStringLiteral ODF_FORMDROPDOWN = u"vnd.oasis.opendocument.field.FORMDROPDOWN";
33inline constexpr OUStringLiteral ODF_FORMDROPDOWN_LISTENTRY = u"Dropdown_ListEntry";
34inline constexpr OUStringLiteral ODF_FORMDROPDOWN_RESULT = u"Dropdown_Selected";
35#define ODF_FORMDROPDOWN_ENTRY_COUNT_LIMIT 25
36
37inline constexpr OUStringLiteral ODF_FORMDATE = u"vnd.oasis.opendocument.field.FORMDATE";
38inline constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT
39 = u"DateField_DateFormat"; // e.g. "MM.DD.YY";
40inline constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT_LANGUAGE
41 = u"DateField_DateFormat_Language"; // e.g. "en-US", "hu-HU";
42inline constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE
43 = u"DateField_CurrentDate"; // date string in a specific format
44inline constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE_FORMAT = u"YYYY-MM-DD"; // Coming from MSO
45#define ODF_FORMDATE_CURRENTDATE_LANGUAGE LANGUAGE_ENGLISH_US
46
47#define ODF_TOC "vnd.oasis.opendocument.field.TOC"
48
49#define ODF_HYPERLINK "vnd.oasis.opendocument.field.HYPERLINK"
50
51#define ODF_PAGEREF "vnd.oasis.opendocument.field.PAGEREF"
52
53inline constexpr OUStringLiteral ODF_UNHANDLED = u"vnd.oasis.opendocument.field.UNHANDLED";
54inline constexpr OUStringLiteral ODF_OLE_PARAM = u"vnd.oasis.opendocument.field.ole";
55inline constexpr OUStringLiteral ODF_ID_PARAM = u"vnd.oasis.opendocument.field.id";
56inline constexpr OUStringLiteral ODF_CODE_PARAM = u"vnd.oasis.opendocument.field.code";
57
58#endif // INCLUDED_XMLOFF_ODFFIELDS_HXX
59
60/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
float u
constexpr OUStringLiteral ODF_FORMTEXT
Definition: odffields.hxx:25
constexpr OUStringLiteral ODF_FORMCHECKBOX_RESULT
Definition: odffields.hxx:30
constexpr OUStringLiteral ODF_FORMCHECKBOX_HELPTEXT
Definition: odffields.hxx:29
constexpr OUStringLiteral ODF_FORMDROPDOWN_RESULT
Definition: odffields.hxx:34
constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE
Definition: odffields.hxx:43
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT
Definition: odffields.hxx:39
constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE_FORMAT
Definition: odffields.hxx:44
constexpr OUStringLiteral ODF_FORMDROPDOWN_LISTENTRY
Definition: odffields.hxx:33
constexpr OUStringLiteral ODF_CODE_PARAM
Definition: odffields.hxx:56
constexpr OUStringLiteral ODF_FORMCHECKBOX
Definition: odffields.hxx:28
constexpr OUStringLiteral ODF_FORMDATE
Definition: odffields.hxx:37
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT_LANGUAGE
Definition: odffields.hxx:41
constexpr OUStringLiteral ODF_OLE_PARAM
Definition: odffields.hxx:54
constexpr OUStringLiteral ODF_UNHANDLED
Definition: odffields.hxx:53
constexpr OUStringLiteral ODF_ID_PARAM
Definition: odffields.hxx:55
constexpr OUStringLiteral ODF_FORMDROPDOWN
Definition: odffields.hxx:32