]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.C
several smallish changes/bugfixes/left overs from Porto
[lyx.git] / src / mathed / math_deliminset.C
index 6fa100606c48b3dfd7ab7329b0f30453cc5b2423..5882a0cd0528f135211911a929115ce9a5db1ae9 100644 (file)
 
 using std::max;
 
+namespace {
+
+string convertDelimToLatexName(string const & name)
+{
+       if (name == "(")
+               return name;
+       if (name == "[")
+               return name;
+       if (name == ".")
+               return name;
+       if (name == ")")
+               return name;
+       if (name == "]")
+               return name;
+       if (name == "/")
+               return name;
+       if (name == "|")
+               return name;
+       return "\\" + name + " ";
+}
+
+}
+
+
 
 MathDelimInset::MathDelimInset(string const & l, string const & r)
        : MathNestInset(1), left_(l), right_(r)
 {}
 
 
+MathDelimInset::MathDelimInset
+               (string const & l, string const & r, MathArray const & ar)
+       : MathNestInset(1), left_(l), right_(r)
+{
+       cell(0) = ar;
+}
+
+
 MathInset * MathDelimInset::clone() const
 {
        return new MathDelimInset(*this);