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
Hide 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()
...
@@ -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
)
bool
bIncludeTable
)
{
{
FSHelperPtr
pFS
=
GetFS
();
FSHelperPtr
pFS
=
GetFS
();
...
@@ -755,23 +755,23 @@ void ChartExport::exportChartSpace( Reference< css::chart::XChartDocument > rCha
...
@@ -755,23 +755,23 @@ void ChartExport::exportChartSpace( Reference< css::chart::XChartDocument > rCha
// TODO:external data
// TODO:external data
}
}
//XML_chart
//XML_chart
exportChart
(
r
ChartDoc
);
exportChart
(
x
ChartDoc
);
// TODO: printSettings
// TODO: printSettings
// TODO: style
// TODO: style
// TODO: text properties
// TODO: text properties
// TODO: shape 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
()
)
if
(
xPropSet
.
is
()
)
exportShapeProps
(
xPropSet
);
exportShapeProps
(
xPropSet
);
//XML_externalData
//XML_externalData
exportExternalData
(
r
ChartDoc
);
exportExternalData
(
x
ChartDoc
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_chartSpace
)
);
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
// Embedded external data is grab bagged for docx file hence adding export part of
// external data for docx files only.
// external data for docx files only.
...
@@ -779,7 +779,7 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > rC
...
@@ -779,7 +779,7 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > rC
return
;
return
;
OUString
externalDataPath
;
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
())
if
(
xDocPropSet
.
is
())
{
{
try
try
...
@@ -822,10 +822,10 @@ void ChartExport::exportExternalData( Reference< css::chart::XChartDocument > rC
...
@@ -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
);
Reference
<
chart2
::
XChartDocument
>
xNewDoc
(
x
ChartDoc
,
uno
::
UNO_QUERY
);
mxDiagram
.
set
(
r
ChartDoc
->
getDiagram
()
);
mxDiagram
.
set
(
x
ChartDoc
->
getDiagram
()
);
if
(
xNewDoc
.
is
())
if
(
xNewDoc
.
is
())
mxNewDiagram
.
set
(
xNewDoc
->
getFirstDiagram
());
mxNewDiagram
.
set
(
xNewDoc
->
getFirstDiagram
());
...
@@ -833,7 +833,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
...
@@ -833,7 +833,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
bool
bHasMainTitle
=
false
;
bool
bHasMainTitle
=
false
;
bool
bHasSubTitle
=
false
;
bool
bHasSubTitle
=
false
;
bool
bHasLegend
=
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
())
if
(
xDocPropSet
.
is
())
{
{
try
try
...
@@ -863,7 +863,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
...
@@ -863,7 +863,7 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
// title
// title
if
(
bHasMainTitle
)
if
(
bHasMainTitle
)
{
{
Reference
<
drawing
::
XShape
>
xShape
=
r
ChartDoc
->
getTitle
();
Reference
<
drawing
::
XShape
>
xShape
=
x
ChartDoc
->
getTitle
();
if
(
xShape
.
is
()
)
if
(
xShape
.
is
()
)
{
{
exportTitle
(
xShape
);
exportTitle
(
xShape
);
...
@@ -904,9 +904,9 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
...
@@ -904,9 +904,9 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
exportPlotArea
(
);
exportPlotArea
(
);
// legend
// legend
if
(
bHasLegend
)
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"
);
uno
::
Any
aPlotVisOnly
=
xDiagramPropSet
->
getPropertyValue
(
"IncludeHiddenCells"
);
bool
bIncludeHiddenCells
=
false
;
bool
bIncludeHiddenCells
=
false
;
aPlotVisOnly
>>=
bIncludeHiddenCells
;
aPlotVisOnly
>>=
bIncludeHiddenCells
;
...
@@ -952,13 +952,13 @@ void ChartExport::exportMissingValueTreatment(uno::Reference<beans::XPropertySet
...
@@ -952,13 +952,13 @@ void ChartExport::exportMissingValueTreatment(uno::Reference<beans::XPropertySet
FSEND
);
FSEND
);
}
}
void
ChartExport
::
exportLegend
(
Reference
<
css
::
chart
::
XChartDocument
>
r
ChartDoc
)
void
ChartExport
::
exportLegend
(
Reference
<
css
::
chart
::
XChartDocument
>
x
ChartDoc
)
{
{
FSHelperPtr
pFS
=
GetFS
();
FSHelperPtr
pFS
=
GetFS
();
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_legend
),
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_legend
),
FSEND
);
FSEND
);
Reference
<
beans
::
XPropertySet
>
xProp
(
r
ChartDoc
->
getLegend
(),
uno
::
UNO_QUERY
);
Reference
<
beans
::
XPropertySet
>
xProp
(
x
ChartDoc
->
getLegend
(),
uno
::
UNO_QUERY
);
if
(
xProp
.
is
()
)
if
(
xProp
.
is
()
)
{
{
// position
// 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