summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/chart/typegroupmodel.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 17:37:14 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 17:37:14 +0000
commitb0049b8599c80058b7365b5aed981216c169a90c (patch)
treef92c1baaf43b7b38232e3f8594eb99d9fa5315e6 /oox/source/drawingml/chart/typegroupmodel.cxx
parent48cdffad4f8ab112bd90353e502584f790061c7b (diff)
INTEGRATION: CWS xmlfilter03_DEV300 (1.1.2); FILE ADDED
2008/02/19 09:00:53 dr 1.1.2.7: #i10000# gcc warnings 2008/02/18 14:40:21 dr 1.1.2.6: layout/axes 2008/02/15 16:25:18 dr 1.1.2.5: axis start 2008/02/15 15:41:51 dr 1.1.2.4: chart types 2008/02/13 14:38:30 dr 1.1.2.3: new base classes 2008/02/12 16:05:42 dr 1.1.2.2: data series 2008/02/12 14:38:00 dr 1.1.2.1: type group
Diffstat (limited to 'oox/source/drawingml/chart/typegroupmodel.cxx')
-rw-r--r--oox/source/drawingml/chart/typegroupmodel.cxx95
1 files changed, 95 insertions, 0 deletions
diff --git a/oox/source/drawingml/chart/typegroupmodel.cxx b/oox/source/drawingml/chart/typegroupmodel.cxx
new file mode 100644
index 000000000000..b01b67000db8
--- /dev/null
+++ b/oox/source/drawingml/chart/typegroupmodel.cxx
@@ -0,0 +1,95 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: typegroupmodel.cxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: kz $ $Date: 2008-03-05 18:37:14 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+#include "oox/drawingml/chart/typegroupmodel.hxx"
+#include "oox/drawingml/chart/seriesmodel.hxx"
+
+namespace oox {
+namespace drawingml {
+namespace chart {
+
+// ============================================================================
+
+TypeGroupData::TypeGroupData( sal_Int32 nTypeId ) :
+ mfSplitPos( 0.0 ),
+ mnBarDir( XML_col ),
+ mnBubbleScale( 100 ),
+ mnFirstAngle( 0 ),
+ mnGapDepth( 150 ),
+ mnGapWidth( 150 ),
+ mnGrouping( XML_standard ),
+ mnHoleSize( 10 ),
+ mnOfPieType( XML_pie ),
+ mnOverlap( 0 ),
+ mnRadarStyle( XML_standard ),
+ mnScatterStyle( XML_marker ),
+ mnSecondPieSize( 75 ),
+ mnShape( XML_box ),
+ mnSizeRepresents( XML_area ),
+ mnSplitType( XML_auto ),
+ mnTypeId( nTypeId ),
+ mbBubble3d( false ),
+ mbShowMarker( false ),
+ mbShowNegBubbles( false ),
+ mbSmooth( false ),
+ mbVaryColors( false ),
+ mbWireframe( false )
+{
+}
+
+// ----------------------------------------------------------------------------
+
+TypeGroupModel::TypeGroupModel( sal_Int32 nTypeId ) :
+ ModelData< TypeGroupData >( nTypeId )
+{
+}
+
+TypeGroupModel::~TypeGroupModel()
+{
+}
+
+SeriesModel& TypeGroupModel::createSeries()
+{
+ SeriesVector::value_type xSeries( new SeriesModel );
+ maSeries.push_back( xSeries );
+ return *xSeries;
+}
+
+// ============================================================================
+
+} // namespace chart
+} // namespace drawingml
+} // namespace oox
+