Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / qa / extras / ooxmlexport / ooxmlexport_template.cxx
blobeab792461082f6f6917340e90c58a3b671de47c6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <swmodeltestbase.hxx>
11 #include <o3tl/string_view.hxx>
13 class Test : public SwModelTestBase
15 public:
16 Test()
17 : SwModelTestBase("/sw/qa/extras/ooxmlexport/data/", "MS Word 2007 XML Template")
22 CPPUNIT_TEST_FIXTURE(Test, testSaveAsDotX)
24 loadAndReload("sample.dotx");
25 xmlDocUniquePtr pXmlDocCT = parseExport("[Content_Types].xml");
27 // Ensure that document has correct content type
28 assertXPath(pXmlDocCT,
29 "/ContentType:Types/ContentType:Override[@PartName='/word/document.xml']",
30 "ContentType",
31 "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml");
34 CPPUNIT_PLUGIN_IMPLEMENT();
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */