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
99a8c8da
Kaydet (Commit)
99a8c8da
authored
Tem 15, 2011
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace List with std::vector< SvNumberFormatter* >
üst
e5e19089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
22 deletions
+35
-22
zforlist.cxx
svl/source/numbers/zforlist.cxx
+35
-22
No files found.
svl/source/numbers/zforlist.cxx
Dosyayı görüntüle @
99a8c8da
...
...
@@ -100,26 +100,28 @@ static sal_uInt32 theIndexTable[NF_INDEX_TABLE_ENTRIES];
also handles one instance of the SysLocale options
*/
typedef
::
std
::
vector
<
SvNumberFormatter
*
>
SvNumberFormatterList_impl
;
class
SvNumberFormatterRegistry_Impl
:
public
utl
::
ConfigurationListener
{
List
aFormatters
;
SvtSysLocaleOptions
aSysLocaleOptions
;
LanguageType
eSysLanguage
;
SvNumberFormatterList_impl
aFormatters
;
SvtSysLocaleOptions
aSysLocaleOptions
;
LanguageType
eSysLanguage
;
public
:
SvNumberFormatterRegistry_Impl
();
virtual
~
SvNumberFormatterRegistry_Impl
();
void
Insert
(
SvNumberFormatter
*
pThis
)
{
aFormatters
.
Insert
(
pThis
,
LIST_APPEND
);
}
SvNumberFormatter
*
Remove
(
SvNumberFormatter
*
pThis
)
{
return
(
SvNumberFormatter
*
)
aFormatters
.
Remove
(
pThis
);
}
sal_uInt32
Count
()
{
return
aFormatters
.
Count
();
}
void
Insert
(
SvNumberFormatter
*
pThis
)
{
aFormatters
.
push_back
(
pThis
);
}
virtual
void
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
);
};
SvNumberFormatter
*
Remove
(
SvNumberFormatter
*
pThis
);
size_t
Count
()
{
return
aFormatters
.
size
();
}
virtual
void
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
);
};
SvNumberFormatterRegistry_Impl
::
SvNumberFormatterRegistry_Impl
()
{
...
...
@@ -134,26 +136,37 @@ SvNumberFormatterRegistry_Impl::~SvNumberFormatterRegistry_Impl()
}
void
SvNumberFormatterRegistry_Impl
::
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
nHint
)
SvNumberFormatter
*
SvNumberFormatterRegistry_Impl
::
Remove
(
SvNumberFormatter
*
pThis
)
{
for
(
SvNumberFormatterList_impl
::
iterator
it
=
aFormatters
.
begin
();
it
<
aFormatters
.
end
();
++
it
)
{
if
(
*
it
==
pThis
)
{
aFormatters
.
erase
(
it
);
break
;
}
}
return
pThis
;
}
void
SvNumberFormatterRegistry_Impl
::
ConfigurationChanged
(
utl
::
ConfigurationBroadcaster
*
,
sal_uInt32
nHint
)
{
if
(
nHint
&
SYSLOCALEOPTIONS_HINT_LOCALE
)
{
::
osl
::
MutexGuard
aGuard
(
SvNumberFormatter
::
GetMutex
()
);
for
(
SvNumberFormatter
*
p
=
(
SvNumberFormatter
*
)
aFormatters
.
First
();
p
;
p
=
(
SvNumberFormatter
*
)
aFormatters
.
Next
()
)
{
p
->
ReplaceSystemCL
(
eSysLanguage
);
}
for
(
size_t
i
=
0
,
n
=
aFormatters
.
size
();
i
<
n
;
++
i
)
aFormatters
[
i
]
->
ReplaceSystemCL
(
eSysLanguage
);
eSysLanguage
=
MsLangId
::
getRealLanguage
(
LANGUAGE_SYSTEM
);
}
if
(
nHint
&
SYSLOCALEOPTIONS_HINT_CURRENCY
)
{
::
osl
::
MutexGuard
aGuard
(
SvNumberFormatter
::
GetMutex
()
);
for
(
SvNumberFormatter
*
p
=
(
SvNumberFormatter
*
)
aFormatters
.
First
();
p
;
p
=
(
SvNumberFormatter
*
)
aFormatters
.
Next
()
)
{
p
->
ResetDefaultSystemCurrency
();
}
for
(
size_t
i
=
0
,
n
=
aFormatters
.
size
();
i
<
n
;
++
i
)
aFormatters
[
i
]
->
ResetDefaultSystemCurrency
();
}
}
...
...
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