]> 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 e22bb7cfc125c3434e5412ab5b47a87d765658c9..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.
  */
@@ -22,33 +22,37 @@ namespace lyx {
 class InsetMathBrace : public InsetMathNest {
 public:
        ///
-       InsetMathBrace();
+       explicit InsetMathBrace(Buffer * buf);
        ///
-       InsetMathBrace(MathData 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;
        ///
-       bool 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 mathematica(MathematicaStream &) const override;
        ///
-       void maple(MapleStream &) const;
+       void octave(OctaveStream &) const override;
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathmlize(MathStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void mathmlize(MathStream &) const;
+       void infoize(odocstream & os) const override;
        ///
-       void infoize(odocstream & os) const;
+       InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };