]> git.lyx.org Git - features.git/commitdiff
more glue code to re-enable the old MathDelimInset interface (constructor
authorAndré Pönitz <poenitz@gmx.net>
Thu, 9 Aug 2001 15:32:34 +0000 (15:32 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 9 Aug 2001 15:32:34 +0000 (15:32 +0000)
with two int parameters)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2468 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_deliminset.C
src/mathed/math_deliminset.h
src/mathed/symbol_def.h

index f5cbc7b2f495c03a3b46f33d70b70e00d6dbb681..6e1134f19a52be48cae9d4d12f219edb5309963c 100644 (file)
@@ -14,6 +14,20 @@ MathDelimInset::MathDelimInset(latexkeys const * l, latexkeys const * r)
 {}
 
 
+MathDelimInset::MathDelimInset(int l, int r)
+       : MathNestInset(1)
+{
+       string ls;
+       ls += l;
+       left_ = in_word_set(ls);
+
+       string rs;
+       rs += r;
+       right_ = in_word_set(rs);
+}
+
+
+
 MathInset * MathDelimInset::clone() const
 {   
        return new MathDelimInset(*this);
index 17f6c58494c2486991c048d30d01863576eba4ca..e9a7a01b08ba6226ae95d4a012ad6eb1e0f4e5b2 100644 (file)
@@ -22,7 +22,7 @@ public:
 
 #warning Remove this ass soon the Math panel patch is applied
        ///
-       MathDelimInset(int, int) : MathNestInset(2) {}
+       MathDelimInset(int, int);
 
        ///
        MathInset * clone() const;
index 1a92c4fc4ce1261212e57135fab6e3ca8e4aade0..be804785a491e6f40d074615e6fcd47748a158d5 100644 (file)
@@ -7,6 +7,7 @@
 
 enum Math_Symbols_enum {
 // Accents
+       LM_backslash      = '\\',
        LM_acute          = '\'',
        LM_grave          =  '`',
        LM_hat            = '^',