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_WPFTLOADER_HXX
11 #define INCLUDED_WRITERPERFECT_QA_UNIT_WPFTLOADER_HXX
13 #include "wpftqahelperdllapi.h"
15 #include <com/sun/star/uno/Reference.hxx>
16 #include <com/sun/star/uno/Sequence.hxx>
18 #include <rtl/ustring.hxx>
53 class XComponentContext
;
59 namespace writerperfect
63 class WPFTQAHELPER_DLLPUBLIC WpftLoader
66 WpftLoader(const OUString
& rURL
, const css::uno::Reference
<css::document::XFilter
>& rxFilter
,
67 const OUString
& rFactoryURL
,
68 const css::uno::Reference
<css::frame::XDesktop2
>& rxDesktop
,
69 const css::uno::Reference
<css::container::XNameAccess
>& rxTypeMap
,
70 const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
71 WpftLoader(const css::uno::Reference
<css::io::XInputStream
>& rxInputStream
,
72 const css::uno::Reference
<css::document::XFilter
>& rxFilter
,
73 const OUString
& rFactoryURL
,
74 const css::uno::Reference
<css::frame::XDesktop2
>& rxDesktop
,
75 const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
78 const css::uno::Reference
<css::lang::XComponent
>& getDocument() const;
84 void impl_detectFilterName(css::uno::Sequence
<css::beans::PropertyValue
>& rDescriptor
,
85 const OUString
& rTypeName
);
88 const OUString m_aURL
;
89 const css::uno::Reference
<css::io::XInputStream
> m_xInputStream
;
90 const OUString m_aFactoryURL
;
91 const css::uno::Reference
<css::document::XFilter
> m_xFilter
;
92 const css::uno::Reference
<css::frame::XDesktop2
> m_xDesktop
;
93 const css::uno::Reference
<css::container::XNameAccess
> m_xTypeMap
;
94 const css::uno::Reference
<css::uno::XComponentContext
> m_xContext
;
95 css::uno::Reference
<css::lang::XComponent
> m_xDoc
;
96 css::uno::Reference
<css::frame::XFrame
> m_xFrame
;
101 #endif // INCLUDED_WRITERPERFECT_QA_UNIT_WPFTLOADER_HXX
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */