[Libreoffice-commits] core.git: include/xmloff

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Thu May 7 17:17:49 UTC 2020


 include/xmloff/xmlnmspe.hxx |   60 ++++++++++++++++++++++++--------------------
 1 file changed, 33 insertions(+), 27 deletions(-)

New commits:
commit 36110559e9cd2b4f7c3dd173cb1cd60bb8d3df6f
Author:     Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Mon Apr 27 18:01:43 2020 +0200
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Thu May 7 19:17:10 2020 +0200

    xmloff: rearrange XML_NAMESPACE_* and add some comments
    
    Change-Id: I65165da851ce7b6ef779163b5ac5346ee46a1ebb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92987
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/include/xmloff/xmlnmspe.hxx b/include/xmloff/xmlnmspe.hxx
index 3c5e679ee5d8..d45832f02d81 100644
--- a/include/xmloff/xmlnmspe.hxx
+++ b/include/xmloff/xmlnmspe.hxx
@@ -25,6 +25,7 @@
 // current namespaces
 // These namespaces have the same index in the namespace table as prefix used.
 // If a namespace is added, XML_OLD_NAMESPACE_BASE has to be adjusted!
+// * standard ODF elements and attributes
 constexpr sal_uInt16 XML_NAMESPACE_OFFICE =           0;
 constexpr sal_uInt16 XML_NAMESPACE_STYLE =            1;
 constexpr sal_uInt16 XML_NAMESPACE_TEXT =             2;
@@ -42,29 +43,34 @@ constexpr sal_uInt16 XML_NAMESPACE_DR3D =            13;
 constexpr sal_uInt16 XML_NAMESPACE_MATH =            14;
 constexpr sal_uInt16 XML_NAMESPACE_FORM =            15;
 constexpr sal_uInt16 XML_NAMESPACE_SCRIPT =          16;
-constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST =       17;
-constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK =       18;
-constexpr sal_uInt16 XML_NAMESPACE_CONFIG =          19;
-constexpr sal_uInt16 XML_NAMESPACE_OOO =             20;
-constexpr sal_uInt16 XML_NAMESPACE_OOOW =            21;
-constexpr sal_uInt16 XML_NAMESPACE_OOOC =            22;
-constexpr sal_uInt16 XML_NAMESPACE_DOM =             23;
-constexpr sal_uInt16 XML_NAMESPACE_TCD =             24;   // text conversion dictionary
-constexpr sal_uInt16 XML_NAMESPACE_DB =              25;
-constexpr sal_uInt16 XML_NAMESPACE_DLG =             26;
-constexpr sal_uInt16 XML_NAMESPACE_XFORMS =          27;
-constexpr sal_uInt16 XML_NAMESPACE_XSD =             28;
-constexpr sal_uInt16 XML_NAMESPACE_XSI =             29;
-constexpr sal_uInt16 XML_NAMESPACE_SMIL =            30;
-constexpr sal_uInt16 XML_NAMESPACE_ANIMATION =       31;
-constexpr sal_uInt16 XML_NAMESPACE_XML =             32;
-constexpr sal_uInt16 XML_NAMESPACE_REPORT =          33;
-constexpr sal_uInt16 XML_NAMESPACE_OF =              34;   // OpenFormula aka ODFF
-constexpr sal_uInt16 XML_NAMESPACE_XHTML =           35;
-constexpr sal_uInt16 XML_NAMESPACE_GRDDL =           36;
+constexpr sal_uInt16 XML_NAMESPACE_CONFIG =          17;
+constexpr sal_uInt16 XML_NAMESPACE_DB =              18;
+constexpr sal_uInt16 XML_NAMESPACE_XFORMS =          19;
+constexpr sal_uInt16 XML_NAMESPACE_SMIL =            20;
+constexpr sal_uInt16 XML_NAMESPACE_ANIMATION =       21;
+constexpr sal_uInt16 XML_NAMESPACE_XML =             22;
+constexpr sal_uInt16 XML_NAMESPACE_XHTML =           23;
+constexpr sal_uInt16 XML_NAMESPACE_GRDDL =           24;
+// * formula attribute values (standard ODF)
+constexpr sal_uInt16 XML_NAMESPACE_OF =              25;   // OpenFormula aka ODFF
+// * event attribute values (standard W3C)
+constexpr sal_uInt16 XML_NAMESPACE_DOM =             26;
+// * XForms attribute values (standard W3C)
+constexpr sal_uInt16 XML_NAMESPACE_XSD =             27;
+constexpr sal_uInt16 XML_NAMESPACE_XSI =             28;
+// * following 3 namespaces are used for non-standard attribute values and non-ODF XML
+constexpr sal_uInt16 XML_NAMESPACE_OOO =             29; // lots of attributes, settings.xml, non-ODF XML
+constexpr sal_uInt16 XML_NAMESPACE_OOOW =            30; // formula attribute values
+constexpr sal_uInt16 XML_NAMESPACE_OOOC =            31; // formula attribute values
+// non-ODF XML namespaces
+constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST =       32;
+constexpr sal_uInt16 XML_NAMESPACE_FRAMEWORK =       33;
+constexpr sal_uInt16 XML_NAMESPACE_TCD =             34;   // text conversion dictionary
+constexpr sal_uInt16 XML_NAMESPACE_DLG =             35;
+constexpr sal_uInt16 XML_NAMESPACE_REPORT =          36;
 constexpr sal_uInt16 XML_NAMESPACE_VERSIONS_LIST =   37;
 
