LibreOffice
LibreOffice 4.1 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
shlib.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef _CPPUHELPER_SHLIB_HXX_
20 #define _CPPUHELPER_SHLIB_HXX_
21 
22 #include <osl/module.hxx>
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <com/sun/star/registry/XRegistryKey.hpp>
25 #include <com/sun/star/loader/CannotActivateFactoryException.hpp>
26 #include <com/sun/star/registry/CannotRegisterImplementationException.hpp>
27 #include "cppuhelperdllapi.h"
28 
29 
30 namespace cppu
31 {
32 
33 // Note the pointless redundancy
34 // "::com::sun::star::lang::XSingleComponentFactory or
35 // ::com::sun::star::lang::XSingleComponentFactory" in the doc
36 // comments below. Whether the documentation is supposed to mean only
37 // XSingleComponentFactory, or whether the other one should be
38 // something else, I don't know.
39 
55 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
57  ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
58  ::rtl::OUString const & rImplName,
61  SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
62 
80 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
82  ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
83  ::rtl::OUString const & rImplName,
86  ::rtl::OUString const & rPrefix )
87  SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
88 
100 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
102  oslGenericFunction pGetter,
103  ::rtl::OUString const & rImplName,
106  ::rtl::OUString const & rPrefix )
107  SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
108 
124  ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
127  SAL_THROW( (::com::sun::star::registry::CannotRegisterImplementationException) );
128 
129 } // end namespace cppu
130 
131 #endif
132 
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */