docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / sw / qa / extras / ooxmlexport / ooxmlexport_template.cxx
blob81ce5e225ccccfa9b926bb8a52a15cc44e62819d
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(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
29 assertXPath(
30 pXmlDocCT, "/ContentType:Types/ContentType:Override[@PartName='/word/document.xml']",
31 "ContentType",
32 u"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml");
35 CPPUNIT_PLUGIN_IMPLEMENT();
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */