X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_fontinset.h;h=5174823b0435ab38c55385dbb159f797a1cb69bf;hb=1ecc7b79cdf95de50f2683fb7a8f983b5dcdf0d2;hp=48791027acd28c7d234e4e36d077bc0ffe9838f4;hpb=99d1627a471b92f403598d03dfc861ddc3c11be0;p=lyx.git diff --git a/src/mathed/math_fontinset.h b/src/mathed/math_fontinset.h index 48791027ac..5174823b04 100644 --- a/src/mathed/math_fontinset.h +++ b/src/mathed/math_fontinset.h @@ -1,24 +1,29 @@ // -*- C++ -*- +/** + * \file math_fontinset.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + #ifndef MATH_FONTINSET_H #define MATH_FONTINSET_H #include "math_nestinset.h" -/** Inset for font changes - * \author André Pönitz - * - * Full author contact details are available in file CREDITS - */ - class latexkeys; +/// Inset for font changes class MathFontInset : public MathNestInset { public: /// explicit MathFontInset(latexkeys const * key); /// - MathInset * clone() const; + virtual std::auto_ptr clone() const; /// MathFontInset * asFontInset() { return this; } /// @@ -26,13 +31,13 @@ public: /// are we in math mode, text mode, or unsure? mode_type currentMode() const; /// - string name() const; + std::string name() const; /// - void metrics(MathMetricsInfo & mi) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// - void draw(MathPainterInfo & pi, int x, int y) const; + void draw(PainterInfo & pi, int x, int y) const; /// - void metricsT(TextMetricsInfo const & mi) const; + void metricsT(TextMetricsInfo const & mi, Dimension & dim) const; /// void drawT(TextPainter & pi, int x, int y) const; ///