Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef RPTXML_DBLOADER2_HXX
30 : : #define RPTXML_DBLOADER2_HXX
31 : :
32 : : #include <toolkit/helper/vclunohelper.hxx>
33 : : #include <toolkit/awt/vclxwindow.hxx>
34 : : #include <com/sun/star/task/XStatusIndicatorFactory.hpp>
35 : : #include <com/sun/star/task/XStatusIndicator.hpp>
36 : : #include <com/sun/star/frame/XController.hpp>
37 : : #include <com/sun/star/frame/XFrame.hpp>
38 : : #include <com/sun/star/frame/XFrameLoader.hpp>
39 : : #include <com/sun/star/document/XEventListener.hpp>
40 : : #include <com/sun/star/sdb/XDocumentDataSource.hpp>
41 : : #include <com/sun/star/frame/XLoadEventListener.hpp>
42 : : #include <com/sun/star/embed/XStorage.hpp>
43 : : #include <com/sun/star/embed/ElementModes.hpp>
44 : : #include <com/sun/star/lang/XServiceInfo.hpp>
45 : : #include <com/sun/star/beans/NamedValue.hpp>
46 : : #include <com/sun/star/beans/XPropertySet.hpp>
47 : : #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
48 : : #include <com/sun/star/io/XInputStream.hpp>
49 : : #include <com/sun/star/frame/XModel.hpp>
50 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
51 : : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
52 : : #include <com/sun/star/container/XSet.hpp>
53 : : #include <com/sun/star/document/XFilter.hpp>
54 : : #include <com/sun/star/util/XURLTransformer.hpp>
55 : : #include <com/sun/star/registry/XRegistryKey.hpp>
56 : : #include <com/sun/star/document/XExtendedFilterDetection.hpp>
57 : : #include <cppuhelper/implbase2.hxx>
58 : : #include <com/sun/star/lang/XInitialization.hpp>
59 : : #include <vcl/svapp.hxx>
60 : : #include <ucbhelper/content.hxx>
61 : : #include <ucbhelper/commandenvironment.hxx>
62 : : #include <comphelper/processfactory.hxx>
63 : : #include <comphelper/documentconstants.hxx>
64 : : #include <comphelper/types.hxx>
65 : : #include <comphelper/sequenceashashmap.hxx>
66 : : #include <osl/file.hxx>
67 : : #include <ucbhelper/contentbroker.hxx>
68 : : #include <sfx2/docfile.hxx>
69 : : #include <unotools/moduleoptions.hxx>
70 : : #include <comphelper/stl_types.hxx>
71 : : #include <comphelper/storagehelper.hxx>
72 : : #include <com/sun/star/task/XJobExecutor.hpp>
73 : : #include <vcl/msgbox.hxx>
74 : :
75 : : // -------------------------------------------------------------------------
76 : : namespace rptxml
77 : : {
78 : :
79 [ - + ]: 20 : class ORptTypeDetection : public ::cppu::WeakImplHelper2< ::com::sun::star::document::XExtendedFilterDetection, ::com::sun::star::lang::XServiceInfo>
80 : : {
81 : : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
82 : : public:
83 : : ORptTypeDetection(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
84 : :
85 : : // XServiceInfo
86 : : ::rtl::OUString SAL_CALL getImplementationName() throw( );
87 : : sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw( );
88 : : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( );
89 : :
90 : : // static methods
91 : 6 : static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException )
92 : : {
93 : 6 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.report.ORptTypeDetection"));
94 : : }
95 : : static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
96 : : static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
97 : : create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
98 : :
99 : : virtual ::rtl::OUString SAL_CALL detect( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Descriptor ) throw (::com::sun::star::uno::RuntimeException);
100 : : };
101 : : }
102 : : #endif
103 : :
104 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|