tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / writerperfect / qa / unit / WpftCalcFilterTest.cxx
blobd776ca2ed48d3fd770dc43638ede01045c2be0b9
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 "WpftFilterTestBase.hxx"
12 namespace
14 class WpftCalcFilterTest : public writerperfect::test::WpftFilterTestBase
16 public:
17 WpftCalcFilterTest();
19 void test();
21 CPPUNIT_TEST_SUITE(WpftCalcFilterTest);
22 CPPUNIT_TEST(test);
23 CPPUNIT_TEST_SUITE_END();
26 WpftCalcFilterTest::WpftCalcFilterTest()
27 : writerperfect::test::WpftFilterTestBase(u"private:factory/scalc"_ustr)
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 { "JazzLotus.hqx", REQUIRE_MWAW_VERSION(0, 3, 17) },
38 { "Multiplan_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 14) },
40 const writerperfect::test::WpftOptionalMap_t aWpsOptional{
41 { "Lotus123_3.123", REQUIRE_WPS_VERSION(0, 4, 5) },
42 { "Lotus123_98.123", REQUIRE_WPS_VERSION(0, 4, 6) },
43 { "Multiplan_3", REQUIRE_WPS_VERSION(0, 4, 9) },
44 { "QuattroPro.wb1", REQUIRE_WPS_VERSION(0, 4, 8) },
47 doTest(u"com.sun.star.comp.Calc.MWAWCalcImportFilter"_ustr,
48 u"/writerperfect/qa/unit/data/calc/libmwaw/", aMWAWOptional);
49 doTest(u"com.sun.star.comp.Calc.MSWorksCalcImportFilter"_ustr,
50 u"/writerperfect/qa/unit/data/calc/libwps/", aWpsOptional);
51 doTest(u"org.libreoffice.comp.Calc.NumbersImportFilter"_ustr,
52 u"/writerperfect/qa/unit/data/calc/libetonyek/", aEtonyekOptional);
53 doTest(u"org.libreoffice.comp.Calc.StarOfficeCalcImportFilter"_ustr,
54 u"/writerperfect/qa/unit/data/calc/libstaroffice/");
57 CPPUNIT_TEST_SUITE_REGISTRATION(WpftCalcFilterTest);
60 CPPUNIT_PLUGIN_IMPLEMENT();
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */