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
ae9a5938
Kaydet (Commit)
ae9a5938
authored
Agu 10, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
if we have a number formatter then use it, dammit..
Change-Id: I43b777bb0b3f53682bab7af4643b29e2bd313caa
üst
131d5b01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
DiagramHelper.cxx
chart2/source/tools/DiagramHelper.cxx
+16
-15
No files found.
chart2/source/tools/DiagramHelper.cxx
Dosyayı görüntüle @
ae9a5938
...
@@ -1165,27 +1165,28 @@ bool DiagramHelper::isDateNumberFormat( sal_Int32 nNumberFormat, const Reference
...
@@ -1165,27 +1165,28 @@ bool DiagramHelper::isDateNumberFormat( sal_Int32 nNumberFormat, const Reference
sal_Int32
DiagramHelper
::
getDateNumberFormat
(
const
Reference
<
util
::
XNumberFormatsSupplier
>&
xNumberFormatsSupplier
)
sal_Int32
DiagramHelper
::
getDateNumberFormat
(
const
Reference
<
util
::
XNumberFormatsSupplier
>&
xNumberFormatsSupplier
)
{
{
sal_Int32
nRet
=-
1
;
sal_Int32
nRet
=-
1
;
Reference
<
util
::
XNumberFormats
>
xNumberFormats
(
xNumberFormatsSupplier
->
getNumberFormats
()
);
if
(
xNumberFormats
.
is
()
)
{
bool
bCreate
=
true
;
const
LocaleDataWrapper
&
rLocaleDataWrapper
=
Application
::
GetSettings
().
GetLocaleDataWrapper
();
Sequence
<
sal_Int32
>
aKeySeq
=
xNumberFormats
->
queryKeys
(
util
::
NumberFormat
::
DATE
,
rLocaleDataWrapper
.
getLanguageTag
().
getLocale
(),
bCreate
);
if
(
aKeySeq
.
getLength
()
)
{
nRet
=
aKeySeq
[
0
];
}
}
//try to get a date format with full year display
//try to get a date format with full year display
const
LanguageTag
&
rLanguageTag
=
Application
::
GetSettings
().
GetLanguageTag
();
NumberFormatterWrapper
aNumberFormatterWrapper
(
xNumberFormatsSupplier
);
NumberFormatterWrapper
aNumberFormatterWrapper
(
xNumberFormatsSupplier
);
SvNumberFormatter
*
pNumFormatter
=
aNumberFormatterWrapper
.
getSvNumberFormatter
();
SvNumberFormatter
*
pNumFormatter
=
aNumberFormatterWrapper
.
getSvNumberFormatter
();
if
(
pNumFormatter
)
if
(
pNumFormatter
)
{
{
const
SvNumberformat
*
pFormat
=
pNumFormatter
->
GetEntry
(
nRet
);
nRet
=
pNumFormatter
->
GetFormatIndex
(
NF_DATE_SYS_DDMMYYYY
,
rLanguageTag
.
getLanguageType
()
);
if
(
pFormat
)
}
nRet
=
pNumFormatter
->
GetFormatIndex
(
NF_DATE_SYS_DDMMYYYY
,
pFormat
->
GetLanguage
()
);
else
{
Reference
<
util
::
XNumberFormats
>
xNumberFormats
(
xNumberFormatsSupplier
->
getNumberFormats
()
);
if
(
xNumberFormats
.
is
()
)
{
bool
bCreate
=
true
;
Sequence
<
sal_Int32
>
aKeySeq
=
xNumberFormats
->
queryKeys
(
util
::
NumberFormat
::
DATE
,
rLanguageTag
.
getLocale
(),
bCreate
);
if
(
aKeySeq
.
getLength
()
)
{
nRet
=
aKeySeq
[
0
];
}
}
}
}
return
nRet
;
return
nRet
;
}
}
...
...
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