summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-06 08:16:56 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-06 08:16:56 +0000
commitfcc0aa7b8c49a51402c3c8adef113cd96d6638c4 (patch)
treebe6cfc33ad6a87bc91a00d8f1d37b163ad81911c /chart2
parent2c816b7ee0720d1003385964423e19f326d388d6 (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.cxx17
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 )
{