]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_mathmlstream.h
index 9ed06a5e00a8a91df02867627f67ada0dc9be5f3..65df407fba4de5ab5c8db87269fe2559e36ebe0f 100644 (file)
@@ -1,15 +1,23 @@
+// -*- C++ -*-
+/**
+ * \file math_mathmlstream.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_MATHMLSTREAM_H
 #define MATH_MATHMLSTREAM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 // Please keep all four streams in one file until the interface has
 // settled.
 
 
-#include "math_metricsinfo.h"
+#include "metricsinfo.h"
 
 #include <iosfwd>
 
@@ -26,7 +34,7 @@ public:
        ///
        WriteStream(std::ostream & os, bool fragile, bool latex);
        ///
-       explicit WriteStream(std::ostream & os_);
+       explicit WriteStream(std::ostream & os);
        ///
        ~WriteStream();
        ///
@@ -79,14 +87,16 @@ WriteStream & operator<<(WriteStream &, unsigned int);
 //  MathML
 //
 
-struct MTag {
+class MTag {
+public:
        ///
        MTag(char const * const tag) : tag_(tag) {}
        ///
        char const * const tag_;
 };
 
-struct ETag {
+class ETag {
+public:
        ///
        ETag(char const * const tag) : tag_(tag) {}
        ///
@@ -160,8 +170,6 @@ NormalStream & operator<<(NormalStream &, char);
 NormalStream & operator<<(NormalStream &, int);
 
 
-
-
 //
 // Maple
 //
@@ -191,6 +199,35 @@ MapleStream & operator<<(MapleStream &, char);
 MapleStream & operator<<(MapleStream &, int);
 
 
+//
+// Maxima
+//
+
+
+class MaximaStream {
+public:
+       ///
+       explicit MaximaStream(std::ostream & os) : os_(os) {}
+       ///
+       std::ostream & os() { return os_; }
+private:
+       ///
+       std::ostream & os_;
+};
+
+
+///
+MaximaStream & operator<<(MaximaStream &, MathAtom const &);
+///
+MaximaStream & operator<<(MaximaStream &, MathArray const &);
+///
+MaximaStream & operator<<(MaximaStream &, char const *);
+///
+MaximaStream & operator<<(MaximaStream &, char);
+///
+MaximaStream & operator<<(MaximaStream &, int);
+
+
 //
 // Mathematica
 //