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 #ifndef INCLUDED_WRITERPERFECT_QA_UNIT_WPFTFILTERFIXTURE_HXX
11 #define INCLUDED_WRITERPERFECT_QA_UNIT_WPFTFILTERFIXTURE_HXX
13 #include <config_writerperfect.h>
15 #include "wpftqahelperdllapi.h"
17 #include <com/sun/star/uno/Reference.hxx>
18 #include <com/sun/star/uno/Sequence.hxx>
20 #include <rtl/ustring.hxx>
22 #include <test/bootstrapfixture.hxx>
24 #define REQUIRE_VERSION(major, minor, micro, req_major, req_minor, req_micro) \
25 (major) > (req_major) \
26 || ((major) == (req_major) \
27 && ((minor) > (req_minor) || ((minor) == (req_minor) && ((micro) >= (req_micro)))))
29 #define REQUIRE_EBOOK_VERSION(major, minor, micro) \
30 REQUIRE_VERSION(EBOOK_VERSION_MAJOR, EBOOK_VERSION_MINOR, EBOOK_VERSION_MICRO, major, minor, \
33 #define REQUIRE_ETONYEK_VERSION(major, minor, micro) \
34 REQUIRE_VERSION(ETONYEK_VERSION_MAJOR, ETONYEK_VERSION_MINOR, ETONYEK_VERSION_MICRO, major, \
37 #define REQUIRE_MWAW_VERSION(major, minor, micro) \
38 REQUIRE_VERSION(MWAW_VERSION_MAJOR, MWAW_VERSION_MINOR, MWAW_VERSION_MICRO, major, minor, micro)
40 #define REQUIRE_STAROFFICE_VERSION(major, minor, micro) \
41 REQUIRE_VERSION(STAROFFICE_VERSION_MAJOR, STAROFFICE_VERSION_MINOR, STAROFFICE_VERSION_MICRO, \
44 #define REQUIRE_WPS_VERSION(major, minor, micro) \
45 REQUIRE_VERSION(WPS_VERSION_MAJOR, WPS_VERSION_MINOR, WPS_VERSION_MICRO, major, minor, micro)
69 namespace writerperfect
73 class WPFTQAHELPER_DLLPUBLIC WpftFilterFixture
: public ::test::BootstrapFixture
76 virtual void setUp() override
;
79 css::uno::Reference
<css::frame::XDesktop2
> m_xDesktop
;
80 css::uno::Reference
<css::document::XTypeDetection
> m_xTypeDetection
;
81 css::uno::Reference
<css::container::XNameAccess
> m_xTypeMap
;
86 #endif // INCLUDED_WRITERPERFECT_QA_UNIT_WPFTFILTERFIXTURE_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */