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 <sal/config.h>
11 #include <test/screenshot_test.hxx>
12 #include <vcl/abstdlg.hxx>
14 using namespace ::com::sun::star
;
16 /// Test opening a dialog in chart2
17 class Chart2DialogsTest
: public ScreenshotTest
20 /// helper method to populate KnownDialogs, called in setUp(). Needs to be
21 /// written and has to add entries to KnownDialogs
22 virtual void registerKnownDialogsByID(mapType
& rKnownDialogs
) override
;
24 /// dialog creation for known dialogs by ID. Has to be implemented for
25 /// each registered known dialog
26 virtual VclPtr
<VclAbstractDialog
> createDialogByID(sal_uInt32 nID
) override
;
31 // try to open a dialog
34 CPPUNIT_TEST_SUITE(Chart2DialogsTest
);
35 CPPUNIT_TEST(openAnyDialog
);
36 CPPUNIT_TEST_SUITE_END();
39 Chart2DialogsTest::Chart2DialogsTest()
43 void Chart2DialogsTest::registerKnownDialogsByID(mapType
& /*rKnownDialogs*/)
45 // fill map of known dialogs
48 VclPtr
<VclAbstractDialog
> Chart2DialogsTest::createDialogByID(sal_uInt32
/*nID*/)
53 void Chart2DialogsTest::openAnyDialog()
55 /// process input file containing the UXMLDescriptions of the dialogs to dump
56 processDialogBatchFile("chart2/qa/unit/data/chart2-dialogs-test.txt");
59 CPPUNIT_TEST_SUITE_REGISTRATION(Chart2DialogsTest
);
61 CPPUNIT_PLUGIN_IMPLEMENT();
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */