summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-04-18 12:21:24 +0000
committerRüdiger Timm <rt@openoffice.org>2008-04-18 12:21:24 +0000
commitad6456a55260b611555e90855417ae4ed40d34c1 (patch)
tree91730a794257aff80d3f0de43e0f6143b8dc69bc /chart2
parent86858d1fb6be1cad184d7cc5bb1e992f46184bfa (diff)
INTEGRATION: CWS xmlfilter04 (1.12.2); FILE MERGED
2008/03/19 16:35:34 hbrinkm 1.12.2.2: RESYNC: (1.12-1.13); FILE MERGED 2008/03/14 16:17:17 iha 1.12.2.1: #i72994# simpler access to 3D settings
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx41
1 files changed, 31 insertions, 10 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
index 9b1198561a2b..688b5e667e36 100644
--- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DiagramWrapper.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
* This file is part of OpenOffice.org.
*
@@ -116,10 +116,13 @@ enum
PROP_DIAGRAM_SORT_BY_X_VALUES,
- PROP_DIAGRMA_RIGHT_ANGLED_AXES,
-
PROP_DIAGRAM_STARTING_ANGLE,
+ PROP_DIAGRAM_RIGHT_ANGLED_AXES,
+ PROP_DIAGRAM_PERSPECTIVE,
+ PROP_DIAGRAM_ROTATION_HORIZONTAL,
+ PROP_DIAGRAM_ROTATION_VERTICAL,
+
PROP_DIAGRAM_HAS_X_AXIS,
PROP_DIAGRAM_HAS_X_AXIS_DESCR,
PROP_DIAGRAM_HAS_X_AXIS_TITLE,
@@ -235,21 +238,39 @@ void lcl_AddPropertiesToVector(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
+ //for pie and donut charts
+ rOutProperties.push_back(
+ Property( C2U( "StartingAngle" ),
+ PROP_DIAGRAM_STARTING_ANGLE,
+ ::getCppuType( reinterpret_cast< const sal_Int32 * >(0) ),
+ beans::PropertyAttribute::BOUND
+ | beans::PropertyAttribute::MAYBEDEFAULT ));
+
//new for 3D charts
rOutProperties.push_back(
Property( C2U("RightAngledAxes"),
- PROP_DIAGRMA_RIGHT_ANGLED_AXES,
+ PROP_DIAGRAM_RIGHT_ANGLED_AXES,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
- //for pie and donut charts
rOutProperties.push_back(
- Property( C2U( "StartingAngle" ),
- PROP_DIAGRAM_STARTING_ANGLE,
- ::getCppuType( reinterpret_cast< const sal_Int32 * >(0) ),
- beans::PropertyAttribute::BOUND
- | beans::PropertyAttribute::MAYBEDEFAULT ));
+ Property( C2U("Perspective"),
+ PROP_DIAGRAM_PERSPECTIVE,
+ ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ beans::PropertyAttribute::MAYBEVOID ));
+
+ rOutProperties.push_back(
+ Property( C2U("RotationHorizontal"),
+ PROP_DIAGRAM_ROTATION_HORIZONTAL,
+ ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ beans::PropertyAttribute::MAYBEVOID ));
+
+ rOutProperties.push_back(
+ Property( C2U("RotationVertical"),
+ PROP_DIAGRAM_ROTATION_VERTICAL,
+ ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
+ beans::PropertyAttribute::MAYBEVOID ));
// XAxisXSupplier
rOutProperties.push_back(