]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathBrace.h
index d5c5205a43f2eabb67a2dd48466156b9f0ab28e8..35082d1a7a7489f7af69672187e44d17155c5e03 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 "InsetMathNest.h"
 
 
+namespace lyx {
+
+
 /// Extra nesting
 class InsetMathBrace : public InsetMathNest {
 public:
        ///
-       InsetMathBrace();
+       explicit InsetMathBrace(Buffer * buf);
        ///
-       InsetMathBrace(MathArray const & ar);
+       explicit InsetMathBrace(MathData const & ar);
+       /// identifies brace insets
+       InsetMathBrace * asBraceInset() override { return this; }
+       /// identifies brace insets
+       InsetMathBrace const * asBraceInset() const override { return this; }
        ///
-       InsetMathBrace const * asBraceInset() const { return this; }
-       /// we write extra braces in any case...
-       bool extraBraces() const { return true; }
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void draw(PainterInfo &, int x, int y) const override;
        ///
-       void draw(PainterInfo &, int x, int y) const;
-       ///
-       void write(WriteStream & os) const;
+       void write(WriteStream & os) const override;
        /// write normalized content
-       void normalize(NormalStream & ns) const;
+       void normalize(NormalStream & ns) const override;
+       ///
+       void maple(MapleStream &) const override;
        ///
-       void maple(MapleStream &) const;
+       void mathematica(MathematicaStream &) const override;
        ///
-       void mathematica(MathematicaStream &) const;
+       void octave(OctaveStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void mathmlize(MathStream &) const override;
        ///
-       void mathmlize(MathMLStream &) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };
 
+
+} // namespace lyx
+
 #endif