UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 #ifndef _CPPUHELPER_SHLIB_HXX_ 00029 #define _CPPUHELPER_SHLIB_HXX_ 00030 00031 #include <osl/module.hxx> 00032 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 00033 #include <com/sun/star/registry/XRegistryKey.hpp> 00034 #include <com/sun/star/loader/CannotActivateFactoryException.hpp> 00035 #include <com/sun/star/registry/CannotRegisterImplementationException.hpp> 00036 #include "cppuhelperdllapi.h" 00037 00038 00039 namespace cppu 00040 { 00041 00042 // Note the pointless redundancy 00043 // "::com::sun::star::lang::XSingleComponentFactory or 00044 // ::com::sun::star::lang::XSingleComponentFactory" in the doc 00045 // comments below. Whether the documentation is supposed to mean only 00046 // XSingleComponentFactory, or whether the other one should be 00047 // something else, I don't know. 00048 00064 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 00065 SAL_CALL loadSharedLibComponentFactory( 00066 ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath, 00067 ::rtl::OUString const & rImplName, 00068 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr, 00069 ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey ) 00070 SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) ); 00071 00089 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 00090 SAL_CALL loadSharedLibComponentFactory( 00091 ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath, 00092 ::rtl::OUString const & rImplName, 00093 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr, 00094 ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey, 00095 ::rtl::OUString const & rPrefix ) 00096 SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) ); 00097 00109 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 00110 SAL_CALL invokeStaticComponentFactory( 00111 oslGenericFunction pGetter, 00112 ::rtl::OUString const & rImplName, 00113 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr, 00114 ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey, 00115 ::rtl::OUString const & rPrefix ) 00116 SAL_THROW( (::com::sun::star::loader::CannotActivateFactoryException) ); 00117 00131 CPPUHELPER_DLLPUBLIC void 00132 SAL_CALL writeSharedLibComponentInfo( 00133 ::rtl::OUString const & rLibName, ::rtl::OUString const & rPath, 00134 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > const & xMgr, 00135 ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > const & xKey ) 00136 SAL_THROW( (::com::sun::star::registry::CannotRegisterImplementationException) ); 00137 00138 } // end namespace cppu 00139 00140 #endif 00141 00142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */