UDK 3.2.7 C/C++ API Reference
cppuhelper/servicefactory.hxx
Go to the documentation of this file.
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_SERVICEFACTORY_HXX_
00029 #define _CPPUHELPER_SERVICEFACTORY_HXX_
00030 
00031 #include <rtl/ustring.hxx>
00032 
00033 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
00034 #include <com/sun/star/lang/XMultiComponentFactory.hpp>
00035 #include "cppuhelperdllapi.h"
00036 
00037 
00038 namespace cppu
00039 {
00040 
00065 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
00066 SAL_CALL createRegistryServiceFactory(
00067     const ::rtl::OUString & rWriteRegistryFile,
00068     const ::rtl::OUString & rReadRegistryFile,
00069     sal_Bool bReadOnly = sal_False,
00070     const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
00071     SAL_THROW( (::com::sun::star::uno::Exception) );
00072 
00073 
00091 inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
00092 SAL_CALL createRegistryServiceFactory(
00093     const ::rtl::OUString & rRegistryFile,
00094     sal_Bool bReadOnly = sal_False,
00095     const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
00096     SAL_THROW( (::com::sun::star::uno::Exception) )
00097 {
00098     return ::cppu::createRegistryServiceFactory(
00099         rRegistryFile, ::rtl::OUString(), bReadOnly, rBootstrapPath );
00100 }
00101 
00112 inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
00113 SAL_CALL createServiceFactory(
00114     const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
00115     SAL_THROW( (::com::sun::star::uno::Exception) )
00116 {
00117     return ::cppu::createRegistryServiceFactory(
00118         ::rtl::OUString(), ::rtl::OUString(), sal_False, rBootstrapPath );
00119 }
00120 
00121 } // end namespace cppu
00122 
00123 #endif
00124 
00125 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines