LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/offapi/comprehensive/com/sun/star/util - XNumberFormatTypes.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 133 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 94 0.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATTYPES_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATTYPES_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/util/XNumberFormatTypes.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/XInterface.hpp"
       9                 :            : #include "com/sun/star/lang/Locale.hpp"
      10                 :            : #include "com/sun/star/uno/RuntimeException.hpp"
      11                 :            : #include "com/sun/star/uno/Reference.hxx"
      12                 :            : #include "com/sun/star/uno/Type.hxx"
      13                 :            : #include "cppu/unotype.hxx"
      14                 :            : #include "osl/mutex.hxx"
      15                 :            : #include "rtl/instance.hxx"
      16                 :            : #include "sal/types.h"
      17                 :            : 
      18                 :            : namespace com { namespace sun { namespace star { namespace util { namespace detail {
      19                 :            : 
      20                 :            : struct theXNumberFormatTypesType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXNumberFormatTypesType >
      21                 :            : {
      22                 :          0 :     ::com::sun::star::uno::Type * operator()() const
      23                 :            :     {
      24         [ #  # ]:          0 :         ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes") );
      25                 :            : 
      26                 :            :         // Start inline typedescription generation
      27                 :          0 :         typelib_InterfaceTypeDescription * pTD = 0;
      28                 :            : 
      29                 :            :         typelib_TypeDescriptionReference * aSuperTypes[1];
      30         [ #  # ]:          0 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType();
      31                 :          0 :         typelib_TypeDescriptionReference * pMembers[5] = { 0,0,0,0,0 };
      32         [ #  # ]:          0 :         ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getStandardIndex") );
      33                 :            :         typelib_typedescriptionreference_new( &pMembers[0],
      34                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      35                 :          0 :                                               sMethodName0.pData );
      36         [ #  # ]:          0 :         ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getStandardFormat") );
      37                 :            :         typelib_typedescriptionreference_new( &pMembers[1],
      38                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      39                 :          0 :                                               sMethodName1.pData );
      40         [ #  # ]:          0 :         ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getFormatIndex") );
      41                 :            :         typelib_typedescriptionreference_new( &pMembers[2],
      42                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      43                 :          0 :                                               sMethodName2.pData );
      44         [ #  # ]:          0 :         ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::isTypeCompatible") );
      45                 :            :         typelib_typedescriptionreference_new( &pMembers[3],
      46                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      47                 :          0 :                                               sMethodName3.pData );
      48         [ #  # ]:          0 :         ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getFormatForLocale") );
      49                 :            :         typelib_typedescriptionreference_new( &pMembers[4],
      50                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      51                 :          0 :                                               sMethodName4.pData );
      52                 :            : 
      53                 :            :         typelib_typedescription_newMIInterface(
      54                 :            :             &pTD,
      55                 :            :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      56                 :            :             1, aSuperTypes,
      57                 :            :             5,
      58                 :          0 :             pMembers );
      59                 :            : 
      60                 :          0 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      61                 :          0 :         typelib_typedescriptionreference_release( pMembers[0] );
      62                 :          0 :         typelib_typedescriptionreference_release( pMembers[1] );
      63                 :          0 :         typelib_typedescriptionreference_release( pMembers[2] );
      64                 :          0 :         typelib_typedescriptionreference_release( pMembers[3] );
      65                 :          0 :         typelib_typedescriptionreference_release( pMembers[4] );
      66                 :          0 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      67                 :            : 
      68                 :          0 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      69                 :            :     }
      70                 :            : };
      71                 :            : 
      72                 :            : } } } } }
      73                 :            : 
      74                 :            : namespace com { namespace sun { namespace star { namespace util {
      75                 :            : 
      76                 :          0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::util::XNumberFormatTypes const *) {
      77                 :          0 :     const ::com::sun::star::uno::Type &rRet = *detail::theXNumberFormatTypesType::get();
      78                 :            :     // End inline typedescription generation
      79                 :            :     static bool bInitStarted = false;
      80         [ #  # ]:          0 :     if (!bInitStarted)
      81                 :            :     {
      82 [ #  # ][ #  # ]:          0 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      83         [ #  # ]:          0 :         if (!bInitStarted)
      84                 :            :         {
      85                 :            :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      86                 :          0 :             bInitStarted = true;
      87         [ #  # ]:          0 :             ::cppu::UnoType< ::com::sun::star::uno::RuntimeException >::get();
      88         [ #  # ]:          0 :             ::cppu::UnoType< ::com::sun::star::lang::Locale >::get();
      89                 :            : 
      90                 :          0 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
      91                 :            :             {
      92                 :            :                 typelib_Parameter_Init aParameters[1];
      93         [ #  # ]:          0 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
      94         [ #  # ]:          0 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
      95                 :          0 :                 aParameters[0].pParamName = sParamName0.pData;
      96                 :          0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
      97                 :          0 :                 aParameters[0].pTypeName = sParamType0.pData;
      98                 :          0 :                 aParameters[0].bIn = sal_True;
      99                 :          0 :                 aParameters[0].bOut = sal_False;
     100         [ #  # ]:          0 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     101                 :          0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     102         [ #  # ]:          0 :                 ::rtl::OUString sReturnType0( RTL_CONSTASCII_USTRINGPARAM("long") );
     103         [ #  # ]:          0 :                 ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getStandardIndex") );
     104                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     105                 :            :                     3, sal_False,
     106                 :            :                     sMethodName0.pData,
     107                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType0.pData,
     108                 :            :                     1, aParameters,
     109                 :          0 :                     1, the_Exceptions );
     110                 :          0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     111                 :            :             }
     112                 :            :             {
     113                 :            :                 typelib_Parameter_Init aParameters[2];
     114         [ #  # ]:          0 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nType") );
     115         [ #  # ]:          0 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("short") );
     116                 :          0 :                 aParameters[0].pParamName = sParamName0.pData;
     117                 :          0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     118                 :          0 :                 aParameters[0].pTypeName = sParamType0.pData;
     119                 :          0 :                 aParameters[0].bIn = sal_True;
     120                 :          0 :                 aParameters[0].bOut = sal_False;
     121         [ #  # ]:          0 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     122         [ #  # ]:          0 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     123                 :          0 :                 aParameters[1].pParamName = sParamName1.pData;
     124                 :          0 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     125                 :          0 :                 aParameters[1].pTypeName = sParamType1.pData;
     126                 :          0 :                 aParameters[1].bIn = sal_True;
     127                 :          0 :                 aParameters[1].bOut = sal_False;
     128         [ #  # ]:          0 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     129                 :          0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     130         [ #  # ]:          0 :                 ::rtl::OUString sReturnType1( RTL_CONSTASCII_USTRINGPARAM("long") );
     131         [ #  # ]:          0 :                 ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getStandardFormat") );
     132                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     133                 :            :                     4, sal_False,
     134                 :            :                     sMethodName1.pData,
     135                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType1.pData,
     136                 :            :                     2, aParameters,
     137                 :          0 :                     1, the_Exceptions );
     138                 :          0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     139                 :            :             }
     140                 :            :             {
     141                 :            :                 typelib_Parameter_Init aParameters[2];
     142         [ #  # ]:          0 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nIndex") );
     143         [ #  # ]:          0 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("short") );
     144                 :          0 :                 aParameters[0].pParamName = sParamName0.pData;
     145                 :          0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     146                 :          0 :                 aParameters[0].pTypeName = sParamType0.pData;
     147                 :          0 :                 aParameters[0].bIn = sal_True;
     148                 :          0 :                 aParameters[0].bOut = sal_False;
     149         [ #  # ]:          0 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     150         [ #  # ]:          0 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     151                 :          0 :                 aParameters[1].pParamName = sParamName1.pData;
     152                 :          0 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     153                 :          0 :                 aParameters[1].pTypeName = sParamType1.pData;
     154                 :          0 :                 aParameters[1].bIn = sal_True;
     155                 :          0 :                 aParameters[1].bOut = sal_False;
     156         [ #  # ]:          0 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     157                 :          0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     158         [ #  # ]:          0 :                 ::rtl::OUString sReturnType2( RTL_CONSTASCII_USTRINGPARAM("long") );
     159         [ #  # ]:          0 :                 ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getFormatIndex") );
     160                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     161                 :            :                     5, sal_False,
     162                 :            :                     sMethodName2.pData,
     163                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType2.pData,
     164                 :            :                     2, aParameters,
     165                 :          0 :                     1, the_Exceptions );
     166                 :          0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     167                 :            :             }
     168                 :            :             {
     169                 :            :                 typelib_Parameter_Init aParameters[2];
     170         [ #  # ]:          0 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nOldType") );
     171         [ #  # ]:          0 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("short") );
     172                 :          0 :                 aParameters[0].pParamName = sParamName0.pData;
     173                 :          0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     174                 :          0 :                 aParameters[0].pTypeName = sParamType0.pData;
     175                 :          0 :                 aParameters[0].bIn = sal_True;
     176                 :          0 :                 aParameters[0].bOut = sal_False;
     177         [ #  # ]:          0 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nNewType") );
     178         [ #  # ]:          0 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("short") );
     179                 :          0 :                 aParameters[1].pParamName = sParamName1.pData;
     180                 :          0 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     181                 :          0 :                 aParameters[1].pTypeName = sParamType1.pData;
     182                 :          0 :                 aParameters[1].bIn = sal_True;
     183                 :          0 :                 aParameters[1].bOut = sal_False;
     184         [ #  # ]:          0 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     185                 :          0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     186         [ #  # ]:          0 :                 ::rtl::OUString sReturnType3( RTL_CONSTASCII_USTRINGPARAM("boolean") );
     187         [ #  # ]:          0 :                 ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::isTypeCompatible") );
     188                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     189                 :            :                     6, sal_False,
     190                 :            :                     sMethodName3.pData,
     191                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType3.pData,
     192                 :            :                     2, aParameters,
     193                 :          0 :                     1, the_Exceptions );
     194                 :          0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     195                 :            :             }
     196                 :            :             {
     197                 :            :                 typelib_Parameter_Init aParameters[2];
     198         [ #  # ]:          0 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nKey") );
     199         [ #  # ]:          0 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("long") );
     200                 :          0 :                 aParameters[0].pParamName = sParamName0.pData;
     201                 :          0 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
     202                 :          0 :                 aParameters[0].pTypeName = sParamType0.pData;
     203                 :          0 :                 aParameters[0].bIn = sal_True;
     204                 :          0 :                 aParameters[0].bOut = sal_False;
     205         [ #  # ]:          0 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     206         [ #  # ]:          0 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     207                 :          0 :                 aParameters[1].pParamName = sParamName1.pData;
     208                 :          0 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     209                 :          0 :                 aParameters[1].pTypeName = sParamType1.pData;
     210                 :          0 :                 aParameters[1].bIn = sal_True;
     211                 :          0 :                 aParameters[1].bOut = sal_False;
     212         [ #  # ]:          0 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     213                 :          0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     214         [ #  # ]:          0 :                 ::rtl::OUString sReturnType4( RTL_CONSTASCII_USTRINGPARAM("long") );
     215         [ #  # ]:          0 :                 ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormatTypes::getFormatForLocale") );
     216                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     217                 :            :                     7, sal_False,
     218                 :            :                     sMethodName4.pData,
     219                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType4.pData,
     220                 :            :                     2, aParameters,
     221                 :          0 :                     1, the_Exceptions );
     222                 :          0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     223                 :            :             }
     224                 :          0 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     225         [ #  # ]:          0 :         }
     226                 :            :     }
     227                 :            :     else
     228                 :            :     {
     229                 :            :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     230                 :            :     }
     231                 :          0 :     return rRet;
     232                 :            : }
     233                 :            : 
     234                 :            : } } } }
     235                 :            : 
     236                 :          0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatTypes > const *) SAL_THROW(()) {
     237                 :          0 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatTypes > >::get();
     238                 :            : }
     239                 :            : 
     240                 :          0 : ::com::sun::star::uno::Type const & ::com::sun::star::util::XNumberFormatTypes::static_type(SAL_UNUSED_PARAMETER void *) {
     241                 :          0 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatTypes > * >(0));
     242                 :            : }
     243                 :            : 
     244                 :            : #endif // INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATTYPES_HPP

Generated by: LCOV version 1.10