diff options
Diffstat (limited to 'sd/qa/unit/export-tests-ooxml2.cxx')
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index abf469788695..e901b62c70a7 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -345,36 +345,8 @@ public: virtual void registerNamespaces(xmlXPathContextPtr& pXmlXPathCtx) override { - static const struct { char const * pPrefix; char const * pURI; } namespaces[] = - { - // OOXML - { "ContentType", "http://schemas.openxmlformats.org/package/2006/content-types" }, - { "rels", "http://schemas.openxmlformats.org/package/2006/relationships" }, - { "mc", "http://schemas.openxmlformats.org/markup-compatibility/2006" }, - { "v", "urn:schemas-microsoft-com:vml" }, - { "a", "http://schemas.openxmlformats.org/drawingml/2006/main" }, - { "c", "http://schemas.openxmlformats.org/drawingml/2006/chart" }, - { "m", "http://schemas.openxmlformats.org/officeDocument/2006/math" }, - { "pic", "http://schemas.openxmlformats.org/drawingml/2006/picture" }, - { "wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" }, - { "p", "http://schemas.openxmlformats.org/presentationml/2006/main" }, - { "p14", "http://schemas.microsoft.com/office/powerpoint/2010/main" }, - { "r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships" }, - { "w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, - { "a14", "http://schemas.microsoft.com/office/drawing/2010/main" }, - { "wps", "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }, - { "wpg", "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" }, - { "dgm", "http://schemas.openxmlformats.org/drawingml/2006/diagram" }, - // ODF - { "office", "urn:oasis:names:tc:opendocument:xmlns:office:1.0" }, - { "draw", "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" }, - }; - for (size_t i = 0; i < SAL_N_ELEMENTS(namespaces); ++i) - { - xmlXPathRegisterNs(pXmlXPathCtx, - reinterpret_cast<xmlChar const *>(namespaces[i].pPrefix), - reinterpret_cast<xmlChar const *>(namespaces[i].pURI)); - } + XmlTestTools::registerODFNamespaces(pXmlXPathCtx); + XmlTestTools::registerOOXMLNamespaces(pXmlXPathCtx); } }; |