LibreOffice Module cppuhelper (master) 1
compat.cxx
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#include <sal/config.h>
21
22#include <cstdlib>
23
24#include <com/sun/star/uno/Reference.hxx>
25#include <com/sun/star/uno/Sequence.hxx>
26#include <osl/module.h>
27#include <sal/types.h>
28
29namespace com::sun::star {
30 namespace lang {
31 class XMultiComponentFactory;
32 class XMultiServiceFactory;
33 class XTypeProvider;
34 }
35 namespace reflection { class XIdlClass; }
36 namespace registry {
37 class XRegistryKey;
38 class XSimpleRegistry;
39 }
40 namespace uno {
41 class XComponentContext;
42 class XInterface;
43 }
44}
45
46// Stubs for removed functionality, to be killed when we bump cppuhelper SONAME
47
48namespace cppu {
49
50SAL_DLLPUBLIC_EXPORT
51css::uno::Reference< css::lang::XMultiComponentFactory > bootstrapInitialSF(
52 OUString const &)
53{
54 for (;;) { std::abort(); } // avoid "must return a value" warnings
55}
56
57SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XComponentContext > SAL_CALL
59 css::uno::Reference< css::registry::XSimpleRegistry > const &,
60 OUString const &)
61{
62 for (;;) { std::abort(); } // avoid "must return a value" warnings
63}
64
65SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
66SAL_CALL createNestedRegistry(OUString const &) {
67 for (;;) { std::abort(); } // avoid "must return a value" warnings
68}
69
70SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::lang::XMultiServiceFactory >
72 OUString const &, OUString const &, sal_Bool,
73 OUString const &)
74{
75 for (;;) { std::abort(); } // avoid "must return a value" warnings
76}
77
78SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
79SAL_CALL createSimpleRegistry(OUString const &) {
80 for (;;) { std::abort(); } // avoid "must return a value" warnings
81}
82
83SAL_DLLPUBLIC_EXPORT css::reflection::XIdlClass * SAL_CALL
85 css::uno::Reference< css::lang::XMultiServiceFactory > const &,
86 OUString const &,
87 css::uno::Reference< css::reflection::XIdlClass > const &,
88 css::uno::Sequence< OUString > const &)
89{
90 for (;;) { std::abort(); } // avoid "must return a value" warnings
91}
92
93SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
95 oslGenericFunction, OUString const &,
96 css::uno::Reference<css::lang::XMultiServiceFactory> const &,
97 css::uno::Reference<css::registry::XRegistryKey> const &,
98 OUString const &)
99{
100 for (;;) { std::abort(); } // avoid "must return a value" warnings
101}
102
103SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
105 OUString const &, OUString const &, OUString const &,
106 css::uno::Reference<css::lang::XMultiServiceFactory> const &,
107 css::uno::Reference<css::registry::XRegistryKey> const &,
108 OUString const &)
109{
110 for (;;) { std::abort(); } // avoid "must return a value" warnings
111}
112
113struct SAL_DLLPUBLIC_EXPORT ClassData {
114 css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId();
115
116 css::uno::Sequence<css::uno::Type> SAL_CALL getTypes();
117
118 void SAL_CALL initTypeProvider();
119
120 css::uno::Any SAL_CALL query(
121 css::uno::Type const &, css::lang::XTypeProvider *);
122
123 void SAL_CALL writeTypeOffset(css::uno::Type const &, sal_Int32);
124};
125
126css::uno::Sequence<sal_Int8> ClassData::getImplementationId() {
127 for (;;) { std::abort(); } // avoid "must return a value" warnings
128}
129
130css::uno::Sequence<css::uno::Type> ClassData::getTypes() {
131 for (;;) { std::abort(); } // avoid "must return a value" warnings
132}
133
135 std::abort();
136}
137
138css::uno::Any ClassData::query(
139 css::uno::Type const &, css::lang::XTypeProvider *)
140{
141 for (;;) { std::abort(); } // avoid "must return a value" warnings
142}
143
144void ClassData::writeTypeOffset(css::uno::Type const &, sal_Int32) {
145 std::abort();
146}
147
149struct SAL_DLLPUBLIC_EXPORT ClassDataBase {
151
152 explicit ClassDataBase(sal_Int32);
153
155};
156
158 std::abort();
159}
160
162 std::abort();
163}
164
166 std::abort();
167}
169
170}
171
172/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry > SAL_CALL createNestedRegistry(OUString const &)
Definition: compat.cxx:66
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XInterface > SAL_CALL loadSharedLibComponentFactory(OUString const &, OUString const &, OUString const &, css::uno::Reference< css::lang::XMultiServiceFactory > const &, css::uno::Reference< css::registry::XRegistryKey > const &, OUString const &)
Definition: compat.cxx:104
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::lang::XMultiComponentFactory > bootstrapInitialSF(OUString const &)
Definition: compat.cxx:51
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XComponentContext > SAL_CALL bootstrap_InitialComponentContext(css::uno::Reference< css::registry::XSimpleRegistry > const &, OUString const &)
Definition: compat.cxx:58
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XInterface > SAL_CALL invokeStaticComponentFactory(oslGenericFunction, OUString const &, css::uno::Reference< css::lang::XMultiServiceFactory > const &, css::uno::Reference< css::registry::XRegistryKey > const &, OUString const &)
Definition: compat.cxx:94
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::lang::XMultiServiceFactory > SAL_CALL createRegistryServiceFactory(OUString const &, OUString const &, sal_Bool, OUString const &)
Definition: compat.cxx:71
SAL_DLLPUBLIC_EXPORT css::reflection::XIdlClass *SAL_CALL createStandardClassWithSequence(css::uno::Reference< css::lang::XMultiServiceFactory > const &, OUString const &, css::uno::Reference< css::reflection::XIdlClass > const &, css::uno::Sequence< OUString > const &)
Definition: compat.cxx:84
SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry > SAL_CALL createSimpleRegistry(OUString const &)
Definition: compat.cxx:79
store_handle_type *SAL_CALL query(OStoreObject *pHandle, store_handle_type *)
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes()
Definition: compat.cxx:130
void SAL_CALL initTypeProvider()
Definition: compat.cxx:134
css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
Definition: compat.cxx:126
css::uno::Any SAL_CALL query(css::uno::Type const &, css::lang::XTypeProvider *)
Definition: compat.cxx:138
void SAL_CALL writeTypeOffset(css::uno::Type const &, sal_Int32)
Definition: compat.cxx:144
#define SAL_WNOUNREACHABLE_CODE_POP
unsigned char sal_Bool
#define SAL_WNOUNREACHABLE_CODE_PUSH