]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.h
"fix" bug #3332 (plain text export depends on the menu language)
[lyx.git] / src / mathed / InsetMathNest.h
index 18ba304c9b7840eb12090e3d5a383b108ab241f8..41387136d69b4629cefa6625682e589c1fa3fcf6 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef MATH_NESTINSET_H
 #define MATH_NESTINSET_H
 
-#include "InsetMathDim.h"
+#include "InsetMath.h"
 
 
 namespace lyx {
@@ -23,7 +23,7 @@ namespace lyx {
     single symbol.
 */
 
-class InsetMathNest : public InsetMathDim {
+class InsetMathNest : public InsetMath {
 public:
        /// nestinsets have a fixed size to start with
        explicit InsetMathNest(idx_type ncells);
@@ -48,7 +48,7 @@ public:
        ///
        void edit(Cursor & cur, bool left);
        ///
-       InsetBase * editXY(Cursor & cur, int x, int y);
+       Inset * editXY(Cursor & cur, int x, int y);
 
        /// order of movement through the cells when pressing the left key
        bool idxLeft(Cursor &) const;
@@ -77,8 +77,8 @@ public:
        /// direct access to the cell.
        /// inlined because shows in profile.
        //@{
-       MathArray & cell(idx_type i) { return cells_[i]; }
-       MathArray const & cell(idx_type i) const { return cells_[i]; }
+       MathData & cell(idx_type i) { return cells_[i]; }
+       MathData const & cell(idx_type i) const { return cells_[i]; }
        //@}
 
        /// can we move into this cell (see macroarg.h)
@@ -89,9 +89,9 @@ public:
        /// replace in all cells
        void replace(ReplaceData &);
        /// do we contain a given pattern?
-       bool contains(MathArray const &) const;
+       bool contains(MathData const &) const;
        /// glue everything to a single cell
-       MathArray glue() const;
+       MathData glue() const;
 
        /// debug helper
        void dump() const;
@@ -141,7 +141,7 @@ private:
 
 protected:
        /// we store the cells in a vector
-       typedef std::vector<MathArray> cells_type;
+       typedef std::vector<MathData> cells_type;
        /// thusly:
        cells_type cells_;
        /// if the inset is locked, it can't be entered with the cursor