xref: /aoo41x/main/uui/source/mphndl.hxx (revision b16fc349)
1*b16fc349SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*b16fc349SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*b16fc349SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*b16fc349SAndrew Rist  * distributed with this work for additional information
6*b16fc349SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*b16fc349SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*b16fc349SAndrew Rist  * "License"); you may not use this file except in compliance
9*b16fc349SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*b16fc349SAndrew Rist  *
11*b16fc349SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*b16fc349SAndrew Rist  *
13*b16fc349SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*b16fc349SAndrew Rist  * software distributed under the License is distributed on an
15*b16fc349SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b16fc349SAndrew Rist  * KIND, either express or implied.  See the License for the
17*b16fc349SAndrew Rist  * specific language governing permissions and limitations
18*b16fc349SAndrew Rist  * under the License.
19*b16fc349SAndrew Rist  *
20*b16fc349SAndrew Rist  *************************************************************/
21*b16fc349SAndrew Rist 
22*b16fc349SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef UUI_IAHNDL_HXX
25cdf0e10cSrcweir #define UUI_IAHNDL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
29cdf0e10cSrcweir #include <com/sun/star/lang/XTypeProvider.hpp>
30cdf0e10cSrcweir #include <com/sun/star/task/XInteractionHandler.hpp>
31cdf0e10cSrcweir #include <com/sun/star/task/XPasswordContainer.hpp>
32cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir //============================================================================
35cdf0e10cSrcweir class UUIInteractionHandler:
36cdf0e10cSrcweir 	public cppu::OWeakObject,
37cdf0e10cSrcweir 	public com::sun::star::lang::XServiceInfo,
38cdf0e10cSrcweir 	public com::sun::star::lang::XTypeProvider,
39cdf0e10cSrcweir 	public com::sun::star::task::XInteractionHandler
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::task::XPasswordContainer > mPContainer;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir public:
44cdf0e10cSrcweir 	static sal_Char const m_aImplementationName[];
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	UUIInteractionHandler( com::sun::star::uno::Reference<
47cdf0e10cSrcweir 				      com::sun::star::lang::XMultiServiceFactory > const & );
48cdf0e10cSrcweir 
49cdf0e10cSrcweir     virtual com::sun::star::uno::Any SAL_CALL
50cdf0e10cSrcweir 	queryInterface(com::sun::star::uno::Type const & rType)
51cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
52cdf0e10cSrcweir 
53cdf0e10cSrcweir     virtual void SAL_CALL acquire()
54cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     virtual void SAL_CALL release()
57cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     virtual rtl::OUString SAL_CALL getImplementationName()
60cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService(rtl::OUString const &
63cdf0e10cSrcweir 											      rServiceName)
64cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
65cdf0e10cSrcweir 
66cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
67cdf0e10cSrcweir 	getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
68cdf0e10cSrcweir 
69cdf0e10cSrcweir     virtual
70cdf0e10cSrcweir 	com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL
71cdf0e10cSrcweir 	getTypes() throw (com::sun::star::uno::RuntimeException);
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
74cdf0e10cSrcweir 	getImplementationId() throw (com::sun::star::uno::RuntimeException);
75cdf0e10cSrcweir 
76cdf0e10cSrcweir     virtual void SAL_CALL
77cdf0e10cSrcweir 	handle(com::sun::star::uno::Reference<
78cdf0e10cSrcweir 		           com::sun::star::task::XInteractionRequest > const &
79cdf0e10cSrcweir 		       rRequest)
80cdf0e10cSrcweir 		throw (com::sun::star::uno::RuntimeException);
81cdf0e10cSrcweir 
82cdf0e10cSrcweir 	static com::sun::star::uno::Sequence< rtl::OUString >
83cdf0e10cSrcweir 	getSupportedServiceNames_static();
84cdf0e10cSrcweir 
85cdf0e10cSrcweir 	static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
86cdf0e10cSrcweir 	SAL_CALL
87cdf0e10cSrcweir 	createInstance(com::sun::star::uno::Reference<
88cdf0e10cSrcweir 				       com::sun::star::lang::XMultiServiceFactory > const &);
89cdf0e10cSrcweir };
90cdf0e10cSrcweir 
91cdf0e10cSrcweir #endif // UUI_IAHNDL_HXX
92cdf0e10cSrcweir 
93