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
1aadb878
Kaydet (Commit)
1aadb878
authored
Şub 17, 2013
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#58789: export field separators, fix series name display
Change-Id: I1edae1c2ec845a46d7a9a4ab2517784d2d68d51d
üst
0e6fdbd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
chartexport.cxx
oox/source/export/chartexport.cxx
+14
-1
No files found.
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
1aadb878
...
...
@@ -2293,12 +2293,13 @@ void ChartExport::exportDataLabels(
{
// TODO: export field separators, missing flag vs. showing series name or not
uno
::
Reference
<
chart2
::
XDataSeries
>
xSeries
(
xSeriesProperties
,
uno
::
UNO_QUERY
);
Sequence
<
sal_Int32
>
aDataPointSeq
;
if
(
xSeriesProperties
.
is
())
{
FSHelperPtr
pFS
=
GetFS
();
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_dLbls
),
FSEND
);
sal_Int32
nElem
;
for
(
nElem
=
0
;
nElem
<
nSeriesLength
;
++
nElem
)
{
...
...
@@ -2327,6 +2328,7 @@ void ChartExport::exportDataLabels(
namespace
csscd
=
::
com
::
sun
::
star
::
chart
::
DataLabelPlacement
;
sal_Int32
nPlacement
(
csscd
::
AVOID_OVERLAP
);
const
char
*
aPlacement
=
NULL
;
OUString
aSep
;
if
(
GetProperty
(
xPropSet
,
"LabelPlacement"
))
mAny
>>=
nPlacement
;
...
...
@@ -2347,6 +2349,13 @@ void ChartExport::exportDataLabels(
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_dLbl
),
FSEND
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_idx
),
XML_val
,
I32S
(
nElem
),
FSEND
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_dLblPos
),
XML_val
,
aPlacement
,
FSEND
);
if
(
GetProperty
(
xPropSet
,
"LabelSeparator"
))
{
mAny
>>=
aSep
;
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_separator
),
XML_val
,
USS
(
aSep
),
FSEND
);
}
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_showLegendKey
),
XML_val
,
aLabel
.
ShowLegendSymbol
?
"1"
:
"0"
,
FSEND
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_showVal
),
XML_val
,
...
...
@@ -2355,6 +2364,10 @@ void ChartExport::exportDataLabels(
aLabel
.
ShowCategoryName
?
"1"
:
"0"
,
FSEND
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_showPercent
),
XML_val
,
aLabel
.
ShowNumberInPercent
?
"1"
:
"0"
,
FSEND
);
// MSO somehow assumes series name to be on (=displayed) by default.
// Let's put false here and switch it off then, since we have no UI means
// in LibO to toggle it on anyway
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_showSerName
),
XML_val
,
"0"
,
FSEND
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_dLbl
));
}
}
...
...
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