+// -*- 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
// settled.
-#include "math_metricsinfo.h"
+#include "metricsinfo.h"
#include <iosfwd>
///
WriteStream(std::ostream & os, bool fragile, bool latex);
///
- explicit WriteStream(std::ostream & os_);
+ explicit WriteStream(std::ostream & os);
+ ///
+ ~WriteStream();
///
int line() const { return line_; }
///
///
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:
NormalStream & operator<<(NormalStream &, int);
-
-
//
// Maple
//
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
//