|
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_BOOTSTRAP_HXX_ 00020 #define _CPPUHELPER_BOOTSTRAP_HXX_ 00021 00022 #include "sal/config.h" 00023 #include "com/sun/star/uno/Exception.hpp" 00024 #include "com/sun/star/uno/Reference.hxx" 00025 #include "rtl/ustring.hxx" 00026 #include "sal/types.h" 00027 #include "cppuhelperdllapi.h" 00028 00029 namespace com { namespace sun { namespace star { 00030 namespace container { class XHierarchicalNameAccess; } 00031 namespace registry { class XSimpleRegistry; } 00032 namespace uno { class XComponentContext; } 00033 } } } 00034 00035 namespace cppu 00036 { 00037 00047 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry > 00048 SAL_CALL createSimpleRegistry( 00049 const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() ) 00050 SAL_THROW(()); 00051 00061 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry > 00062 SAL_CALL createNestedRegistry( 00063 const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() ) 00064 SAL_THROW(()); 00065 00071 CPPUHELPER_DLLPUBLIC sal_Bool SAL_CALL installTypeDescriptionManager( 00072 ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const & xTDMgr ) 00073 SAL_THROW(()); 00074 00090 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL 00091 bootstrap_InitialComponentContext( 00092 ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry > const & xRegistry, 00093 ::rtl::OUString const & rBootstrapPath = ::rtl::OUString() ) 00094 SAL_THROW( (::com::sun::star::uno::Exception) ); 00095 00096 00110 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL 00111 defaultBootstrap_InitialComponentContext() SAL_THROW( (::com::sun::star::uno::Exception) ); 00112 00113 00128 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL 00129 defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile) SAL_THROW( (::com::sun::star::uno::Exception) ); 00130 00136 class CPPUHELPER_DLLPUBLIC BootstrapException 00137 { 00138 public: 00142 BootstrapException(); 00143 00150 BootstrapException( const ::rtl::OUString & rMessage ); 00151 00155 BootstrapException( const BootstrapException & e ); 00156 00160 virtual ~BootstrapException(); 00161 00165 BootstrapException & operator=( const BootstrapException & e ); 00166 00173 const ::rtl::OUString & getMessage() const; 00174 00175 private: 00176 ::rtl::OUString m_aMessage; 00177 }; 00178 00189 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > 00190 SAL_CALL bootstrap(); 00191 00193 00210 CPPUHELPER_DLLPUBLIC ::rtl::OUString 00211 SAL_CALL bootstrap_expandUri(::rtl::OUString const & uri); 00213 00214 } // end namespace cppu 00215 00216 #endif 00217 00218 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3