00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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 }
00215
00216 #endif
00217
00218