diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-04-27 18:01:43 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-01-07 16:32:51 +0100 |
commit | ae901aa5d39a1aae733ab77795f4e1800027169c (patch) | |
tree | b43238c3e686878eb06dd56ce48cfbb5401bfc30 | |
parent | 76b5ea1db877654a52015ba9fe12fa76ae63c07f (diff) |
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@cib.de>
-rw-r--r-- | include/xmloff/xmlnmspe.hxx | 60 |
1 files changed, 33 insertions, 27 deletions
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: */ |