]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.h
preview as preview can...
[lyx.git] / src / mathed / math_mathmlstream.h
index 4efd2c95e85dfe5621552334cf6ac48c6df6dd32..744156946ea6270481ab58796b55cc58b54549be 100644 (file)
@@ -39,9 +39,11 @@ public:
        ///
        std::ostream & os() { return os_; }
        ///
-       int & line() { return line_; }
+       int line() const { return line_; }
        ///
        int & tab() { return tab_; }
+       ///
+       friend MathMLStream & operator<<(MathMLStream &, char const *);
 private:
        ///
        std::ostream & os_;
@@ -148,6 +150,8 @@ OctaveStream & operator<<(OctaveStream &, MathArray const &);
 OctaveStream & operator<<(OctaveStream &, char const *);
 ///
 OctaveStream & operator<<(OctaveStream &, char);
+///
+OctaveStream & operator<<(OctaveStream &, int);
 
 
 
@@ -158,22 +162,28 @@ OctaveStream & operator<<(OctaveStream &, char);
 class WriteStream {
 public:
        ///
-       WriteStream(std::ostream & os, bool fragile);
+       WriteStream(std::ostream & os, bool fragile, bool latex);
        ///
        explicit WriteStream(std::ostream & os_);
-       /// yes... the references will be removed some day...
-       int & line() { return line_; }
+       ///
+       int line() const { return line_; }
        ///
        bool fragile() const { return fragile_; }
        ///
+       bool latex() const { return latex_; }
+       ///
        std::ostream & os() { return os_; }
        ///
        bool & firstitem() { return firstitem_; }
+       ///
+       void addlines(unsigned int);
 private:
        ///
        std::ostream & os_;
        ///
        bool fragile_;
+       /// are we writing to .tex?
+       int latex_;
        /// are we at the beginning of an MathArray?
        bool firstitem_;
        ///