Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef RPTXML_DBLOADER2_HXX
21 : #define RPTXML_DBLOADER2_HXX
22 :
23 : #include <toolkit/helper/vclunohelper.hxx>
24 : #include <toolkit/awt/vclxwindow.hxx>
25 : #include <com/sun/star/task/XStatusIndicatorFactory.hpp>
26 : #include <com/sun/star/task/XStatusIndicator.hpp>
27 : #include <com/sun/star/frame/XController.hpp>
28 : #include <com/sun/star/frame/XFrame.hpp>
29 : #include <com/sun/star/frame/XFrameLoader.hpp>
30 : #include <com/sun/star/document/XEventListener.hpp>
31 : #include <com/sun/star/sdb/XDocumentDataSource.hpp>
32 : #include <com/sun/star/frame/XLoadEventListener.hpp>
33 : #include <com/sun/star/embed/XStorage.hpp>
34 : #include <com/sun/star/embed/ElementModes.hpp>
35 : #include <com/sun/star/lang/XServiceInfo.hpp>
36 : #include <com/sun/star/beans/NamedValue.hpp>
37 : #include <com/sun/star/beans/XPropertySet.hpp>
38 : #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
39 : #include <com/sun/star/io/XInputStream.hpp>
40 : #include <com/sun/star/frame/XModel.hpp>
41 : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
42 : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
43 : #include <com/sun/star/container/XSet.hpp>
44 : #include <com/sun/star/document/XFilter.hpp>
45 : #include <com/sun/star/util/XURLTransformer.hpp>
46 : #include <com/sun/star/registry/XRegistryKey.hpp>
47 : #include <com/sun/star/document/XExtendedFilterDetection.hpp>
48 : #include <cppuhelper/implbase2.hxx>
49 : #include <com/sun/star/lang/XInitialization.hpp>
50 : #include <vcl/svapp.hxx>
51 : #include <ucbhelper/content.hxx>
52 : #include <ucbhelper/commandenvironment.hxx>
53 : #include <comphelper/processfactory.hxx>
54 : #include <comphelper/documentconstants.hxx>
55 : #include <comphelper/types.hxx>
56 : #include <comphelper/sequenceashashmap.hxx>
57 : #include <osl/file.hxx>
58 : #include <sfx2/docfile.hxx>
59 : #include <unotools/moduleoptions.hxx>
60 : #include <comphelper/stl_types.hxx>
61 : #include <comphelper/storagehelper.hxx>
62 : #include <com/sun/star/task/XJobExecutor.hpp>
63 : #include <vcl/msgbox.hxx>
64 :
65 : // -------------------------------------------------------------------------
66 : namespace rptxml
67 : {
68 :
69 0 : class ORptTypeDetection : public ::cppu::WeakImplHelper2< ::com::sun::star::document::XExtendedFilterDetection, ::com::sun::star::lang::XServiceInfo>
70 : {
71 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
72 : public:
73 : ORptTypeDetection(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
74 :
75 : // XServiceInfo
76 : ::rtl::OUString SAL_CALL getImplementationName() throw( );
77 : sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( );
78 : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( );
79 :
80 : // static methods
81 0 : static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException )
82 : {
83 0 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.report.ORptTypeDetection"));
84 : }
85 : static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
86 : static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
87 : create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
88 :
89 : virtual ::rtl::OUString SAL_CALL detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Descriptor ) throw (::com::sun::star::uno::RuntimeException);
90 : };
91 : }
92 : #endif
93 :
94 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|