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 INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_DBLOADER2_HXX
21 : #define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_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/storagehelper.hxx>
61 : #include <vcl/msgbox.hxx>
62 :
63 :
64 : namespace rptxml
65 : {
66 :
67 0 : class ORptTypeDetection : public ::cppu::WeakImplHelper2< ::com::sun::star::document::XExtendedFilterDetection, ::com::sun::star::lang::XServiceInfo>
68 : {
69 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
70 : public:
71 : ORptTypeDetection(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
72 :
73 : // XServiceInfo
74 : OUString SAL_CALL getImplementationName() throw(std::exception ) SAL_OVERRIDE;
75 : sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(std::exception ) SAL_OVERRIDE;
76 : ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(std::exception ) SAL_OVERRIDE;
77 :
78 : // static methods
79 0 : static OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException )
80 : {
81 0 : return OUString("com.sun.star.comp.report.ORptTypeDetection");
82 : }
83 : static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
84 : static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
85 : create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
86 :
87 : virtual OUString SAL_CALL detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Descriptor ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
88 : };
89 : }
90 : #endif
91 :
92 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|