diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-14 12:45:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-14 20:25:08 +0200 |
commit | b4f1f2dc427cad5829911de01e00a4c7d4e7dd50 (patch) | |
tree | 5104ae2fea040fe49e1ce3c94489937b30e029e1 /scripting/source/dlgprov/DialogModelProvider.cxx | |
parent | fb6a74e850a402ceaee7c26dce1ffc48c0798ede (diff) |
scripting/dlgprov: create instances with uno constructors
See tdf#74608 for motivation.
Change-Id: Ia135b0696a52dd414b5187f33195e8b86d552c2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98741
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/dlgprov/DialogModelProvider.cxx')
-rw-r--r-- | scripting/source/dlgprov/DialogModelProvider.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripting/source/dlgprov/DialogModelProvider.cxx b/scripting/source/dlgprov/DialogModelProvider.cxx index 5f9e4e15a032..e49ed058d475 100644 --- a/scripting/source/dlgprov/DialogModelProvider.cxx +++ b/scripting/source/dlgprov/DialogModelProvider.cxx @@ -141,7 +141,7 @@ void SAL_CALL DialogModelProvider::removeVetoableChangeListener( const OUString& // com.sun.star.uno.XServiceInfo: OUString SAL_CALL DialogModelProvider::getImplementationName() { - return comp_DialogModelProvider::_getImplementationName(); + return "com.sun.star.comp.scripting.DialogModelProvider"; } sal_Bool SAL_CALL DialogModelProvider::supportsService(OUString const & serviceName) @@ -151,9 +151,16 @@ sal_Bool SAL_CALL DialogModelProvider::supportsService(OUString const & serviceN css::uno::Sequence< OUString > SAL_CALL DialogModelProvider::getSupportedServiceNames() { - return comp_DialogModelProvider::_getSupportedServiceNames(); + return { "com.sun.star.awt.UnoControlDialogModelProvider" }; } } // closing anonymous implementation namespace +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* +scripting_DialogModelProvider_get_implementation( + css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&) +{ + return cppu::acquire(new dlgprov::DialogModelProvider(context)); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |