summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-09-17 19:52:47 +0300
committerخالد حسني <khaled@libreoffice.org>2023-09-18 08:09:00 +0200
commit2cedcebc15f7199c8a3c16bb3f25c7a422770ecc (patch)
treecbaa7c875106bc2f819bb2695bff822b210b7824
parent49a3e606856167f4e9c3a80e89900bf7c29c8423 (diff)
tdf#111705: Add the new maj and hadd operators to the elements panel
Change-Id: Ib62592d86a1bf2e5d94348fca731473dba92be74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156996 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
-rw-r--r--starmath/inc/strings.hrc8
-rw-r--r--starmath/inc/strings.hxx8
-rw-r--r--starmath/source/ElementsDockingWindow.cxx10
3 files changed, 26 insertions, 0 deletions
diff --git a/starmath/inc/strings.hrc b/starmath/inc/strings.hrc
index 015c7e7c453a..b6eeff196633 100644
--- a/starmath/inc/strings.hrc
+++ b/starmath/inc/strings.hrc
@@ -119,6 +119,10 @@
#define RID_SUM_FROMX_HELP NC_("RID_SUM_FROMX_HELP", "Sum Subscript Bottom" )
#define RID_SUM_TOX_HELP NC_("RID_SUM_TOX_HELP", "Sum Superscript Top" )
#define RID_SUM_FROMTOX_HELP NC_("RID_SUM_FROMTOX_HELP", "Sum Sup/Sub script" )
+#define RID_MAJX_HELP NC_("RID_MAJX_HELP", "Summation (Arabic)" )
+#define RID_MAJ_FROMX_HELP NC_("RID_MAJ_FROMX_HELP", "Summation Subscript Bottom (Arabic)" )
+#define RID_MAJ_TOX_HELP NC_("RID_MAJ_TOX_HELP", "Summation Superscript Top (Arabic)" )
+#define RID_MAJ_FROMTOX_HELP NC_("RID_MAJ_FROMTOX_HELP", "Summation Sup/Sub script (Arabic)" )
#define RID_PRODX_HELP NC_("RID_PRODX_HELP", "Product" )
#define RID_PROD_FROMX_HELP NC_("RID_PROD_FROMX_HELP", "Product Subscript Bottom" )
#define RID_PROD_TOX_HELP NC_("RID_PROD_TOX_HELP", "Product Superscript Top" )
@@ -139,6 +143,10 @@
#define RID_LIMSUP_FROMX_HELP NC_("RID_LIMSUP_FROMX_HELP", "Limit Superior Subscript Bottom" )
#define RID_LIMSUP_TOX_HELP NC_("RID_LIMSUP_TOX_HELP", "Limit Superior Superscript Top" )
#define RID_LIMSUP_FROMTOX_HELP NC_("RID_LIMSUP_FROMTOX_HELP", "Limit Superior Sup/Sub script" )
+#define RID_HADDX_HELP NC_("RID_HADDX_HELP", "Limits (Persian)" )
+#define RID_HADD_FROMX_HELP NC_("RID_HADD_FROMX_HELP", "Limits Subscript Bottom (Persian)" )
+#define RID_HADD_TOX_HELP NC_("RID_HADD_TOX_HELP", "Limits Superscript Top (Persian)" )
+#define RID_HADD_FROMTOX_HELP NC_("RID_HADD_FROMTOX_HELP", "Limits Sup/Sub script (Persian)" )
#define RID_EXISTS_HELP NC_("RID_EXISTS_HELP", "There Exists" )
#define RID_NOTEXISTS_HELP NC_("RID_NOTEXISTS_HELP", "There does not exist" )
#define RID_FORALL_HELP NC_("RID_FORALL_HELP", "For all" )
diff --git a/starmath/inc/strings.hxx b/starmath/inc/strings.hxx
index e22625155ff2..4be4f1d144f5 100644
--- a/starmath/inc/strings.hxx
+++ b/starmath/inc/strings.hxx
@@ -110,6 +110,10 @@ inline constexpr OUStringLiteral RID_UNDOFORMATNAME = u"Format";
#define RID_SUM_FROMX "sum from{<?>} <?> "
#define RID_SUM_TOX "sum to{<?>} <?> "
#define RID_SUM_FROMTOX "sum from{<?>} to{<?>} <?> "
+#define RID_MAJX "maj <?> "
+#define RID_MAJ_FROMX "maj from{<?>} <?> "
+#define RID_MAJ_TOX "maj to{<?>} <?> "
+#define RID_MAJ_FROMTOX "maj from{<?>} to{<?>} <?> "
#define RID_PRODX "prod <?> "
#define RID_PROD_FROMX "prod from{<?>} <?> "
#define RID_PROD_TOX "prod to{<?>} <?> "
@@ -130,6 +134,10 @@ inline constexpr OUStringLiteral RID_UNDOFORMATNAME = u"Format";
#define RID_LIMSUP_FROMX "limsup from{<?>} <?> "
#define RID_LIMSUP_TOX "limsup to{<?>} <?> "
#define RID_LIMSUP_FROMTOX "limsup from{<?>} to{<?>} <?> "
+#define RID_HADDX "hadd <?> "
+#define RID_HADD_FROMX "hadd from{<?>} <?> "
+#define RID_HADD_TOX "hadd to{<?>} <?> "
+#define RID_HADD_FROMTOX "hadd from{<?>} to{<?>} <?> "
#define RID_EXISTS "exists "
#define RID_NOTEXISTS "notexists "
#define RID_FORALL "forall "
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index d1feabd921a9..149211950444 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -197,11 +197,21 @@ const SmElementDescr s_a5OperatorsList[] =
{RID_LIMSUP_TOX, RID_LIMSUP_TOX_HELP, {}, {}},
{RID_LIMSUP_FROMTOX, RID_LIMSUP_FROMTOX_HELP, {}, {}},
{},
+ {RID_HADDX, RID_HADDX_HELP, {}, {}},
+ {RID_HADD_FROMX, RID_HADD_FROMX_HELP, {}, {}},
+ {RID_HADD_TOX, RID_HADD_TOX_HELP, {}, {}},
+ {RID_HADD_FROMTOX, RID_HADD_FROMTOX_HELP, {}, {}},
+ {},
{RID_SUMX, RID_SUMX_HELP, {}, {}},
{RID_SUM_FROMX, RID_SUM_FROMX_HELP, {}, {}},
{RID_SUM_TOX, RID_SUM_TOX_HELP, {}, {}},
{RID_SUM_FROMTOX, RID_SUM_FROMTOX_HELP, {}, {}},
{},
+ {RID_MAJX, RID_MAJX_HELP, {}, {}},
+ {RID_MAJ_FROMX, RID_MAJ_FROMX_HELP, {}, {}},
+ {RID_MAJ_TOX, RID_MAJ_TOX_HELP, {}, {}},
+ {RID_MAJ_FROMTOX, RID_MAJ_FROMTOX_HELP, {}, {}},
+ {},
{RID_PRODX, RID_PRODX_HELP, {}, {}},
{RID_PROD_FROMX, RID_PROD_FROMX_HELP, {}, {}},
{RID_PROD_TOX, RID_PROD_TOX_HELP, {}, {}},