diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-08-06 13:10:58 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-08-06 13:10:58 +0200 |
commit | 515ceca5153d67ea602ab8c4fb339a7b42e9063e (patch) | |
tree | b6850adccef665f09fa343a8abd57680fa3a23d7 /chart2/source/model/main/_serviceregistration_model.cxx | |
parent | 62e62350c79f4d13a0d015670a6876f76bc15753 (diff) |
chart2: merge component files for new chartcore library
Change-Id: Id7cc969d854a98e9bd32fd396eb82ae92a06ba80
Diffstat (limited to 'chart2/source/model/main/_serviceregistration_model.cxx')
-rw-r--r-- | chart2/source/model/main/_serviceregistration_model.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
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; } |