From 2d508dcc9d6e9d589af32a76468ef3247f8c6674 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 22 Nov 2017 22:04:58 +0530 Subject: [PATCH] Use SfxModalDialog class as Hyperlink dialog's base Change-Id: I1f592fdb5825896ad8fbe55c182936ed4ed98efc --- cui/source/dialogs/iconcdlg.cxx | 2 +- cui/source/inc/iconcdlg.hxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 245a203e0c48..41475c00233b 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -147,7 +147,7 @@ VCL_BUILDER_FACTORY_ARGS(SvtIconChoiceCtrl, IconChoiceDialog::IconChoiceDialog ( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription ) -: ModalDialog ( pParent, rID, rUIXMLDescription ), +: SfxModalDialog ( pParent, rID, rUIXMLDescription ), mnCurrentPageId ( USHRT_MAX ), pSet ( nullptr ), diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index 2c82ead2534c..c5df3f09c70d 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -28,6 +28,7 @@ #include #include #include +#include #include // forward-declarations @@ -92,7 +93,7 @@ public: void DataChanged( const DataChangedEvent& rDCEvt ) override; }; -class IconChoiceDialog : public ModalDialog +class IconChoiceDialog : public SfxModalDialog { private: friend class IconChoicePage;