UDK 3.2.7 C/C++ API Reference

cppuhelper/implbase_ex.hxx

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 #ifndef _CPPUHELPER_IMPLBASE_EX_HXX_
00020 #define _CPPUHELPER_IMPLBASE_EX_HXX_
00021 
00022 #include <cppuhelper/weak.hxx>
00023 #include <cppuhelper/weakagg.hxx>
00024 #include <com/sun/star/lang/XTypeProvider.hpp>
00025 
00026 // Despite the fact that the following include is not used in this header, it has to remain,
00027 // because it is expected by files including cppuhelper/implbaseN.hxx.
00028 // So maybe we can omit it some time in the future...
00029 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
00030 
00031 /* If you need to define implementation helper classes that deal with more than
00032    12 interfaces, then use macros as follows, e.g. for 3 interfaces:
00033 
00034 #include <cppuhelper/implbase_ex_pre.hxx>
00035 #define __IFC_EX_TYPE_INIT3( class_cast ) \
00036     __IFC_EX_TYPE_INIT( class_cast, 1 ), __IFC_EX_TYPE_INIT( class_cast, 2 ), \
00037     __IFC_EX_TYPE_INIT( class_cast, 3 )
00038 #include <cppuhelper/implbase_ex_post.hxx>
00039 __DEF_IMPLHELPER_EX( 3 )
00040 */
00041 
00043 
00044 namespace cppu
00045 {
00046 
00049 typedef ::com::sun::star::uno::Type const & (SAL_CALL * fptr_getCppuType)( void * ) SAL_THROW(());
00050 
00053 struct type_entry
00054 {
00059     union
00060     {
00061         fptr_getCppuType getCppuType;
00062         typelib_TypeDescriptionReference * typeRef;
00063     } m_type;
00066     sal_IntPtr m_offset;
00067 };
00068 
00071 struct class_data
00072 {
00075     sal_Int16 m_nTypes;
00076 
00079     sal_Bool m_storedTypeRefs;
00080 
00083     sal_Bool m_createdId;
00084 
00087     sal_Int8 m_id[ 16 ];
00088 
00091     type_entry m_typeEntries[ 1 ];
00092 };
00093 
00096 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Any SAL_CALL ImplHelper_query(
00097     ::com::sun::star::uno::Type const & rType,
00098     class_data * cd,
00099     void * that )
00100     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00103 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Any SAL_CALL ImplHelper_queryNoXInterface(
00104     ::com::sun::star::uno::Type const & rType,
00105     class_data * cd,
00106     void * that )
00107     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00110 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
00111 SAL_CALL ImplHelper_getTypes(
00112     class_data * cd )
00113     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00116 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
00117 SAL_CALL ImplInhHelper_getTypes(
00118     class_data * cd,
00119     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > const & rAddTypes )
00120     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00123 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< sal_Int8 >
00124 SAL_CALL ImplHelper_getImplementationId(
00125     class_data * cd )
00126     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00127 
00130 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Any SAL_CALL WeakImplHelper_query(
00131     ::com::sun::star::uno::Type const & rType,
00132     class_data * cd,
00133     void * that,
00134     ::cppu::OWeakObject * pBase )
00135     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00138 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
00139 SAL_CALL WeakImplHelper_getTypes(
00140     class_data * cd )
00141     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00142 
00145 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Any
00146 SAL_CALL WeakAggImplHelper_queryAgg(
00147     ::com::sun::star::uno::Type const & rType,
00148     class_data * cd,
00149     void * that,
00150     ::cppu::OWeakAggObject * pBase )
00151     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00154 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
00155 SAL_CALL WeakAggImplHelper_getTypes(
00156     class_data * cd )
00157     SAL_THROW( (::com::sun::star::uno::RuntimeException) );
00158 
00159 }
00160 
00162 
00163 #endif
00164 
00165 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines