Kaydet (Commit) 2d2e1267 authored tarafından Caolán McNamara's avatar Caolán McNamara

xub_StrLen->sal_Int32

Change-Id: Ia17762919b57bc6febed5cc49e8931165870c117
üst 8577006e
...@@ -145,8 +145,8 @@ void SvtScriptedTextHelper_Impl::CalculateSizes() ...@@ -145,8 +145,8 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
DBG_ASSERT( maPosVec.size() - 1 == maScriptVec.size(), DBG_ASSERT( maPosVec.size() - 1 == maScriptVec.size(),
"SvtScriptedTextHelper_Impl::CalculateWidth - invalid vectors" ); "SvtScriptedTextHelper_Impl::CalculateWidth - invalid vectors" );
xub_StrLen nThisPos = static_cast< xub_StrLen >( maPosVec[ 0 ] ); sal_Int32 nThisPos = maPosVec[ 0 ];
xub_StrLen nNextPos; sal_Int32 nNextPos;
sal_Int32 nPosVecSize = maPosVec.size(); sal_Int32 nPosVecSize = maPosVec.size();
sal_Int32 nPosVecIndex = 1; sal_Int32 nPosVecIndex = 1;
...@@ -157,7 +157,7 @@ void SvtScriptedTextHelper_Impl::CalculateSizes() ...@@ -157,7 +157,7 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
while( nPosVecIndex < nPosVecSize ) while( nPosVecIndex < nPosVecSize )
{ {
nNextPos = static_cast< xub_StrLen >( maPosVec[ nPosVecIndex++ ] ); nNextPos = maPosVec[ nPosVecIndex++ ];
nScript = maScriptVec[ nScriptVecIndex++ ]; nScript = maScriptVec[ nScriptVecIndex++ ];
SetOutDevFont( nScript ); SetOutDevFont( nScript );
...@@ -284,8 +284,8 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos ) ...@@ -284,8 +284,8 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
maDefltFont = mrOutDevice.GetFont(); maDefltFont = mrOutDevice.GetFont();
Point aCurrPos( _rPos ); Point aCurrPos( _rPos );
xub_StrLen nThisPos = static_cast< xub_StrLen >( maPosVec[ 0 ] ); sal_Int32 nThisPos = maPosVec[ 0 ];
xub_StrLen nNextPos; sal_Int32 nNextPos;
sal_Int32 nPosVecSize = maPosVec.size(); sal_Int32 nPosVecSize = maPosVec.size();
sal_Int32 nPosVecIndex = 1; sal_Int32 nPosVecIndex = 1;
...@@ -294,7 +294,7 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos ) ...@@ -294,7 +294,7 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
while( nPosVecIndex < nPosVecSize ) while( nPosVecIndex < nPosVecSize )
{ {
nNextPos = static_cast< xub_StrLen >( maPosVec[ nPosVecIndex++ ] ); nNextPos = maPosVec[ nPosVecIndex++ ];
nScript = maScriptVec[ nVecIndex ]; nScript = maScriptVec[ nVecIndex ];
SetOutDevFont( nScript ); SetOutDevFont( nScript );
......
...@@ -239,8 +239,8 @@ void HTMLOption::GetColor( Color& rColor ) const ...@@ -239,8 +239,8 @@ void HTMLOption::GetColor( Color& rColor ) const
if( SAL_MAX_UINT32 == nColor ) if( SAL_MAX_UINT32 == nColor )
{ {
nColor = 0; nColor = 0;
xub_StrLen nPos = 0; sal_Int32 nPos = 0;
for( sal_uInt32 i=0; i<6; i++ ) for (sal_uInt32 i=0; i<6; ++i)
{ {
// Whatever Netscape does to get color values, // Whatever Netscape does to get color values,
// at maximum three characters < '0' are ignored. // at maximum three characters < '0' are ignored.
...@@ -1162,7 +1162,7 @@ int HTMLParser::_GetNextToken() ...@@ -1162,7 +1162,7 @@ int HTMLParser::_GetNextToken()
sal_uLong nCStreamPos = 0; sal_uLong nCStreamPos = 0;
sal_uLong nCLineNr = 0; sal_uLong nCLineNr = 0;
sal_uLong nCLinePos = 0; sal_uLong nCLinePos = 0;
xub_StrLen nCStrLen = 0; sal_Int32 nCStrLen = 0;
bool bDone = false; bool bDone = false;
// Read until closing -->. If not found restart at first > // Read until closing -->. If not found restart at first >
...@@ -1421,7 +1421,7 @@ scan_text: ...@@ -1421,7 +1421,7 @@ scan_text:
void HTMLParser::UnescapeToken() void HTMLParser::UnescapeToken()
{ {
xub_StrLen nPos=0; sal_Int32 nPos=0;
bool bEscape = false; bool bEscape = false;
while( nPos < aToken.getLength() ) while( nPos < aToken.getLength() )
...@@ -1447,7 +1447,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) ...@@ -1447,7 +1447,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
if (!maOptions.empty()) if (!maOptions.empty())
return maOptions; return maOptions;
xub_StrLen nPos = 0; sal_Int32 nPos = 0;
while( nPos < aToken.getLength() ) while( nPos < aToken.getLength() )
{ {
// A letter? Option beginning here. // A letter? Option beginning here.
...@@ -1455,7 +1455,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) ...@@ -1455,7 +1455,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
{ {
int nToken; int nToken;
OUString aValue; OUString aValue;
xub_StrLen nStt = nPos; sal_Int32 nStt = nPos;
sal_Unicode cChar = 0; sal_Unicode cChar = 0;
// Actually only certain characters allowed. // Actually only certain characters allowed.
...@@ -1492,7 +1492,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken ) ...@@ -1492,7 +1492,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
if( nPos != aToken.getLength() ) if( nPos != aToken.getLength() )
{ {
xub_StrLen nLen = 0; sal_Int32 nLen = 0;
nStt = nPos; nStt = nPos;
if( ('"'==cChar) || ('\'')==cChar ) if( ('"'==cChar) || ('\'')==cChar )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment