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 "WpftFilterTestBase.hxx"
14 class WpftImpressFilterTest
: public writerperfect::test::WpftFilterTestBase
17 WpftImpressFilterTest();
21 CPPUNIT_TEST_SUITE(WpftImpressFilterTest
);
23 CPPUNIT_TEST_SUITE_END();
26 WpftImpressFilterTest::WpftImpressFilterTest()
27 : writerperfect::test::WpftFilterTestBase("private:factory/simpress")
31 void WpftImpressFilterTest::test()
33 const writerperfect::test::WpftOptionalMap_t aEtonyekOptional
{
34 { "Keynote_1.key", REQUIRE_ETONYEK_VERSION(0, 1, 8) },
35 { "Keynote_2.key", REQUIRE_ETONYEK_VERSION(0, 1, 1) },
36 { "Keynote_3.key", REQUIRE_ETONYEK_VERSION(0, 1, 1) },
37 { "Keynote_6.key", REQUIRE_ETONYEK_VERSION(0, 1, 4) },
39 const writerperfect::test::WpftOptionalMap_t aMWAWOptional
{
40 { "ClarisWorks_6.0.cwk", REQUIRE_MWAW_VERSION(0, 3, 3) },
41 { "PowerPoint_Mac_1", REQUIRE_MWAW_VERSION(0, 3, 9) },
42 { "PowerPoint_Mac_2", REQUIRE_MWAW_VERSION(0, 3, 9) },
43 { "PowerPoint_Mac_3", REQUIRE_MWAW_VERSION(0, 3, 9) },
44 { "PowerPoint_Mac_4.ppt", REQUIRE_MWAW_VERSION(0, 3, 10) },
45 { "PowerPoint_2.ppt", REQUIRE_MWAW_VERSION(0, 3, 10) },
46 { "PowerPoint_3.ppt", REQUIRE_MWAW_VERSION(0, 3, 9) },
47 { "PowerPoint_4.ppt", REQUIRE_MWAW_VERSION(0, 3, 10) },
48 { "PowerPoint_7.ppt", REQUIRE_MWAW_VERSION(0, 3, 11) },
51 doTest("org.libreoffice.comp.Impress.KeynoteImportFilter",
52 "/writerperfect/qa/unit/data/impress/libetonyek/", aEtonyekOptional
);
53 doTest("com.sun.star.comp.Impress.MWAWPresentationImportFilter",
54 "/writerperfect/qa/unit/data/impress/libmwaw/", aMWAWOptional
);
57 CPPUNIT_TEST_SUITE_REGISTRATION(WpftImpressFilterTest
);
60 CPPUNIT_PLUGIN_IMPLEMENT();
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */