Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
850497d7
Kaydet (Commit)
850497d7
authored
Nis 30, 2012
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get rid of confusing *LoadingSO5 names
üst
f9ee230b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
36 deletions
+36
-36
zforlist.hxx
svl/inc/svl/zforlist.hxx
+7
-7
zforlist.cxx
svl/source/numbers/zforlist.cxx
+29
-29
No files found.
svl/inc/svl/zforlist.hxx
Dosyayı görüntüle @
850497d7
...
...
@@ -851,29 +851,29 @@ private:
// Changes initialized language/country, clears the entries and generates
// new ones, may ONLY be called by the binary file format load
SVL_DLLPRIVATE
void
ImpChangeSysCL
(
LanguageType
eLnge
,
bool
b
LoadingSO5
);
SVL_DLLPRIVATE
void
ImpChangeSysCL
(
LanguageType
eLnge
,
bool
b
NoAdditionalFormats
);
// Generate builtin formats provided by i18n behind CLOffset,
// if b
LoadingSO5
==false also generate additional i18n formats.
SVL_DLLPRIVATE
void
ImpGenerateFormats
(
sal_uInt32
CLOffset
,
bool
b
LoadingSO5
);
// if b
NoAdditionalFormats
==false also generate additional i18n formats.
SVL_DLLPRIVATE
void
ImpGenerateFormats
(
sal_uInt32
CLOffset
,
bool
b
NoAdditionalFormats
);
// Generate additional formats provided by i18n
SVL_DLLPRIVATE
void
ImpGenerateAdditionalFormats
(
sal_uInt32
CLOffset
,
NumberFormatCodeWrapper
&
rNumberFormatCode
,
bool
bAfter
LoadingSO5
);
bool
bAfter
ChangingSystemCL
);
SVL_DLLPRIVATE
SvNumberformat
*
ImpInsertFormat
(
const
::
com
::
sun
::
star
::
i18n
::
NumberFormatCode
&
rCode
,
sal_uInt32
nPos
,
bool
bAfter
LoadingSO5
=
false
,
bool
bAfter
ChangingSystemCL
=
false
,
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
bAfter
LoadingSO5
=
false
,
bool
bAfter
ChangingSystemCL
=
false
,
sal_Int16
nOrgIndex
=
0
);
// Return CLOffset or (MaxCLOffset + SV_COUNTRY_LANGUAGE_OFFSET) if new language/country
...
...
@@ -886,7 +886,7 @@ private:
LanguageType
eLnge
);
// Create builtin formats for language/country if necessary, return CLOffset
SVL_DLLPRIVATE
sal_uInt32
ImpGenerateCL
(
LanguageType
eLnge
,
bool
b
LoadingSO5
=
false
);
SVL_DLLPRIVATE
sal_uInt32
ImpGenerateCL
(
LanguageType
eLnge
,
bool
b
NoAdditionalFormats
=
false
);
// Build negative currency format, old compatibility style
SVL_DLLPRIVATE
void
ImpGetNegCurrFormat
(
String
&
sNegStr
,
const
String
&
rCurrSymbol
);
...
...
svl/source/numbers/zforlist.cxx
Dosyayı görüntüle @
850497d7
...
...
@@ -349,7 +349,7 @@ sal_uInt16 SvNumberFormatter::GetStandardPrec()
return
pFormatScanner
->
GetStandardPrec
();
}
void
SvNumberFormatter
::
ImpChangeSysCL
(
LanguageType
eLnge
,
bool
b
LoadingSO5
)
void
SvNumberFormatter
::
ImpChangeSysCL
(
LanguageType
eLnge
,
bool
b
NoAdditionalFormats
)
{
if
(
eLnge
==
LANGUAGE_DONTKNOW
)
eLnge
=
UNKNOWN_SUBSTITUTE
;
...
...
@@ -361,9 +361,9 @@ void SvNumberFormatter::ImpChangeSysCL( LanguageType eLnge, bool bLoadingSO5 )
for
(
SvNumberFormatTable
::
iterator
it
=
aFTable
.
begin
();
it
!=
aFTable
.
end
();
++
it
)
delete
it
->
second
;
aFTable
.
clear
();
ImpGenerateFormats
(
0
,
b
LoadingSO5
);
// new standard formats
ImpGenerateFormats
(
0
,
b
NoAdditionalFormats
);
// new standard formats
}
else
if
(
b
LoadingSO5
)
else
if
(
b
NoAdditionalFormats
)
{
// delete additional standard formats
sal_uInt32
nKey
;
SvNumberFormatTable
::
iterator
it
=
aFTable
.
find
(
SV_MAX_ANZ_STANDARD_FORMATE
+
1
);
...
...
@@ -1028,7 +1028,7 @@ SvNumberFormatTable& SvNumberFormatter::GetFirstEntryTable(
return
GetEntryTable
(
eTypetmp
,
FIndex
,
rLnge
);
}
sal_uInt32
SvNumberFormatter
::
ImpGenerateCL
(
LanguageType
eLnge
,
bool
b
LoadingSO5
)
sal_uInt32
SvNumberFormatter
::
ImpGenerateCL
(
LanguageType
eLnge
,
bool
b
NoAdditionalFormats
)
{
ChangeIntl
(
eLnge
);
sal_uInt32
CLOffset
=
ImpGetCLOffset
(
ActLnge
);
...
...
@@ -1090,7 +1090,7 @@ sal_uInt32 SvNumberFormatter::ImpGenerateCL( LanguageType eLnge, bool bLoadingSO
}
MaxCLOffset
+=
SV_COUNTRY_LANGUAGE_OFFSET
;
ImpGenerateFormats
(
MaxCLOffset
,
b
LoadingSO5
);
ImpGenerateFormats
(
MaxCLOffset
,
b
NoAdditionalFormats
);
CLOffset
=
MaxCLOffset
;
}
return
CLOffset
;
...
...
@@ -1853,7 +1853,7 @@ sal_uInt32 SvNumberFormatter::TestNewString(const String& sFormatString,
SvNumberformat
*
SvNumberFormatter
::
ImpInsertFormat
(
const
::
com
::
sun
::
star
::
i18n
::
NumberFormatCode
&
rCode
,
sal_uInt32
nPos
,
bool
bAfter
LoadingSO5
,
sal_Int16
nOrgIndex
)
sal_uInt32
nPos
,
bool
bAfter
ChangingSystemCL
,
sal_Int16
nOrgIndex
)
{
String
aCodeStr
(
rCode
.
Code
);
if
(
rCode
.
Index
<
NF_INDEX_TABLE_ENTRIES
&&
...
...
@@ -1904,29 +1904,29 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
sal_uInt32
nKey
=
ImpIsEntry
(
aCodeStr
,
nCLOffset
,
ActLnge
);
if
(
nKey
!=
NUMBERFORMAT_ENTRY_NOT_FOUND
)
{
if
(
LocaleDataWrapper
::
areChecksEnabled
())
// If bAfterChangingSystemCL there will definitely be some dups,
// don't cry then.
if
(
LocaleDataWrapper
::
areChecksEnabled
()
&&
!
bAfterChangingSystemCL
)
{
// Test for duplicate indexes in locale data.
switch
(
nOrgIndex
)
{
// These may be dup
e
s of integer versions for locales where
// These may be dups of integer versions for locales where
// currencies have no decimals like Italian Lira.
case
NF_CURRENCY_1000DEC2
:
// NF_CURRENCY_1000INT
case
NF_CURRENCY_1000DEC2_RED
:
// NF_CURRENCY_1000INT_RED
case
NF_CURRENCY_1000DEC2_DASHED
:
// NF_CURRENCY_1000INT_RED
break
;
break
;
default
:
if
(
!
bAfterLoadingSO5
)
{
// If bAfterLoadingSO5 there will definitely be some dupes,
// don't cry. But we need this test for verification of locale
// data if not loading old SO5 documents.
String
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"SvNumberFormatter::ImpInsertFormat: dup format code, index "
));
aMsg
+=
String
::
CreateFromInt32
(
rCode
.
Index
);
aMsg
+=
'\n'
;
aMsg
+=
String
(
rCode
.
Code
);
LocaleDataWrapper
::
outputCheckMessage
(
xLocaleData
->
appendLocaleInfo
(
aMsg
));
}
{
String
aMsg
(
RTL_CONSTASCII_USTRINGPARAM
(
"SvNumberFormatter::ImpInsertFormat: dup format code, index "
));
aMsg
+=
String
::
CreateFromInt32
(
rCode
.
Index
);
aMsg
+=
'\n'
;
aMsg
+=
String
(
rCode
.
Code
);
LocaleDataWrapper
::
outputCheckMessage
(
xLocaleData
->
appendLocaleInfo
(
aMsg
));
}
}
}
delete
pFormat
;
...
...
@@ -1974,11 +1974,11 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
SvNumberformat
*
SvNumberFormatter
::
ImpInsertNewStandardFormat
(
const
::
com
::
sun
::
star
::
i18n
::
NumberFormatCode
&
rCode
,
sal_uInt32
nPos
,
sal_uInt16
nVersion
,
bool
bAfter
LoadingSO5
,
sal_uInt32
nPos
,
sal_uInt16
nVersion
,
bool
bAfter
ChangingSystemCL
,
sal_Int16
nOrgIndex
)
{
SvNumberformat
*
pNewFormat
=
ImpInsertFormat
(
rCode
,
nPos
,
bAfter
LoadingSO5
,
nOrgIndex
);
bAfter
ChangingSystemCL
,
nOrgIndex
);
if
(
pNewFormat
)
pNewFormat
->
SetNewStandardDefined
(
nVersion
);
// so that it gets saved, displayed properly, and converted by old versions
...
...
@@ -2258,7 +2258,7 @@ const SvNumberformat* SvNumberFormatter::GetEntry( sal_uInt32 nKey ) const
return
0
;
}
void
SvNumberFormatter
::
ImpGenerateFormats
(
sal_uInt32
CLOffset
,
bool
b
LoadingSO5
)
void
SvNumberFormatter
::
ImpGenerateFormats
(
sal_uInt32
CLOffset
,
bool
b
NoAdditionalFormats
)
{
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -2685,8 +2685,8 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, bool bLoadingSO
"ImpGenerateFormats: overflow of nNewExtended standard formats"
);
// Now all additional format codes provided by I18N, but only if not
//
loading from old SO5 file format, then they are appended last
.
if
(
!
b
LoadingSO5
)
//
changing SystemCL, then they are appended last after user defined
.
if
(
!
b
NoAdditionalFormats
)
ImpGenerateAdditionalFormats
(
CLOffset
,
aNumberFormatCode
,
false
);
sal_uInt32
nPos
=
CLOffset
+
pStdFormat
->
GetLastInsertKey
();
...
...
@@ -2707,7 +2707,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, bool bLoadingSO
void
SvNumberFormatter
::
ImpGenerateAdditionalFormats
(
sal_uInt32
CLOffset
,
NumberFormatCodeWrapper
&
rNumberFormatCode
,
bool
bAfter
LoadingSO5
)
NumberFormatCodeWrapper
&
rNumberFormatCode
,
bool
bAfter
ChangingSystemCL
)
{
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -2747,7 +2747,7 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
aFormatSeq
[
j
].
Default
=
false
;
if
(
ImpInsertNewStandardFormat
(
pFormatArr
[
j
],
nPos
+
1
,
SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS
,
bAfter
LoadingSO5
,
nOrgIndex
)
)
bAfter
ChangingSystemCL
,
nOrgIndex
)
)
nPos
++
;
pFormatArr
[
j
].
Index
=
nOrgIndex
;
aFormatSeq
[
j
].
Default
=
bDefault
;
...
...
@@ -2774,7 +2774,7 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
if
(
pFormatArr
[
j
].
Index
>=
NF_INDEX_TABLE_ENTRIES
)
if
(
ImpInsertNewStandardFormat
(
pFormatArr
[
j
],
nPos
+
1
,
SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS
,
bAfter
LoadingSO5
)
)
bAfter
ChangingSystemCL
)
)
nPos
++
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment