Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / cppuhelper / source / compat.cxx
blob600cb369c2b5701fe6d0461760a9df5ee7cf57bd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <sal/config.h>
22 #include <cstdlib>
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>
29 namespace com { namespace sun { namespace star {
30 namespace lang {
31 class XMultiComponentFactory;
32 class XMultiServiceFactory;
33 class XTypeProvider;
35 namespace reflection { class XIdlClass; }
36 namespace registry {
37 class XRegistryKey;
38 class XSimpleRegistry;
40 namespace uno {
41 class XComponentContext;
42 class XInterface;
44 } } }
46 // Stubs for removed functionality, to be killed when we bump cppuhelper SONAME
48 namespace cppu {
50 SAL_DLLPUBLIC_EXPORT
51 css::uno::Reference< css::lang::XMultiComponentFactory > bootstrapInitialSF(
52 OUString const &)
54 for (;;) { std::abort(); } // avoid "must return a value" warnings
57 SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::uno::XComponentContext > SAL_CALL
58 bootstrap_InitialComponentContext(
59 css::uno::Reference< css::registry::XSimpleRegistry > const &,
60 OUString const &)
62 for (;;) { std::abort(); } // avoid "must return a value" warnings
65 SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
66 SAL_CALL createNestedRegistry(OUString const &) {
67 for (;;) { std::abort(); } // avoid "must return a value" warnings
70 SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::lang::XMultiServiceFactory >
71 SAL_CALL createRegistryServiceFactory(
72 OUString const &, OUString const &, sal_Bool,
73 OUString const &)
75 for (;;) { std::abort(); } // avoid "must return a value" warnings
78 SAL_DLLPUBLIC_EXPORT css::uno::Reference< css::registry::XSimpleRegistry >
79 SAL_CALL createSimpleRegistry(OUString const &) {
80 for (;;) { std::abort(); } // avoid "must return a value" warnings
83 SAL_DLLPUBLIC_EXPORT css::reflection::XIdlClass * SAL_CALL
84 createStandardClassWithSequence(
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 &)
90 for (;;) { std::abort(); } // avoid "must return a value" warnings
93 SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
94 invokeStaticComponentFactory(
95 oslGenericFunction, OUString const &,
96 css::uno::Reference<css::lang::XMultiServiceFactory> const &,
97 css::uno::Reference<css::registry::XRegistryKey> const &,
98 OUString const &)
100 for (;;) { std::abort(); } // avoid "must return a value" warnings
103 SAL_DLLPUBLIC_EXPORT css::uno::Reference<css::uno::XInterface> SAL_CALL
104 loadSharedLibComponentFactory(
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 &)
110 for (;;) { std::abort(); } // avoid "must return a value" warnings
113 struct SAL_DLLPUBLIC_EXPORT ClassData {
114 css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId();
116 css::uno::Sequence<css::uno::Type> SAL_CALL getTypes();
118 void SAL_CALL initTypeProvider();
120 css::uno::Any SAL_CALL query(
121 css::uno::Type const &, css::lang::XTypeProvider *);
123 void SAL_CALL writeTypeOffset(css::uno::Type const &, sal_Int32);
126 css::uno::Sequence<sal_Int8> ClassData::getImplementationId() {
127 for (;;) { std::abort(); } // avoid "must return a value" warnings
130 css::uno::Sequence<css::uno::Type> ClassData::getTypes() {
131 for (;;) { std::abort(); } // avoid "must return a value" warnings
134 void ClassData::initTypeProvider() {
135 std::abort();
138 css::uno::Any ClassData::query(
139 css::uno::Type const &, css::lang::XTypeProvider *)
141 for (;;) { std::abort(); } // avoid "must return a value" warnings
144 void ClassData::writeTypeOffset(css::uno::Type const &, sal_Int32) {
145 std::abort();
148 SAL_WNOUNREACHABLE_CODE_PUSH
149 struct SAL_DLLPUBLIC_EXPORT ClassDataBase {
150 ClassDataBase();
152 explicit ClassDataBase(sal_Int32);
154 ~ClassDataBase();
157 ClassDataBase::ClassDataBase() {
158 std::abort();
161 ClassDataBase::ClassDataBase(sal_Int32) {
162 std::abort();
165 ClassDataBase::~ClassDataBase() {
166 std::abort();
168 SAL_WNOUNREACHABLE_CODE_POP
172 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */