diff options
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 248 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.hrc | 540 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.hxx | 220 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.src | 1294 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis_deffuncnames.src | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis_funcnames.src | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysisadd.idl | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/analysisdefs.hxx | 34 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 504 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 322 | ||||
-rw-r--r-- | scaddins/source/analysis/bessel.cxx | 32 | ||||
-rw-r--r-- | scaddins/source/analysis/bessel.hxx | 2 | ||||
-rw-r--r-- | scaddins/source/analysis/financial.cxx | 48 | ||||
-rw-r--r-- | scaddins/source/datefunc/dateadd.idl | 2 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.cxx | 2 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hrc | 2 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 4 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.src | 2 |
18 files changed, 1631 insertions, 1631 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index 78de6abe00a1..0d206d0286dd 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,16 +38,16 @@ #include "analysis.hrc" #include "bessel.hxx" -#define ADDIN_SERVICE "com.sun.star.sheet.AddIn" -#define MY_SERVICE "com.sun.star.sheet.addin.Analysis" -#define MY_IMPLNAME "com.sun.star.sheet.addin.AnalysisImpl" +#define ADDIN_SERVICE "com.sun.star.sheet.AddIn" +#define MY_SERVICE "com.sun.star.sheet.addin.Analysis" +#define MY_IMPLNAME "com.sun.star.sheet.addin.AnalysisImpl" using namespace ::rtl; using namespace ::com::sun::star; //------------------------------------------------------------------ // -// entry points for service registration / instantiation +// entry points for service registration / instantiation // //------------------------------------------------------------------ @@ -66,15 +66,15 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, registry::XReg { try { - STRING aImpl = STRFROMASCII( "/" ); + STRING aImpl = STRFROMASCII( "/" ); aImpl += AnalysisAddIn::getImplementationName_Static(); aImpl += STRFROMASCII( "/UNO/SERVICES" ); - REF( registry::XRegistryKey ) xNewKey( + REF( registry::XRegistryKey ) xNewKey( reinterpret_cast< registry::XRegistryKey* >( pRegistryKey )->createKey( aImpl ) ); - SEQ( STRING ) aSequ = AnalysisAddIn::getSupportedServiceNames_Static(); - const STRING* pArray = aSequ.getConstArray(); + SEQ( STRING ) aSequ = AnalysisAddIn::getSupportedServiceNames_Static(); + const STRING* pArray = aSequ.getConstArray(); for( sal_Int32 i = 0 ; i < aSequ.getLength() ; i++ ) xNewKey->createKey( pArray[ i ] ); @@ -92,11 +92,11 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, registry::XReg void* SAL_CALL component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* /*pRegistryKey*/ ) { - void* pRet = 0; + void* pRet = 0; if( pServiceManager && STRING::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() ) { - REF( lang::XSingleServiceFactory ) xFactory( cppu::createOneInstanceFactory( + REF( lang::XSingleServiceFactory ) xFactory( cppu::createOneInstanceFactory( reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ), AnalysisAddIn::getImplementationName_Static(), AnalysisAddIn_CreateInstance, @@ -113,14 +113,14 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, void* pServiceMa } -} // extern C +} // extern C //------------------------------------------------------------------------ // -// "normal" service implementation +// "normal" service implementation // //------------------------------------------------------------------------ @@ -129,7 +129,7 @@ ResMgr& AnalysisAddIn::GetResMgr( void ) THROWDEF_RTE { if( !pResMgr ) { - InitData(); // try to get resource manager + InitData(); // try to get resource manager if( !pResMgr ) THROW_RTE; @@ -149,8 +149,8 @@ class AnalysisResourcePublisher : public Resource { public: AnalysisResourcePublisher( const AnalysisResId& rId ) : Resource( rId ) {} - BOOL IsAvailableRes( const ResId& rId ) const { return Resource::IsAvailableRes( rId ); } - void FreeResource() { Resource::FreeResource(); } + BOOL IsAvailableRes( const ResId& rId ) const { return Resource::IsAvailableRes( rId ); } + void FreeResource() { Resource::FreeResource(); } }; @@ -171,13 +171,13 @@ AnalysisFuncRes::AnalysisFuncRes( ResId& rRes, ResMgr& rResMgr, sal_uInt16 nInd, STRING AnalysisAddIn::GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex ) THROWDEF_RTE { - STRING aRet; - AnalysisResourcePublisher aResPubl( AnalysisResId( RID_ANALYSIS_FUNCTION_DESCRIPTIONS, GetResMgr() ) ); - AnalysisResId aRes( nResId, GetResMgr() ); + STRING aRet; + AnalysisResourcePublisher aResPubl( AnalysisResId( RID_ANALYSIS_FUNCTION_DESCRIPTIONS, GetResMgr() ) ); + AnalysisResId aRes( nResId, GetResMgr() ); aRes.SetRT( RSC_RESOURCE ); if( aResPubl.IsAvailableRes( aRes ) ) { - AnalysisFuncRes aSubRes( aRes, GetResMgr(), nStrIndex, aRet ); + AnalysisFuncRes aSubRes( aRes, GetResMgr(), nStrIndex, aRet ); } aResPubl.FreeResource(); @@ -191,7 +191,7 @@ void AnalysisAddIn::InitData( void ) if( pResMgr ) delete pResMgr; - OString aModName( "analysis" ); + OString aModName( "analysis" ); pResMgr = ResMgr::CreateResMgr( ( const sal_Char* ) aModName, aFuncLoc ); @@ -233,8 +233,8 @@ AnalysisAddIn::~AnalysisAddIn() if( pCDL ) delete pCDL; -// if( pResMgr ) no delete, because _all_ resource managers are deleted _before_ this dtor is called -// delete pResMgr; +// if( pResMgr ) no delete, because _all_ resource managers are deleted _before_ this dtor is called +// delete pResMgr; if( pDefLocales ) delete[] pDefLocales; @@ -256,7 +256,7 @@ sal_Int32 AnalysisAddIn::getDateMode( //----------------------------------------------------------------------------- -#define MAXFACTDOUBLE 300 +#define MAXFACTDOUBLE 300 double AnalysisAddIn::FactDouble( sal_Int32 nNum ) THROWDEF_RTE_IAE { @@ -267,17 +267,17 @@ double AnalysisAddIn::FactDouble( sal_Int32 nNum ) THROWDEF_RTE_IAE { pFactDoubles = new double[ MAXFACTDOUBLE + 1 ]; - pFactDoubles[ 0 ] = 1.0; // by default + pFactDoubles[ 0 ] = 1.0; // by default - double fOdd = 1.0; - double fEven = 2.0; + double fOdd = 1.0; + double fEven = 2.0; pFactDoubles[ 1 ] = fOdd; pFactDoubles[ 2 ] = fEven; - sal_Bool bOdd = sal_True; + sal_Bool bOdd = sal_True; - for( sal_uInt16 nCnt = 3 ; nCnt <= MAXFACTDOUBLE ; nCnt++ ) + for( sal_uInt16 nCnt = 3 ; nCnt <= MAXFACTDOUBLE ; nCnt++ ) { if( bOdd ) { @@ -307,8 +307,8 @@ STRING AnalysisAddIn::getImplementationName_Static() SEQ( STRING ) AnalysisAddIn::getSupportedServiceNames_Static() { - SEQ( STRING ) aRet(2); - STRING* pArray = aRet.getArray(); + SEQ( STRING ) aRet(2); + STRING* pArray = aRet.getArray(); pArray[0] = STRFROMASCII( ADDIN_SERVICE ); pArray[1] = STRFROMASCII( MY_SERVICE ); return aRet; @@ -358,7 +358,7 @@ void SAL_CALL AnalysisAddIn::setLocale( const lang::Locale& eLocale ) THROWDEF_R { aFuncLoc = eLocale; - InitData(); // change of locale invalidates resources! + InitData(); // change of locale invalidates resources! } lang::Locale SAL_CALL AnalysisAddIn::getLocale() THROWDEF_RTE @@ -371,8 +371,8 @@ lang::Locale SAL_CALL AnalysisAddIn::getLocale() THROWDEF_RTE STRING SAL_CALL AnalysisAddIn::getProgrammaticFuntionName( const STRING& ) THROWDEF_RTE { - // not used by calc - // (but should be implemented for other uses of the AddIn service) + // not used by calc + // (but should be implemented for other uses of the AddIn service) return STRING(); } @@ -380,9 +380,9 @@ STRING SAL_CALL AnalysisAddIn::getProgrammaticFuntionName( const STRING& ) THROW STRING SAL_CALL AnalysisAddIn::getDisplayFunctionName( const STRING& aProgrammaticName ) THROWDEF_RTE { - STRING aRet; + STRING aRet; - const FuncData* p = pFD->Get( aProgrammaticName ); + const FuncData* p = pFD->Get( aProgrammaticName ); if( p ) { aRet = GetDisplFuncStr( p->GetUINameID() ); @@ -401,9 +401,9 @@ STRING SAL_CALL AnalysisAddIn::getDisplayFunctionName( const STRING& aProgrammat STRING SAL_CALL AnalysisAddIn::getFunctionDescription( const STRING& aProgrammaticName ) THROWDEF_RTE { - STRING aRet; + STRING aRet; - const FuncData* p = pFD->Get( aProgrammaticName ); + const FuncData* p = pFD->Get( aProgrammaticName ); if( p ) aRet = GetFuncDescrStr( p->GetDescrID(), 1 ); @@ -413,12 +413,12 @@ STRING SAL_CALL AnalysisAddIn::getFunctionDescription( const STRING& aProgrammat STRING SAL_CALL AnalysisAddIn::getDisplayArgumentName( const STRING& aName, sal_Int32 nArg ) THROWDEF_RTE { - STRING aRet; + STRING aRet; - const FuncData* p = pFD->Get( aName ); + const FuncData* p = pFD->Get( aName ); if( p && nArg <= 0xFFFF ) { - sal_uInt16 nStr = p->GetStrIndex( sal_uInt16( nArg ) ); + sal_uInt16 nStr = p->GetStrIndex( sal_uInt16( nArg ) ); if( nStr /*&& nStr < 4*/ ) aRet = GetFuncDescrStr( p->GetDescrID(), nStr ); else @@ -431,12 +431,12 @@ STRING SAL_CALL AnalysisAddIn::getDisplayArgumentName( const STRING& aName, sal_ STRING SAL_CALL AnalysisAddIn::getArgumentDescription( const STRING& aName, sal_Int32 nArg ) THROWDEF_RTE { - STRING aRet; + STRING aRet; - const FuncData* p = pFD->Get( aName ); + const FuncData* p = pFD->Get( aName ); if( p && nArg <= 0xFFFF ) { - sal_uInt16 nStr = p->GetStrIndex( sal_uInt16( nArg ) ); + sal_uInt16 nStr = p->GetStrIndex( sal_uInt16( nArg ) ); if( nStr /*&& nStr < 4*/ ) aRet = GetFuncDescrStr( p->GetDescrID(), nStr + 1 ); else @@ -447,28 +447,28 @@ STRING SAL_CALL AnalysisAddIn::getArgumentDescription( const STRING& aName, sal_ } -static const char* pDefCatName = "Add-In"; +static const char* pDefCatName = "Add-In"; STRING SAL_CALL AnalysisAddIn::getProgrammaticCategoryName( const STRING& aName ) THROWDEF_RTE { - // return non-translated strings -// return STRFROMASCII( "Add-In" ); - const FuncData* p = pFD->Get( aName ); - STRING aRet; + // return non-translated strings +// return STRFROMASCII( "Add-In" ); + const FuncData* p = pFD->Get( aName ); + STRING aRet; if( p ) { - const sal_Char* pStr; + const sal_Char* pStr; switch( p->GetCategory() ) { - case FDCat_DateTime: pStr = "Date&Time"; break; - case FDCat_Finance: pStr = "Financial"; break; - case FDCat_Inf: pStr = "Information"; break; - case FDCat_Math: pStr = "Mathematical"; break; - case FDCat_Tech: pStr = "Technical"; break; + case FDCat_DateTime: pStr = "Date&Time"; break; + case FDCat_Finance: pStr = "Financial"; break; + case FDCat_Inf: pStr = "Information"; break; + case FDCat_Math: pStr = "Mathematical"; break; + case FDCat_Tech: pStr = "Technical"; break; default: - pStr = pDefCatName; break; + pStr = pDefCatName; break; } aRet = STRFROMASCII( pStr ); @@ -482,23 +482,23 @@ STRING SAL_CALL AnalysisAddIn::getProgrammaticCategoryName( const STRING& aName STRING SAL_CALL AnalysisAddIn::getDisplayCategoryName( const STRING& aProgrammaticFunctionName ) THROWDEF_RTE { - // return translated strings, not used for predefined categories -// return STRFROMASCII( "Add-In" ); - const FuncData* p = pFD->Get( aProgrammaticFunctionName ); - STRING aRet; + // return translated strings, not used for predefined categories +// return STRFROMASCII( "Add-In" ); + const FuncData* p = pFD->Get( aProgrammaticFunctionName ); + STRING aRet; if( p ) { - const sal_Char* pStr; + const sal_Char* pStr; switch( p->GetCategory() ) { - case FDCat_DateTime: pStr = "Date&Time"; break; - case FDCat_Finance: pStr = "Financial"; break; - case FDCat_Inf: pStr = "Information"; break; - case FDCat_Math: pStr = "Mathematical"; break; - case FDCat_Tech: pStr = "Technical"; break; + case FDCat_DateTime: pStr = "Date&Time"; break; + case FDCat_Finance: pStr = "Financial"; break; + case FDCat_Inf: pStr = "Information"; break; + case FDCat_Math: pStr = "Mathematical"; break; + case FDCat_Tech: pStr = "Technical"; break; default: - pStr = pDefCatName; break; + pStr = pDefCatName; break; } aRet = STRFROMASCII( pStr ); @@ -510,9 +510,9 @@ STRING SAL_CALL AnalysisAddIn::getDisplayCategoryName( const STRING& aProgrammat } -static const sal_Char* pLang[] = { "de", "en" }; -static const sal_Char* pCoun[] = { "DE", "US" }; -static const sal_uInt32 nNumOfLoc = sizeof( pLang ) / sizeof( sal_Char* ); +static const sal_Char* pLang[] = { "de", "en" }; +static const sal_Char* pCoun[] = { "DE", "US" }; +static const sal_uInt32 nNumOfLoc = sizeof( pLang ) / sizeof( sal_Char* ); void AnalysisAddIn::InitDefLocales( void ) @@ -541,17 +541,17 @@ inline const CSS::lang::Locale& AnalysisAddIn::GetLocale( sal_uInt32 nInd ) SEQofLocName SAL_CALL AnalysisAddIn::getCompatibilityNames( const STRING& aProgrammaticName ) THROWDEF_RTE { - const FuncData* p = pFD->Get( aProgrammaticName ); + const FuncData* p = pFD->Get( aProgrammaticName ); if( !p ) return SEQofLocName( 0 ); - const StringList& r = p->GetCompNameList(); - sal_uInt32 nCount = r.Count(); + const StringList& r = p->GetCompNameList(); + sal_uInt32 nCount = r.Count(); - SEQofLocName aRet( nCount ); + SEQofLocName aRet( nCount ); - CSS::sheet::LocalizedName* pArray = aRet.getArray(); + CSS::sheet::LocalizedName* pArray = aRet.getArray(); for( sal_uInt32 n = 0 ; n < nCount ; n++ ) { @@ -581,13 +581,13 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWorkday( constREFXPS& xOptions, if( !nDays ) return nDate; - sal_Int32 nNullDate = GetNullDate( xOptions ); + sal_Int32 nNullDate = GetNullDate( xOptions ); - SortedIndividualInt32List aSrtLst; + SortedIndividualInt32List aSrtLst; aSrtLst.InsertHolidayList( aAnyConv, xOptions, aHDay, nNullDate, sal_False ); - sal_Int32 nActDate = nDate + nNullDate; + sal_Int32 nActDate = nDate + nNullDate; if( nDays > 0 ) { @@ -605,7 +605,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWorkday( constREFXPS& xOptions, nDays--; } else - nActDate++; // jump over weekend + nActDate++; // jump over weekend } } else @@ -624,7 +624,7 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWorkday( constREFXPS& xOptions, nDays++; } else - nActDate--; // jump over weekend + nActDate--; // jump over weekend } } @@ -657,11 +657,11 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWeeknum( constREFXPS& xOpt, sal_Int32 nDate { nDate += GetNullDate( xOpt ); - sal_uInt16 nDay, nMonth, nYear; + sal_uInt16 nDay, nMonth, nYear; DaysToDate( nDate, nDay, nMonth, nYear ); - sal_Int32 nFirstInYear = DateToDays( 1, 1, nYear ); - sal_uInt16 nFirstDayInYear = GetDayOfWeek( nFirstInYear ); + sal_Int32 nFirstInYear = DateToDays( 1, 1, nYear ); + sal_uInt16 nFirstDayInYear = GetDayOfWeek( nFirstInYear ); return ( nDate - nFirstInYear + ( ( nMode == 1 )? ( nFirstDayInYear + 1 ) % 7 : nFirstDayInYear ) ) / 7 + 1; } @@ -669,12 +669,12 @@ sal_Int32 SAL_CALL AnalysisAddIn::getWeeknum( constREFXPS& xOpt, sal_Int32 nDate sal_Int32 SAL_CALL AnalysisAddIn::getEomonth( constREFXPS& xOpt, sal_Int32 nDate, sal_Int32 nMonths ) THROWDEF_RTE_IAE { - sal_Int32 nNullDate = GetNullDate( xOpt ); + sal_Int32 nNullDate = GetNullDate( xOpt ); nDate += nNullDate; - sal_uInt16 nDay, nMonth, nYear; + sal_uInt16 nDay, nMonth, nYear; DaysToDate( nDate, nDay, nMonth, nYear ); - sal_Int32 nNewMonth = nMonth + nMonths; + sal_Int32 nNewMonth = nMonth + nMonths; if( nNewMonth > 12 ) { @@ -697,15 +697,15 @@ sal_Int32 SAL_CALL AnalysisAddIn::getEomonth( constREFXPS& xOpt, sal_Int32 nDate sal_Int32 SAL_CALL AnalysisAddIn::getNetworkdays( constREFXPS& xOpt, sal_Int32 nStartDate, sal_Int32 nEndDate, const ANY& aHDay ) THROWDEF_RTE_IAE { - sal_Int32 nNullDate = GetNullDate( xOpt ); + sal_Int32 nNullDate = GetNullDate( xOpt ); - SortedIndividualInt32List aSrtLst; + SortedIndividualInt32List aSrtLst; aSrtLst.InsertHolidayList( aAnyConv, xOpt, aHDay, nNullDate, sal_False ); - sal_Int32 nActDate = nStartDate + nNullDate; - sal_Int32 nStopDate = nEndDate + nNullDate; - sal_Int32 nCnt = 0; + sal_Int32 nActDate = nStartDate + nNullDate; + sal_Int32 nStopDate = nEndDate + nNullDate; + sal_Int32 nCnt = 0; if( nActDate <= nStopDate ) { @@ -781,7 +781,7 @@ AnalysisAddIn::getMultinomial( constREFXPS& xOpt, const SEQSEQ( sal_Int32 )& aVL double SAL_CALL AnalysisAddIn::getSeriessum( double fX, double fN, double fM, const SEQSEQ( double )& aCoeffList ) THROWDEF_RTE_IAE { - double fRet = 0.0; + double fRet = 0.0; // #i32269# 0^0 is undefined, Excel returns #NUM! error if( fX == 0.0 && fN == 0 ) @@ -789,16 +789,16 @@ double SAL_CALL AnalysisAddIn::getSeriessum( double fX, double fN, double fM, co if( fX != 0.0 ) { - sal_Int32 n1, n2; - sal_Int32 nE1 = aCoeffList.getLength(); - sal_Int32 nE2; - //sal_Int32 nZ = 0; + sal_Int32 n1, n2; + sal_Int32 nE1 = aCoeffList.getLength(); + sal_Int32 nE2; + //sal_Int32 nZ = 0; for( n1 = 0 ; n1 < nE1 ; n1++ ) { - const SEQ( double )& rList = aCoeffList[ n1 ]; + const SEQ( double )& rList = aCoeffList[ n1 ]; nE2 = rList.getLength(); - const double* pList = rList.getConstArray(); + const double* pList = rList.getConstArray(); for( n2 = 0 ; n2 < nE2 ; n2++ ) { @@ -868,8 +868,8 @@ double SAL_CALL AnalysisAddIn::getGcd( constREFXPS& xOpt, const SEQSEQ( double ) if( aValList.Count() == 0 ) return 0.0; - const double* p = aValList.First(); - double f = *p; + const double* p = aValList.First(); + double f = *p; p = aValList.Next(); @@ -893,8 +893,8 @@ double SAL_CALL AnalysisAddIn::getLcm( constREFXPS& xOpt, const SEQSEQ( double ) if( aValList.Count() == 0 ) return 0.0; - const double* p = aValList.First(); - double f = *p; + const double* p = aValList.First(); + double f = *p; if( f == 0.0 ) return f; @@ -903,7 +903,7 @@ double SAL_CALL AnalysisAddIn::getLcm( constREFXPS& xOpt, const SEQSEQ( double ) while( p ) { - double fTmp = *p; + double fTmp = *p; if( f == 0.0 ) return f; else @@ -944,7 +944,7 @@ double SAL_CALL AnalysisAddIn::getBessely( double fNum, sal_Int32 nOrder ) THROW if( nOrder < 0 || fNum <= 0.0 ) THROW_IAE; -// return yn( nOrder, fNum ); +// return yn( nOrder, fNum ); double fRet = sca::analysis::BesselY( fNum, nOrder ); RETURN_FINITE( fRet ); } @@ -1110,7 +1110,7 @@ double SAL_CALL AnalysisAddIn::getImaginary( const STRING& aNum ) THROWDEF_RTE_I STRING SAL_CALL AnalysisAddIn::getImpower( const STRING& aNum, double f ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Power( f ); @@ -1127,7 +1127,7 @@ double SAL_CALL AnalysisAddIn::getImargument( const STRING& aNum ) THROWDEF_RTE_ STRING SAL_CALL AnalysisAddIn::getImcos( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Cos(); @@ -1137,7 +1137,7 @@ STRING SAL_CALL AnalysisAddIn::getImcos( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImdiv( const STRING& aDivid, const STRING& aDivis ) THROWDEF_RTE_IAE { - Complex z( aDivid ); + Complex z( aDivid ); z.Div( Complex( aDivis ) ); @@ -1147,7 +1147,7 @@ STRING SAL_CALL AnalysisAddIn::getImdiv( const STRING& aDivid, const STRING& aDi STRING SAL_CALL AnalysisAddIn::getImexp( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Exp(); @@ -1157,7 +1157,7 @@ STRING SAL_CALL AnalysisAddIn::getImexp( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImconjugate( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Conjugate(); @@ -1167,7 +1167,7 @@ STRING SAL_CALL AnalysisAddIn::getImconjugate( const STRING& aNum ) THROWDEF_RTE STRING SAL_CALL AnalysisAddIn::getImln( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Ln(); @@ -1177,7 +1177,7 @@ STRING SAL_CALL AnalysisAddIn::getImln( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImlog10( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Log10(); @@ -1187,7 +1187,7 @@ STRING SAL_CALL AnalysisAddIn::getImlog10( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImlog2( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Log2(); @@ -1197,17 +1197,17 @@ STRING SAL_CALL AnalysisAddIn::getImlog2( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImproduct( constREFXPS&, const SEQSEQ( STRING )& aNum1, const SEQ( uno::Any )& aNL ) THROWDEF_RTE_IAE { - ComplexList z_list; + ComplexList z_list; z_list.Append( aNum1, AH_IgnoreEmpty ); z_list.Append( aNL, AH_IgnoreEmpty ); - const Complex* p = z_list.First(); + const Complex* p = z_list.First(); if( !p ) return Complex( 0 ).GetString(); - Complex z( *p ); + Complex z( *p ); for( p = z_list.Next() ; p ; p = z_list.Next() ) z.Mult( *p ); @@ -1225,7 +1225,7 @@ double SAL_CALL AnalysisAddIn::getImreal( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImsin( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); z.Sin(); @@ -1235,7 +1235,7 @@ STRING SAL_CALL AnalysisAddIn::getImsin( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getImsub( const STRING& aNum1, const STRING& aNum2 ) THROWDEF_RTE_IAE { - Complex z( aNum1 ); + Complex z( aNum1 ); z.Sub( Complex( aNum2 ) ); @@ -1245,17 +1245,17 @@ STRING SAL_CALL AnalysisAddIn::getImsub( const STRING& aNum1, const STRING& aNum STRING SAL_CALL AnalysisAddIn::getImsum( constREFXPS&, const SEQSEQ( STRING )& aNum1, const SEQ( CSS::uno::Any )& aFollowingPars ) THROWDEF_RTE_IAE { - ComplexList z_list; + ComplexList z_list; z_list.Append( aNum1, AH_IgnoreEmpty ); z_list.Append( aFollowingPars, AH_IgnoreEmpty ); - const Complex* p = z_list.First(); + const Complex* p = z_list.First(); if( !p ) return Complex( 0 ).GetString(); - Complex z( *p ); + Complex z( *p ); for( p = z_list.Next() ; p ; p = z_list.Next() ) z.Add( *p ); @@ -1266,9 +1266,9 @@ STRING SAL_CALL AnalysisAddIn::getImsum( constREFXPS&, const SEQSEQ( STRING )& a STRING SAL_CALL AnalysisAddIn::getImsqrt( const STRING& aNum ) THROWDEF_RTE_IAE { - Complex z( aNum ); + Complex z( aNum ); -// z.Power( 0.5 ); +// z.Power( 0.5 ); z.Sqrt(); return z.GetString(); @@ -1277,7 +1277,7 @@ STRING SAL_CALL AnalysisAddIn::getImsqrt( const STRING& aNum ) THROWDEF_RTE_IAE STRING SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const ANY& rSuff ) THROWDEF_RTE_IAE { - sal_Bool bi; + sal_Bool bi; switch( rSuff.getValueTypeClass() ) { @@ -1286,7 +1286,7 @@ STRING SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const ANY& rSuf break; case uno::TypeClass_STRING: { - const STRING* pSuff = ( const STRING* ) rSuff.getValue(); + const STRING* pSuff = ( const STRING* ) rSuff.getValue(); bi = pSuff->compareToAscii( "i" ) == 0 || pSuff->getLength() == 0; if( !bi && pSuff->compareToAscii( "j" ) != 0 ) THROW_IAE; diff --git a/scaddins/source/analysis/analysis.hrc b/scaddins/source/analysis/analysis.hrc index 1cb2580fdebb..7b5b94ff178c 100644 --- a/scaddins/source/analysis/analysis.hrc +++ b/scaddins/source/analysis/analysis.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,303 +28,303 @@ #define SCADDINS_ANALYSIS_HRC -#define ANALYSIS_RESOURCE_START 1000 +#define ANALYSIS_RESOURCE_START 1000 -#define RID_ANALYSIS_FUNCTION_DESCRIPTIONS (ANALYSIS_RESOURCE_START+1000) -#define RID_ANALYSIS_FUNCTION_NAMES (ANALYSIS_RESOURCE_START+2000) -#define RID_ANALYSIS_DEFFUNCTION_NAMES (ANALYSIS_RESOURCE_START+3000) +#define RID_ANALYSIS_FUNCTION_DESCRIPTIONS (ANALYSIS_RESOURCE_START+1000) +#define RID_ANALYSIS_FUNCTION_NAMES (ANALYSIS_RESOURCE_START+2000) +#define RID_ANALYSIS_DEFFUNCTION_NAMES (ANALYSIS_RESOURCE_START+3000) -#define ANALYSIS_FUNCDESC_START (ANALYSIS_RESOURCE_START) +#define ANALYSIS_FUNCDESC_START (ANALYSIS_RESOURCE_START) -#define ANALYSIS_Workday (ANALYSIS_FUNCDESC_START) -#define ANALYSIS_Yearfrac (ANALYSIS_FUNCDESC_START+1) -#define ANALYSIS_Edate (ANALYSIS_FUNCDESC_START+2) +#define ANALYSIS_Workday (ANALYSIS_FUNCDESC_START) +#define ANALYSIS_Yearfrac (ANALYSIS_FUNCDESC_START+1) +#define ANALYSIS_Edate (ANALYSIS_FUNCDESC_START+2) #define ANALYSIS_Weeknum (ANALYSIS_FUNCDESC_START+3) #define ANALYSIS_Eomonth (ANALYSIS_FUNCDESC_START+4) -#define ANALYSIS_Networkdays (ANALYSIS_FUNCDESC_START+5) +#define ANALYSIS_Networkdays (ANALYSIS_FUNCDESC_START+5) #define ANALYSIS_Iseven (ANALYSIS_FUNCDESC_START+6) #define ANALYSIS_Isodd (ANALYSIS_FUNCDESC_START+7) -#define ANALYSIS_Multinomial (ANALYSIS_FUNCDESC_START+8) -#define ANALYSIS_Seriessum (ANALYSIS_FUNCDESC_START+9) -#define ANALYSIS_Quotient (ANALYSIS_FUNCDESC_START+10) -#define ANALYSIS_Mround (ANALYSIS_FUNCDESC_START+11) +#define ANALYSIS_Multinomial (ANALYSIS_FUNCDESC_START+8) +#define ANALYSIS_Seriessum (ANALYSIS_FUNCDESC_START+9) +#define ANALYSIS_Quotient (ANALYSIS_FUNCDESC_START+10) +#define ANALYSIS_Mround (ANALYSIS_FUNCDESC_START+11) #define ANALYSIS_Sqrtpi (ANALYSIS_FUNCDESC_START+12) -#define ANALYSIS_Randbetween (ANALYSIS_FUNCDESC_START+13) +#define ANALYSIS_Randbetween (ANALYSIS_FUNCDESC_START+13) #define ANALYSIS_Gcd (ANALYSIS_FUNCDESC_START+14) #define ANALYSIS_Lcm (ANALYSIS_FUNCDESC_START+15) #define ANALYSIS_Besseli (ANALYSIS_FUNCDESC_START+16) #define ANALYSIS_Besselj (ANALYSIS_FUNCDESC_START+17) #define ANALYSIS_Besselk (ANALYSIS_FUNCDESC_START+18) #define ANALYSIS_Bessely (ANALYSIS_FUNCDESC_START+19) -#define ANALYSIS_Bin2Oct (ANALYSIS_FUNCDESC_START+20) -#define ANALYSIS_Bin2Dec (ANALYSIS_FUNCDESC_START+21) -#define ANALYSIS_Bin2Hex (ANALYSIS_FUNCDESC_START+22) -#define ANALYSIS_Oct2Bin (ANALYSIS_FUNCDESC_START+23) -#define ANALYSIS_Oct2Dec (ANALYSIS_FUNCDESC_START+24) -#define ANALYSIS_Oct2Hex (ANALYSIS_FUNCDESC_START+25) -#define ANALYSIS_Dec2Bin (ANALYSIS_FUNCDESC_START+26) -#define ANALYSIS_Dec2Hex (ANALYSIS_FUNCDESC_START+27) -#define ANALYSIS_Dec2Oct (ANALYSIS_FUNCDESC_START+28) -#define ANALYSIS_Hex2Bin (ANALYSIS_FUNCDESC_START+29) -#define ANALYSIS_Hex2Dec (ANALYSIS_FUNCDESC_START+30) -#define ANALYSIS_Hex2Oct (ANALYSIS_FUNCDESC_START+31) -#define ANALYSIS_Delta (ANALYSIS_FUNCDESC_START+32) -#define ANALYSIS_Erf (ANALYSIS_FUNCDESC_START+33) -#define ANALYSIS_Erfc (ANALYSIS_FUNCDESC_START+34) +#define ANALYSIS_Bin2Oct (ANALYSIS_FUNCDESC_START+20) +#define ANALYSIS_Bin2Dec (ANALYSIS_FUNCDESC_START+21) +#define ANALYSIS_Bin2Hex (ANALYSIS_FUNCDESC_START+22) +#define ANALYSIS_Oct2Bin (ANALYSIS_FUNCDESC_START+23) +#define ANALYSIS_Oct2Dec (ANALYSIS_FUNCDESC_START+24) +#define ANALYSIS_Oct2Hex (ANALYSIS_FUNCDESC_START+25) +#define ANALYSIS_Dec2Bin (ANALYSIS_FUNCDESC_START+26) +#define ANALYSIS_Dec2Hex (ANALYSIS_FUNCDESC_START+27) +#define ANALYSIS_Dec2Oct (ANALYSIS_FUNCDESC_START+28) +#define ANALYSIS_Hex2Bin (ANALYSIS_FUNCDESC_START+29) +#define ANALYSIS_Hex2Dec (ANALYSIS_FUNCDESC_START+30) +#define ANALYSIS_Hex2Oct (ANALYSIS_FUNCDESC_START+31) +#define ANALYSIS_Delta (ANALYSIS_FUNCDESC_START+32) +#define ANALYSIS_Erf (ANALYSIS_FUNCDESC_START+33) +#define ANALYSIS_Erfc (ANALYSIS_FUNCDESC_START+34) #define ANALYSIS_Gestep (ANALYSIS_FUNCDESC_START+35) -#define ANALYSIS_Factdouble (ANALYSIS_FUNCDESC_START+36) -#define ANALYSIS_Imabs (ANALYSIS_FUNCDESC_START+37) -#define ANALYSIS_Imaginary (ANALYSIS_FUNCDESC_START+38) -#define ANALYSIS_Impower (ANALYSIS_FUNCDESC_START+39) -#define ANALYSIS_Imargument (ANALYSIS_FUNCDESC_START+40) -#define ANALYSIS_Imcos (ANALYSIS_FUNCDESC_START+41) -#define ANALYSIS_Imdiv (ANALYSIS_FUNCDESC_START+42) -#define ANALYSIS_Imexp (ANALYSIS_FUNCDESC_START+43) -#define ANALYSIS_Imconjugate (ANALYSIS_FUNCDESC_START+44) -#define ANALYSIS_Imln (ANALYSIS_FUNCDESC_START+45) -#define ANALYSIS_Imlog10 (ANALYSIS_FUNCDESC_START+46) -#define ANALYSIS_Imlog2 (ANALYSIS_FUNCDESC_START+47) -#define ANALYSIS_Improduct (ANALYSIS_FUNCDESC_START+48) -#define ANALYSIS_Imreal (ANALYSIS_FUNCDESC_START+49) -#define ANALYSIS_Imsin (ANALYSIS_FUNCDESC_START+50) -#define ANALYSIS_Imsub (ANALYSIS_FUNCDESC_START+51) -#define ANALYSIS_Imsqrt (ANALYSIS_FUNCDESC_START+52) -#define ANALYSIS_Imsum (ANALYSIS_FUNCDESC_START+53) -#define ANALYSIS_Complex (ANALYSIS_FUNCDESC_START+54) +#define ANALYSIS_Factdouble (ANALYSIS_FUNCDESC_START+36) +#define ANALYSIS_Imabs (ANALYSIS_FUNCDESC_START+37) +#define ANALYSIS_Imaginary (ANALYSIS_FUNCDESC_START+38) +#define ANALYSIS_Impower (ANALYSIS_FUNCDESC_START+39) +#define ANALYSIS_Imargument (ANALYSIS_FUNCDESC_START+40) +#define ANALYSIS_Imcos (ANALYSIS_FUNCDESC_START+41) +#define ANALYSIS_Imdiv (ANALYSIS_FUNCDESC_START+42) +#define ANALYSIS_Imexp (ANALYSIS_FUNCDESC_START+43) +#define ANALYSIS_Imconjugate (ANALYSIS_FUNCDESC_START+44) +#define ANALYSIS_Imln (ANALYSIS_FUNCDESC_START+45) +#define ANALYSIS_Imlog10 (ANALYSIS_FUNCDESC_START+46) +#define ANALYSIS_Imlog2 (ANALYSIS_FUNCDESC_START+47) +#define ANALYSIS_Improduct (ANALYSIS_FUNCDESC_START+48) +#define ANALYSIS_Imreal (ANALYSIS_FUNCDESC_START+49) +#define ANALYSIS_Imsin (ANALYSIS_FUNCDESC_START+50) +#define ANALYSIS_Imsub (ANALYSIS_FUNCDESC_START+51) +#define ANALYSIS_Imsqrt (ANALYSIS_FUNCDESC_START+52) +#define ANALYSIS_Imsum (ANALYSIS_FUNCDESC_START+53) +#define ANALYSIS_Complex (ANALYSIS_FUNCDESC_START+54) #define ANALYSIS_Convert (ANALYSIS_FUNCDESC_START+55) -#define ANALYSIS_Amordegrc (ANALYSIS_FUNCDESC_START+56) -#define ANALYSIS_Amorlinc (ANALYSIS_FUNCDESC_START+57) -#define ANALYSIS_Accrint (ANALYSIS_FUNCDESC_START+58) -#define ANALYSIS_Accrintm (ANALYSIS_FUNCDESC_START+59) -#define ANALYSIS_Received (ANALYSIS_FUNCDESC_START+60) -#define ANALYSIS_Disc (ANALYSIS_FUNCDESC_START+61) -#define ANALYSIS_Duration (ANALYSIS_FUNCDESC_START+62) +#define ANALYSIS_Amordegrc (ANALYSIS_FUNCDESC_START+56) +#define ANALYSIS_Amorlinc (ANALYSIS_FUNCDESC_START+57) +#define ANALYSIS_Accrint (ANALYSIS_FUNCDESC_START+58) +#define ANALYSIS_Accrintm (ANALYSIS_FUNCDESC_START+59) +#define ANALYSIS_Received (ANALYSIS_FUNCDESC_START+60) +#define ANALYSIS_Disc (ANALYSIS_FUNCDESC_START+61) +#define ANALYSIS_Duration (ANALYSIS_FUNCDESC_START+62) #define ANALYSIS_Effect (ANALYSIS_FUNCDESC_START+63) #define ANALYSIS_Cumprinc (ANALYSIS_FUNCDESC_START+64) #define ANALYSIS_Cumipmt (ANALYSIS_FUNCDESC_START+65) -#define ANALYSIS_Price (ANALYSIS_FUNCDESC_START+66) -#define ANALYSIS_Pricedisc (ANALYSIS_FUNCDESC_START+67) -#define ANALYSIS_Pricemat (ANALYSIS_FUNCDESC_START+68) -#define ANALYSIS_Mduration (ANALYSIS_FUNCDESC_START+69) +#define ANALYSIS_Price (ANALYSIS_FUNCDESC_START+66) +#define ANALYSIS_Pricedisc (ANALYSIS_FUNCDESC_START+67) +#define ANALYSIS_Pricemat (ANALYSIS_FUNCDESC_START+68) +#define ANALYSIS_Mduration (ANALYSIS_FUNCDESC_START+69) #define ANALYSIS_Nominal (ANALYSIS_FUNCDESC_START+70) -#define ANALYSIS_Dollarfr (ANALYSIS_FUNCDESC_START+71) -#define ANALYSIS_Dollarde (ANALYSIS_FUNCDESC_START+72) -#define ANALYSIS_Yield (ANALYSIS_FUNCDESC_START+73) -#define ANALYSIS_Yielddisc (ANALYSIS_FUNCDESC_START+74) -#define ANALYSIS_Yieldmat (ANALYSIS_FUNCDESC_START+75) -#define ANALYSIS_Tbilleq (ANALYSIS_FUNCDESC_START+76) -#define ANALYSIS_Tbillprice (ANALYSIS_FUNCDESC_START+77) -#define ANALYSIS_Tbillyield (ANALYSIS_FUNCDESC_START+78) -#define ANALYSIS_Oddfprice (ANALYSIS_FUNCDESC_START+79) -#define ANALYSIS_Oddfyield (ANALYSIS_FUNCDESC_START+80) -#define ANALYSIS_Oddlprice (ANALYSIS_FUNCDESC_START+81) -#define ANALYSIS_Oddlyield (ANALYSIS_FUNCDESC_START+82) -#define ANALYSIS_Xirr (ANALYSIS_FUNCDESC_START+83) -#define ANALYSIS_Xnpv (ANALYSIS_FUNCDESC_START+84) -#define ANALYSIS_Intrate (ANALYSIS_FUNCDESC_START+85) -#define ANALYSIS_Coupncd (ANALYSIS_FUNCDESC_START+86) -#define ANALYSIS_Coupdays (ANALYSIS_FUNCDESC_START+87) -#define ANALYSIS_Coupdaysnc (ANALYSIS_FUNCDESC_START+88) -#define ANALYSIS_Coupdaybs (ANALYSIS_FUNCDESC_START+89) -#define ANALYSIS_Couppcd (ANALYSIS_FUNCDESC_START+90) -#define ANALYSIS_Coupnum (ANALYSIS_FUNCDESC_START+91) -#define ANALYSIS_Fvschedule (ANALYSIS_FUNCDESC_START+92) +#define ANALYSIS_Dollarfr (ANALYSIS_FUNCDESC_START+71) +#define ANALYSIS_Dollarde (ANALYSIS_FUNCDESC_START+72) +#define ANALYSIS_Yield (ANALYSIS_FUNCDESC_START+73) +#define ANALYSIS_Yielddisc (ANALYSIS_FUNCDESC_START+74) +#define ANALYSIS_Yieldmat (ANALYSIS_FUNCDESC_START+75) +#define ANALYSIS_Tbilleq (ANALYSIS_FUNCDESC_START+76) +#define ANALYSIS_Tbillprice (ANALYSIS_FUNCDESC_START+77) +#define ANALYSIS_Tbillyield (ANALYSIS_FUNCDESC_START+78) +#define ANALYSIS_Oddfprice (ANALYSIS_FUNCDESC_START+79) +#define ANALYSIS_Oddfyield (ANALYSIS_FUNCDESC_START+80) +#define ANALYSIS_Oddlprice (ANALYSIS_FUNCDESC_START+81) +#define ANALYSIS_Oddlyield (ANALYSIS_FUNCDESC_START+82) +#define ANALYSIS_Xirr (ANALYSIS_FUNCDESC_START+83) +#define ANALYSIS_Xnpv (ANALYSIS_FUNCDESC_START+84) +#define ANALYSIS_Intrate (ANALYSIS_FUNCDESC_START+85) +#define ANALYSIS_Coupncd (ANALYSIS_FUNCDESC_START+86) +#define ANALYSIS_Coupdays (ANALYSIS_FUNCDESC_START+87) +#define ANALYSIS_Coupdaysnc (ANALYSIS_FUNCDESC_START+88) +#define ANALYSIS_Coupdaybs (ANALYSIS_FUNCDESC_START+89) +#define ANALYSIS_Couppcd (ANALYSIS_FUNCDESC_START+90) +#define ANALYSIS_Coupnum (ANALYSIS_FUNCDESC_START+91) +#define ANALYSIS_Fvschedule (ANALYSIS_FUNCDESC_START+92) -#define ANALYSIS_FUNCNAME_START (1) +#define ANALYSIS_FUNCNAME_START (1) -#define ANALYSIS_FUNCNAME_Workday (ANALYSIS_FUNCNAME_START) -#define ANALYSIS_FUNCNAME_Yearfrac (ANALYSIS_FUNCNAME_START+1) -#define ANALYSIS_FUNCNAME_Edate (ANALYSIS_FUNCNAME_START+2) -#define ANALYSIS_FUNCNAME_Weeknum (ANALYSIS_FUNCNAME_START+3) -#define ANALYSIS_FUNCNAME_Eomonth (ANALYSIS_FUNCNAME_START+4) -#define ANALYSIS_FUNCNAME_Networkdays (ANALYSIS_FUNCNAME_START+5) -#define ANALYSIS_FUNCNAME_Iseven (ANALYSIS_FUNCNAME_START+6) -#define ANALYSIS_FUNCNAME_Isodd (ANALYSIS_FUNCNAME_START+7) -#define ANALYSIS_FUNCNAME_Multinomial (ANALYSIS_FUNCNAME_START+8) -#define ANALYSIS_FUNCNAME_Seriessum (ANALYSIS_FUNCNAME_START+9) -#define ANALYSIS_FUNCNAME_Quotient (ANALYSIS_FUNCNAME_START+10) -#define ANALYSIS_FUNCNAME_Mround (ANALYSIS_FUNCNAME_START+11) -#define ANALYSIS_FUNCNAME_Sqrtpi (ANALYSIS_FUNCNAME_START+12) -#define ANALYSIS_FUNCNAME_Randbetween (ANALYSIS_FUNCNAME_START+13) -#define ANALYSIS_FUNCNAME_Gcd (ANALYSIS_FUNCNAME_START+14) -#define ANALYSIS_FUNCNAME_Lcm (ANALYSIS_FUNCNAME_START+15) -#define ANALYSIS_FUNCNAME_Besseli (ANALYSIS_FUNCNAME_START+16) -#define ANALYSIS_FUNCNAME_Besselj (ANALYSIS_FUNCNAME_START+17) -#define ANALYSIS_FUNCNAME_Besselk (ANALYSIS_FUNCNAME_START+18) -#define ANALYSIS_FUNCNAME_Bessely (ANALYSIS_FUNCNAME_START+19) -#define ANALYSIS_FUNCNAME_Bin2Oct (ANALYSIS_FUNCNAME_START+20) -#define ANALYSIS_FUNCNAME_Bin2Dec (ANALYSIS_FUNCNAME_START+21) -#define ANALYSIS_FUNCNAME_Bin2Hex (ANALYSIS_FUNCNAME_START+22) -#define ANALYSIS_FUNCNAME_Oct2Bin (ANALYSIS_FUNCNAME_START+23) -#define ANALYSIS_FUNCNAME_Oct2Dec (ANALYSIS_FUNCNAME_START+24) -#define ANALYSIS_FUNCNAME_Oct2Hex (ANALYSIS_FUNCNAME_START+25) -#define ANALYSIS_FUNCNAME_Dec2Bin (ANALYSIS_FUNCNAME_START+26) -#define ANALYSIS_FUNCNAME_Dec2Hex (ANALYSIS_FUNCNAME_START+27) -#define ANALYSIS_FUNCNAME_Dec2Oct (ANALYSIS_FUNCNAME_START+28) -#define ANALYSIS_FUNCNAME_Hex2Bin (ANALYSIS_FUNCNAME_START+29) -#define ANALYSIS_FUNCNAME_Hex2Dec (ANALYSIS_FUNCNAME_START+30) -#define ANALYSIS_FUNCNAME_Hex2Oct (ANALYSIS_FUNCNAME_START+31) -#define ANALYSIS_FUNCNAME_Delta (ANALYSIS_FUNCNAME_START+32) -#define ANALYSIS_FUNCNAME_Erf (ANALYSIS_FUNCNAME_START+33) -#define ANALYSIS_FUNCNAME_Erfc (ANALYSIS_FUNCNAME_START+34) -#define ANALYSIS_FUNCNAME_Gestep (ANALYSIS_FUNCNAME_START+35) -#define ANALYSIS_FUNCNAME_Factdouble (ANALYSIS_FUNCNAME_START+36) -#define ANALYSIS_FUNCNAME_Imabs (ANALYSIS_FUNCNAME_START+37) -#define ANALYSIS_FUNCNAME_Imaginary (ANALYSIS_FUNCNAME_START+38) -#define ANALYSIS_FUNCNAME_Impower (ANALYSIS_FUNCNAME_START+39) -#define ANALYSIS_FUNCNAME_Imargument (ANALYSIS_FUNCNAME_START+40) -#define ANALYSIS_FUNCNAME_Imcos (ANALYSIS_FUNCNAME_START+41) -#define ANALYSIS_FUNCNAME_Imdiv (ANALYSIS_FUNCNAME_START+42) -#define ANALYSIS_FUNCNAME_Imexp (ANALYSIS_FUNCNAME_START+43) -#define ANALYSIS_FUNCNAME_Imconjugate (ANALYSIS_FUNCNAME_START+44) -#define ANALYSIS_FUNCNAME_Imln (ANALYSIS_FUNCNAME_START+45) -#define ANALYSIS_FUNCNAME_Imlog10 (ANALYSIS_FUNCNAME_START+46) -#define ANALYSIS_FUNCNAME_Imlog2 (ANALYSIS_FUNCNAME_START+47) -#define ANALYSIS_FUNCNAME_Improduct (ANALYSIS_FUNCNAME_START+48) -#define ANALYSIS_FUNCNAME_Imreal (ANALYSIS_FUNCNAME_START+49) -#define ANALYSIS_FUNCNAME_Imsin (ANALYSIS_FUNCNAME_START+50) -#define ANALYSIS_FUNCNAME_Imsub (ANALYSIS_FUNCNAME_START+51) -#define ANALYSIS_FUNCNAME_Imsqrt (ANALYSIS_FUNCNAME_START+52) -#define ANALYSIS_FUNCNAME_Imsum (ANALYSIS_FUNCNAME_START+53) -#define ANALYSIS_FUNCNAME_Complex (ANALYSIS_FUNCNAME_START+54) -#define ANALYSIS_FUNCNAME_Convert (ANALYSIS_FUNCNAME_START+55) -#define ANALYSIS_FUNCNAME_Amordegrc (ANALYSIS_FUNCNAME_START+56) -#define ANALYSIS_FUNCNAME_Amorlinc (ANALYSIS_FUNCNAME_START+57) -#define ANALYSIS_FUNCNAME_Accrint (ANALYSIS_FUNCNAME_START+58) -#define ANALYSIS_FUNCNAME_Accrintm (ANALYSIS_FUNCNAME_START+59) -#define ANALYSIS_FUNCNAME_Received (ANALYSIS_FUNCNAME_START+60) -#define ANALYSIS_FUNCNAME_Disc (ANALYSIS_FUNCNAME_START+61) -#define ANALYSIS_FUNCNAME_Duration (ANALYSIS_FUNCNAME_START+62) -#define ANALYSIS_FUNCNAME_Effect (ANALYSIS_FUNCNAME_START+63) -#define ANALYSIS_FUNCNAME_Cumprinc (ANALYSIS_FUNCNAME_START+64) -#define ANALYSIS_FUNCNAME_Cumipmt (ANALYSIS_FUNCNAME_START+65) -#define ANALYSIS_FUNCNAME_Price (ANALYSIS_FUNCNAME_START+66) -#define ANALYSIS_FUNCNAME_Pricedisc (ANALYSIS_FUNCNAME_START+67) -#define ANALYSIS_FUNCNAME_Pricemat (ANALYSIS_FUNCNAME_START+68) -#define ANALYSIS_FUNCNAME_Mduration (ANALYSIS_FUNCNAME_START+69) -#define ANALYSIS_FUNCNAME_Nominal (ANALYSIS_FUNCNAME_START+70) -#define ANALYSIS_FUNCNAME_Dollarfr (ANALYSIS_FUNCNAME_START+71) -#define ANALYSIS_FUNCNAME_Dollarde (ANALYSIS_FUNCNAME_START+72) -#define ANALYSIS_FUNCNAME_Yield (ANALYSIS_FUNCNAME_START+73) -#define ANALYSIS_FUNCNAME_Yielddisc (ANALYSIS_FUNCNAME_START+74) -#define ANALYSIS_FUNCNAME_Yieldmat (ANALYSIS_FUNCNAME_START+75) -#define ANALYSIS_FUNCNAME_Tbilleq (ANALYSIS_FUNCNAME_START+76) -#define ANALYSIS_FUNCNAME_Tbillprice (ANALYSIS_FUNCNAME_START+77) -#define ANALYSIS_FUNCNAME_Tbillyield (ANALYSIS_FUNCNAME_START+78) -#define ANALYSIS_FUNCNAME_Oddfprice (ANALYSIS_FUNCNAME_START+79) -#define ANALYSIS_FUNCNAME_Oddfyield (ANALYSIS_FUNCNAME_START+80) -#define ANALYSIS_FUNCNAME_Oddlprice (ANALYSIS_FUNCNAME_START+81) -#define ANALYSIS_FUNCNAME_Oddlyield (ANALYSIS_FUNCNAME_START+82) -#define ANALYSIS_FUNCNAME_Xirr (ANALYSIS_FUNCNAME_START+83) -#define ANALYSIS_FUNCNAME_Xnpv (ANALYSIS_FUNCNAME_START+84) -#define ANALYSIS_FUNCNAME_Intrate (ANALYSIS_FUNCNAME_START+85) -#define ANALYSIS_FUNCNAME_Coupncd (ANALYSIS_FUNCNAME_START+86) -#define ANALYSIS_FUNCNAME_Coupdays (ANALYSIS_FUNCNAME_START+87) -#define ANALYSIS_FUNCNAME_Coupdaysnc (ANALYSIS_FUNCNAME_START+88) -#define ANALYSIS_FUNCNAME_Coupdaybs (ANALYSIS_FUNCNAME_START+89) -#define ANALYSIS_FUNCNAME_Couppcd (ANALYSIS_FUNCNAME_START+90) -#define ANALYSIS_FUNCNAME_Coupnum (ANALYSIS_FUNCNAME_START+91) -#define ANALYSIS_FUNCNAME_Fvschedule (ANALYSIS_FUNCNAME_START+92) +#define ANALYSIS_FUNCNAME_Workday (ANALYSIS_FUNCNAME_START) +#define ANALYSIS_FUNCNAME_Yearfrac (ANALYSIS_FUNCNAME_START+1) +#define ANALYSIS_FUNCNAME_Edate (ANALYSIS_FUNCNAME_START+2) +#define ANALYSIS_FUNCNAME_Weeknum (ANALYSIS_FUNCNAME_START+3) +#define ANALYSIS_FUNCNAME_Eomonth (ANALYSIS_FUNCNAME_START+4) +#define ANALYSIS_FUNCNAME_Networkdays (ANALYSIS_FUNCNAME_START+5) +#define ANALYSIS_FUNCNAME_Iseven (ANALYSIS_FUNCNAME_START+6) +#define ANALYSIS_FUNCNAME_Isodd (ANALYSIS_FUNCNAME_START+7) +#define ANALYSIS_FUNCNAME_Multinomial (ANALYSIS_FUNCNAME_START+8) +#define ANALYSIS_FUNCNAME_Seriessum (ANALYSIS_FUNCNAME_START+9) +#define ANALYSIS_FUNCNAME_Quotient (ANALYSIS_FUNCNAME_START+10) +#define ANALYSIS_FUNCNAME_Mround (ANALYSIS_FUNCNAME_START+11) +#define ANALYSIS_FUNCNAME_Sqrtpi (ANALYSIS_FUNCNAME_START+12) +#define ANALYSIS_FUNCNAME_Randbetween (ANALYSIS_FUNCNAME_START+13) +#define ANALYSIS_FUNCNAME_Gcd (ANALYSIS_FUNCNAME_START+14) +#define ANALYSIS_FUNCNAME_Lcm (ANALYSIS_FUNCNAME_START+15) +#define ANALYSIS_FUNCNAME_Besseli (ANALYSIS_FUNCNAME_START+16) +#define ANALYSIS_FUNCNAME_Besselj (ANALYSIS_FUNCNAME_START+17) +#define ANALYSIS_FUNCNAME_Besselk (ANALYSIS_FUNCNAME_START+18) +#define ANALYSIS_FUNCNAME_Bessely (ANALYSIS_FUNCNAME_START+19) +#define ANALYSIS_FUNCNAME_Bin2Oct (ANALYSIS_FUNCNAME_START+20) +#define ANALYSIS_FUNCNAME_Bin2Dec (ANALYSIS_FUNCNAME_START+21) +#define ANALYSIS_FUNCNAME_Bin2Hex (ANALYSIS_FUNCNAME_START+22) +#define ANALYSIS_FUNCNAME_Oct2Bin (ANALYSIS_FUNCNAME_START+23) +#define ANALYSIS_FUNCNAME_Oct2Dec (ANALYSIS_FUNCNAME_START+24) +#define ANALYSIS_FUNCNAME_Oct2Hex (ANALYSIS_FUNCNAME_START+25) +#define ANALYSIS_FUNCNAME_Dec2Bin (ANALYSIS_FUNCNAME_START+26) +#define ANALYSIS_FUNCNAME_Dec2Hex (ANALYSIS_FUNCNAME_START+27) +#define ANALYSIS_FUNCNAME_Dec2Oct (ANALYSIS_FUNCNAME_START+28) +#define ANALYSIS_FUNCNAME_Hex2Bin (ANALYSIS_FUNCNAME_START+29) +#define ANALYSIS_FUNCNAME_Hex2Dec (ANALYSIS_FUNCNAME_START+30) +#define ANALYSIS_FUNCNAME_Hex2Oct (ANALYSIS_FUNCNAME_START+31) +#define ANALYSIS_FUNCNAME_Delta (ANALYSIS_FUNCNAME_START+32) +#define ANALYSIS_FUNCNAME_Erf (ANALYSIS_FUNCNAME_START+33) +#define ANALYSIS_FUNCNAME_Erfc (ANALYSIS_FUNCNAME_START+34) +#define ANALYSIS_FUNCNAME_Gestep (ANALYSIS_FUNCNAME_START+35) +#define ANALYSIS_FUNCNAME_Factdouble (ANALYSIS_FUNCNAME_START+36) +#define ANALYSIS_FUNCNAME_Imabs (ANALYSIS_FUNCNAME_START+37) +#define ANALYSIS_FUNCNAME_Imaginary (ANALYSIS_FUNCNAME_START+38) +#define ANALYSIS_FUNCNAME_Impower (ANALYSIS_FUNCNAME_START+39) +#define ANALYSIS_FUNCNAME_Imargument (ANALYSIS_FUNCNAME_START+40) +#define ANALYSIS_FUNCNAME_Imcos (ANALYSIS_FUNCNAME_START+41) +#define ANALYSIS_FUNCNAME_Imdiv (ANALYSIS_FUNCNAME_START+42) +#define ANALYSIS_FUNCNAME_Imexp (ANALYSIS_FUNCNAME_START+43) +#define ANALYSIS_FUNCNAME_Imconjugate (ANALYSIS_FUNCNAME_START+44) +#define ANALYSIS_FUNCNAME_Imln (ANALYSIS_FUNCNAME_START+45) +#define ANALYSIS_FUNCNAME_Imlog10 (ANALYSIS_FUNCNAME_START+46) +#define ANALYSIS_FUNCNAME_Imlog2 (ANALYSIS_FUNCNAME_START+47) +#define ANALYSIS_FUNCNAME_Improduct (ANALYSIS_FUNCNAME_START+48) +#define ANALYSIS_FUNCNAME_Imreal (ANALYSIS_FUNCNAME_START+49) +#define ANALYSIS_FUNCNAME_Imsin (ANALYSIS_FUNCNAME_START+50) +#define ANALYSIS_FUNCNAME_Imsub (ANALYSIS_FUNCNAME_START+51) +#define ANALYSIS_FUNCNAME_Imsqrt (ANALYSIS_FUNCNAME_START+52) +#define ANALYSIS_FUNCNAME_Imsum (ANALYSIS_FUNCNAME_START+53) +#define ANALYSIS_FUNCNAME_Complex (ANALYSIS_FUNCNAME_START+54) +#define ANALYSIS_FUNCNAME_Convert (ANALYSIS_FUNCNAME_START+55) +#define ANALYSIS_FUNCNAME_Amordegrc (ANALYSIS_FUNCNAME_START+56) +#define ANALYSIS_FUNCNAME_Amorlinc (ANALYSIS_FUNCNAME_START+57) +#define ANALYSIS_FUNCNAME_Accrint (ANALYSIS_FUNCNAME_START+58) +#define ANALYSIS_FUNCNAME_Accrintm (ANALYSIS_FUNCNAME_START+59) +#define ANALYSIS_FUNCNAME_Received (ANALYSIS_FUNCNAME_START+60) +#define ANALYSIS_FUNCNAME_Disc (ANALYSIS_FUNCNAME_START+61) +#define ANALYSIS_FUNCNAME_Duration (ANALYSIS_FUNCNAME_START+62) +#define ANALYSIS_FUNCNAME_Effect (ANALYSIS_FUNCNAME_START+63) +#define ANALYSIS_FUNCNAME_Cumprinc (ANALYSIS_FUNCNAME_START+64) +#define ANALYSIS_FUNCNAME_Cumipmt (ANALYSIS_FUNCNAME_START+65) +#define ANALYSIS_FUNCNAME_Price (ANALYSIS_FUNCNAME_START+66) +#define ANALYSIS_FUNCNAME_Pricedisc (ANALYSIS_FUNCNAME_START+67) +#define ANALYSIS_FUNCNAME_Pricemat (ANALYSIS_FUNCNAME_START+68) +#define ANALYSIS_FUNCNAME_Mduration (ANALYSIS_FUNCNAME_START+69) +#define ANALYSIS_FUNCNAME_Nominal (ANALYSIS_FUNCNAME_START+70) +#define ANALYSIS_FUNCNAME_Dollarfr (ANALYSIS_FUNCNAME_START+71) +#define ANALYSIS_FUNCNAME_Dollarde (ANALYSIS_FUNCNAME_START+72) +#define ANALYSIS_FUNCNAME_Yield (ANALYSIS_FUNCNAME_START+73) +#define ANALYSIS_FUNCNAME_Yielddisc (ANALYSIS_FUNCNAME_START+74) +#define ANALYSIS_FUNCNAME_Yieldmat (ANALYSIS_FUNCNAME_START+75) +#define ANALYSIS_FUNCNAME_Tbilleq (ANALYSIS_FUNCNAME_START+76) +#define ANALYSIS_FUNCNAME_Tbillprice (ANALYSIS_FUNCNAME_START+77) +#define ANALYSIS_FUNCNAME_Tbillyield (ANALYSIS_FUNCNAME_START+78) +#define ANALYSIS_FUNCNAME_Oddfprice (ANALYSIS_FUNCNAME_START+79) +#define ANALYSIS_FUNCNAME_Oddfyield (ANALYSIS_FUNCNAME_START+80) +#define ANALYSIS_FUNCNAME_Oddlprice (ANALYSIS_FUNCNAME_START+81) +#define ANALYSIS_FUNCNAME_Oddlyield (ANALYSIS_FUNCNAME_START+82) +#define ANALYSIS_FUNCNAME_Xirr (ANALYSIS_FUNCNAME_START+83) +#define ANALYSIS_FUNCNAME_Xnpv (ANALYSIS_FUNCNAME_START+84) +#define ANALYSIS_FUNCNAME_Intrate (ANALYSIS_FUNCNAME_START+85) +#define ANALYSIS_FUNCNAME_Coupncd (ANALYSIS_FUNCNAME_START+86) +#define ANALYSIS_FUNCNAME_Coupdays (ANALYSIS_FUNCNAME_START+87) +#define ANALYSIS_FUNCNAME_Coupdaysnc (ANALYSIS_FUNCNAME_START+88) +#define ANALYSIS_FUNCNAME_Coupdaybs (ANALYSIS_FUNCNAME_START+89) +#define ANALYSIS_FUNCNAME_Couppcd (ANALYSIS_FUNCNAME_START+90) +#define ANALYSIS_FUNCNAME_Coupnum (ANALYSIS_FUNCNAME_START+91) +#define ANALYSIS_FUNCNAME_Fvschedule (ANALYSIS_FUNCNAME_START+92) -#define ANALYSIS_DEFFUNCNAME_START (RID_ANALYSIS_DEFFUNCTION_NAMES+1) +#define ANALYSIS_DEFFUNCNAME_START (RID_ANALYSIS_DEFFUNCTION_NAMES+1) -#define ANALYSIS_DEFFUNCNAME_Workday (ANALYSIS_DEFFUNCNAME_START) -#define ANALYSIS_DEFFUNCNAME_Yearfrac (ANALYSIS_DEFFUNCNAME_START+1) -#define ANALYSIS_DEFFUNCNAME_Edate (ANALYSIS_DEFFUNCNAME_START+2) -#define ANALYSIS_DEFFUNCNAME_Weeknum (ANALYSIS_DEFFUNCNAME_START+3) -#define ANALYSIS_DEFFUNCNAME_Eomonth (ANALYSIS_DEFFUNCNAME_START+4) -#define ANALYSIS_DEFFUNCNAME_Networkdays (ANALYSIS_DEFFUNCNAME_START+5) -#define ANALYSIS_DEFFUNCNAME_Iseven (ANALYSIS_DEFFUNCNAME_START+6) -#define ANALYSIS_DEFFUNCNAME_Isodd (ANALYSIS_DEFFUNCNAME_START+7) -#define ANALYSIS_DEFFUNCNAME_Multinomial (ANALYSIS_DEFFUNCNAME_START+8) -#define ANALYSIS_DEFFUNCNAME_Seriessum (ANALYSIS_DEFFUNCNAME_START+9) -#define ANALYSIS_DEFFUNCNAME_Quotient (ANALYSIS_DEFFUNCNAME_START+10) -#define ANALYSIS_DEFFUNCNAME_Mround (ANALYSIS_DEFFUNCNAME_START+11) -#define ANALYSIS_DEFFUNCNAME_Sqrtpi (ANALYSIS_DEFFUNCNAME_START+12) -#define ANALYSIS_DEFFUNCNAME_Randbetween (ANALYSIS_DEFFUNCNAME_START+13) -#define ANALYSIS_DEFFUNCNAME_Gcd (ANALYSIS_DEFFUNCNAME_START+14) -#define ANALYSIS_DEFFUNCNAME_Lcm (ANALYSIS_DEFFUNCNAME_START+15) -#define ANALYSIS_DEFFUNCNAME_Besseli (ANALYSIS_DEFFUNCNAME_START+16) -#define ANALYSIS_DEFFUNCNAME_Besselj (ANALYSIS_DEFFUNCNAME_START+17) -#define ANALYSIS_DEFFUNCNAME_Besselk (ANALYSIS_DEFFUNCNAME_START+18) -#define ANALYSIS_DEFFUNCNAME_Bessely (ANALYSIS_DEFFUNCNAME_START+19) -#define ANALYSIS_DEFFUNCNAME_Bin2Oct (ANALYSIS_DEFFUNCNAME_START+20) -#define ANALYSIS_DEFFUNCNAME_Bin2Dec (ANALYSIS_DEFFUNCNAME_START+21) -#define ANALYSIS_DEFFUNCNAME_Bin2Hex (ANALYSIS_DEFFUNCNAME_START+22) -#define ANALYSIS_DEFFUNCNAME_Oct2Bin (ANALYSIS_DEFFUNCNAME_START+23) -#define ANALYSIS_DEFFUNCNAME_Oct2Dec (ANALYSIS_DEFFUNCNAME_START+24) -#define ANALYSIS_DEFFUNCNAME_Oct2Hex (ANALYSIS_DEFFUNCNAME_START+25) -#define ANALYSIS_DEFFUNCNAME_Dec2Bin (ANALYSIS_DEFFUNCNAME_START+26) -#define ANALYSIS_DEFFUNCNAME_Dec2Hex (ANALYSIS_DEFFUNCNAME_START+27) -#define ANALYSIS_DEFFUNCNAME_Dec2Oct (ANALYSIS_DEFFUNCNAME_START+28) -#define ANALYSIS_DEFFUNCNAME_Hex2Bin (ANALYSIS_DEFFUNCNAME_START+29) -#define ANALYSIS_DEFFUNCNAME_Hex2Dec (ANALYSIS_DEFFUNCNAME_START+30) -#define ANALYSIS_DEFFUNCNAME_Hex2Oct (ANALYSIS_DEFFUNCNAME_START+31) -#define ANALYSIS_DEFFUNCNAME_Delta (ANALYSIS_DEFFUNCNAME_START+32) -#define ANALYSIS_DEFFUNCNAME_Erf (ANALYSIS_DEFFUNCNAME_START+33) -#define ANALYSIS_DEFFUNCNAME_Erfc (ANALYSIS_DEFFUNCNAME_START+34) -#define ANALYSIS_DEFFUNCNAME_Gestep (ANALYSIS_DEFFUNCNAME_START+35) -#define ANALYSIS_DEFFUNCNAME_Factdouble (ANALYSIS_DEFFUNCNAME_START+36) -#define ANALYSIS_DEFFUNCNAME_Imabs (ANALYSIS_DEFFUNCNAME_START+37) -#define ANALYSIS_DEFFUNCNAME_Imaginary (ANALYSIS_DEFFUNCNAME_START+38) -#define ANALYSIS_DEFFUNCNAME_Impower (ANALYSIS_DEFFUNCNAME_START+39) -#define ANALYSIS_DEFFUNCNAME_Imargument (ANALYSIS_DEFFUNCNAME_START+40) -#define ANALYSIS_DEFFUNCNAME_Imcos (ANALYSIS_DEFFUNCNAME_START+41) -#define ANALYSIS_DEFFUNCNAME_Imdiv (ANALYSIS_DEFFUNCNAME_START+42) -#define ANALYSIS_DEFFUNCNAME_Imexp (ANALYSIS_DEFFUNCNAME_START+43) -#define ANALYSIS_DEFFUNCNAME_Imconjugate (ANALYSIS_DEFFUNCNAME_START+44) -#define ANALYSIS_DEFFUNCNAME_Imln (ANALYSIS_DEFFUNCNAME_START+45) -#define ANALYSIS_DEFFUNCNAME_Imlog10 (ANALYSIS_DEFFUNCNAME_START+46) -#define ANALYSIS_DEFFUNCNAME_Imlog2 (ANALYSIS_DEFFUNCNAME_START+47) -#define ANALYSIS_DEFFUNCNAME_Improduct (ANALYSIS_DEFFUNCNAME_START+48) -#define ANALYSIS_DEFFUNCNAME_Imreal (ANALYSIS_DEFFUNCNAME_START+49) -#define ANALYSIS_DEFFUNCNAME_Imsin (ANALYSIS_DEFFUNCNAME_START+50) -#define ANALYSIS_DEFFUNCNAME_Imsub (ANALYSIS_DEFFUNCNAME_START+51) -#define ANALYSIS_DEFFUNCNAME_Imsqrt (ANALYSIS_DEFFUNCNAME_START+52) -#define ANALYSIS_DEFFUNCNAME_Imsum (ANALYSIS_DEFFUNCNAME_START+53) -#define ANALYSIS_DEFFUNCNAME_Complex (ANALYSIS_DEFFUNCNAME_START+54) -#define ANALYSIS_DEFFUNCNAME_Convert (ANALYSIS_DEFFUNCNAME_START+55) -#define ANALYSIS_DEFFUNCNAME_Amordegrc (ANALYSIS_DEFFUNCNAME_START+56) -#define ANALYSIS_DEFFUNCNAME_Amorlinc (ANALYSIS_DEFFUNCNAME_START+57) -#define ANALYSIS_DEFFUNCNAME_Accrint (ANALYSIS_DEFFUNCNAME_START+58) -#define ANALYSIS_DEFFUNCNAME_Accrintm (ANALYSIS_DEFFUNCNAME_START+59) -#define ANALYSIS_DEFFUNCNAME_Received (ANALYSIS_DEFFUNCNAME_START+60) -#define ANALYSIS_DEFFUNCNAME_Disc (ANALYSIS_DEFFUNCNAME_START+61) -#define ANALYSIS_DEFFUNCNAME_Duration (ANALYSIS_DEFFUNCNAME_START+62) -#define ANALYSIS_DEFFUNCNAME_Effect (ANALYSIS_DEFFUNCNAME_START+63) -#define ANALYSIS_DEFFUNCNAME_Cumprinc (ANALYSIS_DEFFUNCNAME_START+64) -#define ANALYSIS_DEFFUNCNAME_Cumipmt (ANALYSIS_DEFFUNCNAME_START+65) -#define ANALYSIS_DEFFUNCNAME_Price (ANALYSIS_DEFFUNCNAME_START+66) -#define ANALYSIS_DEFFUNCNAME_Pricedisc (ANALYSIS_DEFFUNCNAME_START+67) -#define ANALYSIS_DEFFUNCNAME_Pricemat (ANALYSIS_DEFFUNCNAME_START+68) -#define ANALYSIS_DEFFUNCNAME_Mduration (ANALYSIS_DEFFUNCNAME_START+69) -#define ANALYSIS_DEFFUNCNAME_Nominal (ANALYSIS_DEFFUNCNAME_START+70) -#define ANALYSIS_DEFFUNCNAME_Dollarfr (ANALYSIS_DEFFUNCNAME_START+71) -#define ANALYSIS_DEFFUNCNAME_Dollarde (ANALYSIS_DEFFUNCNAME_START+72) -#define ANALYSIS_DEFFUNCNAME_Yield (ANALYSIS_DEFFUNCNAME_START+73) -#define ANALYSIS_DEFFUNCNAME_Yielddisc (ANALYSIS_DEFFUNCNAME_START+74) -#define ANALYSIS_DEFFUNCNAME_Yieldmat (ANALYSIS_DEFFUNCNAME_START+75) -#define ANALYSIS_DEFFUNCNAME_Tbilleq (ANALYSIS_DEFFUNCNAME_START+76) -#define ANALYSIS_DEFFUNCNAME_Tbillprice (ANALYSIS_DEFFUNCNAME_START+77) -#define ANALYSIS_DEFFUNCNAME_Tbillyield (ANALYSIS_DEFFUNCNAME_START+78) -#define ANALYSIS_DEFFUNCNAME_Oddfprice (ANALYSIS_DEFFUNCNAME_START+79) -#define ANALYSIS_DEFFUNCNAME_Oddfyield (ANALYSIS_DEFFUNCNAME_START+80) -#define ANALYSIS_DEFFUNCNAME_Oddlprice (ANALYSIS_DEFFUNCNAME_START+81) -#define ANALYSIS_DEFFUNCNAME_Oddlyield (ANALYSIS_DEFFUNCNAME_START+82) -#define ANALYSIS_DEFFUNCNAME_Xirr (ANALYSIS_DEFFUNCNAME_START+83) -#define ANALYSIS_DEFFUNCNAME_Xnpv (ANALYSIS_DEFFUNCNAME_START+84) -#define ANALYSIS_DEFFUNCNAME_Intrate (ANALYSIS_DEFFUNCNAME_START+85) -#define ANALYSIS_DEFFUNCNAME_Coupncd (ANALYSIS_DEFFUNCNAME_START+86) -#define ANALYSIS_DEFFUNCNAME_Coupdays (ANALYSIS_DEFFUNCNAME_START+87) -#define ANALYSIS_DEFFUNCNAME_Coupdaysnc (ANALYSIS_DEFFUNCNAME_START+88) -#define ANALYSIS_DEFFUNCNAME_Coupdaybs (ANALYSIS_DEFFUNCNAME_START+89) -#define ANALYSIS_DEFFUNCNAME_Couppcd (ANALYSIS_DEFFUNCNAME_START+90) -#define ANALYSIS_DEFFUNCNAME_Coupnum (ANALYSIS_DEFFUNCNAME_START+91) -#define ANALYSIS_DEFFUNCNAME_Fvschedule (ANALYSIS_DEFFUNCNAME_START+92) +#define ANALYSIS_DEFFUNCNAME_Workday (ANALYSIS_DEFFUNCNAME_START) +#define ANALYSIS_DEFFUNCNAME_Yearfrac (ANALYSIS_DEFFUNCNAME_START+1) +#define ANALYSIS_DEFFUNCNAME_Edate (ANALYSIS_DEFFUNCNAME_START+2) +#define ANALYSIS_DEFFUNCNAME_Weeknum (ANALYSIS_DEFFUNCNAME_START+3) +#define ANALYSIS_DEFFUNCNAME_Eomonth (ANALYSIS_DEFFUNCNAME_START+4) +#define ANALYSIS_DEFFUNCNAME_Networkdays (ANALYSIS_DEFFUNCNAME_START+5) +#define ANALYSIS_DEFFUNCNAME_Iseven (ANALYSIS_DEFFUNCNAME_START+6) +#define ANALYSIS_DEFFUNCNAME_Isodd (ANALYSIS_DEFFUNCNAME_START+7) +#define ANALYSIS_DEFFUNCNAME_Multinomial (ANALYSIS_DEFFUNCNAME_START+8) +#define ANALYSIS_DEFFUNCNAME_Seriessum (ANALYSIS_DEFFUNCNAME_START+9) +#define ANALYSIS_DEFFUNCNAME_Quotient (ANALYSIS_DEFFUNCNAME_START+10) +#define ANALYSIS_DEFFUNCNAME_Mround (ANALYSIS_DEFFUNCNAME_START+11) +#define ANALYSIS_DEFFUNCNAME_Sqrtpi (ANALYSIS_DEFFUNCNAME_START+12) +#define ANALYSIS_DEFFUNCNAME_Randbetween (ANALYSIS_DEFFUNCNAME_START+13) +#define ANALYSIS_DEFFUNCNAME_Gcd (ANALYSIS_DEFFUNCNAME_START+14) +#define ANALYSIS_DEFFUNCNAME_Lcm (ANALYSIS_DEFFUNCNAME_START+15) +#define ANALYSIS_DEFFUNCNAME_Besseli (ANALYSIS_DEFFUNCNAME_START+16) +#define ANALYSIS_DEFFUNCNAME_Besselj (ANALYSIS_DEFFUNCNAME_START+17) +#define ANALYSIS_DEFFUNCNAME_Besselk (ANALYSIS_DEFFUNCNAME_START+18) +#define ANALYSIS_DEFFUNCNAME_Bessely (ANALYSIS_DEFFUNCNAME_START+19) +#define ANALYSIS_DEFFUNCNAME_Bin2Oct (ANALYSIS_DEFFUNCNAME_START+20) +#define ANALYSIS_DEFFUNCNAME_Bin2Dec (ANALYSIS_DEFFUNCNAME_START+21) +#define ANALYSIS_DEFFUNCNAME_Bin2Hex (ANALYSIS_DEFFUNCNAME_START+22) +#define ANALYSIS_DEFFUNCNAME_Oct2Bin (ANALYSIS_DEFFUNCNAME_START+23) +#define ANALYSIS_DEFFUNCNAME_Oct2Dec (ANALYSIS_DEFFUNCNAME_START+24) +#define ANALYSIS_DEFFUNCNAME_Oct2Hex (ANALYSIS_DEFFUNCNAME_START+25) +#define ANALYSIS_DEFFUNCNAME_Dec2Bin (ANALYSIS_DEFFUNCNAME_START+26) +#define ANALYSIS_DEFFUNCNAME_Dec2Hex (ANALYSIS_DEFFUNCNAME_START+27) +#define ANALYSIS_DEFFUNCNAME_Dec2Oct (ANALYSIS_DEFFUNCNAME_START+28) +#define ANALYSIS_DEFFUNCNAME_Hex2Bin (ANALYSIS_DEFFUNCNAME_START+29) +#define ANALYSIS_DEFFUNCNAME_Hex2Dec (ANALYSIS_DEFFUNCNAME_START+30) +#define ANALYSIS_DEFFUNCNAME_Hex2Oct (ANALYSIS_DEFFUNCNAME_START+31) +#define ANALYSIS_DEFFUNCNAME_Delta (ANALYSIS_DEFFUNCNAME_START+32) +#define ANALYSIS_DEFFUNCNAME_Erf (ANALYSIS_DEFFUNCNAME_START+33) +#define ANALYSIS_DEFFUNCNAME_Erfc (ANALYSIS_DEFFUNCNAME_START+34) +#define ANALYSIS_DEFFUNCNAME_Gestep (ANALYSIS_DEFFUNCNAME_START+35) +#define ANALYSIS_DEFFUNCNAME_Factdouble (ANALYSIS_DEFFUNCNAME_START+36) +#define ANALYSIS_DEFFUNCNAME_Imabs (ANALYSIS_DEFFUNCNAME_START+37) +#define ANALYSIS_DEFFUNCNAME_Imaginary (ANALYSIS_DEFFUNCNAME_START+38) +#define ANALYSIS_DEFFUNCNAME_Impower (ANALYSIS_DEFFUNCNAME_START+39) +#define ANALYSIS_DEFFUNCNAME_Imargument (ANALYSIS_DEFFUNCNAME_START+40) +#define ANALYSIS_DEFFUNCNAME_Imcos (ANALYSIS_DEFFUNCNAME_START+41) +#define ANALYSIS_DEFFUNCNAME_Imdiv (ANALYSIS_DEFFUNCNAME_START+42) +#define ANALYSIS_DEFFUNCNAME_Imexp (ANALYSIS_DEFFUNCNAME_START+43) +#define ANALYSIS_DEFFUNCNAME_Imconjugate (ANALYSIS_DEFFUNCNAME_START+44) +#define ANALYSIS_DEFFUNCNAME_Imln (ANALYSIS_DEFFUNCNAME_START+45) +#define ANALYSIS_DEFFUNCNAME_Imlog10 (ANALYSIS_DEFFUNCNAME_START+46) +#define ANALYSIS_DEFFUNCNAME_Imlog2 (ANALYSIS_DEFFUNCNAME_START+47) +#define ANALYSIS_DEFFUNCNAME_Improduct (ANALYSIS_DEFFUNCNAME_START+48) +#define ANALYSIS_DEFFUNCNAME_Imreal (ANALYSIS_DEFFUNCNAME_START+49) +#define ANALYSIS_DEFFUNCNAME_Imsin (ANALYSIS_DEFFUNCNAME_START+50) +#define ANALYSIS_DEFFUNCNAME_Imsub (ANALYSIS_DEFFUNCNAME_START+51) +#define ANALYSIS_DEFFUNCNAME_Imsqrt (ANALYSIS_DEFFUNCNAME_START+52) +#define ANALYSIS_DEFFUNCNAME_Imsum (ANALYSIS_DEFFUNCNAME_START+53) +#define ANALYSIS_DEFFUNCNAME_Complex (ANALYSIS_DEFFUNCNAME_START+54) +#define ANALYSIS_DEFFUNCNAME_Convert (ANALYSIS_DEFFUNCNAME_START+55) +#define ANALYSIS_DEFFUNCNAME_Amordegrc (ANALYSIS_DEFFUNCNAME_START+56) +#define ANALYSIS_DEFFUNCNAME_Amorlinc (ANALYSIS_DEFFUNCNAME_START+57) +#define ANALYSIS_DEFFUNCNAME_Accrint (ANALYSIS_DEFFUNCNAME_START+58) +#define ANALYSIS_DEFFUNCNAME_Accrintm (ANALYSIS_DEFFUNCNAME_START+59) +#define ANALYSIS_DEFFUNCNAME_Received (ANALYSIS_DEFFUNCNAME_START+60) +#define ANALYSIS_DEFFUNCNAME_Disc (ANALYSIS_DEFFUNCNAME_START+61) +#define ANALYSIS_DEFFUNCNAME_Duration (ANALYSIS_DEFFUNCNAME_START+62) +#define ANALYSIS_DEFFUNCNAME_Effect (ANALYSIS_DEFFUNCNAME_START+63) +#define ANALYSIS_DEFFUNCNAME_Cumprinc (ANALYSIS_DEFFUNCNAME_START+64) +#define ANALYSIS_DEFFUNCNAME_Cumipmt (ANALYSIS_DEFFUNCNAME_START+65) +#define ANALYSIS_DEFFUNCNAME_Price (ANALYSIS_DEFFUNCNAME_START+66) +#define ANALYSIS_DEFFUNCNAME_Pricedisc (ANALYSIS_DEFFUNCNAME_START+67) +#define ANALYSIS_DEFFUNCNAME_Pricemat (ANALYSIS_DEFFUNCNAME_START+68) +#define ANALYSIS_DEFFUNCNAME_Mduration (ANALYSIS_DEFFUNCNAME_START+69) +#define ANALYSIS_DEFFUNCNAME_Nominal (ANALYSIS_DEFFUNCNAME_START+70) +#define ANALYSIS_DEFFUNCNAME_Dollarfr (ANALYSIS_DEFFUNCNAME_START+71) +#define ANALYSIS_DEFFUNCNAME_Dollarde (ANALYSIS_DEFFUNCNAME_START+72) +#define ANALYSIS_DEFFUNCNAME_Yield (ANALYSIS_DEFFUNCNAME_START+73) +#define ANALYSIS_DEFFUNCNAME_Yielddisc (ANALYSIS_DEFFUNCNAME_START+74) +#define ANALYSIS_DEFFUNCNAME_Yieldmat (ANALYSIS_DEFFUNCNAME_START+75) +#define ANALYSIS_DEFFUNCNAME_Tbilleq (ANALYSIS_DEFFUNCNAME_START+76) +#define ANALYSIS_DEFFUNCNAME_Tbillprice (ANALYSIS_DEFFUNCNAME_START+77) +#define ANALYSIS_DEFFUNCNAME_Tbillyield (ANALYSIS_DEFFUNCNAME_START+78) +#define ANALYSIS_DEFFUNCNAME_Oddfprice (ANALYSIS_DEFFUNCNAME_START+79) +#define ANALYSIS_DEFFUNCNAME_Oddfyield (ANALYSIS_DEFFUNCNAME_START+80) +#define ANALYSIS_DEFFUNCNAME_Oddlprice (ANALYSIS_DEFFUNCNAME_START+81) +#define ANALYSIS_DEFFUNCNAME_Oddlyield (ANALYSIS_DEFFUNCNAME_START+82) +#define ANALYSIS_DEFFUNCNAME_Xirr (ANALYSIS_DEFFUNCNAME_START+83) +#define ANALYSIS_DEFFUNCNAME_Xnpv (ANALYSIS_DEFFUNCNAME_START+84) +#define ANALYSIS_DEFFUNCNAME_Intrate (ANALYSIS_DEFFUNCNAME_START+85) +#define ANALYSIS_DEFFUNCNAME_Coupncd (ANALYSIS_DEFFUNCNAME_START+86) +#define ANALYSIS_DEFFUNCNAME_Coupdays (ANALYSIS_DEFFUNCNAME_START+87) +#define ANALYSIS_DEFFUNCNAME_Coupdaysnc (ANALYSIS_DEFFUNCNAME_START+88) +#define ANALYSIS_DEFFUNCNAME_Coupdaybs (ANALYSIS_DEFFUNCNAME_START+89) +#define ANALYSIS_DEFFUNCNAME_Couppcd (ANALYSIS_DEFFUNCNAME_START+90) +#define ANALYSIS_DEFFUNCNAME_Coupnum (ANALYSIS_DEFFUNCNAME_START+91) +#define ANALYSIS_DEFFUNCNAME_Fvschedule (ANALYSIS_DEFFUNCNAME_START+92) #endif diff --git a/scaddins/source/analysis/analysis.hxx b/scaddins/source/analysis/analysis.hxx index 17a56f81bcc2..ff789838b299 100644 --- a/scaddins/source/analysis/analysis.hxx +++ b/scaddins/source/analysis/analysis.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -38,7 +38,7 @@ #include <com/sun/star/sheet/XCompatibilityNames.hpp> #include <com/sun/star/sheet/NoConvergenceException.hpp> -#include <cppuhelper/implbase5.hxx> // helper for implementations +#include <cppuhelper/implbase5.hxx> // helper for implementations #include "analysisdefs.hxx" #include "analysishelper.hxx" @@ -61,21 +61,21 @@ class AnalysisAddIn : public cppu::WeakImplHelper5< CSS::lang::XServiceInfo > { private: - CSS::lang::Locale aFuncLoc; - CSS::lang::Locale* pDefLocales; - FuncDataList* pFD; - double* pFactDoubles; - ConvertDataList* pCDL; - ResMgr* pResMgr; + CSS::lang::Locale aFuncLoc; + CSS::lang::Locale* pDefLocales; + FuncDataList* pFD; + double* pFactDoubles; + ConvertDataList* pCDL; + ResMgr* pResMgr; ScaAnyConverter aAnyConv; - ResMgr& GetResMgr( void ) THROWDEF_RTE; - STRING GetDisplFuncStr( sal_uInt16 nFuncNum ) THROWDEF_RTE; - STRING GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex ) THROWDEF_RTE; - void InitDefLocales( void ); - inline const CSS::lang::Locale& GetLocale( sal_uInt32 nInd ); - void InitData( void ); + ResMgr& GetResMgr( void ) THROWDEF_RTE; + STRING GetDisplFuncStr( sal_uInt16 nFuncNum ) THROWDEF_RTE; + STRING GetFuncDescrStr( sal_uInt16 nResId, sal_uInt16 nStrIndex ) THROWDEF_RTE; + void InitDefLocales( void ); + inline const CSS::lang::Locale& GetLocale( sal_uInt32 nInd ); + void InitData( void ); /// Converts an Any to sal_Int32 in the range from 0 to 4 (date calculation mode). sal_Int32 getDateMode( @@ -86,75 +86,75 @@ private: public: AnalysisAddIn( const CSS::uno::Reference< CSS::lang::XMultiServiceFactory >& xServiceFact ); - virtual ~AnalysisAddIn(); + virtual ~AnalysisAddIn(); - double FactDouble( sal_Int32 nNum ) THROWDEF_RTE_IAE; + double FactDouble( sal_Int32 nNum ) THROWDEF_RTE_IAE; - static STRING getImplementationName_Static(); - static SEQ( STRING ) getSupportedServiceNames_Static(); + static STRING getImplementationName_Static(); + static SEQ( STRING ) getSupportedServiceNames_Static(); // XAddIn - virtual STRING SAL_CALL getProgrammaticFuntionName( const STRING& aDisplayName ) THROWDEF_RTE; - virtual STRING SAL_CALL getDisplayFunctionName( const STRING& aProgrammaticName ) THROWDEF_RTE; - virtual STRING SAL_CALL getFunctionDescription( const STRING& aProgrammaticName ) THROWDEF_RTE; - virtual STRING SAL_CALL getDisplayArgumentName( const STRING& aProgrammaticFunctionName, sal_Int32 nArgument ) THROWDEF_RTE; - virtual STRING SAL_CALL getArgumentDescription( const STRING& aProgrammaticFunctionName, sal_Int32 nArgument ) THROWDEF_RTE; - virtual STRING SAL_CALL getProgrammaticCategoryName( const STRING& aProgrammaticFunctionName ) THROWDEF_RTE; - virtual STRING SAL_CALL getDisplayCategoryName( const STRING& aProgrammaticFunctionName ) THROWDEF_RTE; + virtual STRING SAL_CALL getProgrammaticFuntionName( const STRING& aDisplayName ) THROWDEF_RTE; + virtual STRING SAL_CALL getDisplayFunctionName( const STRING& aProgrammaticName ) THROWDEF_RTE; + virtual STRING SAL_CALL getFunctionDescription( const STRING& aProgrammaticName ) THROWDEF_RTE; + virtual STRING SAL_CALL getDisplayArgumentName( const STRING& aProgrammaticFunctionName, sal_Int32 nArgument ) THROWDEF_RTE; + virtual STRING SAL_CALL getArgumentDescription( const STRING& aProgrammaticFunctionName, sal_Int32 nArgument ) THROWDEF_RTE; + virtual STRING SAL_CALL getProgrammaticCategoryName( const STRING& aProgrammaticFunctionName ) THROWDEF_RTE; + virtual STRING SAL_CALL getDisplayCategoryName( const STRING& aProgrammaticFunctionName ) THROWDEF_RTE; // XCompatibilityNames virtual SEQofLocName SAL_CALL getCompatibilityNames( const STRING& aProgrammaticName ) THROWDEF_RTE; // XLocalizable - virtual void SAL_CALL setLocale( const CSS::lang::Locale& eLocale ) THROWDEF_RTE; + virtual void SAL_CALL setLocale( const CSS::lang::Locale& eLocale ) THROWDEF_RTE; virtual CSS::lang::Locale SAL_CALL getLocale( ) THROWDEF_RTE; // XServiceName - virtual STRING SAL_CALL getServiceName( ) THROWDEF_RTE; + virtual STRING SAL_CALL getServiceName( ) THROWDEF_RTE; // XServiceInfo - virtual STRING SAL_CALL getImplementationName( ) THROWDEF_RTE; - virtual sal_Bool SAL_CALL supportsService( const STRING& ServiceName ) THROWDEF_RTE; - virtual SEQ( STRING ) SAL_CALL getSupportedServiceNames( ) THROWDEF_RTE; + virtual STRING SAL_CALL getImplementationName( ) THROWDEF_RTE; + virtual sal_Bool SAL_CALL supportsService( const STRING& ServiceName ) THROWDEF_RTE; + virtual SEQ( STRING ) SAL_CALL getSupportedServiceNames( ) THROWDEF_RTE; - // methods from own interfaces start here + // methods from own interfaces start here // XAnalysis -// virtual double SAL_CALL get_Test( constREFXPS&, sal_Int32 nMode, double f1, double f2, double f3 ) THROWDEF_RTE; +// virtual double SAL_CALL get_Test( constREFXPS&, sal_Int32 nMode, double f1, double f2, double f3 ) THROWDEF_RTE; - virtual sal_Int32 SAL_CALL getWorkday( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nDays, const ANY& aHDay ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getYearfrac( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nEndDate, const ANY& aMode ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getEdate( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMonths ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getWeeknum( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getEomonth( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMonths ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getNetworkdays( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nEndDate, const ANY& aHDay ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getWorkday( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nDays, const ANY& aHDay ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getYearfrac( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nEndDate, const ANY& aMode ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getEdate( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMonths ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getWeeknum( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getEomonth( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nMonths ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getNetworkdays( constREFXPS&, sal_Int32 nStartDate, sal_Int32 nEndDate, const ANY& aHDay ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getIseven( sal_Int32 nVal ) THROWDEF_RTE_IAE; - virtual sal_Int32 SAL_CALL getIsodd( sal_Int32 nVal ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getIseven( sal_Int32 nVal ) THROWDEF_RTE_IAE; + virtual sal_Int32 SAL_CALL getIsodd( sal_Int32 nVal ) THROWDEF_RTE_IAE; virtual double SAL_CALL getMultinomial( constREFXPS& xOpt, const SEQSEQ( sal_Int32 )& aVLst, const SEQ( com::sun::star::uno::Any )& aOptVLst ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getSeriessum( double fX, double fN, double fM, const SEQSEQ( double )& aCoeffList ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getQuotient( double fNum, double fDenum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getSeriessum( double fX, double fN, double fM, const SEQSEQ( double )& aCoeffList ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getQuotient( double fNum, double fDenum ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getMround( double fNum, double fMult ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getSqrtpi( double fNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getMround( double fNum, double fMult ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getSqrtpi( double fNum ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getRandbetween( double fMin, double fMax ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getRandbetween( double fMin, double fMax ) THROWDEF_RTE_IAE; virtual double SAL_CALL getGcd( constREFXPS& xOpt, const SEQSEQ( double )& aVLst, const SEQ( ANY )& aOptVLst ) THROWDEF_RTE_IAE; virtual double SAL_CALL getLcm( constREFXPS& xOpt, const SEQSEQ( double )& aVLst, const SEQ( ANY )& aOptVLst ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getBesseli( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; - virtual double SAL_CALL getBesselj( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; - virtual double SAL_CALL getBesselk( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; - virtual double SAL_CALL getBessely( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; + virtual double SAL_CALL getBesseli( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; + virtual double SAL_CALL getBesselj( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; + virtual double SAL_CALL getBesselk( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; + virtual double SAL_CALL getBessely( double fNum, sal_Int32 nOrder ) THROWDEF_RTE_IAE_NCE; virtual STRING SAL_CALL getBin2Oct( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getBin2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getBin2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getBin2Hex( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getOct2Bin( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getOct2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getOct2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getOct2Hex( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getDec2Bin( constREFXPS& xOpt, sal_Int32 fNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; @@ -162,77 +162,77 @@ public: virtual STRING SAL_CALL getDec2Hex( constREFXPS& xOpt, double fNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getHex2Bin( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getHex2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getHex2Dec( const STRING& aNum ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getHex2Oct( constREFXPS& xOpt, const STRING& aNum, const ANY& rPlaces ) THROWDEF_RTE_IAE; virtual sal_Int32 SAL_CALL getDelta( constREFXPS& xOpt, double fNum1, const ANY& rNum2 ) THROWDEF_RTE_IAE; virtual double SAL_CALL getErf( constREFXPS& xOpt, double fLowerLimit, const ANY& rUpperLimit ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getErfc( double fLowerLimit ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getErfc( double fLowerLimit ) THROWDEF_RTE_IAE; virtual sal_Int32 SAL_CALL getGestep( constREFXPS& xOpt, double fNum, const ANY& rStep ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getFactdouble( sal_Int32 nNum ) THROWDEF_RTE_IAE; - - virtual double SAL_CALL getImabs( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getImaginary( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImpower( const STRING& aNum, double fPower ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getImargument( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImcos( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImdiv( const STRING& aDivident, const STRING& aDivisor ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImexp( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImconjugate( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImln( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImlog10( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImlog2( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getFactdouble( sal_Int32 nNum ) THROWDEF_RTE_IAE; + + virtual double SAL_CALL getImabs( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getImaginary( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImpower( const STRING& aNum, double fPower ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getImargument( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImcos( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImdiv( const STRING& aDivident, const STRING& aDivisor ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImexp( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImconjugate( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImln( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImlog10( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImlog2( const STRING& aNum ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getImproduct( constREFXPS& xOpt, const SEQSEQ( STRING )& aNum1, const SEQ_ANY& aNumList ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getImreal( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImsin( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImsub( const STRING& aNum1, const STRING& aNum2 ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getImreal( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImsin( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImsub( const STRING& aNum1, const STRING& aNum2 ) THROWDEF_RTE_IAE; virtual STRING SAL_CALL getImsum( constREFXPS& xOpt, const SEQSEQ( STRING )& aNum1, const SEQ( ANY )& aFollowingPars ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getImsqrt( const STRING& aNum ) THROWDEF_RTE_IAE; - virtual STRING SAL_CALL getComplex( double fReal, double fImaginary, const ANY& rSuffix ) THROWDEF_RTE_IAE; - - virtual double SAL_CALL getConvert( double fVal, const STRING& aFromUnit, const STRING& aToUnit ) THROWDEF_RTE_IAE; - - virtual double SAL_CALL getAmordegrc( constREFXPS&, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getAmorlinc( constREFXPS&, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getAccrint( constREFXPS& xOpt, sal_Int32 nIssue, sal_Int32 nFirstInter, sal_Int32 nSettle, double fRate, const ANY& rVal, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getAccrintm( constREFXPS& xOpt, sal_Int32 nIssue, sal_Int32 nSettle, double fRate, const ANY& rVal, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getReceived( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fInvest, double fDisc, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getDisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getDuration( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getEffect( double fNominal, sal_Int32 nPeriods ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCumprinc( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCumipmt( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getPrice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getPricedisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getPricemat( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fYield, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getMduration( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getNominal( double fRate, sal_Int32 nPeriods ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getDollarfr( double fDollarDec, sal_Int32 nFrac ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getDollarde( double fDollarFrac, sal_Int32 nFrac ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getYield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getYielddisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getYieldmat( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fPrice, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getTbilleq( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getTbillprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getTbillyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getOddfprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getOddfyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getOddlprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getOddlyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getImsqrt( const STRING& aNum ) THROWDEF_RTE_IAE; + virtual STRING SAL_CALL getComplex( double fReal, double fImaginary, const ANY& rSuffix ) THROWDEF_RTE_IAE; + + virtual double SAL_CALL getConvert( double fVal, const STRING& aFromUnit, const STRING& aToUnit ) THROWDEF_RTE_IAE; + + virtual double SAL_CALL getAmordegrc( constREFXPS&, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getAmorlinc( constREFXPS&, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getAccrint( constREFXPS& xOpt, sal_Int32 nIssue, sal_Int32 nFirstInter, sal_Int32 nSettle, double fRate, const ANY& rVal, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getAccrintm( constREFXPS& xOpt, sal_Int32 nIssue, sal_Int32 nSettle, double fRate, const ANY& rVal, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getReceived( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fInvest, double fDisc, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getDisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getDuration( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getEffect( double fNominal, sal_Int32 nPeriods ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCumprinc( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCumipmt( double fRate, sal_Int32 nNumPeriods, double fVal, sal_Int32 nStartPer, sal_Int32 nEndPer, sal_Int32 nPayType ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getPrice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getPricedisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getPricemat( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fYield, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getMduration( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getNominal( double fRate, sal_Int32 nPeriods ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getDollarfr( double fDollarDec, sal_Int32 nFrac ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getDollarde( double fDollarFrac, sal_Int32 nFrac ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getYield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getYielddisc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getYieldmat( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fPrice, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getTbilleq( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getTbillprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fDisc ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getTbillyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getOddfprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getOddfyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getOddlprice( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getOddlyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, const ANY& rOptBase) THROWDEF_RTE_IAE; virtual double SAL_CALL getXirr( constREFXPS& xOpt, const SEQSEQ( double )& rValues, const SEQSEQ( sal_Int32 )& rDates, const ANY& rGuess ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getXnpv( double fRate, const SEQSEQ( double )& rValues, const SEQSEQ( sal_Int32 )& rDates ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getIntrate( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fInvest, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCoupncd( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCoupdays( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCoupdaysnc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCoupdaybs( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCouppcd( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getCoupnum( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; - virtual double SAL_CALL getFvschedule( double fPrinc, const SEQSEQ( double )& rSchedule ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getXnpv( double fRate, const SEQSEQ( double )& rValues, const SEQSEQ( sal_Int32 )& rDates ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getIntrate( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fInvest, double fRedemp, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCoupncd( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCoupdays( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCoupdaysnc( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCoupdaybs( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCouppcd( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getCoupnum( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, const ANY& rOptBase ) THROWDEF_RTE_IAE; + virtual double SAL_CALL getFvschedule( double fPrinc, const SEQSEQ( double )& rSchedule ) THROWDEF_RTE_IAE; }; //------------------------------------------------------------------ diff --git a/scaddins/source/analysis/analysis.src b/scaddins/source/analysis/analysis.src index 7b730061b2c0..f513ca660734 100644 --- a/scaddins/source/analysis/analysis.src +++ b/scaddins/source/analysis/analysis.src @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -33,37 +33,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS { Resource ANALYSIS_Workday { - String 1 // description Workday + String 1 // description Workday { Text [ en-US ] = "Returns the serial number of the date before or after a specified number of workdays"; }; - String 2 // name of parameter 1 Workday + String 2 // name of parameter 1 Workday { Text [ en-US ] = "Start date"; }; - String 3 // description of parameter 1 Workday + String 3 // description of parameter 1 Workday { Text [ en-US ] = "The start date"; }; - String 4 // name of parameter 2 Workday + String 4 // name of parameter 2 Workday { Text [ en-US ] = "Days"; }; - String 5 // description of parameter 2 Workday + String 5 // description of parameter 2 Workday { Text [ en-US ] = "The number of workdays before or after the start date"; }; - String 6 // name of parameter 3 Workday + String 6 // name of parameter 3 Workday { Text [ en-US ] = "Holidays"; }; - String 7 // description of parameter 3 Workday + String 7 // description of parameter 3 Workday { Text [ en-US ] = "List of date values of days off (vacation, holidays, etc.)"; }; @@ -71,37 +71,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Yearfrac { - String 1 // description Yearfrac + String 1 // description Yearfrac { Text [ en-US ] = "Returns the number of whole days between 'start date' and 'end date' as a year fraction"; }; - String 2 // name of parameter 1 Yearfrac + String 2 // name of parameter 1 Yearfrac { Text [ en-US ] = "Start date"; }; - String 3 // description of parameter 1 Yearfrac + String 3 // description of parameter 1 Yearfrac { Text [ en-US ] = "The start date"; }; - String 4 // name of parameter 2 Yearfrac + String 4 // name of parameter 2 Yearfrac { Text [ en-US ] = "End date"; }; - String 5 // description of parameter 2 Yearfrac + String 5 // description of parameter 2 Yearfrac { Text [ en-US ] = "The end date"; }; - String 6 // name of parameter 3 Yearfrac + String 6 // name of parameter 3 Yearfrac { Text [ en-US ] = "Basis"; }; - String 7 // description of parameter 3 Yearfrac + String 7 // description of parameter 3 Yearfrac { Text [ en-US ] = "Basis for determining the interest days"; }; @@ -109,27 +109,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Edate { - String 1 // description Edate + String 1 // description Edate { Text [ en-US ] = "Returns the serial number of the date that is a specified number of months before or after the start date"; }; - String 2 // name of parameter 1 Edate + String 2 // name of parameter 1 Edate { Text [ en-US ] = "Start date"; }; - String 3 // description of parameter 1 Edate + String 3 // description of parameter 1 Edate { Text [ en-US ] = "The start date"; }; - String 4 // name of parameter 2 Edate + String 4 // name of parameter 2 Edate { Text [ en-US ] = "Months"; }; - String 5 // description of parameter 2 Edate + String 5 // description of parameter 2 Edate { Text [ en-US ] = "Number of months before or after the start date"; }; @@ -137,27 +137,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Weeknum { - String 1 // description Weeknum_add + String 1 // description Weeknum_add { Text [ en-US ] = "Returns the number of the calendar week in which the specified date occurs."; }; - String 2 // name of parameter 1 Weeknum_add + String 2 // name of parameter 1 Weeknum_add { Text [ en-US ] = "Date"; }; - String 3 // description of parameter 1 Weeknum_add + String 3 // description of parameter 1 Weeknum_add { Text [ en-US ] = "The date"; }; - String 4 // name of parameter 2 Weeknum_add + String 4 // name of parameter 2 Weeknum_add { Text [ en-US ] = "Return type"; }; - String 5 // description of parameter 2 Weeknum_add + String 5 // description of parameter 2 Weeknum_add { Text [ en-US ] = "A number from 1 to 3 that specifies the day with which a week begins"; }; @@ -165,27 +165,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Eomonth { - String 1 // description EoMonth + String 1 // description EoMonth { Text[ en-US ] = "Returns the serial number of the last day of the month that comes a certain number of months before or after the start date"; }; - String 2 // name of parameter 1 EoMonth + String 2 // name of parameter 1 EoMonth { Text [ en-US ] = "Start date"; }; - String 3 // description of parameter 1 EoMonth + String 3 // description of parameter 1 EoMonth { Text [ en-US ] = "The start date"; }; - String 4 // name of parameter 2 EoMonth + String 4 // name of parameter 2 EoMonth { Text [ en-US ] = "Months"; }; - String 5 // description of parameter 2 EoMonth + String 5 // description of parameter 2 EoMonth { Text [ en-US ] = "Number of months before or after the start date"; }; @@ -193,37 +193,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Networkdays { - String 1 // description Networkdays + String 1 // description Networkdays { Text [ en-US ] = "Returns the number of workdays between two dates"; }; - String 2 // name of parameter 1 Networkdays + String 2 // name of parameter 1 Networkdays { Text [ en-US ] = "Start date"; }; - String 3 // description of parameter 1 Networkdays + String 3 // description of parameter 1 Networkdays { Text [ en-US ] = "The start date"; }; - String 4 // name of parameter 2 Networkdays + String 4 // name of parameter 2 Networkdays { Text [ en-US ] = "End date"; }; - String 5 // description of parameter 2 Networkdays + String 5 // description of parameter 2 Networkdays { Text [ en-US ] = "The end date"; }; - String 6 // name of parameter 3 Networkdays + String 6 // name of parameter 3 Networkdays { Text [ en-US ] = "Holidays"; }; - String 7 // description of parameter 3 Networkdays + String 7 // description of parameter 3 Networkdays { Text [ en-US ] = "List of date values representing days off (vacation, holidays, etc.)"; }; @@ -231,17 +231,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Iseven { - String 1 // description Iseven_add + String 1 // description Iseven_add { Text [ en-US ] = "Returns the value 'true' if the number is even"; }; - String 2 // name of parameter 1 Iseven_add + String 2 // name of parameter 1 Iseven_add { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Iseven_add + String 3 // description of parameter 1 Iseven_add { Text [ en-US ] = "The number"; }; @@ -249,17 +249,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Isodd { - String 1 // description Isodd_add + String 1 // description Isodd_add { Text [ en-US ] = "Returns the value 'true' if the number is odd"; }; - String 2 // name of parameter 1 Isodd_add + String 2 // name of parameter 1 Isodd_add { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Isodd_add + String 3 // description of parameter 1 Isodd_add { Text [ en-US ] = "The number"; }; @@ -267,17 +267,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Multinomial { - String 1 // description Multinomial + String 1 // description Multinomial { Text [ en-US ] = "Returns the multinomial coefficient of a set of numbers"; }; - String 2 // name of parameter 1 Multinomial + String 2 // name of parameter 1 Multinomial { Text [ en-US ] = "Number(s)"; }; - String 3 // description of parameter 1 Multinomial + String 3 // description of parameter 1 Multinomial { Text [ en-US ] = "Number or list of numbers for which you want the multinomial coefficient"; }; @@ -285,47 +285,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Seriessum { - String 1 // description Seriessum + String 1 // description Seriessum { Text [ en-US ] = "Returns the sum of a power series"; }; - String 2 // name of parameter 1 Seriessum + String 2 // name of parameter 1 Seriessum { Text [ en-US ] = "X"; }; - String 3 // description of parameter 1 Seriessum + String 3 // description of parameter 1 Seriessum { Text [ en-US ] = "The independent variable of the power series"; }; - String 4 // name of parameter 2 Seriessum + String 4 // name of parameter 2 Seriessum { Text [ en-US ] = "N"; }; - String 5 // description of parameter 2 Seriessum + String 5 // description of parameter 2 Seriessum { Text [ en-US ] = "The initial power to which x is to be raised"; }; - String 6 // name of parameter 3 Seriessum + String 6 // name of parameter 3 Seriessum { Text [ en-US ] = "M"; }; - String 7 // description of parameter 3 Seriessum + String 7 // description of parameter 3 Seriessum { Text [ en-US ] = "The increment by which to increase n for each term in the series"; }; - String 8 // name of parameter 4 Seriessum + String 8 // name of parameter 4 Seriessum { Text [ en-US ] = "Coefficients"; }; - String 9 // description of parameter 4 Seriessum + String 9 // description of parameter 4 Seriessum { Text [ en-US ] = "Set of coefficients by which each successive power of the variable x is multiplied"; }; @@ -333,27 +333,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Quotient { - String 1 // description Quotient + String 1 // description Quotient { Text [ en-US ] = "Returns the integer portion of a division"; }; - String 2 // name of parameter 1 Quotient + String 2 // name of parameter 1 Quotient { Text [ en-US ] = "Numerator"; }; - String 3 // description of parameter 1 Quotient + String 3 // description of parameter 1 Quotient { Text [ en-US ] = "The dividend"; }; - String 4 // name of parameter 2 Quotient + String 4 // name of parameter 2 Quotient { Text [ en-US ] = "Denominator"; }; - String 5 // description of parameter 2 Quotient + String 5 // description of parameter 2 Quotient { Text [ en-US ] = "The divisor"; }; @@ -361,27 +361,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Mround { - String 1 // description Mround + String 1 // description Mround { Text [ en-US ] = "Returns a number rounded to a specified multiple"; }; - String 2 // name of parameter 1 Mround + String 2 // name of parameter 1 Mround { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Mround + String 3 // description of parameter 1 Mround { Text [ en-US ] = "The number to round off"; }; - String 4 // name of parameter 2 Mround + String 4 // name of parameter 2 Mround { Text [ en-US ] = "Multiple"; }; - String 5 // description of parameter 2 Mround + String 5 // description of parameter 2 Mround { Text [ en-US ] = "The multiple to which you want to round number"; }; @@ -389,17 +389,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Sqrtpi { - String 1 // description SqrtPI + String 1 // description SqrtPI { Text [ en-US ] = "Returns the square root of a number which has been multiplied by pi"; }; - String 2 // name of parameter 1 SqrtPI + String 2 // name of parameter 1 SqrtPI { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 SqrtPI + String 3 // description of parameter 1 SqrtPI { Text [ en-US ] = "The number by which pi is multiplied"; }; @@ -407,27 +407,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Randbetween { - String 1 // description Randbetween + String 1 // description Randbetween { Text [ en-US ] = "Returns a random integer between the numbers you specify"; }; - String 2 // name of parameter 1 Randbetween + String 2 // name of parameter 1 Randbetween { Text [ en-US ] = "Bottom"; }; - String 3 // description of parameter 1 Randbetween + String 3 // description of parameter 1 Randbetween { Text [ en-US ] = "The smallest integer returned"; }; - String 4 // name of parameter 2 Randbetween + String 4 // name of parameter 2 Randbetween { Text [ en-US ] = "Top"; }; - String 5 // description of parameter 2 Randbetween + String 5 // description of parameter 2 Randbetween { Text [ en-US ] = "The largest integer returned"; }; @@ -435,17 +435,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Gcd { - String 1 // description Gcd_add + String 1 // description Gcd_add { Text [ en-US ] = "Returns the greatest common divisor"; }; - String 2 // name of parameter 1 Gcd_add + String 2 // name of parameter 1 Gcd_add { Text [ en-US ] = "Number(s)"; }; - String 3 // description of parameter 1 Gcd_add + String 3 // description of parameter 1 Gcd_add { Text [ en-US ] = "Number or list of numbers"; }; @@ -453,17 +453,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Lcm { - String 1 // description Lcm_add + String 1 // description Lcm_add { Text [ en-US ] = "Returns the least common multiple"; }; - String 2 // name of parameter 1 Lcm_add + String 2 // name of parameter 1 Lcm_add { Text [ en-US ] = "Number(s)"; }; - String 3 // description of parameter 1 Lcm_add + String 3 // description of parameter 1 Lcm_add { Text [ en-US ] = "Number or list of numbers"; }; @@ -471,27 +471,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Besseli { - String 1 // description BesselI + String 1 // description BesselI { Text [ en-US ] = "Returns the modified Bessel function In(x)"; }; - String 2 // name of parameter 1 BesselI + String 2 // name of parameter 1 BesselI { Text [ en-US ] = "X"; }; - String 3 // description of parameter 1 BesselI + String 3 // description of parameter 1 BesselI { Text [ en-US ] = "The value at which the function is to be evaluated"; }; - String 4 // name of parameter 2 BesselI + String 4 // name of parameter 2 BesselI { Text [ en-US ] = "N"; }; - String 5 // description of parameter 2 BesselI + String 5 // description of parameter 2 BesselI { Text [ en-US ] = "The order of the Bessel function"; }; @@ -499,27 +499,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Besselj { - String 1 // description BesselJ + String 1 // description BesselJ { Text [ en-US ] = "Returns the Bessel function Jn(x)"; }; - String 2 // name of parameter 1 BesselJ + String 2 // name of parameter 1 BesselJ { Text [ en-US ] = "X"; }; - String 3 // description of parameter 1 BesselJ + String 3 // description of parameter 1 BesselJ { Text [ en-US ] = "The value at which the function is to be evaluated"; }; - String 4 // name of parameter 2 BesselJ + String 4 // name of parameter 2 BesselJ { Text [ en-US ] = "N"; }; - String 5 // description of parameter 2 BesselJ + String 5 // description of parameter 2 BesselJ { Text [ en-US ] = "The order of the Bessel function"; }; @@ -527,27 +527,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Besselk { - String 1 // description BesselK + String 1 // description BesselK { Text [ en-US ] = "Returns the Bessel function Kn(x)"; }; - String 2 // name of parameter 1 BesselK + String 2 // name of parameter 1 BesselK { Text [ en-US ] = "X"; }; - String 3 // description of parameter 1 BesselK + String 3 // description of parameter 1 BesselK { Text [ en-US ] = "The value at which the function is to be evaluated"; }; - String 4 // name of parameter 2 BesselK + String 4 // name of parameter 2 BesselK { Text [ en-US ] = "N"; }; - String 5 // description of parameter 2 BesselK + String 5 // description of parameter 2 BesselK { Text [ en-US ] = "The order of the Bessel function"; }; @@ -555,27 +555,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Bessely { - String 1 // description BesselY + String 1 // description BesselY { Text [ en-US ] = "Returns the Bessel function Yn(x)"; }; - String 2 // name of parameter 1 BesselY + String 2 // name of parameter 1 BesselY { Text [ en-US ] = "X"; }; - String 3 // description of parameter 1 BesselY + String 3 // description of parameter 1 BesselY { Text [ en-US ] = "The value at which the function is to be evaluated"; }; - String 4 // name of parameter 2 BesselY + String 4 // name of parameter 2 BesselY { Text [ en-US ] = "N"; }; - String 5 // description of parameter 2 BesselY + String 5 // description of parameter 2 BesselY { Text [ en-US ] = "The order of the Bessel function"; }; @@ -583,27 +583,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Bin2Oct { - String 1 // description Bin2Oct + String 1 // description Bin2Oct { Text [ en-US ] = "Converts a binary number to an octal number"; }; - String 2 // name of parameter 1 Bin2Oct + String 2 // name of parameter 1 Bin2Oct { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Bin2Oct + String 3 // description of parameter 1 Bin2Oct { Text [ en-US ] = "The binary number to be converted (as text)"; }; - String 4 // name of parameter 2 Bin2Oct + String 4 // name of parameter 2 Bin2Oct { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Bin2Oct + String 5 // description of parameter 2 Bin2Oct { Text [ en-US ] = "Number of places used"; }; @@ -611,17 +611,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Bin2Dec { - String 1 // description Bin2Dec + String 1 // description Bin2Dec { Text [ en-US ] = "Converts a binary number to a decimal number"; }; - String 2 // name of parameter 1 Bin2Dec + String 2 // name of parameter 1 Bin2Dec { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Bin2Dec + String 3 // description of parameter 1 Bin2Dec { Text [ en-US ] = "The binary number to be converted (as text)"; }; @@ -629,27 +629,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Bin2Hex { - String 1 // description Bin2Hex + String 1 // description Bin2Hex { Text [ en-US ] = "Converts a binary number to a hexadecimal number"; }; - String 2 // name of parameter 1 Bin2Hex + String 2 // name of parameter 1 Bin2Hex { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Bin2Hex + String 3 // description of parameter 1 Bin2Hex { Text [ en-US ] = "The binary number to be converted (as text)"; }; - String 4 // name of parameter 2 Bin2Hex + String 4 // name of parameter 2 Bin2Hex { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Bin2Hex + String 5 // description of parameter 2 Bin2Hex { Text [ en-US ] = "Number of places used."; }; @@ -657,27 +657,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oct2Bin { - String 1 // description Oct2Bin + String 1 // description Oct2Bin { Text [ en-US ] = "Converts an octal number to a binary number"; }; - String 2 // name of parameter 1 Oct2Bin + String 2 // name of parameter 1 Oct2Bin { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Oct2Bin + String 3 // description of parameter 1 Oct2Bin { Text [ en-US ] = "The octal number to be converted (as text)"; }; - String 4 // name of parameter 2 Oct2Bin + String 4 // name of parameter 2 Oct2Bin { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Oct2Bin + String 5 // description of parameter 2 Oct2Bin { Text [ en-US ] = "Number of places used"; }; @@ -685,17 +685,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oct2Dec { - String 1 // description Oct2Dec + String 1 // description Oct2Dec { Text [ en-US ] = "Converts an octal number to a decimal number"; }; - String 2 // name of parameter 1 Oct2Dec + String 2 // name of parameter 1 Oct2Dec { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Oct2Dec + String 3 // description of parameter 1 Oct2Dec { Text [ en-US ] = "The octal number to be converted (as text)"; }; @@ -703,27 +703,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oct2Hex { - String 1 // description Oct2Hex + String 1 // description Oct2Hex { Text [ en-US ] = "Converts an octal number to a hexadecimal number"; }; - String 2 // name of parameter 1 Oct2Hex + String 2 // name of parameter 1 Oct2Hex { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Oct2Hex + String 3 // description of parameter 1 Oct2Hex { Text [ en-US ] = "The octal number to be converted (as text)"; }; - String 4 // name of parameter 2 Oct2Hex + String 4 // name of parameter 2 Oct2Hex { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Oct2Hex + String 5 // description of parameter 2 Oct2Hex { Text [ en-US ] = "Number of places used"; }; @@ -731,27 +731,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Dec2Bin { - String 1 // description Dec2Bin + String 1 // description Dec2Bin { Text [ en-US ] = "Converts a decimal number to a binary number"; }; - String 2 // name of parameter 1 Dec2Bin + String 2 // name of parameter 1 Dec2Bin { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Dec2Bin + String 3 // description of parameter 1 Dec2Bin { Text [ en-US ] = "The decimal integer to be converted"; }; - String 4 // name of parameter 2 Dec2Bin + String 4 // name of parameter 2 Dec2Bin { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Dec2Bin + String 5 // description of parameter 2 Dec2Bin { Text [ en-US ] = "Number of places used"; }; @@ -759,27 +759,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Dec2Hex { - String 1 // description Dec2Hex + String 1 // description Dec2Hex { Text [ en-US ] = "Converts a decimal number to a hexadecimal number"; }; - String 2 // name of parameter 1 Dec2Hex + String 2 // name of parameter 1 Dec2Hex { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Dec2Hex + String 3 // description of parameter 1 Dec2Hex { Text [ en-US ] = "The decimal integer to be converted"; }; - String 4 // name of parameter 2 Dec2Hex + String 4 // name of parameter 2 Dec2Hex { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Dec2Hex + String 5 // description of parameter 2 Dec2Hex { Text [ en-US ] = "Number of places used"; }; @@ -787,27 +787,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Dec2Oct { - String 1 // description Dec2Oct + String 1 // description Dec2Oct { Text [ en-US ] = "Converts a decimal number into an octal number"; }; - String 2 // name of parameter 1 Dec2Oct + String 2 // name of parameter 1 Dec2Oct { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Dec2Oct + String 3 // description of parameter 1 Dec2Oct { Text [ en-US ] = "The decimal number"; }; - String 4 // name of parameter 2 Dec2Oct + String 4 // name of parameter 2 Dec2Oct { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Dec2Oct + String 5 // description of parameter 2 Dec2Oct { Text [ en-US ] = "Number of places used"; }; @@ -815,27 +815,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Hex2Bin { - String 1 // description Hex2Bin + String 1 // description Hex2Bin { Text [ en-US ] = "Converts a hexadecimal number to a binary number"; }; - String 2 // name of parameter 1 Hex2Bin + String 2 // name of parameter 1 Hex2Bin { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Hex2Bin + String 3 // description of parameter 1 Hex2Bin { Text [ en-US ] = "The hexadecimal number to be converted (as text)"; }; - String 4 // name of parameter 2 Hex2Bin + String 4 // name of parameter 2 Hex2Bin { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Hex2Bin + String 5 // description of parameter 2 Hex2Bin { Text [ en-US ] = "Number of places used"; }; @@ -843,17 +843,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Hex2Dec { - String 1 // description Hex2Dec + String 1 // description Hex2Dec { Text [ en-US ] = "Converts a hexadecimal number to a decimal number"; }; - String 2 // name of parameter 1 Hex2Dec + String 2 // name of parameter 1 Hex2Dec { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Hex2Dec + String 3 // description of parameter 1 Hex2Dec { Text [ en-US ] = "The hexadecimal number to be converted (as text)"; }; @@ -861,27 +861,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Hex2Oct { - String 1 // description Hex2Oct + String 1 // description Hex2Oct { Text [ en-US ] = "Converts a hexadecimal number to an octal number"; }; - String 2 // name of parameter 1 Hex2Oct + String 2 // name of parameter 1 Hex2Oct { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Hex2Oct + String 3 // description of parameter 1 Hex2Oct { Text [ en-US ] = "The hexadecimal number to be converted (as text)"; }; - String 4 // name of parameter 2 Hex2Oct + String 4 // name of parameter 2 Hex2Oct { Text [ en-US ] = "Places"; }; - String 5 // description of parameter 2 Hex2Oct + String 5 // description of parameter 2 Hex2Oct { Text [ en-US ] = "Number of places used"; }; @@ -889,27 +889,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Delta { - String 1 // description Delta + String 1 // description Delta { Text [ en-US ] = "Tests whether two values are equal"; }; - String 2 // name of parameter 1 Delta + String 2 // name of parameter 1 Delta { Text [ en-US ] = "Number 1"; }; - String 3 // description of parameter 1 Delta + String 3 // description of parameter 1 Delta { Text [ en-US ] = "The first number"; }; - String 4 // name of parameter 2 Delta + String 4 // name of parameter 2 Delta { Text [ en-US ] = "Number 2"; }; - String 5 // description of parameter 2 Delta + String 5 // description of parameter 2 Delta { Text [ en-US ] = "The second number"; }; @@ -917,27 +917,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Erf { - String 1 // description Erf + String 1 // description Erf { Text [ en-US ] = "Returns the error function"; }; - String 2 // name of parameter 1 Erf + String 2 // name of parameter 1 Erf { Text [ en-US ] = "Lower limit"; }; - String 3 // description of parameter 1 Erf + String 3 // description of parameter 1 Erf { Text [ en-US ] = "The lower limit for integration"; }; - String 4 // name of parameter 2 Erf + String 4 // name of parameter 2 Erf { Text [ en-US ] = "Upper limit"; }; - String 5 // description of parameter 2 Erf + String 5 // description of parameter 2 Erf { Text [ en-US ] = "The upper limit for integration"; }; @@ -945,17 +945,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Erfc { - String 1 // description Erfc + String 1 // description Erfc { Text [ en-US ] = "Returns the complementary error function"; }; - String 2 // name of parameter 1 Erfc + String 2 // name of parameter 1 Erfc { Text [ en-US ] = "Lower limit"; }; - String 3 // description of parameter 1 Erfc + String 3 // description of parameter 1 Erfc { Text [ en-US ] = "The lower limit for integration"; }; @@ -963,27 +963,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Gestep { - String 1 // description GeStep + String 1 // description GeStep { Text [ en-US ] = "Tests whether a number is greater than a threshold value"; }; - String 2 // name of parameter 1 GeStep + String 2 // name of parameter 1 GeStep { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 GeStep + String 3 // description of parameter 1 GeStep { Text [ en-US ] = "The value to test against step"; }; - String 4 // name of parameter 2 GeStep + String 4 // name of parameter 2 GeStep { Text [ en-US ] = "Step"; }; - String 5 // description of parameter 2 GeStep + String 5 // description of parameter 2 GeStep { Text [ en-US ] = "The threshhold value"; }; @@ -991,17 +991,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Factdouble { - String 1 // description Factdouble + String 1 // description Factdouble { Text [ en-US ] = "Returns the double factorial of Number"; }; - String 2 // name of parameter 1 Factdouble + String 2 // name of parameter 1 Factdouble { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Factdouble + String 3 // description of parameter 1 Factdouble { Text [ en-US ] = "The number"; }; @@ -1009,17 +1009,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imabs { - String 1 // description Imabs + String 1 // description Imabs { Text [ en-US ] = "Returns the absolute value (modulus) of a complex number"; }; - String 2 // name of parameter 1 Imabs + String 2 // name of parameter 1 Imabs { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imabs + String 3 // description of parameter 1 Imabs { Text [ en-US ] = "The complex number"; }; @@ -1027,17 +1027,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imaginary { - String 1 // description Imaginary + String 1 // description Imaginary { Text [ en-US ] = "Returns the imaginary coefficient of a complex number"; }; - String 2 // name of parameter 1 Imaginary + String 2 // name of parameter 1 Imaginary { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imaginary + String 3 // description of parameter 1 Imaginary { Text [ en-US ] = "The complex number"; }; @@ -1045,27 +1045,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Impower { - String 1 // description Impower + String 1 // description Impower { Text [ en-US ] = "Returns a complex number raised to an integer power"; }; - String 2 // name of parameter 1 Impower + String 2 // name of parameter 1 Impower { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Impower + String 3 // description of parameter 1 Impower { Text [ en-US ] = "The complex number"; }; - String 4 // name of parameter 2 Impower + String 4 // name of parameter 2 Impower { Text [ en-US ] = "Number"; }; - String 5 // description of parameter 2 Impower + String 5 // description of parameter 2 Impower { Text [ en-US ] = "Power to which the complex number is raised"; }; @@ -1073,17 +1073,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imargument { - String 1 // description Imargument + String 1 // description Imargument { Text [ en-US ] = "Returns the argument theta, an angle expressed in radians"; }; - String 2 // name of parameter 1 Imargument + String 2 // name of parameter 1 Imargument { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imargument + String 3 // description of parameter 1 Imargument { Text [ en-US ] = "A complex number"; }; @@ -1091,17 +1091,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imcos { - String 1 // description Imcos + String 1 // description Imcos { Text [ en-US ] = "Returns the cosine of a complex number"; }; - String 2 // name of parameter 1 Imcos + String 2 // name of parameter 1 Imcos { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imcos + String 3 // description of parameter 1 Imcos { Text [ en-US ] = "A complex number"; }; @@ -1109,27 +1109,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imdiv { - String 1 // description Imdiv + String 1 // description Imdiv { Text [ en-US ] = "Returns the quotient of two complex numbers"; }; - String 2 // name of parameter 1 Imdiv + String 2 // name of parameter 1 Imdiv { Text [ en-US ] = "Numerator"; }; - String 3 // description of parameter 1 Imdiv + String 3 // description of parameter 1 Imdiv { Text [ en-US ] = "The dividend"; }; - String 4 // name of parameter 2 Imdiv + String 4 // name of parameter 2 Imdiv { Text [ en-US ] = "Denominator"; }; - String 5 // description of parameter 2 Imdiv + String 5 // description of parameter 2 Imdiv { Text [ en-US ] = "The divisor"; }; @@ -1137,17 +1137,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imexp { - String 1 // description Imexp + String 1 // description Imexp { Text [ en-US ] = "Returns the algebraic form of the exponential of a complex number"; }; - String 2 // name of parameter 1 Imexp + String 2 // name of parameter 1 Imexp { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imexp + String 3 // description of parameter 1 Imexp { Text [ en-US ] = "The complex number"; }; @@ -1155,17 +1155,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imconjugate { - String 1 // description Imconjugate + String 1 // description Imconjugate { Text [ en-US ] = "Returns the complex conjugate of a complex number"; }; - String 2 // name of parameter 1 Imconjugate + String 2 // name of parameter 1 Imconjugate { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imconjugate + String 3 // description of parameter 1 Imconjugate { Text [ en-US ] = "The complex number"; }; @@ -1173,17 +1173,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imln { - String 1 // description Imln + String 1 // description Imln { Text [ en-US ] = "Returns the natural logarithm of a complex number"; }; - String 2 // name of parameter 1 Imln + String 2 // name of parameter 1 Imln { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imln + String 3 // description of parameter 1 Imln { Text [ en-US ] = "The complex number"; }; @@ -1191,17 +1191,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imlog10 { - String 1 // description Imlog10 + String 1 // description Imlog10 { Text [ en-US ] = "Returns the base-10 logarithm of a complex number"; }; - String 2 // name of parameter 1 Imlog10 + String 2 // name of parameter 1 Imlog10 { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imlog10 + String 3 // description of parameter 1 Imlog10 { Text [ en-US ] = "The complex number"; }; @@ -1209,17 +1209,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imlog2 { - String 1 // description Imlog2 + String 1 // description Imlog2 { Text [ en-US ] = "Returns the base-2 logarithm of a complex number"; }; - String 2 // name of parameter 1 Imlog2 + String 2 // name of parameter 1 Imlog2 { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imlog2 + String 3 // description of parameter 1 Imlog2 { Text [ en-US ] = "The complex number"; }; @@ -1227,27 +1227,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Improduct { - String 1 // description Improduct + String 1 // description Improduct { Text [ en-US ] = "Returns the product of several complex numbers"; }; - String 2 // name of parameter 1 Improduct + String 2 // name of parameter 1 Improduct { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Improduct + String 3 // description of parameter 1 Improduct { Text [ en-US ] = "The first complex number"; }; - String 4 // name of parameter 2 Improduct + String 4 // name of parameter 2 Improduct { Text [ en-US ] = "Complex number"; }; - String 5 // description of parameter 2 Improduct + String 5 // description of parameter 2 Improduct { Text [ en-US ] = "Another complex number"; }; @@ -1255,17 +1255,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imreal { - String 1 // description Imreal + String 1 // description Imreal { Text [ en-US ] = "Returns the real coefficient of a complex number"; }; - String 2 // name of parameter 1 Imreal + String 2 // name of parameter 1 Imreal { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imreal + String 3 // description of parameter 1 Imreal { Text [ en-US ] = "The complex number"; }; @@ -1273,17 +1273,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imsin { - String 1 // description Imsin + String 1 // description Imsin { Text [ en-US ] = "Returns the sine of a complex number"; }; - String 2 // name of parameter 1 Imsin + String 2 // name of parameter 1 Imsin { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imsin + String 3 // description of parameter 1 Imsin { Text [ en-US ] = "The complex number"; }; @@ -1291,27 +1291,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imsub { - String 1 // description Imsub + String 1 // description Imsub { Text [ en-US ] = "Returns the difference of two complex numbers"; }; - String 2 // name of parameter 1 Imsub + String 2 // name of parameter 1 Imsub { Text [ en-US ] = "Complex number 1"; }; - String 3 // description of parameter 1 Imsub + String 3 // description of parameter 1 Imsub { Text [ en-US ] = "Complex number 1"; }; - String 4 // name of parameter 2 Imsub + String 4 // name of parameter 2 Imsub { Text [ en-US ] = "Complex number 2"; }; - String 5 // description of parameter 2 Imsub + String 5 // description of parameter 2 Imsub { Text [ en-US ] = "Complex number 2"; }; @@ -1319,17 +1319,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imsqrt { - String 1 // description Imsqrt + String 1 // description Imsqrt { Text [ en-US ] = "Returns the square root of a complex number"; }; - String 2 // name of parameter 1 Imsqrt + String 2 // name of parameter 1 Imsqrt { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imsqrt + String 3 // description of parameter 1 Imsqrt { Text [ en-US ] = "The complex number"; }; @@ -1337,17 +1337,17 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Imsum { - String 1 // description Imsum + String 1 // description Imsum { Text [ en-US ] = "Returns the sum of complex numbers"; }; - String 2 // name of parameter 1 Imsum + String 2 // name of parameter 1 Imsum { Text [ en-US ] = "Complex number"; }; - String 3 // description of parameter 1 Imsum + String 3 // description of parameter 1 Imsum { Text [ en-US ] = "The complex number"; }; @@ -1356,37 +1356,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Complex { - String 1 // description Complex + String 1 // description Complex { Text [ en-US ] = "Converts real and imaginary coefficients into a complex number"; }; - String 2 // name of parameter 1 Complex + String 2 // name of parameter 1 Complex { Text [ en-US ] = "Real num"; }; - String 3 // description of parameter 1 Complex + String 3 // description of parameter 1 Complex { Text [ en-US ] = "The real coefficient"; }; - String 4 // name of parameter 2 Complex + String 4 // name of parameter 2 Complex { Text [ en-US ] = "I num"; }; - String 5 // description of parameter 2 Complex + String 5 // description of parameter 2 Complex { Text [ en-US ] = "The imaginary coefficient"; }; - String 6 // name of parameter 3 Complex + String 6 // name of parameter 3 Complex { Text [ en-US ] = "Suffix"; }; - String 7 // description of parameter 3 Complex + String 7 // description of parameter 3 Complex { Text [ en-US ] = "The suffix"; }; @@ -1394,37 +1394,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Convert { - String 1 // description Convert_add + String 1 // description Convert_add { Text [ en-US ] = "Converts a number from one measurement system to another"; }; - String 2 // name of parameter 1 Convert_add + String 2 // name of parameter 1 Convert_add { Text [ en-US ] = "Number"; }; - String 3 // description of parameter 1 Convert_add + String 3 // description of parameter 1 Convert_add { Text [ en-US ] = "The number"; }; - String 4 // name of parameter 2 Convert_add + String 4 // name of parameter 2 Convert_add { Text [ en-US ] = "From unit"; }; - String 5 // description of parameter 2 Convert_add + String 5 // description of parameter 2 Convert_add { Text [ en-US ] = "Unit of measure for number"; }; - String 6 // name of parameter 3 Convert_add + String 6 // name of parameter 3 Convert_add { Text [ en-US ] = "To unit"; }; - String 7 // description of parameter 3 Convert_add + String 7 // description of parameter 3 Convert_add { Text [ en-US ] = "Unit of measure for the result"; }; @@ -1432,77 +1432,77 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Amordegrc { - String 1 // description Amordegrc + String 1 // description Amordegrc { Text [ en-US ] = "Returns the prorated linear depreciation of an asset for each accounting period"; }; - String 2 // name of parameter 1 Amordegrc + String 2 // name of parameter 1 Amordegrc { Text [ en-US ] = "Cost"; }; - String 3 // description of parameter 1 Amordegrc + String 3 // description of parameter 1 Amordegrc { Text [ en-US ] = "Cost of the asset"; }; - String 4 // name of parameter 2 Amordegrc + String 4 // name of parameter 2 Amordegrc { Text [ en-US ] = "Date purchased"; }; - String 5 // description of parameter 2 Amordegrc + String 5 // description of parameter 2 Amordegrc { Text [ en-US ] = "Purchase date of the asset"; }; - String 6 // name of parameter 3 Amordegrc + String 6 // name of parameter 3 Amordegrc { Text [ en-US ] = "First period"; }; - String 7 // description of parameter 3 Amordegrc + String 7 // description of parameter 3 Amordegrc { Text [ en-US ] = "Date the first period ends"; }; - String 8 // name of parameter 4 Amordegrc + String 8 // name of parameter 4 Amordegrc { Text [ en-US ] = "Salvage"; }; - String 9 // description of parameter 4 Amordegrc + String 9 // description of parameter 4 Amordegrc { Text [ en-US ] = "Salvage value of an asset at the end of its life"; }; - String 10 // name of parameter 5 Amordegrc + String 10 // name of parameter 5 Amordegrc { Text [ en-US ] = "Period"; }; - String 11 // description of parameter 5 Amordegrc + String 11 // description of parameter 5 Amordegrc { Text [ en-US ] = "The period"; }; - String 12 // name of parameter 6 Amordegrc + String 12 // name of parameter 6 Amordegrc { Text [ en-US ] = "Rate"; }; - String 13 // description of parameter 6 Amordegrc + String 13 // description of parameter 6 Amordegrc { Text [ en-US ] = "The rate of depreciation"; }; - String 14 // name of parameter 7 Amordegrc + String 14 // name of parameter 7 Amordegrc { Text [ en-US ] = "Basis"; }; - String 15 // description of parameter 7 Amordegrc + String 15 // description of parameter 7 Amordegrc { Text [ en-US ] = "The year basis to be used"; }; @@ -1510,77 +1510,77 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Amorlinc { - String 1 // description Amorlinc + String 1 // description Amorlinc { Text [ en-US ] = "Returns the prorated linear depreciation of an asset for each accounting period"; }; - String 2 // name of parameter 1 Amorlinc + String 2 // name of parameter 1 Amorlinc { Text [ en-US ] = "Cost"; }; - String 3 // description of parameter 1 Amorlinc + String 3 // description of parameter 1 Amorlinc { Text [ en-US ] = "Cost of the asset"; }; - String 4 // name of parameter 2 Amorlinc + String 4 // name of parameter 2 Amorlinc { Text [ en-US ] = "Date purchased"; }; - String 5 // description of parameter 2 Amorlinc + String 5 // description of parameter 2 Amorlinc { Text [ en-US ] = "Purchase date of the asset"; }; - String 6 // name of parameter 3 Amorlinc + String 6 // name of parameter 3 Amorlinc { Text [ en-US ] = "First period"; }; - String 7 // description of parameter 3 Amorlinc + String 7 // description of parameter 3 Amorlinc { Text [ en-US ] = "The date the first period ends"; }; - String 8 // name of parameter 4 Amorlinc + String 8 // name of parameter 4 Amorlinc { Text [ en-US ] = "Salvage"; }; - String 9 // description of parameter 4 Amorlinc + String 9 // description of parameter 4 Amorlinc { Text [ en-US ] = "The salvage value of an asset at the end of its life"; }; - String 10 // name of parameter 5 Amorlinc + String 10 // name of parameter 5 Amorlinc { Text [ en-US ] = "Period"; }; - String 11 // description of parameter 5 Amorlinc + String 11 // description of parameter 5 Amorlinc { Text [ en-US ] = "The period"; }; - String 12 // name of parameter 6 Amorlinc + String 12 // name of parameter 6 Amorlinc { Text [ en-US ] = "Rate"; }; - String 13 // description of parameter 6 Amorlinc + String 13 // description of parameter 6 Amorlinc { Text [ en-US ] = "The rate of depreciation"; }; - String 14 // name of parameter 7 Amorlinc + String 14 // name of parameter 7 Amorlinc { Text [ en-US ] = "Basis"; }; - String 15 // description of parameter 7 Amorlinc + String 15 // description of parameter 7 Amorlinc { Text [ en-US ] = "The year basis to be used"; }; @@ -1588,77 +1588,77 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Accrint { - String 1 // description Accrint + String 1 // description Accrint { Text [ en-US ] = "Returns the accrued interest for a security that pays periodic interest"; }; - String 2 // name of parameter 1 Accrint + String 2 // name of parameter 1 Accrint { Text [ en-US ] = "Issue"; }; - String 3 // description of parameter 1 Accrint + String 3 // description of parameter 1 Accrint { Text [ en-US ] = "Issue date of the security"; }; - String 4 // name of parameter 2 Accrint + String 4 // name of parameter 2 Accrint { Text [ en-US ] = "First interest"; }; - String 5 // description of parameter 2 Accrint + String 5 // description of parameter 2 Accrint { Text [ en-US ] = "First interest date of the security"; }; - String 6 // name of parameter 3 Accrint + String 6 // name of parameter 3 Accrint { Text [ en-US ] = "Settlement"; }; - String 7 // description of parameter 3 Accrint + String 7 // description of parameter 3 Accrint { Text [ en-US ] = "The settlement"; }; - String 8 // name of parameter 4 Accrint + String 8 // name of parameter 4 Accrint { Text [ en-US ] = "Rate"; }; - String 9 // description of parameter 4 Accrint + String 9 // description of parameter 4 Accrint { Text [ en-US ] = "The rate"; }; - String 10 // name of parameter 5 Accrint + String 10 // name of parameter 5 Accrint { Text [ en-US ] = "Par"; }; - String 11 // description of parameter 5 Accrint + String 11 // description of parameter 5 Accrint { Text [ en-US ] = "The par value"; }; - String 12 // name of parameter 6 Accrint + String 12 // name of parameter 6 Accrint { Text [ en-US ] = "Frequency"; }; - String 13 // description of parameter 6 Accrint + String 13 // description of parameter 6 Accrint { Text [ en-US ] = "The frequency"; }; - String 14 // name of parameter 7 Accrint + String 14 // name of parameter 7 Accrint { Text [ en-US ] = "Basis"; }; - String 15 // description of parameter 7 Accrint + String 15 // description of parameter 7 Accrint { Text [ en-US ] = "The basis"; }; @@ -1666,57 +1666,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Accrintm { - String 1 // description Accrintm + String 1 // description Accrintm { Text [ en-US ] = "Returns the accrued interest for a security that pays interest at maturity"; }; - String 2 // name of parameter 1 Accrintm + String 2 // name of parameter 1 Accrintm { Text [ en-US ] = "Issue"; }; - String 3 // description of parameter 1 Accrintm + String 3 // description of parameter 1 Accrintm { Text [ en-US ] = "The issue date"; }; - String 4 // name of parameter 2 Accrintm + String 4 // name of parameter 2 Accrintm { Text [ en-US ] = "Settlement"; }; - String 5 // description of parameter 2 Accrintm + String 5 // description of parameter 2 Accrintm { Text [ en-US ] = "The settlement"; }; - String 6 // name of parameter 3 Accrintm + String 6 // name of parameter 3 Accrintm { Text [ en-US ] = "Rate"; }; - String 7 // description of parameter 3 Accrintm + String 7 // description of parameter 3 Accrintm { Text [ en-US ] = "The rate"; }; - String 8 // name of parameter 4 Accrintm + String 8 // name of parameter 4 Accrintm { Text [ en-US ] = "Par"; }; - String 9 // description of parameter 4 Accrintm + String 9 // description of parameter 4 Accrintm { Text [ en-US ] = "The par value"; }; - String 10 // name of parameter 5 Accrintm + String 10 // name of parameter 5 Accrintm { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Accrintm + String 11 // description of parameter 5 Accrintm { Text [ en-US ] = "The basis"; }; @@ -1724,57 +1724,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Received { - String 1 // description Received + String 1 // description Received { Text [ en-US ] = "Returns the amount paid out at maturity for a fully invested security"; }; - String 2 // name of parameter 1 Received + String 2 // name of parameter 1 Received { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Received + String 3 // description of parameter 1 Received { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Received + String 4 // name of parameter 2 Received { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Received + String 5 // description of parameter 2 Received { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Received + String 6 // name of parameter 3 Received { Text [ en-US ] = "Investment"; }; - String 7 // description of parameter 3 Received + String 7 // description of parameter 3 Received { Text [ en-US ] = "The investment"; }; - String 8 // name of parameter 4 Received + String 8 // name of parameter 4 Received { Text [ en-US ] = "Discount"; }; - String 9 // description of parameter 4 Received + String 9 // description of parameter 4 Received { Text [ en-US ] = "The discount"; }; - String 10 // name of parameter 5 Received + String 10 // name of parameter 5 Received { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Received + String 11 // description of parameter 5 Received { Text [ en-US ] = "The basis"; }; @@ -1782,57 +1782,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Disc { - String 1 // description Disc + String 1 // description Disc { Text [ en-US ] = "Returns the discount rate for a security"; }; - String 2 // name of parameter 1 Disc + String 2 // name of parameter 1 Disc { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Disc + String 3 // description of parameter 1 Disc { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Disc + String 4 // name of parameter 2 Disc { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Disc + String 5 // description of parameter 2 Disc { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Disc + String 6 // name of parameter 3 Disc { Text [ en-US ] = "Price"; }; - String 7 // description of parameter 3 Disc + String 7 // description of parameter 3 Disc { Text [ en-US ] = "The price"; }; - String 8 // name of parameter 4 Disc + String 8 // name of parameter 4 Disc { Text [ en-US ] = "Redemption"; }; - String 9 // description of parameter 4 Disc + String 9 // description of parameter 4 Disc { Text [ en-US ] = "The redemption value"; }; - String 10 // name of parameter 5 Disc + String 10 // name of parameter 5 Disc { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Disc + String 11 // description of parameter 5 Disc { Text [ en-US ] = "The basis"; }; @@ -1840,67 +1840,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Duration { - String 1 // description Duration + String 1 // description Duration { Text [ en-US ] = "Returns the annual Macaulay duration of a security with periodic interest payments"; }; - String 2 // name of parameter 1 Duration + String 2 // name of parameter 1 Duration { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Duration + String 3 // description of parameter 1 Duration { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Duration + String 4 // name of parameter 2 Duration { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Duration + String 5 // description of parameter 2 Duration { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Duration + String 6 // name of parameter 3 Duration { Text [ en-US ] = "Coupon"; }; - String 7 // description of parameter 3 Duration + String 7 // description of parameter 3 Duration { Text [ en-US ] = "The coupon rate"; }; - String 8 // name of parameter 4 Duration + String 8 // name of parameter 4 Duration { Text [ en-US ] = "Yield"; }; - String 9 // description of parameter 4 Duration + String 9 // description of parameter 4 Duration { Text [ en-US ] = "The yield"; }; - String 10 // name of parameter 5 Duration + String 10 // name of parameter 5 Duration { Text [ en-US ] = "Frequency"; }; - String 11 // description of parameter 5 Duration + String 11 // description of parameter 5 Duration { Text [ en-US ] = "The frequency"; }; - String 12 // name of parameter 6 Duration + String 12 // name of parameter 6 Duration { Text [ en-US ] = "Basis"; }; - String 13 // description of parameter 6 Duration + String 13 // description of parameter 6 Duration { Text [ en-US ] = "The basis"; }; @@ -1908,27 +1908,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Effect { - String 1 // description Effect_add + String 1 // description Effect_add { Text [ en-US ] = "Returns the effective annual interest rate"; }; - String 2 // name of parameter 1 Effect_add + String 2 // name of parameter 1 Effect_add { Text [ en-US ] = "Nominal rate"; }; - String 3 // description of parameter 1 Effect_add + String 3 // description of parameter 1 Effect_add { Text [ en-US ] = "The nominal rate"; }; - String 4 // name of parameter 2 Effect_add + String 4 // name of parameter 2 Effect_add { Text [ en-US ] = "Npery"; }; - String 5 // description of parameter 2 Effect_add + String 5 // description of parameter 2 Effect_add { Text [ en-US ] = "The periods"; }; @@ -1936,67 +1936,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Cumprinc { - String 1 // description Cumprinc_add + String 1 // description Cumprinc_add { Text [ en-US ] = "Returns the cumulative principal on a loan to be paid between two periods"; }; - String 2 // name of parameter 1 Cumprinc_add + String 2 // name of parameter 1 Cumprinc_add { Text [ en-US ] = "Rate"; }; - String 3 // description of parameter 1 Cumprinc_add + String 3 // description of parameter 1 Cumprinc_add { Text [ en-US ] = "The rate"; }; - String 4 // name of parameter 2 Cumprinc_add + String 4 // name of parameter 2 Cumprinc_add { Text [ en-US ] = "Nper"; }; - String 5 // description of parameter 2 Cumprinc_add + String 5 // description of parameter 2 Cumprinc_add { Text [ en-US ] = "Number of payment periods"; }; - String 6 // name of parameter 3 Cumprinc_add + String 6 // name of parameter 3 Cumprinc_add { Text [ en-US ] = "Pv"; }; - String 7 // description of parameter 3 Cumprinc_add + String 7 // description of parameter 3 Cumprinc_add { Text [ en-US ] = "The present value"; }; - String 8 // name of parameter 4 Cumprinc_add + String 8 // name of parameter 4 Cumprinc_add { Text [ en-US ] = "Start period"; }; - String 9 // description of parameter 4 Cumprinc_add + String 9 // description of parameter 4 Cumprinc_add { Text [ en-US ] = "The start period"; }; - String 10 // name of parameter 5 Cumprinc_add + String 10 // name of parameter 5 Cumprinc_add { Text [ en-US ] = "End period"; }; - String 11 // description of parameter 5 Cumprinc_add + String 11 // description of parameter 5 Cumprinc_add { Text [ en-US ] = "The end period"; }; - String 12 // name of parameter 6 Cumprinc_add + String 12 // name of parameter 6 Cumprinc_add { Text [ en-US ] = "Type"; }; - String 13 // description of parameter 6 Cumprinc_add + String 13 // description of parameter 6 Cumprinc_add { Text [ en-US ] = "The type of maturity"; }; @@ -2004,67 +2004,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Cumipmt { - String 1 // description Cumipmt_add + String 1 // description Cumipmt_add { Text [ en-US ] = "Returns the cumulative interest to be paid between two periods"; }; - String 2 // name of parameter 1 Cumipmt_add + String 2 // name of parameter 1 Cumipmt_add { Text [ en-US ] = "Rate"; }; - String 3 // description of parameter 1 Cumipmt_add + String 3 // description of parameter 1 Cumipmt_add { Text [ en-US ] = "The rate"; }; - String 4 // name of parameter 2 Cumipmt_add + String 4 // name of parameter 2 Cumipmt_add { Text [ en-US ] = "Nper"; }; - String 5 // description of parameter 2 Cumipmt_add + String 5 // description of parameter 2 Cumipmt_add { Text [ en-US ] = "Number of payment periods"; }; - String 6 // name of parameter 3 Cumipmt_add + String 6 // name of parameter 3 Cumipmt_add { Text [ en-US ] = "Pv"; }; - String 7 // description of parameter 3 Cumipmt_add + String 7 // description of parameter 3 Cumipmt_add { Text [ en-US ] = "The present value"; }; - String 8 // name of parameter 4 Cumipmt_add + String 8 // name of parameter 4 Cumipmt_add { Text [ en-US ] = "Start period"; }; - String 9 // description of parameter 4 Cumipmt_add + String 9 // description of parameter 4 Cumipmt_add { Text [ en-US ] = "The start period"; }; - String 10 // name of parameter 5 Cumipmt_add + String 10 // name of parameter 5 Cumipmt_add { Text [ en-US ] = "End period"; }; - String 11 // description of parameter 5 Cumipmt_add + String 11 // description of parameter 5 Cumipmt_add { Text [ en-US ] = "The end period"; }; - String 12 // name of parameter 6 Cumipmt_add + String 12 // name of parameter 6 Cumipmt_add { Text [ en-US ] = "Type"; }; - String 13 // description of parameter 6 Cumipmt_add + String 13 // description of parameter 6 Cumipmt_add { Text [ en-US ] = "The type of maturity"; }; @@ -2072,77 +2072,77 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Price { - String 1 // description Price + String 1 // description Price { Text [ en-US ] = "Returns the price per 100 currency units face value of a security that pays periodic interest"; }; - String 2 // name of parameter 1 Price + String 2 // name of parameter 1 Price { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Price + String 3 // description of parameter 1 Price { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Price + String 4 // name of parameter 2 Price { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Price + String 5 // description of parameter 2 Price { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Price + String 6 // name of parameter 3 Price { Text [ en-US ] = "Rate"; }; - String 7 // description of parameter 3 Price + String 7 // description of parameter 3 Price { Text [ en-US ] = "The rate"; }; - String 8 // name of parameter 4 Price + String 8 // name of parameter 4 Price { Text [ en-US ] = "Yield"; }; - String 9 // description of parameter 4 Price + String 9 // description of parameter 4 Price { Text [ en-US ] = "The yield"; }; - String 10 // name of parameter 5 Price + String 10 // name of parameter 5 Price { Text [ en-US ] = "Redemption"; }; - String 11 // description of parameter 5 Price + String 11 // description of parameter 5 Price { Text [ en-US ] = "The redemption value"; }; - String 12 // name of parameter 6 Price + String 12 // name of parameter 6 Price { Text [ en-US ] = "Frequency"; }; - String 13 // description of parameter 6 Price + String 13 // description of parameter 6 Price { Text [ en-US ] = "The frequency"; }; - String 14 // name of parameter 7 Price + String 14 // name of parameter 7 Price { Text [ en-US ] = "Basis"; }; - String 15 // description of parameter 7 Price + String 15 // description of parameter 7 Price { Text [ en-US ] = "The basis"; }; @@ -2150,57 +2150,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Pricedisc { - String 1 // description Pricedisc + String 1 // description Pricedisc { Text [ en-US ] = "Returns the price per 100 currency units face value of a discounted security"; }; - String 2 // name of parameter 1 Pricedisc + String 2 // name of parameter 1 Pricedisc { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Pricedisc + String 3 // description of parameter 1 Pricedisc { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Pricedisc + String 4 // name of parameter 2 Pricedisc { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Pricedisc + String 5 // description of parameter 2 Pricedisc { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Pricedisc + String 6 // name of parameter 3 Pricedisc { Text [ en-US ] = "Discount"; }; - String 7 // description of parameter 3 Pricedisc + String 7 // description of parameter 3 Pricedisc { Text [ en-US ] = "The discount"; }; - String 8 // name of parameter 4 Pricedisc + String 8 // name of parameter 4 Pricedisc { Text [ en-US ] = "Redemption"; }; - String 9 // description of parameter 4 Pricedisc + String 9 // description of parameter 4 Pricedisc { Text [ en-US ] = "The redemption value"; }; - String 10 // name of parameter 5 Pricedisc + String 10 // name of parameter 5 Pricedisc { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Pricedisc + String 11 // description of parameter 5 Pricedisc { Text [ en-US ] = "The basis"; }; @@ -2208,67 +2208,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Pricemat { - String 1 // description Pricemat + String 1 // description Pricemat { Text [ en-US ] = "Returns the price per 100 currency units face value of a security that pays interest at maturity"; }; - String 2 // name of parameter 1 Pricemat + String 2 // name of parameter 1 Pricemat { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Pricemat + String 3 // description of parameter 1 Pricemat { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Pricemat + String 4 // name of parameter 2 Pricemat { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Pricemat + String 5 // description of parameter 2 Pricemat { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Pricemat + String 6 // name of parameter 3 Pricemat { Text [ en-US ] = "Issue"; }; - String 7 // description of parameter 3 Pricemat + String 7 // description of parameter 3 Pricemat { Text [ en-US ] = "The issue date"; }; - String 8 // name of parameter 4 Pricemat + String 8 // name of parameter 4 Pricemat { Text [ en-US ] = "Rate"; }; - String 9 // description of parameter 4 Pricemat + String 9 // description of parameter 4 Pricemat { Text [ en-US ] = "The rate"; }; - String 10 // name of parameter 5 Pricemat + String 10 // name of parameter 5 Pricemat { Text [ en-US ] = "Yield"; }; - String 11 // description of parameter 5 Pricemat + String 11 // description of parameter 5 Pricemat { Text [ en-US ] = "The yield"; }; - String 12 // name of parameter 6 Pricemat + String 12 // name of parameter 6 Pricemat { Text [ en-US ] = "Basis"; }; - String 13 // description of parameter 6 Pricemat + String 13 // description of parameter 6 Pricemat { Text [ en-US ] = "The basis"; }; @@ -2276,67 +2276,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Mduration { - String 1 // description Mduration + String 1 // description Mduration { Text [ en-US ] = "Returns the Macaulay modified duration for a security with an assumed par value of 100 currency units"; }; - String 2 // name of parameter 1 Mduration + String 2 // name of parameter 1 Mduration { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Mduration + String 3 // description of parameter 1 Mduration { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Mduration + String 4 // name of parameter 2 Mduration { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Mduration + String 5 // description of parameter 2 Mduration { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Mduration + String 6 // name of parameter 3 Mduration { Text [ en-US ] = "Coupon"; }; - String 7 // description of parameter 3 Mduration + String 7 // description of parameter 3 Mduration { Text [ en-US ] = "The coupon rate"; }; - String 8 // name of parameter 4 Mduration + String 8 // name of parameter 4 Mduration { Text [ en-US ] = "Yield"; }; - String 9 // description of parameter 4 Mduration + String 9 // description of parameter 4 Mduration { Text [ en-US ] = "The yield"; }; - String 10 // name of parameter 5 Mduration + String 10 // name of parameter 5 Mduration { Text [ en-US ] = "Frequency"; }; - String 11 // description of parameter 5 Mduration + String 11 // description of parameter 5 Mduration { Text [ en-US ] = "The frequency"; }; - String 12 // name of parameter 6 Mduration + String 12 // name of parameter 6 Mduration { Text [ en-US ] = "Basis"; }; - String 13 // description of parameter 6 Mduration + String 13 // description of parameter 6 Mduration { Text [ en-US ] = "The basis"; }; @@ -2372,27 +2372,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Dollarfr { - String 1 // description Dollarfr + String 1 // description Dollarfr { Text [ en-US ] = "Converts a price expressed as a decimal into a price expressed as a fraction"; }; - String 2 // name of parameter 1 Dollarfr + String 2 // name of parameter 1 Dollarfr { Text [ en-US ] = "Decimal dollar"; }; - String 3 // description of parameter 1 Dollarfr + String 3 // description of parameter 1 Dollarfr { Text [ en-US ] = "The decimal number"; }; - String 4 // name of parameter 2 Dollarfr + String 4 // name of parameter 2 Dollarfr { Text [ en-US ] = "Fraction"; }; - String 5 // description of parameter 2 Dollarfr + String 5 // description of parameter 2 Dollarfr { Text [ en-US ] = "The divisor"; }; @@ -2400,27 +2400,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Dollarde { - String 1 // description Dollarde + String 1 // description Dollarde { Text [ en-US ] = "Converts a price expressed as a fraction into a price expressed as a decimal"; }; - String 2 // name of parameter 1 Dollarde + String 2 // name of parameter 1 Dollarde { Text [ en-US ] = "Fractional dollar"; }; - String 3 // description of parameter 1 Dollarde + String 3 // description of parameter 1 Dollarde { Text [ en-US ] = "The number as a fraction"; }; - String 4 // name of parameter 2 Dollarde + String 4 // name of parameter 2 Dollarde { Text [ en-US ] = "Fraction"; }; - String 5 // description of parameter 2 Dollarde + String 5 // description of parameter 2 Dollarde { Text [ en-US ] = "The divisor"; }; @@ -2428,77 +2428,77 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Yield { - String 1 // description Yield + String 1 // description Yield { Text [ en-US ] = "Returns the yield on a security that pays periodic interest"; }; - String 2 // name of parameter 1 Yield + String 2 // name of parameter 1 Yield { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Yield + String 3 // description of parameter 1 Yield { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Yield + String 4 // name of parameter 2 Yield { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Yield + String 5 // description of parameter 2 Yield { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Yield + String 6 // name of parameter 3 Yield { Text [ en-US ] = "Rate"; }; - String 7 // description of parameter 3 Yield + String 7 // description of parameter 3 Yield { Text [ en-US ] = "The rate"; }; - String 8 // name of parameter 4 Yield + String 8 // name of parameter 4 Yield { Text [ en-US ] = "Price"; }; - String 9 // description of parameter 4 Yield + String 9 // description of parameter 4 Yield { Text [ en-US ] = "The price"; }; - String 10 // name of parameter 5 Yield + String 10 // name of parameter 5 Yield { Text [ en-US ] = "Redemption"; }; - String 11 // description of parameter 5 Yield + String 11 // description of parameter 5 Yield { Text [ en-US ] = "The redemption value"; }; - String 12 // name of parameter 6 Yield + String 12 // name of parameter 6 Yield { Text [ en-US ] = "Frequency"; }; - String 13 // description of parameter 6 Yield + String 13 // description of parameter 6 Yield { Text [ en-US ] = "The frequency"; }; - String 14 // name of parameter 7 Yield + String 14 // name of parameter 7 Yield { Text [ en-US ] = "Basis"; }; - String 15 // description of parameter 7 Yield + String 15 // description of parameter 7 Yield { Text [ en-US ] = "The basis"; }; @@ -2506,57 +2506,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Yielddisc { - String 1 // description Yielddisc + String 1 // description Yielddisc { Text [ en-US ] = "Returns the annual yield for a discounted security"; }; - String 2 // name of parameter 1 Yielddisc + String 2 // name of parameter 1 Yielddisc { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Yielddisc + String 3 // description of parameter 1 Yielddisc { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Yielddisc + String 4 // name of parameter 2 Yielddisc { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Yielddisc + String 5 // description of parameter 2 Yielddisc { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Yielddisc + String 6 // name of parameter 3 Yielddisc { Text [ en-US ] = "Price"; }; - String 7 // description of parameter 3 Yielddisc + String 7 // description of parameter 3 Yielddisc { Text [ en-US ] = "The price"; }; - String 8 // name of parameter 4 Yielddisc + String 8 // name of parameter 4 Yielddisc { Text [ en-US ] = "Redemption"; }; - String 9 // description of parameter 4 Yielddisc + String 9 // description of parameter 4 Yielddisc { Text [ en-US ] = "The redemption value"; }; - String 10 // name of parameter 5 Yielddisc + String 10 // name of parameter 5 Yielddisc { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Yielddisc + String 11 // description of parameter 5 Yielddisc { Text [ en-US ] = "The basis"; }; @@ -2564,67 +2564,67 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Yieldmat { - String 1 // description Yieldmat + String 1 // description Yieldmat { Text [ en-US ] = "Returns the annual yield of a security that pays interest at maturity"; }; - String 2 // name of parameter 1 Yieldmat + String 2 // name of parameter 1 Yieldmat { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Yieldmat + String 3 // description of parameter 1 Yieldmat { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Yieldmat + String 4 // name of parameter 2 Yieldmat { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Yieldmat + String 5 // description of parameter 2 Yieldmat { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Yieldmat + String 6 // name of parameter 3 Yieldmat { Text [ en-US ] = "Issue"; }; - String 7 // description of parameter 3 Yieldmat + String 7 // description of parameter 3 Yieldmat { Text [ en-US ] = "The issue date"; }; - String 8 // name of parameter 4 Yieldmat + String 8 // name of parameter 4 Yieldmat { Text [ en-US ] = "Rate"; }; - String 9 // description of parameter 4 Yieldmat + String 9 // description of parameter 4 Yieldmat { Text [ en-US ] = "The rate"; }; - String 10 // name of parameter 5 Yieldmat + String 10 // name of parameter 5 Yieldmat { Text [ en-US ] = "Price"; }; - String 11 // description of parameter 5 Yieldmat + String 11 // description of parameter 5 Yieldmat { Text [ en-US ] = "The price"; }; - String 12 // name of parameter 6 Yieldmat + String 12 // name of parameter 6 Yieldmat { Text [ en-US ] = "Basis"; }; - String 13 // description of parameter 6 Yieldmat + String 13 // description of parameter 6 Yieldmat { Text [ en-US ] = "The basis"; }; @@ -2632,37 +2632,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Tbilleq { - String 1 // description Tbilleq + String 1 // description Tbilleq { Text [ en-US ] = "Returns the bond-equivalent yield for a treasury bill"; }; - String 2 // name of parameter 1 Tbilleq + String 2 // name of parameter 1 Tbilleq { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Tbilleq + String 3 // description of parameter 1 Tbilleq { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Tbilleq + String 4 // name of parameter 2 Tbilleq { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Tbilleq + String 5 // description of parameter 2 Tbilleq { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Tbilleq + String 6 // name of parameter 3 Tbilleq { Text [ en-US ] = "Discount"; }; - String 7 // description of parameter 3 Tbilleq + String 7 // description of parameter 3 Tbilleq { Text [ en-US ] = "The discount rate"; }; @@ -2670,37 +2670,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Tbillprice { - String 1 // description Tbillprice + String 1 // description Tbillprice { Text [ en-US ] = "Returns the price of 100 currency units face value for a treasury bill"; }; - String 2 // name of parameter 1 Tbillprice + String 2 // name of parameter 1 Tbillprice { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Tbillprice + String 3 // description of parameter 1 Tbillprice { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Tbillprice + String 4 // name of parameter 2 Tbillprice { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Tbillprice + String 5 // description of parameter 2 Tbillprice { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Tbillprice + String 6 // name of parameter 3 Tbillprice { Text [ en-US ] = "Discount"; }; - String 7 // description of parameter 3 Tbillprice + String 7 // description of parameter 3 Tbillprice { Text [ en-US ] = "The discount rate"; }; @@ -2708,37 +2708,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Tbillyield { - String 1 // description Tbillyield + String 1 // description Tbillyield { Text [ en-US ] = "Returns the yield for a treasury bill"; }; - String 2 // name of parameter 1 Tbillyield + String 2 // name of parameter 1 Tbillyield { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Tbillyield + String 3 // description of parameter 1 Tbillyield { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Tbillyield + String 4 // name of parameter 2 Tbillyield { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Tbillyield + String 5 // description of parameter 2 Tbillyield { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Tbillyield + String 6 // name of parameter 3 Tbillyield { Text [ en-US ] = "Price"; }; - String 7 // description of parameter 3 Tbillyield + String 7 // description of parameter 3 Tbillyield { Text [ en-US ] = "The price"; }; @@ -2746,97 +2746,97 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oddfprice { - String 1 // description Oddfprice + String 1 // description Oddfprice { Text [ en-US ] = "Returns the price per $100 face value of a security with an odd first period"; }; - String 2 // name of parameter 1 Oddfprice + String 2 // name of parameter 1 Oddfprice { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Oddfprice + String 3 // description of parameter 1 Oddfprice { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Oddfprice + String 4 // name of parameter 2 Oddfprice { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Oddfprice + String 5 // description of parameter 2 Oddfprice { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Oddfprice + String 6 // name of parameter 3 Oddfprice { Text [ en-US ] = "Issue"; }; - String 7 // description of parameter 3 Oddfprice + String 7 // description of parameter 3 Oddfprice { Text [ en-US ] = "The issue date"; }; - String 8 // name of parameter 4 Oddfprice + String 8 // name of parameter 4 Oddfprice { Text [ en-US ] = "First coupon"; }; - String 9 // description of parameter 4 Oddfprice + String 9 // description of parameter 4 Oddfprice { Text [ en-US ] = "The first coupon date"; }; - String 10 // name of parameter 5 Oddfprice + String 10 // name of parameter 5 Oddfprice { Text [ en-US ] = "Rate"; }; - String 11 // description of parameter 5 Oddfprice + String 11 // description of parameter 5 Oddfprice { Text [ en-US ] = "The rate"; }; - String 12 // name of parameter 6 Oddfprice + String 12 // name of parameter 6 Oddfprice { Text [ en-US ] = "Yield"; }; - String 13 // description of parameter 6 Oddfprice + String 13 // description of parameter 6 Oddfprice { Text [ en-US ] = "The yield"; }; - String 14 // name of parameter 7 Oddfprice + String 14 // name of parameter 7 Oddfprice { Text [ en-US ] = "Redemption"; }; - String 15 // description of parameter 7 Oddfprice + String 15 // description of parameter 7 Oddfprice { Text [ en-US ] = "The redemption value"; }; - String 16 // name of parameter 8 Oddfprice + String 16 // name of parameter 8 Oddfprice { Text [ en-US ] = "Frequency"; }; - String 17 // description of parameter 8 Oddfprice + String 17 // description of parameter 8 Oddfprice { Text [ en-US ] = "The frequency"; }; - String 18 // name of parameter 9 Oddfprice + String 18 // name of parameter 9 Oddfprice { Text [ en-US ] = "Basis"; }; - String 19 // description of parameter 9 Oddfprice + String 19 // description of parameter 9 Oddfprice { Text [ en-US ] = "The basis"; }; @@ -2844,97 +2844,97 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oddfyield { - String 1 // description Oddfyield + String 1 // description Oddfyield { Text [ en-US ] = "Returns the yield of a security with an odd first period"; }; - String 2 // name of parameter 1 Oddfyield + String 2 // name of parameter 1 Oddfyield { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Oddfyield + String 3 // description of parameter 1 Oddfyield { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Oddfyield + String 4 // name of parameter 2 Oddfyield { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Oddfyield + String 5 // description of parameter 2 Oddfyield { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Oddfyield + String 6 // name of parameter 3 Oddfyield { Text [ en-US ] = "Issue"; }; - String 7 // description of parameter 3 Oddfyield + String 7 // description of parameter 3 Oddfyield { Text [ en-US ] = "The issue date"; }; - String 8 // name of parameter 4 Oddfyield + String 8 // name of parameter 4 Oddfyield { Text [ en-US ] = "First coupon"; }; - String 9 // description of parameter 4 Oddfyield + String 9 // description of parameter 4 Oddfyield { Text [ en-US ] = "The first coupon date"; }; - String 10 // name of parameter 5 Oddfyield + String 10 // name of parameter 5 Oddfyield { Text [ en-US ] = "Rate"; }; - String 11 // description of parameter 5 Oddfyield + String 11 // description of parameter 5 Oddfyield { Text [ en-US ] = "The rate"; }; - String 12 // name of parameter 6 Oddfyield + String 12 // name of parameter 6 Oddfyield { Text [ en-US ] = "Price"; }; - String 13 // description of parameter 6 Oddfyield + String 13 // description of parameter 6 Oddfyield { Text [ en-US ] = "The price"; }; - String 14 // name of parameter 7 Oddfyield + String 14 // name of parameter 7 Oddfyield { Text [ en-US ] = "Redemption"; }; - String 15 // description of parameter 7 Oddfyield + String 15 // description of parameter 7 Oddfyield { Text [ en-US ] = "The redemption value"; }; - String 16 // name of parameter 8 Oddfyield + String 16 // name of parameter 8 Oddfyield { Text [ en-US ] = "Frequency"; }; - String 17 // description of parameter 8 Oddfyield + String 17 // description of parameter 8 Oddfyield { Text [ en-US ] = "The frequency"; }; - String 18 // name of parameter 9 Oddfyield + String 18 // name of parameter 9 Oddfyield { Text [ en-US ] = "Basis"; }; - String 19 // description of parameter 9 Oddfyield + String 19 // description of parameter 9 Oddfyield { Text [ en-US ] = "The basis"; }; @@ -2942,87 +2942,87 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oddlprice { - String 1 // description Oddlprice + String 1 // description Oddlprice { Text [ en-US ] = "Returns the price per $100 face value of a security with an odd last period"; }; - String 2 // name of parameter 1 Oddlprice + String 2 // name of parameter 1 Oddlprice { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Oddlprice + String 3 // description of parameter 1 Oddlprice { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Oddlprice + String 4 // name of parameter 2 Oddlprice { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Oddlprice + String 5 // description of parameter 2 Oddlprice { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Oddlprice + String 6 // name of parameter 3 Oddlprice { Text [ en-US ] = "Last interest"; }; - String 7 // description of parameter 3 Oddlprice + String 7 // description of parameter 3 Oddlprice { Text [ en-US ] = "The last interest date"; }; - String 8 // name of parameter 4 Oddlprice + String 8 // name of parameter 4 Oddlprice { Text [ en-US ] = "Rate"; }; - String 9 // description of parameter 4 Oddlprice + String 9 // description of parameter 4 Oddlprice { Text [ en-US ] = "The rate"; }; - String 10 // name of parameter 5 Oddlprice + String 10 // name of parameter 5 Oddlprice { Text [ en-US ] = "Yield"; }; - String 11 // description of parameter 5 Oddlprice + String 11 // description of parameter 5 Oddlprice { Text [ en-US ] = "The yield"; }; - String 12 // name of parameter 6 Oddlprice + String 12 // name of parameter 6 Oddlprice { Text [ en-US ] = "Redemption"; }; - String 13 // description of parameter 6 Oddlprice + String 13 // description of parameter 6 Oddlprice { Text [ en-US ] = "The redemption value"; }; - String 14 // name of parameter 7 Oddlprice + String 14 // name of parameter 7 Oddlprice { Text [ en-US ] = "Frequency"; }; - String 15 // description of parameter 7 Oddlprice + String 15 // description of parameter 7 Oddlprice { Text [ en-US ] = "The frequency"; }; - String 16 // name of parameter 8 Oddlprice + String 16 // name of parameter 8 Oddlprice { Text [ en-US ] = "Basis"; }; - String 17 // description of parameter 8 Oddlprice + String 17 // description of parameter 8 Oddlprice { Text [ en-US ] = "The basis"; }; @@ -3030,87 +3030,87 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Oddlyield { - String 1 // description Oddlyield + String 1 // description Oddlyield { Text [ en-US ] = "Returns the yield of a security with an odd last period"; }; - String 2 // name of parameter 1 Oddlyield + String 2 // name of parameter 1 Oddlyield { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Oddlyield + String 3 // description of parameter 1 Oddlyield { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Oddlyield + String 4 // name of parameter 2 Oddlyield { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Oddlyield + String 5 // description of parameter 2 Oddlyield { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Oddlyield + String 6 // name of parameter 3 Oddlyield { Text [ en-US ] = "Last interest"; }; - String 7 // description of parameter 3 Oddlyield + String 7 // description of parameter 3 Oddlyield { Text [ en-US ] = "The last interest date"; }; - String 8 // name of parameter 4 Oddlyield + String 8 // name of parameter 4 Oddlyield { Text [ en-US ] = "Rate"; }; - String 9 // description of parameter 4 Oddlyield + String 9 // description of parameter 4 Oddlyield { Text [ en-US ] = "The rate"; }; - String 10 // name of parameter 5 Oddlyield + String 10 // name of parameter 5 Oddlyield { Text [ en-US ] = "Price"; }; - String 11 // description of parameter 5 Oddlyield + String 11 // description of parameter 5 Oddlyield { Text [ en-US ] = "The price"; }; - String 12 // name of parameter 6 Oddlyield + String 12 // name of parameter 6 Oddlyield { Text [ en-US ] = "Redemption"; }; - String 13 // description of parameter 6 Oddlyield + String 13 // description of parameter 6 Oddlyield { Text [ en-US ] = "The redemption value"; }; - String 14 // name of parameter 7 Oddlyield + String 14 // name of parameter 7 Oddlyield { Text [ en-US ] = "Frequency"; }; - String 15 // description of parameter 7 Oddlyield + String 15 // description of parameter 7 Oddlyield { Text [ en-US ] = "The frequency"; }; - String 16 // name of parameter 8 Oddlyield + String 16 // name of parameter 8 Oddlyield { Text [ en-US ] = "Basis"; }; - String 17 // description of parameter 8 Oddlyield + String 17 // description of parameter 8 Oddlyield { Text [ en-US ] = "The basis"; }; @@ -3118,37 +3118,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Xirr { - String 1 // description Xirr + String 1 // description Xirr { Text [ en-US ] = "Returns the internal rate of return for a non-periodic schedule of payments"; }; - String 2 // name of parameter 1 Xirr + String 2 // name of parameter 1 Xirr { Text [ en-US ] = "Values"; }; - String 3 // description of parameter 1 Xirr + String 3 // description of parameter 1 Xirr { Text [ en-US ] = "The values"; }; - String 4 // name of parameter 2 Xirr + String 4 // name of parameter 2 Xirr { Text [ en-US ] = "Dates"; }; - String 5 // description of parameter 2 Xirr + String 5 // description of parameter 2 Xirr { Text [ en-US ] = "The dates"; }; - String 6 // name of parameter 3 Xirr + String 6 // name of parameter 3 Xirr { Text [ en-US ] = "Guess"; }; - String 7 // description of parameter 3 Xirr + String 7 // description of parameter 3 Xirr { Text [ en-US ] = "The guess"; }; @@ -3156,37 +3156,37 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Xnpv { - String 1 // description Xnpv + String 1 // description Xnpv { Text [ en-US ] = "Returns the net present value for a non-periodic schedule of payments"; }; - String 2 // name of parameter 1 Xnpv + String 2 // name of parameter 1 Xnpv { Text [ en-US ] = "Rate"; }; - String 3 // description of parameter 1 Xnpv + String 3 // description of parameter 1 Xnpv { Text [ en-US ] = "The rate"; }; - String 4 // name of parameter 2 Xnpv + String 4 // name of parameter 2 Xnpv { Text [ en-US ] = "Values"; }; - String 5 // description of parameter 2 Xnpv + String 5 // description of parameter 2 Xnpv { Text [ en-US ] = "The values"; }; - String 6 // name of parameter 3 Xnpv + String 6 // name of parameter 3 Xnpv { Text [ en-US ] = "Dates"; }; - String 7 // description of parameter 3 Xnpv + String 7 // description of parameter 3 Xnpv { Text [ en-US ] = "The dates"; }; @@ -3194,57 +3194,57 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Intrate { - String 1 // description Intrate + String 1 // description Intrate { Text [ en-US ] = "Returns the interest rate for a fully invested security"; }; - String 2 // name of parameter 1 Intrate + String 2 // name of parameter 1 Intrate { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Intrate + String 3 // description of parameter 1 Intrate { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Intrate + String 4 // name of parameter 2 Intrate { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Intrate + String 5 // description of parameter 2 Intrate { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Intrate + String 6 // name of parameter 3 Intrate { Text [ en-US ] = "Investment"; }; - String 7 // description of parameter 3 Intrate + String 7 // description of parameter 3 Intrate { Text [ en-US ] = "The investment"; }; - String 8 // name of parameter 4 Intrate + String 8 // name of parameter 4 Intrate { Text [ en-US ] = "Redemption"; }; - String 9 // description of parameter 4 Intrate + String 9 // description of parameter 4 Intrate { Text [ en-US ] = "The redemption value"; }; - String 10 // name of parameter 5 Intrate + String 10 // name of parameter 5 Intrate { Text [ en-US ] = "Basis"; }; - String 11 // description of parameter 5 Intrate + String 11 // description of parameter 5 Intrate { Text [ en-US ] = "The basis"; }; @@ -3252,47 +3252,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Coupncd { - String 1 // description Coupncd + String 1 // description Coupncd { Text [ en-US ] = "Returns the first coupon date after the settlement date"; }; - String 2 // name of parameter 1 Coupncd + String 2 // name of parameter 1 Coupncd { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Coupncd + String 3 // description of parameter 1 Coupncd { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Coupncd + String 4 // name of parameter 2 Coupncd { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Coupncd + String 5 // description of parameter 2 Coupncd { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Coupncd + String 6 // name of parameter 3 Coupncd { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Coupncd + String 7 // description of parameter 3 Coupncd { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Coupncd + String 8 // name of parameter 4 Coupncd { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Coupncd + String 9 // description of parameter 4 Coupncd { Text [ en-US ] = "The basis"; }; @@ -3300,47 +3300,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Coupdays { - String 1 // description Coupdays + String 1 // description Coupdays { Text [ en-US ] = "Returns the number of days in the coupon period containing the settlement date"; }; - String 2 // name of parameter 1 Coupdays + String 2 // name of parameter 1 Coupdays { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Coupdays + String 3 // description of parameter 1 Coupdays { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Coupdays + String 4 // name of parameter 2 Coupdays { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Coupdays + String 5 // description of parameter 2 Coupdays { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Coupdays + String 6 // name of parameter 3 Coupdays { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Coupdays + String 7 // description of parameter 3 Coupdays { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Coupdays + String 8 // name of parameter 4 Coupdays { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Coupdays + String 9 // description of parameter 4 Coupdays { Text [ en-US ] = "The basis"; }; @@ -3348,47 +3348,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Coupdaysnc { - String 1 // description Coupdaysnc + String 1 // description Coupdaysnc { Text [ en-US ] = "Returns the number of days from the settlement date to the next coupon date"; }; - String 2 // name of parameter 1 Coupdaysnc + String 2 // name of parameter 1 Coupdaysnc { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Coupdaysnc + String 3 // description of parameter 1 Coupdaysnc { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Coupdaysnc + String 4 // name of parameter 2 Coupdaysnc { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Coupdaysnc + String 5 // description of parameter 2 Coupdaysnc { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Coupdaysnc + String 6 // name of parameter 3 Coupdaysnc { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Coupdaysnc + String 7 // description of parameter 3 Coupdaysnc { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Coupdaysnc + String 8 // name of parameter 4 Coupdaysnc { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Coupdaysnc + String 9 // description of parameter 4 Coupdaysnc { Text [ en-US ] = "The basis"; }; @@ -3396,47 +3396,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Coupdaybs { - String 1 // description Coupdaybs + String 1 // description Coupdaybs { Text [ en-US ] = "Returns the number of days from the beginning of the coupon period to the settlement date"; }; - String 2 // name of parameter 1 Coupdaybs + String 2 // name of parameter 1 Coupdaybs { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Coupdaybs + String 3 // description of parameter 1 Coupdaybs { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Coupdaybs + String 4 // name of parameter 2 Coupdaybs { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Coupdaybs + String 5 // description of parameter 2 Coupdaybs { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Coupdaybs + String 6 // name of parameter 3 Coupdaybs { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Coupdaybs + String 7 // description of parameter 3 Coupdaybs { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Coupdaybs + String 8 // name of parameter 4 Coupdaybs { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Coupdaybs + String 9 // description of parameter 4 Coupdaybs { Text [ en-US ] = "The basis"; }; @@ -3444,47 +3444,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Couppcd { - String 1 // description Couppcd + String 1 // description Couppcd { Text [ en-US ] = "Returns the last coupon date preceding the settlement date"; }; - String 2 // name of parameter 1 Couppcd + String 2 // name of parameter 1 Couppcd { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Couppcd + String 3 // description of parameter 1 Couppcd { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Couppcd + String 4 // name of parameter 2 Couppcd { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Couppcd + String 5 // description of parameter 2 Couppcd { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Couppcd + String 6 // name of parameter 3 Couppcd { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Couppcd + String 7 // description of parameter 3 Couppcd { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Couppcd + String 8 // name of parameter 4 Couppcd { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Couppcd + String 9 // description of parameter 4 Couppcd { Text [ en-US ] = "The basis"; }; @@ -3492,47 +3492,47 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Coupnum { - String 1 // description Coupnum + String 1 // description Coupnum { Text [ en-US ] = "Returns the number of coupons payable between the settlement and maturity dates"; }; - String 2 // name of parameter 1 Coupnum + String 2 // name of parameter 1 Coupnum { Text [ en-US ] = "Settlement"; }; - String 3 // description of parameter 1 Coupnum + String 3 // description of parameter 1 Coupnum { Text [ en-US ] = "The settlement"; }; - String 4 // name of parameter 2 Coupnum + String 4 // name of parameter 2 Coupnum { Text [ en-US ] = "Maturity"; }; - String 5 // description of parameter 2 Coupnum + String 5 // description of parameter 2 Coupnum { Text [ en-US ] = "The maturity"; }; - String 6 // name of parameter 3 Coupnum + String 6 // name of parameter 3 Coupnum { Text [ en-US ] = "Frequency"; }; - String 7 // description of parameter 3 Coupnum + String 7 // description of parameter 3 Coupnum { Text [ en-US ] = "The frequency"; }; - String 8 // name of parameter 4 Coupnum + String 8 // name of parameter 4 Coupnum { Text [ en-US ] = "Basis"; }; - String 9 // description of parameter 4 Coupnum + String 9 // description of parameter 4 Coupnum { Text [ en-US ] = "The basis"; }; @@ -3540,27 +3540,27 @@ Resource RID_ANALYSIS_FUNCTION_DESCRIPTIONS Resource ANALYSIS_Fvschedule { - String 1 // description Fvschedule + String 1 // description Fvschedule { Text [ en-US ] = "Returns the future value of the initial principal after a series of compound interest rates are applied"; }; - String 2 // name of parameter 1 Fvschedule + String 2 // name of parameter 1 Fvschedule { Text [ en-US ] = "Principal"; }; - String 3 // description of parameter 1 Fvschedule + String 3 // description of parameter 1 Fvschedule { Text [ en-US ] = "The principal"; }; - String 4 // name of parameter 2 Fvschedule + String 4 // name of parameter 2 Fvschedule { Text [ en-US ] = "Schedule"; }; - String 5 // description of parameter 2 Fvschedule + String 5 // description of parameter 2 Fvschedule { Text [ en-US ] = "The schedule"; }; diff --git a/scaddins/source/analysis/analysis_deffuncnames.src b/scaddins/source/analysis/analysis_deffuncnames.src index b3b0186149c8..840800da8ae4 100644 --- a/scaddins/source/analysis/analysis_deffuncnames.src +++ b/scaddins/source/analysis/analysis_deffuncnames.src @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/analysis/analysis_funcnames.src b/scaddins/source/analysis/analysis_funcnames.src index 39df00f49c97..e5cd3e02f9d3 100644 --- a/scaddins/source/analysis/analysis_funcnames.src +++ b/scaddins/source/analysis/analysis_funcnames.src @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/analysis/analysisadd.idl b/scaddins/source/analysis/analysisadd.idl index 32a94f75df3b..6245bff9ad5a 100644 --- a/scaddins/source/analysis/analysisadd.idl +++ b/scaddins/source/analysis/analysisadd.idl @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/analysis/analysisdefs.hxx b/scaddins/source/analysis/analysisdefs.hxx index 0b9bf2d43ed8..dae4205e2d84 100644 --- a/scaddins/source/analysis/analysisdefs.hxx +++ b/scaddins/source/analysis/analysisdefs.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,22 +28,22 @@ #ifndef ANALYSISDEFS_HXX #define ANALYSISDEFS_HXX -#define CSS ::com::sun::star -#define XPROPSET CSS::beans::XPropertySet -#define REF(c) CSS::uno::Reference< c > -#define constREFXPS const REF(XPROPSET) -#define SEQ(c) CSS::uno::Sequence< c > -#define SEQSEQ(c) CSS::uno::Sequence< CSS::uno::Sequence< c > > -#define SEQofLocName SEQ( CSS::sheet::LocalizedName ) -#define ANY CSS::uno::Any -#define SEQ_ANY SEQ(ANY) -#define STRING ::rtl::OUString -#define STRFROMASCII(s) STRING::createFromAscii( s ) -#define STRFROMANSI(s) STRING( s, strlen( s ), RTL_TEXTENCODING_MS_1252 ) -#define THROWDEF_RTE throw(CSS::uno::RuntimeException) -#define THROW_RTE throw CSS::uno::RuntimeException() -#define THROWDEF_RTE_IAE throw(CSS::uno::RuntimeException,CSS::lang::IllegalArgumentException) -#define THROW_IAE throw CSS::lang::IllegalArgumentException() +#define CSS ::com::sun::star +#define XPROPSET CSS::beans::XPropertySet +#define REF(c) CSS::uno::Reference< c > +#define constREFXPS const REF(XPROPSET) +#define SEQ(c) CSS::uno::Sequence< c > +#define SEQSEQ(c) CSS::uno::Sequence< CSS::uno::Sequence< c > > +#define SEQofLocName SEQ( CSS::sheet::LocalizedName ) +#define ANY CSS::uno::Any +#define SEQ_ANY SEQ(ANY) +#define STRING ::rtl::OUString +#define STRFROMASCII(s) STRING::createFromAscii( s ) +#define STRFROMANSI(s) STRING( s, strlen( s ), RTL_TEXTENCODING_MS_1252 ) +#define THROWDEF_RTE throw(CSS::uno::RuntimeException) +#define THROW_RTE throw CSS::uno::RuntimeException() +#define THROWDEF_RTE_IAE throw(CSS::uno::RuntimeException,CSS::lang::IllegalArgumentException) +#define THROW_IAE throw CSS::lang::IllegalArgumentException() #define THROWDEF_RTE_IAE_NCE throw(CSS::uno::RuntimeException,CSS::lang::IllegalArgumentException,CSS::sheet::NoConvergenceException) #define THROW_NCE throw CSS::sheet::NoConvergenceException() diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index bde1cdb8c44d..d47c02a4e961 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -197,9 +197,9 @@ void DaysToDate( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt if( nDays < 0 ) throw lang::IllegalArgumentException(); - sal_Int32 nTempDays; - sal_Int32 i = 0; - sal_Bool bCalc; + sal_Int32 nTempDays; + sal_Int32 i = 0; + sal_Bool bCalc; do { @@ -252,8 +252,8 @@ sal_Int32 GetNullDate( constREFXPS& xOpt ) THROWDEF_RTE { try { - ANY aAny = xOpt->getPropertyValue( STRFROMASCII( "NullDate" ) ); - util::Date aDate; + ANY aAny = xOpt->getPropertyValue( STRFROMASCII( "NullDate" ) ); + util::Date aDate; if( aAny >>= aDate ) return DateToDays( aDate.Day, aDate.Month, aDate.Year ); } @@ -281,7 +281,7 @@ sal_Int32 GetDiffDate360( { if( bUSAMethod && nDay1 != 30 ) { - //aDate2 += 1; -> 1.xx.yyyy + //aDate2 += 1; -> 1.xx.yyyy nDay2 = 1; if( nMonth2 == 12 ) { @@ -315,14 +315,14 @@ sal_Int32 GetDiffDate360( sal_Int32 nNullDate, sal_Int32 nDate1, sal_Int32 nDate sal_Int32 GetDaysInYears( sal_uInt16 nYear1, sal_uInt16 nYear2 ) { - sal_uInt16 nLeaps = 0; + sal_uInt16 nLeaps = 0; for( sal_uInt16 n = nYear1 ; n <= nYear2 ; n++ ) { if( IsLeapYear( n ) ) nLeaps++; } - sal_uInt32 nSum = 1; + sal_uInt32 nSum = 1; nSum += nYear2; nSum -= nYear1; nSum *= 365; @@ -337,35 +337,35 @@ void GetDiffParam( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate { if( nStartDate > nEndDate ) { - sal_Int32 n = nEndDate; + sal_Int32 n = nEndDate; nEndDate = nStartDate; nStartDate = n; } - sal_Int32 nDate1 = nStartDate + nNullDate; - sal_Int32 nDate2 = nEndDate + nNullDate; + sal_Int32 nDate1 = nStartDate + nNullDate; + sal_Int32 nDate2 = nEndDate + nNullDate; - sal_uInt16 nDay1, nDay2; - sal_uInt16 nMonth1, nMonth2; - sal_uInt16 nYear1, nYear2; + sal_uInt16 nDay1, nDay2; + sal_uInt16 nMonth1, nMonth2; + sal_uInt16 nYear1, nYear2; DaysToDate( nDate1, nDay1, nMonth1, nYear1 ); DaysToDate( nDate2, nDay2, nMonth2, nYear2 ); - sal_uInt16 nYears; + sal_uInt16 nYears; - sal_Int32 nDayDiff, nDaysInYear; + sal_Int32 nDayDiff, nDaysInYear; switch( nMode ) { - case 0: // 0=USA (NASD) 30/360 - case 4: // 4=Europe 30/360 + case 0: // 0=USA (NASD) 30/360 + case 4: // 4=Europe 30/360 nDaysInYear = 360; nYears = nYear2 - nYear1; nDayDiff = GetDiffDate360( nDay1, nMonth1, nYear1, IsLeapYear( nYear1 ), nDay2, nMonth2, nYear2, nMode == 0 ) - nYears * nDaysInYear; break; - case 1: // 1=exact/exact + case 1: // 1=exact/exact nYears = nYear2 - nYear1; nDaysInYear = IsLeapYear( nYear1 )? 366 : 365; @@ -382,13 +382,13 @@ void GetDiffParam( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate nDayDiff += nDaysInYear; break; - case 2: // 2=exact/360 + case 2: // 2=exact/360 nDaysInYear = 360; nYears = sal_uInt16( ( nDate2 - nDate1 ) / nDaysInYear ); nDayDiff = nDate2 - nDate1; nDayDiff %= nDaysInYear; break; - case 3: //3=exact/365 + case 3: //3=exact/365 nDaysInYear = 365; nYears = sal_uInt16( ( nDate2 - nDate1 ) / nDaysInYear ); nDayDiff = nDate2 - nDate1; @@ -407,23 +407,23 @@ void GetDiffParam( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode, sal_Int32* pOptDaysIn1stYear ) THROWDEF_RTE_IAE { - sal_Bool bNeg = nStartDate > nEndDate; + sal_Bool bNeg = nStartDate > nEndDate; if( bNeg ) { - sal_Int32 n = nEndDate; + sal_Int32 n = nEndDate; nEndDate = nStartDate; nStartDate = n; } - sal_Int32 nRet; + sal_Int32 nRet; switch( nMode ) { - case 0: // 0=USA (NASD) 30/360 - case 4: // 4=Europe 30/360 + case 0: // 0=USA (NASD) 30/360 + case 4: // 4=Europe 30/360 { - sal_uInt16 nD1, nM1, nY1, nD2, nM2, nY2; + sal_uInt16 nD1, nM1, nY1, nD2, nM2, nY2; nStartDate += nNullDate; nEndDate += nNullDate; @@ -431,8 +431,8 @@ sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEnd DaysToDate( nStartDate, nD1, nM1, nY1 ); DaysToDate( nEndDate, nD2, nM2, nY2 ); - sal_Bool bLeap = IsLeapYear( nY1 ); - sal_Int32 nDays, nMonths/*, nYears*/; + sal_Bool bLeap = IsLeapYear( nY1 ); + sal_Int32 nDays, nMonths/*, nYears*/; nMonths = nM2 - nM1; nDays = nD2 - nD1; @@ -447,10 +447,10 @@ sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEnd *pOptDaysIn1stYear = 360; } break; - case 1: // 1=exact/exact + case 1: // 1=exact/exact if( pOptDaysIn1stYear ) { - sal_uInt16 nD, nM, nY; + sal_uInt16 nD, nM, nY; DaysToDate( nStartDate + nNullDate, nD, nM, nY ); @@ -458,12 +458,12 @@ sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEnd } nRet = nEndDate - nStartDate; break; - case 2: // 2=exact/360 + case 2: // 2=exact/360 nRet = nEndDate - nStartDate; if( pOptDaysIn1stYear ) *pOptDaysIn1stYear = 360; break; - case 3: //3=exact/365 + case 3: //3=exact/365 nRet = nEndDate - nStartDate; if( pOptDaysIn1stYear ) *pOptDaysIn1stYear = 365; @@ -478,8 +478,8 @@ sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEnd double GetYearDiff( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) THROWDEF_RTE_IAE { - sal_Int32 nDays1stYear; - sal_Int32 nTotalDays = GetDiffDate( nNullDate, nStartDate, nEndDate, nMode, &nDays1stYear ); + sal_Int32 nDays1stYear; + sal_Int32 nTotalDays = GetDiffDate( nNullDate, nStartDate, nEndDate, nMode, &nDays1stYear ); return double( nTotalDays ) / double( nDays1stYear ); } @@ -489,18 +489,18 @@ sal_Int32 GetDaysInYear( sal_Int32 nNullDate, sal_Int32 nDate, sal_Int32 nMode ) { switch( nMode ) { - case 0: // 0=USA (NASD) 30/360 - case 2: // 2=exact/360 - case 4: // 4=Europe 30/360 + case 0: // 0=USA (NASD) 30/360 + case 2: // 2=exact/360 + case 4: // 4=Europe 30/360 return 360; - case 1: // 1=exact/exact + case 1: // 1=exact/exact { - sal_uInt16 nD, nM, nY; + sal_uInt16 nD, nM, nY; nDate += nNullDate; DaysToDate( nDate, nD, nM, nY ); return IsLeapYear( nY )? 366 : 365; } - case 3: //3=exact/365 + case 3: //3=exact/365 return 365; default: THROW_IAE; @@ -511,10 +511,10 @@ sal_Int32 GetDaysInYear( sal_Int32 nNullDate, sal_Int32 nDate, sal_Int32 nMode ) double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) THROWDEF_RTE_IAE { if( nStartDate == nEndDate ) - return 0.0; // nothing to do... + return 0.0; // nothing to do... - sal_uInt16 nYears; - sal_Int32 nDayDiff, nDaysInYear; + sal_uInt16 nYears; + sal_Int32 nDayDiff, nDaysInYear; GetDiffParam( nNullDate, nStartDate, nEndDate, nMode, nYears, nDayDiff, nDaysInYear ); @@ -526,8 +526,8 @@ double Fak( sal_Int32 n ) { if( n > 0 ) { - double fRet = n; - double f = n - 1; + double fRet = n; + double f = n - 1; while( f >= 2.0 ) { @@ -546,7 +546,7 @@ double Fak( sal_Int32 n ) double GetGcd( double f1, double f2 ) { - double f = fmod( f1, f2 ); + double f = fmod( f1, f2 ); while( f > 0.0 ) { f1 = f2; @@ -563,23 +563,23 @@ double ConvertToDec( const STRING& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ) if ( nBase < 2 || nBase > 36 ) THROW_IAE; - sal_uInt32 nStrLen = aStr.getLength(); + sal_uInt32 nStrLen = aStr.getLength(); if( nStrLen > nCharLim ) THROW_IAE; else if( !nStrLen ) return 0.0; - double fVal = 0.0; + double fVal = 0.0; - register const sal_Unicode* p = aStr.getStr(); + register const sal_Unicode* p = aStr.getStr(); - sal_uInt16 nFirstDig = 0; - sal_Bool bFirstDig = sal_True; - double fBase = nBase; + sal_uInt16 nFirstDig = 0; + sal_Bool bFirstDig = sal_True; + double fBase = nBase; while ( *p ) { - sal_uInt16 n; + sal_uInt16 n; if( '0' <= *p && *p <= '9' ) n = *p - '0'; @@ -608,8 +608,8 @@ double ConvertToDec( const STRING& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ) } if( nStrLen == nCharLim && !bFirstDig && (nFirstDig >= nBase / 2) ) - { // handling negativ values - fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement + { // handling negativ values + fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement fVal *= -1.0; } @@ -619,7 +619,7 @@ double ConvertToDec( const STRING& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ) static inline sal_Char GetMaxChar( sal_uInt16 nBase ) { - const sal_Char* c = "--123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + const sal_Char* c = "--123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; return c[ nBase ]; } @@ -635,11 +635,11 @@ STRING ConvertFromDec( double fNum, double fMin, double fMax, sal_uInt16 nBase, THROW_IAE; sal_Int64 nNum = static_cast< sal_Int64 >( fNum ); - sal_Bool bNeg = nNum < 0; + sal_Bool bNeg = nNum < 0; if( bNeg ) nNum = sal_Int64( pow( double( nBase ), double( nMaxPlaces ) ) ) + nNum; - STRING aRet( STRING::valueOf( nNum, nBase ).toAsciiUpperCase() ); + STRING aRet( STRING::valueOf( nNum, nBase ).toAsciiUpperCase() ); if( bUsePlaces ) @@ -652,10 +652,10 @@ STRING ConvertFromDec( double fNum, double fMin, double fMax, sal_uInt16 nBase, else if( ( bNeg && nLen < nMaxPlaces ) || ( !bNeg && nLen < nPlaces ) ) { sal_Int32 nLeft = nPlaces - nLen; - sal_Char* p = new sal_Char[ nLeft + 1 ]; + sal_Char* p = new sal_Char[ nLeft + 1 ]; memset( p, bNeg? GetMaxChar( nBase ) : '0', nLeft ); p[ nLeft ] = 0x00; - STRING aTmp( p, nLeft, RTL_TEXTENCODING_MS_1252 ); + STRING aTmp( p, nLeft, RTL_TEXTENCODING_MS_1252 ); aTmp += aRet; aRet = aTmp; @@ -710,22 +710,22 @@ inline sal_uInt16 GetVal( sal_Unicode c ) sal_Bool ParseDouble( const sal_Unicode*& rp, double& rRet ) { - double fInt = 0.0; - double fFrac = 0.0; - double fMult = 0.1; // multiplier to multiply digits with, when adding fractional ones - sal_Int32 nExp = 0; - sal_Int32 nMaxExp = 307; - sal_uInt16 nDigCnt = 18; // max. number of digits to read in, rest doesn't matter + double fInt = 0.0; + double fFrac = 0.0; + double fMult = 0.1; // multiplier to multiply digits with, when adding fractional ones + sal_Int32 nExp = 0; + sal_Int32 nMaxExp = 307; + sal_uInt16 nDigCnt = 18; // max. number of digits to read in, rest doesn't matter - enum State { S_End = 0, S_Sign, S_IntStart, S_Int, S_IgnoreIntDigs, S_Frac, S_IgnoreFracDigs, S_ExpSign, S_Exp }; + enum State { S_End = 0, S_Sign, S_IntStart, S_Int, S_IgnoreIntDigs, S_Frac, S_IgnoreFracDigs, S_ExpSign, S_Exp }; - State eS = S_Sign; + State eS = S_Sign; - sal_Bool bNegNum = sal_False; - sal_Bool bNegExp = sal_False; + sal_Bool bNegNum = sal_False; + sal_Bool bNegExp = sal_False; - const sal_Unicode* p = rp; - sal_Unicode c; + const sal_Unicode* p = rp; + sal_Unicode c; while( eS ) { @@ -786,7 +786,7 @@ sal_Bool ParseDouble( const sal_Unicode*& rp, double& rRet ) break; case S_IgnoreIntDigs: if( IsNum( c ) ) - nExp++; // just multiply num with 10... ;-) + nExp++; // just multiply num with 10... ;-) else if( IsComma( c ) ) eS = S_Frac; else if( IsExpStart( c ) ) @@ -847,11 +847,11 @@ sal_Bool ParseDouble( const sal_Unicode*& rp, double& rRet ) p++; } - p--; // set pointer back to last + p--; // set pointer back to last rp = p; fInt += fFrac; - sal_Int32 nLog10 = sal_Int32( log10( fInt ) ); + sal_Int32 nLog10 = sal_Int32( log10( fInt ) ); if( bNegExp ) nExp = -nExp; @@ -872,16 +872,16 @@ sal_Bool ParseDouble( const sal_Unicode*& rp, double& rRet ) STRING GetString( double f, sal_Bool bLeadingSign, sal_uInt16 nMaxDig ) { - const int nBuff = 256; - sal_Char aBuff[ nBuff + 1 ]; - const char* pFormStr = bLeadingSign? "%+.*g" : "%.*g"; + const int nBuff = 256; + sal_Char aBuff[ nBuff + 1 ]; + const char* pFormStr = bLeadingSign? "%+.*g" : "%.*g"; int nLen = snprintf( aBuff, nBuff, pFormStr, int( nMaxDig ), f ); // you never know which underlying implementation you get ... aBuff[nBuff] = 0; if ( nLen < 0 || nLen > nBuff ) nLen = strlen( aBuff ); - STRING aRet( aBuff, nLen, RTL_TEXTENCODING_MS_1252 ); + STRING aRet( aBuff, nLen, RTL_TEXTENCODING_MS_1252 ); return aRet; } @@ -893,9 +893,9 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int if( nBase == 2 ) THROW_IAE; - sal_uInt32 nPer = sal_uInt32( fPer ); - double fUsePer = 1.0 / fRate; - double fAmorCoeff; + sal_uInt32 nPer = sal_uInt32( fPer ); + double fUsePer = 1.0 / fRate; + double fAmorCoeff; if( fUsePer < 3.0 ) fAmorCoeff = 1.0; @@ -907,9 +907,9 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int fAmorCoeff = 2.5; fRate *= fAmorCoeff; - double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost, 0 ); + double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost, 0 ); fCost -= fNRate; - double fRest = fCost - fRestVal; // Anschaffungskosten - Restwert - Summe aller Abschreibungen + double fRest = fCost - fRestVal; // Anschaffungskosten - Restwert - Summe aller Abschreibungen for( sal_uInt32 n = 0 ; n < nPer ; n++ ) { @@ -941,11 +941,11 @@ double GetAmorlinc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int3 if( nBase == 2 ) THROW_IAE; - sal_uInt32 nPer = sal_uInt32( fPer ); - double fOneRate = fCost * fRate; - double fCostDelta = fCost - fRestVal; - double f0Rate = GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost; - sal_uInt32 nNumOfFullPeriods = sal_uInt32( ( fCost - fRestVal - f0Rate) / fOneRate ); + sal_uInt32 nPer = sal_uInt32( fPer ); + double fOneRate = fCost * fRate; + double fCostDelta = fCost - fRestVal; + double f0Rate = GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost; + sal_uInt32 nNumOfFullPeriods = sal_uInt32( ( fCost - fRestVal - f0Rate) / fOneRate ); if( nPer == 0 ) return f0Rate; @@ -961,17 +961,17 @@ double GetAmorlinc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int3 double GetDuration( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fYearfrac = GetYearFrac( nNullDate, nSettle, nMat, nBase ); - double fNumOfCoups = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); - double fDur = 0.0; - const double f100 = 100.0; - fCoup *= f100 / double( nFreq ); // fCoup is used as cash flow + double fYearfrac = GetYearFrac( nNullDate, nSettle, nMat, nBase ); + double fNumOfCoups = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); + double fDur = 0.0; + const double f100 = 100.0; + fCoup *= f100 / double( nFreq ); // fCoup is used as cash flow fYield /= nFreq; fYield += 1.0; double nDiff = fYearfrac * nFreq - fNumOfCoups; - double t; + double t; for( t = 1.0 ; t < fNumOfCoups ; t++ ) fDur += ( t + nDiff ) * ( fCoup ) / pow( fYield, t + nDiff ); @@ -994,11 +994,11 @@ double GetDuration( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, doub double GetYieldmat( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fPrice, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fIssMat = GetYearFrac( nNullDate, nIssue, nMat, nBase ); - double fIssSet = GetYearFrac( nNullDate, nIssue, nSettle, nBase ); - double fSetMat = GetYearFrac( nNullDate, nSettle, nMat, nBase ); + double fIssMat = GetYearFrac( nNullDate, nIssue, nMat, nBase ); + double fIssSet = GetYearFrac( nNullDate, nIssue, nSettle, nBase ); + double fSetMat = GetYearFrac( nNullDate, nSettle, nMat, nBase ); - double y = 1.0 + fIssMat * fRate; + double y = 1.0 + fIssMat * fRate; y /= fPrice / 100.0 + fIssSet * fRate; y--; y /= fSetMat; @@ -1013,21 +1013,21 @@ double GetOddfprice( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / { THROW_RTE; // #87380# /* - double fN = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ) - 1.0; - double fNq = GetCoupnum( nNullDate, nSettle, nFirstCoup, nFreq, nBase ) - 1.0; - double fDSC = GetCoupdaysnc( nNullDate, nSettle, nFirstCoup, nFreq, nBase ); - double fDSC_E = fDSC / GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ); - double fNC = GetCoupnum( nNullDate, nIssue, nFirstCoup, nFreq, nBase ); - sal_uInt32 nNC = sal_uInt32( fNC ); - sal_uInt16 nMonthDelta = 12 / sal_uInt16( nFreq ); - - sal_uInt32 i; - double f1YieldFreq = 1.0 + fYield / double( nFreq ); - double f100RateFreq = 100.0 * fRate / double( nFreq ); - - double* pDC = new double[ nNC + 1 ]; - double* pNL = new double[ nNC + 1 ]; - double* pA = new double[ nNC + 1 ]; + double fN = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ) - 1.0; + double fNq = GetCoupnum( nNullDate, nSettle, nFirstCoup, nFreq, nBase ) - 1.0; + double fDSC = GetCoupdaysnc( nNullDate, nSettle, nFirstCoup, nFreq, nBase ); + double fDSC_E = fDSC / GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ); + double fNC = GetCoupnum( nNullDate, nIssue, nFirstCoup, nFreq, nBase ); + sal_uInt32 nNC = sal_uInt32( fNC ); + sal_uInt16 nMonthDelta = 12 / sal_uInt16( nFreq ); + + sal_uInt32 i; + double f1YieldFreq = 1.0 + fYield / double( nFreq ); + double f100RateFreq = 100.0 * fRate / double( nFreq ); + + double* pDC = new double[ nNC + 1 ]; + double* pNL = new double[ nNC + 1 ]; + double* pA = new double[ nNC + 1 ]; pDC[ 0 ] = pNL[ 0 ] = pA[ 0 ] = 1.0; @@ -1051,19 +1051,19 @@ double GetOddfprice( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / } } - double fT1 = fRedemp / pow( f1YieldFreq, fN + fNq + fDSC_E ); + double fT1 = fRedemp / pow( f1YieldFreq, fN + fNq + fDSC_E ); - double fT2 = 0.0; + double fT2 = 0.0; for( i = 1 ; i <= nNC ; i++ ) fT2 += pDC[ i ] / pNL[ i ]; fT2 *= f100RateFreq / pow( f1YieldFreq, fNq + fDSC_E ); - double fT3 = 0.0; + double fT3 = 0.0; for( double k = 2.0 ; k <= fN ; k++ ) fT3 += 1.0 / pow( f1YieldFreq, k - fNq + fDSC_E ); fT3 *= f100RateFreq; - double fT4 = 0.0; + double fT4 = 0.0; for( i = 1 ; i <= nNC ; i++ ) fT4 += pA[ i ] / pNL[ i ]; fT4 *= f100RateFreq; @@ -1083,13 +1083,13 @@ double GetOddfprice( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / double getYield_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fRate = fCoup; - double fPriceN = 0.0; - double fYield1 = 0.0; - double fYield2 = 1.0; - double fPrice1 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield1, fRedemp, nFreq, nBase ); - double fPrice2 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase ); - double fYieldN = ( fYield2 - fYield1 ) * 0.5; + double fRate = fCoup; + double fPriceN = 0.0; + double fYield1 = 0.0; + double fYield2 = 1.0; + double fPrice1 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield1, fRedemp, nFreq, nBase ); + double fPrice2 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase ); + double fYieldN = ( fYield2 - fYield1 ) * 0.5; for( sal_uInt32 nIter = 0 ; nIter < 100 && fPriceN != fPrice ; nIter++ ) { @@ -1126,7 +1126,7 @@ double getYield_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double } if( fabs( fPrice - fPriceN ) > fPrice / 100.0 ) - THROW_IAE; // result not precise enough + THROW_IAE; // result not precise enough return fYieldN; } @@ -1135,18 +1135,18 @@ double getYield_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double double getPrice_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fFreq = nFreq; + double fFreq = nFreq; - double fE = GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ); - double fDSC_E = GetCoupdaysnc( nNullDate, nSettle, nMat, nFreq, nBase ) / fE; - double fN = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); + double fE = GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ); + double fDSC_E = GetCoupdaysnc( nNullDate, nSettle, nMat, nFreq, nBase ) / fE; + double fN = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); double fA = GetCoupdaybs( nNullDate, nSettle, nMat, nFreq, nBase ); - double fRet = fRedemp / ( pow( 1.0 + fYield / fFreq, fN - 1.0 + fDSC_E ) ); + double fRet = fRedemp / ( pow( 1.0 + fYield / fFreq, fN - 1.0 + fDSC_E ) ); fRet -= 100.0 * fRate / fFreq * fA / fE; - double fT1 = 100.0 * fRate / fFreq; - double fT2 = 1.0 + fYield / fFreq; + double fT1 = 100.0 * fRate / fFreq; + double fT2 = 1.0 + fYield / fFreq; for( double fK = 0.0 ; fK < fN ; fK++ ) fRet += fT1 / pow( fT2, fK + fDSC_E ); @@ -1164,12 +1164,12 @@ double GetOddfyield( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / //GetOddfprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, //sal_Int32 nFirstCoup, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, //sal_Int32 nBase ) - double fPriceN = 0.0; - double fYield1 = 0.0; - double fYield2 = 1.0; - double fPrice1 = GetOddfprice( nNullDate, nSettle, nMat, nIssue, nFirstCoup, fRate, fYield1, fRedemp, nFreq, nBase ); - double fPrice2 = GetOddfprice( nNullDate, nSettle, nMat, nIssue, nFirstCoup, fRate, fYield2, fRedemp, nFreq, nBase ); - double fYieldN = ( fYield2 - fYield1 ) * 0.5; + double fPriceN = 0.0; + double fYield1 = 0.0; + double fYield2 = 1.0; + double fPrice1 = GetOddfprice( nNullDate, nSettle, nMat, nIssue, nFirstCoup, fRate, fYield1, fRedemp, nFreq, nBase ); + double fPrice2 = GetOddfprice( nNullDate, nSettle, nMat, nIssue, nFirstCoup, fRate, fYield2, fRedemp, nFreq, nBase ); + double fYieldN = ( fYield2 - fYield1 ) * 0.5; for( sal_uInt32 nIter = 0 ; nIter < 100 && fPriceN != fPrice ; nIter++ ) { @@ -1206,7 +1206,7 @@ double GetOddfyield( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / } if( fabs( fPrice - fPriceN ) > fPrice / 100.0 ) - THROW_IAE; // result not precise enough + THROW_IAE; // result not precise enough return fYieldN; */ @@ -1216,12 +1216,12 @@ double GetOddfyield( sal_Int32 /*nNullDate*/, sal_Int32 /*nSettle*/, sal_Int32 / double GetOddlprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastCoup, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fFreq = double( nFreq ); - double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; - double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; - double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; + double fFreq = double( nFreq ); + double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; + double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; + double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; - double p = fRedemp + fDCi * 100.0 * fRate / fFreq; + double p = fRedemp + fDCi * 100.0 * fRate / fFreq; p /= fDSCi * fYield / fFreq + 1.0; p -= fAi * 100.0 * fRate / fFreq; @@ -1232,12 +1232,12 @@ double GetOddlprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastCoup, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE { - double fFreq = double( nFreq ); - double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; - double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; - double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; + double fFreq = double( nFreq ); + double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; + double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; + double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; - double y = fRedemp + fDCi * 100.0 * fRate / fFreq; + double y = fRedemp + fDCi * 100.0 * fRate / fFreq; y /= fPrice + fAi * 100.0 * fRate / fFreq; y--; y *= fFreq / fDSCi; @@ -1248,12 +1248,12 @@ double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal double GetRmz( double fZins, double fZzr, double fBw, double fZw, sal_Int32 nF ) { - double fRmz; + double fRmz; if( fZins == 0.0 ) fRmz = ( fBw + fZw ) / fZzr; else { - double fTerm = pow( 1.0 + fZins, fZzr ); + double fTerm = pow( 1.0 + fZins, fZzr ); if( nF > 0 ) fRmz = ( fZw * fZins / ( fTerm - 1.0 ) + fBw * fZins / ( 1.0 - 1.0 / fTerm ) ) / ( 1.0 + fZins ); else @@ -1266,12 +1266,12 @@ double GetRmz( double fZins, double fZzr, double fBw, double fZw, sal_Int32 nF ) double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF ) { - double fZw; + double fZw; if( fZins == 0.0 ) fZw = fBw + fRmz * fZzr; else { - double fTerm = pow( 1.0 + fZins, fZzr ); + double fTerm = pow( 1.0 + fZins, fZzr ); if( nF > 0 ) fZw = fBw * fTerm + fRmz * ( 1.0 + fZins ) * ( fTerm - 1.0 ) / fZins; else @@ -1284,12 +1284,12 @@ double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF ) /*double TBillYield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice ) THROWDEF_RTE_IAE { - sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); + sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); if( fPrice <= 0.0 || nSettle >= nMat || nDiff > 360 ) THROW_IAE; - double fRet = 100.0; + double fRet = 100.0; fRet /= fPrice; fRet--; fRet *= double( nDiff ); @@ -1436,7 +1436,7 @@ void MyList::_Grow( void ) { nSize += nIncrSize; - void** pNewData = new void*[ nSize ]; + void** pNewData = new void*[ nSize ]; memcpy( pNewData, pData, nNew * sizeof( void* ) ); delete[] pData; @@ -1466,7 +1466,7 @@ void MyList::Insert( void* p, sal_uInt32 n ) { Grow(); - void** pIns = pData + n; + void** pIns = pData + n; memmove( pIns + 1, pIns, ( nNew - n ) * sizeof( void* ) ); *pIns = p; @@ -1488,7 +1488,7 @@ StringList::~StringList() class AnalysisRscStrArrLoader : public Resource { private: - ResStringArray aStrArray; + ResStringArray aStrArray; public: AnalysisRscStrArrLoader( sal_uInt16 nRsc, sal_uInt16 nArrayId, ResMgr& rResMgr ) : Resource( AnalysisResId( nRsc, rResMgr ) ), @@ -1497,7 +1497,7 @@ public: FreeResource(); } - const ResStringArray& GetStringArray() const { return aStrArray; } + const ResStringArray& GetStringArray() const { return aStrArray; } }; @@ -1513,12 +1513,12 @@ FuncData::FuncData( const FuncDataBase& r, ResMgr& rResMgr ) : nCompID( r.nCompListID ), eCat( r.eCat ) { - AnalysisRscStrArrLoader aArrLoader( RID_ANALYSIS_DEFFUNCTION_NAMES, nCompID, rResMgr ); -// ResStringArray aDefFuncNameArray( AnalysisResId( nCompID, rResMgr ) ); - const ResStringArray& rArr = aArrLoader.GetStringArray(); + AnalysisRscStrArrLoader aArrLoader( RID_ANALYSIS_DEFFUNCTION_NAMES, nCompID, rResMgr ); +// ResStringArray aDefFuncNameArray( AnalysisResId( nCompID, rResMgr ) ); + const ResStringArray& rArr = aArrLoader.GetStringArray(); - sal_uInt16 nCount = sal::static_int_cast<sal_uInt16>( rArr.Count() ); - sal_uInt16 n; + sal_uInt16 nCount = sal::static_int_cast<sal_uInt16>( rArr.Count() ); + sal_uInt16 n; for( n = 0 ; n < nCount ; n++ ) aCompList.Append( rArr.GetString( n ) ); @@ -1546,7 +1546,7 @@ sal_uInt16 FuncData::GetStrIndex( sal_uInt16 nParamNum ) const FuncDataList::FuncDataList( ResMgr& rResMgr ) { - const sal_uInt32 nNum = sizeof( pFuncDatas ) / sizeof( FuncDataBase ); + const sal_uInt32 nNum = sizeof( pFuncDatas ) / sizeof( FuncDataBase ); for( sal_uInt16 n = 0 ; n < nNum ; n++ ) Append( new FuncData( pFuncDatas[ n ], rResMgr ) ); @@ -1567,10 +1567,10 @@ const FuncData* FuncDataList::Get( const OUString& aProgrammaticName ) const ( ( FuncDataList* ) this )->aLastName = aProgrammaticName; - sal_uInt32 nE = Count(); + sal_uInt32 nE = Count(); for( sal_uInt32 n = 0 ; n < nE ; n++ ) { - const FuncData* p = Get( n ); + const FuncData* p = Get( n ); if( p->Is( aProgrammaticName ) ) { ( ( FuncDataList* ) this )->nLast = n; @@ -1641,7 +1641,7 @@ void SortedIndividualInt32List::Insert( sal_Bool SortedIndividualInt32List::Find( sal_Int32 nVal ) const { - sal_uInt32 nE = Count(); + sal_uInt32 nE = Count(); if( !nE || nVal < Get( 0 ) || nVal > Get( nE - 1 ) ) return sal_False; @@ -1650,7 +1650,7 @@ sal_Bool SortedIndividualInt32List::Find( sal_Int32 nVal ) const for( sal_uInt32 n = 0 ; n < nE ; n++ ) { - sal_Int32 nRef = Get( n ); + sal_Int32 nRef = Get( n ); if( nRef == nVal ) return sal_True; @@ -1842,7 +1842,7 @@ sal_Bool Complex::ParseString( const STRING& rStr, Complex& rCompl ) { rCompl.c = '\0'; // do not force a symbol, if only real part present - const sal_Unicode* pStr = ( const sal_Unicode * ) rStr; + const sal_Unicode* pStr = ( const sal_Unicode * ) rStr; if( IsImagUnit( *pStr ) && rStr.getLength() == 1) { @@ -1852,17 +1852,17 @@ sal_Bool Complex::ParseString( const STRING& rStr, Complex& rCompl ) return sal_True; } - double f; + double f; if( !ParseDouble( pStr, f ) ) return sal_False; switch( *pStr ) { - case '-': // imag part follows + case '-': // imag part follows case '+': { - double r = f; + double r = f; if( IsImagUnit( pStr[ 1 ] ) ) { rCompl.c = pStr[ 1 ]; @@ -1897,7 +1897,7 @@ sal_Bool Complex::ParseString( const STRING& rStr, Complex& rCompl ) return sal_True; } break; - case 0: // only real-part + case 0: // only real-part rCompl.r = f; rCompl.i = 0.0; return sal_True; @@ -1946,7 +1946,7 @@ double Complex::Arg( void ) const THROWDEF_RTE_IAE if( r == 0.0 && i == 0.0 ) THROW_IAE; - double phi = acos( r / Abs() ); + double phi = acos( r / Abs() ); if( i < 0.0 ) phi = -phi; @@ -1968,7 +1968,7 @@ void Complex::Power( double fPower ) THROWDEF_RTE_IAE THROW_IAE; } - double p, phi; + double p, phi; p = Abs(); @@ -1986,9 +1986,9 @@ void Complex::Power( double fPower ) THROWDEF_RTE_IAE void Complex::Sqrt( void ) { - static const double fMultConst = 0.7071067811865475; // ...2440084436210485 = 1/sqrt(2) - double p = Abs(); - double i_ = sqrt( p - r ) * fMultConst; + static const double fMultConst = 0.7071067811865475; // ...2440084436210485 = 1/sqrt(2) + double p = Abs(); + double i_ = sqrt( p - r ) * fMultConst; r = sqrt( p + r ) * fMultConst; i = ( i < 0.0 )? -i_ : i_; @@ -2008,7 +2008,7 @@ void Complex::Sin( void ) THROWDEF_RTE_IAE if( i ) { - double r_; + double r_; r_ = sin( r ) * cosh( i ); i = cos( r ) * sinh( i ); @@ -2026,7 +2026,7 @@ void Complex::Cos( void ) THROWDEF_RTE_IAE if( i ) { - double r_; + double r_; r_ = cos( r ) * cosh( i ); i = -( sin( r ) * sinh( i ) ); @@ -2042,12 +2042,12 @@ void Complex::Div( const Complex& z ) THROWDEF_RTE_IAE if( z.r == 0 && z.i == 0 ) THROW_IAE; - double a1 = r; - double a2 = z.r; - double b1 = i; - double b2 = z.i; + double a1 = r; + double a2 = z.r; + double b1 = i; + double b2 = z.i; - double f = 1.0 / ( a2 * a2 + b2 * b2 ); + double f = 1.0 / ( a2 * a2 + b2 * b2 ); r = ( a1 * a2 + b1 * b2 ) * f; i = ( a2 * b1 - a1 * b2 ) * f; @@ -2058,7 +2058,7 @@ void Complex::Div( const Complex& z ) THROWDEF_RTE_IAE void Complex::Exp( void ) { - double fE = exp( r ); + double fE = exp( r ); r = fE * cos( i ); i = fE * sin( i ); } @@ -2069,8 +2069,8 @@ void Complex::Ln( void ) THROWDEF_RTE_IAE if( r == 0.0 && i == 0.0 ) THROW_IAE; - double fAbs = Abs(); - sal_Bool bNegi = i < 0.0; + double fAbs = Abs(); + sal_Bool bNegi = i < 0.0; i = acos( r / fAbs ); @@ -2084,14 +2084,14 @@ void Complex::Ln( void ) THROWDEF_RTE_IAE void Complex::Log10( void ) THROWDEF_RTE_IAE { Ln(); - Mult( 0.434294481903251828 ); // * log10( e ) + Mult( 0.434294481903251828 ); // * log10( e ) } void Complex::Log2( void ) THROWDEF_RTE_IAE { Ln(); - Mult( 1.442695040888963407 ); // * log2( e ) + Mult( 1.442695040888963407 ); // * log2( e ) } @@ -2106,20 +2106,20 @@ ComplexList::~ComplexList() void ComplexList::Append( const SEQSEQ( STRING )& r, ComplListAppendHandl eAH ) THROWDEF_RTE_IAE { - sal_Int32 n1, n2; - sal_Int32 nE1 = r.getLength(); - sal_Int32 nE2; - sal_Bool bEmpty0 = eAH == AH_EmpyAs0; - sal_Bool bErrOnEmpty = eAH == AH_EmptyAsErr; + sal_Int32 n1, n2; + sal_Int32 nE1 = r.getLength(); + sal_Int32 nE2; + sal_Bool bEmpty0 = eAH == AH_EmpyAs0; + sal_Bool bErrOnEmpty = eAH == AH_EmptyAsErr; for( n1 = 0 ; n1 < nE1 ; n1++ ) { - const SEQ( STRING )& rList = r[ n1 ]; + const SEQ( STRING )& rList = r[ n1 ]; nE2 = rList.getLength(); for( n2 = 0 ; n2 < nE2 ; n2++ ) { - const STRING& rStr = rList[ n2 ]; + const STRING& rStr = rList[ n2 ]; if( rStr.getLength() ) Append( new Complex( rStr ) ); @@ -2134,19 +2134,19 @@ void ComplexList::Append( const SEQSEQ( STRING )& r, ComplListAppendHandl eAH ) void ComplexList::Append( const SEQ( ANY )& aMultPars, ComplListAppendHandl eAH ) THROWDEF_RTE_IAE { - sal_Int32 nEle = aMultPars.getLength(); - sal_Bool bEmpty0 = eAH == AH_EmpyAs0; - sal_Bool bErrOnEmpty = eAH == AH_EmptyAsErr; + sal_Int32 nEle = aMultPars.getLength(); + sal_Bool bEmpty0 = eAH == AH_EmpyAs0; + sal_Bool bErrOnEmpty = eAH == AH_EmptyAsErr; for( sal_Int32 i = 0 ; i < nEle ; i++ ) { - const ANY& r = aMultPars[ i ]; + const ANY& r = aMultPars[ i ]; switch( r.getValueTypeClass() ) { - case uno::TypeClass_VOID: break; + case uno::TypeClass_VOID: break; case uno::TypeClass_STRING: { - const STRING* pStr = ( const STRING* ) r.getValue(); + const STRING* pStr = ( const STRING* ) r.getValue(); if( pStr->getLength() ) Append( new Complex( *( STRING* ) r.getValue() ) ); @@ -2161,11 +2161,11 @@ void ComplexList::Append( const SEQ( ANY )& aMultPars, ComplListAppendHandl eAH break; case uno::TypeClass_SEQUENCE: { - SEQSEQ( ANY ) aValArr; + SEQSEQ( ANY ) aValArr; if( r >>= aValArr ) { - sal_Int32 nE = aValArr.getLength(); - const SEQ( ANY )* pArr = aValArr.getConstArray(); + sal_Int32 nE = aValArr.getLength(); + const SEQ( ANY )* pArr = aValArr.getConstArray(); for( sal_Int32 n = 0 ; n < nE ; n++ ) Append( pArr[ n ], eAH ); } @@ -2209,7 +2209,7 @@ sal_Int16 ConvertData::GetMatchingLevel( const STRING& rRef ) const return 0; else { - const sal_Unicode* p = aStr.getStr(); + const sal_Unicode* p = aStr.getStr(); nLen = aStr.getLength(); bool bPref = IsPrefixSupport(); @@ -2217,18 +2217,18 @@ sal_Int16 ConvertData::GetMatchingLevel( const STRING& rRef ) const if (bOneChar || (bPref && nLen > 2 && (aName == p + 2) && *p == 'd' && *(p+1) == 'a')) { - sal_Int16 n; + sal_Int16 n; switch( *p ) { - case 'y': n = -24; break; // yocto - case 'z': n = -21; break; // zepto - case 'a': n = -18; break; - case 'f': n = -15; break; - case 'p': n = -12; break; - case 'n': n = -9; break; - case 'u': n = -6; break; - case 'm': n = -3; break; - case 'c': n = -2; break; + case 'y': n = -24; break; // yocto + case 'z': n = -21; break; // zepto + case 'a': n = -18; break; + case 'f': n = -15; break; + case 'p': n = -12; break; + case 'n': n = -9; break; + case 'u': n = -6; break; + case 'm': n = -3; break; + case 'c': n = -2; break; case 'd': { if ( bOneChar ) @@ -2237,16 +2237,16 @@ sal_Int16 ConvertData::GetMatchingLevel( const STRING& rRef ) const n = 1; // deca } break; - case 'e': n = 1; break; - case 'h': n = 2; break; - case 'k': n = 3; break; - case 'M': n = 6; break; - case 'G': n = 9; break; - case 'T': n = 12; break; - case 'P': n = 15; break; - case 'E': n = 18; break; - case 'Z': n = 21; break; // zetta - case 'Y': n = 24; break; // yotta + case 'e': n = 1; break; + case 'h': n = 2; break; + case 'k': n = 3; break; + case 'M': n = 6; break; + case 'G': n = 9; break; + case 'T': n = 12; break; + case 'P': n = 15; break; + case 'E': n = 18; break; + case 'Z': n = 21; break; // zetta + case 'Y': n = 24; break; // yotta default: n = INV_MATCHLEV; } @@ -2317,7 +2317,7 @@ double ConvertData::Convert( } else if ( bBinFromLev ) f *= ( r.fConst / fConst ) * ( pow( 2.0, nLevFrom ) / pow( 10.0, nLevTo ) ); - else + else f *= ( r.fConst / fConst ) * ( pow( 10.0, nLevFrom ) / pow( 2.0, nLevTo ) ); return f; } @@ -2356,7 +2356,7 @@ double ConvertDataLinear::Convert( if( Class() != r.Class() ) THROW_IAE; -// return ::rtl::math::round( r.ConvertFromBase( ConvertToBase( f, nLevFrom ), nLevTo ), 13 ); +// return ::rtl::math::round( r.ConvertFromBase( ConvertToBase( f, nLevFrom ), nLevTo ), 13 ); return r.ConvertFromBase( ConvertToBase( f, nLevFrom ), nLevTo ); } @@ -2389,10 +2389,10 @@ double ConvertDataLinear::ConvertFromBase( double f, sal_Int16 n ) const ConvertDataList::ConvertDataList( void ) { -#define NEWD(str,unit,cl) Append(new ConvertData(str,unit,cl)) -#define NEWDP(str,unit,cl) Append(new ConvertData(str,unit,cl,sal_True)) -#define NEWL(str,unit,offs,cl) Append(new ConvertDataLinear(str,unit,offs,cl)) -#define NEWLP(str,unit,offs,cl) Append(new ConvertDataLinear(str,unit,offs,cl,sal_True)) +#define NEWD(str,unit,cl) Append(new ConvertData(str,unit,cl)) +#define NEWDP(str,unit,cl) Append(new ConvertData(str,unit,cl,sal_True)) +#define NEWL(str,unit,offs,cl) Append(new ConvertDataLinear(str,unit,offs,cl)) +#define NEWLP(str,unit,offs,cl) Append(new ConvertDataLinear(str,unit,offs,cl,sal_True)) // *** are extra and not standard Excel Analysis Addin! @@ -2414,7 +2414,7 @@ ConvertDataList::ConvertDataList( void ) NEWD( "uk_cwt", 1.9684130552221213E-05, CDC_Mass ); // Imperial hundredweight NEWD( "lcwt", 1.9684130552221213E-05, CDC_Mass ); // Imperial hundredweight also NEWD( "hweight", 1.9684130552221213E-05, CDC_Mass ); // Imperial hundredweight also - NEWD( "uk_ton", 9.8420652761106063E-07, CDC_Mass ); // Imperial ton + NEWD( "uk_ton", 9.8420652761106063E-07, CDC_Mass ); // Imperial ton NEWD( "LTON", 9.8420652761106063E-07, CDC_Mass ); // Imperial ton also // LENGTH: 1 Meter is... @@ -2563,7 +2563,7 @@ ConvertDataList::ConvertDataList( void ) NEWD( "ludicrous speed", 2.0494886343432328E-14, CDC_Speed ); // *** NEWD( "laecherliche Geschwindigkeit", 4.0156958471424288E-06, CDC_Speed); // *** NEWD( "ridiculous speed", 4.0156958471424288E-06, CDC_Speed); // *** - + // INFORMATION: 1 Bit is... NEWDP( "bit", 1.00E00, CDC_Information); // *** Bit NEWDP( "byte", 1.25E-01, CDC_Information); // *** Byte @@ -2583,28 +2583,28 @@ double ConvertDataList::Convert( double fVal, const STRING& rFrom, const STRING& // if( rFrom == rTo ) // return fVal; - ConvertData* pFrom = NULL; - ConvertData* pTo = NULL; - sal_Bool bSearchFrom = sal_True; - sal_Bool bSearchTo = sal_True; - sal_Int16 nLevelFrom = 0; - sal_Int16 nLevelTo = 0; + ConvertData* pFrom = NULL; + ConvertData* pTo = NULL; + sal_Bool bSearchFrom = sal_True; + sal_Bool bSearchTo = sal_True; + sal_Int16 nLevelFrom = 0; + sal_Int16 nLevelTo = 0; - ConvertData* p = First(); + ConvertData* p = First(); while( p && ( bSearchFrom || bSearchTo ) ) { if( bSearchFrom ) { - sal_Int16 n = p->GetMatchingLevel( rFrom ); + sal_Int16 n = p->GetMatchingLevel( rFrom ); if( n != INV_MATCHLEV ) { if( n ) - { // only first match for partial equality rulz a little bit more + { // only first match for partial equality rulz a little bit more pFrom = p; nLevelFrom = n; } else - { // ... but exact match rulz most + { // ... but exact match rulz most pFrom = p; bSearchFrom = sal_False; nLevelFrom = n; @@ -2614,16 +2614,16 @@ double ConvertDataList::Convert( double fVal, const STRING& rFrom, const STRING& if( bSearchTo ) { - sal_Int16 n = p->GetMatchingLevel( rTo ); + sal_Int16 n = p->GetMatchingLevel( rTo ); if( n != INV_MATCHLEV ) { if( n ) - { // only first match for partial equality rulz a little bit more + { // only first match for partial equality rulz a little bit more pTo = p; nLevelTo = n; } else - { // ... but exact match rulz most + { // ... but exact match rulz most pTo = p; bSearchTo = sal_False; nLevelTo = n; diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index c904ce5693b8..d226a9a98be1 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,94 +50,94 @@ class SortedIndividualInt32List; class ScaAnyConverter; -#define PI 3.1415926535897932 -#define PI_2 (PI/2.0) -//#define EULER 2.7182818284590452 -#define EOL ( ( const sal_Char* ) 1 ) -#define EOE ( ( const sal_Char* ) 2 ) +#define PI 3.1415926535897932 +#define PI_2 (PI/2.0) +//#define EULER 2.7182818284590452 +#define EOL ( ( const sal_Char* ) 1 ) +#define EOE ( ( const sal_Char* ) 2 ) -//double _Test( sal_Int32 nMode, double f1, double f2, double f3 ); +//double _Test( sal_Int32 nMode, double f1, double f2, double f3 ); inline sal_Bool IsLeapYear( sal_uInt16 nYear ); -sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ); -sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ); -void DaysToDate( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt16& rYear ) throw( ::com::sun::star::lang::IllegalArgumentException ); +sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ); +sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ); +void DaysToDate( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt16& rYear ) throw( ::com::sun::star::lang::IllegalArgumentException ); sal_Int32 GetNullDate( const REF( CSS::beans::XPropertySet )& xOptions ) THROWDEF_RTE; -sal_Int32 GetDiffDate360( +sal_Int32 GetDiffDate360( sal_uInt16 nDay1, sal_uInt16 nMonth1, sal_uInt16 nYear1, sal_Bool bLeapYear1, sal_uInt16 nDay2, sal_uInt16 nMonth2, sal_uInt16 nYear2, sal_Bool bUSAMethod ); -inline sal_Int32 GetDiffDate360( constREFXPS& xOpt, sal_Int32 nDate1, sal_Int32 nDate2, sal_Bool bUSAMethod ); -sal_Int32 GetDiffDate360( sal_Int32 nNullDate, sal_Int32 nDate1, sal_Int32 nDate2, sal_Bool bUSAMethod ); +inline sal_Int32 GetDiffDate360( constREFXPS& xOpt, sal_Int32 nDate1, sal_Int32 nDate2, sal_Bool bUSAMethod ); +sal_Int32 GetDiffDate360( sal_Int32 nNullDate, sal_Int32 nDate1, sal_Int32 nDate2, sal_Bool bUSAMethod ); -sal_Int32 GetDaysInYears( sal_uInt16 nYear1, sal_uInt16 nYear2 ); -inline sal_Int16 GetDayOfWeek( sal_Int32 nDate ); -void GetDiffParam( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode, +sal_Int32 GetDaysInYears( sal_uInt16 nYear1, sal_uInt16 nYear2 ); +inline sal_Int16 GetDayOfWeek( sal_Int32 nDate ); +void GetDiffParam( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode, sal_uInt16& rYears, sal_Int32& rDayDiffPart, sal_Int32& rDaysInYear ) THROWDEF_RTE_IAE; // rYears = full num of years // rDayDiffPart = num of days for last year // rDaysInYear = num of days in first year -sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode, +sal_Int32 GetDiffDate( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode, sal_Int32* pOptDaysIn1stYear = NULL ) THROWDEF_RTE_IAE; -double GetYearDiff( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) +double GetYearDiff( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; -sal_Int32 GetDaysInYear( sal_Int32 nNullDate, sal_Int32 nDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; -double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) +sal_Int32 GetDaysInYear( sal_Int32 nNullDate, sal_Int32 nDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; +double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; -inline double GetYearFrac( constREFXPS& xOpt, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) +inline double GetYearFrac( constREFXPS& xOpt, sal_Int32 nStartDate, sal_Int32 nEndDate, sal_Int32 nMode ) THROWDEF_RTE_IAE; -inline void AlignDate( sal_uInt16& rDay, sal_uInt16 nMonth, sal_uInt16 nYear ); +inline void AlignDate( sal_uInt16& rDay, sal_uInt16 nMonth, sal_uInt16 nYear ); -double Fak( sal_Int32 n ); -double GetGcd( double f1, double f2 ); -double ConvertToDec( const STRING& rFromNum, sal_uInt16 nBaseFrom, sal_uInt16 nCharLim ) THROWDEF_RTE_IAE; -STRING ConvertFromDec( +double Fak( sal_Int32 n ); +double GetGcd( double f1, double f2 ); +double ConvertToDec( const STRING& rFromNum, sal_uInt16 nBaseFrom, sal_uInt16 nCharLim ) THROWDEF_RTE_IAE; +STRING ConvertFromDec( double fNum, double fMin, double fMax, sal_uInt16 nBase, sal_Int32 nPlaces, sal_Int32 nMaxPlaces, sal_Bool bUsePlaces ) THROWDEF_RTE_IAE; -double Erf( double fX ); -double Erfc( double fX ); -sal_Bool ParseDouble( const sal_Unicode*& rpDoubleAsString, double& rReturn ); -STRING GetString( double fNumber, sal_Bool bLeadingSign = sal_False, sal_uInt16 nMaxNumOfDigits = 15 ); -inline double Exp10( sal_Int16 nPower ); // 10 ^ nPower +double Erf( double fX ); +double Erfc( double fX ); +sal_Bool ParseDouble( const sal_Unicode*& rpDoubleAsString, double& rReturn ); +STRING GetString( double fNumber, sal_Bool bLeadingSign = sal_False, sal_uInt16 nMaxNumOfDigits = 15 ); +inline double Exp10( sal_Int16 nPower ); // 10 ^ nPower -double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, +double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetAmorlinc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, +double GetAmorlinc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int32 nFirstPer, double fRestVal, double fPer, double fRate, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetDuration( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, +double GetDuration( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fYield, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetYieldmat( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, +double GetYieldmat( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, double fRate, double fPrice, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetOddfprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, +double GetOddfprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double getYield_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fPrice, +double getYield_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fCoup, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double getPrice_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fRate, double fYield, +double getPrice_( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetOddfyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, +double GetOddfyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nIssue, sal_Int32 nFirstCoup, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetOddlprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, +double GetOddlprice( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, +double GetOddlyield( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nLastInterest, double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetRmz( double fZins, double fZzr, double fBw, double fZw, sal_Int32 nF ); -double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF ); -//double TBillYield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice )THROWDEF_RTE_IAE; +double GetRmz( double fZins, double fZzr, double fBw, double fZw, sal_Int32 nF ); +double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF ); +//double TBillYield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice )THROWDEF_RTE_IAE; -double GetCouppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, +double GetCouppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; double GetCoupncd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; double GetCoupdaybs( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetCoupdaysnc( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, +double GetCoupdaysnc( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; double GetCoupnum( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; -double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, +double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE; @@ -150,29 +150,29 @@ double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, s class MyList { private: - static const sal_uInt32 nStartSize; - static const sal_uInt32 nIncrSize; + static const sal_uInt32 nStartSize; + static const sal_uInt32 nIncrSize; - void** pData; // pointer array - sal_uInt32 nSize; // array size - sal_uInt32 nNew; // next index to be inserted at - sal_uInt32 nAct; // actual for iterations + void** pData; // pointer array + sal_uInt32 nSize; // array size + sal_uInt32 nNew; // next index to be inserted at + sal_uInt32 nAct; // actual for iterations - void _Grow( void ); - inline void Grow( void ); + void _Grow( void ); + inline void Grow( void ); protected: public: MyList( void ); - virtual ~MyList(); + virtual ~MyList(); - inline const void* GetObject( sal_uInt32 nIndex ) const; - inline const void* First( void ); - inline const void* Next( void ); + inline const void* GetObject( sal_uInt32 nIndex ) const; + inline const void* First( void ); + inline const void* Next( void ); - inline void Append( void* pNewElement ); - void Insert( void* pNewLement, sal_uInt32 nPlace ); + inline void Append( void* pNewElement ); + void Insert( void* pNewLement, sal_uInt32 nPlace ); - inline sal_uInt32 Count( void ) const; + inline sal_uInt32 Count( void ) const; }; @@ -181,15 +181,15 @@ public: class StringList : protected MyList { public: - virtual ~StringList(); + virtual ~StringList(); - inline const STRING* First( void ); - inline const STRING* Next( void ); - inline const STRING* Get( sal_uInt32 nIndex ) const; + inline const STRING* First( void ); + inline const STRING* Next( void ); + inline const STRING* Get( sal_uInt32 nIndex ) const; using MyList::Append; - inline void Append( STRING* pNew ); - inline void Append( const STRING& rNew ); + inline void Append( STRING* pNew ); + inline void Append( const STRING& rNew ); using MyList::Count; }; @@ -210,14 +210,14 @@ enum FDCategory struct FuncDataBase { - const sal_Char* pIntName; - sal_uInt16 nUINameID; // resource ID to UI name - sal_uInt16 nDescrID; // resource ID to description, parameter names and ~ description - sal_Bool bDouble; // name already exist in Calc - sal_Bool bWithOpt; // first parameter is internal - sal_uInt16 nCompListID; // resource ID to list of valid names - sal_uInt16 nNumOfParams; // number of named / described parameters - FDCategory eCat; // function category + const sal_Char* pIntName; + sal_uInt16 nUINameID; // resource ID to UI name + sal_uInt16 nDescrID; // resource ID to description, parameter names and ~ description + sal_Bool bDouble; // name already exist in Calc + sal_Bool bWithOpt; // first parameter is internal + sal_uInt16 nCompListID; // resource ID to list of valid names + sal_uInt16 nNumOfParams; // number of named / described parameters + FDCategory eCat; // function category }; @@ -227,30 +227,30 @@ class FuncData { private: ::rtl::OUString aIntName; - sal_uInt16 nUINameID; - sal_uInt16 nDescrID; // leads also to parameter descriptions! - sal_Bool bDouble; // flag for names, wich already exist in Calc - sal_Bool bWithOpt; // has internal parameter on first position - - sal_uInt16 nParam; // num of parameters - sal_uInt16 nCompID; - StringList aCompList; // list of all valid names - FDCategory eCat; // function category + sal_uInt16 nUINameID; + sal_uInt16 nDescrID; // leads also to parameter descriptions! + sal_Bool bDouble; // flag for names, wich already exist in Calc + sal_Bool bWithOpt; // has internal parameter on first position + + sal_uInt16 nParam; // num of parameters + sal_uInt16 nCompID; + StringList aCompList; // list of all valid names + FDCategory eCat; // function category public: FuncData( const FuncDataBase& rBaseData, ResMgr& ); - virtual ~FuncData(); + virtual ~FuncData(); - inline sal_uInt16 GetUINameID( void ) const; - inline sal_uInt16 GetDescrID( void ) const; - inline sal_Bool IsDouble( void ) const; - inline sal_Bool HasIntParam( void ) const; + inline sal_uInt16 GetUINameID( void ) const; + inline sal_uInt16 GetDescrID( void ) const; + inline sal_Bool IsDouble( void ) const; + inline sal_Bool HasIntParam( void ) const; - sal_uInt16 GetStrIndex( sal_uInt16 nParamNum ) const; + sal_uInt16 GetStrIndex( sal_uInt16 nParamNum ) const; inline sal_Bool Is( const ::rtl::OUString& rCompareTo ) const; - inline const StringList& GetCompNameList( void ) const; + inline const StringList& GetCompNameList( void ) const; - inline FDCategory GetCategory( void ) const; + inline FDCategory GetCategory( void ) const; }; @@ -260,8 +260,8 @@ class CStrList : private MyList { public: using MyList::Append; - inline void Append( const sal_Char* pNew ); - inline const sal_Char* Get( sal_uInt32 nIndex ) const; + inline void Append( const sal_Char* pNew ); + inline const sal_Char* Get( sal_uInt32 nIndex ) const; using MyList::Count; }; @@ -271,13 +271,13 @@ public: class FuncDataList : private MyList { ::rtl::OUString aLastName; - sal_uInt32 nLast; + sal_uInt32 nLast; public: FuncDataList( ResMgr& ); - virtual ~FuncDataList(); + virtual ~FuncDataList(); using MyList::Append; - inline void Append( FuncData* pNew ); - inline const FuncData* Get( sal_uInt32 nIndex ) const; + inline void Append( FuncData* pNew ); + inline const FuncData* Get( sal_uInt32 nIndex ) const; using MyList::Count; const FuncData* Get( const ::rtl::OUString& aProgrammaticName ) const; @@ -297,7 +297,7 @@ class AnalysisResId : public ResId class AnalysisRscStrLoader : public Resource { private: - String aStr; + String aStr; public: AnalysisRscStrLoader( sal_uInt16 nRsc, sal_uInt16 nStrId, ResMgr& rResMgr ) : Resource( AnalysisResId( nRsc, rResMgr ) ), @@ -306,7 +306,7 @@ public: FreeResource(); } - const String& GetString() const { return aStr; } + const String& GetString() const { return aStr; } }; @@ -442,39 +442,39 @@ public: class Complex { - double r; - double i; + double r; + double i; sal_Unicode c; public: inline Complex( double fReal, double fImag = 0.0, sal_Char cC = '\0' ); Complex( const STRING& rComplexAsString ) THROWDEF_RTE_IAE; - inline static sal_Bool IsImagUnit( sal_Unicode c ); - static sal_Bool ParseString( const STRING& rComplexAsString, Complex& rReturn ); + inline static sal_Bool IsImagUnit( sal_Unicode c ); + static sal_Bool ParseString( const STRING& rComplexAsString, Complex& rReturn ); STRING GetString() const THROWDEF_RTE_IAE; - inline double Real( void ) const; - inline double Imag( void ) const; + inline double Real( void ) const; + inline double Imag( void ) const; - double Arg( void ) const THROWDEF_RTE_IAE; - inline double Abs( void ) const; + double Arg( void ) const THROWDEF_RTE_IAE; + inline double Abs( void ) const; // following functions change the complex number itself to avoid unnecessary copy actions! - void Power( double fPower ) THROWDEF_RTE_IAE; - void Sqrt( void ); - void Sin( void ) THROWDEF_RTE_IAE; - void Cos( void ) THROWDEF_RTE_IAE; - void Div( const Complex& rDivisor ) THROWDEF_RTE_IAE; - void Exp( void ); - inline void Conjugate( void ); - void Ln( void ) THROWDEF_RTE_IAE; - void Log10( void ) THROWDEF_RTE_IAE; - void Log2( void ) THROWDEF_RTE_IAE; - inline void Mult( double fFact ); - inline void Mult( const Complex& rMult ); - inline void Sub( const Complex& rMult ); - inline void Add( const Complex& rAdd ); + void Power( double fPower ) THROWDEF_RTE_IAE; + void Sqrt( void ); + void Sin( void ) THROWDEF_RTE_IAE; + void Cos( void ) THROWDEF_RTE_IAE; + void Div( const Complex& rDivisor ) THROWDEF_RTE_IAE; + void Exp( void ); + inline void Conjugate( void ); + void Ln( void ) THROWDEF_RTE_IAE; + void Log10( void ) THROWDEF_RTE_IAE; + void Log2( void ) THROWDEF_RTE_IAE; + inline void Mult( double fFact ); + inline void Mult( const Complex& rMult ); + inline void Sub( const Complex& rMult ); + inline void Add( const Complex& rAdd ); }; @@ -491,18 +491,18 @@ enum ComplListAppendHandl class ComplexList : protected MyList { public: - virtual ~ComplexList(); + virtual ~ComplexList(); - inline const Complex* Get( sal_uInt32 nIndex ) const; - inline const Complex* First( void ); - inline const Complex* Next( void ); + inline const Complex* Get( sal_uInt32 nIndex ) const; + inline const Complex* First( void ); + inline const Complex* Next( void ); using MyList::Count; using MyList::Append; - inline void Append( Complex* pNew ); - void Append( const SEQSEQ( STRING )& rComplexNumList, ComplListAppendHandl eAH = AH_EmpyAs0 ) THROWDEF_RTE_IAE; - void Append( const SEQ( ANY )& aMultPars,ComplListAppendHandl eAH = AH_EmpyAs0 ) THROWDEF_RTE_IAE; + inline void Append( Complex* pNew ); + void Append( const SEQSEQ( STRING )& rComplexNumList, ComplListAppendHandl eAH = AH_EmpyAs0 ) THROWDEF_RTE_IAE; + void Append( const SEQ( ANY )& aMultPars,ComplListAppendHandl eAH = AH_EmpyAs0 ) THROWDEF_RTE_IAE; }; @@ -515,7 +515,7 @@ enum ConvertDataClass }; -#define INV_MATCHLEV 1764 // guess, what this is... :-) +#define INV_MATCHLEV 1764 // guess, what this is... :-) class ConvertDataList; @@ -527,34 +527,34 @@ class ConvertData { protected: friend class ConvertDataList; - double fConst; - STRING aName; - ConvertDataClass eClass; + double fConst; + STRING aName; + ConvertDataClass eClass; sal_Bool bPrefixSupport; public: ConvertData( - const sal_Char pUnitName[], - double fConvertConstant, - ConvertDataClass eClass, + const sal_Char pUnitName[], + double fConvertConstant, + ConvertDataClass eClass, sal_Bool bPrefSupport = sal_False ); virtual ~ConvertData(); - sal_Int16 GetMatchingLevel( const STRING& rRef ) const; + sal_Int16 GetMatchingLevel( const STRING& rRef ) const; // 0.0 = no equality // 1.0 = matches exact // rest = matches without an assumed prefix of one character // rest gives power for 10 represented by the prefix (e.g. 3 for k or -9 for n - virtual double Convert( double fVal, const ConvertData& rTo, + virtual double Convert( double fVal, const ConvertData& rTo, sal_Int16 nMatchLevelFrom, sal_Int16 nMatchLevelTo ) const THROWDEF_RTE_IAE; // converts fVal from this unit to rFrom unit // throws exception if not from same class // this implementation is for proportional cases only - virtual double ConvertToBase( double fVal, sal_Int16 nMatchLevel ) const; - virtual double ConvertFromBase( double fVal, sal_Int16 nMatchLevel ) const; + virtual double ConvertToBase( double fVal, sal_Int16 nMatchLevel ) const; + virtual double ConvertFromBase( double fVal, sal_Int16 nMatchLevel ) const; - inline ConvertDataClass Class( void ) const; + inline ConvertDataClass Class( void ) const; inline sal_Bool IsPrefixSupport( void ) const; }; @@ -564,23 +564,23 @@ public: class ConvertDataLinear : public ConvertData { protected: - double fOffs; + double fOffs; public: - inline ConvertDataLinear( - const sal_Char pUnitName[], - double fConvertConstant, - double fConvertOffset, - ConvertDataClass eClass, + inline ConvertDataLinear( + const sal_Char pUnitName[], + double fConvertConstant, + double fConvertOffset, + ConvertDataClass eClass, sal_Bool bPrefSupport = sal_False ); virtual ~ConvertDataLinear(); - virtual double Convert( double fVal, const ConvertData& rTo, + virtual double Convert( double fVal, const ConvertData& rTo, sal_Int16 nMatchLevelFrom, sal_Int16 nMatchLevelTo ) const THROWDEF_RTE_IAE; // for cases where f(x) = a + bx applies (e.g. Temperatures) - virtual double ConvertToBase( double fVal, sal_Int16 nMatchLevel ) const; - virtual double ConvertFromBase( double fVal, sal_Int16 nMatchLevel ) const; + virtual double ConvertToBase( double fVal, sal_Int16 nMatchLevel ) const; + virtual double ConvertFromBase( double fVal, sal_Int16 nMatchLevel ) const; }; @@ -590,13 +590,13 @@ class ConvertDataList : protected MyList { private: protected: - inline ConvertData* First( void ); - inline ConvertData* Next( void ); + inline ConvertData* First( void ); + inline ConvertData* Next( void ); public: ConvertDataList( void ); - virtual ~ConvertDataList(); + virtual ~ConvertDataList(); - double Convert( double fVal, const STRING& rFrom, const STRING& rTo ) THROWDEF_RTE_IAE; + double Convert( double fVal, const STRING& rFrom, const STRING& rTo ) THROWDEF_RTE_IAE; }; @@ -615,7 +615,7 @@ inline sal_Int32 GetDiffDate360( constREFXPS& xOpt, sal_Int32 nDate1, sal_Int32 inline sal_Int16 GetDayOfWeek( sal_Int32 n ) -{ // monday = 0, ..., sunday = 6 +{ // monday = 0, ..., sunday = 6 return static_cast< sal_Int16 >( ( n - 1 ) % 7 ); } @@ -628,7 +628,7 @@ inline double GetYearFrac( constREFXPS& xOpt, sal_Int32 nStartDate, sal_Int32 nE inline void AlignDate( sal_uInt16& rD, sal_uInt16 nM, sal_uInt16 nY ) { - sal_uInt16 nMax = DaysInMonth( nM, nY ); + sal_uInt16 nMax = DaysInMonth( nM, nY ); if( rD > nMax ) rD = nMax; @@ -831,8 +831,8 @@ inline void Complex::Mult( double f ) inline void Complex::Mult( const Complex& rM ) { - double r_ = r; - double i_ = i; + double r_ = r; + double i_ = i; r = r_ * rM.r - i_ * rM.i; i = r_ * rM.i + i_ * rM.r; @@ -885,7 +885,7 @@ inline void ComplexList::Append( Complex* p ) -inline ConvertDataClass ConvertData::Class( void ) const +inline ConvertDataClass ConvertData::Class( void ) const { return eClass; } @@ -897,7 +897,7 @@ inline sal_Bool ConvertData::IsPrefixSupport( void ) const return bPrefixSupport; } -inline ConvertDataLinear::ConvertDataLinear( const sal_Char* p, double fC, double fO, ConvertDataClass e, +inline ConvertDataLinear::ConvertDataLinear( const sal_Char* p, double fC, double fO, ConvertDataClass e, sal_Bool bPrefSupport ) : ConvertData( p, fC, e, bPrefSupport ), fOffs( fO ) diff --git a/scaddins/source/analysis/bessel.cxx b/scaddins/source/analysis/bessel.cxx index 2b5a8ec57b5d..f853b49eb443 100644 --- a/scaddins/source/analysis/bessel.cxx +++ b/scaddins/source/analysis/bessel.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -85,7 +85,7 @@ double BesselJ( double x, sal_Int32 N ) throw (IllegalArgumentException, NoConve and an odd function for odd N (means J(-x)=-J(x)).*/ double fSign = (N % 2 == 1 && x < 0) ? -1.0 : 1.0; double fX = fabs(x); - + const double fMaxIteration = 9000000.0; //experimental, for to return in < 3 seconds double fEstimateIteration = fX * 1.5 + N; bool bAsymptoticPossible = pow(fX,0.4) > N; @@ -261,12 +261,12 @@ double BesselI( double x, sal_Int32 n ) throw( IllegalArgumentException, NoConve double Besselk0( double fNum ) throw( IllegalArgumentException, NoConvergenceException ) { - double fRet; + double fRet; if( fNum <= 2.0 ) { - double fNum2 = fNum * 0.5; - double y = fNum2 * fNum2; + double fNum2 = fNum * 0.5; + double y = fNum2 * fNum2; fRet = -log( fNum2 ) * BesselI( fNum, 0 ) + ( -0.57721566 + y * ( 0.42278420 + y * ( 0.23069756 + y * ( 0.3488590e-1 + @@ -274,7 +274,7 @@ double Besselk0( double fNum ) throw( IllegalArgumentException, NoConvergenceExc } else { - double y = 2.0 / fNum; + double y = 2.0 / fNum; fRet = exp( -fNum ) / sqrt( fNum ) * ( 1.25331414 + y * ( -0.7832358e-1 + y * ( 0.2189568e-1 + y * ( -0.1062446e-1 + y * ( 0.587872e-2 + @@ -287,12 +287,12 @@ double Besselk0( double fNum ) throw( IllegalArgumentException, NoConvergenceExc double Besselk1( double fNum ) throw( IllegalArgumentException, NoConvergenceException ) { - double fRet; + double fRet; if( fNum <= 2.0 ) { - double fNum2 = fNum * 0.5; - double y = fNum2 * fNum2; + double fNum2 = fNum * 0.5; + double y = fNum2 * fNum2; fRet = log( fNum2 ) * BesselI( fNum, 1 ) + ( 1.0 + y * ( 0.15443144 + y * ( -0.67278579 + y * ( -0.18156897 + y * ( -0.1919402e-1 + @@ -301,7 +301,7 @@ double Besselk1( double fNum ) throw( IllegalArgumentException, NoConvergenceExc } else { - double y = 2.0 / fNum; + double y = 2.0 / fNum; fRet = exp( -fNum ) / sqrt( fNum ) * ( 1.25331414 + y * ( 0.23498619 + y * ( -0.3655620e-1 + y * ( 0.1504268e-1 + y * ( -0.780353e-2 + @@ -316,15 +316,15 @@ double BesselK( double fNum, sal_Int32 nOrder ) throw( IllegalArgumentException, { switch( nOrder ) { - case 0: return Besselk0( fNum ); - case 1: return Besselk1( fNum ); + case 0: return Besselk0( fNum ); + case 1: return Besselk1( fNum ); default: { - double fBkp; + double fBkp; - double fTox = 2.0 / fNum; - double fBkm = Besselk0( fNum ); - double fBk = Besselk1( fNum ); + double fTox = 2.0 / fNum; + double fBkm = Besselk0( fNum ); + double fBk = Besselk1( fNum ); for( sal_Int32 n = 1 ; n < nOrder ; n++ ) { diff --git a/scaddins/source/analysis/bessel.hxx b/scaddins/source/analysis/bessel.hxx index 62c350ed9193..c94b4f1a9b77 100644 --- a/scaddins/source/analysis/bessel.hxx +++ b/scaddins/source/analysis/bessel.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx index 46f5a09d7ffd..fd5731d008a0 100644 --- a/scaddins/source/analysis/financial.cxx +++ b/scaddins/source/analysis/financial.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -120,7 +120,7 @@ double SAL_CALL AnalysisAddIn::getEffect( double fNominal, sal_Int32 nPeriods ) if( nPeriods < 1 || fNominal <= 0.0 ) THROW_IAE; - double fPeriods = nPeriods; + double fPeriods = nPeriods; double fRet = pow( 1.0 + fNominal / fPeriods, fPeriods ) - 1.0; RETURN_FINITE( fRet ); @@ -233,14 +233,14 @@ double SAL_CALL AnalysisAddIn::getPricemat( constREFXPS& xOpt, if( fRate < 0.0 || fYield < 0.0 || nSettle >= nMat ) THROW_IAE; - sal_Int32 nNullDate = GetNullDate( xOpt ); + sal_Int32 nNullDate = GetNullDate( xOpt ); sal_Int32 nBase = getDateMode( xOpt, rOB ); - double fIssMat = GetYearFrac( nNullDate, nIssue, nMat, nBase ); - double fIssSet = GetYearFrac( nNullDate, nIssue, nSettle, nBase ); - double fSetMat = GetYearFrac( nNullDate, nSettle, nMat, nBase ); + double fIssMat = GetYearFrac( nNullDate, nIssue, nMat, nBase ); + double fIssSet = GetYearFrac( nNullDate, nIssue, nSettle, nBase ); + double fSetMat = GetYearFrac( nNullDate, nSettle, nMat, nBase ); - double fRet = 1.0 + fIssMat * fRate; + double fRet = 1.0 + fIssMat * fRate; fRet /= 1.0 + fSetMat * fYield; fRet -= fIssSet * fRate; fRet *= 100.0; @@ -267,7 +267,7 @@ double SAL_CALL AnalysisAddIn::getNominal( double fRate, sal_Int32 nPeriods ) TH if( fRate <= 0.0 || nPeriods < 0 ) THROW_IAE; - double fPeriods = nPeriods; + double fPeriods = nPeriods; double fRet = ( pow( fRate + 1.0, 1.0 / fPeriods ) - 1.0 ) * fPeriods; RETURN_FINITE( fRet ); } @@ -278,10 +278,10 @@ double SAL_CALL AnalysisAddIn::getDollarfr( double fDollarDec, sal_Int32 nFrac ) if( nFrac <= 0 ) THROW_IAE; - double fInt; - double fFrac = nFrac; + double fInt; + double fFrac = nFrac; - double fRet = modf( fDollarDec, &fInt ); + double fRet = modf( fDollarDec, &fInt ); fRet *= fFrac; @@ -298,10 +298,10 @@ double SAL_CALL AnalysisAddIn::getDollarde( double fDollarFrac, sal_Int32 nFrac if( nFrac <= 0 ) THROW_IAE; - double fInt; - double fFrac = nFrac; + double fInt; + double fFrac = nFrac; - double fRet = modf( fDollarFrac, &fInt ); + double fRet = modf( fDollarFrac, &fInt ); fRet /= fFrac; @@ -331,10 +331,10 @@ double SAL_CALL AnalysisAddIn::getYielddisc( constREFXPS& xOpt, if( fPrice <= 0.0 || fRedemp <= 0.0 || nSettle >= nMat ) THROW_IAE; - sal_Int32 nNullDate = GetNullDate( xOpt ); + sal_Int32 nNullDate = GetNullDate( xOpt ); #if 0 - double fRet = 1.0 - fPrice / fRedemp; + double fRet = 1.0 - fPrice / fRedemp; fRet /= GetYearFrac( nNullDate, nSettle, nMat, getDateMode( xOpt, rOB ) ); fRet /= 0.99795; // don't know what this constant means in original #endif @@ -363,7 +363,7 @@ double SAL_CALL AnalysisAddIn::getTbilleq( constREFXPS& xOpt, { nMat++; - sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); + sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); if( fDisc <= 0.0 || nSettle >= nMat || nDiff > 360 ) THROW_IAE; @@ -381,9 +381,9 @@ double SAL_CALL AnalysisAddIn::getTbillprice( constREFXPS& xOpt, nMat++; - double fFraction = GetYearFrac( xOpt, nSettle, nMat, 0 ); // method: USA 30/360 + double fFraction = GetYearFrac( xOpt, nSettle, nMat, 0 ); // method: USA 30/360 - double fDummy; + double fDummy; if( modf( fFraction, &fDummy ) == 0.0 ) THROW_IAE; @@ -395,13 +395,13 @@ double SAL_CALL AnalysisAddIn::getTbillprice( constREFXPS& xOpt, double SAL_CALL AnalysisAddIn::getTbillyield( constREFXPS& xOpt, sal_Int32 nSettle, sal_Int32 nMat, double fPrice ) THROWDEF_RTE_IAE { - sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); + sal_Int32 nDiff = GetDiffDate360( xOpt, nSettle, nMat, sal_True ); nDiff++; if( fPrice <= 0.0 || nSettle >= nMat || nDiff > 360 ) THROW_IAE; - double fRet = 100.0; + double fRet = 100.0; fRet /= fPrice; fRet--; fRet /= double( nDiff ); @@ -577,13 +577,13 @@ double SAL_CALL AnalysisAddIn::getXnpv( aValList.Append( rValues ); aDateList.Append( rDates ); - sal_Int32 nNum = aValList.Count(); + sal_Int32 nNum = aValList.Count(); if( nNum != sal_Int32( aDateList.Count() ) || nNum < 2 ) THROW_IAE; - double fRet = 0.0; - double fNull = *aDateList.Get( 0 ); + double fRet = 0.0; + double fNull = *aDateList.Get( 0 ); fRate++; for( sal_Int32 i = 0 ; i < nNum ; i++ ) diff --git a/scaddins/source/datefunc/dateadd.idl b/scaddins/source/datefunc/dateadd.idl index 626121a88d4a..2ac925678938 100644 --- a/scaddins/source/datefunc/dateadd.idl +++ b/scaddins/source/datefunc/dateadd.idl @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index 9d2b235e8e02..988f132ff9f4 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/datefunc/datefunc.hrc b/scaddins/source/datefunc/datefunc.hrc index efd7ab41432f..73d19ac6d080 100644 --- a/scaddins/source/datefunc/datefunc.hrc +++ b/scaddins/source/datefunc/datefunc.hrc @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index 2a64aa80b216..66ba09713583 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -332,7 +332,7 @@ class ScaDateAddIn : public ::cppu::WeakImplHelper6< private: ::com::sun::star::lang::Locale aFuncLoc; ::com::sun::star::lang::Locale* pDefLocales; - ResMgr* pResMgr; + ResMgr* pResMgr; ScaFuncDataList* pFuncDataList; diff --git a/scaddins/source/datefunc/datefunc.src b/scaddins/source/datefunc/datefunc.src index b42f376aff9d..80575e7fd933 100644 --- a/scaddins/source/datefunc/datefunc.src +++ b/scaddins/source/datefunc/datefunc.src @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite |