]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSqrt.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathSqrt.h
index 6c15f6bc4297bfce74960fa34f53033a79437114..e2cfd5bd12cd16796f58a196be6bbad355b87116 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "InsetMathNest.h"
 
 
+namespace lyx {
+
+
 /// \c InsetMathSqrt The square root inset.
 class InsetMathSqrt : public InsetMathNest {
 public:
        ///
-       InsetMathSqrt();
+       explicit InsetMathSqrt(Buffer * buf);
        ///
-       void draw(PainterInfo &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const override;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void drawT(TextPainter &, int x, int y) const;
+       void drawT(TextPainter &, int x, int y) const override;
        ///
-       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
 
        ///
-       void write(WriteStream & os) const;
+       void write(TeXMathStream & os) const override;
+       ///
+       void normalize(NormalStream &) const override;
+       ///
+       void maple(MapleStream &) const override;
        ///
-       void normalize(NormalStream &) const;
+       void mathematica(MathematicaStream &) const override;
        ///
-       void maple(MapleStream &) const;
+       void octave(OctaveStream &) const override;
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathmlize(MathMLStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void mathmlize(MathMLStream &) const;
+       InsetCode lyxCode() const override { return MATH_SQRT_CODE; }
+       ///
+       void validate(LaTeXFeatures &) const override;
+
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };
+
+
+} // namespace lyx
 #endif