Kaydet (Commit) dc23ed98 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to sal_(u)Int32

Change-Id: I20c3715bcfb5212977699d661fd3acf1be28499f
üst 53e3cfdc
...@@ -28,7 +28,7 @@ class SwView; ...@@ -28,7 +28,7 @@ class SwView;
class SW_DLLPUBLIC NumFormatListBox : public ListBox class SW_DLLPUBLIC NumFormatListBox : public ListBox
{ {
short nCurrFormatType; short nCurrFormatType;
sal_uInt16 nStdEntry; sal_Int32 nStdEntry;
bool bOneArea; bool bOneArea;
sal_uLong nDefFormat; sal_uLong nDefFormat;
SwView* pVw; SwView* pVw;
......
...@@ -206,7 +206,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType) ...@@ -206,7 +206,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
} }
const SvNumberformat* pFmt; const SvNumberformat* pFmt;
sal_uInt16 nPos, i = 0; sal_Int32 i = 0;
sal_uLong nFormat; sal_uLong nFormat;
Color* pCol; Color* pCol;
double fVal = GetDefValue( nFormatType ); double fVal = GetDefValue( nFormatType );
...@@ -241,7 +241,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType) ...@@ -241,7 +241,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
nFormat != nSysShortDateFmt && nFormat != nSysShortDateFmt &&
nFormat != nSysLongDateFmt) nFormat != nSysLongDateFmt)
{ {
nPos = InsertEntry( sValue ); const sal_Int32 nPos = InsertEntry( sValue );
SetEntryData( nPos, (void*)nFormat ); SetEntryData( nPos, (void*)nFormat );
if( nFormat == pFormatter->GetStandardFormat( if( nFormat == pFormatter->GetStandardFormat(
...@@ -253,7 +253,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType) ...@@ -253,7 +253,7 @@ void NumFormatListBox::SetFormatType(const short nFormatType)
if (!pOwnFormatter) if (!pOwnFormatter)
{ {
nPos = InsertEntry(SW_RESSTR( STR_DEFINE_NUMBERFORMAT )); const sal_Int32 nPos = InsertEntry(SW_RESSTR( STR_DEFINE_NUMBERFORMAT ));
SetEntryData( nPos, NULL ); SetEntryData( nPos, NULL );
} }
...@@ -290,7 +290,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -290,7 +290,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage); sal_uLong nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefFmt, eCurLanguage);
for (sal_uInt16 i = 0; i < GetEntryCount(); i++) for (sal_Int32 i = 0; i < GetEntryCount(); i++)
{ {
if (nFormat == (sal_uLong)GetEntryData(i)) if (nFormat == (sal_uLong)GetEntryData(i))
{ {
...@@ -315,7 +315,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt) ...@@ -315,7 +315,7 @@ void NumFormatListBox::SetDefFormat(const sal_uLong nDefFmt)
pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol); pFormatter->GetOutputString(fValue, nDefFmt, sValue, &pCol);
} }
sal_uInt16 nPos = 0; sal_Int32 nPos = 0;
while ((sal_uLong)GetEntryData(nPos) == ULONG_MAX) while ((sal_uLong)GetEntryData(nPos) == ULONG_MAX)
nPos++; nPos++;
...@@ -361,7 +361,7 @@ sal_uLong NumFormatListBox::GetFormat() const ...@@ -361,7 +361,7 @@ sal_uLong NumFormatListBox::GetFormat() const
IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox ) IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
{ {
sal_uInt16 nPos = pBox->GetSelectEntryPos(); const sal_Int32 nPos = pBox->GetSelectEntryPos();
OUString sDefine(SW_RES( STR_DEFINE_NUMBERFORMAT )); OUString sDefine(SW_RES( STR_DEFINE_NUMBERFORMAT ));
SwView *pView = GetView(); SwView *pView = GetView();
...@@ -410,7 +410,7 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox ) ...@@ -410,7 +410,7 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
{ {
const sal_uInt32* pDelArr = ((SvxNumberInfoItem*)pItem)->GetDelArray(); const sal_uInt32* pDelArr = ((SvxNumberInfoItem*)pItem)->GetDelArray();
for ( sal_uInt16 i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ ) for ( sal_uInt32 i = 0; i < ((SvxNumberInfoItem*)pItem)->GetDelCount(); i++ )
pFormatter->DeleteEntry( pDelArr[i] ); pFormatter->DeleteEntry( pDelArr[i] );
} }
......
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