summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-22 16:11:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-22 18:29:59 +0200
commit50c9ed67d29d6105f3907cb7a2fe3322685af53c (patch)
tree4b7c9ca57b748f833a07a184d5ae77c344178cd2 /sd/inc
parent27fb6f228271637070e0e0a69d7df503250d8bde (diff)
Resolves: tdf#118799 use spelling/search dialog as message dialog parent
when visible Change-Id: Id4d6df2a85aebd6887949f285e1a5ec1046dbf64 Reviewed-on: https://gerrit.libreoffice.org/59456 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/Outliner.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sd/inc/Outliner.hxx b/sd/inc/Outliner.hxx
index adbf0c31ab1a..0dfe8890ee00 100644
--- a/sd/inc/Outliner.hxx
+++ b/sd/inc/Outliner.hxx
@@ -519,12 +519,11 @@ private:
*/
virtual bool SpellNextDocument() override;
- /** Show the given message box and make it modal. It is assumed that
- the parent of the given dialog is NULL, i.e. the application
- window. This function makes sure that the otherwise non-modal
- search dialog, if visible, is locked, too.
+ /** Find the right parent to use for a message. This function makes sure
+ that the otherwise non-modal search or spell dialogs, if visible, are
+ locked, too.
*/
- sal_uInt16 ShowModalMessageBox(weld::MessageDialog& rMessageBox);
+ VclPtr<vcl::Window> GetMessageBoxParent();
};
#endif