1*6da5f311SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*6da5f311SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*6da5f311SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*6da5f311SAndrew Rist  * distributed with this work for additional information
6*6da5f311SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*6da5f311SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*6da5f311SAndrew Rist  * "License"); you may not use this file except in compliance
9*6da5f311SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*6da5f311SAndrew Rist  *
11*6da5f311SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*6da5f311SAndrew Rist  *
13*6da5f311SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*6da5f311SAndrew Rist  * software distributed under the License is distributed on an
15*6da5f311SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*6da5f311SAndrew Rist  * KIND, either express or implied.  See the License for the
17*6da5f311SAndrew Rist  * specific language governing permissions and limitations
18*6da5f311SAndrew Rist  * under the License.
19*6da5f311SAndrew Rist  *
20*6da5f311SAndrew Rist  *************************************************************/
21*6da5f311SAndrew Rist 
22*6da5f311SAndrew Rist 
23cdf0e10cSrcweir #ifndef _CPPUHELPER_SERVICEFACTORY_HXX_
24cdf0e10cSrcweir #define _CPPUHELPER_SERVICEFACTORY_HXX_
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <rtl/ustring.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp>
29cdf0e10cSrcweir #include <com/sun/star/lang/XMultiComponentFactory.hpp>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir 
32cdf0e10cSrcweir namespace cppu
33cdf0e10cSrcweir {
34cdf0e10cSrcweir 
35cdf0e10cSrcweir /** Deprecated.  Use cppuhelper/bootstrap.hxx functions instead.
36cdf0e10cSrcweir 
37cdf0e10cSrcweir     This bootstraps an initial service factory working on a registry. If the first or both
38cdf0e10cSrcweir     parameters contain a value then the service factory is initialized with a simple registry
39cdf0e10cSrcweir     or a nested registry. Otherwise the service factory must be initialized later with a valid
40cdf0e10cSrcweir     registry.
41cdf0e10cSrcweir 
42cdf0e10cSrcweir     @param rWriteRegistryFile
43cdf0e10cSrcweir 	file name of the simple registry or the first registry file of
44cdf0e10cSrcweir     the nested registry which will be opened with read/write rights. This
45cdf0e10cSrcweir     file will be created if necessary.
46cdf0e10cSrcweir     @param rReadRegistryFile
47cdf0e10cSrcweir     file name of the second registry file of the nested registry
48cdf0e10cSrcweir     which will be opened with readonly rights.
49cdf0e10cSrcweir     @param bReadOnly
50cdf0e10cSrcweir     flag which specify that the first registry file will be opened with
51cdf0e10cSrcweir     readonly rights. Default is FALSE. If this flag is used the registry
52cdf0e10cSrcweir     will not be created if not exist.
53cdf0e10cSrcweir     @param rBootstrapPath
54cdf0e10cSrcweir     specifies a path where the bootstrap components could be find. If this
55cdf0e10cSrcweir     parameter is an empty string the compoents will be searched in the system
56cdf0e10cSrcweir     path.
57cdf0e10cSrcweir     @deprecated
58cdf0e10cSrcweir */
59cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > SAL_CALL
60cdf0e10cSrcweir createRegistryServiceFactory(
61cdf0e10cSrcweir 	const ::rtl::OUString & rWriteRegistryFile,
62cdf0e10cSrcweir 	const ::rtl::OUString & rReadRegistryFile,
63cdf0e10cSrcweir 	sal_Bool bReadOnly = sal_False,
64cdf0e10cSrcweir 	const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
65cdf0e10cSrcweir 	SAL_THROW( (::com::sun::star::uno::Exception) );
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 
68cdf0e10cSrcweir /** Deprecated.  Use cppuhelper/bootstrap.hxx functions instead.
69cdf0e10cSrcweir 
70cdf0e10cSrcweir     This bootstraps an initial service factory working on a registry file.
71cdf0e10cSrcweir 
72cdf0e10cSrcweir     @param rRegistryFile
73cdf0e10cSrcweir     file name of the registry to use/ create; if this is an empty
74cdf0e10cSrcweir     string, the default registry is used instead
75cdf0e10cSrcweir     @param bReadOnly
76cdf0e10cSrcweir     flag which specify that the registry file will be opened with
77cdf0e10cSrcweir     readonly rights. Default is FALSE. If this flag is used the registry
78cdf0e10cSrcweir     will not be created if not exist.
79cdf0e10cSrcweir     @param rBootstrapPath
80cdf0e10cSrcweir     specifies a path where the bootstrap components could be find. If this
81cdf0e10cSrcweir     parameter is an empty string the compoents will be searched in the system
82cdf0e10cSrcweir     path.
83cdf0e10cSrcweir     @deprecated
84cdf0e10cSrcweir */
85cdf0e10cSrcweir inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > SAL_CALL
createRegistryServiceFactory(const::rtl::OUString & rRegistryFile,sal_Bool bReadOnly=sal_False,const::rtl::OUString & rBootstrapPath=::rtl::OUString ())86cdf0e10cSrcweir createRegistryServiceFactory(
87cdf0e10cSrcweir 	const ::rtl::OUString & rRegistryFile,
88cdf0e10cSrcweir 	sal_Bool bReadOnly = sal_False,
89cdf0e10cSrcweir 	const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
90cdf0e10cSrcweir 	SAL_THROW( (::com::sun::star::uno::Exception) )
91cdf0e10cSrcweir {
92cdf0e10cSrcweir 	return ::cppu::createRegistryServiceFactory(
93cdf0e10cSrcweir         rRegistryFile, ::rtl::OUString(), bReadOnly, rBootstrapPath );
94cdf0e10cSrcweir }
95cdf0e10cSrcweir 
96cdf0e10cSrcweir /** Deprecated.  Use cppuhelper/bootstrap.hxx functions instead.
97cdf0e10cSrcweir 
98cdf0e10cSrcweir     This bootstraps a service factory without initialize a registry.
99cdf0e10cSrcweir 
100cdf0e10cSrcweir     @param rBootstrapPath
101cdf0e10cSrcweir     specifies a path where the bootstrap components could be find. If this
102cdf0e10cSrcweir     parameter is an empty string the compoents will be searched in the system
103cdf0e10cSrcweir     path.
104cdf0e10cSrcweir     @deprecated
105cdf0e10cSrcweir */
106cdf0e10cSrcweir inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > SAL_CALL
createServiceFactory(const::rtl::OUString & rBootstrapPath=::rtl::OUString ())107cdf0e10cSrcweir createServiceFactory(
108cdf0e10cSrcweir 	const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
109cdf0e10cSrcweir 	SAL_THROW( (::com::sun::star::uno::Exception) )
110cdf0e10cSrcweir {
111cdf0e10cSrcweir 	return ::cppu::createRegistryServiceFactory(
112cdf0e10cSrcweir         ::rtl::OUString(), ::rtl::OUString(), sal_False, rBootstrapPath );
113cdf0e10cSrcweir }
114cdf0e10cSrcweir 
115cdf0e10cSrcweir } // end namespace cppu
116cdf0e10cSrcweir 
117cdf0e10cSrcweir #endif
118cdf0e10cSrcweir 
119