summaryrefslogtreecommitdiff
path: root/scaddins/source
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-07-30 15:14:26 +0000
committerKurt Zenker <kz@openoffice.org>2004-07-30 15:14:26 +0000
commitf8730336a9b8a7bb1a312ac82d3cb39c556879b1 (patch)
tree10fa644b7bcd878d73eb5898e2ad84090b115d52 /scaddins/source
parentef71cb606a1940051282888377b5f3ae92616425 (diff)
INTEGRATION: CWS dr19 (1.26.18); FILE MERGED
2004/06/03 18:39:40 dr 1.26.18.1: #i25883# complex functions, thanks to Michael Meeks
Diffstat (limited to 'scaddins/source')
-rw-r--r--scaddins/source/analysis/analysishelper.hxx30
1 files changed, 7 insertions, 23 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx
index 17a206064c32..964347cc6b1c 100644
--- a/scaddins/source/analysis/analysishelper.hxx
+++ b/scaddins/source/analysis/analysishelper.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: analysishelper.hxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: rt $ $Date: 2004-03-02 09:29:33 $
+ * last change: $Author: kz $ $Date: 2004-07-30 16:14:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -532,16 +532,15 @@ class Complex
{
double r;
double i;
+ sal_Unicode c;
public:
-// inline Complex( void );
- inline Complex( double fReal, double fImag = 0.0 );
- inline Complex( const Complex& rCopy );
+ inline Complex( double fReal, double fImag = 0.0, sal_Char cC = 'i' );
Complex( const STRING& rComplexAsString ) THROWDEF_RTE_IAE;
inline static sal_Bool IsImagUnit( sal_Unicode c );
static sal_Bool ParseString( const STRING& rComplexAsString, Complex& rReturn );
- STRING GetString( sal_Bool bUse_i = sal_True ) const THROWDEF_RTE_IAE;
+ STRING GetString() const THROWDEF_RTE_IAE;
inline double Real( void ) const;
inline double Imag( void ) const;
@@ -872,23 +871,8 @@ inline const FuncData* FuncDataList::Get( sal_uInt32 n ) const
}
-
-
-/*inline Complex::Complex( void )
-{
-//#ifdef DEBUG
-// SetNAN( i );
-// r = i;
-//#endif
-}*/
-
-
-inline Complex::Complex( double fReal, double fImag ) : r( fReal ), i( fImag )
-{
-}
-
-
-inline Complex::Complex( const Complex& rCpy ) : r( rCpy.r ), i( rCpy.i )
+inline Complex::Complex( double fReal, double fImag, sal_Char cC ) :
+ r( fReal ), i( fImag ), c( cC )
{
}