summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scaddins/source/analysis/analysishelper.cxx')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx50
1 files changed, 0 insertions, 50 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 575186927469..9a1b6e017fee 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -30,8 +30,6 @@
using namespace ::com::sun::star;
-
-
#define UNIQUE sal_False // function name does not exist in Calc
#define DOUBLE sal_True // function name exists in Calc
@@ -1265,12 +1263,8 @@ double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF )
return -fZw;
}
-
-
// financial functions COUP***
-
-
// COUPPCD: find last coupon date before settlement (can be equal to settlement)
static void lcl_GetCouppcd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
throw( lang::IllegalArgumentException )
@@ -1294,8 +1288,6 @@ double GetCouppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I
return aDate.getDate( nNullDate );
}
-
-
// COUPNCD: find first coupon date after settlement (is never equal to settlement)
static void lcl_GetCoupncd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
throw( lang::IllegalArgumentException )
@@ -1319,8 +1311,6 @@ double GetCoupncd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I
return aDate.getDate( nNullDate );
}
-
-
// COUPDAYBS: get day count: coupon date before settlement <-> settlement
double GetCoupdaybs( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase )
throw( uno::RuntimeException, lang::IllegalArgumentException )
@@ -1334,8 +1324,6 @@ double GetCoupdaybs( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal
return ScaDate::getDiff( aDate, aSettle );
}
-
-
// COUPDAYSNC: get day count: settlement <-> coupon date after settlement
double GetCoupdaysnc( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase )
throw( uno::RuntimeException, lang::IllegalArgumentException )
@@ -1353,8 +1341,6 @@ double GetCoupdaysnc( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sa
return GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ) - GetCoupdaybs( nNullDate, nSettle, nMat, nFreq, nBase );
}
-
-
// COUPDAYS: get day count: coupon date before settlement <-> coupon date after settlement
double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase )
throw( uno::RuntimeException, lang::IllegalArgumentException )
@@ -1373,8 +1359,6 @@ double GetCoupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_
return static_cast< double >( GetDaysInYear( 0, 0, nBase ) ) / nFreq;
}
-
-
// COUPNUM: get count of coupon dates
double GetCoupnum( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase )
throw( uno::RuntimeException, lang::IllegalArgumentException )
@@ -1391,10 +1375,6 @@ double GetCoupnum( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I
-
-
-
-
class AnalysisRscStrArrLoader : public Resource
{
private:
@@ -1411,8 +1391,6 @@ public:
};
-
-
FuncData::FuncData( const FuncDataBase& r, ResMgr& rResMgr ) :
aIntName( OUString::createFromAscii( r.pIntName ) ),
nUINameID( r.nUINameID ),
@@ -1451,8 +1429,6 @@ sal_uInt16 FuncData::GetStrIndex( sal_uInt16 nParamNum ) const
}
-
-
FuncDataList::FuncDataList( ResMgr& rResMgr )
{
for( sal_uInt16 n = 0 ; n < SAL_N_ELEMENTS(pFuncDatas) ; n++ )
@@ -1495,8 +1471,6 @@ AnalysisResId::AnalysisResId( sal_uInt16 nId, ResMgr& rResMgr ) : ResId( nId, rR
}
-
-
SortedIndividualInt32List::SortedIndividualInt32List()
{
}
@@ -1612,8 +1586,6 @@ void SortedIndividualInt32List::InsertHolidayList(
-
-
void ScaDoubleList::Append(
const uno::Sequence< uno::Sequence< double > >& rValueSeq ) throw( uno::RuntimeException, lang::IllegalArgumentException )
{
@@ -1641,8 +1613,6 @@ void ScaDoubleList::Append(
}
}
-
-
void ScaDoubleList::Append(
const ScaAnyConverter& rAnyConv,
const uno::Any& rAny,
@@ -1682,8 +1652,6 @@ void ScaDoubleList::Append(
Append( rAnyConv, pArray[ nIndex ], bIgnoreEmpty );
}
-
-
void ScaDoubleList::Append(
ScaAnyConverter& rAnyConv,
const uno::Reference< beans::XPropertySet >& xOpt,
@@ -1702,8 +1670,6 @@ sal_Bool ScaDoubleList::CheckInsert( double ) const throw( uno::RuntimeException
-
-
sal_Bool ScaDoubleListGT0::CheckInsert( double fValue ) const throw( uno::RuntimeException, lang::IllegalArgumentException )
{
if( fValue < 0.0 )
@@ -1713,8 +1679,6 @@ sal_Bool ScaDoubleListGT0::CheckInsert( double fValue ) const throw( uno::Runtim
-
-
sal_Bool ScaDoubleListGE0::CheckInsert( double fValue ) const throw( uno::RuntimeException, lang::IllegalArgumentException )
{
if( fValue < 0.0 )
@@ -1724,8 +1688,6 @@ sal_Bool ScaDoubleListGE0::CheckInsert( double fValue ) const throw( uno::Runtim
-
-
Complex::Complex( const OUString& rStr ) throw( uno::RuntimeException, lang::IllegalArgumentException )
{
if( !ParseString( rStr, *this ) )
@@ -2223,8 +2185,6 @@ void ComplexList::Append( const uno::Sequence< uno::Any >& aMultPars, ComplListA
}
-
-
ConvertData::ConvertData( const sal_Char p[], double fC, ConvertDataClass e, sal_Bool bPrefSupport ) : aName( p, strlen( p ), RTL_TEXTENCODING_MS_1252 )
{
fConst = fC;
@@ -2387,8 +2347,6 @@ double ConvertData::ConvertFromBase( double f, sal_Int16 n ) const
return ::rtl::math::pow10Exp( f * fConst, -n );
}
-
-
ConvertDataLinear::~ConvertDataLinear()
{
}
@@ -2426,8 +2384,6 @@ double ConvertDataLinear::ConvertFromBase( double f, sal_Int16 n ) const
}
-
-
ConvertDataList::ConvertDataList( void )
{
#define NEWD(str,unit,cl) maVector.push_back(new ConvertData(str,unit,cl))
@@ -2677,8 +2633,6 @@ double ConvertDataList::Convert( double fVal, const OUString& rFrom, const OUStr
-
-
ScaDate::ScaDate() :
nOrigDay( 1 ),
nDay( 1 ),
@@ -2876,8 +2830,6 @@ sal_Bool ScaDate::operator<( const ScaDate& rCmp ) const
-
-
ScaAnyConverter::ScaAnyConverter( const uno::Reference< uno::XComponentContext >& xContext ) :
bHasValidFormat( sal_False )
{
@@ -3014,6 +2966,4 @@ sal_Int32 ScaAnyConverter::getInt32(
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */