]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpecialChar.h
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathSpecialChar.h
index 7e2e8083f887aa68ce4326b604cbb6486860fd2c..88acce613e0248248943422c9fa9e6a2f14a2fcf 100644 (file)
 
 #include "InsetMath.h"
 
+#include "support/docstring.h"
+
 namespace lyx {
 
 /// The special character inset.
-class InsetMathSpecialChar : public InsetMath {
+class InsetMathSpecialChar : public InsetMath
+{
 public:
        ///
-       explicit InsetMathSpecialChar(docstring name);
+       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
@@ -66,4 +71,4 @@ private:
 
 } // namespace lyx
 
-#endif
+#endif // MATH_SPECIALCHARINSET_H