summaryrefslogtreecommitdiff
path: root/sc/source/filter/lotus/lotimpop.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/lotus/lotimpop.cxx')
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx88
1 files changed, 44 insertions, 44 deletions
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index 33b3c8e30b97..75ac3bedb585 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -54,7 +54,7 @@ static vos:: OMutex aLotImpSemaphore;
ImportLotus::ImportLotus( SvStream& aStream, ScDocument* pDoc, CharSet eQ ) :
ImportTyp( pDoc, eQ ),
pIn( &aStream ),
- aConv( *pIn, eQ, FALSE )
+ aConv( *pIn, eQ, sal_False )
{
// good point to start locking of import lotus
aLotImpSemaphore.acquire();
@@ -91,8 +91,8 @@ ImportLotus::~ImportLotus()
void ImportLotus::Bof( void )
{
- UINT16 nFileCode, nFileSub, nSaveCnt;
- BYTE nMajorId, nMinorId, nFlags;
+ sal_uInt16 nFileCode, nFileSub, nSaveCnt;
+ sal_uInt8 nMajorId, nMinorId, nFlags;
Read( nFileCode );
Read( nFileSub );
@@ -117,9 +117,9 @@ void ImportLotus::Bof( void )
}
-BOOL ImportLotus::BofFm3( void )
+sal_Bool ImportLotus::BofFm3( void )
{
- UINT16 nFileCode, nFileSub;
+ sal_uInt16 nFileCode, nFileSub;
Read( nFileCode );
Read( nFileSub );
@@ -128,12 +128,12 @@ BOOL ImportLotus::BofFm3( void )
}
-void ImportLotus::Columnwidth( UINT16 nRecLen )
+void ImportLotus::Columnwidth( sal_uInt16 nRecLen )
{
DBG_ASSERT( nRecLen >= 4, "*ImportLotus::Columnwidth(): Record zu kurz!" );
- BYTE nLTab, nWindow2;
- UINT16 nCnt = ( nRecLen - 4 ) / 2;
+ sal_uInt8 nLTab, nWindow2;
+ sal_uInt16 nCnt = ( nRecLen - 4 ) / 2;
Read( nLTab );
Read( nWindow2 );
@@ -145,14 +145,14 @@ void ImportLotus::Columnwidth( UINT16 nRecLen )
{
Skip( 2 );
- BYTE nCol, nSpaces;
+ sal_uInt8 nCol, nSpaces;
while( nCnt )
{
Read( nCol );
Read( nSpaces );
// ACHTUNG: Korrekturfaktor nach 'Augenmass' ermittelt!
- pD->SetColWidth( static_cast<SCCOL> (nCol), static_cast<SCTAB> (nLTab), ( UINT16 ) ( TWIPS_PER_CHAR * 1.28 * nSpaces ) );
+ pD->SetColWidth( static_cast<SCCOL> (nCol), static_cast<SCTAB> (nLTab), ( sal_uInt16 ) ( TWIPS_PER_CHAR * 1.28 * nSpaces ) );
nCnt--;
}
@@ -160,12 +160,12 @@ void ImportLotus::Columnwidth( UINT16 nRecLen )
}
-void ImportLotus::Hiddencolumn( UINT16 nRecLen )
+void ImportLotus::Hiddencolumn( sal_uInt16 nRecLen )
{
DBG_ASSERT( nRecLen >= 4, "*ImportLotus::Hiddencolumn(): Record zu kurz!" );
- BYTE nLTab, nWindow2;
- UINT16 nCnt = ( nRecLen - 4 ) / 2;
+ sal_uInt8 nLTab, nWindow2;
+ sal_uInt16 nCnt = ( nRecLen - 4 ) / 2;
Read( nLTab );
Read( nWindow2 );
@@ -174,7 +174,7 @@ void ImportLotus::Hiddencolumn( UINT16 nRecLen )
{
Skip( 2 );
- BYTE nCol;
+ sal_uInt8 nCol;
while( nCnt )
{
@@ -189,7 +189,7 @@ void ImportLotus::Hiddencolumn( UINT16 nRecLen )
void ImportLotus::Userrange( void )
{
- UINT16 nRangeType;
+ sal_uInt16 nRangeType;
ScRange aScRange;
sal_Char* pBuffer = new sal_Char[ 32 ];
@@ -212,7 +212,7 @@ void ImportLotus::Errcell( void )
Read( aA );
- pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( CREATE_STRING( "#ERR!" ) ), (BOOL)TRUE );
+ pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( CREATE_STRING( "#ERR!" ) ), (sal_Bool)sal_True );
}
@@ -222,7 +222,7 @@ void ImportLotus::Nacell( void )
Read( aA );
- pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( CREATE_STRING( "#NA!" ) ), (BOOL)TRUE );
+ pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( CREATE_STRING( "#NA!" ) ), (sal_Bool)sal_True );
}
@@ -238,7 +238,7 @@ void ImportLotus::Labelcell( void )
// aLabel.Convert( pLotusRoot->eCharsetQ );
- pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( aLabel ), (BOOL)TRUE );
+ pD->PutCell( aA.Col(), aA.Row(), aA.Tab(), new ScStringCell( aLabel ), (sal_Bool)sal_True );
}
@@ -251,24 +251,24 @@ void ImportLotus::Numbercell( void )
Read( fVal );
pD->PutCell( aAddr.Col(), aAddr.Row(), aAddr.Tab(),
- new ScValueCell( fVal ), (BOOL)TRUE );
+ new ScValueCell( fVal ), (sal_Bool)sal_True );
}
void ImportLotus::Smallnumcell( void )
{
ScAddress aAddr;
- INT16 nVal;
+ sal_Int16 nVal;
Read( aAddr );
Read( nVal );
pD->PutCell( aAddr.Col(), aAddr.Row(), aAddr.Tab(),
- new ScValueCell( SnumToDouble( nVal ) ), ( BOOL ) TRUE );
+ new ScValueCell( SnumToDouble( nVal ) ), ( sal_Bool ) sal_True );
}
-ScFormulaCell *ImportLotus::Formulacell( UINT16 n )
+ScFormulaCell *ImportLotus::Formulacell( sal_uInt16 n )
{
DBG_ASSERT( pIn, "-ImportLotus::Formulacell(): Null-Stream -> Rums!" );
@@ -280,7 +280,7 @@ ScFormulaCell *ImportLotus::Formulacell( UINT16 n )
n -= 14;
const ScTokenArray* pErg;
- INT32 nRest = n;
+ sal_Int32 nRest = n;
aConv.Reset( aAddr );
aConv.SetWK3();
@@ -290,7 +290,7 @@ ScFormulaCell *ImportLotus::Formulacell( UINT16 n )
pZelle->AddRecalcMode( RECALCMODE_ONLOAD_ONCE );
- pD->PutCell( aAddr.Col(), aAddr.Row(), aAddr.Tab(), pZelle, (BOOL)TRUE );
+ pD->PutCell( aAddr.Col(), aAddr.Row(), aAddr.Tab(), pZelle, (sal_Bool)sal_True );
return NULL;
}
@@ -302,13 +302,13 @@ void ImportLotus::Read( String &r )
}
-void ImportLotus::RowPresentation( UINT16 nRecLen )
+void ImportLotus::RowPresentation( sal_uInt16 nRecLen )
{
DBG_ASSERT( nRecLen > 4, "*ImportLotus::RowPresentation(): Record zu kurz!" );
- BYTE nLTab, nFlags;
- UINT16 nRow, nHeight;
- UINT16 nCnt = ( nRecLen - 4 ) / 8;
+ sal_uInt8 nLTab, nFlags;
+ sal_uInt16 nRow, nHeight;
+ sal_uInt16 nCnt = ( nRecLen - 4 ) / 8;
Read( nLTab );
Skip( 1 );
@@ -339,7 +339,7 @@ void ImportLotus::RowPresentation( UINT16 nRecLen )
void ImportLotus::NamedSheet( void )
{
- UINT16 nLTab;
+ sal_uInt16 nLTab;
String aName;
Read( nLTab );
@@ -354,7 +354,7 @@ void ImportLotus::NamedSheet( void )
void ImportLotus::Font_Face( void )
{
- BYTE nNum;
+ sal_uInt8 nNum;
String aName;
Read( nNum );
@@ -372,9 +372,9 @@ void ImportLotus::Font_Face( void )
void ImportLotus::Font_Type( void )
{
- static const UINT16 nAnz = 8;
- UINT16 nCnt;
- UINT16 nType;
+ static const sal_uInt16 nAnz = 8;
+ sal_uInt16 nCnt;
+ sal_uInt16 nType;
for( nCnt = 0 ; nCnt < nAnz ; nCnt++ )
{
@@ -386,9 +386,9 @@ void ImportLotus::Font_Type( void )
void ImportLotus::Font_Ysize( void )
{
- static const UINT16 nAnz = 8;
- UINT16 nCnt;
- UINT16 nSize;
+ static const sal_uInt16 nAnz = 8;
+ sal_uInt16 nCnt;
+ sal_uInt16 nSize;
for( nCnt = 0 ; nCnt < nAnz ; nCnt++ )
{
@@ -398,18 +398,18 @@ void ImportLotus::Font_Ysize( void )
}
-void ImportLotus::_Row( const UINT16 nRecLen )
+void ImportLotus::_Row( const sal_uInt16 nRecLen )
{
DBG_ASSERT( nExtTab >= 0, "*ImportLotus::_Row(): Kann hier nicht sein!" );
- UINT16 nRow;
- UINT16 nHeight;
- UINT16 nCntDwn = ( nRecLen - 4 ) / 5;
+ sal_uInt16 nRow;
+ sal_uInt16 nHeight;
+ sal_uInt16 nCntDwn = ( nRecLen - 4 ) / 5;
SCCOL nColCnt = 0;
- UINT8 nRepeats;
+ sal_uInt8 nRepeats;
LotAttrWK3 aAttr;
- BOOL bCenter = FALSE;
+ sal_Bool bCenter = sal_False;
SCCOL nCenterStart = 0, nCenterEnd = 0;
Read( nRow );
@@ -445,7 +445,7 @@ void ImportLotus::_Row( const UINT16 nRecLen )
}
else
{// ganz neue Center
- bCenter = TRUE;
+ bCenter = sal_True;
nCenterStart = nColCnt;
}
nCenterEnd = nColCnt + static_cast<SCCOL>(nRepeats);
@@ -455,7 +455,7 @@ void ImportLotus::_Row( const UINT16 nRecLen )
if( bCenter )
{// evtl. alte Center bemachen
pD->DoMerge( static_cast<SCTAB> (nExtTab), nCenterStart, static_cast<SCROW> (nRow), nCenterEnd, static_cast<SCROW> (nRow) );
- bCenter = FALSE;
+ bCenter = sal_False;
}
}