]> git.lyx.org Git - features.git/blobdiff - src/mathed/formula.h
new painter,workarea and lcolor. Read the diff/sources and ChangeLog...
[features.git] / src / mathed / formula.h
index 1205e2ced3a52826a480552313f9bb183f9fcb40..491616ed997c4eb885d08ca1dbbe84d3dba7a805 100644 (file)
@@ -36,6 +36,16 @@ public:
        InsetFormula(MathParInset *);
        ///
        ~InsetFormula();
+#ifdef USE_PAINTER
+       ///
+       int ascent(Painter &, LyXFont const &) const;
+       ///
+       int descent(Painter &, LyXFont const &) const;
+       ///
+       int width(Painter &, LyXFont const &) const;
+       ///
+       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+#else
        ///
        int Ascent(LyXFont const & font) const;
        ///
@@ -44,6 +54,7 @@ public:
        int Width(LyXFont const & font) const;
        ///
        void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
+#endif
        ///
        void Write(ostream &);
        ///