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; }
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"
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