#define MATH_MACRO_H
#include "InsetMathNest.h"
-#include "MathArray.h"
+#include "MathData.h"
#include "InsetMathNest.h"
-#include "MathMacroTable.h"
+#include "MacroTable.h"
namespace lyx {
void cursorPos(BufferView const & bv, CursorSlice const & sl,
bool boundary, int & x, int & y) const;
///
- InsetBase * editXY(LCursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y);
/// target pos when we enter the inset from the left by pressing "Right"
- bool idxFirst(LCursor &) const;
+ bool idxFirst(Cursor &) const;
/// target pos when we enter the inset from the right by pressing "Left"
- bool idxLast(LCursor &) const;
+ bool idxLast(Cursor &) const;
///
- virtual bool notifyCursorLeaves(LCursor &);
+ virtual bool notifyCursorLeaves(Cursor &);
///
docstring name() const;
///
- void setExpansion(MathArray const & exp, MathArray const & args) const;
+ void setExpansion(MathData const & exp, MathData const & args) const;
///
void validate(LaTeXFeatures &) const;
void infoize2(odocstream &) const;
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual std::auto_ptr<Inset> doClone() const;
///
void updateExpansion() const;
///
/// name of macro
docstring name_;
/// the unexpanded macro defintition
- mutable MathArray tmpl_;
+ mutable MathData tmpl_;
/// the macro substituted with our args
- mutable MathArray expanded_;
+ mutable MathData expanded_;
};