From: André Pönitz Date: Thu, 9 Aug 2001 15:32:34 +0000 (+0000) Subject: more glue code to re-enable the old MathDelimInset interface (constructor X-Git-Tag: 1.6.10~20877 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=14499f5ac1d804e1fe2d2f1cc7deeba99c60bd8f;p=features.git more glue code to re-enable the old MathDelimInset interface (constructor with two int parameters) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2468 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_deliminset.C b/src/mathed/math_deliminset.C index f5cbc7b2f4..6e1134f19a 100644 --- a/src/mathed/math_deliminset.C +++ b/src/mathed/math_deliminset.C @@ -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); diff --git a/src/mathed/math_deliminset.h b/src/mathed/math_deliminset.h index 17f6c58494..e9a7a01b08 100644 --- a/src/mathed/math_deliminset.h +++ b/src/mathed/math_deliminset.h @@ -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; diff --git a/src/mathed/symbol_def.h b/src/mathed/symbol_def.h index 1a92c4fc4c..be804785a4 100644 --- a/src/mathed/symbol_def.h +++ b/src/mathed/symbol_def.h @@ -7,6 +7,7 @@ enum Math_Symbols_enum { // Accents + LM_backslash = '\\', LM_acute = '\'', LM_grave = '`', LM_hat = '^',