]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSubstack.h
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathSubstack.h
index 6d279a6cee8eaed9d7fef115ad6a363c2ad72aa9..f5be05ff0302d046ec6e5e79bdfec41d548b4fe6 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.
  */
 #include "InsetMathGrid.h"
 
 
+namespace lyx {
+
+
 /// support for AMS's \\substack
 
 class InsetMathSubstack : public InsetMathGrid {
 public:
        ///
-       InsetMathSubstack();
+       explicit InsetMathSubstack(Buffer * buf);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       InsetMathSubstack const * asSubstackInset() const { return this; }
+       InsetMathSubstack const * asSubstackInset() const override { return this; }
 
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd,
-               FuncStatus & flag) const;
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
+               FuncStatus & flag) const override;
+       ///
+       void infoize(odocstream & os) const override;
+       ///
+       void write(WriteStream & os) const override;
        ///
-       void infoize(std::ostream & os) const;
+       void mathmlize(MathStream &) const override;
        ///
-       void write(WriteStream & os) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void normalize(NormalStream &) const;
+       void normalize(NormalStream &) const override;
        ///
-       void maple(MapleStream &) const;
+       void maple(MapleStream &) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures &) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_SUBSTACK_CODE; }
+
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };
 
+
+
+} // namespace lyx
 #endif