]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpecialChar.h
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathSpecialChar.h
index fde2e95b28e8490bb1ec980394ce38496ed101c6..88acce613e0248248943422c9fa9e6a2f14a2fcf 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "InsetMath.h"
 
+#include "support/docstring.h"
+
 namespace lyx {
 
 /// The special character inset.
@@ -23,40 +25,42 @@ public:
        ///
        explicit InsetMathSpecialChar(docstring const & name);
        ///
-       void setBuffer(Buffer &) {}
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
        ///
-       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+       void drawT(TextPainter &, int x, int y) const override;
        ///
-       void drawT(TextPainter &, int x, int y) const;
+       int kerning(BufferView const *) const override { return kerning_; }
        ///
-       int kerning(BufferView const *) const { return kerning_; }
+       void write(WriteStream & os) const override;
        ///
-       void write(WriteStream & os) const;
+       void validate(LaTeXFeatures & features) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void normalize(NormalStream & ns) const override;
        ///
-       void normalize(NormalStream & ns) const;
+       void octave(OctaveStream & os) const override;
        ///
-       void octave(OctaveStream & os) const;
+       void maple(MapleStream &) const override;
        ///
-       void maple(MapleStream &) const;
+       void mathematica(MathematicaStream &) const override;
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathmlize(MathStream & ms) const override;
        ///
-       void mathmlize(MathStream & ms) const;
+       void htmlize(HtmlStream & ms) const override;
        /// identifies SpecialChar insets
-       InsetMathSpecialChar const * asSpecialCharInset() const { return this; }
+       InsetMathSpecialChar const * asSpecialCharInset() const override { return this; }
+       ///
+       docstring name() const override { return name_; }
        ///
-       docstring name() const { return name_; }
+       char_type getChar() const override { return char_; }
        ///
-       char_type getChar() const { return char_; }
+       InsetCode lyxCode() const override { return MATH_SPECIALCHAR_CODE; }
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
        /// the latex name
        docstring name_;
        /// the displayed character