office-gobmx/configmgr/source/xml/xmlstrings.cxx
Oliver Bolte 2a6c0c6dd9 INTEGRATION: CWS pchfix02 (1.8.28); FILE MERGED
2006/09/01 17:20:54 kaib 1.8.28.1: #i68856# Added header markers and pch files
2006-09-16 14:36:38 +00:00

145 lines
6.5 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlstrings.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-16 15:36:38 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* 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.
*
* 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.
*
* 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
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_configmgr.hxx"
#include "xmlstrings.hxx"
//.........................................................................
namespace configmgr
{
//.........................................................................
namespace xml
{
//----------------------------------------------------------------------------
// For now: Include the fixed OOR prefix into (most) attribute names
#define OOR_PREFIX_ "oor:"
// ... but not into (most) tag names
#define OOR_TAG_PREFIX_
// ... but into root tag names
#define OOR_ROOTTAG_PREFIX_ OOR_PREFIX_
//----------------------------------------------------------------------------
// extern declaration for strings used in the XML format
// namespace prefixes
IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_OOR, "oor");
IMPLEMENT_CONSTASCII_USTRING(NS_PREFIX_XS, "xs");
// 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
IMPLEMENT_CONSTASCII_USTRING(TAG_SCHEMA, OOR_ROOTTAG_PREFIX_"component-schema");
IMPLEMENT_CONSTASCII_USTRING(TAG_LAYER, OOR_ROOTTAG_PREFIX_"component-data");
IMPLEMENT_CONSTASCII_USTRING(DEPRECATED_TAG_LAYER, OOR_ROOTTAG_PREFIX_"node");
IMPLEMENT_CONSTASCII_USTRING(TAG_COMPONENT, OOR_TAG_PREFIX_"component");
IMPLEMENT_CONSTASCII_USTRING(TAG_TEMPLATES, OOR_TAG_PREFIX_"templates");
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");
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");
IMPLEMENT_CONSTASCII_USTRING(TAG_USES, OOR_TAG_PREFIX_"uses");
// 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
IMPLEMENT_CONSTASCII_USTRING(OPERATION_MODIFY, "modify");
IMPLEMENT_CONSTASCII_USTRING(OPERATION_REPLACE, "replace");
IMPLEMENT_CONSTASCII_USTRING(OPERATION_FUSE, "fuse");
IMPLEMENT_CONSTASCII_USTRING(OPERATION_REMOVE, "remove");
// 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