]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_nestinset.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_nestinset.h
index 755198a8477e45ee5d13ad07c3464653a288cb53..78175a75068e14160d285c3cc7d5781cb6c7bb6e 100644 (file)
 class LaTeXFeatures;
 
 class MathNestInset : public MathDimInset {
-public: 
+public:
        /// nestinsets have a fixed size to start with
        explicit MathNestInset(idx_type ncells);
 
        /// the size is usuall some sort of convex hull of the cells
        void metrics(MathMetricsInfo const & st) const;
-       /// draw the object, sets xo_ and yo_ cached values 
-       void draw(Painter &, int x, int y) const;
        /// appends itself with macro arguments substituted
-       void substitute(MathMacro const & macro); 
+       void substitute(MathMacro const & macro);
        /// identifies NestInsets
        MathNestInset * asNestInset() { return this; }
 
@@ -60,21 +58,23 @@ public:
        MathXArray & xcell(idx_type);
        /// direct access to the cell including the drawing cache
        MathXArray const & xcell(idx_type) const;
-                       
+
        /// can we move into this cell (see macroarg.h)
        bool isActive() const { return nargs() > 0; }
        /// request "external features"
        void validate(LaTeXFeatures & features) const;
-       /// do we cover the point (x,y)?
-       bool covers(int x, int y) const;
 
        /// match in all cells
        bool match(MathInset *) const;
        /// replace in all cells
        void replace(ReplaceData &);
+       /// do we contain a given pattern?
+       bool contains(MathArray const &);
 
        /// debug helper
        void dump() const;
+       ///
+       virtual bool editing() const;
 
 protected:
        /// we store the cells in a vector