diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-07-25 12:12:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-25 16:29:02 +0200 |
commit | 79c1d1234bdac0d41109930529f42d39c70b0f7b (patch) | |
tree | 9c0472b3dfb3e042cafc8a1329d2a64dbf5c2c9b /reportdesign/source/core/api/FixedLine.cxx | |
parent | 0e1ea352a0b9063aa0b467c6ae279d0b9da51ab4 (diff) |
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>
Diffstat (limited to 'reportdesign/source/core/api/FixedLine.cxx')
-rw-r--r-- | reportdesign/source/core/api/FixedLine.cxx | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx index b868febe7cdc..984bf7d26305 100644 --- a/reportdesign/source/core/api/FixedLine.cxx +++ b/reportdesign/source/core/api/FixedLine.cxx @@ -199,33 +199,14 @@ void SAL_CALL OFixedLine::dispose() cppu::WeakComponentImplHelperBase::dispose(); } -OUString OFixedLine::getImplementationName_Static( ) -{ - 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)); + return "com.sun.star.comp.report.OFixedLine"; } - 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: */ |