Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / qa / unit / cui-dialogs-test_3.cxx
blobd13c756785e05b59b047183ba4fc788b008a044e
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 <sal/config.h>
11 #include <test/screenshot_test.hxx>
12 #include <rtl/strbuf.hxx>
13 #include <osl/file.hxx>
14 #include <sfx2/app.hxx>
15 #include <vcl/abstdlg.hxx>
17 using namespace ::com::sun::star;
19 /// Test opening a dialog in cui
20 class CuiDialogsTest3 : public ScreenshotTest
22 private:
23 /// helper method to populate KnownDialogs, called in setUp(). Needs to be
24 /// written and has to add entries to KnownDialogs
25 virtual void registerKnownDialogsByID(mapType& rKnownDialogs) override;
27 /// dialog creation for known dialogs by ID. Has to be implemented for
28 /// each registered known dialog
29 virtual VclPtr<VclAbstractDialog> createDialogByID(sal_uInt32 nID) override;
31 public:
32 CuiDialogsTest3();
34 // try to open a dialog
35 void openAnyDialog();
37 CPPUNIT_TEST_SUITE(CuiDialogsTest3);
38 CPPUNIT_TEST(openAnyDialog);
39 CPPUNIT_TEST_SUITE_END();
42 CuiDialogsTest3::CuiDialogsTest3()
46 void CuiDialogsTest3::registerKnownDialogsByID(mapType& /*rKnownDialogs*/)
48 // leave empty should be in CuiDialogTest if any
51 VclPtr<VclAbstractDialog> CuiDialogsTest3::createDialogByID(sal_uInt32 /*nID*/)
53 return nullptr;
56 void CuiDialogsTest3::openAnyDialog()
58 /// process input file containing the UXMLDescriptions of the dialogs to dump
59 processDialogBatchFile("cui/qa/unit/data/cui-dialogs-test_3.txt");
62 CPPUNIT_TEST_SUITE_REGISTRATION(CuiDialogsTest3);
64 CPPUNIT_PLUGIN_IMPLEMENT();
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */