summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-05-28 08:57:54 +0200
committerAndras Timar <andras.timar@collabora.com>2014-06-02 19:01:57 +0200
commit3435ecb8ec2d06509a22df20c6c61e5cd391826e (patch)
tree401109e31986097a2f5aa6d3d1ec30f49f6c51d9 /starmath
parent3abde35bea180277afaebdd64c4d5865acdf400c (diff)
Resolves: fdo#71616 Elements dock: Better display of scalable braces
Change-Id: I2255be738aa2230b4102030891026f1f9ad2c38f Reviewed-on: https://gerrit.libreoffice.org/9525 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ElementsDockingWindow.cxx27
1 files changed, 27 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 45672ddf7fac..aa49662475e4 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -508,6 +508,33 @@ void SmElementsControl::addElements(const sal_uInt16 aElementsArray[][2], sal_uI
addElement("\"" + SM_RESSTR(STR_ALIGN_CENTER) + "\"", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
else if (aElementId == RID_ALIGNRX)
addElement("\"" + SM_RESSTR(STR_ALIGN_RIGHT) + "\"", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+
+ else if (aElementId == RID_SLRPARENTX)
+ addElement("left ( binom{<?>}{<?>} right ) ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRBRACKETX)
+ addElement("left [ binom{<?>}{<?>} right ] ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRDBRACKETX)
+ addElement("left ldbracket binom{<?>}{<?>} right rdbracket ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRBRACEX)
+ addElement("left lbrace binom{<?>}{<?>} right rbrace ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRANGLEX)
+ addElement("left langle binom{<?>}{<?>} right rangle ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRCEILX)
+ addElement("left lceil binom{<?>}{<?>} right rceil ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRFLOORX)
+ addElement("left lfloor binom{<?>}{<?>} right rfloor ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+
+ else if (aElementId == RID_SLRLINEX)
+ addElement("left lline binom{<?>}{<?>} right rline ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLRDLINEX)
+ addElement("left ldline binom{<?>}{<?>} right rdline ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_SLMRANGLEXY)
+ addElement("left langle binom{<?>}{<?>} mline binom{<?>}{<?>} right rangle ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+
+ else if (aElementId == RID_XOVERBRACEY)
+ addElement("{<?><?><?>} overbrace {<?>} ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
+ else if (aElementId == RID_XUNDERBRACEY)
+ addElement("{<?><?><?>} underbrace {<?>} ", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
else
addElement(SM_RESSTR(aElementId), SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp));
}