]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.h
preview as preview can...
[lyx.git] / src / mathed / math_mathmlstream.h
index bdcf4751ca7524ab142dcf0051408ebb22de0079..744156946ea6270481ab58796b55cc58b54549be 100644 (file)
@@ -150,6 +150,8 @@ OctaveStream & operator<<(OctaveStream &, MathArray const &);
 OctaveStream & operator<<(OctaveStream &, char const *);
 ///
 OctaveStream & operator<<(OctaveStream &, char);
+///
+OctaveStream & operator<<(OctaveStream &, int);
 
 
 
@@ -160,7 +162,7 @@ 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_);
        ///
@@ -168,6 +170,8 @@ public:
        ///
        bool fragile() const { return fragile_; }
        ///
+       bool latex() const { return latex_; }
+       ///
        std::ostream & os() { return os_; }
        ///
        bool & firstitem() { return firstitem_; }
@@ -178,6 +182,8 @@ private:
        std::ostream & os_;
        ///
        bool fragile_;
+       /// are we writing to .tex?
+       int latex_;
        /// are we at the beginning of an MathArray?
        bool firstitem_;
        ///