Warning, file /office/calligra/libs/store/KoXmlNS.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 Copyright (C) 2004 David Faure <faure@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This library is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 Library General Public License for more details. 0013 0014 You should have received a copy of the GNU Library General Public License 0015 along with this library; see the file COPYING.LIB. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #include "KoXmlNS.h" 0021 0022 #include <string.h> 0023 0024 const QString KoXmlNS::office("urn:oasis:names:tc:opendocument:xmlns:office:1.0"); 0025 const QString KoXmlNS::meta("urn:oasis:names:tc:opendocument:xmlns:meta:1.0"); 0026 const QString KoXmlNS::config("urn:oasis:names:tc:opendocument:xmlns:config:1.0"); 0027 const QString KoXmlNS::text("urn:oasis:names:tc:opendocument:xmlns:text:1.0"); 0028 const QString KoXmlNS::table("urn:oasis:names:tc:opendocument:xmlns:table:1.0"); 0029 const QString KoXmlNS::draw("urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"); 0030 const QString KoXmlNS::presentation("urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"); 0031 const QString KoXmlNS::dr3d("urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"); 0032 const QString KoXmlNS::chart("urn:oasis:names:tc:opendocument:xmlns:chart:1.0"); 0033 const QString KoXmlNS::form("urn:oasis:names:tc:opendocument:xmlns:form:1.0"); 0034 const QString KoXmlNS::script("urn:oasis:names:tc:opendocument:xmlns:script:1.0"); 0035 const QString KoXmlNS::style("urn:oasis:names:tc:opendocument:xmlns:style:1.0"); 0036 const QString KoXmlNS::number("urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"); 0037 const QString KoXmlNS::manifest("urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"); 0038 const QString KoXmlNS::anim("urn:oasis:names:tc:opendocument:xmlns:animation:1.0"); 0039 0040 const QString KoXmlNS::math("http://www.w3.org/1998/Math/MathML"); 0041 const QString KoXmlNS::svg("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"); 0042 const QString KoXmlNS::fo("urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"); 0043 const QString KoXmlNS::dc("http://purl.org/dc/elements/1.1/"); 0044 const QString KoXmlNS::xlink("http://www.w3.org/1999/xlink"); 0045 const QString KoXmlNS::VL("http://openoffice.org/2001/versions-list"); 0046 const QString KoXmlNS::smil("urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"); 0047 const QString KoXmlNS::xhtml("http://www.w3.org/1999/xhtml"); 0048 const QString KoXmlNS::xml("http://www.w3.org/XML/1998/namespace"); 0049 0050 const QString KoXmlNS::calligra = "http://www.calligra.org/2005/"; 0051 const QString KoXmlNS::officeooo = "http://openoffice.org/2009/office"; 0052 const QString KoXmlNS::ooo = "http://openoffice.org/2004/office"; 0053 0054 const QString KoXmlNS::delta("http://www.deltaxml.com/ns/track-changes/delta-namespace"); 0055 const QString KoXmlNS::split("http://www.deltaxml.com/ns/track-changes/split-namespace"); 0056 const QString KoXmlNS::ac("http://www.deltaxml.com/ns/track-changes/attribute-change-namespace"); 0057 0058 const char* KoXmlNS::nsURI2NS(const QString &nsURI) 0059 { 0060 if (nsURI == KoXmlNS::office) 0061 return "office"; 0062 else if (nsURI == KoXmlNS::meta) 0063 return "meta"; 0064 else if (nsURI == KoXmlNS::config) 0065 return "config"; 0066 else if (nsURI == KoXmlNS::text) 0067 return "text"; 0068 else if (nsURI == KoXmlNS::table) 0069 return "table"; 0070 else if (nsURI == KoXmlNS::draw) 0071 return "draw"; 0072 else if (nsURI == KoXmlNS::presentation) 0073 return "presentation"; 0074 else if (nsURI == KoXmlNS::dr3d) 0075 return "dr3d"; 0076 else if (nsURI == KoXmlNS::chart) 0077 return "chart"; 0078 else if (nsURI == KoXmlNS::form) 0079 return "form"; 0080 else if (nsURI == KoXmlNS::script) 0081 return "script"; 0082 else if (nsURI == KoXmlNS::style) 0083 return "style"; 0084 else if (nsURI == KoXmlNS::number) 0085 return "number"; 0086 else if (nsURI == KoXmlNS::manifest) 0087 return "manifest"; 0088 else if (nsURI == KoXmlNS::anim) 0089 return "anim"; 0090 else if (nsURI == KoXmlNS::math) 0091 return "math"; 0092 else if (nsURI == KoXmlNS::svg) 0093 return "svg"; 0094 else if (nsURI == KoXmlNS::fo) 0095 return "fo"; 0096 else if (nsURI == KoXmlNS::dc) 0097 return "dc"; 0098 else if (nsURI == KoXmlNS::xlink) 0099 return "xlink"; 0100 else if (nsURI == KoXmlNS::VL) 0101 return "VL"; 0102 else if (nsURI == KoXmlNS::smil) 0103 return "smil"; 0104 else if (nsURI == KoXmlNS::xhtml) 0105 return "xhtml"; 0106 else if (nsURI == KoXmlNS::calligra) 0107 return "calligra"; 0108 else if (nsURI == KoXmlNS::officeooo) 0109 return "officeooo"; 0110 else if (nsURI == KoXmlNS::xml) 0111 return "xml"; 0112 0113 // Shouldn't happen. 0114 return ""; 0115 } 0116