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: interactionhandler.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_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
>
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
>
55 com::sun::star::uno::Reference
<
56 com::sun::star::lang::XMultiServiceFactory
> const &
58 SAL_THROW((com::sun::star::uno::Exception
));
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
)
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 &
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
);
88 com::sun::star::uno::Sequence
< com::sun::star::uno::Any
> const &
90 throw (com::sun::star::uno::Exception
);
93 handle(com::sun::star::uno::Reference
<
94 com::sun::star::task::XInteractionRequest
> const &
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