LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/offapi/comprehensive/com/sun/star/util - XNumberFormats.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 222 222 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 80 160 50.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATS_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATS_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/util/XNumberFormats.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/util/MalformedNumberFormatException.hpp"
       9                 :            : #include "com/sun/star/lang/Locale.hpp"
      10                 :            : #include "com/sun/star/beans/XPropertySet.hpp"
      11                 :            : #include "com/sun/star/uno/RuntimeException.hpp"
      12                 :            : #include "com/sun/star/uno/XInterface.hpp"
      13                 :            : #include "com/sun/star/uno/Reference.hxx"
      14                 :            : #include "com/sun/star/uno/Sequence.hxx"
      15                 :            : #include "com/sun/star/uno/Type.hxx"
      16                 :            : #include "cppu/unotype.hxx"
      17                 :            : #include "osl/mutex.hxx"
      18                 :            : #include "rtl/ustring.hxx"
      19                 :            : #include "rtl/instance.hxx"
      20                 :            : #include "sal/types.h"
      21                 :            : 
      22                 :            : namespace com { namespace sun { namespace star { namespace util { namespace detail {
      23                 :            : 
      24                 :            : struct theXNumberFormatsType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXNumberFormatsType >
      25                 :            : {
      26                 :         17 :     ::com::sun::star::uno::Type * operator()() const
      27                 :            :     {
      28         [ +  - ]:         17 :         ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats") );
      29                 :            : 
      30                 :            :         // Start inline typedescription generation
      31                 :         17 :         typelib_InterfaceTypeDescription * pTD = 0;
      32                 :            : 
      33                 :            :         typelib_TypeDescriptionReference * aSuperTypes[1];
      34         [ +  - ]:         17 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >::get().getTypeLibType();
      35                 :         17 :         typelib_TypeDescriptionReference * pMembers[7] = { 0,0,0,0,0,0,0 };
      36         [ +  - ]:         17 :         ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::getByKey") );
      37                 :            :         typelib_typedescriptionreference_new( &pMembers[0],
      38                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      39                 :         17 :                                               sMethodName0.pData );
      40         [ +  - ]:         17 :         ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::queryKeys") );
      41                 :            :         typelib_typedescriptionreference_new( &pMembers[1],
      42                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      43                 :         17 :                                               sMethodName1.pData );
      44         [ +  - ]:         17 :         ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::queryKey") );
      45                 :            :         typelib_typedescriptionreference_new( &pMembers[2],
      46                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      47                 :         17 :                                               sMethodName2.pData );
      48         [ +  - ]:         17 :         ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::addNew") );
      49                 :            :         typelib_typedescriptionreference_new( &pMembers[3],
      50                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      51                 :         17 :                                               sMethodName3.pData );
      52         [ +  - ]:         17 :         ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::addNewConverted") );
      53                 :            :         typelib_typedescriptionreference_new( &pMembers[4],
      54                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      55                 :         17 :                                               sMethodName4.pData );
      56         [ +  - ]:         17 :         ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::removeByKey") );
      57                 :            :         typelib_typedescriptionreference_new( &pMembers[5],
      58                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      59                 :         17 :                                               sMethodName5.pData );
      60         [ +  - ]:         17 :         ::rtl::OUString sMethodName6( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::generateFormat") );
      61                 :            :         typelib_typedescriptionreference_new( &pMembers[6],
      62                 :            :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      63                 :         17 :                                               sMethodName6.pData );
      64                 :            : 
      65                 :            :         typelib_typedescription_newMIInterface(
      66                 :            :             &pTD,
      67                 :            :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      68                 :            :             1, aSuperTypes,
      69                 :            :             7,
      70                 :         17 :             pMembers );
      71                 :            : 
      72                 :         17 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      73                 :         17 :         typelib_typedescriptionreference_release( pMembers[0] );
      74                 :         17 :         typelib_typedescriptionreference_release( pMembers[1] );
      75                 :         17 :         typelib_typedescriptionreference_release( pMembers[2] );
      76                 :         17 :         typelib_typedescriptionreference_release( pMembers[3] );
      77                 :         17 :         typelib_typedescriptionreference_release( pMembers[4] );
      78                 :         17 :         typelib_typedescriptionreference_release( pMembers[5] );
      79                 :         17 :         typelib_typedescriptionreference_release( pMembers[6] );
      80                 :         17 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      81                 :            : 
      82                 :         17 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      83                 :            :     }
      84                 :            : };
      85                 :            : 
      86                 :            : } } } } }
      87                 :            : 
      88                 :            : namespace com { namespace sun { namespace star { namespace util {
      89                 :            : 
      90                 :         17 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::util::XNumberFormats const *) {
      91                 :         17 :     const ::com::sun::star::uno::Type &rRet = *detail::theXNumberFormatsType::get();
      92                 :            :     // End inline typedescription generation
      93                 :            :     static bool bInitStarted = false;
      94         [ +  - ]:         17 :     if (!bInitStarted)
      95                 :            :     {
      96 [ +  - ][ +  - ]:         17 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      97         [ +  - ]:         17 :         if (!bInitStarted)
      98                 :            :         {
      99                 :            :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     100                 :         17 :             bInitStarted = true;
     101         [ +  - ]:         17 :             ::cppu::UnoType< ::com::sun::star::uno::RuntimeException >::get();
     102         [ +  - ]:         17 :             ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > >::get();
     103         [ +  - ]:         17 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::sal_Int32 > >::get();
     104         [ +  - ]:         17 :             ::cppu::UnoType< ::com::sun::star::lang::Locale >::get();
     105         [ +  - ]:         17 :             ::cppu::UnoType< ::com::sun::star::util::MalformedNumberFormatException >::get();
     106                 :            : 
     107                 :         17 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
     108                 :            :             {
     109                 :            :                 typelib_Parameter_Init aParameters[1];
     110         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nKey") );
     111         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("long") );
     112                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     113                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
     114                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     115                 :         17 :                 aParameters[0].bIn = sal_True;
     116                 :         17 :                 aParameters[0].bOut = sal_False;
     117         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     118                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     119         [ +  - ]:         17 :                 ::rtl::OUString sReturnType0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.beans.XPropertySet") );
     120         [ +  - ]:         17 :                 ::rtl::OUString sMethodName0( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::getByKey") );
     121                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     122                 :            :                     3, sal_False,
     123                 :            :                     sMethodName0.pData,
     124                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE, sReturnType0.pData,
     125                 :            :                     1, aParameters,
     126                 :         17 :                     1, the_Exceptions );
     127                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     128                 :            :             }
     129                 :            :             {
     130                 :            :                 typelib_Parameter_Init aParameters[3];
     131         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nType") );
     132         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("short") );
     133                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     134                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     135                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     136                 :         17 :                 aParameters[0].bIn = sal_True;
     137                 :         17 :                 aParameters[0].bOut = sal_False;
     138         [ +  - ]:         17 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     139         [ +  - ]:         17 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     140                 :         17 :                 aParameters[1].pParamName = sParamName1.pData;
     141                 :         17 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     142                 :         17 :                 aParameters[1].pTypeName = sParamType1.pData;
     143                 :         17 :                 aParameters[1].bIn = sal_True;
     144                 :         17 :                 aParameters[1].bOut = sal_False;
     145         [ +  - ]:         17 :                 ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("bCreate") );
     146         [ +  - ]:         17 :                 ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("boolean") );
     147                 :         17 :                 aParameters[2].pParamName = sParamName2.pData;
     148                 :         17 :                 aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN;
     149                 :         17 :                 aParameters[2].pTypeName = sParamType2.pData;
     150                 :         17 :                 aParameters[2].bIn = sal_True;
     151                 :         17 :                 aParameters[2].bOut = sal_False;
     152         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     153                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     154         [ +  - ]:         17 :                 ::rtl::OUString sReturnType1( RTL_CONSTASCII_USTRINGPARAM("[]long") );
     155         [ +  - ]:         17 :                 ::rtl::OUString sMethodName1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::queryKeys") );
     156                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     157                 :            :                     4, sal_False,
     158                 :            :                     sMethodName1.pData,
     159                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType1.pData,
     160                 :            :                     3, aParameters,
     161                 :         17 :                     1, the_Exceptions );
     162                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     163                 :            :             }
     164                 :            :             {
     165                 :            :                 typelib_Parameter_Init aParameters[3];
     166         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aFormat") );
     167         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("string") );
     168                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     169                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     170                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     171                 :         17 :                 aParameters[0].bIn = sal_True;
     172                 :         17 :                 aParameters[0].bOut = sal_False;
     173         [ +  - ]:         17 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     174         [ +  - ]:         17 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     175                 :         17 :                 aParameters[1].pParamName = sParamName1.pData;
     176                 :         17 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     177                 :         17 :                 aParameters[1].pTypeName = sParamType1.pData;
     178                 :         17 :                 aParameters[1].bIn = sal_True;
     179                 :         17 :                 aParameters[1].bOut = sal_False;
     180         [ +  - ]:         17 :                 ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("bScan") );
     181         [ +  - ]:         17 :                 ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("boolean") );
     182                 :         17 :                 aParameters[2].pParamName = sParamName2.pData;
     183                 :         17 :                 aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN;
     184                 :         17 :                 aParameters[2].pTypeName = sParamType2.pData;
     185                 :         17 :                 aParameters[2].bIn = sal_True;
     186                 :         17 :                 aParameters[2].bOut = sal_False;
     187         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     188                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     189         [ +  - ]:         17 :                 ::rtl::OUString sReturnType2( RTL_CONSTASCII_USTRINGPARAM("long") );
     190         [ +  - ]:         17 :                 ::rtl::OUString sMethodName2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::queryKey") );
     191                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     192                 :            :                     5, sal_False,
     193                 :            :                     sMethodName2.pData,
     194                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType2.pData,
     195                 :            :                     3, aParameters,
     196                 :         17 :                     1, the_Exceptions );
     197                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     198                 :            :             }
     199                 :            :             {
     200                 :            :                 typelib_Parameter_Init aParameters[2];
     201         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aFormat") );
     202         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("string") );
     203                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     204                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     205                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     206                 :         17 :                 aParameters[0].bIn = sal_True;
     207                 :         17 :                 aParameters[0].bOut = sal_False;
     208         [ +  - ]:         17 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     209         [ +  - ]:         17 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     210                 :         17 :                 aParameters[1].pParamName = sParamName1.pData;
     211                 :         17 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     212                 :         17 :                 aParameters[1].pTypeName = sParamType1.pData;
     213                 :         17 :                 aParameters[1].bIn = sal_True;
     214                 :         17 :                 aParameters[1].bOut = sal_False;
     215         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.MalformedNumberFormatException"));
     216         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     217                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
     218         [ +  - ]:         17 :                 ::rtl::OUString sReturnType3( RTL_CONSTASCII_USTRINGPARAM("long") );
     219         [ +  - ]:         17 :                 ::rtl::OUString sMethodName3( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::addNew") );
     220                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     221                 :            :                     6, sal_False,
     222                 :            :                     sMethodName3.pData,
     223                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType3.pData,
     224                 :            :                     2, aParameters,
     225                 :         17 :                     2, the_Exceptions );
     226                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     227                 :            :             }
     228                 :            :             {
     229                 :            :                 typelib_Parameter_Init aParameters[3];
     230         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("aFormat") );
     231         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("string") );
     232                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     233                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING;
     234                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     235                 :         17 :                 aParameters[0].bIn = sal_True;
     236                 :         17 :                 aParameters[0].bOut = sal_False;
     237         [ +  - ]:         17 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     238         [ +  - ]:         17 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     239                 :         17 :                 aParameters[1].pParamName = sParamName1.pData;
     240                 :         17 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     241                 :         17 :                 aParameters[1].pTypeName = sParamType1.pData;
     242                 :         17 :                 aParameters[1].bIn = sal_True;
     243                 :         17 :                 aParameters[1].bOut = sal_False;
     244         [ +  - ]:         17 :                 ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("nNewLocale") );
     245         [ +  - ]:         17 :                 ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     246                 :         17 :                 aParameters[2].pParamName = sParamName2.pData;
     247                 :         17 :                 aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     248                 :         17 :                 aParameters[2].pTypeName = sParamType2.pData;
     249                 :         17 :                 aParameters[2].bIn = sal_True;
     250                 :         17 :                 aParameters[2].bOut = sal_False;
     251         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.MalformedNumberFormatException"));
     252         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName1(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     253                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData, the_ExceptionName1.pData };
     254         [ +  - ]:         17 :                 ::rtl::OUString sReturnType4( RTL_CONSTASCII_USTRINGPARAM("long") );
     255         [ +  - ]:         17 :                 ::rtl::OUString sMethodName4( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::addNewConverted") );
     256                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     257                 :            :                     7, sal_False,
     258                 :            :                     sMethodName4.pData,
     259                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG, sReturnType4.pData,
     260                 :            :                     3, aParameters,
     261                 :         17 :                     2, the_Exceptions );
     262                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     263                 :            :             }
     264                 :            :             {
     265                 :            :                 typelib_Parameter_Init aParameters[1];
     266         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nKey") );
     267         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("long") );
     268                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     269                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
     270                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     271                 :         17 :                 aParameters[0].bIn = sal_True;
     272                 :         17 :                 aParameters[0].bOut = sal_False;
     273         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     274                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     275         [ +  - ]:         17 :                 ::rtl::OUString sReturnType5( RTL_CONSTASCII_USTRINGPARAM("void") );
     276         [ +  - ]:         17 :                 ::rtl::OUString sMethodName5( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::removeByKey") );
     277                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     278                 :            :                     8, sal_False,
     279                 :            :                     sMethodName5.pData,
     280                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_VOID, sReturnType5.pData,
     281                 :            :                     1, aParameters,
     282                 :         17 :                     1, the_Exceptions );
     283                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     284                 :            :             }
     285                 :            :             {
     286                 :            :                 typelib_Parameter_Init aParameters[6];
     287         [ +  - ]:         17 :                 ::rtl::OUString sParamName0( RTL_CONSTASCII_USTRINGPARAM("nBaseKey") );
     288         [ +  - ]:         17 :                 ::rtl::OUString sParamType0( RTL_CONSTASCII_USTRINGPARAM("long") );
     289                 :         17 :                 aParameters[0].pParamName = sParamName0.pData;
     290                 :         17 :                 aParameters[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
     291                 :         17 :                 aParameters[0].pTypeName = sParamType0.pData;
     292                 :         17 :                 aParameters[0].bIn = sal_True;
     293                 :         17 :                 aParameters[0].bOut = sal_False;
     294         [ +  - ]:         17 :                 ::rtl::OUString sParamName1( RTL_CONSTASCII_USTRINGPARAM("nLocale") );
     295         [ +  - ]:         17 :                 ::rtl::OUString sParamType1( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.Locale") );
     296                 :         17 :                 aParameters[1].pParamName = sParamName1.pData;
     297                 :         17 :                 aParameters[1].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRUCT;
     298                 :         17 :                 aParameters[1].pTypeName = sParamType1.pData;
     299                 :         17 :                 aParameters[1].bIn = sal_True;
     300                 :         17 :                 aParameters[1].bOut = sal_False;
     301         [ +  - ]:         17 :                 ::rtl::OUString sParamName2( RTL_CONSTASCII_USTRINGPARAM("bThousands") );
     302         [ +  - ]:         17 :                 ::rtl::OUString sParamType2( RTL_CONSTASCII_USTRINGPARAM("boolean") );
     303                 :         17 :                 aParameters[2].pParamName = sParamName2.pData;
     304                 :         17 :                 aParameters[2].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN;
     305                 :         17 :                 aParameters[2].pTypeName = sParamType2.pData;
     306                 :         17 :                 aParameters[2].bIn = sal_True;
     307                 :         17 :                 aParameters[2].bOut = sal_False;
     308         [ +  - ]:         17 :                 ::rtl::OUString sParamName3( RTL_CONSTASCII_USTRINGPARAM("bRed") );
     309         [ +  - ]:         17 :                 ::rtl::OUString sParamType3( RTL_CONSTASCII_USTRINGPARAM("boolean") );
     310                 :         17 :                 aParameters[3].pParamName = sParamName3.pData;
     311                 :         17 :                 aParameters[3].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN;
     312                 :         17 :                 aParameters[3].pTypeName = sParamType3.pData;
     313                 :         17 :                 aParameters[3].bIn = sal_True;
     314                 :         17 :                 aParameters[3].bOut = sal_False;
     315         [ +  - ]:         17 :                 ::rtl::OUString sParamName4( RTL_CONSTASCII_USTRINGPARAM("nDecimals") );
     316         [ +  - ]:         17 :                 ::rtl::OUString sParamType4( RTL_CONSTASCII_USTRINGPARAM("short") );
     317                 :         17 :                 aParameters[4].pParamName = sParamName4.pData;
     318                 :         17 :                 aParameters[4].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     319                 :         17 :                 aParameters[4].pTypeName = sParamType4.pData;
     320                 :         17 :                 aParameters[4].bIn = sal_True;
     321                 :         17 :                 aParameters[4].bOut = sal_False;
     322         [ +  - ]:         17 :                 ::rtl::OUString sParamName5( RTL_CONSTASCII_USTRINGPARAM("nLeading") );
     323         [ +  - ]:         17 :                 ::rtl::OUString sParamType5( RTL_CONSTASCII_USTRINGPARAM("short") );
     324                 :         17 :                 aParameters[5].pParamName = sParamName5.pData;
     325                 :         17 :                 aParameters[5].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_SHORT;
     326                 :         17 :                 aParameters[5].pTypeName = sParamType5.pData;
     327                 :         17 :                 aParameters[5].bIn = sal_True;
     328                 :         17 :                 aParameters[5].bOut = sal_False;
     329         [ +  - ]:         17 :                 ::rtl::OUString the_ExceptionName0(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.RuntimeException"));
     330                 :         17 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     331         [ +  - ]:         17 :                 ::rtl::OUString sReturnType6( RTL_CONSTASCII_USTRINGPARAM("string") );
     332         [ +  - ]:         17 :                 ::rtl::OUString sMethodName6( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.XNumberFormats::generateFormat") );
     333                 :            :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     334                 :            :                     9, sal_False,
     335                 :            :                     sMethodName6.pData,
     336                 :            :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING, sReturnType6.pData,
     337                 :            :                     6, aParameters,
     338                 :         17 :                     1, the_Exceptions );
     339                 :         17 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     340                 :            :             }
     341                 :         17 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     342         [ +  - ]:         17 :         }
     343                 :            :     }
     344                 :            :     else
     345                 :            :     {
     346                 :            :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     347                 :            :     }
     348                 :         17 :     return rRet;
     349                 :            : }
     350                 :            : 
     351                 :            : } } } }
     352                 :            : 
     353                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > const *) SAL_THROW(()) {
     354                 :            :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > >::get();
     355                 :            : }
     356                 :            : 
     357                 :            : ::com::sun::star::uno::Type const & ::com::sun::star::util::XNumberFormats::static_type(SAL_UNUSED_PARAMETER void *) {
     358                 :            :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > * >(0));
     359                 :            : }
     360                 :            : 
     361                 :            : #endif // INCLUDED_COM_SUN_STAR_UTIL_XNUMBERFORMATS_HPP

Generated by: LCOV version 1.10