]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.h
fix #1073
[lyx.git] / src / mathed / math_mathmlstream.h
index 9f1ac9fed24646523888050a6b6349a8d51cedaa..3c0d69ae380e21e26eacf56169a4bce85319f7c4 100644 (file)
@@ -6,7 +6,7 @@
 // settled.
 
 
-#include "math_metricsinfo.h"
+#include "metricsinfo.h"
 
 #include <iosfwd>
 
@@ -25,6 +25,8 @@ public:
        ///
        explicit WriteStream(std::ostream & os_);
        ///
+       ~WriteStream();
+       ///
        int line() const { return line_; }
        ///
        bool fragile() const { return fragile_; }
@@ -37,7 +39,7 @@ public:
        ///
        void addlines(unsigned int);
        /// writes space if next thing is isalpha()
-       void pendingSpace(bool how) { pendingspace_ = how; }
+       void pendingSpace(bool how);
        /// writes space if next thing is isalpha()
        bool pendingSpace() const { return pendingspace_; }
 private:
@@ -155,8 +157,6 @@ NormalStream & operator<<(NormalStream &, char);
 NormalStream & operator<<(NormalStream &, int);
 
 
-
-
 //
 // Maple
 //
@@ -186,6 +186,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
 //