1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
24 #include <com/sun/star/uno/Exception.hpp>
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <com/sun/star/uno/Sequence.hxx>
27 #include <osl/module.h>
28 #include <sal/types.h>
30 namespace com
{ namespace sun
{ namespace star
{
32 class XMultiComponentFactory
;
33 class XMultiServiceFactory
;
36 namespace reflection
{ class XIdlClass
; }
39 class XSimpleRegistry
;
42 class XComponentContext
;
46 namespace rtl
{ class OUString
; }
48 // Stubs for removed functionality, to be killed when we bump cppuhelper SONAME
53 css::uno::Reference
< css::lang::XMultiComponentFactory
> bootstrapInitialSF(
54 rtl::OUString
const &)
56 for (;;) { std::abort(); } // avoid "must return a value" warnings
59 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
< css::uno::XComponentContext
> SAL_CALL
60 bootstrap_InitialComponentContext(
61 css::uno::Reference
< css::registry::XSimpleRegistry
> const &,
62 rtl::OUString
const &)
64 for (;;) { std::abort(); } // avoid "must return a value" warnings
67 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
< css::registry::XSimpleRegistry
>
68 SAL_CALL
createNestedRegistry(rtl::OUString
const &) {
69 for (;;) { std::abort(); } // avoid "must return a value" warnings
72 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
< css::lang::XMultiServiceFactory
>
73 SAL_CALL
createRegistryServiceFactory(
74 rtl::OUString
const &, rtl::OUString
const &, sal_Bool
,
75 rtl::OUString
const &)
77 for (;;) { std::abort(); } // avoid "must return a value" warnings
80 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
< css::registry::XSimpleRegistry
>
81 SAL_CALL
createSimpleRegistry(rtl::OUString
const &) {
82 for (;;) { std::abort(); } // avoid "must return a value" warnings
85 SAL_DLLPUBLIC_EXPORT
css::reflection::XIdlClass
* SAL_CALL
86 createStandardClassWithSequence(
87 css::uno::Reference
< css::lang::XMultiServiceFactory
> const &,
88 rtl::OUString
const &,
89 css::uno::Reference
< css::reflection::XIdlClass
> const &,
90 css::uno::Sequence
< rtl::OUString
> const &)
92 for (;;) { std::abort(); } // avoid "must return a value" warnings
95 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
<css::uno::XInterface
> SAL_CALL
96 invokeStaticComponentFactory(
97 oslGenericFunction
, rtl::OUString
const &,
98 css::uno::Reference
<css::lang::XMultiServiceFactory
> const &,
99 css::uno::Reference
<css::registry::XRegistryKey
> const &,
100 rtl::OUString
const &)
102 for (;;) { std::abort(); } // avoid "must return a value" warnings
105 SAL_DLLPUBLIC_EXPORT
css::uno::Reference
<css::uno::XInterface
> SAL_CALL
106 loadSharedLibComponentFactory(
107 rtl::OUString
const &, rtl::OUString
const &, rtl::OUString
const &,
108 css::uno::Reference
<css::lang::XMultiServiceFactory
> const &,
109 css::uno::Reference
<css::registry::XRegistryKey
> const &,
110 rtl::OUString
const &)
112 for (;;) { std::abort(); } // avoid "must return a value" warnings
115 struct SAL_DLLPUBLIC_EXPORT ClassData
{
116 css::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId();
118 css::uno::Sequence
<css::uno::Type
> SAL_CALL
getTypes();
120 void SAL_CALL
initTypeProvider();
122 css::uno::Any SAL_CALL
query(
123 css::uno::Type
const &, css::lang::XTypeProvider
*);
125 void SAL_CALL
writeTypeOffset(css::uno::Type
const &, sal_Int32
);
128 css::uno::Sequence
<sal_Int8
> ClassData::getImplementationId() {
129 for (;;) { std::abort(); } // avoid "must return a value" warnings
132 css::uno::Sequence
<css::uno::Type
> ClassData::getTypes() {
133 for (;;) { std::abort(); } // avoid "must return a value" warnings
136 void ClassData::initTypeProvider() {
140 css::uno::Any
ClassData::query(
141 css::uno::Type
const &, css::lang::XTypeProvider
*)
143 for (;;) { std::abort(); } // avoid "must return a value" warnings
146 void ClassData::writeTypeOffset(css::uno::Type
const &, sal_Int32
) {
150 SAL_WNOUNREACHABLE_CODE_PUSH
151 struct SAL_DLLPUBLIC_EXPORT ClassDataBase
{
154 ClassDataBase(sal_Int32
);
159 ClassDataBase::ClassDataBase() {
163 ClassDataBase::ClassDataBase(sal_Int32
) {
167 ClassDataBase::~ClassDataBase() {
170 SAL_WNOUNREACHABLE_CODE_POP
174 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */