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
368e8b83
Kaydet (Commit)
368e8b83
authored
Nis 30, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't use r prefix for uno::Reference passed by value
Change-Id: I9b6478c75af5c959b52e501aff9c01d68860a295
üst
163c28b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
chartexport.cxx
oox/source/export/chartexport.cxx
+15
-15
No files found.
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
368e8b83
...
...
@@ -732,7 +732,7 @@ void ChartExport::_ExportContent()
}
}
void
ChartExport
::
exportChartSpace
(
Reference
<
css
::
chart
::
XChartDocument
>
r
ChartDoc
,
void
ChartExport
::
exportChartSpace
(
Reference
<
css
::
chart
::
XChartDocument
>
x
ChartDoc
,
bool
bIncludeTable
)
{
FSHelperPtr
pFS
=
GetFS
();
...
...
@@ -755,23 +755,23 @@ void ChartExport::exportChartSpace( Reference< css::chart::XChartDocument > rCha
// TODO:external data
}
//XML_chart
exportChart
(
r
ChartDoc
);
exportChart
(
x
ChartDoc
);
// TODO: printSettings
// TODO: style
// TODO: text properties
// TODO: shape properties
Reference
<
XPropertySet
>
xPropSet
(
r
ChartDoc
->
getArea
(),
uno
::
UNO_QUERY
);
Reference
<
XPropertySet
>
xPropSet
(
x
ChartDoc
->
getArea
(),
uno
::
UNO_QUERY
);
if
(
xPropSet
.
is
()
)
exportShapeProps
(
xPropSet
);
//XML_externalData
exportExternalData
(
r
ChartDoc
);
exportExternalData
(
x
ChartDoc
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_chartSpace
)
);
}
void
ChartExport
::
exportExternalData
(
Reference
<
css
::
chart
::
XChartDocument
>
r
ChartDoc
)
void
ChartExport
::
exportExternalData
(
Reference
<
css
::
chart
::
XChartDocument
>
x
ChartDoc
)
{
// Embedded external data is grab bagged for docx file hence adding export part of
// external data for docx files only.
...
...
@@ -779,7 +779,7 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > rC
return
;
OUString
externalDataPath
;
Reference
<
beans
::
XPropertySet
>
xDocPropSet
(
r
ChartDoc
->
getDiagram
(),
uno
::
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xDocPropSet
(
x
ChartDoc
->
getDiagram
(),
uno
::
UNO_QUERY
);
if
(
xDocPropSet
.
is
())
{
try
...
...
@@ -822,10 +822,10 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > rC
}
}
void
ChartExport
::
exportChart
(
Reference
<
css
::
chart
::
XChartDocument
>
r
ChartDoc
)
void
ChartExport
::
exportChart
(
Reference
<
css
::
chart
::
XChartDocument
>
x
ChartDoc
)
{
Reference
<
chart2
::
XChartDocument
>
xNewDoc
(
r
ChartDoc
,
uno
::
UNO_QUERY
);
mxDiagram
.
set
(
r
ChartDoc
->
getDiagram
()
);
Reference
<
chart2
::
XChartDocument
>
xNewDoc
(
x
ChartDoc
,
uno
::
UNO_QUERY
);
mxDiagram
.
set
(
x
ChartDoc
->
getDiagram
()
);
if
(
xNewDoc
.
is
())
mxNewDiagram
.
set
(
xNewDoc
->
getFirstDiagram
());
...
...
@@ -833,7 +833,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
bool
bHasMainTitle
=
false
;
bool
bHasSubTitle
=
false
;
bool
bHasLegend
=
false
;
Reference
<
beans
::
XPropertySet
>
xDocPropSet
(
r
ChartDoc
,
uno
::
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xDocPropSet
(
x
ChartDoc
,
uno
::
UNO_QUERY
);
if
(
xDocPropSet
.
is
())
{
try
...
...
@@ -863,7 +863,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
// title
if
(
bHasMainTitle
)
{
Reference
<
drawing
::
XShape
>
xShape
=
r
ChartDoc
->
getTitle
();
Reference
<
drawing
::
XShape
>
xShape
=
x
ChartDoc
->
getTitle
();
if
(
xShape
.
is
()
)
{
exportTitle
(
xShape
);
...
...
@@ -904,9 +904,9 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
exportPlotArea
(
);
// legend
if
(
bHasLegend
)
exportLegend
(
r
ChartDoc
);
exportLegend
(
x
ChartDoc
);
uno
::
Reference
<
beans
::
XPropertySet
>
xDiagramPropSet
(
r
ChartDoc
->
getDiagram
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xDiagramPropSet
(
x
ChartDoc
->
getDiagram
(),
uno
::
UNO_QUERY
);
uno
::
Any
aPlotVisOnly
=
xDiagramPropSet
->
getPropertyValue
(
"IncludeHiddenCells"
);
bool
bIncludeHiddenCells
=
false
;
aPlotVisOnly
>>=
bIncludeHiddenCells
;
...
...
@@ -952,13 +952,13 @@ void ChartExport::exportMissingValueTreatment(uno::Reference<beans::XPropertySet
FSEND
);
}
void
ChartExport
::
exportLegend
(
Reference
<
css
::
chart
::
XChartDocument
>
r
ChartDoc
)
void
ChartExport
::
exportLegend
(
Reference
<
css
::
chart
::
XChartDocument
>
x
ChartDoc
)
{
FSHelperPtr
pFS
=
GetFS
();
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_legend
),
FSEND
);
Reference
<
beans
::
XPropertySet
>
xProp
(
r
ChartDoc
->
getLegend
(),
uno
::
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xProp
(
x
ChartDoc
->
getLegend
(),
uno
::
UNO_QUERY
);
if
(
xProp
.
is
()
)
{
// position
...
...
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