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/.
12 #include "wpftqahelperdllapi.h"
14 #include <com/sun/star/uno/Reference.hxx>
15 #include <com/sun/star/uno/Sequence.hxx>
17 #include <rtl/ustring.hxx>
52 class XComponentContext
;
58 namespace writerperfect
62 class WPFTQAHELPER_DLLPUBLIC WpftLoader
65 WpftLoader(const OUString
& rURL
, const css::uno::Reference
<css::document::XFilter
>& rxFilter
,
66 const OUString
& rFactoryURL
,
67 const css::uno::Reference
<css::frame::XDesktop2
>& rxDesktop
,
68 const css::uno::Reference
<css::container::XNameAccess
>& rxTypeMap
,
69 const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
70 WpftLoader(const css::uno::Reference
<css::io::XInputStream
>& rxInputStream
,
71 const css::uno::Reference
<css::document::XFilter
>& rxFilter
,
72 const OUString
& rFactoryURL
,
73 const css::uno::Reference
<css::frame::XDesktop2
>& rxDesktop
,
74 const css::uno::Reference
<css::uno::XComponentContext
>& rxContext
);
77 const css::uno::Reference
<css::lang::XComponent
>& getDocument() const;
83 void impl_detectFilterName(css::uno::Sequence
<css::beans::PropertyValue
>& rDescriptor
,
84 const OUString
& rTypeName
);
87 const OUString m_aURL
;
88 const css::uno::Reference
<css::io::XInputStream
> m_xInputStream
;
89 const OUString m_aFactoryURL
;
90 const css::uno::Reference
<css::document::XFilter
> m_xFilter
;
91 const css::uno::Reference
<css::frame::XDesktop2
> m_xDesktop
;
92 const css::uno::Reference
<css::container::XNameAccess
> m_xTypeMap
;
93 const css::uno::Reference
<css::uno::XComponentContext
> m_xContext
;
94 css::uno::Reference
<css::lang::XComponent
> m_xDoc
;
95 css::uno::Reference
<css::frame::XFrame
> m_xFrame
;
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */