vcl/jsdialog/enabled.cxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit f41d4d008b1c8adc938773e622a9bdd216486de6
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Mon Mar 17 17:08:07 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue May 6 20:54:42 2025 +0200

    jsdialog: enable math dialogs
    
    Accessible using sidebar property panel when
    in formula editing. Dialogs are not async yet.
    
    Signed-off-by: Szymon Kłos <szymon.k...@collabora.com>
    Change-Id: Ia2f7792c2f8ec8aeb2d0c5c46acc6af87a6340f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183037
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184995
    Tested-by: Jenkins

diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx
index 3eedda34e9b0..ad7c06d7ef80 100644
--- a/vcl/jsdialog/enabled.cxx
+++ b/vcl/jsdialog/enabled.cxx
@@ -291,6 +291,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
@@ -527,6 +536,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;
 

Reply via email to