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 "WpftFilterFixture.hxx"
12 #include <com/sun/star/container/XNameAccess.hpp>
13 #include <com/sun/star/document/XTypeDetection.hpp>
14 #include <com/sun/star/frame/theDesktop.hpp>
16 namespace document
= css::document
;
17 namespace frame
= css::frame
;
18 namespace uno
= css::uno
;
20 namespace writerperfect::test
22 void WpftFilterFixture::setUp()
24 ::test::BootstrapFixture::setUp();
26 m_xDesktop
= frame::theDesktop::get(m_xContext
);
28 m_xTypeDetection
.set(m_xFactory
->createInstanceWithContext(
29 u
"com.sun.star.document.TypeDetection"_ustr
, m_xContext
),
30 uno::UNO_QUERY_THROW
);
31 m_xTypeMap
.set(m_xTypeDetection
, uno::UNO_QUERY_THROW
);
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */