Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_UTIL_XCANCELLABLE_HPP
2 : #define INCLUDED_COM_SUN_STAR_UTIL_XCANCELLABLE_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/util/XCancellable.hdl"
7 :
8 : #include "com/sun/star/uno/RuntimeException.hpp"
9 : #include "com/sun/star/uno/XInterface.hpp"
10 : #include "com/sun/star/uno/Reference.hxx"
11 : #include "com/sun/star/uno/Type.hxx"
12 : #include "cppu/unotype.hxx"
13 : #include "osl/mutex.hxx"
14 : #include "rtl/instance.hxx"
15 :
16 : namespace com { namespace sun { namespace star { namespace util {
17 :
18 212 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::util::XCancellable const *) {
19 : static typelib_TypeDescriptionReference * the_type = 0;
20 212 : if ( !the_type )
21 : {
22 27 : typelib_static_type_init( &the_type, typelib_TypeClass_INTERFACE, "com.sun.star.util.XCancellable" );
23 : }
24 212 : return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
25 : }
26 :
27 : } } } }
28 :
29 212 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::util::XCancellable > const *) SAL_THROW(()) {
30 212 : return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::util::XCancellable > >::get();
31 : }
32 :
33 212 : ::com::sun::star::uno::Type const & css::util::XCancellable::static_type(SAL_UNUSED_PARAMETER void *) {
34 212 : return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::util::XCancellable > * >(0));
35 : }
36 :
37 : #endif // INCLUDED_COM_SUN_STAR_UTIL_XCANCELLABLE_HPP
|