summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-07-28 14:35:37 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2011-07-28 14:35:37 +0200
commitbd43eaea5d5d0f3bac307bd216e60c55a97fa805 (patch)
tree6256c003bedd7822fb3b6def0d86013b2e27640b
parent949561fec487a36cdff54ad3a0426443fe0d4ded (diff)
add prefixes for component_getFactory
-rw-r--r--chart2/source/controller/chartcontroller.component2
-rw-r--r--chart2/source/controller/main/_serviceregistration_controller.cxx2
-rw-r--r--chart2/source/model/chartmodel.component2
-rw-r--r--chart2/source/model/main/_serviceregistration_model.cxx2
-rw-r--r--chart2/source/tools/_serviceregistration_tools.cxx2
-rw-r--r--chart2/source/tools/charttools.component2
-rw-r--r--chart2/source/view/chartview.component2
-rw-r--r--chart2/source/view/main/_serviceregistration_view.cxx2
-rw-r--r--sc/source/filter/excel/xestream.cxx2
-rw-r--r--sc/source/ui/unoobj/appluno.cxx2
-rw-r--r--sc/source/ui/unoobj/detreg.cxx2
-rw-r--r--sc/source/ui/vba/service.cxx4
-rw-r--r--sc/util/sc.component2
-rw-r--r--sc/util/scd.component2
-rw-r--r--sc/util/scfilt.component2
-rw-r--r--sc/util/vbaobj.component2
-rw-r--r--scaddins/source/analysis/analysis.component2
-rw-r--r--scaddins/source/analysis/analysis.cxx17
-rw-r--r--scaddins/source/datefunc/date.component2
-rw-r--r--scaddins/source/datefunc/datefunc.cxx2
-rw-r--r--sccomp/source/solver/solver.component2
-rw-r--r--sccomp/source/solver/solver.cxx2
22 files changed, 25 insertions, 36 deletions
diff --git a/chart2/source/controller/chartcontroller.component b/chart2/source/controller/chartcontroller.component
index fc99913b5..fcf0b67d4 100644
--- a/chart2/source/controller/chartcontroller.component
+++ b/chart2/source/controller/chartcontroller.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="chartcontroller"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.chart.ElementSelectorToolbarController">
<service name="com.sun.star.frame.ToolbarController"/>
diff --git a/chart2/source/controller/main/_serviceregistration_controller.cxx b/chart2/source/controller/main/_serviceregistration_controller.cxx
index 61f38d520..f471df45e 100644
--- a/chart2/source/controller/main/_serviceregistration_controller.cxx
+++ b/chart2/source/controller/main/_serviceregistration_controller.cxx
@@ -102,7 +102,7 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_controller[] =
// component exports
extern "C"
{
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartcontroller_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
return ::cppu::component_getFactoryHelper(
diff --git a/chart2/source/model/chartmodel.component b/chart2/source/model/chartmodel.component
index fa26e51ac..9cb536e52 100644
--- a/chart2/source/model/chartmodel.component
+++ b/chart2/source/model/chartmodel.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="chartmodel"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.chart.AreaChartType">
<service name="com.sun.star.chart2.AreaChartType"/>
diff --git a/chart2/source/model/main/_serviceregistration_model.cxx b/chart2/source/model/main/_serviceregistration_model.cxx
index af94d294f..30e873b5d 100644
--- a/chart2/source/model/main/_serviceregistration_model.cxx
+++ b/chart2/source/model/main/_serviceregistration_model.cxx
@@ -185,7 +185,7 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_model[] =
// component exports
extern "C"
{
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartmodel_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
void * pResult = ::cppu::component_getFactoryHelper(
diff --git a/chart2/source/tools/_serviceregistration_tools.cxx b/chart2/source/tools/_serviceregistration_tools.cxx
index 4455485b7..5cad16271 100644
--- a/chart2/source/tools/_serviceregistration_tools.cxx
+++ b/chart2/source/tools/_serviceregistration_tools.cxx
@@ -177,7 +177,7 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_tools[] =
// component exports
extern "C"
{
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL charttools_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
return ::cppu::component_getFactoryHelper(
diff --git a/chart2/source/tools/charttools.component b/chart2/source/tools/charttools.component
index 7ca499a7b..6dc992917 100644
--- a/chart2/source/tools/charttools.component
+++ b/chart2/source/tools/charttools.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="charttools"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.chart2.ExponentialScaling">
<service name="com.sun.star.chart2.ExponentialScaling"/>
diff --git a/chart2/source/view/chartview.component b/chart2/source/view/chartview.component
index 773666150..62c46f4ab 100644
--- a/chart2/source/view/chartview.component
+++ b/chart2/source/view/chartview.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="chartview"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.chart2.ChartView">
<service name="com.sun.star.chart2.ChartView"/>
diff --git a/chart2/source/view/main/_serviceregistration_view.cxx b/chart2/source/view/main/_serviceregistration_view.cxx
index 20c7e0ad9..69ec443ca 100644
--- a/chart2/source/view/main/_serviceregistration_view.cxx
+++ b/chart2/source/view/main/_serviceregistration_view.cxx
@@ -48,7 +48,7 @@ static struct ::cppu::ImplementationEntry g_entries_chart2_view[] =
// component exports
extern "C"
{
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL chartview_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
return ::cppu::component_getFactoryHelper(
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index a6de51100..632d77f86 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -1204,7 +1204,7 @@ extern "C"
{ 0, 0, 0, 0, 0, 0 }
};
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, XMultiServiceFactory* pServiceManager, XRegistryKey* pRegistryKey )
+SAL_DLLPUBLIC_EXPORT void* SAL_CALL scfilt_component_getFactory( const sal_Char* pImplName, XMultiServiceFactory* pServiceManager, XRegistryKey* pRegistryKey )
{
return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, entries );
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index dbff0f275..a57d3ae05 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -186,7 +186,7 @@ SC_SIMPLE_SERVICE_INFO( ScSpreadsheetSettings, "ScSpreadsheetSettings", SCSPREAD
extern "C" {
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL sc_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /* pRegistryKey */ )
{
if (!pServiceManager)
diff --git a/sc/source/ui/unoobj/detreg.cxx b/sc/source/ui/unoobj/detreg.cxx
index c4dcf6143..3b0674a3a 100644
--- a/sc/source/ui/unoobj/detreg.cxx
+++ b/sc/source/ui/unoobj/detreg.cxx
@@ -43,7 +43,7 @@ using namespace ::com::sun::star::lang;
extern "C" {
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplementationName,
+SAL_DLLPUBLIC_EXPORT void* SAL_CALL scd_component_getFactory( const sal_Char* pImplementationName,
void* pServiceManager,
void* /* pRegistryKey */ )
{
diff --git a/sc/source/ui/vba/service.cxx b/sc/source/ui/vba/service.cxx
index e086afa0c..b31e3291f 100644
--- a/sc/source/ui/vba/service.cxx
+++ b/sc/source/ui/vba/service.cxx
@@ -78,11 +78,11 @@ extern sdecl::ServiceDecl const serviceDecl;
extern "C"
{
- SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+ SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaobj_component_getFactory(
const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager,
registry::XRegistryKey * pRegistryKey )
{
- OSL_TRACE("In component_getFactory for %s", pImplName );
+ OSL_TRACE("In vbaobj_component_getFactory for %s", pImplName );
void* pRet = component_getFactoryHelper(
pImplName, pServiceManager, pRegistryKey, range::serviceDecl, workbook::serviceDecl, worksheet::serviceDecl, globals::serviceDecl, window::serviceDecl, hyperlink::serviceDecl, application::serviceDecl );
if( !pRet )
diff --git a/sc/util/sc.component b/sc/util/sc.component
index abd05aa57..85e37745b 100644
--- a/sc/util/sc.component
+++ b/sc/util/sc.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="sc"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.Calc.FilterOptionsDialog">
<service name="com.sun.star.ui.dialogs.FilterOptionsDialog"/>
diff --git a/sc/util/scd.component b/sc/util/scd.component
index df2e2f77e..900d78d4d 100644
--- a/sc/util/scd.component
+++ b/sc/util/scd.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="scd"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.calc.FormatDetector">
<service name="com.sun.star.frame.ExtendedTypeDetection"/>
diff --git a/sc/util/scfilt.component b/sc/util/scfilt.component
index 7af70050d..91ae96d91 100644
--- a/sc/util/scfilt.component
+++ b/sc/util/scfilt.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="scfilt"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.oox.ExcelFilterExport">
<service name="com.sun.star.comp.oox.ExcelFilterExport"/>
diff --git a/sc/util/vbaobj.component b/sc/util/vbaobj.component
index 52ad69182..0faca1dd5 100644
--- a/sc/util/vbaobj.component
+++ b/sc/util/vbaobj.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="vbaobj"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="ScVbaApplication">
<service name="ooo.vba.excel.Application"/>
diff --git a/scaddins/source/analysis/analysis.component b/scaddins/source/analysis/analysis.component
index af4d13fa4..8fe009ea4 100644
--- a/scaddins/source/analysis/analysis.component
+++ b/scaddins/source/analysis/analysis.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="analysis"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.sheet.addin.AnalysisImpl">
<service name="com.sun.star.sheet.AddIn"/>
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 3087ca68c..7ee5037a0 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -47,17 +47,11 @@
using namespace ::rtl;
using namespace ::com::sun::star;
-//------------------------------------------------------------------
-//
-// entry points for service registration / instantiation
-//
-//------------------------------------------------------------------
-extern "C" {
-
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* /*pRegistryKey*/ )
+extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL analysis_component_getFactory(
+ const sal_Char* pImplName, void* pServiceManager, void* /*pRegistryKey*/ )
{
- void* pRet = 0;
+ void* pRet = 0;
if( pServiceManager && STRING::createFromAscii( pImplName ) == AnalysisAddIn::getImplementationName_Static() )
{
@@ -78,11 +72,6 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char* pImplN
}
-} // extern C
-
-
-
-
//------------------------------------------------------------------------
//
// "normal" service implementation
diff --git a/scaddins/source/datefunc/date.component b/scaddins/source/datefunc/date.component
index 47e73d891..f99cc17ef 100644
--- a/scaddins/source/datefunc/date.component
+++ b/scaddins/source/datefunc/date.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="date"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.sheet.addin.DateFunctionsImpl">
<service name="com.sun.star.sheet.AddIn"/>
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index aedc34aa7..f6d25c2a2 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -235,7 +235,7 @@ uno::Reference< uno::XInterface > SAL_CALL ScaDateAddIn_CreateInstance(
extern "C" {
-SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
+SAL_DLLPUBLIC_EXPORT void * SAL_CALL date_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
void* pRet = 0;
diff --git a/sccomp/source/solver/solver.component b/sccomp/source/solver/solver.component
index de9cb3bd5..6099ab964 100644
--- a/sccomp/source/solver/solver.component
+++ b/sccomp/source/solver/solver.component
@@ -26,7 +26,7 @@
*
**********************************************************************-->
-<component loader="com.sun.star.loader.SharedLibrary"
+<component loader="com.sun.star.loader.SharedLibrary" prefix="solver"
xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.comp.Calc.Solver">
<service name="com.sun.star.sheet.Solver"/>
diff --git a/sccomp/source/solver/solver.cxx b/sccomp/source/solver/solver.cxx
index 950f994e0..f9dbdadf0 100644
--- a/sccomp/source/solver/solver.cxx
+++ b/sccomp/source/solver/solver.cxx
@@ -596,7 +596,7 @@ uno::Reference<uno::XInterface> SolverComponent_createInstance( const uno::Refer
extern "C"
{
- SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
+ SAL_DLLPUBLIC_EXPORT void* SAL_CALL solver_component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
OUString aImplName( OUString::createFromAscii( pImplName ) );
void* pRet = 0;