Resolves: tdf#149277 we don't want to search the whole tree for dups
[LibreOffice.git] / writerperfect / qa / unit / WpftFilterFixture.cxx
blob142ff22c36be83f59bc61b2d55fd281cb7c79893
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 "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 = com::sun::star::document;
17 namespace frame = com::sun::star::frame;
18 namespace uno = com::sun::star::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(
29 m_xFactory->createInstanceWithContext("com.sun.star.document.TypeDetection", 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: */