tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / reportdesign / source / core / api / services.cxx
blob1f0a0a6f2fe87f2624d882ec6e36b4d663e17e34
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 .
19 #include <sal/types.h>
20 #include <cppuhelper/factory.hxx>
21 #include <cppuhelper/implementationentry.hxx>
22 #include <ReportDefinition.hxx>
23 #include <FormattedField.hxx>
24 #include <FixedText.hxx>
25 #include <ImageControl.hxx>
26 #include <FormatCondition.hxx>
27 #include <ReportEngineJFree.hxx>
28 #include <Function.hxx>
29 #include <Shape.hxx>
30 #include <FixedLine.hxx>
32 /********************************************************************************************/
34 using namespace ::reportdesign;
35 using namespace ::com::sun::star::lang;
36 using namespace ::com::sun::star::registry;
38 // registry functions
39 namespace
41 cppu::ImplementationEntry const entries[]
42 = { { &OReportDefinition::create, &OReportDefinition::getImplementationName_Static,
43 &OReportDefinition::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
44 nullptr, 0 },
45 { &OFormattedField::create, &OFormattedField::getImplementationName_Static,
46 &OFormattedField::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
47 nullptr, 0 },
48 { &OFixedText::create, &OFixedText::getImplementationName_Static,
49 &OFixedText::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
50 nullptr, 0 },
51 { &OImageControl::create, &OImageControl::getImplementationName_Static,
52 &OImageControl::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
53 nullptr, 0 },
54 { &OFormatCondition::create, &OFormatCondition::getImplementationName_Static,
55 &OFormatCondition::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
56 nullptr, 0 },
57 { &OReportEngineJFree::create, &OReportEngineJFree::getImplementationName_Static,
58 &OReportEngineJFree::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
59 nullptr, 0 },
60 { &OFunction::create, &OFunction::getImplementationName_Static,
61 &OFunction::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory, nullptr,
62 0 },
63 { &OShape::create, &OShape::getImplementationName_Static,
64 &OShape::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory, nullptr,
65 0 },
66 { &OFixedLine::create, &OFixedLine::getImplementationName_Static,
67 &OFixedLine::getSupportedServiceNames_Static, &cppu::createSingleComponentFactory,
68 nullptr, 0 },
69 { nullptr, nullptr, nullptr, nullptr, nullptr, 0 } };
72 extern "C" {
73 SAL_DLLPUBLIC_EXPORT void* rpt_component_getFactory(char const* implName, void* serviceManager,
74 void* registryKey)
76 return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries);
79 } // extern "C"
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */