update dev300-m58
[ooovba.git] / extensions / source / resource / res_services.hxx
blob25ef46c966c31f63464fb55c2db49193b10a1de0
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: res_services.hxx,v $
10 * $Revision: 1.3 $
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 #ifndef EXTENSIONS_RESOURCE_SERVICES_HXX
32 #define EXTENSIONS_RESOURCE_SERVICES_HXX
34 /** === begin UNO includes === **/
35 #include <com/sun/star/uno/Sequence.hxx>
36 #include <com/sun/star/uno/Reference.hxx>
37 #include <com/sun/star/uno/XInterface.hpp>
38 /** === end UNO includes === **/
39 #include <cppuhelper/factory.hxx>
41 //........................................................................
42 namespace res
44 //........................................................................
46 struct ComponentInfo
48 /// services supported by the component
49 ::com::sun::star::uno::Sequence< ::rtl::OUString > aSupportedServices;
50 /// implementation name of the component
51 ::rtl::OUString sImplementationName;
52 /** name of the singleton instance of the component, if it is a singleton, empty otherwise
53 If the component is a singleton, aSupportedServices must contain exactly one element.
55 ::rtl::OUString sSingletonName;
56 /// factory for creating the component
57 ::cppu::ComponentFactoryFunc pFactory;
60 ComponentInfo getComponentInfo_VclStringResourceLoader();
61 ComponentInfo getComponentInfo_OpenOfficeResourceLoader();
63 //........................................................................
64 } // namespace res
65 //........................................................................
67 #endif // EXTENSIONS_RESOURCE_SERVICES_HXX