summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
index d2c9393edb72..1edf7e5c3abc 100644
--- a/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedDataCaptionProperties.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ enum
sal_Int32 lcl_LabelToCaption( const chart2::DataPointLabel& rLabel )
{
sal_Int32 nCaption=0;
-
+
if( rLabel.ShowNumber )
nCaption |= ::com::sun::star::chart::ChartDataCaption::VALUE;
if( rLabel.ShowNumberInPercent )
@@ -85,14 +85,14 @@ sal_Int32 lcl_LabelToCaption( const chart2::DataPointLabel& rLabel )
nCaption |= ::com::sun::star::chart::ChartDataCaption::TEXT;
if( rLabel.ShowLegendSymbol )
nCaption |= ::com::sun::star::chart::ChartDataCaption::SYMBOL;
-
+
return nCaption;
}
chart2::DataPointLabel lcl_CaptionToLabel( sal_Int32 nCaption )
{
chart2::DataPointLabel aLabel(false,false,false,false);
-
+
if( nCaption & ::com::sun::star::chart::ChartDataCaption::VALUE )
aLabel.ShowNumber = true;
if( nCaption & ::com::sun::star::chart::ChartDataCaption::PERCENT )
@@ -101,7 +101,7 @@ chart2::DataPointLabel lcl_CaptionToLabel( sal_Int32 nCaption )
aLabel.ShowCategoryName = true;
if( nCaption & ::com::sun::star::chart::ChartDataCaption::SYMBOL )
aLabel.ShowLegendSymbol = true;
-
+
return aLabel;
}
@@ -111,7 +111,7 @@ void lcl_addWrappedProperties( std::vector< WrappedProperty* >& rList
{
//if !spChart2ModelContact.get() is then the created properties do belong to a single series or single datapoint
//otherwise they do belong to the whole diagram
-
+
rList.push_back( new WrappedDataCaptionProperty( spChart2ModelContact, ePropertyType ) );
}