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_NAME = u"Checkbox_Name";
31inline constexpr OUStringLiteral ODF_FORMCHECKBOX_RESULT = u"Checkbox_Checked";
32
33inline constexpr OUStringLiteral ODF_FORMDROPDOWN = u"vnd.oasis.opendocument.field.FORMDROPDOWN";
34inline constexpr OUStringLiteral ODF_FORMDROPDOWN_LISTENTRY = u"Dropdown_ListEntry";
35inline constexpr OUStringLiteral ODF_FORMDROPDOWN_RESULT = u"Dropdown_Selected";
36#define ODF_FORMDROPDOWN_ENTRY_COUNT_LIMIT 25
37
38inline constexpr OUStringLiteral ODF_FORMDATE = u"vnd.oasis.opendocument.field.FORMDATE";
39inline constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT
40 = u"DateField_DateFormat"; // e.g. "MM.DD.YY";
41inline constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT_LANGUAGE
42 = u"DateField_DateFormat_Language"; // e.g. "en-US", "hu-HU";
43inline constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE
44 = u"DateField_CurrentDate"; // date string in a specific format
45inline constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE_FORMAT = u"YYYY-MM-DD"; // Coming from MSO
46#define ODF_FORMDATE_CURRENTDATE_LANGUAGE LANGUAGE_ENGLISH_US
47
48#define ODF_TOC "vnd.oasis.opendocument.field.TOC"
49
50#define ODF_HYPERLINK "vnd.oasis.opendocument.field.HYPERLINK"
51
52#define ODF_PAGEREF "vnd.oasis.opendocument.field.PAGEREF"
53
54inline constexpr OUStringLiteral ODF_UNHANDLED = u"vnd.oasis.opendocument.field.UNHANDLED";
55inline constexpr OUStringLiteral ODF_OLE_PARAM = u"vnd.oasis.opendocument.field.ole";
56inline constexpr OUStringLiteral ODF_ID_PARAM = u"vnd.oasis.opendocument.field.id";
57inline constexpr OUStringLiteral ODF_CODE_PARAM = u"vnd.oasis.opendocument.field.code";
58
59#endif // INCLUDED_XMLOFF_ODFFIELDS_HXX
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
float u
constexpr OUStringLiteral ODF_FORMCHECKBOX_NAME
Definition: odffields.hxx:30
constexpr OUStringLiteral ODF_FORMTEXT
Definition: odffields.hxx:25
constexpr OUStringLiteral ODF_FORMCHECKBOX_RESULT
Definition: odffields.hxx:31
constexpr OUStringLiteral ODF_FORMCHECKBOX_HELPTEXT
Definition: odffields.hxx:29
constexpr OUStringLiteral ODF_FORMDROPDOWN_RESULT
Definition: odffields.hxx:35
constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE
Definition: odffields.hxx:44
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT
Definition: odffields.hxx:40
constexpr OUStringLiteral ODF_FORMDATE_CURRENTDATE_FORMAT
Definition: odffields.hxx:45
constexpr OUStringLiteral ODF_FORMDROPDOWN_LISTENTRY
Definition: odffields.hxx:34
constexpr OUStringLiteral ODF_CODE_PARAM
Definition: odffields.hxx:57
constexpr OUStringLiteral ODF_FORMCHECKBOX
Definition: odffields.hxx:28
constexpr OUStringLiteral ODF_FORMDATE
Definition: odffields.hxx:38
constexpr OUStringLiteral ODF_FORMDATE_DATEFORMAT_LANGUAGE
Definition: odffields.hxx:42
constexpr OUStringLiteral ODF_OLE_PARAM
Definition: odffields.hxx:55
constexpr OUStringLiteral ODF_UNHANDLED
Definition: odffields.hxx:54
constexpr OUStringLiteral ODF_ID_PARAM
Definition: odffields.hxx:56
constexpr OUStringLiteral ODF_FORMDROPDOWN
Definition: odffields.hxx:33