reportdesign/core: create instances with uno constructors
See tdf#74608 for motivation. Change-Id: I0b8197ca63afebef617b75ccc146af645c357902 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99426 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
0e1ea352a0
commit
79c1d1234b
21 changed files with 98 additions and 323 deletions
|
@ -66,7 +66,6 @@ $(eval $(call gb_Library_add_exception_objects,rpt,\
|
|||
reportdesign/source/core/api/ReportEngineJFree \
|
||||
reportdesign/source/core/api/ReportVisitor \
|
||||
reportdesign/source/core/api/Section \
|
||||
reportdesign/source/core/api/services \
|
||||
reportdesign/source/core/api/Shape \
|
||||
reportdesign/source/core/api/Tools \
|
||||
reportdesign/source/core/misc/conditionalexpression \
|
||||
|
|
|
@ -173,13 +173,6 @@ namespace reportdesign
|
|||
,const css::uno::Reference< css::lang::XMultiServiceFactory > & _xFactory
|
||||
,css::uno::Reference< css::drawing::XShape >& _xShape);
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
|
||||
css::uno::Reference< css::uno::XComponentContext > getContext();
|
||||
|
||||
private:
|
||||
|
|
|
@ -199,33 +199,14 @@ void SAL_CALL OFixedLine::dispose()
|
|||
cppu::WeakComponentImplHelperBase::dispose();
|
||||
}
|
||||
|
||||
OUString OFixedLine::getImplementationName_Static( )
|
||||
OUString SAL_CALL OFixedLine::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OFixedLine";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OFixedLine::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OFixedLine::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_FIXEDLINE };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OFixedLine::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OFixedLine(xContext));
|
||||
}
|
||||
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OFixedLine::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_FIXEDLINE };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFixedLine::supportsService(const OUString& ServiceName)
|
||||
|
@ -561,4 +542,11 @@ void SAL_CALL OFixedLine::setPrintRepeatedValues( sal_Bool /*_printrepeatedvalue
|
|||
} // namespace reportdesign
|
||||
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OFixedLine_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OFixedLine(context));
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -88,33 +88,14 @@ void SAL_CALL OFixedText::dispose()
|
|||
uno::Reference< report::XFixedText> xHoldAlive = this;
|
||||
}
|
||||
|
||||
OUString OFixedText::getImplementationName_Static( )
|
||||
OUString SAL_CALL OFixedText::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OFixedText";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OFixedText::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OFixedText::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_FIXEDTEXT };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OFixedText::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OFixedText(xContext));
|
||||
}
|
||||
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OFixedText::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_FIXEDTEXT };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFixedText::supportsService(const OUString& ServiceName)
|
||||
|
@ -319,5 +300,12 @@ OUString SAL_CALL OFixedText::getShapeType( )
|
|||
|
||||
} // namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OFixedText_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OFixedText(context));
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -27,12 +27,6 @@ namespace reportdesign
|
|||
|
||||
using namespace com::sun::star;
|
||||
|
||||
uno::Reference< uno::XInterface > OFormatCondition::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OFormatCondition(xContext));
|
||||
}
|
||||
|
||||
|
||||
OFormatCondition::OFormatCondition(uno::Reference< uno::XComponentContext > const & _xContext)
|
||||
:FormatConditionBase(m_aMutex)
|
||||
,FormatConditionPropertySet(_xContext,IMPLEMENTS_PROPERTY_SET,uno::Sequence< OUString >())
|
||||
|
@ -52,27 +46,14 @@ void SAL_CALL OFormatCondition::dispose()
|
|||
cppu::WeakComponentImplHelperBase::dispose();
|
||||
}
|
||||
|
||||
OUString OFormatCondition::getImplementationName_Static( )
|
||||
OUString SAL_CALL OFormatCondition::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OFormatCondition";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OFormatCondition::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OFormatCondition::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_FORMATCONDITION };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OFormatCondition::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_FORMATCONDITION };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFormatCondition::supportsService(const OUString& ServiceName)
|
||||
|
@ -143,5 +124,11 @@ REPORTCONTROLFORMAT_IMPL(OFormatCondition,m_aFormatProperties)
|
|||
|
||||
} // namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OFormatCondition_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OFormatCondition(context));
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -35,11 +35,6 @@ namespace reportdesign
|
|||
using namespace com::sun::star;
|
||||
using namespace comphelper;
|
||||
|
||||
uno::Reference< uno::XInterface > OFormattedField::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OFormattedField(xContext));
|
||||
}
|
||||
|
||||
static uno::Sequence< OUString > lcl_getFormattedFieldOptionals()
|
||||
{
|
||||
OUString pProps[] = { OUString(PROPERTY_MASTERFIELDS),OUString(PROPERTY_DETAILFIELDS) };
|
||||
|
@ -97,25 +92,14 @@ void SAL_CALL OFormattedField::dispose()
|
|||
m_xFormatsSupplier.clear();
|
||||
}
|
||||
|
||||
OUString OFormattedField::getImplementationName_Static( )
|
||||
OUString SAL_CALL OFormattedField::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OFormattedField";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OFormattedField::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OFormattedField::getSupportedServiceNames_Static( )
|
||||
{
|
||||
return { SERVICE_FORMATTEDFIELD, "com.sun.star.awt.UnoControlFormattedFieldModel" };
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OFormattedField::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_FORMATTEDFIELD, "com.sun.star.awt.UnoControlFormattedFieldModel" };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFormattedField::supportsService(const OUString& ServiceName)
|
||||
|
@ -357,5 +341,12 @@ OUString SAL_CALL OFormattedField::getShapeType( )
|
|||
|
||||
} // namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OFormattedField_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OFormattedField(context));
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -25,11 +25,6 @@ namespace reportdesign
|
|||
|
||||
using namespace com::sun::star;
|
||||
|
||||
uno::Reference< uno::XInterface > OFunction::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OFunction(xContext));
|
||||
}
|
||||
|
||||
|
||||
OFunction::OFunction(uno::Reference< uno::XComponentContext > const & _xContext)
|
||||
:FunctionBase(m_aMutex)
|
||||
|
@ -52,27 +47,14 @@ void SAL_CALL OFunction::dispose()
|
|||
cppu::WeakComponentImplHelperBase::dispose();
|
||||
}
|
||||
|
||||
OUString OFunction::getImplementationName_Static( )
|
||||
OUString SAL_CALL OFunction::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OFunction";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OFunction::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OFunction::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_FUNCTION };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OFunction::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_FUNCTION };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFunction::supportsService(const OUString& ServiceName)
|
||||
|
@ -197,5 +179,12 @@ void SAL_CALL OFunction::setParent( const uno::Reference< uno::XInterface >& Par
|
|||
|
||||
} // namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OFunction_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OFunction(context));
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -161,33 +161,14 @@ void SAL_CALL OImageControl::dispose()
|
|||
cppu::WeakComponentImplHelperBase::dispose();
|
||||
}
|
||||
|
||||
OUString OImageControl::getImplementationName_Static( )
|
||||
OUString SAL_CALL OImageControl::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OImageControl";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OImageControl::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OImageControl::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_IMAGECONTROL };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OImageControl::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OImageControl(xContext));
|
||||
}
|
||||
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OImageControl::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_IMAGECONTROL };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OImageControl::supportsService(const OUString& ServiceName)
|
||||
|
@ -478,5 +459,12 @@ void SAL_CALL OImageControl::setPreserveIRI( sal_Bool _preserveiri )
|
|||
|
||||
} // namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OImageControl_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OImageControl(context));
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -672,21 +672,9 @@ void SAL_CALL OReportDefinition::disposing()
|
|||
}
|
||||
|
||||
|
||||
OUString OReportDefinition::getImplementationName_Static( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OReportDefinition";
|
||||
}
|
||||
|
||||
OUString SAL_CALL OReportDefinition::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OReportDefinition::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { SERVICE_REPORTDEFINITION };
|
||||
|
||||
return aServices;
|
||||
return "com.sun.star.comp.report.OReportDefinition";
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OReportDefinition::getSupportedServiceNames( )
|
||||
|
@ -731,11 +719,6 @@ uno::Sequence< uno::Type > SAL_CALL OReportDefinition::getTypes( )
|
|||
return ReportDefinitionBase::getTypes();
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OReportDefinition::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OReportDefinition(xContext));
|
||||
}
|
||||
|
||||
// XReportDefinition
|
||||
OUString SAL_CALL OReportDefinition::getCaption()
|
||||
{
|
||||
|
@ -2671,4 +2654,11 @@ uno::Reference< document::XUndoManager > SAL_CALL OReportDefinition::getUndoMana
|
|||
|
||||
}// namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OReportDefinition_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OReportDefinition(context));
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -73,33 +73,14 @@ void SAL_CALL OReportEngineJFree::dispose()
|
|||
m_xActiveConnection.clear();
|
||||
}
|
||||
|
||||
OUString OReportEngineJFree::getImplementationName_Static( )
|
||||
OUString SAL_CALL OReportEngineJFree::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.report.OReportEngineJFree";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OReportEngineJFree::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OReportEngineJFree::getSupportedServiceNames_Static( )
|
||||
{
|
||||
uno::Sequence< OUString > aServices { "com.sun.star.report.ReportEngine" };
|
||||
|
||||
return aServices;
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OReportEngineJFree::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OReportEngineJFree(xContext));
|
||||
}
|
||||
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OReportEngineJFree::getSupportedServiceNames( )
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { "com.sun.star.report.ReportEngine" };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OReportEngineJFree::supportsService(const OUString& ServiceName)
|
||||
|
@ -379,4 +360,11 @@ void SAL_CALL OReportEngineJFree::setMaxRows( ::sal_Int32 MaxRows )
|
|||
} // namespace reportdesign
|
||||
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OReportEngineJFree_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OReportEngineJFree(context));
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -107,33 +107,17 @@ void SAL_CALL OShape::dispose()
|
|||
cppu::WeakComponentImplHelperBase::dispose();
|
||||
}
|
||||
|
||||
uno::Reference< uno::XInterface > OShape::create(uno::Reference< uno::XComponentContext > const & xContext)
|
||||
{
|
||||
return *(new OShape(xContext));
|
||||
}
|
||||
|
||||
|
||||
OUString OShape::getImplementationName_Static( )
|
||||
{
|
||||
return "com.sun.star.comp.report.Shape";
|
||||
}
|
||||
|
||||
|
||||
OUString SAL_CALL OShape::getImplementationName( )
|
||||
{
|
||||
return getImplementationName_Static();
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > OShape::getSupportedServiceNames_Static( )
|
||||
{
|
||||
return { SERVICE_SHAPE };
|
||||
return "com.sun.star.comp.report.Shape";
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > SAL_CALL OShape::getSupportedServiceNames( )
|
||||
{
|
||||
if(m_sServiceName.isEmpty())
|
||||
{
|
||||
return getSupportedServiceNames_Static();
|
||||
return { SERVICE_SHAPE };
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -498,5 +482,12 @@ void SAL_CALL OShape::setCustomShapeGeometry( const uno::Sequence< beans::Proper
|
|||
|
||||
}// namespace reportdesign
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
reportdesign_OShape_get_implementation(
|
||||
css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
|
||||
{
|
||||
return cppu::acquire(new reportdesign::OShape(context));
|
||||
}
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -1,78 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
#include <sal/types.h>
|
||||
#include <cppuhelper/factory.hxx>
|
||||
#include <cppuhelper/implementationentry.hxx>
|
||||
#include <ReportDefinition.hxx>
|
||||
#include <FormattedField.hxx>
|
||||
#include <FixedText.hxx>
|
||||
#include <ImageControl.hxx>
|
||||
#include <FormatCondition.hxx>
|
||||
#include <ReportEngineJFree.hxx>
|
||||
#include <Function.hxx>
|
||||
#include <Shape.hxx>
|
||||
#include <FixedLine.hxx>
|
||||
|
||||
/********************************************************************************************/
|
||||
|
||||
using namespace ::reportdesign;
|
||||
using namespace ::com::sun::star::uno;
|
||||
using namespace ::com::sun::star::lang;
|
||||
using namespace ::com::sun::star::registry;
|
||||
|
||||
|
||||
// registry functions
|
||||
namespace
|
||||
{
|
||||
|
||||
cppu::ImplementationEntry const entries[] = {
|
||||
{ &OReportDefinition::create, &OReportDefinition::getImplementationName_Static, &OReportDefinition::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OFormattedField::create, &OFormattedField::getImplementationName_Static, &OFormattedField::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OFixedText::create, &OFixedText::getImplementationName_Static, &OFixedText::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OImageControl::create, &OImageControl::getImplementationName_Static, &OImageControl::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OFormatCondition::create, &OFormatCondition::getImplementationName_Static, &OFormatCondition::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OReportEngineJFree::create, &OReportEngineJFree::getImplementationName_Static, &OReportEngineJFree::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OFunction::create, &OFunction::getImplementationName_Static, &OFunction::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OShape::create, &OShape::getImplementationName_Static, &OShape::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ &OFixedLine::create, &OFixedLine::getImplementationName_Static, &OFixedLine::getSupportedServiceNames_Static,
|
||||
&cppu::createSingleComponentFactory, nullptr, 0 },
|
||||
{ nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
|
||||
};
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
SAL_DLLPUBLIC_EXPORT void * rpt_component_getFactory(
|
||||
char const * implName, void * serviceManager, void * registryKey)
|
||||
{
|
||||
return cppu::component_getFactoryHelper(
|
||||
implName, serviceManager, registryKey, entries);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
|
@ -83,12 +83,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -111,12 +111,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -107,12 +107,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -114,12 +114,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -86,12 +86,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -89,12 +89,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -79,12 +79,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
private:
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
|
|
|
@ -121,12 +121,6 @@ namespace reportdesign
|
|||
virtual OUString SAL_CALL getImplementationName( ) override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
||||
|
||||
/// @throws css::uno::RuntimeException
|
||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
|
||||
/// @throws css::uno::RuntimeException
|
||||
static OUString getImplementationName_Static();
|
||||
static css::uno::Reference< css::uno::XInterface >
|
||||
create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
|
||||
// css::beans::XPropertySet
|
||||
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
|
||||
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
|
||||
|
|
|
@ -18,32 +18,41 @@
|
|||
-->
|
||||
|
||||
<component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@"
|
||||
prefix="rpt" xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.comp.report.OFixedLine">
|
||||
xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.comp.report.OFixedLine"
|
||||
constructor="reportdesign_OFixedLine_get_implementation">
|
||||
<service name="com.sun.star.report.FixedLine"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OFixedText">
|
||||
<implementation name="com.sun.star.comp.report.OFixedText"
|
||||
constructor="reportdesign_OFixedText_get_implementation">
|
||||
<service name="com.sun.star.report.FixedText"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OFormatCondition">
|
||||
<implementation name="com.sun.star.comp.report.OFormatCondition"
|
||||
constructor="reportdesign_OFormatCondition_get_implementation">
|
||||
<service name="com.sun.star.report.FormatCondition"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OFormattedField">
|
||||
<implementation name="com.sun.star.comp.report.OFormattedField"
|
||||
constructor="reportdesign_OFormattedField_get_implementation">
|
||||
<service name="com.sun.star.report.FormattedField"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OFunction">
|
||||
<implementation name="com.sun.star.comp.report.OFunction"
|
||||
constructor="reportdesign_OFunction_get_implementation">
|
||||
<service name="com.sun.star.report.Function"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OImageControl">
|
||||
<implementation name="com.sun.star.comp.report.OImageControl"
|
||||
constructor="reportdesign_OImageControl_get_implementation">
|
||||
<service name="com.sun.star.report.ImageControl"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OReportDefinition">
|
||||
<implementation name="com.sun.star.comp.report.OReportDefinition"
|
||||
constructor="reportdesign_OReportDefinition_get_implementation">
|
||||
<service name="com.sun.star.report.ReportDefinition"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.OReportEngineJFree">
|
||||
<implementation name="com.sun.star.comp.report.OReportEngineJFree"
|
||||
constructor="reportdesign_OReportEngineJFree_get_implementation">
|
||||
<service name="com.sun.star.report.ReportEngine"/>
|
||||
</implementation>
|
||||
<implementation name="com.sun.star.comp.report.Shape">
|
||||
<implementation name="com.sun.star.comp.report.Shape"
|
||||
constructor="reportdesign_OShape_get_implementation">
|
||||
<service name="com.sun.star.report.Shape"/>
|
||||
</implementation>
|
||||
</component>
|
||||
|
|
Loading…
Reference in a new issue