X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_mathmlstream.h;h=744156946ea6270481ab58796b55cc58b54549be;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=7078efd82aea8ebef577e3871514a4341675395b;hpb=aed2b1804c474ad4927a681c708b45bee6c4a36f;p=lyx.git diff --git a/src/mathed/math_mathmlstream.h b/src/mathed/math_mathmlstream.h index 7078efd82a..744156946e 100644 --- a/src/mathed/math_mathmlstream.h +++ b/src/mathed/math_mathmlstream.h @@ -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_; /// @@ -193,5 +203,4 @@ WriteStream & operator<<(WriteStream &, int); /// WriteStream & operator<<(WriteStream &, unsigned int); - #endif