Kaydet (Commit) 0be6a5ef authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Transfer back properties from the chart type object to template object.

Change-Id: I3484a2ae0141087835e34e4e174bdc24b3357854
üst cd1e8972
......@@ -125,6 +125,27 @@ uno::Reference<chart2::XChartType> GL3DBarChartTypeTemplate::getChartTypeForInde
return xResult;
}
sal_Bool SAL_CALL GL3DBarChartTypeTemplate::matchesTemplate(
const css::uno::Reference<css::chart2::XDiagram>& xDiagram,
sal_Bool bAdaptProperties )
throw (css::uno::RuntimeException, std::exception)
{
bool bResult = ChartTypeTemplate::matchesTemplate(xDiagram, bAdaptProperties);
if (bResult && bAdaptProperties)
{
uno::Reference<chart2::XChartType> xChartType = DiagramHelper::getChartTypeByIndex(xDiagram, 0);
uno::Reference<beans::XPropertySet> xPS(xChartType, uno::UNO_QUERY);
if (xPS.is())
{
setFastPropertyValue_NoBroadcast(
PROP_GL3DCHARTTYPE_ROUNDED_EDGE, xPS->getPropertyValue(CHART_UNONAME_ROUNDED_EDGE));
}
}
return bResult;
}
uno::Reference<chart2::XChartType>
GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Reference<chart2::XChartType> >& /*xOldChartTypes*/ )
throw (::css::uno::RuntimeException, ::std::exception)
......
......@@ -38,6 +38,11 @@ public:
// XChartTypeTemplate
virtual sal_Bool SAL_CALL matchesTemplate(
const css::uno::Reference<css::chart2::XDiagram>& xDiagram,
sal_Bool bAdaptProperties )
throw (css::uno::RuntimeException, std::exception);
virtual css::uno::Reference<css::chart2::XChartType> SAL_CALL
getChartTypeForNewSeries( const css::uno::Sequence<css::uno::Reference<css::chart2::XChartType> >& xOldChartTypes )
throw (::css::uno::RuntimeException, ::std::exception) SAL_OVERRIDE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment