]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_inset.C
index f13b3124b890e31799327603ab3f83086832f2e8..7b1b8cfba162b1dcdcf732f8e718d3f4ac20d679 100644 (file)
@@ -78,6 +78,15 @@ MathArray const & MathInset::cell(idx_type) const
 }
 
 
+MathInset::idx_type MathInset::index(row_type row, col_type col) const
+{
+       if (row != 0)
+               lyxerr << "illegal row: " << row << "\n";
+       if (col != 0)
+               lyxerr << "illegal col: " << col << "\n";
+       return 0;
+}
+
 void MathInset::substitute(MathMacro const &)
 {}
 
@@ -106,13 +115,13 @@ bool MathInset::idxLeft(idx_type &, pos_type &) const
 }
 
 
-bool MathInset::idxUp(idx_type &, pos_type &) const
+bool MathInset::idxUp(idx_type &) const
 {
        return false;
 }
 
 
-bool MathInset::idxDown(idx_type &, pos_type &) const
+bool MathInset::idxDown(idx_type &) const
 {
        return false;
 }
@@ -124,36 +133,12 @@ bool MathInset::idxFirst(idx_type &, pos_type &) const
 }
 
 
-bool MathInset::idxFirstUp(idx_type &, pos_type &) const
-{
-       return false;
-}
-
-
-bool MathInset::idxFirstDown(idx_type &, pos_type &) const
-{
-       return false;
-}
-
-
 bool MathInset::idxLast(idx_type &, pos_type &) const
 {
        return false;
 }
 
 
-bool MathInset::idxLastUp(idx_type &, pos_type &) const
-{
-       return false;
-}
-
-
-bool MathInset::idxLastDown(idx_type &, pos_type &) const
-{
-       return false;
-}
-
-
 bool MathInset::idxHome(idx_type &, pos_type &) const
 {
        return false;