vcl/jsdialog/enabled.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit a8a4a2f20a90e9c34ed85de9c9a55d87936d76c2 Author: Szymon Kłos <[email protected]> AuthorDate: Mon Mar 17 17:08:07 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Mar 18 16:33:39 2025 +0100 jsdialog: enable math dialogs Accessible using sidebar property panel when in formula editing. Dialogs are not async yet. Signed-off-by: Szymon Kłos <[email protected]> Change-Id: Ia2f7792c2f8ec8aeb2d0c5c46acc6af87a6340f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183037 Tested-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index 912dcd2419af..af4dcca8d92a 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -290,6 +290,15 @@ constexpr auto SchartDialogList { u"modules/schart/ui/wizelementspage.ui" } }); +constexpr auto SmathDialogList + = frozen::make_unordered_set<std::u16string_view>({ + // smath + { u"modules/smath/ui/alignmentdialog.ui" }, + { u"modules/smath/ui/fontsizedialog.ui" }, + { u"modules/smath/ui/fonttypedialog.ui" }, + { u"modules/smath/ui/spacingdialog.ui" }, + }); + constexpr auto OtherDialogList = frozen::make_unordered_set<std::u16string_view>({ // formula @@ -526,6 +535,9 @@ bool isBuilderEnabled(std::u16string_view rUIFile, bool bMobile) if (isInMap(SchartDialogList, rUIFile)) return true; + if (isInMap(SmathDialogList, rUIFile)) + return true; + if (isInMap(OtherDialogList, rUIFile)) return true;
