diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-06 08:16:56 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-06 08:16:56 +0000 |
commit | fcc0aa7b8c49a51402c3c8adef113cd96d6638c4 (patch) | |
tree | be6cfc33ad6a87bc91a00d8f1d37b163ad81911c /chart2 | |
parent | 2c816b7ee0720d1003385964423e19f326d388d6 (diff) |
INTEGRATION: CWS chart25 (1.10.10); FILE MERGED
2008/04/25 14:44:57 iha 1.10.10.1: #i88742# make default lines a bit stronger for line charts
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/DataSeriesHelper.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx index 8fde495ab928..646410dd28a9 100644 --- a/chart2/source/tools/DataSeriesHelper.cxx +++ b/chart2/source/tools/DataSeriesHelper.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DataSeriesHelper.cxx,v $ - * $Revision: 1.10 $ + * $Revision: 1.11 $ * * This file is part of OpenOffice.org. * @@ -558,6 +558,21 @@ void switchLinesOnOrOff( const Reference< beans::XPropertySet > & xSeriesPropert xSeriesProperties->setPropertyValue( C2U( "LineStyle" ), uno::makeAny( drawing::LineStyle_NONE ) ); } +void makeLinesThickOrThin( const Reference< beans::XPropertySet > & xSeriesProperties, bool bThick ) +{ + if( !xSeriesProperties.is() ) + return; + + sal_Int32 nNewValue = bThick ? 88 : 0; + sal_Int32 nOldValue = 0; + if( (xSeriesProperties->getPropertyValue( C2U( "LineWidth" )) >>= nOldValue ) && + nOldValue != nNewValue ) + { + if( !(bThick && nOldValue>0)) + xSeriesProperties->setPropertyValue( C2U( "LineWidth" ), uno::makeAny( nNewValue ) ); + } +} + void setPropertyAlsoToAllAttributedDataPoints( const Reference< chart2::XDataSeries >& xSeries, const OUString& rPropertyName, const uno::Any& rPropertyValue ) { |