#include <iosfwd>
#include "insets/inset.h"
+// only for getType():
+#include "math_defs.h"
+
class Buffer;
class BufferView;
class MathInset;
///
class InsetFormulaBase : public UpdatableInset {
public:
- ///
- InsetFormulaBase(InsetFormulaBase const & p);
///
- explicit InsetFormulaBase(MathInset *);
- ///
- virtual ~InsetFormulaBase();
+ InsetFormulaBase();
///
virtual int ascent(BufferView *, LyXFont const &) const = 0;
///
virtual int linuxdoc(Buffer const *, std::ostream &) const;
///
virtual int docBook(Buffer const *, std::ostream &) const;
+ ///
+ virtual MathInsetTypes getType() const = 0;
protected:
/// the actual functions don't use the Buffer * parameter
virtual Inset * clone(Buffer const &, bool same_id = false) const = 0;
///
virtual Inset::Code lyxCode() const;
- ///
- virtual LyXFont const convertFont(LyXFont const & f) const;
/// what appears in the minibuffer when opening
virtual string const editMessage() const;
///
///
virtual std::vector<string> const getLabelList() const;
///
- MathInset * par() const;
+ virtual MathInset const * par() const = 0;
///
- virtual void metrics() const;
+ virtual void metrics() const = 0;
protected:
///
virtual void updateLocal(BufferView * bv, bool mark_dirty);
-
- ///
- MathInset * par_;
+private:
+ /// unimplemented
+ void operator=(const InsetFormulaBase &);
};
// We don't really mess want around with mathed stuff outside mathed.