summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/dp_gui_dialog2.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-07-09 18:45:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-11 18:35:31 +0200
commit4c12a78b003bf0587be9edd96d538b7f5ee2a3f5 (patch)
tree1a64644f755cd41a69611050301ee77d93baf692 /desktop/source/deployment/gui/dp_gui_dialog2.hxx
parent92cccb9a7ead4a7f106db8c79e142013dd214441 (diff)
desktop/deployment: create instances with uno constructors
See tdf#74608 for motivation Change-Id: I11fe446e07e9a807c1267c4037922877d987003c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98472 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/gui/dp_gui_dialog2.hxx')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index b3d348c840f3..9777742e1b4b 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -35,6 +35,7 @@
#include <com/sun/star/deployment/XPackage.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
+#include <com/sun/star/lang/XServiceInfo.hpp>
namespace dp_gui {
@@ -242,13 +243,18 @@ public:
virtual ~ShowLicenseDialog() override;
};
-class UpdateRequiredDialogService : public ::cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog >
+class UpdateRequiredDialogService : public ::cppu::WeakImplHelper< css::ui::dialogs::XExecutableDialog, css::lang::XServiceInfo >
{
css::uno::Reference< css::uno::XComponentContext > const m_xComponentContext;
public:
UpdateRequiredDialogService( css::uno::Sequence< css::uno::Any > const & args,
css::uno::Reference< css::uno::XComponentContext> const & xComponentContext );
+ // XServiceInfo
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
+
// XExecutableDialog
virtual void SAL_CALL setTitle( OUString const & title ) override;
virtual sal_Int16 SAL_CALL execute() override;