UDK 3.2.7 C/C++ API Reference

cppuhelper/shlib.hxx

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 #ifndef _CPPUHELPER_SHLIB_HXX_
00020 #define _CPPUHELPER_SHLIB_HXX_
00021 
00022 #include <osl/module.hxx>
00023 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
00024 #include <com/sun/star/registry/XRegistryKey.hpp>
00025 #include <com/sun/star/loader/CannotActivateFactoryException.hpp>
00026 #include <com/sun/star/registry/CannotRegisterImplementationException.hpp>
00027 #include "cppuhelperdllapi.h"
00028 
00029 
00030 namespace cppu
00031 {
00032 
00033 // Note the pointless redundancy
00034 // "::com::sun::star::lang::XSingleComponentFactory or
00035 // ::com::sun::star::lang::XSingleComponentFactory" in the doc
00036 // comments below. Whether the documentation is supposed to mean only
00037 // XSingleComponentFactory, or whether the other one should be
00038 // something else, I don't know.
00039 
00055 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
00056 SAL_CALL loadSharedLibComponentFactory(
00057     ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
00058     ::rtl::OUString const & rImplName,
00059     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
00060     ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey )
00061     SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
00062 
00080 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
00081 SAL_CALL loadSharedLibComponentFactory(
00082     ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
00083     ::rtl::OUString const & rImplName,
00084     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
00085     ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey,
00086     ::rtl::OUString const & rPrefix )
00087     SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
00088 
00100 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
00101 SAL_CALL invokeStaticComponentFactory(
00102     oslGenericFunction pGetter,
00103     ::rtl::OUString const & rImplName,
00104     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
00105     ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey,
00106     ::rtl::OUString const & rPrefix )
00107     SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) );
00108 
00122 CPPUHELPER_DLLPUBLIC void
00123 SAL_CALL writeSharedLibComponentInfo(
00124     ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath,
00125     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr,
00126     ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey )
00127     SAL_THROW( (::com::sun::star::registry::CannotRegisterImplementationException) );
00128 
00129 } // end namespace cppu
00130 
00131 #endif
00132 
00133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines