merge the formfield patch from ooo-build
[ooovba.git] / uui / source / interactionhandler.hxx
blobd420507b1077c34721464531383f24bc89eaf6b5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: interactionhandler.hxx,v $
10 * $Revision: 1.3 $
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.
29 ************************************************************************/
31 #ifndef UUI_INTERACTIONHANDLER_HXX
32 #define UUI_INTERACTIONHANDLER_HXX
34 #include "com/sun/star/lang/XInitialization.hpp"
35 #include "com/sun/star/lang/XServiceInfo.hpp"
36 #include "com/sun/star/task/XInteractionHandler2.hpp"
37 #include "cppuhelper/implbase3.hxx"
39 class UUIInteractionHelper;
41 class UUIInteractionHandler:
42 public cppu::WeakImplHelper3< com::sun::star::lang::XServiceInfo,
43 com::sun::star::lang::XInitialization,
44 com::sun::star::task::XInteractionHandler2 >
46 public:
47 static char const m_aImplementationName[];
49 static com::sun::star::uno::Sequence< rtl::OUString >
50 getSupportedServiceNames_static();
52 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
53 SAL_CALL
54 createInstance(
55 com::sun::star::uno::Reference<
56 com::sun::star::lang::XMultiServiceFactory > const &
57 rServiceFactory)
58 SAL_THROW((com::sun::star::uno::Exception));
60 private:
61 com::sun::star::uno::Reference<
62 com::sun::star::lang::XMultiServiceFactory > m_xServiceFactory;
63 UUIInteractionHelper * m_pImpl;
65 UUIInteractionHandler(UUIInteractionHandler &); // not implemented
66 void operator =(UUIInteractionHandler); // not implemented
68 UUIInteractionHandler(com::sun::star::uno::Reference<
69 com::sun::star::lang::XMultiServiceFactory >
70 const & rServiceFactory)
71 SAL_THROW(());
73 virtual ~UUIInteractionHandler() SAL_THROW(());
75 virtual rtl::OUString SAL_CALL getImplementationName()
76 throw (com::sun::star::uno::RuntimeException);
78 virtual sal_Bool SAL_CALL supportsService(rtl::OUString const &
79 rServiceName)
80 throw (com::sun::star::uno::RuntimeException);
82 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
83 getSupportedServiceNames()
84 throw (com::sun::star::uno::RuntimeException);
86 virtual void SAL_CALL
87 initialize(
88 com::sun::star::uno::Sequence< com::sun::star::uno::Any > const &
89 rArguments)
90 throw (com::sun::star::uno::Exception);
92 virtual void SAL_CALL
93 handle(com::sun::star::uno::Reference<
94 com::sun::star::task::XInteractionRequest > const &
95 rRequest)
96 throw (com::sun::star::uno::RuntimeException);
98 virtual ::sal_Bool SAL_CALL
99 handleInteractionRequest(
100 const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& _Request
101 ) throw ( ::com::sun::star::uno::RuntimeException );
104 #endif // UUI_INTERACTIONHANDLER_HXX