#include "InsetMathScript.h"
#include "InsetMathMacro.h"
#include "MathMacroTable.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathSupport.h"
#include "MathReplace.h"
#include <boost/assert.hpp>
+
+namespace lyx {
+
using std::abs;
using std::endl;
using std::min;
using std::vector;
-MathArray::MathArray()
-{}
-
-
MathArray::MathArray(const_iterator from, const_iterator to)
: base_type(from, to)
{}
void MathArray::dump2() const
{
- NormalStream ns(lyxerr);
+ odocstringstream os;
+ NormalStream ns(os);
for (const_iterator it = begin(); it != end(); ++it)
ns << *it << ' ';
+ lyxerr << to_utf8(os.str());
}
void MathArray::dump() const
{
- NormalStream ns(lyxerr);
+ odocstringstream os;
+ NormalStream ns(os);
for (const_iterator it = begin(); it != end(); ++it)
ns << '<' << *it << '>';
+ lyxerr << to_utf8(os.str());
}
namespace {
bool isInside(DocIterator const & it, MathArray const & ar,
- lyx::pos_type p1, lyx::pos_type p2)
+ pos_type p1, pos_type p2)
{
for (size_t i = 0; i != it.depth(); ++i) {
CursorSlice const & sl = it[i];
{
return bv.coordCache().getArrays().y(this);
}
+
+
+std::ostream & operator<<(std::ostream & os, MathArray const & ar)
+{
+ odocstringstream oss;
+ NormalStream ns(oss);
+ ns << ar;
+ return os << to_utf8(oss.str());
+}
+
+
+odocstream & operator<<(odocstream & os, MathArray const & ar)
+{
+ NormalStream ns(os);
+ ns << ar;
+ return os;
+}
+
+
+} // namespace lyx