update dev300-m58
[ooovba.git] / configmgr / source / api2 / apiserviceinfo.cxx
blob21f9db4b8cd84aadd54ddd320e56a38ecca40f1a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: apiserviceinfo.cxx,v $
10 * $Revision: 1.8 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_configmgr.hxx"
33 #include "apiserviceinfo.hxx"
35 namespace configmgr
37 //-----------------------------------------------------------------------------
38 namespace configapi
40 //========================================================================
41 //= service names
42 //========================================================================
44 //========================================================================
45 //= service infos
46 //========================================================================
48 //-- ACCESS (CONTAINER) ROLES -----------------------------
50 #define CFG_SVCLIST_SETACCESS \
51 "com.sun.star.configuration.ConfigurationAccess", \
52 "com.sun.star.configuration.SetAccess", \
53 "com.sun.star.configuration.HierarchyAccess", \
54 "com.sun.star.configuration.SimpleSetAccess"
56 #define CFG_SVCLIST_GROUPACCESS \
57 "com.sun.star.configuration.ConfigurationAccess", \
58 "com.sun.star.configuration.GroupAccess", \
59 "com.sun.star.configuration.HierarchyAccess", \
60 "com.sun.star.configuration.PropertyHierarchy"
62 #define CFG_SVCLIST_SETUPDATE \
63 "com.sun.star.configuration.ConfigurationUpdateAccess", \
64 "com.sun.star.configuration.SetUpdate", \
65 "com.sun.star.configuration.SimpleSetUpdate", \
66 "com.sun.star.configuration.ConfigurationContainer", /* Obsolete */ \
67 CFG_SVCLIST_SETACCESS
69 #define CFG_SVCLIST_GROUPUPDATE \
70 "com.sun.star.configuration.ConfigurationUpdateAccess", \
71 "com.sun.star.configuration.GroupUpdate", \
72 CFG_SVCLIST_GROUPACCESS
74 //-- ELEMENT ROLES ----------------------------------------
76 #define CFG_SVCLIST_SETELEMENT \
77 "com.sun.star.configuration.SetElement", \
78 "com.sun.star.configuration.HierarchyElement"
80 #define CFG_SVCLIST_GROUPELEMENT \
81 "com.sun.star.configuration.GroupElement", \
82 "com.sun.star.configuration.HierarchyElement"
84 #define CFG_SVCLIST_ACCESSROOTELEMENT \
85 "com.sun.star.configuration.AccessRootElement", \
86 "com.sun.star.configuration.HierarchyElement"
88 #define CFG_SVCLIST_UPDATEROOTELEMENT \
89 "com.sun.star.configuration.UpdateRootElement", \
90 CFG_SVCLIST_ACCESSROOTELEMENT
92 //-----------------------------------------------------------------------------
94 sal_Char const * const c_aNoServices[] =
96 NULL
99 //-----------------------------------------------------------------------------
101 sal_Char const * const c_aCreateAccessServiceNames[] =
103 "com.sun.star.configuration.ConfigurationAccess",
104 "com.sun.star.configuration.HierarchyAccess",
105 "com.sun.star.configuration.HierarchyElement",
106 NULL
109 sal_Char const * const c_aCreateUpdateServiceNames[] =
111 "com.sun.star.configuration.ConfigurationUpdateAccess",
112 "com.sun.star.configuration.ConfigurationAccess",
113 "com.sun.star.configuration.HierarchyAccess",
114 "com.sun.star.configuration.HierarchyElement",
115 NULL
118 //-----------------------------------------------------------------------------
120 sal_Char const * const c_aUserAdministrationServices[] =
122 "com.sun.star.configuration.UserAdministration",
123 "com.sun.star.configuration.SimpleSetUpdate",
124 "com.sun.star.configuration.SimpleSetAccess",
125 "com.sun.star.configuration.ConfigurationContainer", // Obsolete
126 NULL
129 sal_Char const * const c_aGroupAdministrationServices[] =
131 "com.sun.star.configuration.GroupAdministration",
132 "com.sun.star.configuration.SimpleSetUpdate",
133 "com.sun.star.configuration.SimpleSetAccess",
134 "com.sun.star.configuration.ConfigurationContainer", // Obsolete
135 NULL
138 //-- ROLE COMBINATIONS ------------------
140 //-- GroupElements
142 sal_Char const * const c_aInnerGroupAccessServices[] =
144 CFG_SVCLIST_GROUPACCESS,
145 CFG_SVCLIST_GROUPELEMENT,
146 NULL
149 sal_Char const * const c_aInnerGroupUpdateServices[] =
151 CFG_SVCLIST_GROUPUPDATE,
152 CFG_SVCLIST_GROUPELEMENT,
153 NULL
156 sal_Char const * const c_aInnerSetAccessServices[] =
158 CFG_SVCLIST_SETACCESS,
159 CFG_SVCLIST_GROUPELEMENT,
160 NULL
163 sal_Char const * const c_aInnerSetUpdateServices[] =
165 CFG_SVCLIST_SETUPDATE,
166 CFG_SVCLIST_GROUPELEMENT,
167 NULL
170 //-- SetElements
172 sal_Char const * const c_aSetElementGroupAccessServices[] =
174 CFG_SVCLIST_GROUPACCESS,
175 CFG_SVCLIST_SETELEMENT,
176 NULL
179 sal_Char const * const c_aSetElementGroupUpdateServices[] =
181 CFG_SVCLIST_GROUPUPDATE,
182 CFG_SVCLIST_SETELEMENT,
183 NULL
186 sal_Char const * const c_aSetElementSetAccessServices[] =
188 CFG_SVCLIST_SETACCESS,
189 CFG_SVCLIST_SETELEMENT,
190 NULL
193 sal_Char const * const c_aSetElementSetUpdateServices[] =
195 CFG_SVCLIST_SETUPDATE,
196 CFG_SVCLIST_SETELEMENT,
197 NULL
200 //-- RootElements
202 sal_Char const * const c_aRootGroupAccessServices[] =
204 CFG_SVCLIST_GROUPACCESS,
205 CFG_SVCLIST_ACCESSROOTELEMENT,
206 NULL
209 sal_Char const * const c_aRootGroupUpdateServices[] =
211 CFG_SVCLIST_GROUPUPDATE,
212 CFG_SVCLIST_UPDATEROOTELEMENT,
213 NULL
216 sal_Char const * const c_aRootSetAccessServices[] =
218 CFG_SVCLIST_SETACCESS,
219 CFG_SVCLIST_ACCESSROOTELEMENT,
220 NULL
223 sal_Char const * const c_aRootSetUpdateServices[] =
225 CFG_SVCLIST_SETUPDATE,
226 CFG_SVCLIST_UPDATEROOTELEMENT,
227 NULL
229 //-----------------------------------------------------------------------------
231 ServiceImplementationInfo const aInnerGroupInfoSI =
233 "com.sun.star.comp.configuration.OInnerGroupInfoAccess",
234 c_aInnerGroupAccessServices,
235 NULL
237 ServiceImplementationInfo const aInnerGroupUpdateSI =
239 "com.sun.star.comp.configuration.OInnerGroupUpdateAccess",
240 c_aInnerGroupUpdateServices,
241 NULL
243 ServiceImplementationInfo const aInnerSetInfoSI =
245 "com.sun.star.comp.configuration.OInnerSetInfoAccess",
246 c_aInnerSetAccessServices,
247 NULL
249 ServiceImplementationInfo const aInnerTreeSetSI =
251 "com.sun.star.comp.configuration.OInnerTreeSetUpdateAccess",
252 c_aInnerSetUpdateServices,
253 NULL
255 ServiceImplementationInfo const aInnerValueSetSI =
257 "com.sun.star.comp.configuration.OInnerValueSetUpdateAccess",
258 c_aInnerSetUpdateServices,
259 NULL
261 //-----------------------------------------------------------------------------
263 ServiceImplementationInfo const aSetElementGroupInfoSI =
265 "com.sun.star.comp.configuration.OSetElementGroupInfoAccess",
266 c_aSetElementGroupUpdateServices,
267 NULL
269 ServiceImplementationInfo const aSetElementGroupUpdateSI =
271 "com.sun.star.comp.configuration.OSetElementGroupUpdateAccess",
272 c_aSetElementGroupUpdateServices,
273 NULL
275 ServiceImplementationInfo const aSetElementSetInfoSI =
277 "com.sun.star.comp.configuration.OSetElementSetInfoAccess",
278 c_aSetElementSetAccessServices,
279 NULL
281 ServiceImplementationInfo const aSetElementTreeSetSI =
283 "com.sun.star.comp.configuration.OSetElementTreeSetUpdateAccess",
284 c_aSetElementSetUpdateServices,
285 NULL
287 ServiceImplementationInfo const aSetElementValueSetSI =
289 "com.sun.star.comp.configuration.OSetElementValueSetUpdateAccess",
290 c_aSetElementSetUpdateServices,
291 NULL
293 //-----------------------------------------------------------------------------
295 ServiceImplementationInfo const aRootElementGroupInfoSI =
297 "com.sun.star.comp.configuration.ORootElementGroupInfoAccess",
298 c_aRootGroupAccessServices,
299 NULL
301 ServiceImplementationInfo const aRootElementGroupUpdateSI =
303 "com.sun.star.comp.configuration.ORootElementGroupUpdateAccess",
304 c_aRootGroupUpdateServices,
305 NULL
307 ServiceImplementationInfo const aRootElementSetInfoSI =
309 "com.sun.star.comp.configuration.ORootElementSetInfoAccess",
310 c_aRootSetAccessServices,
311 NULL
313 ServiceImplementationInfo const aRootElementTreeSetUpdateSI =
315 "com.sun.star.comp.configuration.ORootElementTreeSetUpdateAccess",
316 c_aRootSetUpdateServices,
317 NULL
319 ServiceImplementationInfo const aRootElementValueSetUpdateSI =
321 "com.sun.star.comp.configuration.ORootElementValueSetUpdateAccess",
322 c_aRootSetUpdateServices,
323 NULL
325 //-----------------------------------------------------------------------------
327 ServiceRegistrationInfo const aCreateReadAccessSI =
329 NULL, //"com.sun.star.comp.configuration.ORootElementReadAccess",
330 c_aCreateAccessServiceNames
332 ServiceRegistrationInfo const aCreateUpdateAccessSI =
334 NULL, //"com.sun.star.comp.configuration.ORootElementUpdateAccess",
335 c_aCreateUpdateServiceNames
337 //-----------------------------------------------------------------------------