]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathFont.h
index a55c1f77b16ca7910ef503ea18c45e2529d62ee0..930e51293be4449040cad9170ad4762012756d6b 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -24,32 +24,44 @@ class latexkeys;
 class InsetMathFont : public InsetMathNest {
 public:
        ///
-       explicit InsetMathFont(latexkeys const * key);
+       explicit InsetMathFont(Buffer * buf, latexkeys const * key);
        ///
-       InsetMathFont * asFontInset() { return this; }
+       InsetMathFont * asFontInset() override { return this; }
        ///
-       InsetMathFont const * asFontInset() const { return this; }
+       InsetMathFont const * asFontInset() const override { return this; }
        /// are we in math mode, text mode, or unsure?
-       mode_type currentMode() const;
+       mode_type currentMode() const override;
+       /// do we allow changing mode during latex export?
+       bool lockedMode() const override;
        ///
-       docstring name() const;
+       void write(TeXMathStream & os) const override;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       docstring name() const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void drawT(TextPainter & pi, int x, int y) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void drawT(TextPainter & pi, int x, int y) const override;
        ///
-       void infoize(odocstream & os) const;
+       void validate(LaTeXFeatures & features) const override;
        ///
-       int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
+       void mathmlize(MathMLStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void infoize(odocstream & os) const override;
+       ///
+       int kerning(BufferView const * bv) const override { return cell(0).kerning(bv); }
+       ///
+       InsetCode lyxCode() const override { return MATH_FONT_CODE; }
 
 private:
-       virtual Inset * clone() const;
+       std::string font() const;
+       ///
+       Inset * clone() const override;
        /// the font to be used on screen
        latexkeys const * key_;
 };