]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulamacro.h
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / formulamacro.h
index 05ab42ed21a6ecadeb8b4cbed0baa089f72a0c3b..8ad88e40019b5141f0133eea8c9f8071b5e60dba 100644 (file)
@@ -1,17 +1,15 @@
 // -*- C++ -*-
+
 /*
- *  File:        formula.h
- *  Purpose:     Declaration of formula inset
- *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
- *  Created:     January 1996
- *  Description: Allows the edition of math paragraphs inside Lyx.
+ *  Main LyX Inset for defining math macros
  *
- *  Copyright: 1996, Alejandro Aguilar Sierra
+ *  \author Alejandro Aguilar Sierra
+ *  \author André Pönitz
  *
- *  Version: 0.4, Lyx project.
+ *  Full author contact details are available in file CREDITS
  *
- *   You are free to use and modify this code under the terms of
- *   the GNU General Public Licence version 2 or later.
+ *  You are free to use and modify this code under the terms of
+ *  the GNU General Public Licence version 2 or later.
  */
 
 #ifndef INSET_FORMULA_MACRO_H
 
 #include "formulabase.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 class MathMacroTemplate;
 
-// InsetFormulaMacro's only knows its name and asks the global
+// An InsetFormulaMacro only knows its name and asks the global
 // MathMacroTable if it needs to know more.
 
 ///
-class InsetFormulaMacro: public InsetFormulaBase {
+class InsetFormulaMacro : public InsetFormulaBase {
 public:
        ///
        InsetFormulaMacro();
@@ -44,7 +39,7 @@ public:
        ///
        int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
+       void draw(BufferView *, LyXFont const &, int, float &) const;
 
        ///
        void read(Buffer const *, LyXLex & lex);
@@ -64,12 +59,12 @@ public:
        ///
        Inset::Code lyxCode() const;
        ///
-       MathInsetTypes getType() const;
-       ///
        MathAtom const & par() const;
        ///
        MathAtom & par();
 private:
+       ///
+       void read(std::istream & is);
        /// prefix in inset
        string prefix() const;
 };