Author: forenr
Date: Sun Jun  6 02:42:33 2010
New Revision: 34604
URL: http://www.lyx.org/trac/changeset/34604

Log:
Add GUI support for big delimiters variants without 'l', 'm' or 'r' endings.
They differ from their cousins only for the space left around them.

Modified:
   lyx-devel/trunk/lib/symbols
   lyx-devel/trunk/src/mathed/InsetMathBig.cpp

Modified: lyx-devel/trunk/lib/symbols
==============================================================================
--- lyx-devel/trunk/lib/symbols Sat Jun  5 13:44:05 2010        (r34603)
+++ lyx-devel/trunk/lib/symbols Sun Jun  6 02:42:33 2010        (r34604)
@@ -51,15 +51,19 @@
 vdots             dots        none
 
 # big delimiters
+big               big         none
 bigl              big         none
 bigm              big         none
 bigr              big         none
+Big               big         none
 Bigl              big         none
 Bigm              big         none
 Bigr              big         none
+bigg              big         none
 biggl             big         none
 biggm             big         none
 biggr             big         none
+Bigg              big         none
 Biggl             big         none
 Biggm             big         none
 Biggr             big         none
@@ -67,8 +71,10 @@
 # packages. No 'm' versions!
 # See lucidabr.dtx for a possible implementation if you want to use these
 # with other fonts.
+biggg             big         none
 bigggl            big         none
 bigggr            big         none
+Biggg             big         none
 Bigggl            big         none
 Bigggr            big         none
 

Modified: lyx-devel/trunk/src/mathed/InsetMathBig.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathBig.cpp Sat Jun  5 13:44:05 2010        
(r34603)
+++ lyx-devel/trunk/src/mathed/InsetMathBig.cpp Sun Jun  6 02:42:33 2010        
(r34604)
@@ -47,9 +47,11 @@
 {
        // order: big Big bigg Bigg biggg Biggg
        //        0   1   2    3    4     5
+       char_type const c = name_[name_.size() - 1];
+       int const base_size = (c == 'l' || c == 'm' || c == 'r') ? 4 : 3;
        return name_[0] == 'B' ?
-               2 * (name_.size() - 4) + 1:
-               2 * (name_.size() - 4);
+               2 * (name_.size() - base_size) + 1:
+               2 * (name_.size() - base_size);
 }
 
 

Reply via email to