]> 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 e687bc0ede2b861de3119fcc0b51090e20493310..930e51293be4449040cad9170ad4762012756d6b 100644 (file)
@@ -26,34 +26,42 @@ public:
        ///
        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;
+       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;
        ///
-       InsetCode lyxCode() const { return MATH_FONT_CODE; }
+       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_;
 };