]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / formulabase.h
index 399811b963bb6deeb61b03f77eca9c1c11466e1a..2699af0ffa2dc2f6eb519f6389b6410f51cc5acd 100644 (file)
@@ -14,7 +14,7 @@
 #define INSET_FORMULABASE_H
 
 #include "insets/updatableinset.h"
-#include "lyxfont.h"
+#include "dimension.h"
 
 #include <boost/weak_ptr.hpp>
 #include <iosfwd>
@@ -29,12 +29,6 @@ class InsetFormulaBase : public UpdatableInset {
 public:
        ///
        InsetFormulaBase();
-       ///
-       Inset * clone(Buffer const &) const = 0;
-       ///
-       //Inset * clone(Buffer const &, bool same_id) const = 0;
-       ///
-       virtual void draw(BufferView *,LyXFont const &, int, float &) const = 0;
        /// lowest x coordinate
        virtual int xlow() const;
        /// highest x coordinate
@@ -50,7 +44,7 @@ public:
        // user-accessible way to override "false positives"
        virtual void validate(LaTeXFeatures &) const;
        ///
-       virtual Inset::Code lyxCode() const;
+       virtual InsetOld::Code lyxCode() const;
        /// what appears in the minibuffer when opening
        virtual string const editMessage() const;
        ///
@@ -69,8 +63,6 @@ public:
        /// To allow transparent use of math editing functions
        //virtual void status(FuncRequest const &);
 
-       ///
-       virtual std::vector<string> const getLabelList() const;
        ///
        virtual MathAtom const & par() const = 0;
        ///
@@ -112,15 +104,10 @@ private:
 
 protected:
        ///
-       mutable boost::weak_ptr<BufferView> view_;
-       ///
-       mutable LyXFont font_;
+       //mutable boost::weak_ptr<BufferView> view_;
+       mutable BufferView * view_;
 
 protected:
-       ///
-       void metrics(BufferView * bv, LyXFont const & font) const;
-       ///
-       void metrics(BufferView * bv = 0) const;
        ///
        void handleFont(BufferView * bv, string const & arg, string const & font);