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
7340872a
Kaydet (Commit)
7340872a
authored
Kas 27, 2015
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use SvNumberFormatter::GetFormatStringForExcel()
Change-Id: I4d5f8aa33fffceaa080d8b2ef6a177b4680cf761
üst
2011b541
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
41 deletions
+2
-41
xestyle.cxx
sc/source/filter/excel/xestyle.cxx
+2
-41
No files found.
sc/source/filter/excel/xestyle.cxx
Dosyayı görüntüle @
7340872a
...
...
@@ -1433,48 +1433,9 @@ void XclExpNumFmtBuffer::WriteFormatRecord( XclExpStream& rStrm, const XclExpNum
namespace
{
OUString
GetNumberFormatCode
(
XclRoot
&
rRoot
,
const
sal_uInt16
nScNumFmt
,
SvNumberFormatter
*
x
Formatter
,
NfKeywordTable
*
pKeywordTable
)
OUString
GetNumberFormatCode
(
XclRoot
&
rRoot
,
const
sal_uInt16
nScNumFmt
,
SvNumberFormatter
*
p
Formatter
,
NfKeywordTable
*
pKeywordTable
)
{
OUString
aFormatStr
;
if
(
const
SvNumberformat
*
pEntry
=
rRoot
.
GetFormatter
().
GetEntry
(
nScNumFmt
)
)
{
if
(
pEntry
->
GetType
()
==
css
::
util
::
NumberFormat
::
LOGICAL
)
{
// build Boolean number format
Color
*
pColor
=
nullptr
;
OUString
aTemp
;
const_cast
<
SvNumberformat
*
>
(
pEntry
)
->
GetOutputString
(
1.0
,
aTemp
,
&
pColor
);
aFormatStr
+=
"
\"
"
+
aTemp
+
"
\"
;
\"
"
+
aTemp
+
"
\"
;
\"
"
;
const_cast
<
SvNumberformat
*
>
(
pEntry
)
->
GetOutputString
(
0.0
,
aTemp
,
&
pColor
);
aFormatStr
+=
aTemp
+
"
\"
"
;
}
else
{
LanguageType
eLang
=
pEntry
->
GetLanguage
();
if
(
eLang
!=
LANGUAGE_ENGLISH_US
)
{
sal_Int32
nCheckPos
;
short
nType
=
css
::
util
::
NumberFormat
::
DEFINED
;
sal_uInt32
nKey
;
OUString
aTemp
(
pEntry
->
GetFormatstring
()
);
xFormatter
->
PutandConvertEntry
(
aTemp
,
nCheckPos
,
nType
,
nKey
,
eLang
,
LANGUAGE_ENGLISH_US
);
OSL_ENSURE
(
nCheckPos
==
0
,
"XclExpNumFmtBuffer::WriteFormatRecord - format code not convertible"
);
pEntry
=
xFormatter
->
GetEntry
(
nKey
);
}
aFormatStr
=
pEntry
->
GetMappedFormatstring
(
*
pKeywordTable
,
*
xFormatter
->
GetLocaleData
()
);
if
(
aFormatStr
==
"Standard"
)
aFormatStr
=
"General"
;
}
}
else
{
OSL_FAIL
(
"XclExpNumFmtBuffer::WriteFormatRecord - format not found"
);
aFormatStr
=
"General"
;
}
return
aFormatStr
;
return
rRoot
.
GetFormatter
().
GetFormatStringForExcel
(
nScNumFmt
,
*
pKeywordTable
,
*
pFormatter
);
}
}
...
...
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