LibreOffice Module cppuhelper (master) 1
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
20/*
21 * This file is part of LibreOffice published API.
22 */
23#ifndef INCLUDED_CPPUHELPER_BOOTSTRAP_HXX
24#define INCLUDED_CPPUHELPER_BOOTSTRAP_HXX
25
26#include "sal/config.h"
27#include "com/sun/star/uno/Reference.h"
28#include "rtl/ustring.hxx"
29#include "sal/types.h"
31
32namespace com { namespace sun { namespace star {
33 namespace container { class XHierarchicalNameAccess; }
34 namespace uno { class XComponentContext; }
35} } }
36
37namespace cppu
38{
39
46 css::uno::Reference< css::container::XHierarchicalNameAccess > const & xTDMgr );
47
61CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL
63
64
79CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL
80defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile);
81
88{
89public:
94
101 BootstrapException( const ::rtl::OUString & rMessage );
102
107
111 virtual ~BootstrapException();
112
116 BootstrapException & operator=( const BootstrapException & e );
117
124 const ::rtl::OUString & getMessage() const;
125
126private:
127 ::rtl::OUString m_aMessage;
128};
129
140CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext >
141SAL_CALL bootstrap();
142
144
161CPPUHELPER_DLLPUBLIC ::rtl::OUString
162SAL_CALL bootstrap_expandUri(::rtl::OUString const & uri);
164
165} // end namespace cppu
166
167#endif
168
169/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
An exception indicating a bootstrap error.
Definition: bootstrap.hxx:88
::rtl::OUString m_aMessage
Definition: bootstrap.hxx:127
BootstrapException(const ::rtl::OUString &rMessage)
Constructs a BootstrapException with the specified detail message.
#define CPPUHELPER_DLLPUBLIC
sal_Bool SAL_CALL installTypeDescriptionManager(Reference< container::XHierarchicalNameAccess > const &xTDMgr_c)
Definition: tdmgr.cxx:633
OUString bootstrap_expandUri(OUString const &uri)
Definition: bootstrap.cxx:232
Reference< XComponentContext > SAL_CALL bootstrap()
Bootstraps the component context from a UNO installation.
Definition: bootstrap.cxx:84
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL defaultBootstrap_InitialComponentContext()
Bootstraps an initial component context with service manager upon information from bootstrap variable...
unsigned char sal_Bool