-// namespaces for odf extended formats
+// namespaces for ODF extended formats
 constexpr sal_uInt16 XML_NAMESPACE_EXT_BASE   = 50;
 constexpr sal_uInt16 XML_NAMESPACE_OFFICE_EXT = XML_NAMESPACE_EXT_BASE + 0;
 constexpr sal_uInt16 XML_NAMESPACE_TABLE_EXT  = XML_NAMESPACE_EXT_BASE + 1;
@@ -73,6 +79,12 @@ constexpr sal_uInt16 XML_NAMESPACE_DRAW_EXT   = XML_NAMESPACE_EXT_BASE + 3;
 constexpr sal_uInt16 XML_NAMESPACE_CALC_EXT   = XML_NAMESPACE_EXT_BASE + 4;
 constexpr sal_uInt16 XML_NAMESPACE_LO_EXT     = XML_NAMESPACE_EXT_BASE + 5;
 
+// experimental ODF extended namespaces
+constexpr sal_uInt16 XML_NAMESPACE_FIELD      = XML_NAMESPACE_EXT_BASE + 6;
+constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT   = XML_NAMESPACE_EXT_BASE + 7;  // CSS Text Level 3
+constexpr sal_uInt16 XML_NAMESPACE_FORMX      = XML_NAMESPACE_EXT_BASE + 8;  // form interop extensions
+
+
 // namespaces for OOo formats
 constexpr sal_uInt16 XML_NAMESPACE_OOO_BASE = 60;
 constexpr sal_uInt16 XML_NAMESPACE_OFFICE_OOO = XML_NAMESPACE_OOO_BASE +         0;
@@ -115,12 +127,6 @@ constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION_SO52 = XML_OLD_NAMESPACE_BASE +
 constexpr sal_uInt16 XML_NAMESPACE_CHART_SO52 = XML_OLD_NAMESPACE_BASE +         10;
 constexpr sal_uInt16 XML_NAMESPACE_SMIL_SO52 = XML_OLD_NAMESPACE_BASE +          11;
 
-// experimental namespaces
-constexpr sal_uInt16 XML_NAMESPACE_FIELD =           120;
-constexpr sal_uInt16 XML_NAMESPACE_CSS3TEXT =        123;  // CSS Text Level 3
-constexpr sal_uInt16 XML_NAMESPACE_FORMX =           121;  // form interop extensions
-
-
 #endif // INCLUDED_XMLOFF_XMLNMSPE_HXX
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list