2002-05-16 05:00:29 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* $RCSfile: xmlstrings.cxx,v $
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2006-09-16 09:36:38 -05:00
|
|
|
* $Revision: 1.9 $
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2006-09-16 09:36:38 -05:00
|
|
|
* last change: $Author: obo $ $Date: 2006-09-16 15:36:38 $
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
2005-09-07 22:43:58 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2002-05-16 05:00:29 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 09:36:38 -05:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_configmgr.hxx"
|
|
|
|
|
2002-05-16 05:00:29 -05:00
|
|
|
#include "xmlstrings.hxx"
|
|
|
|
|
|
|
|
//.........................................................................
|
|
|
|
namespace configmgr
|
|
|
|
{
|
|
|
|
//.........................................................................
|
|
|
|
|
|
|
|
namespace xml
|
|
|
|
{
|
|
|
|
//----------------------------------------------------------------------------
|
2002-06-17 02:55:17 -05:00
|
|
|
// For now: Include the fixed OOR prefix into (most) attribute names
|
2002-05-16 05:00:29 -05:00
|
|
|
#define OOR_PREFIX_ "oor:"
|
2002-06-17 02:55:17 -05:00
|
|
|
// ... but not into (most) tag names
|
|
|
|
#define OOR_TAG_PREFIX_
|
2002-07-03 08:07:28 -05:00
|
|
|
// ... but into root tag names
|
|
|
|
#define OOR_ROOTTAG_PREFIX_ OOR_PREFIX_
|
2002-05-16 05:00:29 -05:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// extern declaration for strings used in the XML format
|
|
|
|
// namespace prefixes
|
2002-05-27 04:38:31 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_OOR, "oor");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_XS, "xs");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
|
|
|
// namespace urls
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(NS_URI_OOR,"http://openoffice.org/2001/registry");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(NS_URI_XS, "http://www.w3.org/2001/XMLSchema");
|
|
|
|
|
|
|
|
// tag names
|
2002-07-03 08:07:28 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_SCHEMA, OOR_ROOTTAG_PREFIX_"component-schema");
|
2003-05-27 05:43:07 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_LAYER, OOR_ROOTTAG_PREFIX_"component-data");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(DEPRECATED_TAG_LAYER, OOR_ROOTTAG_PREFIX_"node");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
2002-06-17 02:55:17 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_COMPONENT, OOR_TAG_PREFIX_"component");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_TEMPLATES, OOR_TAG_PREFIX_"templates");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
2002-06-17 02:55:17 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_NODE, OOR_TAG_PREFIX_"node");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_GROUP, OOR_TAG_PREFIX_"group");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_SET, OOR_TAG_PREFIX_"set");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_PROP, OOR_TAG_PREFIX_"prop");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
2002-06-17 02:55:17 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_VALUE, OOR_TAG_PREFIX_"value");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_IMPORT, OOR_TAG_PREFIX_"import");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_INSTANCE, OOR_TAG_PREFIX_"node-ref");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_ITEMTYPE, OOR_TAG_PREFIX_"item");
|
2002-07-14 10:49:53 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(TAG_USES, OOR_TAG_PREFIX_"uses");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
|
|
|
// attribute names
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_NAME, OOR_PREFIX_"name");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_CONTEXT, OOR_PREFIX_"context");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_PACKAGE, OOR_PREFIX_"package");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_COMPONENT,OOR_PREFIX_"component");
|
|
|
|
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_ITEMTYPE, OOR_PREFIX_"node-type");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_ITEMTYPECOMPONENT,OOR_PREFIX_"component");
|
|
|
|
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUETYPE, OOR_PREFIX_"type");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUESEPARATOR, OOR_PREFIX_"separator");
|
|
|
|
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_EXTENSIBLE, OOR_PREFIX_"extensible");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_FINALIZED, OOR_PREFIX_"finalized");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_READONLY, OOR_PREFIX_"readonly");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_MANDATORY, OOR_PREFIX_"mandatory");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_NULLABLE, OOR_PREFIX_"nillable");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_FLAG_LOCALIZED, OOR_PREFIX_"localized");
|
|
|
|
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_OPERATION, OOR_PREFIX_"op");
|
|
|
|
|
|
|
|
// attributes defined elsewhere
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(EXT_ATTR_LANGUAGE, "xml:lang");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(EXT_ATTR_NULL, "xsi:nil");
|
|
|
|
|
|
|
|
// attribute contents
|
|
|
|
// boolean constants
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUE_TRUE, "true");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(ATTR_VALUE_FALSE, "false");
|
|
|
|
|
|
|
|
// simple types names
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_BOOLEAN, "boolean");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_SHORT, "short");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_INT, "int");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_LONG, "long");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_DOUBLE, "double");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_STRING, "string");
|
|
|
|
// Type: Sequence<bytes>
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_BINARY, "hexBinary");
|
|
|
|
// Universal type: Any
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_ANY, "any");
|
|
|
|
|
|
|
|
// modifier suffix for list types
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(VALUETYPE_LIST_SUFFIX, "-list");
|
|
|
|
|
|
|
|
// States for update actions
|
2002-07-03 08:07:28 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(OPERATION_MODIFY, "modify");
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(OPERATION_REPLACE, "replace");
|
2006-04-19 08:02:22 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(OPERATION_FUSE, "fuse");
|
2002-07-03 08:07:28 -05:00
|
|
|
IMPLEMENT_CONSTASCII_USTRING(OPERATION_REMOVE, "remove");
|
2002-05-16 05:00:29 -05:00
|
|
|
|
|
|
|
// the default separator for strings
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(SEPARATOR_WHITESPACE, " ");
|
|
|
|
|
|
|
|
// Needed for building attribute lists
|
|
|
|
IMPLEMENT_CONSTASCII_USTRING(XML_ATTRTYPE_CDATA, "CDATA");
|
|
|
|
|
|
|
|
} // namespace xml
|
|
|
|
|
|
|
|
} // namespace configmgr
|
|
|
|
|
|
|
|
|