summaryrefslogtreecommitdiff
path: root/sc/source/filter/lotus
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/lotus')
-rw-r--r--sc/source/filter/lotus/expop.cxx80
-rw-r--r--sc/source/filter/lotus/export.cxx2
-rw-r--r--sc/source/filter/lotus/filter.cxx46
-rw-r--r--sc/source/filter/lotus/lotattr.cxx36
-rw-r--r--sc/source/filter/lotus/lotform.cxx2680
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx96
-rw-r--r--sc/source/filter/lotus/lotread.cxx108
-rw-r--r--sc/source/filter/lotus/lotus.cxx10
-rw-r--r--sc/source/filter/lotus/memory.cxx52
-rw-r--r--sc/source/filter/lotus/op.cxx116
-rw-r--r--sc/source/filter/lotus/optab.cxx410
-rw-r--r--sc/source/filter/lotus/tool.cxx94
12 files changed, 1865 insertions, 1865 deletions
diff --git a/sc/source/filter/lotus/expop.cxx b/sc/source/filter/lotus/expop.cxx
index 33ecf7d87d07..a77c07f88157 100644
--- a/sc/source/filter/lotus/expop.cxx
+++ b/sc/source/filter/lotus/expop.cxx
@@ -2,7 +2,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
@@ -52,47 +52,47 @@ BYTE ExportWK1::GenFormByte( const ScPatternAttr& /*aAttr*/ )
inline void ExportWK1::Bof()
-{ // (0x00)
+{ // (0x00)
aOut << ( USHORT ) 0x00 << ( USHORT ) 2 << ( USHORT ) 0x0406; // Version 1-2-3/2, Symhony/1.1
}
inline void ExportWK1::Eof()
-{ // (0x01)
+{ // (0x01)
aOut << ( USHORT ) 0x01 << ( USHORT ) 0;
}
inline void ExportWK1::Calcmode()
-{ // (0x02)
+{ // (0x02)
// Calculationmode = automatic
aOut << ( USHORT ) 0x02 << ( USHORT ) 1 << ( BYTE ) 0xFF;
}
inline void ExportWK1::Calcorder()
-{ // (0x03)
+{ // (0x03)
// order = natural
aOut << ( USHORT ) 0x03 << ( USHORT ) 1 << ( BYTE ) 0x00;
}
inline void ExportWK1::Split()
-{ // (0x04)
+{ // (0x04)
// not split
aOut << ( USHORT ) 0x04 << ( USHORT ) 1 << ( BYTE ) 0x00;
}
inline void ExportWK1::Sync()
-{ // (0x05)
+{ // (0x05)
// not synchronized
aOut << ( USHORT ) 0x05 << ( USHORT ) 1 << ( BYTE ) 0x00;
}
inline void ExportWK1::Dimensions()
-{ // (0x06)
+{ // (0x06)
SCCOL nEndCol;
SCROW nEndRow;
aOut << ( USHORT ) 0x06 << ( USHORT ) 8 << ( USHORT ) 0 << ( USHORT ) 0; // Starting Col/Row
@@ -109,7 +109,7 @@ inline void ExportWK1::Dimensions()
inline void ExportWK1::Window1()
-{ // (0x07)
+{ // (0x07)
aOut << ( USHORT ) 0x07 << ( USHORT ) 32
<< ( USHORT ) 0 << ( USHORT ) 0 // Cursor Col/Row
<< ( BYTE ) 0xFF // Format: protected, special, default
@@ -127,10 +127,10 @@ inline void ExportWK1::Window1()
inline void ExportWK1::Colw()
-{ // (0x08)
+{ // (0x08)
// ACHTUNG: muss nach Window1 und vor hidden cols record kommen!
- USHORT nWidth;
- BYTE nWidthSpaces;
+ USHORT nWidth;
+ BYTE nWidthSpaces;
for( USHORT nCol = 0 ; nCol < 256 ; nCol++ )
{
nWidth = pD->GetColWidth( static_cast<SCCOL>(nCol), 0 );
@@ -141,7 +141,7 @@ inline void ExportWK1::Colw()
void ExportWK1::Blank( const USHORT nCol, const USHORT nRow, const ScPatternAttr& aAttr )
-{ // (0x0C)
+{ // (0x0C)
// PREC: nCol <= WK1MAXCOL, nRow <= WK1MAXROW
DBG_ASSERT( nCol <= WK1MAXCOL, "ExportWK1::Blank(): Col > WK1MAXCOL" );
DBG_ASSERT( nRow <= WK1MAXROW, "ExportWK1::Blank(): Row > WK1MAXROW" );
@@ -151,7 +151,7 @@ void ExportWK1::Blank( const USHORT nCol, const USHORT nRow, const ScPatternAttr
void ExportWK1::Number( const USHORT nCol, const USHORT nRow, const double fWert, const ScPatternAttr &aAttr )
-{ // (0x0E)
+{ // (0x0E)
// PREC: nCol <= WK1MAXCOL, nRow <= WK1MAXROW
DBG_ASSERT( nCol <= WK1MAXCOL, "ExportWK1::Number(): Col > WK1MAXCOL" );
DBG_ASSERT( nRow <= WK1MAXROW, "ExportWK1::Number(): Row > WK1MAXROW" );
@@ -161,16 +161,16 @@ void ExportWK1::Number( const USHORT nCol, const USHORT nRow, const double fWert
void ExportWK1::Label( const USHORT nCol, const USHORT nRow, const String& rStr, const ScPatternAttr& aAttr )
-{ // (0x0F)
+{ // (0x0F)
// PREC: nCol <= WK1MAXCOL, nRow <= WK1MAXROW
DBG_ASSERT( nCol <= WK1MAXCOL, "ExportWK1::Label(): Col > WK1MAXCOL" );
DBG_ASSERT( nRow <= WK1MAXROW, "ExportWK1::Label(): Row > WK1MAXROW" );
- ByteString aStr( rStr, eZielChar );
+ ByteString aStr( rStr, eZielChar );
- USHORT nLaenge = 7; // Anzahl Bytes vor String+Nullbyte am Ende + Alignment-Char
+ USHORT nLaenge = 7; // Anzahl Bytes vor String+Nullbyte am Ende + Alignment-Char
- xub_StrLen nAnz = aStr.Len();
+ xub_StrLen nAnz = aStr.Len();
if( nAnz > 240 ) // max. 240 Zeichen im String
@@ -188,13 +188,13 @@ void ExportWK1::Label( const USHORT nCol, const USHORT nRow, const String& rStr,
void ExportWK1::Formula( const USHORT nCol, const USHORT nRow, const ScFormulaCell* pFC, const ScPatternAttr& aAttr )
-{ // (0x10)
+{ // (0x10)
// PREC: nCol <= WK1MAXCOL, nRow <= WK1MAXROW
DBG_ASSERT( nCol <= WK1MAXCOL, "ExportWK1::Formula(): Col > WK1MAXCOL" );
DBG_ASSERT( nRow <= WK1MAXROW, "ExportWK1::Formula(): Row > WK1MAXROW" );
- USHORT nLaenge = 15; // Bytes bis Formel
- double fErgebnis;
+ USHORT nLaenge = 15; // Bytes bis Formel
+ double fErgebnis;
// zunaechst nur Dummy-Angaben (Formel := Ergebnis der Berechnung )
nLaenge += 9+1;
@@ -212,14 +212,14 @@ void ExportWK1::Formula( const USHORT nCol, const USHORT nRow, const ScFormulaCe
inline void ExportWK1::Protect()
-{ // (0x24)
+{ // (0x24)
//Global protection off
aOut << ( USHORT ) 0x24 << ( USHORT ) 1 << ( BYTE ) 0x00;
}
inline void ExportWK1::Footer()
-{ // (0x25)
+{ // (0x25)
// zunaechst nur leerer C-String
aOut << ( USHORT ) 0x25 << ( USHORT ) 242 << ( sal_Char ) '\''; // linksbuendiger leerer String
for( short nLauf = 0 ; nLauf < 241 ; nLauf++ )
@@ -228,7 +228,7 @@ inline void ExportWK1::Footer()
inline void ExportWK1::Header()
-{ // (0x26)
+{ // (0x26)
// zunaechst nur leerer C-String
aOut << ( USHORT ) 0x26 << ( USHORT ) 242 << ( sal_Char ) '\''; // linksbuendiger leerer String
for( short nLauf = 0 ; nLauf < 241 ; nLauf++ )
@@ -237,7 +237,7 @@ inline void ExportWK1::Header()
inline void ExportWK1::Margins()
-{ // (0x28)
+{ // (0x28)
aOut << ( USHORT ) 0x28 << ( USHORT ) 10
<< ( USHORT ) 4 << ( USHORT ) 76 // Left/right margin
<< ( USHORT ) 66 // Page length
@@ -246,28 +246,28 @@ inline void ExportWK1::Margins()
inline void ExportWK1::Labelfmt()
-{ // (0x29)
+{ // (0x29)
// Global label alignment = left
aOut << ( USHORT ) 0x29 << ( USHORT ) 1 << ( BYTE ) 0x27;
}
inline void ExportWK1::Calccount()
-{ // (0x2F)
+{ // (0x2F)
// Iteration count = 16 (oder so aehnlich)
aOut << ( USHORT ) 0x2F << ( USHORT ) 1 << ( BYTE ) 16;
}
inline void ExportWK1::Cursorw12()
-{ // (0x31)
+{ // (0x31)
// Cursor location in window 1
aOut << ( USHORT ) 0x31 << ( USHORT ) 1 << ( BYTE ) 1;
}
void ExportWK1::WKString( const USHORT /*nCol*/, const USHORT /*nRow*/, const ScFormulaCell* /*pFC*/, const ScPatternAttr& /*aAttr*/ )
-{ // (0x33)
+{ // (0x33)
// PREC: nCol <= WK1MAXCOL, nRow <= WK1MAXROW
/* DBG_ASSERT( nCol <= WK1MAXCOL, "ExportWK1::Label(): Col > WK1MAXCOL" );
DBG_ASSERT( nRow <= WK1MAXROW, "ExportWK1::Label(): Row > WK1MAXROW" );
@@ -297,7 +297,7 @@ void ExportWK1::WKString( const USHORT /*nCol*/, const USHORT /*nRow*/, const Sc
inline void ExportWK1::Snrange()
-{ // (0x47)
+{ // (0x47)
//aOut << ( USHORT ) 0x47 << ( USHORT ) x
/* ScRangeName *pRanges = pD->GetRangeName();
ScRangeData *pData;
@@ -315,7 +315,7 @@ inline void ExportWK1::Snrange()
inline void ExportWK1::Hidcol()
-{ // (0x64)
+{ // (0x64)
sal_uInt32 nHide = 0x00000000; // ...niemand ist versteckt
aOut << ( USHORT ) 0x64 << ( USHORT ) 32;
@@ -326,7 +326,7 @@ inline void ExportWK1::Hidcol()
inline void ExportWK1::Cpi()
-{ // (0x96)
+{ // (0x96)
//aOut << ( USHORT ) 0x96 << ( USHORT ) x;
}
@@ -353,15 +353,15 @@ FltError ExportWK1::Write()
//Labelfmt();
// Zellen-Bemachung
- ScDocumentIterator aIter( pD, 0, 0 );
- ScBaseCell* pCell;
- USHORT nCol, nRow;
- SCTAB nTab;
- const ScPatternAttr* pPatAttr;
+ ScDocumentIterator aIter( pD, 0, 0 );
+ ScBaseCell* pCell;
+ USHORT nCol, nRow;
+ SCTAB nTab;
+ const ScPatternAttr* pPatAttr;
if( aIter.GetFirst() )
do
- { // ueber alle Zellen der ersten Tabelle iterieren
+ { // ueber alle Zellen der ersten Tabelle iterieren
pPatAttr = aIter.GetPattern();
pCell = aIter.GetCell();
SCCOL nScCol;
@@ -377,14 +377,14 @@ FltError ExportWK1::Write()
{
case CELLTYPE_VALUE:
{
- double fVal;
+ double fVal;
fVal = ( ( ScValueCell * ) pCell)->GetValue();
Number( nCol, nRow, fVal, *pPatAttr );
}
break;
case CELLTYPE_STRING:
{
- String aStr;
+ String aStr;
( ( ScStringCell * ) pCell)->GetString( aStr );
Label( nCol, nRow, aStr, *pPatAttr );
}
diff --git a/sc/source/filter/lotus/export.cxx b/sc/source/filter/lotus/export.cxx
index 5ca8cc7c6f49..96166cd4e593 100644
--- a/sc/source/filter/lotus/export.cxx
+++ b/sc/source/filter/lotus/export.cxx
@@ -2,7 +2,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/sc/source/filter/lotus/filter.cxx b/sc/source/filter/lotus/filter.cxx
index d521aec97315..809b447c51fb 100644
--- a/sc/source/filter/lotus/filter.cxx
+++ b/sc/source/filter/lotus/filter.cxx
@@ -2,7 +2,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
@@ -54,38 +54,38 @@
#include "op.h"
// Konstanten ------------------------------------------------------------
-const UINT16 nBOF = 0x0000;
+const UINT16 nBOF = 0x0000;
// externe Variablen -----------------------------------------------------
-extern WKTYP eTyp; // Typ der gerade in bearbeitung befindlichen Datei
-WKTYP eTyp;
+extern WKTYP eTyp; // Typ der gerade in bearbeitung befindlichen Datei
+WKTYP eTyp;
-extern BOOL bEOF; // zeigt Ende der Datei
-BOOL bEOF;
+extern BOOL bEOF; // zeigt Ende der Datei
+BOOL bEOF;
-extern CharSet eCharNach; // Zeichenkonvertierung von->nach
-CharSet eCharNach;
+extern CharSet eCharNach; // Zeichenkonvertierung von->nach
+CharSet eCharNach;
-extern CharSet eCharVon;
-CharSet eCharVon;
+extern CharSet eCharVon;
+CharSet eCharVon;
-extern ScDocument* pDoc; // Aufhaenger zum Dokumentzugriff
-ScDocument* pDoc;
+extern ScDocument* pDoc; // Aufhaenger zum Dokumentzugriff
+ScDocument* pDoc;
-extern sal_Char* pPuffer; // -> memory.cxx
-extern sal_Char* pDummy1; // -> memory.cxx
+extern sal_Char* pPuffer; // -> memory.cxx
+extern sal_Char* pDummy1; // -> memory.cxx
-extern OPCODE_FKT pOpFkt[ FKT_LIMIT ];
+extern OPCODE_FKT pOpFkt[ FKT_LIMIT ];
// -> optab.cxx, Tabelle moeglicher Opcodes
-extern OPCODE_FKT pOpFkt123[ FKT_LIMIT123 ];
+extern OPCODE_FKT pOpFkt123[ FKT_LIMIT123 ];
// -> optab.cxx, Table of possible Opcodes
-extern long nDateiLaenge; // -> datei.cpp, ...der gerade offenen Datei
+extern long nDateiLaenge; // -> datei.cpp, ...der gerade offenen Datei
-LOTUS_ROOT* pLotusRoot = NULL;
+LOTUS_ROOT* pLotusRoot = NULL;
std::map<UINT16, ScPatternAttr> aLotusPatternPool;
@@ -108,9 +108,9 @@ generate_Opcodes( SvStream& aStream, ScDocument& rDoc,
pOps = pOpFkt123;
nOps = FKT_LIMIT123;
break;
- case eWK3: return eERR_NI;
- case eWK_Error: return eERR_FORMAT;
- default: return eERR_UNKN_WK;
+ case eWK3: return eERR_NI;
+ case eWK_Error: return eERR_FORMAT;
+ default: return eERR_UNKN_WK;
}
// #i76299# seems that SvStream::IsEof() does not work correctly
@@ -168,7 +168,7 @@ WKTYP ScanVersion( SvStream& aStream )
{
// PREC: pWKDatei: Zeiger auf offene Datei
// POST: return: Typ der Datei
- UINT16 nOpcode, nVersNr, nRecLen;
+ UINT16 nOpcode, nVersNr, nRecLen;
// erstes Byte muss wegen BOF zwingend 0 sein!
aStream >> nOpcode;
@@ -198,7 +198,7 @@ WKTYP ScanVersion( SvStream& aStream )
aStream >> nVersNr;
if( aStream.IsEof() ) return eWK_Error;
if( nVersNr == 0x0004 && nRecLen == 26 )
- { // 4 Bytes von 26 gelesen->22 ueberlesen
+ { // 4 Bytes von 26 gelesen->22 ueberlesen
aStream.Read( pDummy1, 22 );
return eWK3;
}
diff --git a/sc/source/filter/lotus/lotattr.cxx b/sc/source/filter/lotus/lotattr.cxx
index 1644ee51856a..1f290c5451a9 100644
--- a/sc/source/filter/lotus/lotattr.cxx
+++ b/sc/source/filter/lotus/lotattr.cxx
@@ -2,7 +2,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
@@ -116,7 +116,7 @@ LotAttrCache::LotAttrCache( void )
LotAttrCache::~LotAttrCache()
{
- ENTRY* pAkt = ( ENTRY* ) List::First();
+ ENTRY* pAkt = ( ENTRY* ) List::First();
while( pAkt )
{
@@ -136,8 +136,8 @@ LotAttrCache::~LotAttrCache()
const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr )
{
- UINT32 nRefHash;
- ENTRY* pAkt = ( ENTRY* ) List::First();
+ UINT32 nRefHash;
+ ENTRY* pAkt = ( ENTRY* ) List::First();
MakeHash( rAttr, nRefHash );
@@ -150,8 +150,8 @@ const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr )
}
// neues PatternAttribute erzeugen
- ScPatternAttr* pNewPatt = new ScPatternAttr( pDocPool );
- SfxItemSet& rItemSet = pNewPatt->GetItemSet();
+ ScPatternAttr* pNewPatt = new ScPatternAttr( pDocPool );
+ SfxItemSet& rItemSet = pNewPatt->GetItemSet();
pAkt = new ENTRY( pNewPatt );
pAkt->nHash0 = nRefHash;
@@ -161,8 +161,8 @@ const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr )
UINT8 nLine = rAttr.nLineStyle;
if( nLine )
{
- SvxBoxItem aBox( ATTR_BORDER );
- SvxBorderLine aTop, aLeft, aBottom, aRight;
+ SvxBoxItem aBox( ATTR_BORDER );
+ SvxBorderLine aTop, aLeft, aBottom, aRight;
LotusToScBorderLine( nLine, aLeft );
nLine >>= 2;
@@ -180,7 +180,7 @@ const ScPatternAttr& LotAttrCache::GetPattAttr( const LotAttrWK3& rAttr )
rItemSet.Put( aBox );
}
- UINT8 nFontCol = rAttr.nFontCol & 0x07;
+ UINT8 nFontCol = rAttr.nFontCol & 0x07;
if( nFontCol )
{
// nFontCol > 0
@@ -216,7 +216,7 @@ void LotAttrCol::SetAttr( const SCROW nRow, const ScPatternAttr& rAttr )
{
DBG_ASSERT( ValidRow(nRow), "*LotAttrCol::SetAttr(): ... und rums?!" );
- ENTRY* pAkt = ( ENTRY* ) List::Last();
+ ENTRY* pAkt = ( ENTRY* ) List::Last();
if( pAkt )
{
@@ -232,7 +232,7 @@ void LotAttrCol::SetAttr( const SCROW nRow, const ScPatternAttr& rAttr )
}
}
else
- { // erster Eintrag
+ { // erster Eintrag
pAkt = new ENTRY;
pAkt->pPattAttr = &rAttr;
pAkt->nFirstRow = pAkt->nLastRow = nRow;
@@ -243,8 +243,8 @@ void LotAttrCol::SetAttr( const SCROW nRow, const ScPatternAttr& rAttr )
void LotAttrCol::Apply( const SCCOL nColNum, const SCTAB nTabNum, const BOOL /*bClear*/ )
{
- ScDocument* pDoc = pLotusRoot->pDoc;
- ENTRY* pAkt = ( ENTRY* ) List::First();
+ ScDocument* pDoc = pLotusRoot->pDoc;
+ ENTRY* pAkt = ( ENTRY* ) List::First();
while( pAkt )
{
@@ -258,7 +258,7 @@ void LotAttrCol::Apply( const SCCOL nColNum, const SCTAB nTabNum, const BOOL /*b
void LotAttrCol::Clear( void )
{
- ENTRY* pAkt = ( ENTRY* ) List::First();
+ ENTRY* pAkt = ( ENTRY* ) List::First();
while( pAkt )
{
@@ -281,8 +281,8 @@ LotAttrTable::~LotAttrTable()
void LotAttrTable::SetAttr( const SCCOL nColFirst, const SCCOL nColLast, const SCROW nRow,
const LotAttrWK3& rAttr )
{
- const ScPatternAttr& rPattAttr = aAttrCache.GetPattAttr( rAttr );
- SCCOL nColCnt;
+ const ScPatternAttr& rPattAttr = aAttrCache.GetPattAttr( rAttr );
+ SCCOL nColCnt;
for( nColCnt = nColFirst ; nColCnt <= nColLast ; nColCnt++ )
pCols[ nColCnt ].SetAttr( nRow, rPattAttr );
@@ -291,9 +291,9 @@ void LotAttrTable::SetAttr( const SCCOL nColFirst, const SCCOL nColLast, const S
void LotAttrTable::Apply( const SCTAB nTabNum )
{
- SCCOL nColCnt;
+ SCCOL nColCnt;
for( nColCnt = 0 ; nColCnt <= MAXCOL ; nColCnt++ )
- pCols[ nColCnt ].Apply( nColCnt, nTabNum ); // macht auch gleich ein Clear() am Ende
+ pCols[ nColCnt ].Apply( nColCnt, nTabNum ); // macht auch gleich ein Clear() am Ende
}
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx
index c307af332680..bd5140072b5f 100644
--- a/sc/source/filter/lotus/lotform.cxx
+++ b/sc/source/filter/lotus/lotform.cxx
@@ -2,7 +2,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
@@ -44,36 +44,36 @@
#include <math.h>
-extern WKTYP eTyp;
+extern WKTYP eTyp;
-static const sal_Char* GetAddInName( const UINT8 nIndex );
+static const sal_Char* GetAddInName( const UINT8 nIndex );
-static DefTokenId lcl_KnownAddIn( const ByteString& sTest );
+static DefTokenId lcl_KnownAddIn( const ByteString& sTest );
//extern double decipher_Number123( UINT32 nValue );
void LotusToSc::DoFunc( DefTokenId eOc, BYTE nAnz, const sal_Char* pExtString )
{
- TokenId eParam[ 256 ];
- INT32 nLauf;
- TokenId nMerk0, nMerk1;
+ TokenId eParam[ 256 ];
+ INT32 nLauf;
+ TokenId nMerk0, nMerk1;
- BOOL bAddIn = FALSE;
- BOOL bNeg = FALSE;
+ BOOL bAddIn = FALSE;
+ BOOL bNeg = FALSE;
DBG_ASSERT( nAnz < 128, "-LotusToSc::DoFunc(): Neee! -so viel kann ich nicht!" );
if( eOc == ocNoName )
{
- ByteString t;
+ ByteString t;
if( pExtString )
{
- const ByteString s( "@<<@123>>" );
+ const ByteString s( "@<<@123>>" );
t = pExtString;
- xub_StrLen n = t.Search( s );
+ xub_StrLen n = t.Search( s );
if( n != STRING_NOTFOUND )
t.Erase( 0, n + s.Len() );
@@ -148,10 +148,10 @@ void LotusToSc::DoFunc( DefTokenId eOc, BYTE nAnz, const sal_Char* pExtString )
DBG_ASSERT( nAnz == 3,
"*LotusToSc::DoFunc(): ZINS() hat 3 Parameter!" );
nAnz = 4;
- eParam[ 3 ] = eParam[ 0 ]; // 3. -> 1.
- eParam[ 0 ] = eParam[ 2 ]; // 1. -> 4.
- NegToken( eParam[ 1 ] ); // 2. -> -2. (+ 2. -> 3.)
- eParam[ 2 ] = n0Token; // -> 2. als Default
+ eParam[ 3 ] = eParam[ 0 ]; // 3. -> 1.
+ eParam[ 0 ] = eParam[ 2 ]; // 1. -> 4.
+ NegToken( eParam[ 1 ] ); // 2. -> -2. (+ 2. -> 3.)
+ eParam[ 2 ] = n0Token; // -> 2. als Default
}
break;
default:;
@@ -166,13 +166,13 @@ void LotusToSc::DoFunc( DefTokenId eOc, BYTE nAnz, const sal_Char* pExtString )
if( nAnz > 0 )
{
- INT16 nNull = -1; // gibt einen auszulassenden Parameter an
+ INT16 nNull = -1; // gibt einen auszulassenden Parameter an
// ACHTUNG: 0 ist der letzte Parameter, nAnz-1 der erste
INT16 nLast = nAnz - 1;
if( eOc == ocRMZ )
- { // Extrawurst ocRMZ letzter Parameter negiert!
+ { // Extrawurst ocRMZ letzter Parameter negiert!
// zusaetzlich: 1. -> 3., 3. -> 2., 2. -> 1.
DBG_ASSERT( nAnz == 3,
"+LotusToSc::DoFunc(): ocRMZ hat genau 3 Parameter!" );
@@ -180,7 +180,7 @@ void LotusToSc::DoFunc( DefTokenId eOc, BYTE nAnz, const sal_Char* pExtString )
<< ocNegSub << eParam[ 2 ];
}
else
- { // Normalfall
+ { // Normalfall
// [Parameter{;Parameter}]
aPool << eParam[ nLast ];
@@ -304,8 +304,8 @@ void LotusToSc::LotusRelToScRel( UINT16 nCol, UINT16 nRow, ScSingleRefData& rSRD
void LotusToSc::ReadSRD( ScSingleRefData& rSRD, BYTE nRelBit )
{
- BYTE nTab, nCol;
- UINT16 nRow;
+ BYTE nTab, nCol;
+ UINT16 nRow;
Read( nRow );
Read( nTab );
@@ -381,31 +381,31 @@ typedef DefTokenId ( FuncType2 ) ( BYTE );
ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
const FORMULA_TYPE /*eFT*/ )
{
- BYTE nOc;
- BYTE nAnz;
- BYTE nRelBits;
- UINT16 nStrLen;
- UINT16 nRngIndex;
- FUNC_TYPE eType = FT_NOP;
- TokenId nMerk0;
- DefTokenId eOc;
+ BYTE nOc;
+ BYTE nAnz;
+ BYTE nRelBits;
+ UINT16 nStrLen;
+ UINT16 nRngIndex;
+ FUNC_TYPE eType = FT_NOP;
+ TokenId nMerk0;
+ DefTokenId eOc;
const sal_Char* pExtName = 0;
- RangeNameBufferWK3& rRangeNameBufferWK3 = *pLotusRoot->pRngNmBffWK3;
+ RangeNameBufferWK3& rRangeNameBufferWK3 = *pLotusRoot->pRngNmBffWK3;
- ScComplexRefData aCRD;
+ ScComplexRefData aCRD;
aCRD.InitFlags();
- ScSingleRefData& rR = aCRD.Ref1;
+ ScSingleRefData& rR = aCRD.Ref1;
- LR_ID nId;
- TokenId nNewId;
+ LR_ID nId;
+ TokenId nNewId;
- LotusRangeList& rRangeList = *pLotusRoot->pRangeNames;
+ LotusRangeList& rRangeList = *pLotusRoot->pRangeNames;
- FuncType1* pIndexToType;
- FuncType2* pIndexToToken;
+ FuncType1* pIndexToType;
+ FuncType2* pIndexToToken;
if( bWK3 )
- { // for > WK3
+ { // for > WK3
pIndexToType = IndexToTypeWK123;
pIndexToToken = IndexToTokenWK123;
}
@@ -429,7 +429,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
nBytesLeft = rRest;
- while( eType ) // != FT_Return (==0)
+ while( eType ) // != FT_Return (==0)
{
Read( nOc );
@@ -448,16 +448,16 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
{
case FT_Return:
if( bWK3 || bWK123 )
- nBytesLeft = 0; // wird ab WK3 nicht benutzt
+ nBytesLeft = 0; // wird ab WK3 nicht benutzt
rRest = nBytesLeft;
break;
case FT_NotImpl:
- case FT_FuncFix0: DoFunc( eOc, 0, pExtName ); break;
- case FT_FuncFix1: DoFunc( eOc, 1, pExtName ); break;
- case FT_FuncFix2: DoFunc( eOc, 2, pExtName ); break;
- case FT_FuncFix3: DoFunc( eOc, 3, pExtName ); break;
- case FT_FuncFix4: DoFunc( eOc, 4, pExtName ); break;
+ case FT_FuncFix0: DoFunc( eOc, 0, pExtName ); break;
+ case FT_FuncFix1: DoFunc( eOc, 1, pExtName ); break;
+ case FT_FuncFix2: DoFunc( eOc, 2, pExtName ); break;
+ case FT_FuncFix3: DoFunc( eOc, 3, pExtName ); break;
+ case FT_FuncFix4: DoFunc( eOc, 4, pExtName ); break;
case FT_FuncVar:
Read( nAnz );
DoFunc( eOc, nAnz, pExtName );
@@ -473,14 +473,14 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
break;
case FT_ConstFloat:
{
- double fDouble;
+ double fDouble;
Read( fDouble );
aStack << aPool.Store( fDouble );
}
break;
case FT_Variable:
{
- UINT16 nCol, nRow;
+ UINT16 nCol, nRow;
Read( nCol );
Read( nRow );
@@ -504,7 +504,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
break;
case FT_Range:
{
- UINT16 nColS, nRowS, nColE, nRowE;
+ UINT16 nColS, nRowS, nColE, nRowE;
Read( nColS );
Read( nRowS );
Read( nColE );
@@ -536,7 +536,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
break;
case FT_ConstInt:
{
- INT16 nVal;
+ INT16 nVal;
Read( nVal );
aStack << aPool.Store( ( double ) nVal );
}
@@ -568,7 +568,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
aStack << aPool.Store( nRngIndex );
else
{
- String aText( RTL_CONSTASCII_USTRINGPARAM( "NRREF " ) );
+ String aText( RTL_CONSTASCII_USTRINGPARAM( "NRREF " ) );
aText += aTmp;
aStack << aPool.Store( aText );
}
@@ -581,7 +581,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
aStack << aPool.Store( nRngIndex );
else
{
- String aText( RTL_CONSTASCII_USTRINGPARAM( "ABSNREF " ) );
+ String aText( RTL_CONSTASCII_USTRINGPARAM( "ABSNREF " ) );
aText += aTmp;
aStack << aPool.Store( aText );
}
@@ -609,8 +609,8 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
if( nStrLen )
{
-// String t( ReadString( aIn, nStrLen, eSrcChar ) );
- sal_Char* p = new sal_Char[ nStrLen + 1 ];
+// String t( ReadString( aIn, nStrLen, eSrcChar ) );
+ sal_Char* p = new sal_Char[ nStrLen + 1 ];
aIn.Read( p, nStrLen );
p[ nStrLen ] = 0x00;
@@ -658,7 +658,7 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
DBG_ASSERT( nBytesLeft <= 0, "*LotusToSc::Convert(): wat is mit'm Rest?" );
if( rRest )
- aIn.SeekRel( nBytesLeft ); // eventuellen Rest/Ueberlauf korrigieren
+ aIn.SeekRel( nBytesLeft ); // eventuellen Rest/Ueberlauf korrigieren
rRest = 0;
@@ -669,263 +669,263 @@ ConvErr LotusToSc::Convert( const ScTokenArray*& rpErg, INT32& rRest,
FUNC_TYPE LotusToSc::IndexToType( BYTE nIndex )
{
static const FUNC_TYPE pType[ 256 ] =
- { // Code Bezeichnung
- FT_ConstFloat, // 0 8-Byte-IEEE-Float
- FT_Variable, // 1 Variable
- FT_Range, // 2 Bereich
- FT_Return, // 3 return
- FT_Braces, // 4 Klammer
- FT_ConstInt, // 5 2-Byte-Integer
- FT_ConstString, // 6 ASCII-String
- FT_NOP, // 7 NOP
- FT_Neg, // 8 Negation
- FT_Op, // 9 Addition
- FT_Op, // 10 Subtraktion
- FT_Op, // 11 Multiplikation
- FT_Op, // 12 Division
- FT_Op, // 13 Potenzierung
- FT_Op, // 14 Gleichheit
- FT_Op, // 15 Ungleich
- FT_Op, // 16 Kleiner-gleich
- FT_Op, // 17 Groesser-gleich
- FT_Op, // 18 Kleiner
- FT_Op, // 19 Groesser
- FT_Op, // 20 And (logisch)
- FT_Op, // 21 Or (logisch)
- FT_FuncFix1, // 22 Not (logisch)
- FT_NOP, // 23 unaeres Plus
- FT_NotImpl, // 24
- FT_NotImpl, // 25
- FT_NotImpl, // 26
- FT_NotImpl, // 27
- FT_NotImpl, // 28
- FT_NotImpl, // 29
- FT_NotImpl, // 30
- FT_FuncFix0, // 31 Not applicable
- FT_FuncFix0, // 32 Error
- FT_FuncFix1, // 33 Betrag ABS()
- FT_FuncFix1, // 34 Ganzzahl INT()
- FT_FuncFix1, // 35 Quadratwurzel
- FT_FuncFix1, // 36 Zehnerlogarithmus
- FT_FuncFix1, // 37 Natuerlicher Logarithmus
- FT_FuncFix0, // 38 PI
- FT_FuncFix1, // 39 Sinus
- FT_FuncFix1, // 40 Cosinus
- FT_FuncFix1, // 41 Tangens
- FT_FuncFix2, // 42 Arcus-Tangens 2 (4.Quadrant) <----- richtig? -
- FT_FuncFix1, // 43 Arcus-Tangens (2.Quadrant)
- FT_FuncFix1, // 44 Arcus-Sinus
- FT_FuncFix1, // 45 Arcus-Cosinus
- FT_FuncFix1, // 46 Exponentialfunktion
- FT_FuncFix2, // 47 Modulo
- FT_FuncVar, // 48 Auswahl
- FT_FuncFix1, // 49 Is not applicable?
- FT_FuncFix1, // 50 Is Error?
- FT_FuncFix0, // 51 FALSE
- FT_FuncFix0, // 52 TRUE
- FT_FuncFix0, // 53 Zufallszahl
- FT_FuncFix3, // 54 Datum
- FT_FuncFix0, // 55 Heute
- FT_FuncFix3, // 56 Payment
- FT_FuncFix3, // 57 Present Value
- FT_FuncFix3, // 58 Future Value
- FT_FuncFix3, // 59 If ... then ... else ...
- FT_FuncFix1, // 60 Tag des Monats
- FT_FuncFix1, // 61 Monat
- FT_FuncFix1, // 62 Jahr
- FT_FuncFix2, // 63 Runden
- FT_FuncFix3, // 64 Zeit
- FT_FuncFix1, // 65 Stunde
- FT_FuncFix1, // 66 Minute
- FT_FuncFix1, // 67 Sekunde
- FT_FuncFix1, // 68 Ist Zahl?
- FT_FuncFix1, // 69 Ist Text?
- FT_FuncFix1, // 70 Len()
- FT_FuncFix1, // 71 Val()
- FT_FuncFix2, // 72 String()
- FT_FuncFix3, // 73 Mid()
- FT_FuncFix1, // 74 Char()
- FT_FuncFix1, // 75 Ascii()
- FT_FuncFix3, // 76 Find()
- FT_FuncFix1, // 77 Datevalue
- FT_FuncFix1, // 78 Timevalue
- FT_FuncFix1, // 79 Cellpointer
- FT_FuncVar, // 80 Sum()
- FT_FuncVar, // 81 Avg()
- FT_FuncVar, // 82 Cnt()
- FT_FuncVar, // 83 Min()
- FT_FuncVar, // 84 Max()
- FT_FuncFix3, // 85 Vlookup()
- FT_FuncFix2, // 86 Npv()
- FT_FuncVar, // 87 Var()
- FT_FuncVar, // 88 Std()
- FT_FuncFix2, // 89 Irr()
- FT_FuncFix3, // 90 Hlookup()
- FT_FuncFix3, // 91 ?
- FT_FuncFix3, // 92 ?
- FT_FuncFix3, // 93 ?
- FT_FuncFix3, // 94 ?
- FT_FuncFix3, // 95 ?
- FT_FuncFix3, // 96 ?
- FT_FuncFix3, // 97 ?
- FT_FuncFix3, // 98 Index() <- richtig? -
- FT_FuncFix1, // 99 Cols()
- FT_FuncFix1, // 100 Rows()
- FT_FuncFix2, // 101 Repeat()
- FT_FuncFix1, // 102 Upper()
- FT_FuncFix1, // 103 Lower()
- FT_FuncFix2, // 104 Left()
- FT_FuncFix2, // 105 Right()
- FT_FuncFix4, // 106 Replace()
- FT_FuncFix1, // 107 Proper()
- FT_FuncFix2, // 108 Cell()
- FT_FuncFix1, // 109 Trim()
- FT_FuncFix1, // 110 Clean()
- FT_FuncFix1, // 111 F()
- FT_FuncFix1, // 112 Wert() (oder W()?)
- FT_FuncFix2, // 113 Exact()
- FT_NotImpl, // 114 Call()
- FT_FuncFix1, // 115 @@()
- FT_FuncFix3, // 116 Rate()
- FT_FuncFix1, // 117 Term()
- FT_FuncFix1, // 118 Cterm()
- FT_FuncFix3, // 119 Sln()
- FT_FuncFix4, // 120 Syd(), Soy()
- FT_FuncFix4, // 121 Ddb()
- FT_NotImpl, // 122
- FT_NotImpl, // 123
- FT_NotImpl, // 124
- FT_NotImpl, // 125
- FT_NotImpl, // 126
- FT_NotImpl, // 127
- FT_NotImpl, // 128
- FT_NotImpl, // 129
- FT_NotImpl, // 130
- FT_NotImpl, // 131
- FT_NotImpl, // 132
- FT_NotImpl, // 133
- FT_NotImpl, // 134
- FT_NotImpl, // 135
- FT_NotImpl, // 136
- FT_NotImpl, // 137
- FT_NotImpl, // 138
- FT_NotImpl, // 139
- FT_NotImpl, // 140
- FT_NotImpl, // 141
- FT_NotImpl, // 142
- FT_NotImpl, // 143
- FT_NotImpl, // 144
- FT_NotImpl, // 145
- FT_NotImpl, // 146
- FT_NotImpl, // 147
- FT_NotImpl, // 148
- FT_NotImpl, // 149
- FT_NotImpl, // 150
- FT_NotImpl, // 151
- FT_NotImpl, // 152
- FT_NotImpl, // 153
- FT_NotImpl, // 154
- FT_NotImpl, // 155
- FT_FuncVar, // 156 ?
- FT_NotImpl, // 157
- FT_NotImpl, // 158
- FT_NotImpl, // 159
- FT_NotImpl, // 160
- FT_NotImpl, // 161
- FT_NotImpl, // 162
- FT_NotImpl, // 163
- FT_NotImpl, // 164
- FT_NotImpl, // 165
- FT_NotImpl, // 166
- FT_NotImpl, // 167
- FT_NotImpl, // 168
- FT_NotImpl, // 169
- FT_NotImpl, // 170
- FT_NotImpl, // 171
- FT_NotImpl, // 172
- FT_NotImpl, // 173
- FT_NotImpl, // 174
- FT_NotImpl, // 175
- FT_NotImpl, // 176
- FT_NotImpl, // 177
- FT_NotImpl, // 178
- FT_NotImpl, // 179
- FT_NotImpl, // 180
- FT_NotImpl, // 181
- FT_NotImpl, // 182
- FT_NotImpl, // 183
- FT_NotImpl, // 184
- FT_NotImpl, // 185
- FT_NotImpl, // 186
- FT_NotImpl, // 187
- FT_NotImpl, // 188
- FT_NotImpl, // 189
- FT_NotImpl, // 190
- FT_NotImpl, // 191
- FT_NotImpl, // 192
- FT_NotImpl, // 193
- FT_NotImpl, // 194
- FT_NotImpl, // 195
- FT_NotImpl, // 196
- FT_NotImpl, // 197
- FT_NotImpl, // 198
- FT_NotImpl, // 199
- FT_NotImpl, // 200
- FT_NotImpl, // 201
- FT_NotImpl, // 202
- FT_NotImpl, // 203
- FT_NotImpl, // 204
- FT_NotImpl, // 205
- FT_FuncVar, // 206 ?
- FT_NotImpl, // 207
- FT_NotImpl, // 208
- FT_NotImpl, // 209
- FT_NotImpl, // 210
- FT_NotImpl, // 211
- FT_NotImpl, // 212
- FT_NotImpl, // 213
- FT_NotImpl, // 214
- FT_NotImpl, // 215
- FT_NotImpl, // 216
- FT_NotImpl, // 217
- FT_NotImpl, // 218
- FT_NotImpl, // 219
- FT_NotImpl, // 220
- FT_NotImpl, // 221
- FT_NotImpl, // 222
- FT_NotImpl, // 223
- FT_NotImpl, // 224
- FT_NotImpl, // 225
- FT_NotImpl, // 226
- FT_NotImpl, // 227
- FT_NotImpl, // 228
- FT_NotImpl, // 229
- FT_NotImpl, // 230
- FT_NotImpl, // 231
- FT_NotImpl, // 232
- FT_NotImpl, // 233
- FT_NotImpl, // 234
- FT_NotImpl, // 235
- FT_NotImpl, // 236
- FT_NotImpl, // 237
- FT_NotImpl, // 238
- FT_NotImpl, // 239
- FT_NotImpl, // 240
- FT_NotImpl, // 241
- FT_NotImpl, // 242
- FT_NotImpl, // 243
- FT_NotImpl, // 244
- FT_NotImpl, // 245
- FT_NotImpl, // 246
- FT_NotImpl, // 247
- FT_NotImpl, // 248
- FT_NotImpl, // 249
- FT_NotImpl, // 250
- FT_NotImpl, // 251
- FT_NotImpl, // 252
- FT_NotImpl, // 253
- FT_NotImpl, // 254
- FT_FuncVar, // 255 ?
+ { // Code Bezeichnung
+ FT_ConstFloat, // 0 8-Byte-IEEE-Float
+ FT_Variable, // 1 Variable
+ FT_Range, // 2 Bereich
+ FT_Return, // 3 return
+ FT_Braces, // 4 Klammer
+ FT_ConstInt, // 5 2-Byte-Integer
+ FT_ConstString, // 6 ASCII-String
+ FT_NOP, // 7 NOP
+ FT_Neg, // 8 Negation
+ FT_Op, // 9 Addition
+ FT_Op, // 10 Subtraktion
+ FT_Op, // 11 Multiplikation
+ FT_Op, // 12 Division
+ FT_Op, // 13 Potenzierung
+ FT_Op, // 14 Gleichheit
+ FT_Op, // 15 Ungleich
+ FT_Op, // 16 Kleiner-gleich
+ FT_Op, // 17 Groesser-gleich
+ FT_Op, // 18 Kleiner
+ FT_Op, // 19 Groesser
+ FT_Op, // 20 And (logisch)
+ FT_Op, // 21 Or (logisch)
+ FT_FuncFix1, // 22 Not (logisch)
+ FT_NOP, // 23 unaeres Plus
+ FT_NotImpl, // 24
+ FT_NotImpl, // 25
+ FT_NotImpl, // 26
+ FT_NotImpl, // 27
+ FT_NotImpl, // 28
+ FT_NotImpl, // 29
+ FT_NotImpl, // 30
+ FT_FuncFix0, // 31 Not applicable
+ FT_FuncFix0, // 32 Error
+ FT_FuncFix1, // 33 Betrag ABS()
+ FT_FuncFix1, // 34 Ganzzahl INT()
+ FT_FuncFix1, // 35 Quadratwurzel
+ FT_FuncFix1, // 36 Zehnerlogarithmus
+ FT_FuncFix1, // 37 Natuerlicher Logarithmus
+ FT_FuncFix0, // 38 PI
+ FT_FuncFix1, // 39 Sinus
+ FT_FuncFix1, // 40 Cosinus
+ FT_FuncFix1, // 41 Tangens
+ FT_FuncFix2, // 42 Arcus-Tangens 2 (4.Quadrant) <----- richtig? -
+ FT_FuncFix1, // 43 Arcus-Tangens (2.Quadrant)
+ FT_FuncFix1, // 44 Arcus-Sinus
+ FT_FuncFix1, // 45 Arcus-Cosinus
+ FT_FuncFix1, // 46 Exponentialfunktion
+ FT_FuncFix2, // 47 Modulo
+ FT_FuncVar, // 48 Auswahl
+ FT_FuncFix1, // 49 Is not applicable?
+ FT_FuncFix1, // 50 Is Error?
+ FT_FuncFix0, // 51 FALSE
+ FT_FuncFix0, // 52 TRUE
+ FT_FuncFix0, // 53 Zufallszahl
+ FT_FuncFix3, // 54 Datum
+ FT_FuncFix0, // 55 Heute
+ FT_FuncFix3, // 56 Payment
+ FT_FuncFix3, // 57 Present Value
+ FT_FuncFix3, // 58 Future Value
+ FT_FuncFix3, // 59 If ... then ... else ...
+ FT_FuncFix1, // 60 Tag des Monats
+ FT_FuncFix1, // 61 Monat
+ FT_FuncFix1, // 62 Jahr
+ FT_FuncFix2, // 63 Runden
+ FT_FuncFix3, // 64 Zeit
+ FT_FuncFix1, // 65 Stunde
+ FT_FuncFix1, // 66 Minute
+ FT_FuncFix1, // 67 Sekunde
+ FT_FuncFix1, // 68 Ist Zahl?
+ FT_FuncFix1, // 69 Ist Text?
+ FT_FuncFix1, // 70 Len()
+ FT_FuncFix1, // 71 Val()
+ FT_FuncFix2, // 72 String()
+ FT_FuncFix3, // 73 Mid()
+ FT_FuncFix1, // 74 Char()
+ FT_FuncFix1, // 75 Ascii()
+ FT_FuncFix3, // 76 Find()
+ FT_FuncFix1, // 77 Datevalue
+ FT_FuncFix1, // 78 Timevalue
+ FT_FuncFix1, // 79 Cellpointer
+ FT_FuncVar, // 80 Sum()
+ FT_FuncVar, // 81 Avg()
+ FT_FuncVar, // 82 Cnt()
+ FT_FuncVar, // 83 Min()
+ FT_FuncVar, // 84 Max()
+ FT_FuncFix3, // 85 Vlookup()
+ FT_FuncFix2, // 86 Npv()
+ FT_FuncVar, // 87 Var()
+ FT_FuncVar, // 88 Std()
+ FT_FuncFix2, // 89 Irr()
+ FT_FuncFix3, // 90 Hlookup()
+ FT_FuncFix3, // 91 ?
+ FT_FuncFix3, // 92 ?
+ FT_FuncFix3, // 93 ?
+ FT_FuncFix3, // 94 ?
+ FT_FuncFix3, // 95 ?
+ FT_FuncFix3, // 96 ?
+ FT_FuncFix3, // 97 ?
+ FT_FuncFix3, // 98 Index() <- richtig? -
+ FT_FuncFix1, // 99 Cols()
+ FT_FuncFix1, // 100 Rows()
+ FT_FuncFix2, // 101 Repeat()
+ FT_FuncFix1, // 102 Upper()
+ FT_FuncFix1, // 103 Lower()
+ FT_FuncFix2, // 104 Left()
+ FT_FuncFix2, // 105 Right()
+ FT_FuncFix4, // 106 Replace()
+ FT_FuncFix1, // 107 Proper()
+ FT_FuncFix2, // 108 Cell()
+ FT_FuncFix1, // 109 Trim()
+ FT_FuncFix1, // 110 Clean()
+ FT_FuncFix1, // 111 F()
+ FT_FuncFix1, // 112 Wert() (oder W()?)
+ FT_FuncFix2, // 113 Exact()
+ FT_NotImpl, // 114 Call()
+ FT_FuncFix1, // 115 @@()
+ FT_FuncFix3, // 116 Rate()
+ FT_FuncFix1, // 117 Term()
+ FT_FuncFix1, // 118 Cterm()
+ FT_FuncFix3, // 119 Sln()
+ FT_FuncFix4, // 120 Syd(), Soy()
+ FT_FuncFix4, // 121 Ddb()
+ FT_NotImpl, // 122
+ FT_NotImpl, // 123
+ FT_NotImpl, // 124
+ FT_NotImpl, // 125
+ FT_NotImpl, // 126
+ FT_NotImpl, // 127
+ FT_NotImpl, // 128
+ FT_NotImpl, // 129
+ FT_NotImpl, // 130
+ FT_NotImpl, // 131
+ FT_NotImpl, // 132
+ FT_NotImpl, // 133
+ FT_NotImpl, // 134
+ FT_NotImpl, // 135
+ FT_NotImpl, // 136
+ FT_NotImpl, // 137
+ FT_NotImpl, // 138
+ FT_NotImpl, // 139
+ FT_NotImpl, // 140
+ FT_NotImpl, // 141
+ FT_NotImpl, // 142
+ FT_NotImpl, // 143
+ FT_NotImpl, // 144
+ FT_NotImpl, // 145
+ FT_NotImpl, // 146
+ FT_NotImpl, // 147
+ FT_NotImpl, // 148
+ FT_NotImpl, // 149
+ FT_NotImpl, // 150
+ FT_NotImpl, // 151
+ FT_NotImpl, // 152
+ FT_NotImpl, // 153
+ FT_NotImpl, // 154
+ FT_NotImpl, // 155
+ FT_FuncVar, // 156 ?
+ FT_NotImpl, // 157
+ FT_NotImpl, // 158
+ FT_NotImpl, // 159
+ FT_NotImpl, // 160
+ FT_NotImpl, // 161
+ FT_NotImpl, // 162
+ FT_NotImpl, // 163
+ FT_NotImpl, // 164
+ FT_NotImpl, // 165
+ FT_NotImpl, // 166
+ FT_NotImpl, // 167
+ FT_NotImpl, // 168
+ FT_NotImpl, // 169
+ FT_NotImpl, // 170
+ FT_NotImpl, // 171
+ FT_NotImpl, // 172
+ FT_NotImpl, // 173
+ FT_NotImpl, // 174
+ FT_NotImpl, // 175
+ FT_NotImpl, // 176
+ FT_NotImpl, // 177
+ FT_NotImpl, // 178
+ FT_NotImpl, // 179
+ FT_NotImpl, // 180
+ FT_NotImpl, // 181
+ FT_NotImpl, // 182
+ FT_NotImpl, // 183
+ FT_NotImpl, // 184
+ FT_NotImpl, // 185
+ FT_NotImpl, // 186
+ FT_NotImpl, // 187
+ FT_NotImpl, // 188
+ FT_NotImpl, // 189
+ FT_NotImpl, // 190
+ FT_NotImpl, // 191
+ FT_NotImpl, // 192
+ FT_NotImpl, // 193
+ FT_NotImpl, // 194
+ FT_NotImpl, // 195
+ FT_NotImpl, // 196
+ FT_NotImpl, // 197
+ FT_NotImpl, // 198
+ FT_NotImpl, // 199
+ FT_NotImpl, // 200
+ FT_NotImpl, // 201
+ FT_NotImpl, // 202
+ FT_NotImpl, // 203
+ FT_NotImpl, // 204
+ FT_NotImpl, // 205
+ FT_FuncVar, // 206 ?
+ FT_NotImpl, // 207
+ FT_NotImpl, // 208
+ FT_NotImpl, // 209
+ FT_NotImpl, // 210
+ FT_NotImpl, // 211
+ FT_NotImpl, // 212
+ FT_NotImpl, // 213
+ FT_NotImpl, // 214
+ FT_NotImpl, // 215
+ FT_NotImpl, // 216
+ FT_NotImpl, // 217
+ FT_NotImpl, // 218
+ FT_NotImpl, // 219
+ FT_NotImpl, // 220
+ FT_NotImpl, // 221
+ FT_NotImpl, // 222
+ FT_NotImpl, // 223
+ FT_NotImpl, // 224
+ FT_NotImpl, // 225
+ FT_NotImpl, // 226
+ FT_NotImpl, // 227
+ FT_NotImpl, // 228
+ FT_NotImpl, // 229
+ FT_NotImpl, // 230
+ FT_NotImpl, // 231
+ FT_NotImpl, // 232
+ FT_NotImpl, // 233
+ FT_NotImpl, // 234
+ FT_NotImpl, // 235
+ FT_NotImpl, // 236
+ FT_NotImpl, // 237
+ FT_NotImpl, // 238
+ FT_NotImpl, // 239
+ FT_NotImpl, // 240
+ FT_NotImpl, // 241
+ FT_NotImpl, // 242
+ FT_NotImpl, // 243
+ FT_NotImpl, // 244
+ FT_NotImpl, // 245
+ FT_NotImpl, // 246
+ FT_NotImpl, // 247
+ FT_NotImpl, // 248
+ FT_NotImpl, // 249
+ FT_NotImpl, // 250
+ FT_NotImpl, // 251
+ FT_NotImpl, // 252
+ FT_NotImpl, // 253
+ FT_NotImpl, // 254
+ FT_FuncVar, // 255 ?
};
return pType[ nIndex ];
}
@@ -934,263 +934,263 @@ FUNC_TYPE LotusToSc::IndexToType( BYTE nIndex )
DefTokenId LotusToSc::IndexToToken( BYTE nIndex )
{
static const DefTokenId pToken[ 256 ] =
- { // Code Bezeichnung
- ocPush, // 0 8-Byte-IEEE-Float
- ocPush, // 1 Variable
- ocPush, // 2 Bereich
- ocPush, // 3 return
- ocPush, // 4 Klammer
- ocPush, // 5 2-Byte-Integer
- ocPush, // 6 ASCII-String
- ocPush, // 7 NOP
- ocNegSub, // 8 Negation
- ocAdd, // 9 Addition
- ocSub, // 10 Subtraktion
- ocMul, // 11 Multiplikation
- ocDiv, // 12 Division
- ocPow, // 13 Potenzierung
- ocEqual, // 14 Gleichheit
- ocNotEqual, // 15 Ungleich
- ocLessEqual, // 16 Kleiner-gleich
- ocGreaterEqual, // 17 Groesser-gleich
- ocLess, // 18 Kleiner
- ocGreater, // 19 Groesser
- ocAnd, // 20 And (logisch)
- ocOr, // 21 Or (logisch)
- ocNot, // 22 Not (logisch)
- ocPush, // 23 unaeres Plus
- ocNoName, // 24
- ocNoName, // 25
- ocNoName, // 26
- ocNoName, // 27
- ocNoName, // 28
- ocNoName, // 29
- ocNoName, // 30
- ocNotAvail, // 31 Not available
- ocNoName, // 32 Error
- ocAbs, // 33 Betrag ABS()
- ocInt, // 34 Ganzzahl INT()
- ocSqrt, // 35 Quadratwurzel
- ocLog10, // 36 Zehnerlogarithmus
- ocLn, // 37 Natuerlicher Logarithmus
- ocPi, // 38 PI
- ocSin, // 39 Sinus
- ocCos, // 40 Cosinus
- ocTan, // 41 Tangens
- ocArcTan2, // 42 Arcus-Tangens 2 (4.Quadrant)
- ocArcTan, // 43 Arcus-Tangens (2.Quadrant)
- ocArcSin, // 44 Arcus-Sinus
- ocArcCos, // 45 Arcus-Cosinus
- ocExp, // 46 Exponentialfunktion
- ocMod, // 47 Modulo
- ocChose, // 48 Auswahl
- ocIsNA, // 49 Is not available?
- ocIsError, // 50 Is Error?
- ocFalse, // 51 FALSE
- ocTrue, // 52 TRUE
- ocRandom, // 53 Zufallszahl
- ocGetDate, // 54 Datum
- ocGetActDate, // 55 Heute
- ocRMZ, // 56 Payment
- ocBW, // 57 Present Value
- ocZW, // 58 Future Value
- ocIf, // 59 If ... then ... else ...
- ocGetDay, // 60 Tag des Monats
- ocGetMonth, // 61 Monat
- ocGetYear, // 62 Jahr
- ocRound, // 63 Runden
- ocGetTime, // 64 Zeit
- ocGetHour, // 65 Stunde
- ocGetMin, // 66 Minute
- ocGetSec, // 67 Sekunde
- ocIsValue, // 68 Ist Zahl?
- ocIsString, // 69 Ist Text?
- ocLen, // 70 Len()
- ocValue, // 71 Val()
- ocFixed, // 72 String() ocFixed ersatzweise + Spezialfall
- ocMid, // 73 Mid()
- ocChar, // 74 Char()
- ocCode, // 75 Ascii()
- ocFind, // 76 Find()
- ocGetDateValue, // 77 Datevalue
- ocGetTimeValue, // 78 Timevalue
- ocNoName, // 79 Cellpointer
- ocSum, // 80 Sum()
- ocAverage, // 81 Avg()
- ocCount, // 82 Cnt()
- ocMin, // 83 Min()
- ocMax, // 84 Max()
- ocVLookup, // 85 Vlookup()
- ocNPV, // 86 Npv()
- ocVar, // 87 Var()
- ocNormDist, // 88 Std()
- ocIRR, // 89 Irr()
- ocHLookup, // 90 Hlookup()
- ocDBSum, // 91 XlfDsum
- ocDBAverage, // 92 XlfDaverage
- ocDBCount, // 93 XlfDcount
- ocDBMin, // 94 XlfDmin
- ocDBMax, // 95 XlfDmax
- ocDBVar, // 96 XlfDvar
- ocDBStdDev, // 97 XlfDstdev
- ocIndex, // 98 Index()
- ocColumns, // 99 Cols()
- ocRows, // 100 Rows()
- ocRept, // 101 Repeat()
- ocUpper, // 102 Upper()
- ocLower, // 103 Lower()
- ocLeft, // 104 Left()
- ocRight, // 105 Right()
- ocReplace, // 106 Replace()
- ocPropper, // 107 Proper()
- ocNoName, // 108 Cell()
- ocTrim, // 109 Trim()
- ocClean, // 110 Clean()
- ocFalse, // 111 F()
- ocTrue, // 112 W()
- ocExact, // 113 Exact()
- ocNoName, // 114 Call()
- ocIndirect, // 115 @@()
- ocZins, // 116 Rate()
- ocNoName, // 117 Term()
- ocNoName, // 118 Cterm()
- ocLIA, // 119 Sln()
- ocDIA, // 120 Syd(), Soy()
- ocGDA, // 121 Ddb()
- ocNoName, // 122
- ocNoName, // 123
- ocNoName, // 124
- ocNoName, // 125
- ocNoName, // 126
- ocNoName, // 127
- ocNoName, // 128
- ocNoName, // 129
- ocNoName, // 130
- ocNoName, // 131
- ocNoName, // 132
- ocNoName, // 133
- ocNoName, // 134
- ocNoName, // 135
- ocNoName, // 136
- ocNoName, // 137
- ocNoName, // 138
- ocNoName, // 139
- ocNoName, // 140
- ocNoName, // 141
- ocNoName, // 142
- ocNoName, // 143
- ocNoName, // 144
- ocNoName, // 145
- ocNoName, // 146
- ocNoName, // 147
- ocNoName, // 148
- ocNoName, // 149
- ocNoName, // 150
- ocNoName, // 151
- ocNoName, // 152
- ocNoName, // 153
- ocNoName, // 154
- ocNoName, // 155
- ocNoName, // 156 ?
- ocNoName, // 157
- ocNoName, // 158
- ocNoName, // 159
- ocNoName, // 160
- ocNoName, // 161
- ocNoName, // 162
- ocNoName, // 163
- ocNoName, // 164
- ocNoName, // 165
- ocNoName, // 166
- ocNoName, // 167
- ocNoName, // 168
- ocNoName, // 169
- ocNoName, // 170
- ocNoName, // 171
- ocNoName, // 172
- ocNoName, // 173
- ocNoName, // 174
- ocNoName, // 175
- ocNoName, // 176
- ocNoName, // 177
- ocNoName, // 178
- ocNoName, // 179
- ocNoName, // 180
- ocNoName, // 181
- ocNoName, // 182
- ocNoName, // 183
- ocNoName, // 184
- ocNoName, // 185
- ocNoName, // 186
- ocNoName, // 187
- ocNoName, // 188
- ocNoName, // 189
- ocNoName, // 190
- ocNoName, // 191
- ocNoName, // 192
- ocNoName, // 193
- ocNoName, // 194
- ocNoName, // 195
- ocNoName, // 196
- ocNoName, // 197
- ocNoName, // 198
- ocNoName, // 199
- ocNoName, // 200
- ocNoName, // 201
- ocNoName, // 202
- ocNoName, // 203
- ocNoName, // 204
- ocNoName, // 205
- ocNoName, // 206 ?
- ocNoName, // 207
- ocNoName, // 208
- ocNoName, // 209
- ocNoName, // 210
- ocNoName, // 211
- ocNoName, // 212
- ocNoName, // 213
- ocNoName, // 214
- ocNoName, // 215
- ocNoName, // 216
- ocNoName, // 217
- ocNoName, // 218
- ocNoName, // 219
- ocNoName, // 220
- ocNoName, // 221
- ocNoName, // 222
- ocNoName, // 223
- ocNoName, // 224
- ocNoName, // 225
- ocNoName, // 226
- ocNoName, // 227
- ocNoName, // 228
- ocNoName, // 229
- ocNoName, // 230
- ocNoName, // 231
- ocNoName, // 232
- ocNoName, // 233
- ocNoName, // 234
- ocNoName, // 235
- ocNoName, // 236
- ocNoName, // 237
- ocNoName, // 238
- ocNoName, // 239
- ocNoName, // 240
- ocNoName, // 241
- ocNoName, // 242
- ocNoName, // 243
- ocNoName, // 244
- ocNoName, // 245
- ocNoName, // 246
- ocNoName, // 247
- ocNoName, // 248
- ocNoName, // 249
- ocNoName, // 250
- ocNoName, // 251
- ocNoName, // 252
- ocNoName, // 253
- ocNoName, // 254
- ocNoName // 255 ?
+ { // Code Bezeichnung
+ ocPush, // 0 8-Byte-IEEE-Float
+ ocPush, // 1 Variable
+ ocPush, // 2 Bereich
+ ocPush, // 3 return
+ ocPush, // 4 Klammer
+ ocPush, // 5 2-Byte-Integer
+ ocPush, // 6 ASCII-String
+ ocPush, // 7 NOP
+ ocNegSub, // 8 Negation
+ ocAdd, // 9 Addition
+ ocSub, // 10 Subtraktion
+ ocMul, // 11 Multiplikation
+ ocDiv, // 12 Division
+ ocPow, // 13 Potenzierung
+ ocEqual, // 14 Gleichheit
+ ocNotEqual, // 15 Ungleich
+ ocLessEqual, // 16 Kleiner-gleich
+ ocGreaterEqual, // 17 Groesser-gleich
+ ocLess, // 18 Kleiner
+ ocGreater, // 19 Groesser
+ ocAnd, // 20 And (logisch)
+ ocOr, // 21 Or (logisch)
+ ocNot, // 22 Not (logisch)
+ ocPush, // 23 unaeres Plus
+ ocNoName, // 24
+ ocNoName, // 25
+ ocNoName, // 26
+ ocNoName, // 27
+ ocNoName, // 28
+ ocNoName, // 29
+ ocNoName, // 30
+ ocNotAvail, // 31 Not available
+ ocNoName, // 32 Error
+ ocAbs, // 33 Betrag ABS()
+ ocInt, // 34 Ganzzahl INT()
+ ocSqrt, // 35 Quadratwurzel
+ ocLog10, // 36 Zehnerlogarithmus
+ ocLn, // 37 Natuerlicher Logarithmus
+ ocPi, // 38 PI
+ ocSin, // 39 Sinus
+ ocCos, // 40 Cosinus
+ ocTan, // 41 Tangens
+ ocArcTan2, // 42 Arcus-Tangens 2 (4.Quadrant)
+ ocArcTan, // 43 Arcus-Tangens (2.Quadrant)
+ ocArcSin, // 44 Arcus-Sinus
+ ocArcCos, // 45 Arcus-Cosinus
+ ocExp, // 46 Exponentialfunktion
+ ocMod, // 47 Modulo
+ ocChose, // 48 Auswahl
+ ocIsNA, // 49 Is not available?
+ ocIsError, // 50 Is Error?
+ ocFalse, // 51 FALSE
+ ocTrue, // 52 TRUE
+ ocRandom, // 53 Zufallszahl
+ ocGetDate, // 54 Datum
+ ocGetActDate, // 55 Heute
+ ocRMZ, // 56 Payment
+ ocBW, // 57 Present Value
+ ocZW, // 58 Future Value
+ ocIf, // 59 If ... then ... else ...
+ ocGetDay, // 60 Tag des Monats
+ ocGetMonth, // 61 Monat
+ ocGetYear, // 62 Jahr
+ ocRound, // 63 Runden
+ ocGetTime, // 64 Zeit
+ ocGetHour, // 65 Stunde
+ ocGetMin, // 66 Minute
+ ocGetSec, // 67 Sekunde
+ ocIsValue, // 68 Ist Zahl?
+ ocIsString, // 69 Ist Text?
+ ocLen, // 70 Len()
+ ocValue, // 71 Val()
+ ocFixed, // 72 String() ocFixed ersatzweise + Spezialfall
+ ocMid, // 73 Mid()
+ ocChar, // 74 Char()
+ ocCode, // 75 Ascii()
+ ocFind, // 76 Find()
+ ocGetDateValue, // 77 Datevalue
+ ocGetTimeValue, // 78 Timevalue
+ ocNoName, // 79 Cellpointer
+ ocSum, // 80 Sum()
+ ocAverage, // 81 Avg()
+ ocCount, // 82 Cnt()
+ ocMin, // 83 Min()
+ ocMax, // 84 Max()
+ ocVLookup, // 85 Vlookup()
+ ocNPV, // 86 Npv()
+ ocVar, // 87 Var()
+ ocNormDist, // 88 Std()
+ ocIRR, // 89 Irr()
+ ocHLookup, // 90 Hlookup()
+ ocDBSum, // 91 XlfDsum
+ ocDBAverage, // 92 XlfDaverage
+ ocDBCount, // 93 XlfDcount
+ ocDBMin, // 94 XlfDmin
+ ocDBMax, // 95 XlfDmax
+ ocDBVar, // 96 XlfDvar
+ ocDBStdDev, // 97 XlfDstdev
+ ocIndex, // 98 Index()
+ ocColumns, // 99 Cols()
+ ocRows, // 100 Rows()
+ ocRept, // 101 Repeat()
+ ocUpper, // 102 Upper()
+ ocLower, // 103 Lower()
+ ocLeft, // 104 Left()
+ ocRight, // 105 Right()
+ ocReplace, // 106 Replace()
+ ocPropper, // 107 Proper()
+ ocNoName, // 108 Cell()
+ ocTrim, // 109 Trim()
+ ocClean, // 110 Clean()
+ ocFalse, // 111 F()
+ ocTrue, // 112 W()
+ ocExact, // 113 Exact()
+ ocNoName, // 114 Call()
+ ocIndirect, // 115 @@()
+ ocZins, // 116 Rate()
+ ocNoName, // 117 Term()
+ ocNoName, // 118 Cterm()
+ ocLIA, // 119 Sln()
+ ocDIA, // 120 Syd(), Soy()
+ ocGDA, // 121 Ddb()
+ ocNoName, // 122
+ ocNoName, // 123
+ ocNoName, // 124
+ ocNoName, // 125
+ ocNoName, // 126
+ ocNoName, // 127
+ ocNoName, // 128
+ ocNoName, // 129
+ ocNoName, // 130
+ ocNoName, // 131
+ ocNoName, // 132
+ ocNoName, // 133
+ ocNoName, // 134
+ ocNoName, // 135
+ ocNoName, // 136
+ ocNoName, // 137
+ ocNoName, // 138
+ ocNoName, // 139
+ ocNoName, // 140
+ ocNoName, // 141
+ ocNoName, // 142
+ ocNoName, // 143
+ ocNoName, // 144
+ ocNoName, // 145
+ ocNoName, // 146
+ ocNoName, // 147
+ ocNoName, // 148
+ ocNoName, // 149
+ ocNoName, // 150
+ ocNoName, // 151
+ ocNoName, // 152
+ ocNoName, // 153
+ ocNoName, // 154
+ ocNoName, // 155
+ ocNoName, // 156 ?
+ ocNoName, // 157
+ ocNoName, // 158
+ ocNoName, // 159
+ ocNoName, // 160
+ ocNoName, // 161
+ ocNoName, // 162
+ ocNoName, // 163
+ ocNoName, // 164
+ ocNoName, // 165
+ ocNoName, // 166
+ ocNoName, // 167
+ ocNoName, // 168
+ ocNoName, // 169
+ ocNoName, // 170
+ ocNoName, // 171
+ ocNoName, // 172
+ ocNoName, // 173
+ ocNoName, // 174
+ ocNoName, // 175
+ ocNoName, // 176
+ ocNoName, // 177
+ ocNoName, // 178
+ ocNoName, // 179
+ ocNoName, // 180
+ ocNoName, // 181
+ ocNoName, // 182
+ ocNoName, // 183
+ ocNoName, // 184
+ ocNoName, // 185
+ ocNoName, // 186
+ ocNoName, // 187
+ ocNoName, // 188
+ ocNoName, // 189
+ ocNoName, // 190
+ ocNoName, // 191
+ ocNoName, // 192
+ ocNoName, // 193
+ ocNoName, // 194
+ ocNoName, // 195
+ ocNoName, // 196
+ ocNoName, // 197
+ ocNoName, // 198
+ ocNoName, // 199
+ ocNoName, // 200
+ ocNoName, // 201
+ ocNoName, // 202
+ ocNoName, // 203
+ ocNoName, // 204
+ ocNoName, // 205
+ ocNoName, // 206 ?
+ ocNoName, // 207
+ ocNoName, // 208
+ ocNoName, // 209
+ ocNoName, // 210
+ ocNoName, // 211
+ ocNoName, // 212
+ ocNoName, // 213
+ ocNoName, // 214
+ ocNoName, // 215
+ ocNoName, // 216
+ ocNoName, // 217
+ ocNoName, // 218
+ ocNoName, // 219
+ ocNoName, // 220
+ ocNoName, // 221
+ ocNoName, // 222
+ ocNoName, // 223
+ ocNoName, // 224
+ ocNoName, // 225
+ ocNoName, // 226
+ ocNoName, // 227
+ ocNoName, // 228
+ ocNoName, // 229
+ ocNoName, // 230
+ ocNoName, // 231
+ ocNoName, // 232
+ ocNoName, // 233
+ ocNoName, // 234
+ ocNoName, // 235
+ ocNoName, // 236
+ ocNoName, // 237
+ ocNoName, // 238
+ ocNoName, // 239
+ ocNoName, // 240
+ ocNoName, // 241
+ ocNoName, // 242
+ ocNoName, // 243
+ ocNoName, // 244
+ ocNoName, // 245
+ ocNoName, // 246
+ ocNoName, // 247
+ ocNoName, // 248
+ ocNoName, // 249
+ ocNoName, // 250
+ ocNoName, // 251
+ ocNoName, // 252
+ ocNoName, // 253
+ ocNoName, // 254
+ ocNoName // 255 ?
};
return pToken[ nIndex ];
@@ -1200,263 +1200,263 @@ DefTokenId LotusToSc::IndexToToken( BYTE nIndex )
FUNC_TYPE LotusToSc::IndexToTypeWK123( BYTE nIndex )
{
static const FUNC_TYPE pType[ 256 ] =
- { // Code Bezeichnung
- FT_Const10Float, // 0 8-Byte-IEEE-Long-Number
- FT_Cref, // 1 Cell Reference
- FT_Rref, // 2 Area Reference
- FT_Return, // 3 return
- FT_Braces, // 4 Klammer
- FT_Snum, // 5 Short-Number
- FT_ConstString, // 6 ASCII-String
- FT_Nrref, // 7 Named range reference
- FT_Absnref, // 8 Absolut named range
- FT_Erref, // 9 Err range reference
- FT_Ecref, // 10 Err cell reference
- FT_Econstant, // 11 Err constant
- FT_NotImpl, // 12
- FT_NotImpl, // 13
- FT_Neg, // 14 Negation
- FT_Op, // 15 Addition
- FT_Op, // 16 Subtraktion
- FT_Op, // 17 Multiplikation
- FT_Op, // 18 Division
- FT_Op, // 19 Potenzierung
- FT_Op, // 20 Gleichheit
- FT_Op, // 21 Ungleich
- FT_Op, // 22 Kleiner-gleich
- FT_Op, // 23 Groesser-gleich
- FT_Op, // 24 Kleiner
- FT_Op, // 25 Groesser
- FT_Op, // 26 And (logisch)
- FT_Op, // 27 Or (logisch)
- FT_FuncFix1, // 28 Not (logisch)
- FT_NOP, // 29 unaeres Plus
- FT_Op, // 30 Concatenation
- FT_FuncFix0, // 31 Not applicable
- FT_FuncFix0, // 32 Error
- FT_FuncFix1, // 33 Betrag ABS()
- FT_FuncFix1, // 34 Ganzzahl INT()
- FT_FuncFix1, // 35 Quadratwurzel
- FT_FuncFix1, // 36 Zehnerlogarithmus
- FT_FuncFix1, // 37 Natuerlicher Logarithmus
- FT_FuncFix0, // 38 PI
- FT_FuncFix1, // 39 Sinus
- FT_FuncFix1, // 40 Cosinus
- FT_FuncFix1, // 41 Tangens
- FT_FuncFix2, // 42 Arcus-Tangens 2 (4.Quadrant)
- FT_FuncFix1, // 43 Arcus-Tangens (2.Quadrant)
- FT_FuncFix1, // 44 Arcus-Sinus
- FT_FuncFix1, // 45 Arcus-Cosinus
- FT_FuncFix1, // 46 Exponentialfunktion
- FT_FuncFix2, // 47 Modulo
- FT_FuncVar, // 48 Auswahl
- FT_FuncFix1, // 49 Is not applicable?
- FT_FuncFix1, // 50 Is Error?
- FT_FuncFix0, // 51 FALSE
- FT_FuncFix0, // 52 TRUE
- FT_FuncFix0, // 53 Zufallszahl
- FT_FuncFix3, // 54 Datum
- FT_FuncFix0, // 55 Heute
- FT_FuncFix3, // 56 Payment
- FT_FuncFix3, // 57 Present Value
- FT_FuncFix3, // 58 Future Value
- FT_FuncFix3, // 59 If ... then ... else ...
- FT_FuncFix1, // 60 Tag des Monats
- FT_FuncFix1, // 61 Monat
- FT_FuncFix1, // 62 Jahr
- FT_FuncFix2, // 63 Runden
- FT_FuncFix3, // 64 Zeit
- FT_FuncFix1, // 65 Stunde
- FT_FuncFix1, // 66 Minute
- FT_FuncFix1, // 67 Sekunde
- FT_FuncFix1, // 68 Ist Zahl?
- FT_FuncFix1, // 69 Ist Text?
- FT_FuncFix1, // 70 Len()
- FT_FuncFix1, // 71 Val()
- FT_FuncFix2, // 72 String()
- FT_FuncFix3, // 73 Mid()
- FT_FuncFix1, // 74 Char()
- FT_FuncFix1, // 75 Ascii()
- FT_FuncFix3, // 76 Find()
- FT_FuncFix1, // 77 Datevalue
- FT_FuncFix1, // 78 Timevalue
- FT_FuncFix1, // 79 Cellpointer
- FT_FuncVar, // 80 Sum()
- FT_FuncVar, // 81 Avg()
- FT_FuncVar, // 82 Cnt()
- FT_FuncVar, // 83 Min()
- FT_FuncVar, // 84 Max()
- FT_FuncFix3, // 85 Vlookup()
- FT_FuncFix2, // 86 Npv()
- FT_FuncVar, // 87 Var()
- FT_FuncVar, // 88 Std()
- FT_FuncFix2, // 89 Irr()
- FT_FuncFix3, // 90 Hlookup()
- FT_FuncVar, // 91 Dsum <-------- neu! -
- FT_FuncVar, // 92 Davg <-------- neu! -
- FT_FuncVar, // 93 Dcnt <-------- neu! -
- FT_FuncVar, // 94 Dmin <-------- neu! -
- FT_FuncVar, // 95 Dmax <-------- neu! -
- FT_FuncVar, // 96 Dvar <-------- neu! -
- FT_FuncVar, // 97 Dstd <-------- neu! -
- FT_FuncVar, // 98 Index() <-------- change! -
- FT_FuncFix1, // 99 Cols() <-------- neu! -
- FT_FuncFix1, // 100 Rows() <-------- neu! -
- FT_FuncFix2, // 101 Repeat() <-------- neu! -
- FT_FuncFix1, // 102 Upper() <-------- neu! -
- FT_FuncFix1, // 103 Lower() <-------- neu! -
- FT_FuncFix2, // 104 Left() <-------- neu! -
- FT_FuncFix2, // 105 Right() <-------- neu! -
- FT_FuncFix4, // 106 Replace() <-------- neu! -
- FT_FuncFix1, // 107 Proper() <-------- neu! -
- FT_FuncFix2, // 108 Cell() <-------- neu! -
- FT_FuncFix1, // 109 Trim() <-------- neu! -
- FT_FuncFix1, // 110 Clean() <-------- neu! -
- FT_FuncFix1, // 111 S() <--------- change in Bez. -
- FT_FuncFix1, // 112 N() <--------- change in Bez. -
- FT_FuncFix2, // 113 Exact() <-------- neu! -
- FT_NotImpl, // 114 App <--------- change in Bez. -
- FT_FuncFix1, // 115 @@() <-------- neu! -
- FT_FuncFix3, // 116 Rate() <-------- neu! -
- FT_FuncFix3, // 117 Term() <--------- change in Anz.
- FT_FuncFix3, // 118 Cterm() <--------- change in Anz.
- FT_FuncFix3, // 119 Sln() <-------- neu! -
- FT_FuncFix4, // 120 Syd() <-------- neu! -
- FT_FuncFix4, // 121 Ddb() <-------- neu! -
- FT_Splfunc, // 122 Splfunc <-------- neu! -
- FT_FuncFix1, // 123 Sheets <-------- neu! -
- FT_FuncFix1, // 124 Info <-------- neu! -
- FT_FuncVar, // 125 Sumproduct <-------- neu! -
- FT_FuncFix1, // 126 Isrange <-------- neu! -
- FT_FuncVar, // 127 Dget <-------- neu! -
- FT_FuncVar, // 128 Dquery <-------- neu! -
- FT_FuncFix4, // 129 Coord <-------- neu! -
- FT_NOP, // 130 Reserved (internal) <-------- neu! -
- FT_FuncFix0, // 131 Today <-------- neu! -
- FT_FuncVar, // 132 Vdb <-------- neu! -
- FT_FuncVar, // 133 Dvars <-------- neu! -
- FT_FuncVar, // 134 Dstds <-------- neu! -
- FT_FuncVar, // 135 Vars <-------- neu! -
- FT_FuncVar, // 136 Stds <-------- neu! -
- FT_FuncFix2, // 137 D360 <-------- neu! -
- FT_NOP, // 138 Reserved (internal) <-------- neu! -
- FT_FuncFix0, // 139 Isapp <-------- neu! - Anzahl ? -
- FT_FuncVar, // 140 Isaaf <-------- neu! - Anzahl ? -
- FT_FuncFix1, // 141 Weekday <-------- neu! -
- FT_FuncFix3, // 142 Datedif <-------- neu! -
- FT_FuncVar, // 143 Rank <-------- neu! -
- FT_FuncFix2, // 144 Numberstring <-------- neu! -
- FT_FuncFix1, // 145 Datestring <-------- neu! -
- FT_FuncFix1, // 146 Decimal <-------- neu! -
- FT_FuncFix1, // 147 Hex <-------- neu! -
- FT_FuncFix4, // 148 Db <-------- neu! -
- FT_FuncFix4, // 149 Pmti <-------- neu! -
- FT_FuncFix4, // 150 Spi <-------- neu! -
- FT_FuncFix1, // 151 Fullp <-------- neu! -
- FT_FuncFix1, // 152 Halfp <-------- neu! -
- FT_FuncVar, // 153 Pureavg <-------- neu! -
- FT_FuncVar, // 154 Purecount <-------- neu! -
- FT_FuncVar, // 155 Puremax <-------- neu! -
- FT_FuncVar, // 156 Puremin <-------- neu! -
- FT_FuncVar, // 157 Purestd <-------- neu! -
- FT_FuncVar, // 158 Purevar <-------- neu! -
- FT_FuncVar, // 159 Purestds <-------- neu! -
- FT_FuncVar, // 160 Purevars <-------- neu! -
- FT_FuncFix3, // 161 Pmt2 <-------- neu! -
- FT_FuncFix3, // 162 Pv2 <-------- neu! -
- FT_FuncFix3, // 163 Fv2 <-------- neu! -
- FT_FuncFix3, // 164 Term2 <-------- neu! -
- FT_NotImpl, // 165 --- <-------- neu! - Anzahl ? -
- FT_FuncFix2, // 166 D360 (US-Version)
- FT_NotImpl, // 167
- FT_NotImpl, // 168
- FT_NotImpl, // 169
- FT_NotImpl, // 170
- FT_NotImpl, // 171
- FT_NotImpl, // 172
- FT_NotImpl, // 173
- FT_NotImpl, // 174
- FT_NotImpl, // 175
- FT_NotImpl, // 176
- FT_NotImpl, // 177
- FT_NotImpl, // 178
- FT_NotImpl, // 179
- FT_NotImpl, // 180
- FT_NotImpl, // 181
- FT_NotImpl, // 182
- FT_NotImpl, // 183
- FT_NotImpl, // 184
- FT_NotImpl, // 185
- FT_FuncVar, // 186 Solver <-------- neu! -
- FT_NotImpl, // 187
- FT_NotImpl, // 188
- FT_NotImpl, // 189
- FT_NotImpl, // 190
- FT_NotImpl, // 191
- FT_NotImpl, // 192
- FT_NotImpl, // 193
- FT_NotImpl, // 194
- FT_NotImpl, // 195
- FT_NotImpl, // 196
- FT_NotImpl, // 197
- FT_NotImpl, // 198
- FT_NotImpl, // 199
- FT_NotImpl, // 200
- FT_NotImpl, // 201
- FT_NotImpl, // 202
- FT_NotImpl, // 203
- FT_NotImpl, // 204
- FT_NotImpl, // 205
- FT_NotImpl, // 206
- FT_NotImpl, // 207
- FT_NotImpl, // 208
- FT_NotImpl, // 209
- FT_NotImpl, // 210
- FT_NotImpl, // 211
- FT_NotImpl, // 212
- FT_NotImpl, // 213
- FT_NotImpl, // 214
- FT_NotImpl, // 215
- FT_NotImpl, // 216
- FT_NotImpl, // 217
- FT_NotImpl, // 218
- FT_NotImpl, // 219
- FT_NotImpl, // 220
- FT_NotImpl, // 221
- FT_NotImpl, // 222
- FT_NotImpl, // 223
- FT_NotImpl, // 224
- FT_NotImpl, // 225
- FT_NotImpl, // 226
- FT_NotImpl, // 227
- FT_NotImpl, // 228
- FT_NotImpl, // 229
- FT_NotImpl, // 230
- FT_NotImpl, // 231
- FT_NotImpl, // 232
- FT_NotImpl, // 233
- FT_NotImpl, // 234
- FT_NotImpl, // 235
- FT_NotImpl, // 236
- FT_NotImpl, // 237
- FT_NotImpl, // 238
- FT_NotImpl, // 239
- FT_NotImpl, // 240
- FT_NotImpl, // 241
- FT_NotImpl, // 242
- FT_NotImpl, // 243
- FT_NotImpl, // 244
- FT_NotImpl, // 245
- FT_NotImpl, // 246
- FT_NotImpl, // 247
- FT_NotImpl, // 248
- FT_NotImpl, // 249
- FT_NotImpl, // 250
- FT_NotImpl, // 251
- FT_NotImpl, // 252
- FT_NotImpl, // 253
- FT_NotImpl, // 254
- FT_NotImpl, // 255
+ { // Code Bezeichnung
+ FT_Const10Float, // 0 8-Byte-IEEE-Long-Number
+ FT_Cref, // 1 Cell Reference
+ FT_Rref, // 2 Area Reference
+ FT_Return, // 3 return
+ FT_Braces, // 4 Klammer
+ FT_Snum, // 5 Short-Number
+ FT_ConstString, // 6 ASCII-String
+ FT_Nrref, // 7 Named range reference
+ FT_Absnref, // 8 Absolut named range
+ FT_Erref, // 9 Err range reference
+ FT_Ecref, // 10 Err cell reference
+ FT_Econstant, // 11 Err constant
+ FT_NotImpl, // 12
+ FT_NotImpl, // 13
+ FT_Neg, // 14 Negation
+ FT_Op, // 15 Addition
+ FT_Op, // 16 Subtraktion
+ FT_Op, // 17 Multiplikation
+ FT_Op, // 18 Division
+ FT_Op, // 19 Potenzierung
+ FT_Op, // 20 Gleichheit
+ FT_Op, // 21 Ungleich
+ FT_Op, // 22 Kleiner-gleich
+ FT_Op, // 23 Groesser-gleich
+ FT_Op, // 24 Kleiner
+ FT_Op, // 25 Groesser
+ FT_Op, // 26 And (logisch)
+ FT_Op, // 27 Or (logisch)
+ FT_FuncFix1, // 28 Not (logisch)
+ FT_NOP, // 29 unaeres Plus
+ FT_Op, // 30 Concatenation
+ FT_FuncFix0, // 31 Not applicable
+ FT_FuncFix0, // 32 Error
+ FT_FuncFix1, // 33 Betrag ABS()
+ FT_FuncFix1, // 34 Ganzzahl INT()
+ FT_FuncFix1, // 35 Quadratwurzel
+ FT_FuncFix1, // 36 Zehnerlogarithmus
+ FT_FuncFix1, // 37 Natuerlicher Logarithmus
+ FT_FuncFix0, // 38 PI
+ FT_FuncFix1, // 39 Sinus
+ FT_FuncFix1, // 40 Cosinus
+ FT_FuncFix1, // 41 Tangens
+ FT_FuncFix2, // 42 Arcus-Tangens 2 (4.Quadrant)
+ FT_FuncFix1, // 43 Arcus-Tangens (2.Quadrant)
+ FT_FuncFix1, // 44 Arcus-Sinus
+ FT_FuncFix1, // 45 Arcus-Cosinus
+ FT_FuncFix1, // 46 Exponentialfunktion
+ FT_FuncFix2, // 47 Modulo
+ FT_FuncVar, // 48 Auswahl
+ FT_FuncFix1, // 49 Is not applicable?
+ FT_FuncFix1, // 50 Is Error?
+ FT_FuncFix0, // 51 FALSE
+ FT_FuncFix0, // 52 TRUE
+ FT_FuncFix0, // 53 Zufallszahl
+ FT_FuncFix3, // 54 Datum
+ FT_FuncFix0, // 55 Heute
+ FT_FuncFix3, // 56 Payment
+ FT_FuncFix3, // 57 Present Value
+ FT_FuncFix3, // 58 Future Value
+ FT_FuncFix3, // 59 If ... then ... else ...
+ FT_FuncFix1, // 60 Tag des Monats
+ FT_FuncFix1, // 61 Monat
+ FT_FuncFix1, // 62 Jahr
+ FT_FuncFix2, // 63 Runden
+ FT_FuncFix3, // 64 Zeit
+ FT_FuncFix1, // 65 Stunde
+ FT_FuncFix1, // 66 Minute
+ FT_FuncFix1, // 67 Sekunde
+ FT_FuncFix1, // 68 Ist Zahl?
+ FT_FuncFix1, // 69 Ist Text?
+ FT_FuncFix1, // 70 Len()
+ FT_FuncFix1, // 71 Val()
+ FT_FuncFix2, // 72 String()
+ FT_FuncFix3, // 73 Mid()
+ FT_FuncFix1, // 74 Char()
+ FT_FuncFix1, // 75 Ascii()
+ FT_FuncFix3, // 76 Find()
+ FT_FuncFix1, // 77 Datevalue
+ FT_FuncFix1, // 78 Timevalue
+ FT_FuncFix1, // 79 Cellpointer
+ FT_FuncVar, // 80 Sum()
+ FT_FuncVar, // 81 Avg()
+ FT_FuncVar, // 82 Cnt()
+ FT_FuncVar, // 83 Min()
+ FT_FuncVar, // 84 Max()
+ FT_FuncFix3, // 85 Vlookup()
+ FT_FuncFix2, // 86 Npv()
+ FT_FuncVar, // 87 Var()
+ FT_FuncVar, // 88 Std()
+ FT_FuncFix2, // 89 Irr()
+ FT_FuncFix3, // 90 Hlookup()
+ FT_FuncVar, // 91 Dsum <-------- neu! -
+ FT_FuncVar, // 92 Davg <-------- neu! -
+ FT_FuncVar, // 93 Dcnt <-------- neu! -
+ FT_FuncVar, // 94 Dmin <-------- neu! -
+ FT_FuncVar, // 95 Dmax <-------- neu! -
+ FT_FuncVar, // 96 Dvar <-------- neu! -
+ FT_FuncVar, // 97 Dstd <-------- neu! -
+ FT_FuncVar, // 98 Index() <-------- change! -
+ FT_FuncFix1, // 99 Cols() <-------- neu! -
+ FT_FuncFix1, // 100 Rows() <-------- neu! -
+ FT_FuncFix2, // 101 Repeat() <-------- neu! -
+ FT_FuncFix1, // 102 Upper() <-------- neu! -
+ FT_FuncFix1, // 103 Lower() <-------- neu! -
+ FT_FuncFix2, // 104 Left() <-------- neu! -
+ FT_FuncFix2, // 105 Right() <-------- neu! -
+ FT_FuncFix4, // 106 Replace() <-------- neu! -
+ FT_FuncFix1, // 107 Proper() <-------- neu! -
+ FT_FuncFix2, // 108 Cell() <-------- neu! -
+ FT_FuncFix1, // 109 Trim() <-------- neu! -
+ FT_FuncFix1, // 110 Clean() <-------- neu! -
+ FT_FuncFix1, // 111 S() <--------- change in Bez. -
+ FT_FuncFix1, // 112 N() <--------- change in Bez. -
+ FT_FuncFix2, // 113 Exact() <-------- neu! -
+ FT_NotImpl, // 114 App <--------- change in Bez. -
+ FT_FuncFix1, // 115 @@() <-------- neu! -
+ FT_FuncFix3, // 116 Rate() <-------- neu! -
+ FT_FuncFix3, // 117 Term() <--------- change in Anz.
+ FT_FuncFix3, // 118 Cterm() <--------- change in Anz.
+ FT_FuncFix3, // 119 Sln() <-------- neu! -
+ FT_FuncFix4, // 120 Syd() <-------- neu! -
+ FT_FuncFix4, // 121 Ddb() <-------- neu! -
+ FT_Splfunc, // 122 Splfunc <-------- neu! -
+ FT_FuncFix1, // 123 Sheets <-------- neu! -
+ FT_FuncFix1, // 124 Info <-------- neu! -
+ FT_FuncVar, // 125 Sumproduct <-------- neu! -
+ FT_FuncFix1, // 126 Isrange <-------- neu! -
+ FT_FuncVar, // 127 Dget <-------- neu! -
+ FT_FuncVar, // 128 Dquery <-------- neu! -
+ FT_FuncFix4, // 129 Coord <-------- neu! -
+ FT_NOP, // 130 Reserved (internal) <-------- neu! -
+ FT_FuncFix0, // 131 Today <-------- neu! -
+ FT_FuncVar, // 132 Vdb <-------- neu! -
+ FT_FuncVar, // 133 Dvars <-------- neu! -
+ FT_FuncVar, // 134 Dstds <-------- neu! -
+ FT_FuncVar, // 135 Vars <-------- neu! -
+ FT_FuncVar, // 136 Stds <-------- neu! -
+ FT_FuncFix2, // 137 D360 <-------- neu! -
+ FT_NOP, // 138 Reserved (internal) <-------- neu! -
+ FT_FuncFix0, // 139 Isapp <-------- neu! - Anzahl ? -
+ FT_FuncVar, // 140 Isaaf <-------- neu! - Anzahl ? -
+ FT_FuncFix1, // 141 Weekday <-------- neu! -
+ FT_FuncFix3, // 142 Datedif <-------- neu! -
+ FT_FuncVar, // 143 Rank <-------- neu! -
+ FT_FuncFix2, // 144 Numberstring <-------- neu! -
+ FT_FuncFix1, // 145 Datestring <-------- neu! -
+ FT_FuncFix1, // 146 Decimal <-------- neu! -
+ FT_FuncFix1, // 147 Hex <-------- neu! -
+ FT_FuncFix4, // 148 Db <-------- neu! -
+ FT_FuncFix4, // 149 Pmti <-------- neu! -
+ FT_FuncFix4, // 150 Spi <-------- neu! -
+ FT_FuncFix1, // 151 Fullp <-------- neu! -
+ FT_FuncFix1, // 152 Halfp <-------- neu! -
+ FT_FuncVar, // 153 Pureavg <-------- neu! -
+ FT_FuncVar, // 154 Purecount <-------- neu! -
+ FT_FuncVar, // 155 Puremax <-------- neu! -
+ FT_FuncVar, // 156 Puremin <-------- neu! -
+ FT_FuncVar, // 157 Purestd <-------- neu! -
+ FT_FuncVar, // 158 Purevar <-------- neu! -
+ FT_FuncVar, // 159 Purestds <-------- neu! -
+ FT_FuncVar, // 160 Purevars <-------- neu! -
+ FT_FuncFix3, // 161 Pmt2 <-------- neu! -
+ FT_FuncFix3, // 162 Pv2 <-------- neu! -
+ FT_FuncFix3, // 163 Fv2 <-------- neu! -
+ FT_FuncFix3, // 164 Term2 <-------- neu! -
+ FT_NotImpl, // 165 --- <-------- neu! - Anzahl ? -
+ FT_FuncFix2, // 166 D360 (US-Version)
+ FT_NotImpl, // 167
+ FT_NotImpl, // 168
+ FT_NotImpl, // 169
+ FT_NotImpl, // 170
+ FT_NotImpl, // 171
+ FT_NotImpl, // 172
+ FT_NotImpl, // 173
+ FT_NotImpl, // 174
+ FT_NotImpl, // 175
+ FT_NotImpl, // 176
+ FT_NotImpl, // 177
+ FT_NotImpl, // 178
+ FT_NotImpl, // 179
+ FT_NotImpl, // 180
+ FT_NotImpl, // 181
+ FT_NotImpl, // 182
+ FT_NotImpl, // 183
+ FT_NotImpl, // 184
+ FT_NotImpl, // 185
+ FT_FuncVar, // 186 Solver <-------- neu! -
+ FT_NotImpl, // 187
+ FT_NotImpl, // 188
+ FT_NotImpl, // 189
+ FT_NotImpl, // 190
+ FT_NotImpl, // 191
+ FT_NotImpl, // 192
+ FT_NotImpl, // 193
+ FT_NotImpl, // 194
+ FT_NotImpl, // 195
+ FT_NotImpl, // 196
+ FT_NotImpl, // 197
+ FT_NotImpl, // 198
+ FT_NotImpl, // 199
+ FT_NotImpl, // 200
+ FT_NotImpl, // 201
+ FT_NotImpl, // 202
+ FT_NotImpl, // 203
+ FT_NotImpl, // 204
+ FT_NotImpl, // 205
+ FT_NotImpl, // 206
+ FT_NotImpl, // 207
+ FT_NotImpl, // 208
+ FT_NotImpl, // 209
+ FT_NotImpl, // 210
+ FT_NotImpl, // 211
+ FT_NotImpl, // 212
+ FT_NotImpl, // 213
+ FT_NotImpl, // 214
+ FT_NotImpl, // 215
+ FT_NotImpl, // 216
+ FT_NotImpl, // 217
+ FT_NotImpl, // 218
+ FT_NotImpl, // 219
+ FT_NotImpl, // 220
+ FT_NotImpl, // 221
+ FT_NotImpl, // 222
+ FT_NotImpl, // 223
+ FT_NotImpl, // 224
+ FT_NotImpl, // 225
+ FT_NotImpl, // 226
+ FT_NotImpl, // 227
+ FT_NotImpl, // 228
+ FT_NotImpl, // 229
+ FT_NotImpl, // 230
+ FT_NotImpl, // 231
+ FT_NotImpl, // 232
+ FT_NotImpl, // 233
+ FT_NotImpl, // 234
+ FT_NotImpl, // 235
+ FT_NotImpl, // 236
+ FT_NotImpl, // 237
+ FT_NotImpl, // 238
+ FT_NotImpl, // 239
+ FT_NotImpl, // 240
+ FT_NotImpl, // 241
+ FT_NotImpl, // 242
+ FT_NotImpl, // 243
+ FT_NotImpl, // 244
+ FT_NotImpl, // 245
+ FT_NotImpl, // 246
+ FT_NotImpl, // 247
+ FT_NotImpl, // 248
+ FT_NotImpl, // 249
+ FT_NotImpl, // 250
+ FT_NotImpl, // 251
+ FT_NotImpl, // 252
+ FT_NotImpl, // 253
+ FT_NotImpl, // 254
+ FT_NotImpl, // 255
};
return pType[ nIndex ];
}
@@ -1465,263 +1465,263 @@ FUNC_TYPE LotusToSc::IndexToTypeWK123( BYTE nIndex )
DefTokenId LotusToSc::IndexToTokenWK123( BYTE nIndex )
{
static const DefTokenId pToken[ 256 ] =
- { // Code Bezeichnung
- ocPush, // 0 8-Byte-IEEE-Long-Numbers
- ocPush, // 1 Variable
- ocPush, // 2 Bereich
- ocPush, // 3 return
- ocPush, // 4 Klammer
- ocPush, // 5 Numbers
- ocPush, // 6 ASCII-String
- ocPush, // 7 Named range reference
- ocPush, // 8 Absolut named range
- ocPush, // 9 Err range reference
- ocPush, // 10 Err cell reference
- ocPush, // 11 Err constant
- ocPush, // 12
- ocPush, // 13
- ocNegSub, // 14 Negation
- ocAdd, // 15 Addition
- ocSub, // 16 Subtraktion
- ocMul, // 17 Multiplikation
- ocDiv, // 18 Division
- ocPow, // 19 Potenzierung
- ocEqual, // 20 Gleichheit
- ocNotEqual, // 21 Ungleich
- ocLessEqual, // 22 Kleiner-gleich
- ocGreaterEqual, // 23 Groesser-gleich
- ocLess, // 24 Kleiner
- ocGreater, // 25 Groesser
- ocAnd, // 26 And (logisch)
- ocOr, // 27 Or (logisch)
- ocNot, // 28 Not (logisch)
- ocPush, // 29 unaeres Plus
- ocAmpersand, // 30 Concatenation
- ocNotAvail, // 31 Not available
- ocNoName, // 32 Error
- ocAbs, // 33 Betrag ABS()
- ocInt, // 34 Ganzzahl INT()
- ocSqrt, // 35 Quadratwurzel
- ocLog10, // 36 Zehnerlogarithmus
- ocLn, // 37 Natuerlicher Logarithmus
- ocPi, // 38 PI
- ocSin, // 39 Sinus
- ocCos, // 40 Cosinus
- ocTan, // 41 Tangens
- ocArcTan2, // 42 Arcus-Tangens 2 (4.Quadrant)
- ocArcTan, // 43 Arcus-Tangens (2.Quadrant)
- ocArcSin, // 44 Arcus-Sinus
- ocArcCos, // 45 Arcus-Cosinus
- ocExp, // 46 Exponentialfunktion
- ocMod, // 47 Modulo
- ocChose, // 48 Auswahl
- ocIsNA, // 49 Is not available?
- ocIsError, // 50 Is Error?
- ocFalse, // 51 FALSE
- ocTrue, // 52 TRUE
- ocRandom, // 53 Zufallszahl
- ocGetDate, // 54 Datum
- ocGetActDate, // 55 Heute
- ocRMZ, // 56 Payment
- ocBW, // 57 Present Value
- ocZW, // 58 Future Value
- ocIf, // 59 If ... then ... else ...
- ocGetDay, // 60 Tag des Monats
- ocGetMonth, // 61 Monat
- ocGetYear, // 62 Jahr
- ocRound, // 63 Runden
- ocGetTime, // 64 Zeit
- ocGetHour, // 65 Stunde
- ocGetMin, // 66 Minute
- ocGetSec, // 67 Sekunde
- ocIsValue, // 68 Ist Zahl?
- ocIsString, // 69 Ist Text?
- ocLen, // 70 Len()
- ocValue, // 71 Val()
- ocFixed, // 72 String() ocFixed ersatzweise + Spezialfall
- ocMid, // 73 Mid()
- ocChar, // 74 Char()
- ocCode, // 75 Ascii()
- ocFind, // 76 Find()
- ocGetDateValue, // 77 Datevalue
- ocGetTimeValue, // 78 Timevalue
- ocNoName, // 79 Cellpointer
- ocSum, // 80 Sum()
- ocAverage, // 81 Avg()
- ocCount, // 82 Cnt()
- ocMin, // 83 Min()
- ocMax, // 84 Max()
- ocVLookup, // 85 Vlookup()
- ocNPV, // 86 Npv()
- ocVar, // 87 Var()
- ocStDev, // 88 Std()
- ocIRR, // 89 Irr()
- ocHLookup, // 90 Hlookup()
- ocDBSum, // 91 XlfDsum
- ocDBAverage, // 92 XlfDaverage
- ocDBCount, // 93 XlfDcount
- ocDBMin, // 94 XlfDmin
- ocDBMax, // 95 XlfDmax
- ocDBVar, // 96 XlfDvar
- ocDBStdDev, // 97 XlfDstdev
- ocIndex, // 98 Index()
- ocColumns, // 99 Cols()
- ocRows, // 100 Rows()
- ocRept, // 101 Repeat()
- ocUpper, // 102 Upper()
- ocLower, // 103 Lower()
- ocLeft, // 104 Left()
- ocRight, // 105 Right()
- ocReplace, // 106 Replace()
- ocPropper, // 107 Proper()
- ocNoName, // 108 Cell()
- ocTrim, // 109 Trim()
- ocClean, // 110 Clean()
- ocNoName, // 111 F() (Excel: T()?)
- ocNoName, // 112 W()
- ocExact, // 113 Exact()
- ocNoName, // 114 Call()
- ocIndirect, // 115 @@()
- ocZins, // 116 Rate()
- ocNoName, // 117 Term()
- ocNoName, // 118 Cterm()
- ocLIA, // 119 Sln()
- ocDIA, // 120 Syd(), Soy()
- ocGDA, // 121 Ddb()
- ocNoName, // 122 Splfunc
- ocNoName, // 123 Sheets
- ocNoName, // 124 Info
- ocSumProduct, // 125 Sumproduct
- ocNoName, // 126 Isrange
- ocDBGet, // 127 Dget
- ocNoName, // 128 Dquery
- ocNoName, // 129 Coord
- ocNoName, // 130 Reserved (internal)
- ocGetActDate, // 131 Today
- ocNoName, // 132 Vdb
- ocDBVarP, // 133 Dvars
- ocDBStdDevP, // 134 Dstds
- ocVarP, // 135 Vars
- ocStDevP, // 136 Stds
- ocGetDiffDate360, // 137 D360
- ocNoName, // 138 Reserved (internal)
- ocNoName, // 139 Isapp
- ocNoName, // 140 Isaaf
- ocGetDayOfWeek, // 141 Weekday
- ocGetDiffDate, // 142 Datedif
- ocRank, // 143 Rank
- ocNoName, // 144 Numberstring
- ocNoName, // 145 Datestring
- ocNoName, // 146 Decimal
- ocNoName, // 147 Hex
- ocNoName, // 148 Db
- ocNoName, // 149 Pmti
- ocNoName, // 150 Spi
- ocNoName, // 151 Fullp
- ocNoName, // 152 Halfp
- ocNoName, // 153 Pureavg
- ocCount2, // 154 Purecount
- ocNoName, // 155 Puremax
- ocNoName, // 156 Puremin
- ocNoName, // 157 Purestd
- ocNoName, // 158 Purevar
- ocNoName, // 159 Purestds
- ocNoName, // 160 Purevars
- ocNoName, // 161 Pmt2
- ocNoName, // 162 Pv2
- ocNoName, // 163 Fv2
- ocNoName, // 164 Term2
- ocNoName, // 165 --- <-------- neu! - Anzahl ? -
- ocGetDiffDate360, // 166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
- ocNoName, // 167
- ocNoName, // 168
- ocNoName, // 169
- ocNoName, // 170
- ocNoName, // 171
- ocNoName, // 172
- ocNoName, // 173
- ocNoName, // 174
- ocNoName, // 175
- ocNoName, // 176
- ocNoName, // 177
- ocNoName, // 178
- ocNoName, // 179
- ocNoName, // 180
- ocNoName, // 181
- ocNoName, // 182
- ocNoName, // 183
- ocNoName, // 184
- ocNoName, // 185
- ocNoName, // 186
- ocNoName, // 187
- ocNoName, // 188
- ocNoName, // 189
- ocNoName, // 190
- ocNoName, // 191
- ocNoName, // 192
- ocNoName, // 193
- ocNoName, // 194
- ocNoName, // 195
- ocNoName, // 196
- ocNoName, // 197
- ocNoName, // 198
- ocNoName, // 199
- ocNoName, // 200
- ocNoName, // 201
- ocNoName, // 202
- ocNoName, // 203
- ocNoName, // 204
- ocNoName, // 205
- ocNoName, // 206 ?
- ocNoName, // 207
- ocNoName, // 208
- ocNoName, // 209
- ocNoName, // 210
- ocNoName, // 211
- ocNoName, // 212
- ocNoName, // 213
- ocNoName, // 214
- ocNoName, // 215
- ocNoName, // 216
- ocNoName, // 217
- ocNoName, // 218
- ocNoName, // 219
- ocNoName, // 220
- ocNoName, // 221
- ocNoName, // 222
- ocNoName, // 223
- ocNoName, // 224
- ocNoName, // 225
- ocNoName, // 226
- ocNoName, // 227
- ocNoName, // 228
- ocNoName, // 229
- ocNoName, // 230
- ocNoName, // 231
- ocNoName, // 232
- ocNoName, // 233
- ocNoName, // 234
- ocNoName, // 235
- ocNoName, // 236
- ocNoName, // 237
- ocNoName, // 238
- ocNoName, // 239
- ocNoName, // 240
- ocNoName, // 241
- ocNoName, // 242
- ocNoName, // 243
- ocNoName, // 244
- ocNoName, // 245
- ocNoName, // 246
- ocNoName, // 247
- ocNoName, // 248
- ocNoName, // 249
- ocNoName, // 250
- ocNoName, // 251
- ocNoName, // 252
- ocNoName, // 253
- ocNoName, // 254
- ocNoName // 255 ?
+ { // Code Bezeichnung
+ ocPush, // 0 8-Byte-IEEE-Long-Numbers
+ ocPush, // 1 Variable
+ ocPush, // 2 Bereich
+ ocPush, // 3 return
+ ocPush, // 4 Klammer
+ ocPush, // 5 Numbers
+ ocPush, // 6 ASCII-String
+ ocPush, // 7 Named range reference
+ ocPush, // 8 Absolut named range
+ ocPush, // 9 Err range reference
+ ocPush, // 10 Err cell reference
+ ocPush, // 11 Err constant
+ ocPush, // 12
+ ocPush, // 13
+ ocNegSub, // 14 Negation
+ ocAdd, // 15 Addition
+ ocSub, // 16 Subtraktion
+ ocMul, // 17 Multiplikation
+ ocDiv, // 18 Division
+ ocPow, // 19 Potenzierung
+ ocEqual, // 20 Gleichheit
+ ocNotEqual, // 21 Ungleich
+ ocLessEqual, // 22 Kleiner-gleich
+ ocGreaterEqual, // 23 Groesser-gleich
+ ocLess, // 24 Kleiner
+ ocGreater, // 25 Groesser
+ ocAnd, // 26 And (logisch)
+ ocOr, // 27 Or (logisch)
+ ocNot, // 28 Not (logisch)
+ ocPush, // 29 unaeres Plus
+ ocAmpersand, // 30 Concatenation
+ ocNotAvail, // 31 Not available
+ ocNoName, // 32 Error
+ ocAbs, // 33 Betrag ABS()
+ ocInt, // 34 Ganzzahl INT()
+ ocSqrt, // 35 Quadratwurzel
+ ocLog10, // 36 Zehnerlogarithmus
+ ocLn, // 37 Natuerlicher Logarithmus
+ ocPi, // 38 PI
+ ocSin, // 39 Sinus
+ ocCos, // 40 Cosinus
+ ocTan, // 41 Tangens
+ ocArcTan2, // 42 Arcus-Tangens 2 (4.Quadrant)
+ ocArcTan, // 43 Arcus-Tangens (2.Quadrant)
+ ocArcSin, // 44 Arcus-Sinus
+ ocArcCos, // 45 Arcus-Cosinus
+ ocExp, // 46 Exponentialfunktion
+ ocMod, // 47 Modulo
+ ocChose, // 48 Auswahl
+ ocIsNA, // 49 Is not available?
+ ocIsError, // 50 Is Error?
+ ocFalse, // 51 FALSE
+ ocTrue, // 52 TRUE
+ ocRandom, // 53 Zufallszahl
+ ocGetDate, // 54 Datum
+ ocGetActDate, // 55 Heute
+ ocRMZ, // 56 Payment
+ ocBW, // 57 Present Value
+ ocZW, // 58 Future Value
+ ocIf, // 59 If ... then ... else ...
+ ocGetDay, // 60 Tag des Monats
+ ocGetMonth, // 61 Monat
+ ocGetYear, // 62 Jahr
+ ocRound, // 63 Runden
+ ocGetTime, // 64 Zeit
+ ocGetHour, // 65 Stunde
+ ocGetMin, // 66 Minute
+ ocGetSec, // 67 Sekunde
+ ocIsValue, // 68 Ist Zahl?
+ ocIsString, // 69 Ist Text?
+ ocLen, // 70 Len()
+ ocValue, // 71 Val()
+ ocFixed, // 72 String() ocFixed ersatzweise + Spezialfall
+ ocMid, // 73 Mid()
+ ocChar, // 74 Char()
+ ocCode, // 75 Ascii()
+ ocFind, // 76 Find()
+ ocGetDateValue, // 77 Datevalue
+ ocGetTimeValue, // 78 Timevalue
+ ocNoName, // 79 Cellpointer
+ ocSum, // 80 Sum()
+ ocAverage, // 81 Avg()
+ ocCount, // 82 Cnt()
+ ocMin, // 83 Min()
+ ocMax, // 84 Max()
+ ocVLookup, // 85 Vlookup()
+ ocNPV, // 86 Npv()
+ ocVar, // 87 Var()
+ ocStDev, // 88 Std()
+ ocIRR, // 89 Irr()
+ ocHLookup, // 90 Hlookup()
+ ocDBSum, // 91 XlfDsum
+ ocDBAverage, // 92 XlfDaverage
+ ocDBCount, // 93 XlfDcount
+ ocDBMin, // 94 XlfDmin
+ ocDBMax, // 95 XlfDmax
+ ocDBVar, // 96 XlfDvar
+ ocDBStdDev, // 97 XlfDstdev
+ ocIndex, // 98 Index()
+ ocColumns, // 99 Cols()
+ ocRows, // 100 Rows()
+ ocRept, // 101 Repeat()
+ ocUpper, // 102 Upper()
+ ocLower, // 103 Lower()
+ ocLeft, // 104 Left()
+ ocRight, // 105 Right()
+ ocReplace, // 106 Replace()
+ ocPropper, // 107 Proper()
+ ocNoName, // 108 Cell()
+ ocTrim, // 109 Trim()
+ ocClean, // 110 Clean()
+ ocNoName, // 111 F() (Excel: T()?)
+ ocNoName, // 112 W()
+ ocExact, // 113 Exact()
+ ocNoName, // 114 Call()
+ ocIndirect, // 115 @@()
+ ocZins, // 116 Rate()
+ ocNoName, // 117 Term()
+ ocNoName, // 118 Cterm()
+ ocLIA, // 119 Sln()
+ ocDIA, // 120 Syd(), Soy()
+ ocGDA, // 121 Ddb()
+ ocNoName, // 122 Splfunc
+ ocNoName, // 123 Sheets
+ ocNoName, // 124 Info
+ ocSumProduct, // 125 Sumproduct
+ ocNoName, // 126 Isrange
+ ocDBGet, // 127 Dget
+ ocNoName, // 128 Dquery
+ ocNoName, // 129 Coord
+ ocNoName, // 130 Reserved (internal)
+ ocGetActDate, // 131 Today
+ ocNoName, // 132 Vdb
+ ocDBVarP, // 133 Dvars
+ ocDBStdDevP, // 134 Dstds
+ ocVarP, // 135 Vars
+ ocStDevP, // 136 Stds
+ ocGetDiffDate360, // 137 D360
+ ocNoName, // 138 Reserved (internal)
+ ocNoName, // 139 Isapp
+ ocNoName, // 140 Isaaf
+ ocGetDayOfWeek, // 141 Weekday
+ ocGetDiffDate, // 142 Datedif
+ ocRank, // 143 Rank
+ ocNoName, // 144 Numberstring
+ ocNoName, // 145 Datestring
+ ocNoName, // 146 Decimal
+ ocNoName, // 147 Hex
+ ocNoName, // 148 Db
+ ocNoName, // 149 Pmti
+ ocNoName, // 150 Spi
+ ocNoName, // 151 Fullp
+ ocNoName, // 152 Halfp
+ ocNoName, // 153 Pureavg
+ ocCount2, // 154 Purecount
+ ocNoName, // 155 Puremax
+ ocNoName, // 156 Puremin
+ ocNoName, // 157 Purestd
+ ocNoName, // 158 Purevar
+ ocNoName, // 159 Purestds
+ ocNoName, // 160 Purevars
+ ocNoName, // 161 Pmt2
+ ocNoName, // 162 Pv2
+ ocNoName, // 163 Fv2
+ ocNoName, // 164 Term2
+ ocNoName, // 165 --- <-------- neu! - Anzahl ? -
+ ocGetDiffDate360, // 166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
+ ocNoName, // 167
+ ocNoName, // 168
+ ocNoName, // 169
+ ocNoName, // 170
+ ocNoName, // 171
+ ocNoName, // 172
+ ocNoName, // 173
+ ocNoName, // 174
+ ocNoName, // 175
+ ocNoName, // 176
+ ocNoName, // 177
+ ocNoName, // 178
+ ocNoName, // 179
+ ocNoName, // 180
+ ocNoName, // 181
+ ocNoName, // 182
+ ocNoName, // 183
+ ocNoName, // 184
+ ocNoName, // 185
+ ocNoName, // 186
+ ocNoName, // 187
+ ocNoName, // 188
+ ocNoName, // 189
+ ocNoName, // 190
+ ocNoName, // 191
+ ocNoName, // 192
+ ocNoName, // 193
+ ocNoName, // 194
+ ocNoName, // 195
+ ocNoName, // 196
+ ocNoName, // 197
+ ocNoName, // 198
+ ocNoName, // 199
+ ocNoName, // 200
+ ocNoName, // 201
+ ocNoName, // 202
+ ocNoName, // 203
+ ocNoName, // 204
+ ocNoName, // 205
+ ocNoName, // 206 ?
+ ocNoName, // 207
+ ocNoName, // 208
+ ocNoName, // 209
+ ocNoName, // 210
+ ocNoName, // 211
+ ocNoName, // 212
+ ocNoName, // 213
+ ocNoName, // 214
+ ocNoName, // 215
+ ocNoName, // 216
+ ocNoName, // 217
+ ocNoName, // 218
+ ocNoName, // 219
+ ocNoName, // 220
+ ocNoName, // 221
+ ocNoName, // 222
+ ocNoName, // 223
+ ocNoName, // 224
+ ocNoName, // 225
+ ocNoName, // 226
+ ocNoName, // 227
+ ocNoName, // 228
+ ocNoName, // 229
+ ocNoName, // 230
+ ocNoName, // 231
+ ocNoName, // 232
+ ocNoName, // 233
+ ocNoName, // 234
+ ocNoName, // 235
+ ocNoName, // 236
+ ocNoName, // 237
+ ocNoName, // 238
+ ocNoName, // 239
+ ocNoName, // 240
+ ocNoName, // 241
+ ocNoName, // 242
+ ocNoName, // 243
+ ocNoName, // 244
+ ocNoName, // 245
+ ocNoName, // 246
+ ocNoName, // 247
+ ocNoName, // 248
+ ocNoName, // 249
+ ocNoName, // 250
+ ocNoName, // 251
+ ocNoName, // 252
+ ocNoName, // 253
+ ocNoName, // 254
+ ocNoName // 255 ?
};
return pToken[ nIndex ];
@@ -1732,264 +1732,264 @@ DefTokenId LotusToSc::IndexToTokenWK123( BYTE nIndex )
const sal_Char* GetAddInName( const UINT8 n )
{
- static const sal_Char* pNames[ 256 ] =
+ static const sal_Char* pNames[ 256 ] =
{
- NULL, // 0 8-Byte-IEEE-Float
- NULL, // 1 Variable
- NULL, // 2 Bereich
- NULL, // 3 return
- NULL, // 4 Klammer
- NULL, // 5 2-Byte-Integer
- NULL, // 6 ASCII-String
- NULL, // 7 Named range reference
- NULL, // 8 Absolut named range
- NULL, // 9 Err range reference
- NULL, // 10 Err cell reference
- NULL, // 11 Err constant
- NULL, // 12
- NULL, // 13
- NULL, // 14 Negation
- NULL, // 15 Addition
- NULL, // 16 Subtraktion
- NULL, // 17 Multiplikation
- NULL, // 18 Division
- NULL, // 19 Potenzierung
- NULL, // 20 Gleichheit
- NULL, // 21 Ungleich
- NULL, // 22 Kleiner-gleich
- NULL, // 23 Groesser-gleich
- NULL, // 24 Kleiner
- NULL, // 25 Groesser
- NULL, // 26 And (logisch)
- NULL, // 27 Or (logisch)
- NULL, // 28 Not (logisch)
- NULL, // 29 unaeres Plus
- NULL, // 30 Concatenation
- NULL, // 31 Not applicable
- NULL, // 32 Error
- NULL, // 33 Betrag ABS()
- NULL, // 34 Ganzzahl INT()
- NULL, // 35 Quadratwurzel
- NULL, // 36 Zehnerlogarithmus
- NULL, // 37 Natuerlicher Logarithmus
- NULL, // 38 PI
- NULL, // 39 Sinus
- NULL, // 40 Cosinus
- NULL, // 41 Tangens
- NULL, // 42 Arcus-Tangens 2 (4.Quadrant)
- NULL, // 43 Arcus-Tangens (2.Quadrant)
- NULL, // 44 Arcus-Sinus
- NULL, // 45 Arcus-Cosinus
- NULL, // 46 Exponentialfunktion
- NULL, // 47 Modulo
- NULL, // 48 Auswahl
- NULL, // 49 Is not applicable?
- NULL, // 50 Is Error?
- NULL, // 51 FALSE
- NULL, // 52 TRUE
- NULL, // 53 Zufallszahl
- NULL, // 54 Datum
- NULL, // 55 Heute
- NULL, // 56 Payment
- NULL, // 57 Present Value
- NULL, // 58 Future Value
- NULL, // 59 If ... then ... else ...
- NULL, // 60 Tag des Monats
- NULL, // 61 Monat
- NULL, // 62 Jahr
- NULL, // 63 Runden
- NULL, // 64 Zeit
- NULL, // 65 Stunde
- NULL, // 66 Minute
- NULL, // 67 Sekunde
- NULL, // 68 Ist Zahl?
- NULL, // 69 Ist Text?
- NULL, // 70 Len()
- NULL, // 71 Val()
- NULL, // 72 String() ocFixed ersatzweise + Spezialfall
- NULL, // 73 Mid()
- NULL, // 74 Char()
- NULL, // 75 Ascii()
- NULL, // 76 Find()
- NULL, // 77 Datevalue
- NULL, // 78 Timevalue
- "ZELLZEIGER", // 79 Cellpointer
- NULL, // 80 Sum()
- NULL, // 81 Avg()
- NULL, // 82 Cnt()
- NULL, // 83 Min()
- NULL, // 84 Max()
- NULL, // 85 Vlookup()
- NULL, // 86 Npv()
- NULL, // 87 Var()
- NULL, // 88 Std()
- NULL, // 89 Irr()
- NULL, // 90 Hlookup()
- NULL, // 91 XlfDsum
- NULL, // 92 XlfDaverage
- NULL, // 93 XlfDcount
- NULL, // 94 XlfDmin
- NULL, // 95 XlfDmax
- NULL, // 96 XlfDvar
- NULL, // 97 XlfDstdev
- NULL, // 98 Index()
- NULL, // 99 Cols()
- NULL, // 100 Rows()
- NULL, // 101 Repeat()
- NULL, // 102 Upper()
- NULL, // 103 Lower()
- NULL, // 104 Left()
- NULL, // 105 Right()
- NULL, // 106 Replace()
- NULL, // 107 Proper()
- "ZELLE", // 108 Cell()
- NULL, // 109 Trim()
- NULL, // 110 Clean()
- "F", // 111 F() (Excel: T()?)
- "W", // 112 W()
- NULL, // 113 Exact()
- NULL, // 114 Call()
- NULL, // 115 @@()
- NULL, // 116 Rate()
- "ANN", // 117 Term()
- NULL, // 118 Cterm()
- NULL, // 119 Sln()
- NULL, // 120 Syd(), Soy()
- NULL, // 121 Ddb()
- "SplFunc", // 122 Splfunc
- "BLAETTER", // 123 Sheets
- "INFO", // 124 Info
- NULL, // 125 Sumproduct
- "ISTBEREICH", // 126 Isrange
- NULL, // 127 Dget
- "DABFRAGE", // 128 Dquery
- "KOORD", // 129 Coord
- NULL, // 130 Reserved (internal)
- NULL, // 131 Today
- NULL, // 132 Vdb
- NULL, // 133 Dvars
- NULL, // 134 Dstds
- NULL, // 135 Vars
- NULL, // 136 Stds
- NULL, // 137 D360
- NULL, // 138 Reserved (internal)
- NULL, // 139 Isapp
- "ISTDEFZUS", // 140 Isaaf
- NULL, // 141 Weekday
- NULL, // 142 Datedif
- NULL, // 143 Rank
- NULL, // 144 Numberstring
- "DATUMFOLGE", // 145 Datestring
- "DEZIMAL", // 146 Decimal
- "HEX", // 147 Hex
- NULL, // 148 Db
- NULL, // 149 Pmti
- NULL, // 150 Spi
- NULL, // 151 Fullp
- NULL, // 152 Halfp
- "PURMITTELWERT", // 153 Pureavg
- "PURANZAHL", // 154 Purecount
- "PURMAX", // 155 Puremax
- "PURMIN", // 156 Puremin
- "PURSTDABW", // 157 Purestd
- "PURVAR", // 158 Purevar
- "PURSTDABWP", // 159 Purestds
- "PURVARP", // 160 Purevars
- NULL, // 161 Pmt2
- NULL, // 162 Pv2
- NULL, // 163 Fv2
- NULL, // 164 Term2
- NULL, // 165 --- <-------- neu! - Anzahl ? -
- NULL, // 166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
- NULL, // 167
- NULL, // 168
- NULL, // 169
- NULL, // 170
- NULL, // 171
- NULL, // 172
- NULL, // 173
- NULL, // 174
- NULL, // 175
- NULL, // 176
- NULL, // 177
- NULL, // 178
- NULL, // 179
- NULL, // 180
- NULL, // 181
- NULL, // 182
- NULL, // 183
- NULL, // 184
- NULL, // 185
- NULL, // 186
- NULL, // 187
- NULL, // 188
- NULL, // 189
- NULL, // 190
- NULL, // 191
- NULL, // 192
- NULL, // 193
- NULL, // 194
- NULL, // 195
- NULL, // 196
- NULL, // 197
- NULL, // 198
- NULL, // 199
- NULL, // 200
- NULL, // 201
- NULL, // 202
- NULL, // 203
- NULL, // 204
- NULL, // 205
- NULL, // 206 ?
- NULL, // 207
- NULL, // 208
- NULL, // 209
- NULL, // 210
- NULL, // 211
- NULL, // 212
- NULL, // 213
- NULL, // 214
- NULL, // 215
- NULL, // 216
- NULL, // 217
- NULL, // 218
- NULL, // 219
- NULL, // 220
- NULL, // 221
- NULL, // 222
- NULL, // 223
- NULL, // 224
- NULL, // 225
- NULL, // 226
- NULL, // 227
- NULL, // 228
- NULL, // 229
- NULL, // 230
- NULL, // 231
- NULL, // 232
- NULL, // 233
- NULL, // 234
- NULL, // 235
- NULL, // 236
- NULL, // 237
- NULL, // 238
- NULL, // 239
- NULL, // 240
- NULL, // 241
- NULL, // 242
- NULL, // 243
- NULL, // 244
- NULL, // 245
- NULL, // 246
- NULL, // 247
- NULL, // 248
- NULL, // 249
- NULL, // 250
- NULL, // 251
- NULL, // 252
- NULL, // 253
- NULL, // 254
- NULL // 255 ?
+ NULL, // 0 8-Byte-IEEE-Float
+ NULL, // 1 Variable
+ NULL, // 2 Bereich
+ NULL, // 3 return
+ NULL, // 4 Klammer
+ NULL, // 5 2-Byte-Integer
+ NULL, // 6 ASCII-String
+ NULL, // 7 Named range reference
+ NULL, // 8 Absolut named range
+ NULL, // 9 Err range reference
+ NULL, // 10 Err cell reference
+ NULL, // 11 Err constant
+ NULL, // 12
+ NULL, // 13
+ NULL, // 14 Negation
+ NULL, // 15 Addition
+ NULL, // 16 Subtraktion
+ NULL, // 17 Multiplikation
+ NULL, // 18 Division
+ NULL, // 19 Potenzierung
+ NULL, // 20 Gleichheit
+ NULL, // 21 Ungleich
+ NULL, // 22 Kleiner-gleich
+ NULL, // 23 Groesser-gleich
+ NULL, // 24 Kleiner
+ NULL, // 25 Groesser
+ NULL, // 26 And (logisch)
+ NULL, // 27 Or (logisch)
+ NULL, // 28 Not (logisch)
+ NULL, // 29 unaeres Plus
+ NULL, // 30 Concatenation
+ NULL, // 31 Not applicable
+ NULL, // 32 Error
+ NULL, // 33 Betrag ABS()
+ NULL, // 34 Ganzzahl INT()
+ NULL, // 35 Quadratwurzel
+ NULL, // 36 Zehnerlogarithmus
+ NULL, // 37 Natuerlicher Logarithmus
+ NULL, // 38 PI
+ NULL, // 39 Sinus
+ NULL, // 40 Cosinus
+ NULL, // 41 Tangens
+ NULL, // 42 Arcus-Tangens 2 (4.Quadrant)
+ NULL, // 43 Arcus-Tangens (2.Quadrant)
+ NULL, // 44 Arcus-Sinus
+ NULL, // 45 Arcus-Cosinus
+ NULL, // 46 Exponentialfunktion
+ NULL, // 47 Modulo
+ NULL, // 48 Auswahl
+ NULL, // 49 Is not applicable?
+ NULL, // 50 Is Error?
+ NULL, // 51 FALSE
+ NULL, // 52 TRUE
+ NULL, // 53 Zufallszahl
+ NULL, // 54 Datum
+ NULL, // 55 Heute
+ NULL, // 56 Payment
+ NULL, // 57 Present Value
+ NULL, // 58 Future Value
+ NULL, // 59 If ... then ... else ...
+ NULL, // 60 Tag des Monats
+ NULL, // 61 Monat
+ NULL, // 62 Jahr
+ NULL, // 63 Runden
+ NULL, // 64 Zeit
+ NULL, // 65 Stunde
+ NULL, // 66 Minute
+ NULL, // 67 Sekunde
+ NULL, // 68 Ist Zahl?
+ NULL, // 69 Ist Text?
+ NULL, // 70 Len()
+ NULL, // 71 Val()
+ NULL, // 72 String() ocFixed ersatzweise + Spezialfall
+ NULL, // 73 Mid()
+ NULL, // 74 Char()
+ NULL, // 75 Ascii()
+ NULL, // 76 Find()
+ NULL, // 77 Datevalue
+ NULL, // 78 Timevalue
+ "ZELLZEIGER", // 79 Cellpointer
+ NULL, // 80 Sum()
+ NULL, // 81 Avg()
+ NULL, // 82 Cnt()
+ NULL, // 83 Min()
+ NULL, // 84 Max()
+ NULL, // 85 Vlookup()
+ NULL, // 86 Npv()
+ NULL, // 87 Var()
+ NULL, // 88 Std()
+ NULL, // 89 Irr()
+ NULL, // 90 Hlookup()
+ NULL, // 91 XlfDsum
+ NULL, // 92 XlfDaverage
+ NULL, // 93 XlfDcount
+ NULL, // 94 XlfDmin
+ NULL, // 95 XlfDmax
+ NULL, // 96 XlfDvar
+ NULL, // 97 XlfDstdev
+ NULL, // 98 Index()
+ NULL, // 99 Cols()
+ NULL, // 100 Rows()
+ NULL, // 101 Repeat()
+ NULL, // 102 Upper()
+ NULL, // 103 Lower()
+ NULL, // 104 Left()
+ NULL, // 105 Right()
+ NULL, // 106 Replace()
+ NULL, // 107 Proper()
+ "ZELLE", // 108 Cell()
+ NULL, // 109 Trim()
+ NULL, // 110 Clean()
+ "F", // 111 F() (Excel: T()?)
+ "W", // 112 W()
+ NULL, // 113 Exact()
+ NULL, // 114 Call()
+ NULL, // 115 @@()
+ NULL, // 116 Rate()
+ "ANN", // 117 Term()
+ NULL, // 118 Cterm()
+ NULL, // 119 Sln()
+ NULL, // 120 Syd(), Soy()
+ NULL, // 121 Ddb()
+ "SplFunc", // 122 Splfunc
+ "BLAETTER", // 123 Sheets
+ "INFO", // 124 Info
+ NULL, // 125 Sumproduct
+ "ISTBEREICH", // 126 Isrange
+ NULL, // 127 Dget
+ "DABFRAGE", // 128 Dquery
+ "KOORD", // 129 Coord
+ NULL, // 130 Reserved (internal)
+ NULL, // 131 Today
+ NULL, // 132 Vdb
+ NULL, // 133 Dvars
+ NULL, // 134 Dstds
+ NULL, // 135 Vars
+ NULL, // 136 Stds
+ NULL, // 137 D360
+ NULL, // 138 Reserved (internal)
+ NULL, // 139 Isapp
+ "ISTDEFZUS", // 140 Isaaf
+ NULL, // 141 Weekday
+ NULL, // 142 Datedif
+ NULL, // 143 Rank
+ NULL, // 144 Numberstring
+ "DATUMFOLGE", // 145 Datestring
+ "DEZIMAL", // 146 Decimal
+ "HEX", // 147 Hex
+ NULL, // 148 Db
+ NULL, // 149 Pmti
+ NULL, // 150 Spi
+ NULL, // 151 Fullp
+ NULL, // 152 Halfp
+ "PURMITTELWERT", // 153 Pureavg
+ "PURANZAHL", // 154 Purecount
+ "PURMAX", // 155 Puremax
+ "PURMIN", // 156 Puremin
+ "PURSTDABW", // 157 Purestd
+ "PURVAR", // 158 Purevar
+ "PURSTDABWP", // 159 Purestds
+ "PURVARP", // 160 Purevars
+ NULL, // 161 Pmt2
+ NULL, // 162 Pv2
+ NULL, // 163 Fv2
+ NULL, // 164 Term2
+ NULL, // 165 --- <-------- neu! - Anzahl ? -
+ NULL, // 166 D360 (US-Version, ersatzweise wie ander D360-Funktion)
+ NULL, // 167
+ NULL, // 168
+ NULL, // 169
+ NULL, // 170
+ NULL, // 171
+ NULL, // 172
+ NULL, // 173
+ NULL, // 174
+ NULL, // 175
+ NULL, // 176
+ NULL, // 177
+ NULL, // 178
+ NULL, // 179
+ NULL, // 180
+ NULL, // 181
+ NULL, // 182
+ NULL, // 183
+ NULL, // 184
+ NULL, // 185
+ NULL, // 186
+ NULL, // 187
+ NULL, // 188
+ NULL, // 189
+ NULL, // 190
+ NULL, // 191
+ NULL, // 192
+ NULL, // 193
+ NULL, // 194
+ NULL, // 195
+ NULL, // 196
+ NULL, // 197
+ NULL, // 198
+ NULL, // 199
+ NULL, // 200
+ NULL, // 201
+ NULL, // 202
+ NULL, // 203
+ NULL, // 204
+ NULL, // 205
+ NULL, // 206 ?
+ NULL, // 207
+ NULL, // 208
+ NULL, // 209
+ NULL, // 210
+ NULL, // 211
+ NULL, // 212
+ NULL, // 213
+ NULL, // 214
+ NULL, // 215
+ NULL, // 216
+ NULL, // 217
+ NULL, // 218
+ NULL, // 219
+ NULL, // 220
+ NULL, // 221
+ NULL, // 222
+ NULL, // 223
+ NULL, // 224
+ NULL, // 225
+ NULL, // 226
+ NULL, // 227
+ NULL, // 228
+ NULL, // 229
+ NULL, // 230
+ NULL, // 231
+ NULL, // 232
+ NULL, // 233
+ NULL, // 234
+ NULL, // 235
+ NULL, // 236
+ NULL, // 237
+ NULL, // 238
+ NULL, // 239
+ NULL, // 240
+ NULL, // 241
+ NULL, // 242
+ NULL, // 243
+ NULL, // 244
+ NULL, // 245
+ NULL, // 246
+ NULL, // 247
+ NULL, // 248
+ NULL, // 249
+ NULL, // 250
+ NULL, // 251
+ NULL, // 252
+ NULL, // 253
+ NULL, // 254
+ NULL // 255 ?
};
return pNames[ n ];
@@ -1998,7 +1998,7 @@ const sal_Char* GetAddInName( const UINT8 n )
DefTokenId lcl_KnownAddIn( const ByteString& sTest )
{
- DefTokenId eId = ocNoName;
+ DefTokenId eId = ocNoName;
if( sTest == "FACT" )
eId = ocFact;
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index d5aad61a6054..1ab94fc96a69 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -2,7 +2,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
@@ -92,8 +92,8 @@ ImportLotus::~ImportLotus()
void ImportLotus::Bof( void )
{
- UINT16 nFileCode, nFileSub, nSaveCnt;
- BYTE nMajorId, nMinorId, nFlags;
+ UINT16 nFileCode, nFileSub, nSaveCnt;
+ BYTE nMajorId, nMinorId, nFlags;
Read( nFileCode );
Read( nFileSub );
@@ -120,7 +120,7 @@ void ImportLotus::Bof( void )
BOOL ImportLotus::BofFm3( void )
{
- UINT16 nFileCode, nFileSub;
+ UINT16 nFileCode, nFileSub;
Read( nFileCode );
Read( nFileSub );
@@ -134,7 +134,7 @@ void ImportLotus::Columnwidth( UINT16 nRecLen )
DBG_ASSERT( nRecLen >= 4, "*ImportLotus::Columnwidth(): Record zu kurz!" );
BYTE nLTab, nWindow2;
- UINT16 nCnt = ( nRecLen - 4 ) / 2;
+ UINT16 nCnt = ( nRecLen - 4 ) / 2;
Read( nLTab );
Read( nWindow2 );
@@ -146,7 +146,7 @@ void ImportLotus::Columnwidth( UINT16 nRecLen )
{
Skip( 2 );
- BYTE nCol, nSpaces;
+ BYTE nCol, nSpaces;
while( nCnt )
{
@@ -166,7 +166,7 @@ void ImportLotus::Hiddencolumn( UINT16 nRecLen )
DBG_ASSERT( nRecLen >= 4, "*ImportLotus::Hiddencolumn(): Record zu kurz!" );
BYTE nLTab, nWindow2;
- UINT16 nCnt = ( nRecLen - 4 ) / 2;
+ UINT16 nCnt = ( nRecLen - 4 ) / 2;
Read( nLTab );
Read( nWindow2 );
@@ -175,7 +175,7 @@ void ImportLotus::Hiddencolumn( UINT16 nRecLen )
{
Skip( 2 );
- BYTE nCol;
+ BYTE nCol;
while( nCnt )
{
@@ -190,15 +190,15 @@ void ImportLotus::Hiddencolumn( UINT16 nRecLen )
void ImportLotus::Userrange( void )
{
- UINT16 nRangeType;
- ScRange aScRange;
- sal_Char* pBuffer = new sal_Char[ 32 ];
+ UINT16 nRangeType;
+ ScRange aScRange;
+ sal_Char* pBuffer = new sal_Char[ 32 ];
Read( nRangeType );
pIn->Read( pBuffer, 16 );
- pBuffer[ 16 ] = ( sal_Char ) 0x00; // zur Sicherheit...
- String aName( pBuffer, eQuellChar );
+ pBuffer[ 16 ] = ( sal_Char ) 0x00; // zur Sicherheit...
+ String aName( pBuffer, eQuellChar );
Read( aScRange );
@@ -209,7 +209,7 @@ void ImportLotus::Userrange( void )
void ImportLotus::Errcell( void )
{
- ScAddress aA;
+ ScAddress aA;
Read( aA );
@@ -219,7 +219,7 @@ void ImportLotus::Errcell( void )
void ImportLotus::Nacell( void )
{
- ScAddress aA;
+ ScAddress aA;
Read( aA );
@@ -229,15 +229,15 @@ void ImportLotus::Nacell( void )
void ImportLotus::Labelcell( void )
{
- ScAddress aA;
- String aLabel;
- sal_Char cAlign;
+ ScAddress aA;
+ String aLabel;
+ sal_Char cAlign;
Read( aA );
Read( cAlign );
Read( aLabel );
-// aLabel.Convert( pLotusRoot->eCharsetQ );
+// aLabel.Convert( pLotusRoot->eCharsetQ );
pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( aLabel ), (BOOL)TRUE );
}
@@ -245,8 +245,8 @@ void ImportLotus::Labelcell( void )
void ImportLotus::Numbercell( void )
{
- ScAddress aAddr;
- double fVal;
+ ScAddress aAddr;
+ double fVal;
Read( aAddr );
Read( fVal );
@@ -258,8 +258,8 @@ void ImportLotus::Numbercell( void )
void ImportLotus::Smallnumcell( void )
{
- ScAddress aAddr;
- INT16 nVal;
+ ScAddress aAddr;
+ INT16 nVal;
Read( aAddr );
Read( nVal );
@@ -273,21 +273,21 @@ ScFormulaCell *ImportLotus::Formulacell( UINT16 n )
{
DBG_ASSERT( pIn, "-ImportLotus::Formulacell(): Null-Stream -> Rums!" );
- ScAddress aAddr;
+ ScAddress aAddr;
Read( aAddr );
Skip( 10 );
n -= 14;
- const ScTokenArray* pErg;
- INT32 nRest = n;
+ const ScTokenArray* pErg;
+ INT32 nRest = n;
aConv.Reset( aAddr );
aConv.SetWK3();
aConv.Convert( pErg, nRest );
- ScFormulaCell* pZelle = new ScFormulaCell( pD, aAddr, pErg );
+ ScFormulaCell* pZelle = new ScFormulaCell( pD, aAddr, pErg );
pZelle->AddRecalcMode( RECALCMODE_ONLOAD_ONCE );
@@ -308,8 +308,8 @@ void ImportLotus::RowPresentation( UINT16 nRecLen )
DBG_ASSERT( nRecLen > 4, "*ImportLotus::RowPresentation(): Record zu kurz!" );
BYTE nLTab, nFlags;
- UINT16 nRow, nHeight;
- UINT16 nCnt = ( nRecLen - 4 ) / 8;
+ UINT16 nRow, nHeight;
+ UINT16 nCnt = ( nRecLen - 4 ) / 8;
Read( nLTab );
Skip( 1 );
@@ -322,11 +322,11 @@ void ImportLotus::RowPresentation( UINT16 nRecLen )
Read( nFlags );
Skip( 1 );
- if( nFlags & 0x02 ) // Fixed / Strech to fit fonts
- { // fixed
+ if( nFlags & 0x02 ) // Fixed / Strech to fit fonts
+ { // fixed
// Height in Lotus in 1/32 Points
- nHeight *= 20; // -> 32 * TWIPS
- nHeight /= 32; // -> TWIPS
+ nHeight *= 20; // -> 32 * TWIPS
+ nHeight /= 32; // -> TWIPS
pD->SetRowFlags( static_cast<SCROW> (nRow), static_cast<SCTAB> (nLTab), pD->GetRowFlags( static_cast<SCROW> (nRow), static_cast<SCTAB> (nLTab) ) | CR_MANUALSIZE );
@@ -341,7 +341,7 @@ void ImportLotus::RowPresentation( UINT16 nRecLen )
void ImportLotus::NamedSheet( void )
{
UINT16 nLTab;
- String aName;
+ String aName;
Read( nLTab );
Read( aName );
@@ -355,8 +355,8 @@ void ImportLotus::NamedSheet( void )
void ImportLotus::Font_Face( void )
{
- BYTE nNum;
- String aName;
+ BYTE nNum;
+ String aName;
Read( nNum );
@@ -374,8 +374,8 @@ void ImportLotus::Font_Face( void )
void ImportLotus::Font_Type( void )
{
static const UINT16 nAnz = 8;
- UINT16 nCnt;
- UINT16 nType;
+ UINT16 nCnt;
+ UINT16 nType;
for( nCnt = 0 ; nCnt < nAnz ; nCnt++ )
{
@@ -387,9 +387,9 @@ void ImportLotus::Font_Type( void )
void ImportLotus::Font_Ysize( void )
{
- static const UINT16 nAnz = 8;
- UINT16 nCnt;
- UINT16 nSize;
+ static const UINT16 nAnz = 8;
+ UINT16 nCnt;
+ UINT16 nSize;
for( nCnt = 0 ; nCnt < nAnz ; nCnt++ )
{
@@ -403,14 +403,14 @@ void ImportLotus::_Row( const UINT16 nRecLen )
{
DBG_ASSERT( nExtTab >= 0, "*ImportLotus::_Row(): Kann hier nicht sein!" );
- UINT16 nRow;
- UINT16 nHeight;
- UINT16 nCntDwn = ( nRecLen - 4 ) / 5;
- SCCOL nColCnt = 0;
- UINT8 nRepeats;
- LotAttrWK3 aAttr;
+ UINT16 nRow;
+ UINT16 nHeight;
+ UINT16 nCntDwn = ( nRecLen - 4 ) / 5;
+ SCCOL nColCnt = 0;
+ UINT8 nRepeats;
+ LotAttrWK3 aAttr;
- BOOL bCenter = FALSE;
+ BOOL bCenter = FALSE;
SCCOL nCenterStart = 0, nCenterEnd = 0;
Read( nRow );
diff --git a/sc/source/filter/lotus/lotread.cxx b/sc/source/filter/lotus/lotread.cxx
index ebd9f968686f..ee54bfef1f29 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -2,7 +2,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
@@ -49,22 +49,22 @@ FltError ImportLotus::Read()
{
enum STATE
{
- S_START, // analyse first BOF
- S_WK1, // in WK1-Stream
- S_WK3, // in WK3-Section
- S_WK4, // ...
- S_FM3, // ...
- S_END // Import finished
+ S_START, // analyse first BOF
+ S_WK1, // in WK1-Stream
+ S_WK3, // in WK3-Section
+ S_WK4, // ...
+ S_FM3, // ...
+ S_END // Import finished
};
- UINT16 nOp;
- UINT16 nSubType;
- UINT16 nRecLen;
- UINT32 nNextRec = 0UL;
- FltError eRet = eERR_OK;
-// ScFormulaCell *pLastFormCell;
+ UINT16 nOp;
+ UINT16 nSubType;
+ UINT16 nRecLen;
+ UINT32 nNextRec = 0UL;
+ FltError eRet = eERR_OK;
+// ScFormulaCell *pLastFormCell;
- STATE eAkt = S_START;
+ STATE eAkt = S_START;
nTab = 0;
nExtTab = -2;
@@ -86,7 +86,7 @@ FltError ImportLotus::Read()
switch( eAkt )
{
// -----------------------------------------------------------
- case S_START: // S_START
+ case S_START: // S_START
if( nOp )
{
eRet = SCERR_IMPORT_UNKNOWN_WK;
@@ -99,9 +99,9 @@ FltError ImportLotus::Read()
Bof();
switch( pLotusRoot->eFirstType )
{
- case Lotus_WK1: eAkt = S_WK1; break;
- case Lotus_WK3: eAkt = S_WK3; break;
- case Lotus_WK4: eAkt = S_WK4; break;
+ case Lotus_WK1: eAkt = S_WK1; break;
+ case Lotus_WK3: eAkt = S_WK3; break;
+ case Lotus_WK4: eAkt = S_WK4; break;
case Lotus_FM3: eAkt = S_FM3; break;
default:
eRet = SCERR_IMPORT_UNKNOWN_WK;
@@ -110,78 +110,78 @@ FltError ImportLotus::Read()
}
else
{
- eAkt = S_END; // hier kommt wat fuer <= WK1 hinne!
+ eAkt = S_END; // hier kommt wat fuer <= WK1 hinne!
eRet = 0xFFFFFFFF;
}
}
break;
// -----------------------------------------------------------
- case S_WK1: // S_WK1
+ case S_WK1: // S_WK1
break;
// -----------------------------------------------------------
- case S_WK3: // S_WK3
- case S_WK4: // S_WK4
+ case S_WK3: // S_WK3
+ case S_WK4: // S_WK4
switch( nOp )
{
- case 0x0001: // EOF
+ case 0x0001: // EOF
eAkt = S_FM3;
nTab++;
break;
- case 0x0002: // PASSWORD
+ case 0x0002: // PASSWORD
eRet = eERR_FILEPASSWD;
eAkt = S_END;
break;
- case 0x0007: // COLUMNWIDTH
+ case 0x0007: // COLUMNWIDTH
Columnwidth( nRecLen );
break;
- case 0x0008: // HIDDENCOLUMN
+ case 0x0008: // HIDDENCOLUMN
Hiddencolumn( nRecLen );
break;
- case 0x0009: // USERRANGE
+ case 0x0009: // USERRANGE
Userrange();
break;
- case 0x0013: // FORMAT
+ case 0x0013: // FORMAT
break;
- case 0x0014: // ERRCELL
+ case 0x0014: // ERRCELL
Errcell();
break;
- case 0x0015: // NACELL
+ case 0x0015: // NACELL
Nacell();
break;
- case 0x0016: // LABELCELL
+ case 0x0016: // LABELCELL
Labelcell();
break;
- case 0x0017: // NUMBERCELL
+ case 0x0017: // NUMBERCELL
Numbercell();
break;
- case 0x0018: // SMALLNUMCELL
+ case 0x0018: // SMALLNUMCELL
Smallnumcell();
break;
- case 0x0019: // FORMULACELL
+ case 0x0019: // FORMULACELL
Formulacell( nRecLen );
break;
- case 0x001b: // extended attributes
+ case 0x001b: // extended attributes
Read( nSubType );
nRecLen -= 2;
switch( nSubType )
{
- case 2007: // ROW PRESENTATION
+ case 2007: // ROW PRESENTATION
RowPresentation( nRecLen );
break;
- case 14000: // NAMED SHEET
+ case 14000: // NAMED SHEET
NamedSheet();
break;
}
@@ -189,10 +189,10 @@ FltError ImportLotus::Read()
break;
// -----------------------------------------------------------
- case S_FM3: // S_FM3
+ case S_FM3: // S_FM3
break;
// -----------------------------------------------------------
- case S_END: // S_END
+ case S_END: // S_END
break;
// -----------------------------------------------------------
#ifdef DBG_UTIL
@@ -210,11 +210,11 @@ FltError ImportLotus::Read()
}
// duemmliche Namen eliminieren
- SCTAB nTabs = pD->GetTableCount();
- SCTAB nCnt;
- String aTabName;
- String aBaseName;
- String aRef( RTL_CONSTASCII_USTRINGPARAM( "temp" ) );
+ SCTAB nTabs = pD->GetTableCount();
+ SCTAB nCnt;
+ String aTabName;
+ String aBaseName;
+ String aRef( RTL_CONSTASCII_USTRINGPARAM( "temp" ) );
if( nTabs != 0 )
{
if( nTabs > 1 )
@@ -246,11 +246,11 @@ FltError ImportLotus::Read( SvStream& rIn )
{
pIn = &rIn;
- BOOL bRead = TRUE;
- UINT16 nOp;
- UINT16 nRecLen;
- UINT32 nNextRec = 0UL;
- FltError eRet = eERR_OK;
+ BOOL bRead = TRUE;
+ UINT16 nOp;
+ UINT16 nRecLen;
+ UINT32 nNextRec = 0UL;
+ FltError eRet = eERR_OK;
nTab = 0;
nExtTab = -1;
@@ -272,7 +272,7 @@ FltError ImportLotus::Read( SvStream& rIn )
switch( nOp )
{
- case 0x0000: // BOF
+ case 0x0000: // BOF
if( nRecLen != 26 || !BofFm3() )
{
bRead = FALSE;
@@ -280,22 +280,22 @@ FltError ImportLotus::Read( SvStream& rIn )
}
break;
- case 0x0001: // EOF
+ case 0x0001: // EOF
bRead = FALSE;
DBG_ASSERT( nTab == 0,
"-ImportLotus::Read( SvStream& ): Zweimal EOF nicht erlaubt" );
nTab++;
break;
- case 174: // FONT_FACE
+ case 174: // FONT_FACE
Font_Face();
break;
- case 176: // FONT_TYPE
+ case 176: // FONT_TYPE
Font_Type();
break;
- case 177: // FONT_YSIZE
+ case 177: // FONT_YSIZE
Font_Ysize();
break;
diff --git a/sc/source/filter/lotus/lotus.cxx b/sc/source/filter/lotus/lotus.cxx
index 8a9623057788..d53905e7e622 100644
--- a/sc/source/filter/lotus/lotus.cxx
+++ b/sc/source/filter/lotus/lotus.cxx
@@ -2,7 +2,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
@@ -48,23 +48,23 @@ FltError ScFormatFilterPluginImpl::ScImportLotus123( SfxMedium& rMedium, ScDocum
ScFilterOptions aFilterOpt;
BOOL bWithWK3 = aFilterOpt.GetWK3Flag();
- SvStream* pStream = rMedium.GetInStream();
+ SvStream* pStream = rMedium.GetInStream();
if( !pStream )
return eERR_OPEN;
- FltError eRet;
+ FltError eRet;
pStream->Seek( 0UL );
pStream->SetBufferSize( 32768 );
- ImportLotus aLotusImport( *pStream, pDocument, eSrc );
+ ImportLotus aLotusImport( *pStream, pDocument, eSrc );
if( bWithWK3 )
eRet = aLotusImport.Read();
else
- eRet = 0xFFFFFFFF; // WK1 /WKS erzwingen
+ eRet = 0xFFFFFFFF; // WK1 /WKS erzwingen
// ACHTUNG: QUICK-HACK fuer WK1 / WKS <-> WK3 / WK4
if( eRet == 0xFFFFFFFF )
diff --git a/sc/source/filter/lotus/memory.cxx b/sc/source/filter/lotus/memory.cxx
index 68b26befa1aa..cb18e7650e19 100644
--- a/sc/source/filter/lotus/memory.cxx
+++ b/sc/source/filter/lotus/memory.cxx
@@ -2,7 +2,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
@@ -43,41 +43,41 @@
#include "decl.h"
#include "tool.h"
-extern const long nStackSize;
-extern const int nAnzNRange;
+extern const long nStackSize;
+extern const int nAnzNRange;
-extern ScDocument* pDoc;
+extern ScDocument* pDoc;
-const long nStackSize = 8L * 1024; // -> form_xxx.cpp
-const int nAnzNRange = 2048; // -> tool_xxx.cpp, max. 2048 Named Ranges
+const long nStackSize = 8L * 1024; // -> form_xxx.cpp
+const int nAnzNRange = 2048; // -> tool_xxx.cpp, max. 2048 Named Ranges
-sal_Char* pPuffer; // -> flt_xxx.cxx
-sal_Char* pDummy1; // -> flt_xxx.cxx, ScanVersion()
-sal_Char* pDummy2; // -> tool.cxx, CreateTable()
+sal_Char* pPuffer; // -> flt_xxx.cxx
+sal_Char* pDummy1; // -> flt_xxx.cxx, ScanVersion()
+sal_Char* pDummy2; // -> tool.cxx, CreateTable()
-extern BYTE* pFormelBuffer; // -> tool.cxx, fuer OP_Formula()
-BYTE* pFormelBuffer;
+extern BYTE* pFormelBuffer; // -> tool.cxx, fuer OP_Formula()
+BYTE* pFormelBuffer;
-extern FormCache* pValueFormCache; // -> tool.cxx
+extern FormCache* pValueFormCache; // -> tool.cxx
-sal_Char* pStack; // -> formel.cxx
-sal_Char* pPuffer0; // -> formel.cxx
-sal_Char* pPuffer1; // -> formel.cxx
-extern const int nMaxPar;
-const int nMaxPar = 128; // max. 128 Parameter werden unterstuetzt
-sal_Char** pPar; // -> formel.cxx, Pn()
+sal_Char* pStack; // -> formel.cxx
+sal_Char* pPuffer0; // -> formel.cxx
+sal_Char* pPuffer1; // -> formel.cxx
+extern const int nMaxPar;
+const int nMaxPar = 128; // max. 128 Parameter werden unterstuetzt
+sal_Char** pPar; // -> formel.cxx, Pn()
-#ifndef _DOS // -> op.cxx
-sal_Char* pAnsi;
+#ifndef _DOS // -> op.cxx
+sal_Char* pAnsi;
#endif
-sal_Char* pErgebnis; // -> op.cxx
+sal_Char* pErgebnis; // -> op.cxx
-extern BOOL bFormInit; // -> tool.cxx, fuer GetFormHandle()
-BOOL bFormInit;
+extern BOOL bFormInit; // -> tool.cxx, fuer GetFormHandle()
+BOOL bFormInit;
-extern SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter,
- *pAttrRepeat, *pAttrStandard; // -> tool.cxx, fuer GetFormAttr()
-extern ScProtectionAttr* pAttrUnprot; // -> tool.cxx, fuer PutFormString()
+extern SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter,
+ *pAttrRepeat, *pAttrStandard; // -> tool.cxx, fuer GetFormAttr()
+extern ScProtectionAttr* pAttrUnprot; // -> tool.cxx, fuer PutFormString()
diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx
index 5d38852c2170..e0a0182aa7cc 100644
--- a/sc/source/filter/lotus/op.cxx
+++ b/sc/source/filter/lotus/op.cxx
@@ -2,7 +2,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
@@ -78,18 +78,18 @@
#include <stdlib.h>
#endif
-extern sal_Char* pAnsi; // -> memory.cxx, Puffer zum Umwandeln von OEM->ANSI
-extern sal_Char* pErgebnis; // -> memory.cxx, Ergebnispuffer
-extern WKTYP eTyp; // -> filter.cxx, aktueller Dateityp
-extern BOOL bEOF; // -> filter.cxx, zeigt Dateiende an
-extern sal_Char* pPuffer0; // -> memory.cxx
-extern sal_Char* pPuffer1;
-extern BYTE nDefaultFormat; // -> tool.cxx, Default-Zellenformat
-extern ScDocument* pDoc; // -> filter.cxx, Aufhaenger zum Dokumentzugriff
-extern BYTE* pFormelBuffer; // -> memory.cxx, fuer
-extern CharSet eCharVon; // -> filter.cxx, character set specified
+extern sal_Char* pAnsi; // -> memory.cxx, Puffer zum Umwandeln von OEM->ANSI
+extern sal_Char* pErgebnis; // -> memory.cxx, Ergebnispuffer
+extern WKTYP eTyp; // -> filter.cxx, aktueller Dateityp
+extern BOOL bEOF; // -> filter.cxx, zeigt Dateiende an
+extern sal_Char* pPuffer0; // -> memory.cxx
+extern sal_Char* pPuffer1;
+extern BYTE nDefaultFormat; // -> tool.cxx, Default-Zellenformat
+extern ScDocument* pDoc; // -> filter.cxx, Aufhaenger zum Dokumentzugriff
+extern BYTE* pFormelBuffer; // -> memory.cxx, fuer
+extern CharSet eCharVon; // -> filter.cxx, character set specified
-static UINT16 nDefWidth = ( UINT16 ) ( TWIPS_PER_CHAR * 10 );
+static UINT16 nDefWidth = ( UINT16 ) ( TWIPS_PER_CHAR * 10 );
extern std::map<UINT16, ScPatternAttr> aLotusPatternPool;
@@ -113,14 +113,14 @@ void OP_EOF( SvStream& /*r*/, UINT16 /*n*/ )
void OP_Integer( SvStream& r, UINT16 /*n*/ )
{
- BYTE nFormat;
- UINT16 nCol, nRow;
- SCTAB nTab = 0;
- INT16 nValue;
+ BYTE nFormat;
+ UINT16 nCol, nRow;
+ SCTAB nTab = 0;
+ INT16 nValue;
r >> nFormat >> nCol >> nRow >> nValue;
- ScValueCell* pZelle = new ScValueCell( ( double ) nValue );
+ ScValueCell* pZelle = new ScValueCell( ( double ) nValue );
pDoc->PutCell( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), nTab, pZelle, ( BOOL ) TRUE );
// 0 Stellen nach'm Komma!
@@ -130,15 +130,15 @@ void OP_Integer( SvStream& r, UINT16 /*n*/ )
void OP_Number( SvStream& r, UINT16 /*n*/ )
{
- BYTE nFormat;
- UINT16 nCol, nRow;
- SCTAB nTab = 0;
- double fValue;
+ BYTE nFormat;
+ UINT16 nCol, nRow;
+ SCTAB nTab = 0;
+ double fValue;
r >> nFormat >> nCol >> nRow >> fValue;
fValue = ::rtl::math::round( fValue, 15 );
- ScValueCell* pZelle = new ScValueCell( fValue );
+ ScValueCell* pZelle = new ScValueCell( fValue );
pDoc->PutCell( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), nTab, pZelle, ( BOOL ) TRUE );
SetFormat( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), nTab, nFormat, nDezFloat );
@@ -147,9 +147,9 @@ void OP_Number( SvStream& r, UINT16 /*n*/ )
void OP_Label( SvStream& r, UINT16 n )
{
- BYTE nFormat;
- UINT16 nCol, nRow;
- SCTAB nTab = 0;
+ BYTE nFormat;
+ UINT16 nCol, nRow;
+ SCTAB nTab = 0;
r >> nFormat >> nCol >> nRow;
n -= 5;
@@ -170,23 +170,23 @@ void OP_Label( SvStream& r, UINT16 n )
void OP_Formula( SvStream& r, UINT16 /*n*/ )
{
- BYTE nFormat;
- UINT16 nCol, nRow, nFormulaSize;
- SCTAB nTab = 0;
+ BYTE nFormat;
+ UINT16 nCol, nRow, nFormulaSize;
+ SCTAB nTab = 0;
r >> nFormat >> nCol >> nRow;
r.SeekRel( 8 ); // Ergebnis ueberspringen
r >> nFormulaSize;
- const ScTokenArray* pErg;
- INT32 nBytesLeft = nFormulaSize;
- ScAddress aAddress( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), nTab );
+ const ScTokenArray* pErg;
+ INT32 nBytesLeft = nFormulaSize;
+ ScAddress aAddress( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), nTab );
- LotusToSc aConv( r, pLotusRoot->eCharsetQ, FALSE );
+ LotusToSc aConv( r, pLotusRoot->eCharsetQ, FALSE );
aConv.Reset( aAddress );
aConv.Convert( pErg, nBytesLeft );
- ScFormulaCell* pZelle = new ScFormulaCell( pLotusRoot->pDoc, aAddress, pErg );
+ ScFormulaCell* pZelle = new ScFormulaCell( pLotusRoot->pDoc, aAddress, pErg );
pZelle->AddRecalcMode( RECALCMODE_ONLOAD_ONCE );
@@ -199,9 +199,9 @@ void OP_Formula( SvStream& r, UINT16 /*n*/ )
void OP_ColumnWidth( SvStream& r, UINT16 /*n*/ )
{
- UINT16 nCol, nBreite;
- BYTE nWidthSpaces;
- SCTAB nTab = 0;
+ UINT16 nCol, nBreite;
+ BYTE nWidthSpaces;
+ SCTAB nTab = 0;
r >> nCol >> nWidthSpaces;
@@ -221,14 +221,14 @@ void OP_ColumnWidth( SvStream& r, UINT16 /*n*/ )
void OP_NamedRange( SvStream& r, UINT16 /*n*/ )
{
// POST: waren Koordinaten ungueltig, wird nicht gespeichert
- UINT16 nColSt, nRowSt, nColEnd, nRowEnd;
- sal_Char cPuffer[ 32 ];
+ UINT16 nColSt, nRowSt, nColEnd, nRowEnd;
+ sal_Char cPuffer[ 32 ];
r.Read( cPuffer, 16 );
r >> nColSt >> nRowSt >> nColEnd >> nRowEnd;
- LotusRange* pRange;
+ LotusRange* pRange;
if( nColSt == nColEnd && nRowSt == nRowEnd )
pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt) );
@@ -236,14 +236,14 @@ void OP_NamedRange( SvStream& r, UINT16 /*n*/ )
pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt), static_cast<SCCOL> (nColEnd), static_cast<SCROW> (nRowEnd) );
if( isdigit( *cPuffer ) )
- { // erstes Zeichen im Namen eine Zahl -> 'A' vor Namen setzen
+ { // erstes Zeichen im Namen eine Zahl -> 'A' vor Namen setzen
*pAnsi = 'A';
strcpy( pAnsi + 1, cPuffer ); // #100211# - checked
}
else
strcpy( pAnsi, cPuffer ); // #100211# - checked
- String aTmp( pAnsi, pLotusRoot->eCharsetQ );
+ String aTmp( pAnsi, pLotusRoot->eCharsetQ );
ScfTools::ConvertToScDefinedName( aTmp );
@@ -254,10 +254,10 @@ void OP_NamedRange( SvStream& r, UINT16 /*n*/ )
void OP_SymphNamedRange( SvStream& r, UINT16 /*n*/ )
{
// POST: waren Koordinaten ungueltig, wird nicht gespeichert
- UINT16 nColSt, nRowSt, nColEnd, nRowEnd;
- BYTE nType;
- sal_Char* pName;
- sal_Char cPuffer[ 32 ];
+ UINT16 nColSt, nRowSt, nColEnd, nRowEnd;
+ BYTE nType;
+ sal_Char* pName;
+ sal_Char cPuffer[ 32 ];
r.Read( cPuffer, 16 );
cPuffer[ 16 ] = 0;
@@ -265,7 +265,7 @@ void OP_SymphNamedRange( SvStream& r, UINT16 /*n*/ )
r >> nColSt >> nRowSt >> nColEnd >> nRowEnd >> nType;
- LotusRange* pRange;
+ LotusRange* pRange;
if( nType )
pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt) );
@@ -273,14 +273,14 @@ void OP_SymphNamedRange( SvStream& r, UINT16 /*n*/ )
pRange = new LotusRange( static_cast<SCCOL> (nColSt), static_cast<SCROW> (nRowSt), static_cast<SCCOL> (nColEnd), static_cast<SCROW> (nRowEnd) );
if( isdigit( *cPuffer ) )
- { // erstes Zeichen im Namen eine Zahl -> 'A' vor Namen setzen
+ { // erstes Zeichen im Namen eine Zahl -> 'A' vor Namen setzen
*pAnsi = 'A';
strcpy( pAnsi + 1, cPuffer ); // #100211# - checked
}
else
strcpy( pAnsi, cPuffer ); // #100211# - checked
- String aTmp( pAnsi, pLotusRoot->eCharsetQ );
+ String aTmp( pAnsi, pLotusRoot->eCharsetQ );
ScfTools::ConvertToScDefinedName( aTmp );
pLotusRoot->pRangeNames->Append( pRange, aTmp );
@@ -307,9 +307,9 @@ void OP_Margins( SvStream& r, UINT16 n )
void OP_HiddenCols( SvStream& r, UINT16 /*n*/ )
{
- UINT16 nByte, nBit;
- SCCOL nCount;
- BYTE nAkt;
+ UINT16 nByte, nBit;
+ SCCOL nCount;
+ BYTE nAkt;
nCount = 0;
for( nByte = 0 ; nByte < 32 ; nByte++ ) // 32 Bytes mit ...
@@ -350,8 +350,8 @@ void OP_Window1( SvStream& r, UINT16 n )
void OP_Blank( SvStream& r, UINT16 /*n*/ )
{
- UINT16 nCol, nRow;
- BYTE nFormat;
+ UINT16 nCol, nRow;
+ BYTE nFormat;
r >> nFormat >> nCol >> nRow;
SetFormat( static_cast<SCCOL> (nCol), static_cast<SCROW> (nRow), 0, nFormat, nDezFloat );
@@ -405,15 +405,15 @@ void OP_Formula123( SvStream& r, UINT16 n )
r >> nRow >> nTab >> nCol;
r.SeekRel( 8 ); // Result- jump over
- const ScTokenArray* pErg;
- INT32 nBytesLeft = n - 12;
- ScAddress aAddress( nCol, nRow, nTab );
+ const ScTokenArray* pErg;
+ INT32 nBytesLeft = n - 12;
+ ScAddress aAddress( nCol, nRow, nTab );
- LotusToSc aConv( r, pLotusRoot->eCharsetQ, TRUE );
+ LotusToSc aConv( r, pLotusRoot->eCharsetQ, TRUE );
aConv.Reset( aAddress );
aConv.Convert( pErg, nBytesLeft );
- ScFormulaCell* pCell = new ScFormulaCell( pLotusRoot->pDoc, aAddress, pErg );
+ ScFormulaCell* pCell = new ScFormulaCell( pLotusRoot->pDoc, aAddress, pErg );
pCell->AddRecalcMode( RECALCMODE_ONLOAD_ONCE );
diff --git a/sc/source/filter/lotus/optab.cxx b/sc/source/filter/lotus/optab.cxx
index bf880614d48d..d2113e334274 100644
--- a/sc/source/filter/lotus/optab.cxx
+++ b/sc/source/filter/lotus/optab.cxx
@@ -2,7 +2,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
@@ -37,215 +37,215 @@
// Bearbeitungsfunktion sal_Char *X( sal_Char * )
OPCODE_FKT pOpFkt[ FKT_LIMIT ] =
-{ // Code
- OP_BOF, // 0
- OP_EOF, // 1
- NI, // 2
- NI, // 3
- NI, // 4
- NI, // 5
- NI, // 6
- OP_Window1, // 7
- OP_ColumnWidth, // 8
- NI, // 9
- NI, // 10
- OP_NamedRange, // 11
- OP_Blank, // 12
- OP_Integer, // 13
- OP_Number, // 14
- OP_Label, // 15
- OP_Formula, // 16
- NI, // 17
- NI, // 18
- NI, // 19
- NI, // 20
- NI, // 21
- NI, // 22
- NI, // 23
- NI, // 24
- NI, // 25
- NI, // 26
- NI, // 27
- NI, // 28
- NI, // 29
- NI, // 30
- NI, // 31
- NI, // 32
- NI, // 33
- NI, // 34
- NI, // 35
- NI, // 36
- OP_Footer, // 37
- OP_Header, // 38
- NI, // 39
- OP_Margins, // 40
- NI, // 41
- NI, // 42
- NI, // 43
- NI, // 44
- NI, // 45
- NI, // 46
- NI, // 47
- NI, // 48
- NI, // 49
- NI, // 50
- NI, // 51
- NI, // 52
- NI, // 53
- NI, // 54
- NI, // 55
- NI, // 56
- NI, // 57
- NI, // 58
- NI, // 59
- NI, // 60
- NI, // 61
- NI, // 62
- NI, // 63
- NI, // 64
- NI, // 65
- NI, // 66
- NI, // 67
- NI, // 68
- NI, // 69
- NI, // 70
- OP_SymphNamedRange, // 71
- NI, // 72
- NI, // 73
- NI, // 74
- NI, // 75
- NI, // 76
- NI, // 77
- NI, // 78
- NI, // 79
- NI, // 80
- NI, // 81
- NI, // 82
- NI, // 83
- NI, // 84
- NI, // 85
- NI, // 86
- NI, // 87
- NI, // 88
- NI, // 89
- NI, // 90
- NI, // 91
- NI, // 92
- NI, // 93
- NI, // 94
- NI, // 95
- NI, // 96
- NI, // 97
- NI, // 98
- NI, // 99
- OP_HiddenCols, // 100
+{ // Code
+ OP_BOF, // 0
+ OP_EOF, // 1
+ NI, // 2
+ NI, // 3
+ NI, // 4
+ NI, // 5
+ NI, // 6
+ OP_Window1, // 7
+ OP_ColumnWidth, // 8
+ NI, // 9
+ NI, // 10
+ OP_NamedRange, // 11
+ OP_Blank, // 12
+ OP_Integer, // 13
+ OP_Number, // 14
+ OP_Label, // 15
+ OP_Formula, // 16
+ NI, // 17
+ NI, // 18
+ NI, // 19
+ NI, // 20
+ NI, // 21
+ NI, // 22
+ NI, // 23
+ NI, // 24
+ NI, // 25
+ NI, // 26
+ NI, // 27
+ NI, // 28
+ NI, // 29
+ NI, // 30
+ NI, // 31
+ NI, // 32
+ NI, // 33
+ NI, // 34
+ NI, // 35
+ NI, // 36
+ OP_Footer, // 37
+ OP_Header, // 38
+ NI, // 39
+ OP_Margins, // 40
+ NI, // 41
+ NI, // 42
+ NI, // 43
+ NI, // 44
+ NI, // 45
+ NI, // 46
+ NI, // 47
+ NI, // 48
+ NI, // 49
+ NI, // 50
+ NI, // 51
+ NI, // 52
+ NI, // 53
+ NI, // 54
+ NI, // 55
+ NI, // 56
+ NI, // 57
+ NI, // 58
+ NI, // 59
+ NI, // 60
+ NI, // 61
+ NI, // 62
+ NI, // 63
+ NI, // 64
+ NI, // 65
+ NI, // 66
+ NI, // 67
+ NI, // 68
+ NI, // 69
+ NI, // 70
+ OP_SymphNamedRange, // 71
+ NI, // 72
+ NI, // 73
+ NI, // 74
+ NI, // 75
+ NI, // 76
+ NI, // 77
+ NI, // 78
+ NI, // 79
+ NI, // 80
+ NI, // 81
+ NI, // 82
+ NI, // 83
+ NI, // 84
+ NI, // 85
+ NI, // 86
+ NI, // 87
+ NI, // 88
+ NI, // 89
+ NI, // 90
+ NI, // 91
+ NI, // 92
+ NI, // 93
+ NI, // 94
+ NI, // 95
+ NI, // 96
+ NI, // 97
+ NI, // 98
+ NI, // 99
+ OP_HiddenCols, // 100
};
OPCODE_FKT pOpFkt123[ FKT_LIMIT123 ] =
-{ // Code
- OP_BOF123, // 0
- OP_EOF123, // 1
- NI, // 2
- NI, // 3
- NI, // 4
- NI, // 5
- NI, // 6
- NI, // 7
- NI, // 8
- NI, // 9
- NI, // 10
- NI, // 11
- NI, // 12
- NI, // 13
- NI, // 14
- NI, // 15
- NI, // 16
- NI, // 17
- NI, // 18
- NI, // 19
- NI, // 20
- NI, // 21
- OP_Label123, // 22
- NI, // 23
- NI, // 24
- NI, // 25
- NI, // 26
- OP_CreatePattern123, // 27
- NI, // 28
- NI, // 29
- NI, // 30
- NI, // 31
- NI, // 32
- NI, // 33
- NI, // 34
+{ // Code
+ OP_BOF123, // 0
+ OP_EOF123, // 1
+ NI, // 2
+ NI, // 3
+ NI, // 4
+ NI, // 5
+ NI, // 6
+ NI, // 7
+ NI, // 8
+ NI, // 9
+ NI, // 10
+ NI, // 11
+ NI, // 12
+ NI, // 13
+ NI, // 14
+ NI, // 15
+ NI, // 16
+ NI, // 17
+ NI, // 18
+ NI, // 19
+ NI, // 20
+ NI, // 21
+ OP_Label123, // 22
+ NI, // 23
+ NI, // 24
+ NI, // 25
+ NI, // 26
+ OP_CreatePattern123, // 27
+ NI, // 28
+ NI, // 29
+ NI, // 30
+ NI, // 31
+ NI, // 32
+ NI, // 33
+ NI, // 34
OP_SheetName123, // 35
- NI, // 36
- OP_Number123, // 37
- OP_Note123, // 38
- OP_IEEENumber123, // 39
- OP_Formula123, // 40
- NI, // 41
- NI, // 42
- NI, // 43
- NI, // 44
- NI, // 45
- NI, // 46
- NI, // 47
- NI, // 48
- NI, // 49
- NI, // 50
- NI, // 51
- NI, // 52
- NI, // 53
- NI, // 54
- NI, // 55
- NI, // 56
- NI, // 57
- NI, // 58
- NI, // 59
- NI, // 60
- NI, // 61
- NI, // 62
- NI, // 63
- NI, // 64
- NI, // 65
- NI, // 66
- NI, // 67
- NI, // 68
- NI, // 69
- NI, // 70
- NI, // 71
- NI, // 72
- NI, // 73
- NI, // 74
- NI, // 75
- NI, // 76
- NI, // 77
- NI, // 78
- NI, // 79
- NI, // 80
- NI, // 81
- NI, // 82
- NI, // 83
- NI, // 84
- NI, // 85
- NI, // 86
- NI, // 87
- NI, // 88
- NI, // 89
- NI, // 90
- NI, // 91
- NI, // 92
- NI, // 93
- NI, // 94
- NI, // 95
- NI, // 96
- NI, // 97
- NI, // 98
- NI, // 99
- NI // 100
+ NI, // 36
+ OP_Number123, // 37
+ OP_Note123, // 38
+ OP_IEEENumber123, // 39
+ OP_Formula123, // 40
+ NI, // 41
+ NI, // 42
+ NI, // 43
+ NI, // 44
+ NI, // 45
+ NI, // 46
+ NI, // 47
+ NI, // 48
+ NI, // 49
+ NI, // 50
+ NI, // 51
+ NI, // 52
+ NI, // 53
+ NI, // 54
+ NI, // 55
+ NI, // 56
+ NI, // 57
+ NI, // 58
+ NI, // 59
+ NI, // 60
+ NI, // 61
+ NI, // 62
+ NI, // 63
+ NI, // 64
+ NI, // 65
+ NI, // 66
+ NI, // 67
+ NI, // 68
+ NI, // 69
+ NI, // 70
+ NI, // 71
+ NI, // 72
+ NI, // 73
+ NI, // 74
+ NI, // 75
+ NI, // 76
+ NI, // 77
+ NI, // 78
+ NI, // 79
+ NI, // 80
+ NI, // 81
+ NI, // 82
+ NI, // 83
+ NI, // 84
+ NI, // 85
+ NI, // 86
+ NI, // 87
+ NI, // 88
+ NI, // 89
+ NI, // 90
+ NI, // 91
+ NI, // 92
+ NI, // 93
+ NI, // 94
+ NI, // 95
+ NI, // 96
+ NI, // 97
+ NI, // 98
+ NI, // 99
+ NI // 100
};
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx
index 688334f5ec14..970e24763d97 100644
--- a/sc/source/filter/lotus/tool.cxx
+++ b/sc/source/filter/lotus/tool.cxx
@@ -2,7 +2,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
@@ -57,29 +57,29 @@
#endif
//--------------------------------------------------------- EXTERNE VARIABLEN -
-extern WKTYP eTyp; // -> filter.cxx, aktueller Dateityp
-extern sal_Char* pDummy2; // -> memory.cxx
-extern ScDocument* pDoc; // -> filter.cxx, Aufhaenger zum Dokumentzugriff
-extern CharSet eCharNach; // -> filter.cxx, Zeichenkonvertierung von->nach
+extern WKTYP eTyp; // -> filter.cxx, aktueller Dateityp
+extern sal_Char* pDummy2; // -> memory.cxx
+extern ScDocument* pDoc; // -> filter.cxx, Aufhaenger zum Dokumentzugriff
+extern CharSet eCharNach; // -> filter.cxx, Zeichenkonvertierung von->nach
-extern BOOL bFormInit; // -> memory.cxx, fuer GetFormHandle()
+extern BOOL bFormInit; // -> memory.cxx, fuer GetFormHandle()
//--------------------------------------------------------- GLOBALE VARIABLEN -
-BYTE nDefaultFormat; // -> op.cpp, Standard-Zellenformat
+BYTE nDefaultFormat; // -> op.cpp, Standard-Zellenformat
-extern SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter, *pAttrRepeat, *pAttrStandard;
-extern ScProtectionAttr* pAttrUnprot;
-extern SfxUInt32Item** pAttrValForms;
+extern SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter, *pAttrRepeat, *pAttrStandard;
+extern ScProtectionAttr* pAttrUnprot;
+extern SfxUInt32Item** pAttrValForms;
-SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter, *pAttrRepeat, *pAttrStandard;
+SvxHorJustifyItem *pAttrRight, *pAttrLeft, *pAttrCenter, *pAttrRepeat, *pAttrStandard;
// -> in memory.cxx initialisiert
-ScProtectionAttr* pAttrUnprot; // -> " memory.cxx "
+ScProtectionAttr* pAttrUnprot; // -> " memory.cxx "
-extern FormCache* pValueFormCache; // -> in memory.cxx initialisiert
-FormCache* pValueFormCache;
+extern FormCache* pValueFormCache; // -> in memory.cxx initialisiert
+FormCache* pValueFormCache;
-SCCOL LotusRangeList::nEingCol;
-SCROW LotusRangeList::nEingRow;
+SCCOL LotusRangeList::nEingCol;
+SCROW LotusRangeList::nEingRow;
@@ -89,8 +89,8 @@ void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char* pString )
// Label-Format-Auswertung
DBG_ASSERT( pString != NULL, "PutFormString(): pString == NULL" );
- sal_Char cForm;
- SvxHorJustifyItem* pJustify = NULL;
+ sal_Char cForm;
+ SvxHorJustifyItem* pJustify = NULL;
cForm = *pString;
@@ -122,7 +122,7 @@ void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char* pString )
if( pString )
{
pDoc->ApplyAttr( nCol, nRow, nTab, *pJustify );
- ScStringCell* pZelle = new ScStringCell( String( pString, pLotusRoot->eCharsetQ ) );
+ ScStringCell* pZelle = new ScStringCell( String( pString, pLotusRoot->eCharsetQ ) );
pDoc->PutCell( nCol, nRow, nTab, pZelle, ( BOOL ) TRUE );
}
}
@@ -143,7 +143,7 @@ void SetFormat( SCCOL nCol, SCROW nRow, SCTAB nTab, BYTE nFormat, BYTE nSt )
}
void InitPage( void )
-{ // Seitenformat initialisieren, d.h. Default-Werte von SC holen
+{ // Seitenformat initialisieren, d.h. Default-Werte von SC holen
//scGetPageFormat( 0, &aPage );
}
@@ -160,7 +160,7 @@ double SnumToDouble( INT16 nVal )
0.0625,
0.015625 };
- double fVal;
+ double fVal;
if( nVal & 0x0001 )
{
@@ -194,7 +194,7 @@ double Snum32ToDouble( UINT32 nValue )
FormCache::FormCache( ScDocument* pDoc1, BYTE nNewDefaultFormat )
-{ // Default-Format ist 'Default'
+{ // Default-Format ist 'Default'
nDefaultFormat = nNewDefaultFormat;
pFormTable = pDoc1->GetFormatTable();
for( UINT16 nC = 0 ; nC < __nSize ; nC++ )
@@ -213,14 +213,14 @@ FormCache::~FormCache()
SfxUInt32Item* FormCache::NewAttr( BYTE nFormat, BYTE nSt )
{
// neues Format erzeugen
- BYTE nL, nH; // Low-/High-Nibble
- BYTE nForm = nFormat;
- String aFormString;
+ BYTE nL, nH; // Low-/High-Nibble
+ BYTE nForm = nFormat;
+ String aFormString;
const sal_Char* pFormString = 0;
- INT16 eType = NUMBERFORMAT_ALL;
+ INT16 eType = NUMBERFORMAT_ALL;
UINT32 nIndex1;
- UINT32 nHandle;
- BOOL bDefault = FALSE;
+ UINT32 nHandle;
+ BOOL bDefault = FALSE;
//void GenerateFormat( aFormString, eType, COUNTRY_SYSTEM, LANGUAGE_SYSTEM,
// BOOL bThousand, BOOL IsRed, UINT16 nPrecision, UINT16 nAnzLeading );
@@ -384,7 +384,7 @@ SfxUInt32Item* FormCache::NewAttr( BYTE nFormat, BYTE nSt )
if( pFormString )
aFormString.AssignAscii( pFormString );
- xub_StrLen nDummy;
+ xub_StrLen nDummy;
pFormTable->PutEntry( aFormString, nDummy, eType, nHandle, eLanguage );
}
@@ -442,7 +442,7 @@ LotusRangeList::LotusRangeList( void )
{
aComplRef.InitFlags();
- ScSingleRefData* pSingRef;
+ ScSingleRefData* pSingRef;
nIdCnt = 1;
pSingRef = &aComplRef.Ref1;
@@ -475,7 +475,7 @@ LotusRangeList::~LotusRangeList( void )
LR_ID LotusRangeList::GetIndex( const LotusRange &rRef )
{
- LotusRange* pComp = ( LotusRange* ) List::First();
+ LotusRange* pComp = ( LotusRange* ) List::First();
while( pComp )
{
@@ -493,9 +493,9 @@ void LotusRangeList::Append( LotusRange* pLR, const String& rName )
DBG_ASSERT( pLR, "*LotusRangeList::Append(): das wird nichts!" );
List::Insert( pLR, CONTAINER_APPEND );
- ScTokenArray aTokArray;
+ ScTokenArray aTokArray;
- ScSingleRefData* pSingRef = &aComplRef.Ref1;
+ ScSingleRefData* pSingRef = &aComplRef.Ref1;
pSingRef->nCol = pLR->nColStart;
pSingRef->nRow = pLR->nRowStart;
@@ -510,7 +510,7 @@ void LotusRangeList::Append( LotusRange* pLR, const String& rName )
aTokArray.AddDoubleReference( aComplRef );
}
- ScRangeData* pData = new ScRangeData(
+ ScRangeData* pData = new ScRangeData(
pLotusRoot->pDoc, rName, aTokArray );
pLotusRoot->pScRangeName->Insert( pData );
@@ -532,7 +532,7 @@ RangeNameBufferWK3::RangeNameBufferWK3( void )
RangeNameBufferWK3::~RangeNameBufferWK3()
{
- ENTRY* pDel = ( ENTRY* ) List::First();
+ ENTRY* pDel = ( ENTRY* ) List::First();
while( pDel )
{
@@ -546,17 +546,17 @@ RangeNameBufferWK3::~RangeNameBufferWK3()
void RangeNameBufferWK3::Add( const String& rOrgName, const ScComplexRefData& rCRD )
{
- String aScName( rOrgName );
+ String aScName( rOrgName );
ScfTools::ConvertToScDefinedName( aScName );
- register ENTRY* pInsert = new ENTRY( rOrgName, aScName, rCRD );
+ register ENTRY* pInsert = new ENTRY( rOrgName, aScName, rCRD );
List::Insert( pInsert, CONTAINER_APPEND );
pScTokenArray->Clear();
- register const ScSingleRefData& rRef1 = rCRD.Ref1;
- register const ScSingleRefData& rRef2 = rCRD.Ref2;
+ register const ScSingleRefData& rRef1 = rCRD.Ref1;
+ register const ScSingleRefData& rRef2 = rCRD.Ref2;
if( rRef1.nCol == rRef2.nCol && rRef1.nRow == rRef2.nRow && rRef1.nTab == rRef2.nTab )
{
@@ -569,7 +569,7 @@ void RangeNameBufferWK3::Add( const String& rOrgName, const ScComplexRefData& rC
pInsert->bSingleRef = FALSE;
}
- ScRangeData* pData = new ScRangeData( pLotusRoot->pDoc, aScName, *pScTokenArray );
+ ScRangeData* pData = new ScRangeData( pLotusRoot->pDoc, aScName, *pScTokenArray );
pInsert->nRelInd = nIntCount;
pData->SetIndex( nIntCount );
@@ -581,9 +581,9 @@ void RangeNameBufferWK3::Add( const String& rOrgName, const ScComplexRefData& rC
BOOL RangeNameBufferWK3::FindRel( const String& rRef, UINT16& rIndex )
{
- StringHashEntry aRef( rRef );
+ StringHashEntry aRef( rRef );
- ENTRY* pFind = ( ENTRY* ) List::First();
+ ENTRY* pFind = ( ENTRY* ) List::First();
while( pFind )
{
@@ -601,10 +601,10 @@ BOOL RangeNameBufferWK3::FindRel( const String& rRef, UINT16& rIndex )
BOOL RangeNameBufferWK3::FindAbs( const String& rRef, UINT16& rIndex )
{
- String aTmp( rRef );
- StringHashEntry aRef( aTmp.Erase( 0, 1 ) ); // ohne '$' suchen!
+ String aTmp( rRef );
+ StringHashEntry aRef( aTmp.Erase( 0, 1 ) ); // ohne '$' suchen!
- ENTRY* pFind = ( ENTRY* ) List::First();
+ ENTRY* pFind = ( ENTRY* ) List::First();
while( pFind )
{
@@ -615,7 +615,7 @@ BOOL RangeNameBufferWK3::FindAbs( const String& rRef, UINT16& rIndex )
rIndex = pFind->nAbsInd;
else
{
- ScSingleRefData* pRef = &pFind->aScComplexRefDataRel.Ref1;
+ ScSingleRefData* pRef = &pFind->aScComplexRefDataRel.Ref1;
pScTokenArray->Clear();
pRef->SetColRel( FALSE );
@@ -633,7 +633,7 @@ BOOL RangeNameBufferWK3::FindAbs( const String& rRef, UINT16& rIndex )
pScTokenArray->AddDoubleReference( pFind->aScComplexRefDataRel );
}
- ScRangeData* pData = new ScRangeData( pLotusRoot->pDoc, pFind->aScAbsName, *pScTokenArray );
+ ScRangeData* pData = new ScRangeData( pLotusRoot->pDoc, pFind->aScAbsName, *pScTokenArray );
rIndex = pFind->nAbsInd = nIntCount;
pData->SetIndex( rIndex );