1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include <swmodeltestbase.hxx>
11 #include <o3tl/string_view.hxx>
13 class Test
: public SwModelTestBase
17 : SwModelTestBase(u
"/sw/qa/extras/ooxmlexport/data/"_ustr
,
18 u
"MS Word 2007 XML Template"_ustr
)
23 CPPUNIT_TEST_FIXTURE(Test
, testSaveAsDotX
)
25 loadAndReload("sample.dotx");
26 xmlDocUniquePtr pXmlDocCT
= parseExport(u
"[Content_Types].xml"_ustr
);
28 // Ensure that document has correct content type
30 pXmlDocCT
, "/ContentType:Types/ContentType:Override[@PartName='/word/document.xml']",
32 u
"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml");
35 CPPUNIT_PLUGIN_IMPLEMENT();
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */