From 515ceca5153d67ea602ab8c4fb339a7b42e9063e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 6 Aug 2012 13:10:58 +0200 Subject: chart2: merge component files for new chartcore library Change-Id: Id7cc969d854a98e9bd32fd396eb82ae92a06ba80 --- chart2/Library_chartcore.mk | 5 +- chart2/source/chartcore.component | 205 +++++++++++++++++++++ chart2/source/model/chartmodel.component | 141 -------------- .../model/main/_serviceregistration_model.cxx | 17 +- chart2/source/tools/charttools.component | 83 --------- chart2/source/view/chartview.component | 25 --- 6 files changed, 223 insertions(+), 253 deletions(-) create mode 100644 chart2/source/chartcore.component delete mode 100644 chart2/source/model/chartmodel.component delete mode 100644 chart2/source/tools/charttools.component delete mode 100644 chart2/source/view/chartview.component (limited to 'chart2') diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk index c34bdb1640fd..fe63ec80c010 100644 --- a/chart2/Library_chartcore.mk +++ b/chart2/Library_chartcore.mk @@ -45,8 +45,9 @@ $(eval $(call gb_Library_use_libraries,chartcore,\ $(gb_STDLIBS) \ )) +$(eval $(call gb_Library_set_componentfile,chartcore,chart2/source/chartcore)) + # view pieces ... -$(eval $(call gb_Library_set_componentfile,chartcore,chart2/source/view/chartview)) $(eval $(call gb_Library_add_exception_objects,chartcore,\ chart2/source/view/axes/DateHelper \ chart2/source/view/axes/DateScaling \ @@ -100,7 +101,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcore,\ )) # model pieces ... -$(eval $(call gb_Library_set_componentfile,chartcore,chart2/source/model/chartmodel)) $(eval $(call gb_Library_add_exception_objects,chartcore,\ chart2/source/model/filter/XMLFilter \ chart2/source/model/main/Axis \ @@ -154,7 +154,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcore,\ )) # tools pieces -$(eval $(call gb_Library_set_componentfile,chartcore,chart2/source/tools/charttools)) $(eval $(call gb_Library_add_exception_objects,chartcore,\ chart2/source/tools/AxisHelper \ chart2/source/tools/BaseGFXHelper \ diff --git a/chart2/source/chartcore.component b/chart2/source/chartcore.component new file mode 100644 index 000000000000..68ddc0d83cff --- /dev/null +++ b/chart2/source/chartcore.component @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/chart2/source/model/chartmodel.component b/chart2/source/model/chartmodel.component deleted file mode 100644 index 224d87813b97..000000000000 --- a/chart2/source/model/chartmodel.component +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/chart2/source/model/main/_serviceregistration_model.cxx b/chart2/source/model/main/_serviceregistration_model.cxx index 6afec1ec19f2..2139c81c42d3 100644 --- a/chart2/source/model/main/_serviceregistration_model.cxx +++ b/chart2/source/model/main/_serviceregistration_model.cxx @@ -174,7 +174,11 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_model[] = // component exports extern "C" { -SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartmodel_component_getFactory( +SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartview_component_getFactory( + const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ); +SAL_DLLPUBLIC_EXPORT void * SAL_CALL charttools_component_getFactory( + const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ); +SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartcore_component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) { void * pResult = ::cppu::component_getFactoryHelper( @@ -184,6 +188,17 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartmodel_component_getFactory( pResult = ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, ChartTypeEntriesForServiceRegistration::getImplementationEntries() ); + if (!pResult) + { + pResult = charttools_component_getFactory( + pImplName, pServiceManager, pRegistryKey); + } + + if (!pResult) + { + pResult = chartview_component_getFactory( + pImplName, pServiceManager, pRegistryKey); + } return pResult; } diff --git a/chart2/source/tools/charttools.component b/chart2/source/tools/charttools.component deleted file mode 100644 index ae0741226da9..000000000000 --- a/chart2/source/tools/charttools.component +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/chart2/source/view/chartview.component b/chart2/source/view/chartview.component deleted file mode 100644 index 53bf92d2e2fe..000000000000 --- a/chart2/source/view/chartview.component +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - -- cgit