1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: mphndl.hxx,v $
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_IAHNDL_HXX
32 #define UUI_IAHNDL_HXX
34 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
35 #include <com/sun/star/lang/XServiceInfo.hpp>
36 #include <com/sun/star/lang/XTypeProvider.hpp>
37 #include <com/sun/star/task/XInteractionHandler.hpp>
38 #include <com/sun/star/task/XPasswordContainer.hpp>
39 #include <cppuhelper/weak.hxx>
41 //============================================================================
42 class UUIInteractionHandler
:
43 public cppu::OWeakObject
,
44 public com::sun::star::lang::XServiceInfo
,
45 public com::sun::star::lang::XTypeProvider
,
46 public com::sun::star::task::XInteractionHandler
48 ::com::sun::star::uno::Reference
< ::com::sun::star::task::XPasswordContainer
> mPContainer
;
51 static sal_Char
const m_aImplementationName
[];
53 UUIInteractionHandler( com::sun::star::uno::Reference
<
54 com::sun::star::lang::XMultiServiceFactory
> const & );
56 virtual com::sun::star::uno::Any SAL_CALL
57 queryInterface(com::sun::star::uno::Type
const & rType
)
58 throw (com::sun::star::uno::RuntimeException
);
60 virtual void SAL_CALL
acquire()
61 throw (com::sun::star::uno::RuntimeException
);
63 virtual void SAL_CALL
release()
64 throw (com::sun::star::uno::RuntimeException
);
66 virtual rtl::OUString SAL_CALL
getImplementationName()
67 throw (com::sun::star::uno::RuntimeException
);
69 virtual sal_Bool SAL_CALL
supportsService(rtl::OUString
const &
71 throw (com::sun::star::uno::RuntimeException
);
73 virtual com::sun::star::uno::Sequence
< rtl::OUString
> SAL_CALL
74 getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException
);
77 com::sun::star::uno::Sequence
< com::sun::star::uno::Type
> SAL_CALL
78 getTypes() throw (com::sun::star::uno::RuntimeException
);
80 virtual com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
81 getImplementationId() throw (com::sun::star::uno::RuntimeException
);
84 handle(com::sun::star::uno::Reference
<
85 com::sun::star::task::XInteractionRequest
> const &
87 throw (com::sun::star::uno::RuntimeException
);
89 static com::sun::star::uno::Sequence
< rtl::OUString
>
90 getSupportedServiceNames_static();
92 static com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
>
94 createInstance(com::sun::star::uno::Reference
<
95 com::sun::star::lang::XMultiServiceFactory
> const &);
98 #endif // UUI_IAHNDL_HXX