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
9b884187
Kaydet (Commit)
9b884187
authored
May 09, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
split exportSeries function up
Change-Id: I06c09a494bdf37a87ff851a8e3cbc94b22b9a511
üst
020a52d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
34 deletions
+39
-34
chartexport.hxx
include/oox/export/chartexport.hxx
+3
-1
chartexport.cxx
oox/source/export/chartexport.cxx
+36
-33
No files found.
include/oox/export/chartexport.hxx
Dosyayı görüntüle @
9b884187
...
...
@@ -141,7 +141,9 @@ private:
void
exportHiLowLines
();
void
exportUpDownBars
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
);
void
exportSeries
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
,
sal_Int32
&
nAttachedAxis
);
void
exportAllSeries
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
,
sal_Int32
&
nAttachedAxis
);
void
exportSeries
(
css
::
uno
::
Reference
<
css
::
chart2
::
XChartType
>
xChartType
,
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
chart2
::
XDataSeries
>
>&
rSeriesSeq
,
sal_Int32
&
nAttachedAxis
);
void
exportCandleStickSeries
(
const
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
...
...
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
9b884187
...
...
@@ -1523,7 +1523,7 @@ void ChartExport::exportAreaChart( Reference< chart2::XChartType > xChartType )
exportGrouping
(
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
exportAxesId
(
nAttachedAxis
);
pFS
->
endElement
(
FSNS
(
XML_c
,
nTypeId
)
);
...
...
@@ -1556,7 +1556,7 @@ void ChartExport::exportBarChart( Reference< chart2::XChartType > xChartType )
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
Reference
<
XPropertySet
>
xTypeProp
(
xChartType
,
uno
::
UNO_QUERY
);
...
...
@@ -1632,7 +1632,7 @@ void ChartExport::exportBubbleChart( Reference< chart2::XChartType > xChartType
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_bubble3D
),
XML_val
,
"0"
,
...
...
@@ -1650,7 +1650,7 @@ void ChartExport::exportDoughnutChart( Reference< chart2::XChartType > xChartTyp
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
// firstSliceAng
exportFirstSliceAng
(
);
//FIXME: holeSize
...
...
@@ -1674,7 +1674,7 @@ void ChartExport::exportLineChart( Reference< chart2::XChartType > xChartType )
exportGrouping
(
);
// TODO: show marker symbol in series?
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
// show marker?
sal_Int32
nSymbolType
=
css
::
chart
::
ChartSymbolType
::
NONE
;
...
...
@@ -1718,7 +1718,7 @@ void ChartExport::exportPieChart( Reference< chart2::XChartType > xChartType )
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
if
(
!
mbIs3DChart
)
{
...
...
@@ -1746,7 +1746,7 @@ void ChartExport::exportRadarChart( Reference< chart2::XChartType > xChartType)
XML_val
,
radarStyle
,
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
exportAxesId
(
nAttachedAxis
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_radarChart
)
);
...
...
@@ -1780,7 +1780,7 @@ void ChartExport::exportScatterChart( Reference< chart2::XChartType > xChartType
// FIXME: should export xVal and yVal
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
exportAxesId
(
nAttachedAxis
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_scatterChart
)
);
...
...
@@ -1793,7 +1793,17 @@ void ChartExport::exportStockChart( Reference< chart2::XChartType > xChartType )
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
bool
bJapaneseCandleSticks
=
false
;
Reference
<
beans
::
XPropertySet
>
xCTProp
(
xChartType
,
uno
::
UNO_QUERY
);
if
(
xCTProp
.
is
())
xCTProp
->
getPropertyValue
(
"Japanese"
)
>>=
bJapaneseCandleSticks
;
Reference
<
chart2
::
XDataSeriesContainer
>
xDSCnt
(
xChartType
,
uno
::
UNO_QUERY
);
if
(
xDSCnt
.
is
())
exportCandleStickSeries
(
xDSCnt
->
getDataSeries
(),
bJapaneseCandleSticks
,
nAttachedAxis
);
// export stock properties
Reference
<
css
::
chart
::
XStatisticDisplay
>
xStockPropProvider
(
mxDiagram
,
uno
::
UNO_QUERY
);
if
(
xStockPropProvider
.
is
())
...
...
@@ -1882,41 +1892,34 @@ void ChartExport::exportSurfaceChart( Reference< chart2::XChartType > xChartType
pFS
->
startElement
(
FSNS
(
XML_c
,
nTypeId
),
FSEND
);
sal_Int32
nAttachedAxis
=
AXIS_PRIMARY_Y
;
exportSeries
(
xChartType
,
nAttachedAxis
);
export
All
Series
(
xChartType
,
nAttachedAxis
);
exportAxesId
(
nAttachedAxis
);
pFS
->
endElement
(
FSNS
(
XML_c
,
nTypeId
)
);
}
void
ChartExport
::
export
Series
(
Reference
<
chart2
::
XChartType
>
xChartType
,
sal_Int32
&
nAttachedAxis
)
void
ChartExport
::
export
AllSeries
(
Reference
<
chart2
::
XChartType
>
xChartType
,
sal_Int32
&
nAttachedAxis
)
{
OUString
aLabelRole
=
xChartType
->
getRoleOfSequenceForSeriesLabel
();
Reference
<
chart2
::
XDataSeriesContainer
>
xDSCnt
(
xChartType
,
uno
::
UNO_QUERY
);
if
(
!
xDSCnt
.
is
())
return
;
// export dataseries for current chart-type
Sequence
<
Reference
<
chart2
::
XDataSeries
>
>
aSeriesSeq
(
xDSCnt
->
getDataSeries
());
exportSeries
(
xChartType
,
aSeriesSeq
,
nAttachedAxis
);
}
void
ChartExport
::
exportSeries
(
Reference
<
chart2
::
XChartType
>
xChartType
,
Sequence
<
Reference
<
chart2
::
XDataSeries
>
>&
rSeriesSeq
,
sal_Int32
&
nAttachedAxis
)
{
OUString
aLabelRole
=
xChartType
->
getRoleOfSequenceForSeriesLabel
();
OUString
aChartType
(
xChartType
->
getChartType
());
sal_Int32
eChartType
=
lcl_getChartType
(
aChartType
);
// special export for stock charts
if
(
eChartType
==
chart
::
TYPEID_STOCK
)
{
bool
bJapaneseCandleSticks
=
false
;
Reference
<
beans
::
XPropertySet
>
xCTProp
(
xChartType
,
uno
::
UNO_QUERY
);
if
(
xCTProp
.
is
())
xCTProp
->
getPropertyValue
(
"Japanese"
)
>>=
bJapaneseCandleSticks
;
exportCandleStickSeries
(
xDSCnt
->
getDataSeries
(),
bJapaneseCandleSticks
,
nAttachedAxis
);
return
;
}
// export dataseries for current chart-type
Sequence
<
Reference
<
chart2
::
XDataSeries
>
>
aSeriesSeq
(
xDSCnt
->
getDataSeries
());
for
(
sal_Int32
nSeriesIdx
=
0
;
nSeriesIdx
<
aSeriesSeq
.
getLength
();
++
nSeriesIdx
)
for
(
sal_Int32
nSeriesIdx
=
0
;
nSeriesIdx
<
rSeriesSeq
.
getLength
();
++
nSeriesIdx
)
{
// export series
Reference
<
chart2
::
data
::
XDataSource
>
xSource
(
a
SeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
);
Reference
<
chart2
::
data
::
XDataSource
>
xSource
(
r
SeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
);
if
(
xSource
.
is
())
{
Reference
<
chart2
::
XDataSeries
>
xDataSeries
(
xSource
,
uno
::
UNO_QUERY
);
...
...
@@ -1972,7 +1975,7 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
// export shape properties
Reference
<
XPropertySet
>
xPropSet
=
SchXMLSeriesHelper
::
createOldAPISeriesPropertySet
(
a
SeriesSeq
[
nSeriesIdx
],
getModel
()
);
r
SeriesSeq
[
nSeriesIdx
],
getModel
()
);
if
(
xPropSet
.
is
()
)
{
if
(
GetProperty
(
xPropSet
,
"Axis"
)
)
...
...
@@ -2028,12 +2031,12 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
}
// export data points
exportDataPoints
(
uno
::
Reference
<
beans
::
XPropertySet
>
(
a
SeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
),
nSeriesLength
);
exportDataPoints
(
uno
::
Reference
<
beans
::
XPropertySet
>
(
r
SeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
),
nSeriesLength
);
// export data labels
exportDataLabels
(
a
SeriesSeq
[
nSeriesIdx
],
nSeriesLength
,
eChartType
);
exportDataLabels
(
r
SeriesSeq
[
nSeriesIdx
],
nSeriesLength
,
eChartType
);
exportTrendlines
(
a
SeriesSeq
[
nSeriesIdx
]
);
exportTrendlines
(
r
SeriesSeq
[
nSeriesIdx
]
);
if
(
eChartType
!=
chart
::
TYPEID_PIE
&&
eChartType
!=
chart
::
TYPEID_RADARLINE
)
...
...
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