diff options
Diffstat (limited to 'chart2/source/tools/LinePropertiesHelper.cxx')
-rw-r--r-- | chart2/source/tools/LinePropertiesHelper.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chart2/source/tools/LinePropertiesHelper.cxx b/chart2/source/tools/LinePropertiesHelper.cxx index 8ec3a58202b6..41aa01d6bf68 100644 --- a/chart2/source/tools/LinePropertiesHelper.cxx +++ b/chart2/source/tools/LinePropertiesHelper.cxx @@ -168,6 +168,23 @@ void LinePropertiesHelper::SetLineInvisible( const ::com::sun::star::uno::Refere } } +void LinePropertiesHelper::SetLineColor( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xLineProperties, sal_Int32 nColor ) +{ + try + { + if( xLineProperties.is() ) + { + xLineProperties->setPropertyValue( "LineColor", uno::makeAny( nColor ) ); + } + } + catch( const uno::Exception & ex ) + { + ASSERT_EXCEPTION( ex ); + } +} + + } // namespace chart /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |