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: apiserviceinfo.cxx,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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_configmgr.hxx"
33 #include "apiserviceinfo.hxx"
37 //-----------------------------------------------------------------------------
40 //========================================================================
42 //========================================================================
44 //========================================================================
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 */ \
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
[] =
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",
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",
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
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
138 //-- ROLE COMBINATIONS ------------------
142 sal_Char
const * const c_aInnerGroupAccessServices
[] =
144 CFG_SVCLIST_GROUPACCESS
,
145 CFG_SVCLIST_GROUPELEMENT
,
149 sal_Char
const * const c_aInnerGroupUpdateServices
[] =
151 CFG_SVCLIST_GROUPUPDATE
,
152 CFG_SVCLIST_GROUPELEMENT
,
156 sal_Char
const * const c_aInnerSetAccessServices
[] =
158 CFG_SVCLIST_SETACCESS
,
159 CFG_SVCLIST_GROUPELEMENT
,
163 sal_Char
const * const c_aInnerSetUpdateServices
[] =
165 CFG_SVCLIST_SETUPDATE
,
166 CFG_SVCLIST_GROUPELEMENT
,
172 sal_Char
const * const c_aSetElementGroupAccessServices
[] =
174 CFG_SVCLIST_GROUPACCESS
,
175 CFG_SVCLIST_SETELEMENT
,
179 sal_Char
const * const c_aSetElementGroupUpdateServices
[] =
181 CFG_SVCLIST_GROUPUPDATE
,
182 CFG_SVCLIST_SETELEMENT
,
186 sal_Char
const * const c_aSetElementSetAccessServices
[] =
188 CFG_SVCLIST_SETACCESS
,
189 CFG_SVCLIST_SETELEMENT
,
193 sal_Char
const * const c_aSetElementSetUpdateServices
[] =
195 CFG_SVCLIST_SETUPDATE
,
196 CFG_SVCLIST_SETELEMENT
,
202 sal_Char
const * const c_aRootGroupAccessServices
[] =
204 CFG_SVCLIST_GROUPACCESS
,
205 CFG_SVCLIST_ACCESSROOTELEMENT
,
209 sal_Char
const * const c_aRootGroupUpdateServices
[] =
211 CFG_SVCLIST_GROUPUPDATE
,
212 CFG_SVCLIST_UPDATEROOTELEMENT
,
216 sal_Char
const * const c_aRootSetAccessServices
[] =
218 CFG_SVCLIST_SETACCESS
,
219 CFG_SVCLIST_ACCESSROOTELEMENT
,
223 sal_Char
const * const c_aRootSetUpdateServices
[] =
225 CFG_SVCLIST_SETUPDATE
,
226 CFG_SVCLIST_UPDATEROOTELEMENT
,
229 //-----------------------------------------------------------------------------
231 ServiceImplementationInfo
const aInnerGroupInfoSI
=
233 "com.sun.star.comp.configuration.OInnerGroupInfoAccess",
234 c_aInnerGroupAccessServices
,
237 ServiceImplementationInfo
const aInnerGroupUpdateSI
=
239 "com.sun.star.comp.configuration.OInnerGroupUpdateAccess",
240 c_aInnerGroupUpdateServices
,
243 ServiceImplementationInfo
const aInnerSetInfoSI
=
245 "com.sun.star.comp.configuration.OInnerSetInfoAccess",
246 c_aInnerSetAccessServices
,
249 ServiceImplementationInfo
const aInnerTreeSetSI
=
251 "com.sun.star.comp.configuration.OInnerTreeSetUpdateAccess",
252 c_aInnerSetUpdateServices
,
255 ServiceImplementationInfo
const aInnerValueSetSI
=
257 "com.sun.star.comp.configuration.OInnerValueSetUpdateAccess",
258 c_aInnerSetUpdateServices
,
261 //-----------------------------------------------------------------------------
263 ServiceImplementationInfo
const aSetElementGroupInfoSI
=
265 "com.sun.star.comp.configuration.OSetElementGroupInfoAccess",
266 c_aSetElementGroupUpdateServices
,
269 ServiceImplementationInfo
const aSetElementGroupUpdateSI
=
271 "com.sun.star.comp.configuration.OSetElementGroupUpdateAccess",
272 c_aSetElementGroupUpdateServices
,
275 ServiceImplementationInfo
const aSetElementSetInfoSI
=
277 "com.sun.star.comp.configuration.OSetElementSetInfoAccess",
278 c_aSetElementSetAccessServices
,
281 ServiceImplementationInfo
const aSetElementTreeSetSI
=
283 "com.sun.star.comp.configuration.OSetElementTreeSetUpdateAccess",
284 c_aSetElementSetUpdateServices
,
287 ServiceImplementationInfo
const aSetElementValueSetSI
=
289 "com.sun.star.comp.configuration.OSetElementValueSetUpdateAccess",
290 c_aSetElementSetUpdateServices
,
293 //-----------------------------------------------------------------------------
295 ServiceImplementationInfo
const aRootElementGroupInfoSI
=
297 "com.sun.star.comp.configuration.ORootElementGroupInfoAccess",
298 c_aRootGroupAccessServices
,
301 ServiceImplementationInfo
const aRootElementGroupUpdateSI
=
303 "com.sun.star.comp.configuration.ORootElementGroupUpdateAccess",
304 c_aRootGroupUpdateServices
,
307 ServiceImplementationInfo
const aRootElementSetInfoSI
=
309 "com.sun.star.comp.configuration.ORootElementSetInfoAccess",
310 c_aRootSetAccessServices
,
313 ServiceImplementationInfo
const aRootElementTreeSetUpdateSI
=
315 "com.sun.star.comp.configuration.ORootElementTreeSetUpdateAccess",
316 c_aRootSetUpdateServices
,
319 ServiceImplementationInfo
const aRootElementValueSetUpdateSI
=
321 "com.sun.star.comp.configuration.ORootElementValueSetUpdateAccess",
322 c_aRootSetUpdateServices
,
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 //-----------------------------------------------------------------------------