suggestion. Now I wish I'd done XHTMLStream the same way....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32691
a592a061-630c-0410-9148-
cb99ea01b6c8
}
+void MathStream::defer(docstring const & s)
+{
+ deferred_ << s;
+}
+
+
+void MathStream::defer(string const & s)
+{
+ deferred_ << from_utf8(s);
+}
+
+
+docstring MathStream::deferred() const
+{
+ return deferred_.str();
+}
+
+
MathStream & operator<<(MathStream & ms, docstring const & s)
{
ms.os() << s;
return ms;
}
+
//////////////////////////////////////////////////////////////////////
int & tab() { return tab_; }
///
friend MathStream & operator<<(MathStream &, char const *);
+ ///
+ void defer(docstring const &);
+ ///
+ void defer(std::string const &);
+ ///
+ docstring deferred() const;
private:
///
odocstream & os_;
int line_;
///
char lastchar_;
+ ///
+ odocstringstream deferred_;
};
///