UDK 3.2.7 C/C++ API Reference
cppuhelper/bootstrap.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_BOOTSTRAP_HXX_
00029 #define _CPPUHELPER_BOOTSTRAP_HXX_
00030 
00031 #include "sal/config.h"
00032 #include "com/sun/star/uno/Exception.hpp"
00033 #include "com/sun/star/uno/Reference.hxx"
00034 #include "rtl/ustring.hxx"
00035 #include "sal/types.h"
00036 #include "cppuhelperdllapi.h"
00037 
00038 namespace com { namespace sun { namespace star {
00039     namespace container { class XHierarchicalNameAccess; }
00040     namespace registry { class XSimpleRegistry; }
00041     namespace uno { class XComponentContext; }
00042 } } }
00043 
00044 namespace cppu
00045 {
00046 
00056 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry >
00057 SAL_CALL createSimpleRegistry(
00058     const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
00059     SAL_THROW(());
00060 
00070 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry >
00071 SAL_CALL createNestedRegistry(
00072     const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
00073     SAL_THROW(());
00074 
00080 CPPUHELPER_DLLPUBLIC sal_Bool SAL_CALL installTypeDescriptionManager(
00081     ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const & xTDMgr )
00082     SAL_THROW(());
00083 
00099 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
00100 bootstrap_InitialComponentContext(
00101     ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry > const & xRegistry,
00102     ::rtl::OUString const & rBootstrapPath = ::rtl::OUString() )
00103     SAL_THROW( (::com::sun::star::uno::Exception) );
00104 
00105 
00119 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
00120 defaultBootstrap_InitialComponentContext() SAL_THROW( (::com::sun::star::uno::Exception) );
00121 
00122 
00137 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
00138 defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile) SAL_THROW( (::com::sun::star::uno::Exception) );
00139 
00145 class CPPUHELPER_DLLPUBLIC BootstrapException
00146 {
00147 public:
00151     BootstrapException();
00152 
00159     BootstrapException( const ::rtl::OUString & rMessage );
00160 
00164     BootstrapException( const BootstrapException & e );
00165 
00169     virtual ~BootstrapException();
00170 
00174     BootstrapException & operator=( const BootstrapException & e );
00175 
00182     const ::rtl::OUString & getMessage() const;
00183 
00184 private:
00185     ::rtl::OUString m_aMessage;
00186 };
00187 
00198 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
00199 SAL_CALL bootstrap();
00200 
00202 
00219 CPPUHELPER_DLLPUBLIC ::rtl::OUString
00220 SAL_CALL bootstrap_expandUri(::rtl::OUString const & uri);
00222 
00223 } // end namespace cppu
00224 
00225 #endif
00226 
00227 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines