merged tag LIBREOFFICE_3_2_99_3
[LibreOffice.git] / extensions / source / resource / res_services.hxx
blobac61f0e423ac9e770637fc7e763f7d4b428622ac
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef EXTENSIONS_RESOURCE_SERVICES_HXX
30 #define EXTENSIONS_RESOURCE_SERVICES_HXX
32 /** === begin UNO includes === **/
33 #include <com/sun/star/uno/Sequence.hxx>
34 #include <com/sun/star/uno/Reference.hxx>
35 #include <com/sun/star/uno/XInterface.hpp>
36 /** === end UNO includes === **/
37 #include <cppuhelper/factory.hxx>
39 //........................................................................
40 namespace res
42 //........................................................................
44 struct ComponentInfo
46 /// services supported by the component
47 ::com::sun::star::uno::Sequence< ::rtl::OUString > aSupportedServices;
48 /// implementation name of the component
49 ::rtl::OUString sImplementationName;
50 /** name of the singleton instance of the component, if it is a singleton, empty otherwise
51 If the component is a singleton, aSupportedServices must contain exactly one element.
53 ::rtl::OUString sSingletonName;
54 /// factory for creating the component
55 ::cppu::ComponentFactoryFunc pFactory;
58 ComponentInfo getComponentInfo_VclStringResourceLoader();
59 ComponentInfo getComponentInfo_OpenOfficeResourceLoader();
61 //........................................................................
62 } // namespace res
63 //........................................................................
65 #endif // EXTENSIONS_RESOURCE_SERVICES_HXX
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */