summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/DataPointProperties.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-11-26 11:31:01 +0000
committerBjörn Milcke <bm@openoffice.org>2003-11-26 11:31:01 +0000
commit45ae4849a20147b263e44501c87a22521a7e046e (patch)
tree8fc2c520515c35d4b4d02428d03fcfffc56ddfce /chart2/source/model/main/DataPointProperties.cxx
parentd00bc76848fe5449f784a7affcb9a08f19065c87 (diff)
relative font sizes for data points
Diffstat (limited to 'chart2/source/model/main/DataPointProperties.cxx')
-rw-r--r--chart2/source/model/main/DataPointProperties.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/chart2/source/model/main/DataPointProperties.cxx b/chart2/source/model/main/DataPointProperties.cxx
index 6d29b93a341d..3f9c1bbcd498 100644
--- a/chart2/source/model/main/DataPointProperties.cxx
+++ b/chart2/source/model/main/DataPointProperties.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DataPointProperties.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: bm $ $Date: 2003-11-13 12:43:54 $
+ * last change: $Author: bm $ $Date: 2003-11-26 12:31:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -274,6 +274,13 @@ void DataPointProperties::AddPropertiesToVector(
::getCppuType( reinterpret_cast< const chart2::NumberFormat * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
+
+ rOutProperties.push_back(
+ Property( C2U( "ReferenceDiagramSize" ),
+ PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE,
+ ::getCppuType( reinterpret_cast< const awt::Size * >(0)),
+ beans::PropertyAttribute::BOUND
+ | beans::PropertyAttribute::MAYBEVOID ));
}
void DataPointProperties::AddDefaultsToMap(
@@ -368,6 +375,11 @@ void DataPointProperties::AddDefaultsToMap(
OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_DATAPOINT_NUMBER_FORMAT ));
rOutMap[ PROP_DATAPOINT_NUMBER_FORMAT ] =
uno::makeAny( aFormat );
+
+ // todo: default is just for testing. should be void
+ OSL_ASSERT( rOutMap.end() == rOutMap.find( PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE ));
+ rOutMap[ PROP_DATAPOINT_REFERENCE_DIAGRAM_SIZE ] =
+ uno::makeAny( awt::Size( 20000, 15000 ) );
}
} // namespace chart