My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bootstrap.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef _CPPUHELPER_BOOTSTRAP_HXX_
20 #define _CPPUHELPER_BOOTSTRAP_HXX_
21 
22 #include "sal/config.h"
23 #include "com/sun/star/uno/Exception.hpp"
25 #include "rtl/ustring.hxx"
26 #include "sal/types.h"
27 #include "cppuhelperdllapi.h"
28 
29 namespace com { namespace sun { namespace star {
30  namespace container { class XHierarchicalNameAccess; }
31  namespace registry { class XSimpleRegistry; }
32  namespace uno { class XComponentContext; }
33 } } }
34 
35 namespace cppu
36 {
37 
47 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry >
48 SAL_CALL createSimpleRegistry(
49  const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
50  SAL_THROW(());
51 
61 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry >
62 SAL_CALL createNestedRegistry(
63  const ::rtl::OUString & rBootstrapPath = ::rtl::OUString() )
64  SAL_THROW(());
65 
72  ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const & xTDMgr )
73  SAL_THROW(());
74 
90 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
92  ::com::sun::star::uno::Reference< ::com::sun::star::registry::XSimpleRegistry > const & xRegistry,
93  ::rtl::OUString const & rBootstrapPath = ::rtl::OUString() )
94  SAL_THROW( (::com::sun::star::uno::Exception) );
95 
96 
110 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
111 defaultBootstrap_InitialComponentContext() SAL_THROW( (::com::sun::star::uno::Exception) );
112 
113 
128 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
129 defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile) SAL_THROW( (::com::sun::star::uno::Exception) );
130 
137 {
138 public:
142  BootstrapException();
143 
150  BootstrapException( const ::rtl::OUString & rMessage );
151 
155  BootstrapException( const BootstrapException & e );
156 
160  virtual ~BootstrapException();
161 
165  BootstrapException & operator=( const BootstrapException & e );
166 
173  const ::rtl::OUString & getMessage() const;
174 
175 private:
176  ::rtl::OUString m_aMessage;
177 };
178 
189 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
190 SAL_CALL bootstrap();
191 
193 
210 CPPUHELPER_DLLPUBLIC ::rtl::OUString
211 SAL_CALL bootstrap_expandUri(::rtl::OUString const & uri);
213 
214 } // end namespace cppu
215 
216 #endif
217 
218 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */