LibreOffice LibreOffice 26.2 SDK C/C++ API Reference

Loading...
Searching...
No Matches
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"
30#include "cppuhelper/cppuhelperdllapi.h"
31
32 namespace com { namespace sun { namespace star {
33 namespace container { class XHierarchicalNameAccess; }
34 namespace uno { class XComponentContext; }
35} } }
36
37 namespace cppu
38{
39
45 CPPUHELPER_DLLPUBLIC sal_Bool SAL_CALL installTypeDescriptionManager(
46 css::uno::Reference< css::container::XHierarchicalNameAccess > const & xTDMgr );
47
61 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL
62 defaultBootstrap_InitialComponentContext();
63
64
79 CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > SAL_CALL
80 defaultBootstrap_InitialComponentContext(const ::rtl::OUString & iniFile);
81
87 class CPPUHELPER_DLLPUBLIC BootstrapException
88{
89 public:
93 BootstrapException();
94
101 BootstrapException( const ::rtl::OUString & rMessage );
102
106 BootstrapException( const BootstrapException & e );
107
111 virtual ~BootstrapException();
112
116 BootstrapException & operator=( const BootstrapException & e );
117
124 const ::rtl::OUString & getMessage() const;
125
126 private:
127 ::rtl::OUString m_aMessage;
128};
129
140 CPPUHELPER_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: */
types.h
sal_Bool
unsigned char sal_Bool
Definition types.h:38
config.h
ustring.hxx
cppuhelperdllapi.h
CPPUHELPER_DLLPUBLIC
#define CPPUHELPER_DLLPUBLIC
Definition cppuhelperdllapi.h:32
Reference.h
com
Definition types.h:377
com::sun
Definition types.h:377
com::sun::star
Definition types.h:377
com::sun::star::uno
Definition typedescription.hxx:43
cppu
Definition Enterable.hxx:31
cppu::defaultBootstrap_InitialComponentContext
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > defaultBootstrap_InitialComponentContext()
Bootstraps an initial component context with service manager upon information from bootstrap variable...
cppu::bootstrap
CPPUHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > bootstrap()
Bootstraps the component context from a UNO installation.
cppu::installTypeDescriptionManager
CPPUHELPER_DLLPUBLIC sal_Bool installTypeDescriptionManager(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xTDMgr)
Installs type description manager instance, i.e.
com::sun::star::container
Definition bootstrap.hxx:33
rtl::OUString
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
com::sun::star::uno::Reference
Template reference class for interface type derived from BaseReference.
Definition Reference.h:184
cppu::BootstrapException::operator=
BootstrapException & operator=(const BootstrapException &e)
Assigns a BootstrapException.
cppu::BootstrapException::getMessage
const ::rtl::OUString & getMessage() const
Gets the message.
cppu::BootstrapException::BootstrapException
BootstrapException()
Constructs a BootstrapException.
cppu::BootstrapException::BootstrapException
BootstrapException(const ::rtl::OUString &rMessage)
Constructs a BootstrapException with the specified detail message.
cppu::BootstrapException::~BootstrapException
virtual ~BootstrapException()
Destructs a BootstrapException.
cppu::BootstrapException::BootstrapException
BootstrapException(const BootstrapException &e)
Copy constructs a BootstrapException.