Bump version to 6.4-15
[LibreOffice.git] / writerperfect / qa / unit / WpftLoader.hxx
blobccd8f9294175906207b6db6e4b1f1d4e3289db4d
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 #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>
20 namespace com
22 namespace sun
24 namespace star
26 namespace beans
28 struct PropertyValue;
30 namespace container
32 class XNameAccess;
34 namespace document
36 class XFilter;
38 namespace frame
40 class XDesktop2;
41 class XFrame;
43 namespace io
45 class XInputStream;
47 namespace lang
49 class XComponent;
51 namespace uno
53 class XComponentContext;
59 namespace writerperfect
61 namespace test
63 class WPFTQAHELPER_DLLPUBLIC WpftLoader
65 public:
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);
76 ~WpftLoader();
78 const css::uno::Reference<css::lang::XComponent>& getDocument() const;
80 private:
81 bool impl_load();
82 void impl_dispose();
84 void impl_detectFilterName(css::uno::Sequence<css::beans::PropertyValue>& rDescriptor,
85 const OUString& rTypeName);
87 private:
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: */