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

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

Generated by: LCOV version 1.10