]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macro.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_macro.h
index 036152a984172e505bb5d4ed165ff02fb7c5b5ad..ee8059c03dc7d6409ec93883d656b4de651e309c 100644 (file)
@@ -1,8 +1,8 @@
 // -*- C++ -*-
 /*
  *  File:        math_macro.h
- *  Purpose:     Declaration of macro class for mathed 
- *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx> 
+ *  Purpose:     Declaration of macro class for mathed
+ *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
  *  Created:     November 1996
  *  Description: WYSIWYG math macros
  *
@@ -51,9 +51,7 @@ public:
        void dump() const;
 
        ///
-       bool idxUp(idx_type &, pos_type &) const;
-       ///
-       bool idxDown(idx_type &, pos_type &) const;
+       bool idxUpDown(idx_type &, bool up) const;
        ///
        bool idxLeft(idx_type &, pos_type &) const;
        ///
@@ -63,6 +61,8 @@ public:
        void validate(LaTeXFeatures &) const;
        ///
        bool isMacro() const { return true; }
+       ///
+       bool match(MathInset *) const { return false; }
 
        ///
        void normalize(NormalStream &) const;
@@ -81,9 +81,11 @@ private:
        ///
        char const * name() const;
        ///
-       bool editing() const;
-       ///
        bool defining() const;
+       ///
+       void updateExpansion() const;
+       ///
+       void expand() const;
 
        ///
        MathAtom & tmplate_;
@@ -91,6 +93,8 @@ private:
        mutable MathXArray expanded_;
        ///
        mutable MathMetricsInfo mi_;
+       ///
+       mutable LyXFont font_;
 };