]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathFont.h
index 88c83165e94dd95140ae96f2f8c4fd611e165f4f..32a360069fb9645ed3a5cd3ac68d9521775304db 100644 (file)
@@ -26,38 +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(WriteStream & 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 mathmlize(MathStream &) const;
+       void validate(LaTeXFeatures & features) const override;
        ///
-       void htmlize(HtmlStream &) const;
+       void mathmlize(MathStream &) const override;
        ///
-       void infoize(odocstream & os) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
+       void infoize(odocstream & os) const override;
        ///
-       InsetCode lyxCode() const { return MATH_FONT_CODE; }
+       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_;
 };