LibreOffice LibreOffice 4.3 SDK C/C++ API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

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>
24 #include <com/sun/star/uno/Reference.hxx>
25 #include <rtl/ustring.hxx>
26 #include <sal/types.h>
27 #include <cppuhelper/cppuhelperdllapi.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
42 CPPUHELPER_DLLPUBLIC sal_Bool SAL_CALL installTypeDescriptionManager(
43 ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const & xTDMgr )
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
85 class CPPUHELPER_DLLPUBLIC BootstrapException
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: */
types.h
sal_Bool
unsigned char sal_Bool
Definition: types.h:46
rtl
Definition: bootstrap.hxx:24
cppu::installTypeDescriptionManager
CPPUHELPER_DLLPUBLIC sal_Bool installTypeDescriptionManager(::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > const &xTDMgr) SAL_THROW(())
Installs type description manager instance, i.e.
Reference.hxx
cppu
Definition: Enterable.hxx:26
SAL_THROW
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
cppu::BootstrapException
Bootstraps an initial component context with service manager upon information from bootstrap variable...
Definition: bootstrap.hxx:85
com::sun::star::uno::Reference
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
config.h
CPPUHELPER_DLLPUBLIC
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:28
cppu::bootstrap
CPPUHELPER_DLLPUBLIC::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > bootstrap()
Bootstraps the component context from a UNO installation.
rtl::OUString
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:82
ustring.hxx
cppuhelperdllapi.h
com
Definition: types.h:391