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
99b353e0
Kaydet (Commit)
99b353e0
authored
Tem 19, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use ScDocument's number formatter
Change-Id: Iff04869b8e8ba73575bd5d336db42f1e08cec5d8
üst
6efdcc4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
orcusinterface.hxx
sc/source/filter/inc/orcusinterface.hxx
+1
-1
interface.cxx
sc/source/filter/orcus/interface.cxx
+4
-4
No files found.
sc/source/filter/inc/orcusinterface.hxx
Dosyayı görüntüle @
99b353e0
...
@@ -333,7 +333,7 @@ private:
...
@@ -333,7 +333,7 @@ private:
bool
mbHasNumberFormatAttr
;
bool
mbHasNumberFormatAttr
;
number_format
();
number_format
();
void
applyToItemSet
(
SfxItemSet
&
rSet
)
const
;
void
applyToItemSet
(
SfxItemSet
&
rSet
,
ScDocument
&
rDoc
)
const
;
};
};
number_format
maCurrentNumberFormat
;
number_format
maCurrentNumberFormat
;
...
...
sc/source/filter/orcus/interface.cxx
Dosyayı görüntüle @
99b353e0
...
@@ -894,15 +894,15 @@ void ScOrcusStyles::border::applyToItemSet(SfxItemSet& rSet) const
...
@@ -894,15 +894,15 @@ void ScOrcusStyles::border::applyToItemSet(SfxItemSet& rSet) const
rSet
.
Put
(
aBoxItem
);
rSet
.
Put
(
aBoxItem
);
}
}
void
ScOrcusStyles
::
number_format
::
applyToItemSet
(
SfxItemSet
&
rSet
)
const
void
ScOrcusStyles
::
number_format
::
applyToItemSet
(
SfxItemSet
&
rSet
,
ScDocument
&
rDoc
)
const
{
{
sal_uInt32
nKey
;
sal_uInt32
nKey
;
sal_Int32
nCheckPos
;
sal_Int32
nCheckPos
;
SvNumberFormatter
NumberFormatter
(
comphelper
::
getProcessComponentContext
(),
LANGUAGE_ENGLISH_US
);
SvNumberFormatter
*
pFormatter
=
rDoc
.
GetFormatTable
(
);
OUString
Code
=
maCode
;
/* <-- Done because the SvNumberFormatter::PutEntry demands a non const NumFormat Code*/
OUString
Code
=
maCode
;
/* <-- Done because the SvNumberFormatter::PutEntry demands a non const NumFormat Code*/
sal_Int16
type
=
css
::
util
::
NumberFormat
::
ALL
;
sal_Int16
type
=
css
::
util
::
NumberFormat
::
ALL
;
if
(
NumberFormatter
.
PutEntry
(
Code
,
nCheckPos
,
type
,
nKey
,
LANGUAGE_ENGLISH_US
))
if
(
pFormatter
->
PutEntry
(
Code
,
nCheckPos
,
type
,
nKey
,
LANGUAGE_ENGLISH_US
))
{
{
if
(
nCheckPos
==
0
)
if
(
nCheckPos
==
0
)
{
{
...
@@ -981,7 +981,7 @@ void ScOrcusStyles::applyXfToItemSet(SfxItemSet& rSet, const xf& rXf)
...
@@ -981,7 +981,7 @@ void ScOrcusStyles::applyXfToItemSet(SfxItemSet& rSet, const xf& rXf)
}
}
const
number_format
&
rFormat
=
maNumberFormats
[
nNumberFormatId
];
const
number_format
&
rFormat
=
maNumberFormats
[
nNumberFormatId
];
if
(
rFormat
.
mbHasNumberFormatAttr
)
if
(
rFormat
.
mbHasNumberFormatAttr
)
rFormat
.
applyToItemSet
(
rSet
);
rFormat
.
applyToItemSet
(
rSet
,
mrDoc
);
}
}
void
ScOrcusStyles
::
applyXfToItemSet
(
SfxItemSet
&
rSet
,
size_t
xfId
)
void
ScOrcusStyles
::
applyXfToItemSet
(
SfxItemSet
&
rSet
,
size_t
xfId
)
...
...
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