xref: /aoo41x/main/stoc/inc/bootstrapservices.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_stoc.hxx"
30 
31 #include <rtl/ustring.hxx>
32 #include <com/sun/star/uno/Sequence.hxx>
33 #include <com/sun/star/uno/Reference.hxx>
34 #include <com/sun/star/uno/RuntimeException.hpp>
35 
36 namespace com { namespace sun { namespace star { namespace uno {
37     class XInterface;
38     class XComponentContext;
39 } } } }
40 
41 namespace stoc_bootstrap
42 {
43     //servicemanager
44     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OServiceManager_CreateInstance(
45 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext );
46     ::com::sun::star::uno::Sequence< ::rtl::OUString > smgr_wrapper_getSupportedServiceNames();
47     ::rtl::OUString smgr_wrapper_getImplementationName();
48     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL OServiceManagerWrapper_CreateInstance(
49 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext )
50 	throw (::com::sun::star::uno::Exception);
51     ::com::sun::star::uno::Sequence< ::rtl::OUString > smgr_getSupportedServiceNames();
52     ::rtl::OUString smgr_getImplementationName();
53     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ORegistryServiceManager_CreateInstance(
54 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext )
55 	throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
56     ::com::sun::star::uno::Sequence< ::rtl::OUString > regsmgr_getSupportedServiceNames();
57     ::rtl::OUString regsmgr_getImplementationName();
58 
59     //security
60     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ac_create(
61 	    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xComponentContext )
62 	SAL_THROW( (::com::sun::star::uno::Exception) );
63     ::com::sun::star::uno::Sequence< ::rtl::OUString > ac_getSupportedServiceNames() SAL_THROW( () );
64     ::rtl::OUString ac_getImplementationName() SAL_THROW( () );
65 
66     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL filepolicy_create(
67 	    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xComponentContext )
68 	SAL_THROW( (com::sun::star::uno::Exception) );
69     ::com::sun::star::uno::Sequence< rtl::OUString > filepolicy_getSupportedServiceNames() SAL_THROW( () );
70     ::rtl::OUString filepolicy_getImplementationName() SAL_THROW( () );
71 
72     //defaultregistry
73     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL NestedRegistry_CreateInstance(
74 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
75 	throw( ::com::sun::star::uno::Exception);
76     ::com::sun::star::uno::Sequence< ::rtl::OUString > defreg_getSupportedServiceNames();
77     ::rtl::OUString defreg_getImplementationName();
78 
79     //simpleregistry
80     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SimpleRegistry_CreateInstance(
81 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& );
82     ::com::sun::star::uno::Sequence< ::rtl::OUString > simreg_getSupportedServiceNames();
83     ::rtl::OUString simreg_getImplementationName();
84 
85     //implementationregistry
86     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ImplementationRegistration_CreateInstance(
87 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& ); // throw(Exception)
88     ::com::sun::star::uno::Sequence< ::rtl::OUString > impreg_getSupportedServiceNames();
89     ::rtl::OUString impreg_getImplementationName();
90 
91     //loader
92     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL DllComponentLoader_CreateInstance(
93 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
94 	throw(::com::sun::star::uno::Exception);
95     ::com::sun::star::uno::Sequence< ::rtl::OUString > loader_getSupportedServiceNames();
96     ::rtl::OUString loader_getImplementationName();
97 
98     //registry_tdprovider
99     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ProviderImpl_create(
100 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
101 	throw(::com::sun::star::uno::Exception);
102     ::com::sun::star::uno::Sequence< ::rtl::OUString > rdbtdp_getSupportedServiceNames();
103     ::rtl::OUString rdbtdp_getImplementationName();
104 
105     //tdmanager
106     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ManagerImpl_create(
107 	    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& )
108 	SAL_THROW( (::com::sun::star::uno::Exception) );
109     ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL tdmgr_getSupportedServiceNames();
110     ::rtl::OUString SAL_CALL tdmgr_getImplementationName();
111 } // namespace
112