1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: confapifactory.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef CONFIGMGR_API_FACTORY_HXX_
32 #define CONFIGMGR_API_FACTORY_HXX_
34 #include <sal/types.h>
36 namespace com
{ namespace sun
{ namespace star
{
40 template <class> class Reference
;
41 class XComponentContext
;
45 class XSingleComponentFactory
;
48 namespace rtl
{ class OUString
; }
52 namespace uno
= ::com::sun::star::uno
;
53 namespace lang
= ::com::sun::star::lang
;
56 uno::Reference
< lang::XSingleComponentFactory
> SAL_CALL
57 createProviderFactory(
58 ::rtl::OUString
const & aImplementationName
,
63 struct ServiceRegistrationInfo
;
64 struct SingletonRegistrationInfo
;
66 // provider instantiation
67 uno::Reference
<uno::XInterface
> SAL_CALL
68 getDefaultConfigProviderSingleton( uno::Reference
< uno::XComponentContext
> const& xContext
);
70 uno::Reference
<uno::XInterface
> SAL_CALL
71 instantiateDefaultProvider( uno::Reference
< uno::XComponentContext
> const& xContext
);
73 // provider service info
74 const SingletonRegistrationInfo
* getDefaultProviderSingletonInfo();
75 const ServiceRegistrationInfo
* getConfigurationProviderServiceInfo();
76 const ServiceRegistrationInfo
* getDefaultProviderServiceInfo();
77 const ServiceRegistrationInfo
* getAdminProviderServiceInfo();
79 // other services - instantiation and info
80 uno::Reference
< uno::XInterface
> SAL_CALL
81 instantiateConfigRegistry( uno::Reference
< uno::XComponentContext
> const& xContext
);
83 const ServiceRegistrationInfo
* getConfigurationRegistryServiceInfo();
85 // bootstrap context support
86 uno::Reference
<uno::XInterface
> SAL_CALL
87 instantiateBootstrapContext( uno::Reference
< uno::XComponentContext
> const& xContext
);
89 const SingletonRegistrationInfo
* getBootstrapContextSingletonInfo();
90 const ServiceRegistrationInfo
* getBootstrapContextServiceInfo();
94 uno::Reference
< uno::XInterface
> SAL_CALL instantiateSchemaParser
95 ( uno::Reference
< uno::XComponentContext
> const& xContext
);
96 uno::Reference
< uno::XInterface
> SAL_CALL instantiateLayerParser
97 ( uno::Reference
< uno::XComponentContext
> const& xContext
);
98 uno::Reference
< uno::XInterface
> SAL_CALL instantiateLayerWriter
99 ( uno::Reference
< uno::XComponentContext
> const& xContext
);
101 const ServiceRegistrationInfo
* getSchemaParserServiceInfo();
102 const ServiceRegistrationInfo
* getLayerParserServiceInfo();
103 const ServiceRegistrationInfo
* getLayerWriterServiceInfo();
107 uno::Reference
<uno::XInterface
> SAL_CALL
108 getDefaultBackendSingleton( uno::Reference
< uno::XComponentContext
> const& xContext
);
110 uno::Reference
<uno::XInterface
> SAL_CALL
111 instantiateDefaultBackend( uno::Reference
< uno::XComponentContext
> const& xContext
);
113 uno::Reference
< uno::XInterface
> SAL_CALL
114 instantiateUpdateMerger( uno::Reference
< uno::XComponentContext
> const& xContext
);
116 uno::Reference
<uno::XInterface
> SAL_CALL
117 instantiateSingleBackendAdapter( uno::Reference
< uno::XComponentContext
> const& xContext
);
119 uno::Reference
< uno::XInterface
> SAL_CALL
120 instantiateMergeImporter( uno::Reference
< uno::XComponentContext
> const& xContext
);
122 uno::Reference
< uno::XInterface
> SAL_CALL
123 instantiateCopyImporter( uno::Reference
< uno::XComponentContext
> const& xContext
);
125 uno::Reference
<uno::XInterface
> SAL_CALL
126 instantiateMultiStratumBackend( uno::Reference
< uno::XComponentContext
> const& xContext
);
128 const SingletonRegistrationInfo
* getDefaultBackendSingletonInfo();
129 const ServiceRegistrationInfo
* getDefaultBackendServiceInfo();
131 const ServiceRegistrationInfo
* getUpdateMergerServiceInfo();
132 const ServiceRegistrationInfo
* getSingleBackendAdapterServiceInfo();
133 const ServiceRegistrationInfo
* getMergeImportServiceInfo();
134 const ServiceRegistrationInfo
* getCopyImportServiceInfo();
135 const ServiceRegistrationInfo
* getMultiStratumBackendServiceInfo();
139 uno::Reference
<uno::XInterface
> SAL_CALL
140 instantiateLocalBackend( uno::Reference
< uno::XComponentContext
> const& xContext
);
142 uno::Reference
<uno::XInterface
> SAL_CALL
143 instantiateLocalDataImporter( uno::Reference
< uno::XComponentContext
> const& xContext
);
145 uno::Reference
<uno::XInterface
> SAL_CALL
146 instantiateLocalHierarchyBrowser( uno::Reference
< uno::XComponentContext
> const& xContext
);
148 uno::Reference
<uno::XInterface
> SAL_CALL
149 instantiateLocalSchemaSupplier( uno::Reference
< uno::XComponentContext
> const& xContext
);
151 uno::Reference
<uno::XInterface
> SAL_CALL
152 instantiateLocalLegacyStratum( uno::Reference
< uno::XComponentContext
> const& xContext
);
154 uno::Reference
<uno::XInterface
> SAL_CALL
155 instantiateLocalDataStratum( uno::Reference
< uno::XComponentContext
> const& xContext
);
157 uno::Reference
<uno::XInterface
> SAL_CALL
158 instantiateLocalReadonlyStratum( uno::Reference
< uno::XComponentContext
> const& xContext
);
160 uno::Reference
<uno::XInterface
> SAL_CALL
161 instantiateLocalResourceStratum( uno::Reference
< uno::XComponentContext
> const& xContext
);
163 uno::Reference
<uno::XInterface
> SAL_CALL
164 instantiateLocalMultiStratum( uno::Reference
< uno::XComponentContext
> const& xContext
);
166 const ServiceRegistrationInfo
* getLocalBackendServiceInfo();
167 const ServiceRegistrationInfo
* getLocalDataImportServiceInfo();
168 const ServiceRegistrationInfo
* getLocalHierarchyBrowserServiceInfo();
169 const ServiceRegistrationInfo
* getLocalSchemaSupplierServiceInfo();
170 const ServiceRegistrationInfo
* getLocalLegacyStratumServiceInfo();
171 const ServiceRegistrationInfo
* getLocalDataStratumServiceInfo();
172 const ServiceRegistrationInfo
* getLocalReadonlyStratumServiceInfo();
173 const ServiceRegistrationInfo
* getLocalResourceStratumServiceInfo();
174 const ServiceRegistrationInfo
* getLocalMultiStratumServiceInfo();
177 } // namespace configmgr
179 #endif // CONFIGMGR_API_FACTORY_HXX_