1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlstrings.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_configmgr.hxx"
34 #include "xmlstrings.hxx"
36 //.........................................................................
39 //.........................................................................
43 //----------------------------------------------------------------------------
44 // For now: Include the fixed OOR prefix into (most) attribute names
45 #define OOR_PREFIX_ "oor:"
46 // ... but not into (most) tag names
47 #define OOR_TAG_PREFIX_
48 // ... but into root tag names
49 #define OOR_ROOTTAG_PREFIX_ OOR_PREFIX_
50 //----------------------------------------------------------------------------
51 // extern declaration for strings used in the XML format
53 IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_OOR
, "oor");
54 IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_XS
, "xs");
57 IMPLEMENT_CONSTASCII_USTRING(NS_URI_OOR
,"http://openoffice.org/2001/registry");
58 IMPLEMENT_CONSTASCII_USTRING(NS_URI_XS
, "http://www.w3.org/2001/XMLSchema");
61 IMPLEMENT_CONSTASCII_USTRING(TAG_SCHEMA
, OOR_ROOTTAG_PREFIX_
"component-schema");
62 IMPLEMENT_CONSTASCII_USTRING(TAG_LAYER
, OOR_ROOTTAG_PREFIX_
"component-data");
63 IMPLEMENT_CONSTASCII_USTRING(DEPRECATED_TAG_LAYER
, OOR_ROOTTAG_PREFIX_
"node");
65 IMPLEMENT_CONSTASCII_USTRING(TAG_COMPONENT
, OOR_TAG_PREFIX_
"component");
66 IMPLEMENT_CONSTASCII_USTRING(TAG_TEMPLATES
, OOR_TAG_PREFIX_
"templates");
68 IMPLEMENT_CONSTASCII_USTRING(TAG_NODE
, OOR_TAG_PREFIX_
"node");
69 IMPLEMENT_CONSTASCII_USTRING(TAG_GROUP
, OOR_TAG_PREFIX_
"group");
70 IMPLEMENT_CONSTASCII_USTRING(TAG_SET
, OOR_TAG_PREFIX_
"set");
71 IMPLEMENT_CONSTASCII_USTRING(TAG_PROP
, OOR_TAG_PREFIX_
"prop");
73 IMPLEMENT_CONSTASCII_USTRING(TAG_VALUE
, OOR_TAG_PREFIX_
"value");
74 IMPLEMENT_CONSTASCII_USTRING(TAG_IMPORT
, OOR_TAG_PREFIX_
"import");
75 IMPLEMENT_CONSTASCII_USTRING(TAG_INSTANCE
, OOR_TAG_PREFIX_
"node-ref");
76 IMPLEMENT_CONSTASCII_USTRING(TAG_ITEMTYPE
, OOR_TAG_PREFIX_
"item");
77 IMPLEMENT_CONSTASCII_USTRING(TAG_USES
, OOR_TAG_PREFIX_
"uses");
80 IMPLEMENT_CONSTASCII_USTRING(ATTR_NAME
, OOR_PREFIX_
"name");
81 IMPLEMENT_CONSTASCII_USTRING(ATTR_CONTEXT
, OOR_PREFIX_
"context");
82 IMPLEMENT_CONSTASCII_USTRING(ATTR_PACKAGE
, OOR_PREFIX_
"package");
83 IMPLEMENT_CONSTASCII_USTRING(ATTR_COMPONENT
,OOR_PREFIX_
"component");
85 IMPLEMENT_CONSTASCII_USTRING(ATTR_ITEMTYPE
, OOR_PREFIX_
"node-type");
86 IMPLEMENT_CONSTASCII_USTRING(ATTR_ITEMTYPECOMPONENT
,OOR_PREFIX_
"component");
88 IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUETYPE
, OOR_PREFIX_
"type");
89 IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUESEPARATOR
, OOR_PREFIX_
"separator");
91 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_EXTENSIBLE
, OOR_PREFIX_
"extensible");
92 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_FINALIZED
, OOR_PREFIX_
"finalized");
93 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_READONLY
, OOR_PREFIX_
"readonly");
94 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_MANDATORY
, OOR_PREFIX_
"mandatory");
95 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_NULLABLE
, OOR_PREFIX_
"nillable");
96 IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_LOCALIZED
, OOR_PREFIX_
"localized");
98 IMPLEMENT_CONSTASCII_USTRING(ATTR_OPERATION
, OOR_PREFIX_
"op");
100 // attributes defined elsewhere
101 IMPLEMENT_CONSTASCII_USTRING(EXT_ATTR_LANGUAGE
, "xml:lang");
102 IMPLEMENT_CONSTASCII_USTRING(EXT_ATTR_NULL
, "xsi:nil");
104 // attribute contents
106 IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUE_TRUE
, "true");
107 IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUE_FALSE
, "false");
109 // simple types names
110 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_BOOLEAN
, "boolean");
111 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_SHORT
, "short");
112 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_INT
, "int");
113 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_LONG
, "long");
114 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_DOUBLE
, "double");
115 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_STRING
, "string");
116 // Type: Sequence<bytes>
117 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_BINARY
, "hexBinary");
118 // Universal type: Any
119 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_ANY
, "any");
121 // modifier suffix for list types
122 IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_LIST_SUFFIX
, "-list");
124 // States for update actions
125 IMPLEMENT_CONSTASCII_USTRING(OPERATION_MODIFY
, "modify");
126 IMPLEMENT_CONSTASCII_USTRING(OPERATION_REPLACE
, "replace");
127 IMPLEMENT_CONSTASCII_USTRING(OPERATION_FUSE
, "fuse");
128 IMPLEMENT_CONSTASCII_USTRING(OPERATION_REMOVE
, "remove");
130 // the default separator for strings
131 IMPLEMENT_CONSTASCII_USTRING(SEPARATOR_WHITESPACE
, " ");
133 // Needed for building attribute lists
134 IMPLEMENT_CONSTASCII_USTRING(XML_ATTRTYPE_CDATA
, "CDATA");
138 } // namespace configmgr