summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/excel/xeformula.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xeformula.cxx')
-rw-r--r--sc/source/filter/excel/xeformula.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index 34e48671a3bc..56ab56097f85 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -522,7 +522,7 @@ XclTokenArrayRef XclExpFmlaCompImpl::CreateFormula( XclFormulaType eType,
if( mxData->mbOk )
{
XclExpScToken aTokData( GetNextToken() );
- USHORT nScError = rScTokArr.GetCodeError();
+ sal_uInt16 nScError = rScTokArr.GetCodeError();
if( (nScError != 0) && (!aTokData.Is() || (aTokData.GetOpCode() == ocStop)) )
{
// #i50253# convert simple ocStop token to error code formula (e.g. =#VALUE!)
@@ -1334,7 +1334,7 @@ void XclExpFmlaCompImpl::ProcessMatrix( const XclExpScToken& rTokData )
AppendExt( static_cast< sal_uInt8 >( pMatVal->GetBoolean() ? 1 : 0 ) );
AppendExt( 0, 7 );
}
- else if( USHORT nErr = pMatVal->GetError() )
+ else if( sal_uInt16 nErr = pMatVal->GetError() )
{
AppendExt( EXC_CACHEDVAL_ERROR );
AppendExt( XclTools::GetXclErrorCode( nErr ) );
@@ -1823,7 +1823,7 @@ void XclExpFmlaCompImpl::ConvertRefData(
if( bTruncMaxCol && (rnScCol == mnMaxScCol) )
rnScCol = mnMaxAbsCol;
else if( (rnScCol < 0) || (rnScCol > mnMaxAbsCol) )
- rRefData.SetColDeleted( TRUE );
+ rRefData.SetColDeleted( sal_True );
rXclPos.mnCol = static_cast< sal_uInt16 >( rnScCol ) & mnMaxColMask;
// convert row index
@@ -1831,7 +1831,7 @@ void XclExpFmlaCompImpl::ConvertRefData(
if( bTruncMaxRow && (rnScRow == mnMaxScRow) )
rnScRow = mnMaxAbsRow;
else if( (rnScRow < 0) || (rnScRow > mnMaxAbsRow) )
- rRefData.SetRowDeleted( TRUE );
+ rRefData.SetRowDeleted( sal_True );
rXclPos.mnRow = static_cast< sal_uInt16 >( rnScRow ) & mnMaxRowMask;
}
else
@@ -1999,7 +1999,7 @@ void XclExpFmlaCompImpl::ProcessExternalCellRef( const XclExpScToken& rTokData )
ConvertRefData( aRefData, aXclPos, false, false, false );
// store external cell contents in CRN records
- USHORT nFileId = rTokData.mpScToken->GetIndex();
+ sal_uInt16 nFileId = rTokData.mpScToken->GetIndex();
const String& rTabName = rTokData.mpScToken->GetString();
if( mxData->mrCfg.mbFromCell && mxData->mpScBasePos )
mxData->mpLinkMgr->StoreCell( nFileId, rTabName, aRefData );
@@ -2035,7 +2035,7 @@ void XclExpFmlaCompImpl::ProcessExternalRangeRef( const XclExpScToken& rTokData
ConvertRefData( aRefData, aXclRange, false );
// store external cell contents in CRN records
- USHORT nFileId = rTokData.mpScToken->GetIndex();
+ sal_uInt16 nFileId = rTokData.mpScToken->GetIndex();
const String& rTabName = rTokData.mpScToken->GetString();
if( mxData->mrCfg.mbFromCell && mxData->mpScBasePos )
mxData->mpLinkMgr->StoreCellRange( nFileId, rTabName, aRefData );
@@ -2094,7 +2094,7 @@ void XclExpFmlaCompImpl::ProcessExternalName( const XclExpScToken& rTokData )
if( mxData->mpLinkMgr )
{
ScExternalRefManager& rExtRefMgr = *GetDoc().GetExternalRefManager();
- USHORT nFileId = rTokData.mpScToken->GetIndex();
+ sal_uInt16 nFileId = rTokData.mpScToken->GetIndex();
const String& rName = rTokData.mpScToken->GetString();
ScExternalRefCache::TokenArrayRef xArray = rExtRefMgr.getRangeNameTokens( nFileId, rName );
if( xArray.get() )
@@ -2539,11 +2539,11 @@ void lclInitOwnTab( ScSingleRefData& rRef, const ScAddress& rScPos, SCTAB nCurrS
if( b3DRefOnly )
{
// no reduction to 2D reference, if global link manager is used
- rRef.SetFlag3D( TRUE );
+ rRef.SetFlag3D( sal_True );
}
else if( rScPos.Tab() == nCurrScTab )
{
- rRef.SetTabRel( TRUE );
+ rRef.SetTabRel( sal_True );
rRef.nRelTab = 0;
}
}
@@ -2609,14 +2609,14 @@ XclTokenArrayRef XclExpFormulaCompiler::CreateFormula( XclFormulaType eType, con
XclTokenArrayRef XclExpFormulaCompiler::CreateFormula( XclFormulaType eType, const ScRangeList& rScRanges )
{
- ULONG nCount = rScRanges.Count();
+ sal_uLong nCount = rScRanges.Count();
if( nCount == 0 )
return XclTokenArrayRef();
ScTokenArray aScTokArr;
SCTAB nCurrScTab = GetCurrScTab();
bool b3DRefOnly = mxImpl->Is3DRefOnly( eType );
- for( ULONG nIdx = 0; nIdx < nCount; ++nIdx )
+ for( sal_uLong nIdx = 0; nIdx < nCount; ++nIdx )
{
if( nIdx > 0 )
aScTokArr.AddOpCode( ocUnion );