diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 08:57:54 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 09:46:35 +0200 |
commit | d7c8b4adb334d6dbab4fd35b885b6b6b4bb83151 (patch) | |
tree | 32fb88e3a503ddcfb9612d3743602eb70b1f6528 /starmath | |
parent | f961cf50a7bcdcb173aa835db7bd891841947c31 (diff) |
Resolves: fdo#71616 Elements dock: Better display of scalable braces
Change-Id: I2255be738aa2230b4102030891026f1f9ad2c38f
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 04f01ab64752..7d8a8efc579f 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -516,6 +516,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)); } |