LibreOffice
LibreOffice 4.2 SDK 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 INCLUDED_CPPUHELPER_BOOTSTRAP_HXX
20 #define INCLUDED_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>
28 
29 namespace com { namespace sun { namespace star {
30  namespace container { class XHierarchicalNameAccess; }
31  namespace uno { class XComponentContext; }
32 } } }
33 
34 namespace cppu
35 {
36 
44  SAL_THROW(());
45 
59 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
60 defaultBootstrap_InitialComponentContext() SAL_THROW( (::com::sun::star::uno::Exception) );
61 
62 
77 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > SAL_CALL
78 defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile) SAL_THROW( (::com::sun::star::uno::Exception) );
79 
86 {
87 public:
91  BootstrapException();
92 
99  BootstrapException( const ::rtl::OUString & rMessage );
100 
104  BootstrapException( const BootstrapException & e );
105 
109  virtual ~BootstrapException();
110 
114  BootstrapException & operator=( const BootstrapException & e );
115 
122  const ::rtl::OUString & getMessage() const;
123 
124 private:
125  ::rtl::OUString m_aMessage;
126 };
127 
138 CPPUHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
139 SAL_CALL bootstrap();
140 
142 
159 CPPUHELPER_DLLPUBLIC ::rtl::OUString
160 SAL_CALL bootstrap_expandUri(::rtl::OUString const & uri);
162 
163 } // end namespace cppu
164 
165 #endif
166 
167 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
CPPUHELPER_DLLPUBLIC sal_Bool installTypeDescriptionManager(::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const &xTDMgr)
Installs type description manager instance, i.e.
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > bootstrap()
Bootstraps the component context from a UNO installation.
unsigned char sal_Bool
Definition: types.h:46
An exception indicating a bootstrap error.
Definition: bootstrap.hxx:85
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > defaultBootstrap_InitialComponentContext()
Bootstraps an initial component context with service manager upon information from bootstrap variable...
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358