merge the formfield patch from ooo-build
[ooovba.git] / extensions / source / oooimprovement / invite_job.hxx
blob0fd9426a279ac38405cd9fe1a5b5c6b1f47ae79a
1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2008 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * $RCSfile: invite_job.hxx,v $
10 * $Revision: 1.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
28 ************************************************************************/
30 // MARKER(update_precomp.py): autogen include statement, do not remove
33 #ifndef EXTENSIONS_OOOIMPROVEMENT_INVITEJOB_HXX
34 #define EXTENSIONS_OOOIMPROVEMENT_INVITEJOB_HXX
36 #include <com/sun/star/task/XAsyncJob.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <com/sun/star/uno/XComponentContext.hpp>
39 #include <cppuhelper/implbase2.hxx>
42 namespace oooimprovement
44 #ifdef css
45 #error css defined globally
46 #endif
47 #define css ::com::sun::star
48 class InviteJob : public ::cppu::WeakImplHelper2<
49 css::task::XAsyncJob,
50 css::lang::XServiceInfo>
52 public:
53 // XServiceInfo - static version
54 static ::rtl::OUString SAL_CALL getImplementationName_static();
55 static css::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames_static();
56 //static css::uno::Reference< css::uno::XInterface> SAL_CALL Create(
57 // const css::uno::Reference< css::uno::XComponentContext>& context);
59 static css::uno::Reference< css::uno::XInterface> SAL_CALL Create(const css::uno::Reference< css::lang::XMultiServiceFactory>& sm);
61 protected:
62 InviteJob(const css::uno::Reference< css::uno::XComponentContext>& context);
63 InviteJob(const css::uno::Reference< css::lang::XMultiServiceFactory>& sf);
64 virtual ~InviteJob();
66 // XAsyncJob
67 virtual void SAL_CALL executeAsync(
68 const css::uno::Sequence< css::beans::NamedValue>& args,
69 const css::uno::Reference< css::task::XJobListener>& listener)
70 throw(css::uno::RuntimeException);
72 // XServiceInfo
73 virtual ::rtl::OUString SAL_CALL getImplementationName()
74 throw(css::uno::RuntimeException);
75 virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& service_name)
76 throw(css::uno::RuntimeException);
77 virtual css::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames()
78 throw(css::uno::RuntimeException);
80 private:
81 css::uno::Reference< css::lang::XMultiServiceFactory> m_ServiceFactory;
83 #undef css
85 #endif