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 WpftCalcFilterTest
: public writerperfect::test::WpftFilterTestBase
21 CPPUNIT_TEST_SUITE(WpftCalcFilterTest
);
23 CPPUNIT_TEST_SUITE_END();
26 WpftCalcFilterTest::WpftCalcFilterTest()
27 : writerperfect::test::WpftFilterTestBase("private:factory/scalc")
31 void WpftCalcFilterTest::test()
33 const writerperfect::test::WpftOptionalMap_t aEtonyekOptional
{
34 { "Numbers_2.numbers", REQUIRE_ETONYEK_VERSION(0, 1, 2) },
36 const writerperfect::test::WpftOptionalMap_t aMWAWOptional
{
37 { "Multiplan_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 14) },
39 const writerperfect::test::WpftOptionalMap_t aWpsOptional
{
40 { "Lotus123_3.123", REQUIRE_WPS_VERSION(0, 4, 5) },
41 { "Lotus123_98.123", REQUIRE_WPS_VERSION(0, 4, 6) },
42 { "Multiplan_3", REQUIRE_WPS_VERSION(0, 4, 9) },
43 { "QuattroPro.wb1", REQUIRE_WPS_VERSION(0, 4, 8) },
46 doTest("com.sun.star.comp.Calc.MWAWCalcImportFilter",
47 "/writerperfect/qa/unit/data/calc/libmwaw/", aMWAWOptional
);
48 doTest("com.sun.star.comp.Calc.MSWorksCalcImportFilter",
49 "/writerperfect/qa/unit/data/calc/libwps/", aWpsOptional
);
50 doTest("org.libreoffice.comp.Calc.NumbersImportFilter",
51 "/writerperfect/qa/unit/data/calc/libetonyek/", aEtonyekOptional
);
52 doTest("org.libreoffice.comp.Calc.StarOfficeCalcImportFilter",
53 "/writerperfect/qa/unit/data/calc/libstaroffice/");
56 CPPUNIT_TEST_SUITE_REGISTRATION(WpftCalcFilterTest
);
59 CPPUNIT_PLUGIN_IMPLEMENT();
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */