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
befef6a7
Kaydet (Commit)
befef6a7
authored
Eyl 07, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use correct axis type in secondary x axis export
Change-Id: Ic21d88b55b22c650de4fd69479b51d0f640fec6f
üst
7ce77fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
chartexport.cxx
oox/source/export/chartexport.cxx
+19
-7
No files found.
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
befef6a7
...
@@ -2455,6 +2455,21 @@ void ChartExport::exportAxes( )
...
@@ -2455,6 +2455,21 @@ void ChartExport::exportAxes( )
}
}
}
}
namespace
{
sal_Int32
getXAxisType
(
sal_Int32
eChartType
)
{
if
(
(
eChartType
==
chart
::
TYPEID_SCATTER
)
||
(
eChartType
==
chart
::
TYPEID_BUBBLE
)
)
return
XML_valAx
;
else
if
(
eChartType
==
chart
::
TYPEID_STOCK
)
return
XML_dateAx
;
return
XML_catAx
;
}
}
void
ChartExport
::
exportAxis
(
const
AxisIdPair
&
rAxisIdPair
)
void
ChartExport
::
exportAxis
(
const
AxisIdPair
&
rAxisIdPair
)
{
{
// get some properties from document first
// get some properties from document first
...
@@ -2518,12 +2533,8 @@ void ChartExport::exportAxis(const AxisIdPair& rAxisIdPair)
...
@@ -2518,12 +2533,8 @@ void ChartExport::exportAxis(const AxisIdPair& rAxisIdPair)
if
(
bHasXAxisMinorGrid
)
if
(
bHasXAxisMinorGrid
)
xMinorGrid
.
set
(
xAxisXSupp
->
getXHelpGrid
(),
uno
::
UNO_QUERY
);
xMinorGrid
.
set
(
xAxisXSupp
->
getXHelpGrid
(),
uno
::
UNO_QUERY
);
sal_Int32
eChartType
=
getChartType
(
);
sal_Int32
eChartType
=
getChartType
();
if
(
(
eChartType
==
chart
::
TYPEID_SCATTER
)
nAxisType
=
getXAxisType
(
eChartType
);
||
(
eChartType
==
chart
::
TYPEID_BUBBLE
)
)
nAxisType
=
XML_valAx
;
else
if
(
eChartType
==
chart
::
TYPEID_STOCK
)
nAxisType
=
XML_dateAx
;
// FIXME: axPos, need to check axis direction
// FIXME: axPos, need to check axis direction
sAxPos
=
"b"
;
sAxPos
=
"b"
;
break
;
break
;
...
@@ -2578,7 +2589,8 @@ void ChartExport::exportAxis(const AxisIdPair& rAxisIdPair)
...
@@ -2578,7 +2589,8 @@ void ChartExport::exportAxis(const AxisIdPair& rAxisIdPair)
xAxisTitle
.
set
(
xAxisSupp
->
getSecondXAxisTitle
(),
uno
::
UNO_QUERY
);
xAxisTitle
.
set
(
xAxisSupp
->
getSecondXAxisTitle
(),
uno
::
UNO_QUERY
);
}
}
nAxisType
=
XML_valAx
;
sal_Int32
eChartType
=
getChartType
();
nAxisType
=
getXAxisType
(
eChartType
);
// FIXME: axPos, need to check axis direction
// FIXME: axPos, need to check axis direction
sAxPos
=
"t"
;
sAxPos
=
"t"
;
break
;
break
;
...
...
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