summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-11-06 14:45:39 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-11-06 18:29:06 +0100
commit35925357f86e01612df28a092d71b6e216195636 (patch)
tree7086eab6098145a29d55fde5a32579871c2ac234 /vcl
parent55a0fba06086436260aca1f7367da376683afdaa (diff)
sw floattable: make Insert Frame dialog async and mark it as a jsdialog
- with this, once a LOK client dispatches .uno:InsertFrame, we don't open two dialogs (one tunelled, one jsdialog) - all the tabpages were already allowed as jsdialogs, the tabpages don't open any unwanted file picker (hyperlink browse button, area -> image -> import button) - switching to async means we can't work with the original SfxRequest (which is no longer there by the time the callback is invoked), but 057eca05f23d9d15465e591bd0da671735d62d50 (sc: convert optimal width/height and normal width/height dialog to async, 2022-04-12) shows we can re-create the SfxRequest after the fact, do the same here - similar problem with SwFlyFrameAttrMgr, but looks like the SwFlyFrameAttrMgr before launching the dialog doesn't share state with the SwFlyFrameAttrMgr after the dialog is gone, so work with two instances here Change-Id: I97aad336b613d105f380012f8c79e92d89c583ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158978 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/jsdialog/enabled.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx
index 14627b3a6424..993a6f45685e 100644
--- a/vcl/jsdialog/enabled.cxx
+++ b/vcl/jsdialog/enabled.cxx
@@ -184,6 +184,7 @@ bool isBuilderEnabled(std::u16string_view rUIFile, bool bMobile)
|| rUIFile == u"modules/swriter/ui/footnotesendnotestabpage.ui"
|| rUIFile == u"modules/swriter/ui/formatsectiondialog.ui"
|| rUIFile == u"modules/swriter/ui/formattablepage.ui"
+ || rUIFile == u"modules/swriter/ui/framedialog.ui"
|| rUIFile == u"modules/swriter/ui/frmaddpage.ui"
|| rUIFile == u"modules/swriter/ui/frmurlpage.ui"
|| rUIFile == u"modules/swriter/ui/frmtypepage.ui"