From b0049b8599c80058b7365b5aed981216c169a90c Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 5 Mar 2008 17:37:14 +0000 Subject: 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 --- oox/source/drawingml/chart/typegroupmodel.cxx | 95 +++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 oox/source/drawingml/chart/typegroupmodel.cxx (limited to 'oox/source/drawingml/chart/typegroupmodel.cxx') 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 + -- cgit