]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / formula.h
index 1b1d66834ad2892e8804a69f586312ad6eee9cfc..fd9c7550bef78ccc1e601f95ea8ba270d9cde67f 100644 (file)
@@ -1,34 +1,27 @@
 // -*- 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.
+
+/**
+ *  \file formula.h
  *
- *  Copyright: 1996, Alejandro Aguilar Sierra
+ *  This file is part of LyX, the document processor.
+ *  Licence details can be found in the file COPYING.
  *
- *  Version: 0.4, Lyx project.
+ *  \author Alejandro Aguilar Sierra
+ *  \author André Pönitz
  *
- *   You are free to use and modify this code under the terms of
- *   the GNU General Public Licence version 2 or later.
+ *  Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_FORMULA_H
 #define INSET_FORMULA_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "formulabase.h"
 #include "math_atom.h"
 
 #include <boost/scoped_ptr.hpp>
 
-class MathHullInset;
-
-///
+/// The main LyX math inset
 class InsetFormula : public InsetFormulaBase {
 public:
        ///
@@ -72,12 +65,8 @@ public:
        ///
        bool insetAllowed(Inset::Code code) const;
        ///
-       virtual RESULT localDispatch(BufferView *, FuncRequest const &);
-       ///
        std::vector<string> const getLabelList() const;
        ///
-       string hullType() const;
-       ///
        MathAtom const & par() const { return par_; }
        ///
        MathAtom & par() { return par_; }
@@ -86,17 +75,11 @@ public:
        ///
        void addPreview(grfx::PreviewLoader &) const;
        ///
-       void mutate(string const & type);
+       //void mutate(string const & type);
 
 private:
-       /// Is this a displayed environment?
-       bool display() const;
        /// available in AMS only?
        bool ams() const;
-       /// access to hull
-       MathHullInset * hull() const;
-       ///
-       void handleExtern(string const & arg);
 
        /// contents
        MathAtom par_;