1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSIS_HXX
21 #define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSIS_HXX
24 #include <com/sun/star/sheet/XAddIn.hpp>
25 #include <com/sun/star/lang/XServiceName.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/sheet/addin/XAnalysis.hpp>
29 #include <com/sun/star/sheet/LocalizedName.hpp>
30 #include <com/sun/star/sheet/XCompatibilityNames.hpp>
31 #include <com/sun/star/sheet/NoConvergenceException.hpp>
33 #include <cppuhelper/implbase5.hxx>
35 #include "analysisdefs.hxx"
36 #include "analysishelper.hxx"
38 namespace sca
{ namespace analysis
{
40 class ConvertDataList
;
45 css::uno::Reference
< css::uno::XInterface
> SAL_CALL
AnalysisAddIn_CreateInstance( const css::uno::Reference
< css::lang::XMultiServiceFactory
>& );
48 class AnalysisAddIn
: public cppu::WeakImplHelper5
<
50 css::sheet::XCompatibilityNames
,
51 css::sheet::addin::XAnalysis
,
52 css::lang::XServiceName
,
53 css::lang::XServiceInfo
>
56 css::lang::Locale aFuncLoc
;
57 css::lang::Locale
* pDefLocales
;
58 sca::analysis::FuncDataList
* pFD
;
60 sca::analysis::ConvertDataList
* pCDL
;
63 sca::analysis::ScaAnyConverter aAnyConv
;
65 ResMgr
& GetResMgr() throw( css::uno::RuntimeException
);
66 OUString
GetDisplFuncStr( sal_uInt16 nFuncNum
) throw( css::uno::RuntimeException
);
67 OUString
GetFuncDescrStr( sal_uInt16 nResId
, sal_uInt16 nStrIndex
) throw( css::uno::RuntimeException
);
68 void InitDefLocales();
69 inline const css::lang::Locale
& GetLocale( sal_uInt32 nInd
);
72 /// Converts an Any to sal_Int32 in the range from 0 to 4 (date calculation mode).
73 sal_Int32
getDateMode(
74 const css::uno::Reference
< css::beans::XPropertySet
>& xPropSet
,
75 const css::uno::Any
& rAny
)
76 throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
);
80 const css::uno::Reference
< css::uno::XComponentContext
>& xContext
);
81 virtual ~AnalysisAddIn();
83 double FactDouble( sal_Int32 nNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
);
85 static OUString
getImplementationName_Static();
86 static css::uno::Sequence
< OUString
> getSupportedServiceNames_Static();
89 virtual OUString SAL_CALL
getProgrammaticFuntionName( const OUString
& aDisplayName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
90 virtual OUString SAL_CALL
getDisplayFunctionName( const OUString
& aProgrammaticName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
91 virtual OUString SAL_CALL
getFunctionDescription( const OUString
& aProgrammaticName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
92 virtual OUString SAL_CALL
getDisplayArgumentName( const OUString
& aProgrammaticFunctionName
, sal_Int32 nArgument
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
93 virtual OUString SAL_CALL
getArgumentDescription( const OUString
& aProgrammaticFunctionName
, sal_Int32 nArgument
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
94 virtual OUString SAL_CALL
getProgrammaticCategoryName( const OUString
& aProgrammaticFunctionName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
95 virtual OUString SAL_CALL
getDisplayCategoryName( const OUString
& aProgrammaticFunctionName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
97 // XCompatibilityNames
98 virtual css::uno::Sequence
< css::sheet::LocalizedName
> SAL_CALL
getCompatibilityNames( const OUString
& aProgrammaticName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
101 virtual void SAL_CALL
setLocale( const css::lang::Locale
& eLocale
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
102 virtual css::lang::Locale SAL_CALL
getLocale( ) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
105 virtual OUString SAL_CALL
getServiceName( ) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
108 virtual OUString SAL_CALL
getImplementationName( ) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
109 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
110 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw( css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
112 // methods from own interfaces start here
115 // virtual double SAL_CALL get_Test( const css::uno::Reference< css::beans::XPropertySet >&, sal_Int32 nMode, double f1, double f2, double f3 ) throw( css::uno::RuntimeException );
117 virtual sal_Int32 SAL_CALL
getWorkday( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nDays
, const css::uno::Any
& aHDay
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
118 virtual double SAL_CALL
getYearfrac( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nEndDate
, const css::uno::Any
& aMode
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
119 virtual sal_Int32 SAL_CALL
getEdate( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nMonths
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
120 virtual sal_Int32 SAL_CALL
getWeeknum( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nMode
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
121 virtual sal_Int32 SAL_CALL
getEomonth( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nMonths
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
122 virtual sal_Int32 SAL_CALL
getNetworkdays( const css::uno::Reference
< css::beans::XPropertySet
>&, sal_Int32 nStartDate
, sal_Int32 nEndDate
, const css::uno::Any
& aHDay
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
124 virtual sal_Int32 SAL_CALL
getIseven( sal_Int32 nVal
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
125 virtual sal_Int32 SAL_CALL
getIsodd( sal_Int32 nVal
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
127 virtual double SAL_CALL
getMultinomial( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< sal_Int32
> >& aVLst
, const css::uno::Sequence
< com::sun::star::uno::Any
>& aOptVLst
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
128 virtual double SAL_CALL
getSeriessum( double fX
, double fN
, double fM
, const css::uno::Sequence
< css::uno::Sequence
< double > >& aCoeffList
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
129 virtual double SAL_CALL
getQuotient( double fNum
, double fDenum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
131 virtual double SAL_CALL
getMround( double fNum
, double fMult
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
132 virtual double SAL_CALL
getSqrtpi( double fNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
134 virtual double SAL_CALL
getRandbetween( double fMin
, double fMax
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
136 virtual double SAL_CALL
getGcd( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< double > >& aVLst
, const css::uno::Sequence
< css::uno::Any
>& aOptVLst
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
137 virtual double SAL_CALL
getLcm( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< double > >& aVLst
, const css::uno::Sequence
< css::uno::Any
>& aOptVLst
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
139 virtual double SAL_CALL
getBesseli( double fNum
, sal_Int32 nOrder
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, css::sheet::NoConvergenceException
, std::exception
) SAL_OVERRIDE
;
140 virtual double SAL_CALL
getBesselj( double fNum
, sal_Int32 nOrder
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, css::sheet::NoConvergenceException
, std::exception
) SAL_OVERRIDE
;
141 virtual double SAL_CALL
getBesselk( double fNum
, sal_Int32 nOrder
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, css::sheet::NoConvergenceException
, std::exception
) SAL_OVERRIDE
;
142 virtual double SAL_CALL
getBessely( double fNum
, sal_Int32 nOrder
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, css::sheet::NoConvergenceException
, std::exception
) SAL_OVERRIDE
;
144 virtual OUString SAL_CALL
getBin2Oct( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
145 virtual double SAL_CALL
getBin2Dec( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
146 virtual OUString SAL_CALL
getBin2Hex( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
148 virtual OUString SAL_CALL
getOct2Bin( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
149 virtual double SAL_CALL
getOct2Dec( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
150 virtual OUString SAL_CALL
getOct2Hex( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
152 virtual OUString SAL_CALL
getDec2Bin( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 fNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
153 virtual OUString SAL_CALL
getDec2Oct( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 fNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
154 virtual OUString SAL_CALL
getDec2Hex( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, double fNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
156 virtual OUString SAL_CALL
getHex2Bin( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
157 virtual double SAL_CALL
getHex2Dec( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
158 virtual OUString SAL_CALL
getHex2Oct( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const OUString
& aNum
, const css::uno::Any
& rPlaces
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
160 virtual sal_Int32 SAL_CALL
getDelta( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, double fNum1
, const css::uno::Any
& rNum2
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
162 virtual double SAL_CALL
getErf( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, double fLowerLimit
, const css::uno::Any
& rUpperLimit
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
163 virtual double SAL_CALL
getErfc( double fLowerLimit
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
165 virtual sal_Int32 SAL_CALL
getGestep( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, double fNum
, const css::uno::Any
& rStep
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
167 virtual double SAL_CALL
getFactdouble( sal_Int32 nNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
169 virtual double SAL_CALL
getImabs( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
170 virtual double SAL_CALL
getImaginary( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
171 virtual OUString SAL_CALL
getImpower( const OUString
& aNum
, double fPower
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
172 virtual double SAL_CALL
getImargument( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
173 virtual OUString SAL_CALL
getImcos( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
174 virtual OUString SAL_CALL
getImdiv( const OUString
& aDivident
, const OUString
& aDivisor
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
175 virtual OUString SAL_CALL
getImexp( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
176 virtual OUString SAL_CALL
getImconjugate( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
177 virtual OUString SAL_CALL
getImln( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
178 virtual OUString SAL_CALL
getImlog10( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
179 virtual OUString SAL_CALL
getImlog2( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
180 virtual OUString SAL_CALL
getImproduct( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< OUString
> >& aNum1
, const css::uno::Sequence
< css::uno::Any
>& aNumList
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
181 virtual double SAL_CALL
getImreal( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
182 virtual OUString SAL_CALL
getImsin( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
183 virtual OUString SAL_CALL
getImsub( const OUString
& aNum1
, const OUString
& aNum2
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
184 virtual OUString SAL_CALL
getImsum( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< OUString
> >& aNum1
, const css::uno::Sequence
< css::uno::Any
>& aFollowingPars
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
186 virtual OUString SAL_CALL
getImsqrt( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
187 virtual OUString SAL_CALL
getImtan( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
188 virtual OUString SAL_CALL
getImsec( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
189 virtual OUString SAL_CALL
getImcsc( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
190 virtual OUString SAL_CALL
getImcot( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
191 virtual OUString SAL_CALL
getImsinh( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
192 virtual OUString SAL_CALL
getImcosh( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
193 virtual OUString SAL_CALL
getImsech( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
194 virtual OUString SAL_CALL
getImcsch( const OUString
& aNum
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
195 virtual OUString SAL_CALL
getComplex( double fReal
, double fImaginary
, const css::uno::Any
& rSuffix
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
197 virtual double SAL_CALL
getConvert( double fVal
, const OUString
& aFromUnit
, const OUString
& aToUnit
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
199 virtual double SAL_CALL
getAmordegrc( const css::uno::Reference
< css::beans::XPropertySet
>&, double fCost
, sal_Int32 nDate
, sal_Int32 nFirstPer
, double fRestVal
, double fPer
, double fRate
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
200 virtual double SAL_CALL
getAmorlinc( const css::uno::Reference
< css::beans::XPropertySet
>&, double fCost
, sal_Int32 nDate
, sal_Int32 nFirstPer
, double fRestVal
, double fPer
, double fRate
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
201 virtual double SAL_CALL
getAccrint( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nIssue
, sal_Int32 nFirstInter
, sal_Int32 nSettle
, double fRate
, const css::uno::Any
& rVal
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
202 virtual double SAL_CALL
getAccrintm( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nIssue
, sal_Int32 nSettle
, double fRate
, const css::uno::Any
& rVal
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
203 virtual double SAL_CALL
getReceived( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fInvest
, double fDisc
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
204 virtual double SAL_CALL
getDisc( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fPrice
, double fRedemp
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
205 virtual double SAL_CALL
getDuration( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fCoup
, double fYield
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
206 virtual double SAL_CALL
getEffect( double fNominal
, sal_Int32 nPeriods
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
207 virtual double SAL_CALL
getCumprinc( double fRate
, sal_Int32 nNumPeriods
, double fVal
, sal_Int32 nStartPer
, sal_Int32 nEndPer
, sal_Int32 nPayType
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
208 virtual double SAL_CALL
getCumipmt( double fRate
, sal_Int32 nNumPeriods
, double fVal
, sal_Int32 nStartPer
, sal_Int32 nEndPer
, sal_Int32 nPayType
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
209 virtual double SAL_CALL
getPrice( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fRate
, double fYield
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
210 virtual double SAL_CALL
getPricedisc( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fDisc
, double fRedemp
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
211 virtual double SAL_CALL
getPricemat( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nIssue
, double fRate
, double fYield
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
212 virtual double SAL_CALL
getMduration( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fCoup
, double fYield
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
213 virtual double SAL_CALL
getNominal( double fRate
, sal_Int32 nPeriods
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
214 virtual double SAL_CALL
getDollarfr( double fDollarDec
, sal_Int32 nFrac
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
215 virtual double SAL_CALL
getDollarde( double fDollarFrac
, sal_Int32 nFrac
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
216 virtual double SAL_CALL
getYield( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fCoup
, double fPrice
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
217 virtual double SAL_CALL
getYielddisc( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fPrice
, double fRedemp
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
218 virtual double SAL_CALL
getYieldmat( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nIssue
, double fRate
, double fPrice
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
219 virtual double SAL_CALL
getTbilleq( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fDisc
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
220 virtual double SAL_CALL
getTbillprice( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fDisc
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
221 virtual double SAL_CALL
getTbillyield( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fPrice
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
222 virtual double SAL_CALL
getOddfprice( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nIssue
, sal_Int32 nFirstCoup
, double fRate
, double fYield
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
223 virtual double SAL_CALL
getOddfyield( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nIssue
, sal_Int32 nFirstCoup
, double fRate
, double fPrice
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
224 virtual double SAL_CALL
getOddlprice( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nLastInterest
, double fRate
, double fYield
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
225 virtual double SAL_CALL
getOddlyield( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nLastInterest
, double fRate
, double fPrice
, double fRedemp
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
226 virtual double SAL_CALL
getXirr( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, const css::uno::Sequence
< css::uno::Sequence
< double > >& rValues
, const css::uno::Sequence
< css::uno::Sequence
< sal_Int32
> >& rDates
, const css::uno::Any
& rGuess
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
227 virtual double SAL_CALL
getXnpv( double fRate
, const css::uno::Sequence
< css::uno::Sequence
< double > >& rValues
, const css::uno::Sequence
< css::uno::Sequence
< sal_Int32
> >& rDates
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
228 virtual double SAL_CALL
getIntrate( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, double fInvest
, double fRedemp
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
229 virtual double SAL_CALL
getCoupncd( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
230 virtual double SAL_CALL
getCoupdays( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
231 virtual double SAL_CALL
getCoupdaysnc( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
232 virtual double SAL_CALL
getCoupdaybs( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
233 virtual double SAL_CALL
getCouppcd( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
234 virtual double SAL_CALL
getCoupnum( const css::uno::Reference
< css::beans::XPropertySet
>& xOpt
, sal_Int32 nSettle
, sal_Int32 nMat
, sal_Int32 nFreq
, const css::uno::Any
& rOptBase
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
235 virtual double SAL_CALL
getFvschedule( double fPrinc
, const css::uno::Sequence
< css::uno::Sequence
< double > >& rSchedule
) throw( css::uno::RuntimeException
, css::lang::IllegalArgumentException
, std::exception
) SAL_OVERRIDE
;
240 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */