]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.h
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathBrace.h
index d5c5205a43f2eabb67a2dd48466156b9f0ab28e8..b28cd05e7db452d31d751bb7ef989ec636dc902b 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();
-       ///
-       InsetMathBrace(MathArray const & ar);
+       InsetMathBrace(Buffer * buf);
        ///
+       InsetMathBrace(MathData const & ar);
+       /// identifies brace insets
+       InsetMathBrace * asBraceInset() { return this; }
+       /// identifies brace insets
        InsetMathBrace const * asBraceInset() const { return this; }
        /// we write extra braces in any case...
        bool extraBraces() const { return true; }
@@ -41,11 +46,18 @@ public:
        ///
        void octave(OctaveStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_BRACE_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };
 
+
+} // namespace lyx
+
 #endif