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 EXTENSIONS_ABP_UNODIALOG_HXX
30 : : #define EXTENSIONS_ABP_UNODIALOG_HXX
31 : :
32 : : #include <svtools/genericunodialog.hxx>
33 : : #include <comphelper/proparrhlp.hxx>
34 : : #include "componentmodule.hxx"
35 : : #include <com/sun/star/task/XJob.hpp>
36 : : #include <cppuhelper/implbase1.hxx>
37 : :
38 : : //.........................................................................
39 : : namespace abp
40 : : {
41 : : //.........................................................................
42 : :
43 : : //=====================================================================
44 : : //= OABSPilotUno
45 : : //=====================================================================
46 : : class OABSPilotUno;
47 : : typedef ::svt::OGenericUnoDialog OABSPilotUno_DBase;
48 : : typedef ::cppu::ImplHelper1< ::com::sun::star::task::XJob > OABSPilotUno_JBase;
49 : : typedef ::comphelper::OPropertyArrayUsageHelper< OABSPilotUno > OABSPilotUno_PBase;
50 : : /// the UNO wrapper for the address book source pilot
51 : 0 : class OABSPilotUno
52 : : :public OModuleResourceClient
53 : : ,public OABSPilotUno_DBase
54 : : ,public OABSPilotUno_JBase
55 : : ,public OABSPilotUno_PBase
56 : : {
57 : : ::rtl::OUString m_sDataSourceName;
58 : : OABSPilotUno(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
59 : :
60 : : public:
61 : : // XInterface (disambiguation)
62 : : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
63 : : virtual void SAL_CALL acquire( ) throw ();
64 : : virtual void SAL_CALL release( ) throw ();
65 : :
66 : : // XTypeProvider
67 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
68 : : virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
69 : :
70 : : // XServiceInfo
71 : : virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
72 : : virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
73 : :
74 : : // XServiceInfo - static methods
75 : : static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
76 : : static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException );
77 : : static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
78 : : SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&);
79 : :
80 : : // XPropertySet
81 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
82 : : virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
83 : :
84 : : // OPropertyArrayUsageHelper
85 : : virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
86 : :
87 : : // XJob
88 : : virtual ::com::sun::star::uno::Any SAL_CALL execute( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& lArgs ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
89 : :
90 : : using OABSPilotUno_DBase::execute;
91 : : protected:
92 : : // OGenericUnoDialog overridables
93 : : virtual Dialog* createDialog(Window* _pParent);
94 : : virtual void executedDialog(sal_Int16 _nExecutionResult);
95 : : };
96 : :
97 : : //.........................................................................
98 : : } // namespace abp
99 : : //.........................................................................
100 : :
101 : : #endif // EXTENSIONS_ABP_UNODIALOG_HXX
102 : :
103 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|