tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / writerperfect / qa / unit / WpftDrawFilterTest.cxx
blob5fb00d6024f242e0e071caa57ebc5ca14b6b5a32
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 WpftDrawFilterTest : public writerperfect::test::WpftFilterTestBase
16 public:
17 WpftDrawFilterTest();
19 void test();
21 CPPUNIT_TEST_SUITE(WpftDrawFilterTest);
22 CPPUNIT_TEST(test);
23 CPPUNIT_TEST_SUITE_END();
26 WpftDrawFilterTest::WpftDrawFilterTest()
27 : writerperfect::test::WpftFilterTestBase(u"private:factory/sdraw"_ustr)
31 void WpftDrawFilterTest::test()
33 const writerperfect::test::WpftOptionalMap_t aMWAWOptional{
34 { "Canvas_2.hqx", REQUIRE_MWAW_VERSION(0, 3, 17) },
35 { "ClarisDraw.hqx", REQUIRE_MWAW_VERSION(0, 3, 5) },
36 { "CorelPainter_3_win.rif", REQUIRE_MWAW_VERSION(0, 3, 15) },
37 { "CorelPainter_10", REQUIRE_MWAW_VERSION(0, 3, 15) },
38 { "CricketDraw_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
39 { "CricketDraw_1.1.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
40 { "DrawingTable_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 17) },
41 { "FreeHand_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
42 { "FreeHand_2.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
43 { "MacDraft_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 5) },
44 { "MacDraft_5.5.drw", REQUIRE_MWAW_VERSION(0, 3, 6) },
45 { "MacDraw_0.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
46 { "MacDraw_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
47 { "MacDraw_II.hqx", REQUIRE_MWAW_VERSION(0, 3, 3) },
48 { "MacDraw_Pro_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 4) },
49 { "ReadySetGo_1", REQUIRE_MWAW_VERSION(0, 3, 21) },
50 { "Scoop_1", REQUIRE_MWAW_VERSION(0, 3, 21) },
52 const writerperfect::test::WpftOptionalMap_t aStarOfficeOptional{
53 { "Draw_3.1.sda", REQUIRE_STAROFFICE_VERSION(0, 0, 1) },
56 doTest(u"com.sun.star.comp.Draw.CDRImportFilter"_ustr,
57 u"/writerperfect/qa/unit/data/draw/libcdr/");
58 doTest(u"com.sun.star.comp.Draw.CMXImportFilter"_ustr,
59 u"/writerperfect/qa/unit/data/draw/libcdr-cmx/");
60 doTest(u"com.sun.star.comp.Draw.FreehandImportFilter"_ustr,
61 u"/writerperfect/qa/unit/data/draw/libfreehand/");
62 doTest(u"com.sun.star.comp.Draw.MSPUBImportFilter"_ustr,
63 u"/writerperfect/qa/unit/data/draw/libmspub/");
64 doTest(u"com.sun.star.comp.Draw.MWAWDrawImportFilter"_ustr,
65 u"/writerperfect/qa/unit/data/draw/libmwaw/", aMWAWOptional);
66 doTest(u"com.sun.star.comp.Draw.VisioImportFilter"_ustr,
67 u"/writerperfect/qa/unit/data/draw/libvisio/");
68 doTest(u"com.sun.star.comp.Draw.WPGImportFilter"_ustr,
69 u"/writerperfect/qa/unit/data/draw/libwpg/");
70 doTest(u"org.libreoffice.comp.Draw.PageMakerImportFilter"_ustr,
71 u"/writerperfect/qa/unit/data/draw/libpagemaker/");
72 doTest(u"org.libreoffice.comp.Draw.StarOfficeDrawImportFilter"_ustr,
73 u"/writerperfect/qa/unit/data/draw/libstaroffice/", aStarOfficeOptional);
74 doTest(u"org.libreoffice.comp.Draw.ZMFImportFilter"_ustr,
75 u"/writerperfect/qa/unit/data/draw/libzmf/");
78 CPPUNIT_TEST_SUITE_REGISTRATION(WpftDrawFilterTest);
81 CPPUNIT_PLUGIN_IMPLEMENT();
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */