Kaydet (Commit) b448ee4a authored tarafından Eike Rathke's avatar Eike Rathke

eliminate ImpInsertNewStandardFormat()

Change-Id: I66fd200f1a504af22430e0471e1c98927101a9de
üst 11eba2ea
...@@ -826,12 +826,6 @@ private: ...@@ -826,12 +826,6 @@ private:
sal_uInt32 nPos, sal_uInt32 nPos,
bool bAfterChangingSystemCL = false, bool bAfterChangingSystemCL = false,
sal_Int16 nOrgIndex = 0 ); sal_Int16 nOrgIndex = 0 );
// ImpInsertNewStandardFormat for new (since version ...) builtin formats
SVL_DLLPRIVATE SvNumberformat* ImpInsertNewStandardFormat( const ::com::sun::star::i18n::NumberFormatCode& rCode,
sal_uInt32 nPos,
sal_uInt16 nVersion,
bool bAfterChangingSystemCL = false,
sal_Int16 nOrgIndex = 0 );
// Return CLOffset or (MaxCLOffset + SV_COUNTRY_LANGUAGE_OFFSET) if new language/country // Return CLOffset or (MaxCLOffset + SV_COUNTRY_LANGUAGE_OFFSET) if new language/country
SVL_DLLPRIVATE sal_uInt32 ImpGetCLOffset(LanguageType eLnge) const; SVL_DLLPRIVATE sal_uInt32 ImpGetCLOffset(LanguageType eLnge) const;
......
...@@ -1751,19 +1751,6 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat( const ::com::sun::star::i18n ...@@ -1751,19 +1751,6 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat( const ::com::sun::star::i18n
return pFormat; return pFormat;
} }
SvNumberformat* SvNumberFormatter::ImpInsertNewStandardFormat(
const ::com::sun::star::i18n::NumberFormatCode& rCode,
sal_uInt32 nPos, sal_uInt16 nVersion, bool bAfterChangingSystemCL,
sal_Int16 nOrgIndex )
{
SvNumberformat* pNewFormat = ImpInsertFormat( rCode, nPos,
bAfterChangingSystemCL, nOrgIndex );
if (pNewFormat)
pNewFormat->SetNewStandardDefined( nVersion );
// so that it gets saved, displayed properly, and converted by old versions
return pNewFormat;
}
void SvNumberFormatter::GetFormatSpecialInfo(sal_uInt32 nFormat, void SvNumberFormatter::GetFormatSpecialInfo(sal_uInt32 nFormat,
bool& bThousand, bool& bThousand,
bool& IsRed, bool& IsRed,
...@@ -2525,10 +2512,12 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset, ...@@ -2525,10 +2512,12 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
//! no default on currency //! no default on currency
bool bDefault = aFormatSeq[j].Default; bool bDefault = aFormatSeq[j].Default;
aFormatSeq[j].Default = false; aFormatSeq[j].Default = false;
if ( ImpInsertNewStandardFormat( pFormatArr[j], nPos+1, if ( SvNumberformat* pNewFormat = ImpInsertFormat( pFormatArr[j], nPos+1,
SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS, bAfterChangingSystemCL, nOrgIndex ) )
bAfterChangingSystemCL, nOrgIndex ) ) {
pNewFormat->SetNewStandardDefined( SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS );
nPos++; nPos++;
}
pFormatArr[j].Index = nOrgIndex; pFormatArr[j].Index = nOrgIndex;
aFormatSeq[j].Default = bDefault; aFormatSeq[j].Default = bDefault;
} }
...@@ -2554,10 +2543,12 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset, ...@@ -2554,10 +2543,12 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
} }
if ( pFormatArr[j].Index >= NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS ) if ( pFormatArr[j].Index >= NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS )
{ {
if ( ImpInsertNewStandardFormat( pFormatArr[j], nPos+1, if ( SvNumberformat* pNewFormat = ImpInsertFormat( pFormatArr[j], nPos+1,
SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS, bAfterChangingSystemCL ) )
bAfterChangingSystemCL ) ) {
pNewFormat->SetNewStandardDefined( SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS );
nPos++; nPos++;
}
} }
} }
} }
......
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