|
UDK 3.2.7 C/C++ API Reference
|
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_SERVICEFACTORY_HXX_ 00020 #define _CPPUHELPER_SERVICEFACTORY_HXX_ 00021 00022 #include <rtl/ustring.hxx> 00023 00024 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 00025 #include <com/sun/star/lang/XMultiComponentFactory.hpp> 00026 #include "cppuhelperdllapi.h" 00027 00028 00029 namespace cppu 00030 { 00031 00056 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > 00057 SAL_CALL createRegistryServiceFactory( 00058 const ::rtl::OUString & rWriteRegistryFile, 00059 const ::rtl::OUString & rReadRegistryFile, 00060 sal_Bool bReadOnly = sal_False, 00061 const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() ) 00062 SAL_THROW( (::com::sun::star::uno::Exception) ); 00063 00064 00082 inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > 00083 SAL_CALL createRegistryServiceFactory( 00084 const ::rtl::OUString & rRegistryFile, 00085 sal_Bool bReadOnly = sal_False, 00086 const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() ) 00087 SAL_THROW( (::com::sun::star::uno::Exception) ) 00088 { 00089 return ::cppu::createRegistryServiceFactory( 00090 rRegistryFile, ::rtl::OUString(), bReadOnly, rBootstrapPath ); 00091 } 00092 00103 inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > 00104 SAL_CALL createServiceFactory( 00105 const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() ) 00106 SAL_THROW( (::com::sun::star::uno::Exception) ) 00107 { 00108 return ::cppu::createRegistryServiceFactory( 00109 ::rtl::OUString(), ::rtl::OUString(), sal_False, rBootstrapPath ); 00110 } 00111 00112 } // end namespace cppu 00113 00114 #endif 00115 00116 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3