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
c86aed38
Kaydet (Commit)
c86aed38
authored
Kas 23, 2013
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Support regression curve name in OOXML (import & export).
Change-Id: I847e0df4f160e4b5078961a0e77c1e1e3fff9bd4
üst
2b243ba5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
12 deletions
+21
-12
seriesmodel.hxx
include/oox/drawingml/chart/seriesmodel.hxx
+1
-1
seriesconverter.cxx
oox/source/drawingml/chart/seriesconverter.cxx
+2
-0
chartexport.cxx
oox/source/export/chartexport.cxx
+17
-11
properties.txt
oox/source/token/properties.txt
+1
-0
No files found.
include/oox/drawingml/chart/seriesmodel.hxx
Dosyayı görüntüle @
c86aed38
...
@@ -148,7 +148,7 @@ struct TrendlineModel
...
@@ -148,7 +148,7 @@ struct TrendlineModel
ShapeRef
mxShapeProp
;
/// Trendline formatting.
ShapeRef
mxShapeProp
;
/// Trendline formatting.
TrendlineLabelRef
mxLabel
;
/// Trendline label text object.
TrendlineLabelRef
mxLabel
;
/// Trendline label text object.
OUString
maName
;
/// User-defined name of the trendline.
OUString
maName
;
/// User-defined name of the trendline.
OptValue
<
double
>
mfBackward
;
/// Size of trendline before first data point.
OptValue
<
double
>
mfBackward
;
/// Size of trendline before first data point.
OptValue
<
double
>
mfForward
;
/// Size of trendline behind last data point.
OptValue
<
double
>
mfForward
;
/// Size of trendline behind last data point.
OptValue
<
double
>
mfIntercept
;
/// Crossing point with Y axis.
OptValue
<
double
>
mfIntercept
;
/// Crossing point with Y axis.
...
...
oox/source/drawingml/chart/seriesconverter.cxx
Dosyayı görüntüle @
c86aed38
...
@@ -433,6 +433,8 @@ void TrendlineConverter::convertFromModel( const Reference< XDataSeries >& rxDat
...
@@ -433,6 +433,8 @@ void TrendlineConverter::convertFromModel( const Reference< XDataSeries >& rxDat
Reference
<
XRegressionCurve
>
xRegCurve
(
createInstance
(
aServiceName
),
UNO_QUERY_THROW
);
Reference
<
XRegressionCurve
>
xRegCurve
(
createInstance
(
aServiceName
),
UNO_QUERY_THROW
);
PropertySet
aPropSet
(
xRegCurve
);
PropertySet
aPropSet
(
xRegCurve
);
// Name
aPropSet
.
setProperty
(
PROP_CurveName
,
mrModel
.
maName
);
aPropSet
.
setProperty
(
PROP_PolynomialDegree
,
mrModel
.
mnOrder
);
aPropSet
.
setProperty
(
PROP_PolynomialDegree
,
mrModel
.
mnOrder
);
aPropSet
.
setProperty
(
PROP_MovingAveragePeriod
,
mrModel
.
mnPeriod
);
aPropSet
.
setProperty
(
PROP_MovingAveragePeriod
,
mrModel
.
mnPeriod
);
...
...
oox/source/export/chartexport.cxx
Dosyayı görüntüle @
c86aed38
...
@@ -1540,8 +1540,7 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
...
@@ -1540,8 +1540,7 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
if
(
eChartType
!=
chart
::
TYPEID_SCATTER
&&
eChartType
!=
chart
::
TYPEID_BAR
)
if
(
eChartType
!=
chart
::
TYPEID_SCATTER
&&
eChartType
!=
chart
::
TYPEID_BAR
)
exportDataLabels
(
uno
::
Reference
<
beans
::
XPropertySet
>
(
aSeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
),
nSeriesLength
);
exportDataLabels
(
uno
::
Reference
<
beans
::
XPropertySet
>
(
aSeriesSeq
[
nSeriesIdx
],
uno
::
UNO_QUERY
),
nSeriesLength
);
if
(
eChartType
==
chart
::
TYPEID_SCATTER
)
exportTrendlines
(
aSeriesSeq
[
nSeriesIdx
]
);
exportTrendlines
(
aSeriesSeq
[
nSeriesIdx
]
);
//export error bars here
//export error bars here
Reference
<
XPropertySet
>
xSeriesPropSet
(
xSource
,
uno
::
UNO_QUERY
);
Reference
<
XPropertySet
>
xSeriesPropSet
(
xSource
,
uno
::
UNO_QUERY
);
...
@@ -2523,14 +2522,22 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
...
@@ -2523,14 +2522,22 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
if
(
!
xRegCurve
.
is
())
if
(
!
xRegCurve
.
is
())
continue
;
continue
;
Reference
<
XPropertySet
>
xProperties
(
xRegCurve
,
uno
::
UNO_QUERY
);
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_trendline
),
FSEND
);
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_trendline
),
FSEND
);
Reference
<
XPropertySet
>
xProperties
(
xRegCurve
,
uno
::
UNO_QUERY
);
OUString
aName
;
xProperties
->
getPropertyValue
(
"CurveName"
)
>>=
aName
;
if
(
!
aName
.
isEmpty
())
{
pFS
->
startElement
(
FSNS
(
XML_c
,
XML_name
),
FSEND
);
pFS
->
writeEscaped
(
aName
);
pFS
->
endElement
(
FSNS
(
XML_c
,
XML_name
)
);
}
exportShapeProps
(
xProperties
);
exportShapeProps
(
xProperties
);
OUString
aService
;
OUString
aService
;
Reference
<
lang
::
XServiceName
>
xServiceName
(
xProperties
,
UNO_QUERY
);
Reference
<
lang
::
XServiceName
>
xServiceName
(
xProperties
,
UNO_QUERY
);
if
(
!
xServiceName
.
is
()
)
if
(
!
xServiceName
.
is
()
)
continue
;
continue
;
...
@@ -2593,8 +2600,8 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
...
@@ -2593,8 +2600,8 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
double
aExtrapolateForward
=
0.0
;
double
aExtrapolateForward
=
0.0
;
double
aExtrapolateBackward
=
0.0
;
double
aExtrapolateBackward
=
0.0
;
xProperties
->
getPropertyValue
(
"ExtrapolateForward"
)
>>=
aExtrapolateForward
;
xProperties
->
getPropertyValue
(
"ExtrapolateForward"
)
>>=
aExtrapolateForward
;
xProperties
->
getPropertyValue
(
"ExtrapolateBackward"
)
>>=
aExtrapolateBackward
;
xProperties
->
getPropertyValue
(
"ExtrapolateBackward"
)
>>=
aExtrapolateBackward
;
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_forward
),
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_forward
),
XML_val
,
OString
::
number
(
aExtrapolateForward
).
getStr
(),
XML_val
,
OString
::
number
(
aExtrapolateForward
).
getStr
(),
...
@@ -2605,29 +2612,28 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
...
@@ -2605,29 +2612,28 @@ void ChartExport::exportTrendlines( Reference< chart2::XDataSeries > xSeries )
FSEND
);
FSEND
);
sal_Bool
aForceIntercept
=
false
;
sal_Bool
aForceIntercept
=
false
;
xProperties
->
getPropertyValue
(
"ForceIntercept"
)
>>=
aForceIntercept
;
xProperties
->
getPropertyValue
(
"ForceIntercept"
)
>>=
aForceIntercept
;
if
(
aForceIntercept
)
if
(
aForceIntercept
)
{
{
double
aInterceptValue
=
0.0
;
double
aInterceptValue
=
0.0
;
xProperties
->
getPropertyValue
(
"InterceptValue"
)
>>=
aInterceptValue
;
xProperties
->
getPropertyValue
(
"InterceptValue"
)
>>=
aInterceptValue
;
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_intercept
),
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_intercept
),
XML_val
,
OString
::
number
(
aInterceptValue
).
getStr
(),
XML_val
,
OString
::
number
(
aInterceptValue
).
getStr
(),
FSEND
);
FSEND
);
}
}
// Equation properties
// Equation properties
Reference
<
XPropertySet
>
xEquationProperties
(
xRegCurve
->
getEquationProperties
()
);
Reference
<
XPropertySet
>
xEquationProperties
(
xRegCurve
->
getEquationProperties
()
);
// Show Equation
// Show Equation
sal_Bool
aShowEquation
=
false
;
sal_Bool
aShowEquation
=
false
;
xEquationProperties
->
getPropertyValue
(
"ShowEquation"
)
>>=
aShowEquation
;
xEquationProperties
->
getPropertyValue
(
"ShowEquation"
)
>>=
aShowEquation
;
// Show R^2
// Show R^2
sal_Bool
aShowCorrelationCoefficient
=
false
;
sal_Bool
aShowCorrelationCoefficient
=
false
;
xEquationProperties
->
getPropertyValue
(
"ShowCorrelationCoefficient"
)
>>=
aShowCorrelationCoefficient
;
xEquationProperties
->
getPropertyValue
(
"ShowCorrelationCoefficient"
)
>>=
aShowCorrelationCoefficient
;
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_dispRSqr
),
pFS
->
singleElement
(
FSNS
(
XML_c
,
XML_dispRSqr
),
XML_val
,
aShowCorrelationCoefficient
?
"1"
:
"0"
,
XML_val
,
aShowCorrelationCoefficient
?
"1"
:
"0"
,
...
...
oox/source/token/properties.txt
Dosyayı görüntüle @
c86aed38
...
@@ -109,6 +109,7 @@ CrossoverValue
...
@@ -109,6 +109,7 @@ CrossoverValue
CursorPositionX
CursorPositionX
CursorPositionY
CursorPositionY
CurveStyle
CurveStyle
CurveName
CustomShapeGeometry
CustomShapeGeometry
D3DSceneAmbientColor
D3DSceneAmbientColor
D3DSceneLightColor2
D3DSceneLightColor2
...
...
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