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 WpftDrawFilterTest
: public writerperfect::test::WpftFilterTestBase
21 CPPUNIT_TEST_SUITE(WpftDrawFilterTest
);
23 CPPUNIT_TEST_SUITE_END();
26 WpftDrawFilterTest::WpftDrawFilterTest()
27 : writerperfect::test::WpftFilterTestBase("private:factory/sdraw")
31 void WpftDrawFilterTest::test()
33 const writerperfect::test::WpftOptionalMap_t aMWAWOptional
{
34 { "ClarisDraw.hqx", REQUIRE_MWAW_VERSION(0, 3, 5) },
35 { "CorelPainter_3_win.rif", REQUIRE_MWAW_VERSION(0, 3, 15) },
36 { "CorelPainter_10", REQUIRE_MWAW_VERSION(0, 3, 15) },
37 { "CricketDraw_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
38 { "CricketDraw_1.1.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
39 { "FreeHand_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
40 { "FreeHand_2.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
41 { "MacDraft_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 5) },
42 { "MacDraft_5.5.drw", REQUIRE_MWAW_VERSION(0, 3, 6) },
43 { "MacDraw_0.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
44 { "MacDraw_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
45 { "MacDraw_II.hqx", REQUIRE_MWAW_VERSION(0, 3, 3) },
46 { "MacDraw_Pro_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 4) },
48 const writerperfect::test::WpftOptionalMap_t aStarOfficeOptional
{
49 { "Draw_3.1.sda", REQUIRE_STAROFFICE_VERSION(0, 0, 1) },
52 doTest("com.sun.star.comp.Draw.CDRImportFilter", "/writerperfect/qa/unit/data/draw/libcdr/");
53 doTest("com.sun.star.comp.Draw.CMXImportFilter",
54 "/writerperfect/qa/unit/data/draw/libcdr-cmx/");
55 doTest("com.sun.star.comp.Draw.FreehandImportFilter",
56 "/writerperfect/qa/unit/data/draw/libfreehand/");
57 doTest("com.sun.star.comp.Draw.MSPUBImportFilter",
58 "/writerperfect/qa/unit/data/draw/libmspub/");
59 doTest("com.sun.star.comp.Draw.MWAWDrawImportFilter",
60 "/writerperfect/qa/unit/data/draw/libmwaw/", aMWAWOptional
);
61 doTest("com.sun.star.comp.Draw.VisioImportFilter",
62 "/writerperfect/qa/unit/data/draw/libvisio/");
63 doTest("com.sun.star.comp.Draw.WPGImportFilter", "/writerperfect/qa/unit/data/draw/libwpg/");
64 doTest("org.libreoffice.comp.Draw.PageMakerImportFilter",
65 "/writerperfect/qa/unit/data/draw/libpagemaker/");
66 doTest("org.libreoffice.comp.Draw.StarOfficeDrawImportFilter",
67 "/writerperfect/qa/unit/data/draw/libstaroffice/", aStarOfficeOptional
);
68 doTest("org.libreoffice.comp.Draw.ZMFImportFilter", "/writerperfect/qa/unit/data/draw/libzmf/");
71 CPPUNIT_TEST_SUITE_REGISTRATION(WpftDrawFilterTest
);
74 CPPUNIT_PLUGIN_IMPLEMENT();
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */