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_WPFTIMPORTTESTBASE_HXX
11 #define INCLUDED_WRITERPERFECT_QA_UNIT_WPFTIMPORTTESTBASE_HXX
13 #include <com/sun/star/uno/Reference.hxx>
14 #include <com/sun/star/uno/Sequence.hxx>
16 #include <rtl/ustring.hxx>
18 #include <test/bootstrapfixture.hxx>
20 #include <unotest/filters-test.hxx>
46 class XSimpleFileAccess
;
52 namespace writerperfect
57 class WpftImportTestBase
58 : public ::test::FiltersTest
59 , public ::test::BootstrapFixture
62 explicit WpftImportTestBase(const rtl::OUString
&rFactoryURL
);
64 virtual void setUp() SAL_OVERRIDE
;
65 virtual void tearDown() SAL_OVERRIDE
;
68 void doTest(const rtl::OUString
&rFilter
, const rtl::OUString
&rPath
);
71 virtual bool load(const OUString
&, const OUString
&rURL
, const OUString
&,
72 SfxFilterFlags
, SotClipboardFormatId
, unsigned int) SAL_OVERRIDE
;
74 void impl_detectFilterName(com::sun::star::uno::Sequence
<com::sun::star::beans::PropertyValue
> &rDescriptor
, const rtl::OUString
&rTypeName
);
77 const rtl::OUString m_aFactoryURL
;
78 com::sun::star::uno::Reference
<com::sun::star::frame::XDesktop2
> m_xDesktop
;
79 com::sun::star::uno::Reference
<com::sun::star::ucb::XSimpleFileAccess
> m_xFileAccess
;
80 com::sun::star::uno::Reference
<com::sun::star::document::XFilter
> m_xFilter
;
81 com::sun::star::uno::Reference
<com::sun::star::container::XNameAccess
> m_xTypeMap
;
87 #endif // INCLUDED_WRITERPERFECT_QA_UNIT_WPFTIMPORTTESTBASE_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */