xref: /aoo4110/main/stoc/inc/bootstrapservices.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_stoc.hxx"
26 
27 #include <rtl/ustring.hxx>
28 #include <com/sun/star/uno/Sequence.hxx>
29 #include <com/sun/star/uno/Reference.hxx>
30 #include <com/sun/star/uno/RuntimeException.hpp>
31 
32 namespace com { namespace sun { namespace star { namespace uno {
33     class XInterface;
34     class XComponentContext;
35 } } } }
36 
37 namespace stoc_bootstrap
38 {
39     //servicemanager
40     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OServiceManager_CreateInstance(
41 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext );
42     ::com::sun::star::uno::Sequence< ::rtl::OUString > smgr_wrapper_getSupportedServiceNames();
43     ::rtl::OUString smgr_wrapper_getImplementationName();
44     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OServiceManagerWrapper_CreateInstance(
45 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext )
46 	throw (::com::sun::star::uno::Exception);
47     ::com::sun::star::uno::Sequence< ::rtl::OUString > smgr_getSupportedServiceNames();
48     ::rtl::OUString smgr_getImplementationName();
49     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ORegistryServiceManager_CreateInstance(
50 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext )
51 	throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
52     ::com::sun::star::uno::Sequence< ::rtl::OUString > regsmgr_getSupportedServiceNames();
53     ::rtl::OUString regsmgr_getImplementationName();
54 
55     //security
56     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ac_create(
57 	    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xComponentContext )
58 	SAL_THROW( (::com::sun::star::uno::Exception) );
59     ::com::sun::star::uno::Sequence< ::rtl::OUString > ac_getSupportedServiceNames() SAL_THROW( () );
60     ::rtl::OUString ac_getImplementationName() SAL_THROW( () );
61 
62     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL filepolicy_create(
63 	    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xComponentContext )
64 	SAL_THROW( (com::sun::star::uno::Exception) );
65     ::com::sun::star::uno::Sequence< rtl::OUString > filepolicy_getSupportedServiceNames() SAL_THROW( () );
66     ::rtl::OUString filepolicy_getImplementationName() SAL_THROW( () );
67 
68     //defaultregistry
69     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL NestedRegistry_CreateInstance(
70 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
71 	throw( ::com::sun::star::uno::Exception);
72     ::com::sun::star::uno::Sequence< ::rtl::OUString > defreg_getSupportedServiceNames();
73     ::rtl::OUString defreg_getImplementationName();
74 
75     //simpleregistry
76     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SimpleRegistry_CreateInstance(
77 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
78     ::com::sun::star::uno::Sequence< ::rtl::OUString > simreg_getSupportedServiceNames();
79     ::rtl::OUString simreg_getImplementationName();
80 
81     //implementationregistry
82     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ImplementationRegistration_CreateInstance(
83 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& ); // throw(Exception)
84     ::com::sun::star::uno::Sequence< ::rtl::OUString > impreg_getSupportedServiceNames();
85     ::rtl::OUString impreg_getImplementationName();
86 
87     //loader
88     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL DllComponentLoader_CreateInstance(
89 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
90 	throw(::com::sun::star::uno::Exception);
91     ::com::sun::star::uno::Sequence< ::rtl::OUString > loader_getSupportedServiceNames();
92     ::rtl::OUString loader_getImplementationName();
93 
94     //registry_tdprovider
95     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ProviderImpl_create(
96 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
97 	throw(::com::sun::star::uno::Exception);
98     ::com::sun::star::uno::Sequence< ::rtl::OUString > rdbtdp_getSupportedServiceNames();
99     ::rtl::OUString rdbtdp_getImplementationName();
100 
101     //tdmanager
102     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ManagerImpl_create(
103 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
104 	SAL_THROW( (::com::sun::star::uno::Exception) );
105     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL tdmgr_getSupportedServiceNames();
106     ::rtl::OUString SAL_CALL tdmgr_getImplementationName();
107 } // namespace
108