diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 17:43:16 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-05-22 17:43:16 +0000 |
commit | b594cf303eb69b4deb30351aba5fcc668ef75033 (patch) | |
tree | f339d523233c4b4e508c9a38691a9b49dac912e5 /chart2/source/model/main/_serviceregistration_model.cxx | |
parent | f8f9d8ae237fda4260ebdcf2806e57a22b8486b5 (diff) |
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED
2006/10/18 17:12:33 bm 1.2.4.12: RESYNC: (1.3-1.4); FILE MERGED
2006/04/11 15:41:21 bm 1.2.4.11: make creation of coordinate systems available via factory
2006/04/11 15:33:13 bm 1.2.4.10: make creation of coordinate systems available via factory
2006/04/10 12:25:12 iha 1.2.4.9: api restructure axis, grids, scales and increments
2006/03/10 10:55:22 iha 1.2.4.8: don't use leading underscore
2005/10/07 11:59:58 bm 1.2.4.7: RESYNC: (1.2-1.3); FILE MERGED
2005/06/08 09:00:48 bm 1.2.4.6: FileDataSource/Provider removed from registration
2004/09/16 16:02:07 bm 1.2.4.5: API simplification
2004/09/16 14:43:16 bm 1.2.4.4: also register chart types (defined in template/_serviceregistration_charttypes.cxx)
2004/09/15 17:32:02 bm 1.2.4.3: API simplification
2004/04/27 13:39:53 bm 1.2.4.2: +DataSeries
2004/03/02 09:47:39 bm 1.2.4.1: register XMLFilter as component
Diffstat (limited to 'chart2/source/model/main/_serviceregistration_model.cxx')
-rw-r--r-- | chart2/source/model/main/_serviceregistration_model.cxx | 141 |
1 files changed, 56 insertions, 85 deletions
diff --git a/chart2/source/model/main/_serviceregistration_model.cxx b/chart2/source/model/main/_serviceregistration_model.cxx index b4aab2a57580..c52d9c53539b 100644 --- a/chart2/source/model/main/_serviceregistration_model.cxx +++ b/chart2/source/model/main/_serviceregistration_model.cxx @@ -4,9 +4,9 @@ * * $RCSfile: _serviceregistration_model.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2006-09-17 13:16:16 $ + * last change: $Author: vg $ $Date: 2007-05-22 18:43:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -41,29 +41,22 @@ #ifndef _CHARTMODEL_HXX #include "ChartModel.hxx" #endif -#ifndef CHART_FILEDATAPROVIDER_HXX -#include "FileDataProvider.hxx" -#endif -#ifndef CHART_FILEDATASOURCE_HXX -#include "FileDataSource.hxx" -#endif #include "Diagram.hxx" #include "Legend.hxx" #include "Axis.hxx" -#include "Grid.hxx" +#include "GridProperties.hxx" #include "Title.hxx" #include "FormattedString.hxx" #include "PageBackground.hxx" - -#include "DataSeriesTree.hxx" -#include "ChartTypeGroup.hxx" -#include "ContinuousScaleGroup.hxx" -#include "DiscreteScaleGroup.hxx" +#include "DataSeries.hxx" +#include "PolarCoordinateSystem.hxx" +#include "CartesianCoordinateSystem.hxx" #include "ChartTypeManager.hxx" -// #include "BoundedCoordinateSystem.hxx" -#include "Scale.hxx" +#include "XMLFilter.hxx" + +#include "_serviceregistration_charttypes.hxx" static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = { @@ -76,22 +69,6 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = , 0 } ,{ - ::chart::FileDataProvider::create - , ::chart::FileDataProvider::getImplementationName_Static - , ::chart::FileDataProvider::getSupportedServiceNames_Static - , ::cppu::createSingleComponentFactory - , 0 - , 0 - } - ,{ - ::chart::FileDataSource::create - , ::chart::FileDataSource::getImplementationName_Static - , ::chart::FileDataSource::getSupportedServiceNames_Static - , ::cppu::createSingleComponentFactory - , 0 - , 0 - } - ,{ ::chart::Diagram::create , ::chart::Diagram::getImplementationName_Static , ::chart::Diagram::getSupportedServiceNames_Static @@ -116,9 +93,9 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = , 0 } ,{ - ::chart::Grid::create - , ::chart::Grid::getImplementationName_Static - , ::chart::Grid::getSupportedServiceNames_Static + ::chart::GridProperties::create + , ::chart::GridProperties::getImplementationName_Static + , ::chart::GridProperties::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 @@ -142,81 +119,65 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = } ,{ - ::chart::DataSeriesTree::create - , ::chart::DataSeriesTree::getImplementationName_Static - , ::chart::DataSeriesTree::getSupportedServiceNames_Static - , ::cppu::createSingleComponentFactory - , 0 - , 0 - } - ,{ - ::chart::ChartTypeGroup::create - , ::chart::ChartTypeGroup::getImplementationName_Static - , ::chart::ChartTypeGroup::getSupportedServiceNames_Static + ::chart::ChartTypeManager::create + , ::chart::ChartTypeManager::getImplementationName_Static + , ::chart::ChartTypeManager::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } - ,{ - ::chart::ContinuousScaleGroup::create - , ::chart::ContinuousScaleGroup::getImplementationName_Static - , ::chart::ContinuousScaleGroup::getSupportedServiceNames_Static + ,{ + ::chart::PageBackground::create + , ::chart::PageBackground::getImplementationName_Static + , ::chart::PageBackground::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } - ,{ - ::chart::DiscreteScaleGroup::create - , ::chart::DiscreteScaleGroup::getImplementationName_Static - , ::chart::DiscreteScaleGroup::getSupportedServiceNames_Static + ,{ + ::chart::DataSeries::create + , ::chart::DataSeries::getImplementationName_Static + , ::chart::DataSeries::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } - ,{ - ::chart::ContinuousStackableScaleGroup::create - , ::chart::ContinuousStackableScaleGroup::getImplementationName_Static - , ::chart::ContinuousStackableScaleGroup::getSupportedServiceNames_Static + ,{ + ::chart::XMLFilter::create + , ::chart::XMLFilter::getImplementationName_Static + , ::chart::XMLFilter::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } - ,{ - ::chart::DiscreteStackableScaleGroup::create - , ::chart::DiscreteStackableScaleGroup::getImplementationName_Static - , ::chart::DiscreteStackableScaleGroup::getSupportedServiceNames_Static + ,{ + ::chart::PolarCoordinateSystem2d::create + , ::chart::PolarCoordinateSystem2d::getImplementationName_Static + , ::chart::PolarCoordinateSystem2d::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } - ,{ - ::chart::ChartTypeManager::create - , ::chart::ChartTypeManager::getImplementationName_Static - , ::chart::ChartTypeManager::getSupportedServiceNames_Static + ,{ + ::chart::PolarCoordinateSystem3d::create + , ::chart::PolarCoordinateSystem3d::getImplementationName_Static + , ::chart::PolarCoordinateSystem3d::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } -// ,{ -// ::chart::BoundedCoordinateSystem::create -// , ::chart::BoundedCoordinateSystem::getImplementationName_Static -// , ::chart::BoundedCoordinateSystem::getSupportedServiceNames_Static -// , ::cppu::createSingleComponentFactory -// , 0 -// , 0 -// } - ,{ - ::chart::Scale::create - , ::chart::Scale::getImplementationName_Static - , ::chart::Scale::getSupportedServiceNames_Static + ,{ + ::chart::CartesianCoordinateSystem2d::create + , ::chart::CartesianCoordinateSystem2d::getImplementationName_Static + , ::chart::CartesianCoordinateSystem2d::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 } ,{ - ::chart::PageBackground::create - , ::chart::PageBackground::getImplementationName_Static - , ::chart::PageBackground::getSupportedServiceNames_Static + ::chart::CartesianCoordinateSystem3d::create + , ::chart::CartesianCoordinateSystem3d::getImplementationName_Static + , ::chart::CartesianCoordinateSystem3d::getSupportedServiceNames_Static , ::cppu::createSingleComponentFactory , 0 , 0 @@ -237,15 +198,25 @@ void SAL_CALL component_getImplementationEnvironment( sal_Bool SAL_CALL component_writeInfo( void * pServiceManager, void * pRegistryKey ) { - return ::cppu::component_writeInfoHelper( - pServiceManager, pRegistryKey, g_entries_chart2_model ); + return (::cppu::component_writeInfoHelper( + pServiceManager, pRegistryKey, g_entries_chart2_model ) && + ::cppu::component_writeInfoHelper( + pServiceManager, pRegistryKey, + ChartTypeEntriesForServiceRegistration::getImplementationEntries() )); } //================================================================================================== void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { - return ::cppu::component_getFactoryHelper( - pImplName, pServiceManager, pRegistryKey , g_entries_chart2_model ); + void * pResult = ::cppu::component_getFactoryHelper( + pImplName, pServiceManager, pRegistryKey, g_entries_chart2_model ); + + if( ! pResult ) + pResult = ::cppu::component_getFactoryHelper( + pImplName, pServiceManager, pRegistryKey, + ChartTypeEntriesForServiceRegistration::getImplementationEntries() ); + + return pResult; } } //========================================================================= |