]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
mathed108.diff
[lyx.git] / src / mathed / math_inset.C
index 7a0f9cece9cd5cbc756e62a5f212400a99001a1b..b5980fc019530eeea4bbb7a63ff6fdc26233793b 100644 (file)
@@ -170,7 +170,7 @@ void MathInset::substitute(MathArray & array, MathMacro const & m) const
        array.push_back(p);
 }
 
-void MathInset::Metrics(MathStyles st, int, int)
+void MathInset::Metrics(MathStyles st)
 {
        size_ = st;
        for (int i = 0; i < nargs(); ++i)
@@ -284,6 +284,9 @@ void MathInset::idxDelete(int &, bool & popit, bool & deleteit)
        deleteit = false;
 }
 
+void MathInset::idxDeleteRange(int, int)
+{}
+
 
 bool MathInset::idxLastUp(int &, int &) const
 {
@@ -363,3 +366,11 @@ void MathInset::Validate(LaTeXFeatures & features) const
        for (int i = 0; i < nargs(); ++i)
                cell(i).Validate(features);
 }
+
+std::vector<int> MathInset::idxBetween(int from, int to) const
+{
+       std::vector<int> res;
+       for (int i = from; i <= to; ++i)
+               res.push_back(i);
+       return res;
+}