#pragma interface
#endif
-#include "mathed/formulabase.h"
+#include "formulabase.h"
#include "math_defs.h"
+#include "math_atom.h"
-class MathMatrixInset;
+class MathHullInset;
///
class InsetFormula : public InsetFormulaBase {
///
InsetFormula();
///
- InsetFormula(InsetFormula const &);
- ///
explicit InsetFormula(MathInsetTypes);
///
explicit InsetFormula(string const &);
///
- ~InsetFormula();
- ///
- void operator=(InsetFormula const &);
- ///
int ascent(BufferView *, LyXFont const &) const;
///
int descent(BufferView *, LyXFont const &) const;
int width(BufferView *, LyXFont const &) const;
///
void draw(BufferView *, LyXFont const &, int, float &, bool) const;
- ///
- void metrics() const;
///
void write(Buffer const *, std::ostream &) const;
///
std::vector<string> const getLabelList() const;
///
- void handleExtern(string const & arg, BufferView * bv);
+ MathInsetTypes getType() const;
///
- MathInset const * par() const;
+ MathAtom const & par() const { return par_; }
///
+ MathAtom & par() { return par_; }
+
+private:
+ /// Is this a displayed environment?
bool display() const;
- ///
+ /// available in AMS only?
bool ams() const;
+ /// access to hull
+ MathHullInset * hull();
+ /// access to hull
+ MathHullInset const * hull() const;
///
- MathInsetTypes getType() const;
-private:
- /// Safe setting of contents
- void par(MathMatrixInset *);
+ void handleExtern(string const & arg);
+
///
- MathMatrixInset * par_;
+ MathAtom par_;
};
#endif