summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/excel/tokstack.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/tokstack.cxx')
-rw-r--r--sc/source/filter/excel/tokstack.cxx110
1 files changed, 55 insertions, 55 deletions
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index b61a844d02a5..d845ae5f6b5b 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -40,10 +40,10 @@
#include <stdio.h> // printf
-const UINT16 TokenPool::nScTokenOff = 8192;
+const sal_uInt16 TokenPool::nScTokenOff = 8192;
-TokenStack::TokenStack( UINT16 nNewSize )
+TokenStack::TokenStack( sal_uInt16 nNewSize )
{
pStack = new TokenId[ nNewSize ];
@@ -69,17 +69,17 @@ TokenStack::~TokenStack()
TokenPool::TokenPool( void )
{
- UINT16 nLauf = nScTokenOff;
+ sal_uInt16 nLauf = nScTokenOff;
// Sammelstelle fuer Id-Folgen
nP_Id = 256;
- pP_Id = new UINT16[ nP_Id ];
+ pP_Id = new sal_uInt16[ nP_Id ];
// Sammelstelle fuer Ids
nElement = 32;
- pElement = new UINT16[ nElement ];
+ pElement = new sal_uInt16[ nElement ];
pType = new E_TYPE[ nElement ];
- pSize = new UINT16[ nElement ];
+ pSize = new sal_uInt16[ nElement ];
nP_IdLast = 0;
// Sammelstelle fuer Strings
@@ -94,7 +94,7 @@ TokenPool::TokenPool( void )
// Sammelstelle fuer error codes
nP_Err = 8;
- pP_Err = new USHORT[ nP_Err ];
+ pP_Err = new sal_uInt16[ nP_Err ];
// Sammelstellen fuer Referenzen
nP_RefTr = 32;
@@ -122,7 +122,7 @@ TokenPool::TokenPool( void )
TokenPool::~TokenPool()
{
- UINT16 n;
+ sal_uInt16 n;
delete[] pP_Id;
delete[] pElement;
@@ -172,8 +172,8 @@ TokenPool::~TokenPool()
void TokenPool::GrowString( void )
{
- UINT16 nP_StrNew = nP_Str * 2;
- UINT16 nL;
+ sal_uInt16 nP_StrNew = nP_Str * 2;
+ sal_uInt16 nL;
String** ppP_StrNew = new String *[ nP_StrNew ];
@@ -191,11 +191,11 @@ void TokenPool::GrowString( void )
void TokenPool::GrowDouble( void )
{
- UINT16 nP_DblNew = nP_Dbl * 2;
+ sal_uInt16 nP_DblNew = nP_Dbl * 2;
double* pP_DblNew = new double[ nP_DblNew ];
- for( UINT16 nL = 0 ; nL < nP_Dbl ; nL++ )
+ for( sal_uInt16 nL = 0 ; nL < nP_Dbl ; nL++ )
pP_DblNew[ nL ] = pP_Dbl[ nL ];
nP_Dbl = nP_DblNew;
@@ -207,11 +207,11 @@ void TokenPool::GrowDouble( void )
//UNUSED2009-05 void TokenPool::GrowError( void )
//UNUSED2009-05 {
-//UNUSED2009-05 UINT16 nP_ErrNew = nP_Err * 2;
+//UNUSED2009-05 sal_uInt16 nP_ErrNew = nP_Err * 2;
//UNUSED2009-05
-//UNUSED2009-05 USHORT* pP_ErrNew = new USHORT[ nP_ErrNew ];
+//UNUSED2009-05 sal_uInt16* pP_ErrNew = new sal_uInt16[ nP_ErrNew ];
//UNUSED2009-05
-//UNUSED2009-05 for( UINT16 nL = 0 ; nL < nP_Err ; nL++ )
+//UNUSED2009-05 for( sal_uInt16 nL = 0 ; nL < nP_Err ; nL++ )
//UNUSED2009-05 pP_ErrNew[ nL ] = pP_Err[ nL ];
//UNUSED2009-05
//UNUSED2009-05 nP_Err = nP_ErrNew;
@@ -223,8 +223,8 @@ void TokenPool::GrowDouble( void )
void TokenPool::GrowTripel( void )
{
- UINT16 nP_RefTrNew = nP_RefTr * 2;
- UINT16 nL;
+ sal_uInt16 nP_RefTrNew = nP_RefTr * 2;
+ sal_uInt16 nL;
ScSingleRefData** ppP_RefTrNew = new ScSingleRefData *[ nP_RefTrNew ];
@@ -242,11 +242,11 @@ void TokenPool::GrowTripel( void )
void TokenPool::GrowId( void )
{
- UINT16 nP_IdNew = nP_Id * 2;
+ sal_uInt16 nP_IdNew = nP_Id * 2;
- UINT16* pP_IdNew = new UINT16[ nP_IdNew ];
+ sal_uInt16* pP_IdNew = new sal_uInt16[ nP_IdNew ];
- for( UINT16 nL = 0 ; nL < nP_Id ; nL++ )
+ for( sal_uInt16 nL = 0 ; nL < nP_Id ; nL++ )
pP_IdNew[ nL ] = pP_Id[ nL ];
nP_Id = nP_IdNew;
@@ -258,13 +258,13 @@ void TokenPool::GrowId( void )
void TokenPool::GrowElement( void )
{
- UINT16 nElementNew = nElement * 2;
+ sal_uInt16 nElementNew = nElement * 2;
- UINT16* pElementNew = new UINT16[ nElementNew ];
+ sal_uInt16* pElementNew = new sal_uInt16[ nElementNew ];
E_TYPE* pTypeNew = new E_TYPE[ nElementNew ];
- UINT16* pSizeNew = new UINT16[ nElementNew ];
+ sal_uInt16* pSizeNew = new sal_uInt16[ nElementNew ];
- for( UINT16 nL = 0 ; nL < nElement ; nL++ )
+ for( sal_uInt16 nL = 0 ; nL < nElement ; nL++ )
{
pElementNew[ nL ] = pElement[ nL ];
pTypeNew[ nL ] = pType[ nL ];
@@ -284,7 +284,7 @@ void TokenPool::GrowElement( void )
void TokenPool::GrowExt( void )
{
- UINT16 nNewSize = nP_Ext * 2;
+ sal_uInt16 nNewSize = nP_Ext * 2;
EXTCONT** ppNew = new EXTCONT*[ nNewSize ];
@@ -299,7 +299,7 @@ void TokenPool::GrowExt( void )
void TokenPool::GrowNlf( void )
{
- UINT16 nNewSize = nP_Nlf * 2;
+ sal_uInt16 nNewSize = nP_Nlf * 2;
NLFCONT** ppNew = new NLFCONT*[ nNewSize ];
@@ -314,7 +314,7 @@ void TokenPool::GrowNlf( void )
void TokenPool::GrowMatrix( void )
{
- UINT16 nNewSize = nP_Matrix * 2;
+ sal_uInt16 nNewSize = nP_Matrix * 2;
ScMatrix** ppNew = new ScMatrix*[ nNewSize ];
@@ -326,7 +326,7 @@ void TokenPool::GrowMatrix( void )
nP_Matrix = nNewSize;
}
-void TokenPool::GetElement( const UINT16 nId )
+void TokenPool::GetElement( const sal_uInt16 nId )
{
DBG_ASSERT( nId < nElementAkt, "*TokenPool::GetElement(): Id zu gross!?" );
@@ -353,7 +353,7 @@ void TokenPool::GetElement( const UINT16 nId )
#endif
break;
case T_RefC:
- pScToken->AddSingleReference( *ppP_RefTr[ pElement[ (UINT16) nId ] ] );
+ pScToken->AddSingleReference( *ppP_RefTr[ pElement[ (sal_uInt16) nId ] ] );
break;
case T_RefA:
{
@@ -368,7 +368,7 @@ void TokenPool::GetElement( const UINT16 nId )
break;
case T_Ext:
{
- UINT16 n = pElement[ nId ];
+ sal_uInt16 n = pElement[ nId ];
EXTCONT* p = ( n < nP_Ext )? ppP_Ext[ n ] : NULL;
if( p )
@@ -382,7 +382,7 @@ void TokenPool::GetElement( const UINT16 nId )
break;
case T_Nlf:
{
- UINT16 n = pElement[ nId ];
+ sal_uInt16 n = pElement[ nId ];
NLFCONT* p = ( n < nP_Nlf )? ppP_Nlf[ n ] : NULL;
if( p )
@@ -391,7 +391,7 @@ void TokenPool::GetElement( const UINT16 nId )
break;
case T_Matrix:
{
- UINT16 n = pElement[ nId ];
+ sal_uInt16 n = pElement[ nId ];
ScMatrix* p = ( n < nP_Matrix )? ppP_Matrix[ n ] : NULL;
if( p )
@@ -400,7 +400,7 @@ void TokenPool::GetElement( const UINT16 nId )
break;
case T_ExtName:
{
- UINT16 n = pElement[nId];
+ sal_uInt16 n = pElement[nId];
if (n < maExtNames.size())
{
const ExtName& r = maExtNames[n];
@@ -409,7 +409,7 @@ void TokenPool::GetElement( const UINT16 nId )
}
case T_ExtRefC:
{
- UINT16 n = pElement[nId];
+ sal_uInt16 n = pElement[nId];
if (n < maExtCellRefs.size())
{
const ExtCellRef& r = maExtCellRefs[n];
@@ -418,7 +418,7 @@ void TokenPool::GetElement( const UINT16 nId )
}
case T_ExtRefA:
{
- UINT16 n = pElement[nId];
+ sal_uInt16 n = pElement[nId];
if (n < maExtAreaRefs.size())
{
const ExtAreaRef& r = maExtAreaRefs[n];
@@ -433,7 +433,7 @@ void TokenPool::GetElement( const UINT16 nId )
}
-void TokenPool::GetElementRek( const UINT16 nId )
+void TokenPool::GetElementRek( const sal_uInt16 nId )
{
#ifdef DBG_UTIL
nRek++;
@@ -445,8 +445,8 @@ void TokenPool::GetElementRek( const UINT16 nId )
DBG_ASSERT( pType[ nId ] == T_Id, "-TokenPool::GetElementRek(): nId nicht Id-Folge!" );
- UINT16 nAnz = pSize[ nId ];
- UINT16* pAkt = &pP_Id[ pElement[ nId ] ];
+ sal_uInt16 nAnz = pSize[ nId ];
+ sal_uInt16* pAkt = &pP_Id[ pElement[ nId ] ];
for( ; nAnz > 0 ; nAnz--, pAkt++ )
{
if( *pAkt < nScTokenOff )
@@ -483,7 +483,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
break;
case T_Ext:
{
- UINT16 n = pElement[ *pAkt ];
+ sal_uInt16 n = pElement[ *pAkt ];
EXTCONT* p = ( n < nP_Ext )? ppP_Ext[ n ] : NULL;
if( p )
@@ -492,7 +492,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
break;
case T_Nlf:
{
- UINT16 n = pElement[ *pAkt ];
+ sal_uInt16 n = pElement[ *pAkt ];
NLFCONT* p = ( n < nP_Nlf )? ppP_Nlf[ n ] : NULL;
if( p )
@@ -501,7 +501,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
break;
case T_Matrix:
{
- UINT16 n = pElement[ *pAkt ];
+ sal_uInt16 n = pElement[ *pAkt ];
ScMatrix* p = ( n < nP_Matrix )? ppP_Matrix[ n ] : NULL;
if( p )
@@ -510,7 +510,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
break;
case T_ExtName:
{
- UINT16 n = pElement[*pAkt];
+ sal_uInt16 n = pElement[*pAkt];
if (n < maExtNames.size())
{
const ExtName& r = maExtNames[n];
@@ -519,7 +519,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
}
case T_ExtRefC:
{
- UINT16 n = pElement[*pAkt];
+ sal_uInt16 n = pElement[*pAkt];
if (n < maExtCellRefs.size())
{
const ExtCellRef& r = maExtCellRefs[n];
@@ -528,7 +528,7 @@ void TokenPool::GetElementRek( const UINT16 nId )
}
case T_ExtRefA:
{
- UINT16 n = pElement[*pAkt];
+ sal_uInt16 n = pElement[*pAkt];
if (n < maExtAreaRefs.size())
{
const ExtAreaRef& r = maExtAreaRefs[n];
@@ -590,7 +590,7 @@ const TokenId TokenPool::Store( const double& rDouble )
}
-const TokenId TokenPool::Store( const UINT16 nIndex )
+const TokenId TokenPool::Store( const sal_uInt16 nIndex )
{
if( nElementAkt >= nElement )
GrowElement();
@@ -626,7 +626,7 @@ const TokenId TokenPool::Store( const String& rString )
DBG_ASSERT( sizeof( xub_StrLen ) <= 2, "*TokenPool::Store(): StrLen doesn't match!" );
- pSize[ nElementAkt ] = ( UINT16 ) ppP_Str[ nP_StrAkt ]->Len();
+ pSize[ nElementAkt ] = ( sal_uInt16 ) ppP_Str[ nP_StrAkt ]->Len();
nElementAkt++;
nP_StrAkt++;
@@ -765,7 +765,7 @@ const TokenId TokenPool::StoreExtName( sal_uInt16 nFileId, const String& rName )
if ( nElementAkt >= nElement )
GrowElement();
- pElement[nElementAkt] = static_cast<UINT16>(maExtNames.size());
+ pElement[nElementAkt] = static_cast<sal_uInt16>(maExtNames.size());
pType[nElementAkt] = T_ExtName;
maExtNames.push_back(ExtName());
@@ -783,7 +783,7 @@ const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const String& rTabName
if ( nElementAkt >= nElement )
GrowElement();
- pElement[nElementAkt] = static_cast<UINT16>(maExtCellRefs.size());
+ pElement[nElementAkt] = static_cast<sal_uInt16>(maExtCellRefs.size());
pType[nElementAkt] = T_ExtRefC;
maExtCellRefs.push_back(ExtCellRef());
@@ -802,7 +802,7 @@ const TokenId TokenPool::StoreExtRef( sal_uInt16 nFileId, const String& rTabName
if ( nElementAkt >= nElement )
GrowElement();
- pElement[nElementAkt] = static_cast<UINT16>(maExtAreaRefs.size());
+ pElement[nElementAkt] = static_cast<sal_uInt16>(maExtAreaRefs.size());
pType[nElementAkt] = T_ExtRefA;
maExtAreaRefs.push_back(ExtAreaRef());
@@ -825,9 +825,9 @@ void TokenPool::Reset( void )
}
-BOOL TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
+sal_Bool TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
{
- UINT16 nId = (UINT16) rId;
+ sal_uInt16 nId = (sal_uInt16) rId;
if( nId && nId <= nElementAkt )
{// existent?
nId--;
@@ -835,7 +835,7 @@ BOOL TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
{// Tokenfolge?
if( pSize[ nId ] == 1 )
{// GENAU 1 Token
- UINT16 nSecId = pP_Id[ pElement[ nId ] ];
+ sal_uInt16 nSecId = pP_Id[ pElement[ nId ] ];
if( nSecId >= nScTokenOff )
{// Default-Token?
return ( DefTokenId ) ( nSecId - nScTokenOff ) == eId; // Gesuchter?
@@ -844,14 +844,14 @@ BOOL TokenPool::IsSingleOp( const TokenId& rId, const DefTokenId eId ) const
}
}
- return FALSE;
+ return sal_False;
}
const String* TokenPool::GetExternal( const TokenId& rId ) const
{
const String* p = NULL;
- UINT16 n = (UINT16) rId;
+ sal_uInt16 n = (sal_uInt16) rId;
if( n && n <= nElementAkt )
{
n--;
@@ -866,7 +866,7 @@ const String* TokenPool::GetExternal( const TokenId& rId ) const
//UNUSED2008-05 const String* TokenPool::GetString( const TokenId& r ) const
//UNUSED2008-05 {
//UNUSED2008-05 const String* p = NULL;
-//UNUSED2008-05 UINT16 n = (UINT16) r;
+//UNUSED2008-05 sal_uInt16 n = (sal_uInt16) r;
//UNUSED2008-05 if( n && n <= nElementAkt )
//UNUSED2008-05 {
//UNUSED2008-05 n--;