#include "InsetMath.h"
#include "MathData.h"
#include "MathStream.h"
-#include "gettext.h"
-#include "debug.h"
+#include "support/debug.h"
+#include "support/docstream.h"
+#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/textutils.h"
-#include <boost/current_function.hpp>
+#include <boost/assert.hpp>
-using std::endl;
+using namespace std;
namespace lyx {
-
-
MathData & InsetMath::cell(idx_type)
{
static MathData dummyCell;
- lyxerr << BOOST_CURRENT_FUNCTION << ": I don't have any cell" << endl;
+ LYXERR0("I don't have any cell");
return dummyCell;
}
MathData const & InsetMath::cell(idx_type) const
{
static MathData dummyCell;
- lyxerr << BOOST_CURRENT_FUNCTION << ": I don't have any cell" << endl;
+ LYXERR0("I don't have any cell");
return dummyCell;
}
void InsetMath::metricsT(TextMetricsInfo const &, Dimension &) const
{
-#ifdef WITH_WARNINGS
- lyxerr << "InsetMath::metricsT(Text) called directly!" << endl;
-#endif
+ LYXERR0("InsetMath::metricsT(Text) called directly!");
}
void InsetMath::drawT(TextPainter &, int, int) const
{
-#ifdef WITH_WARNINGS
- lyxerr << "InsetMath::drawT(Text) called directly!" << endl;
-#endif
+ LYXERR0("InsetMath::drawT(Text) called directly!");
}
-
void InsetMath::write(WriteStream & os) const
{
docstring const s = name();
}
-int InsetMath::plaintext(Buffer const &, odocstream &,
- OutputParams const &) const
+int InsetMath::plaintext(odocstream &, OutputParams const &) const
{
// all math plain text output shall take place in InsetMathHull
BOOST_ASSERT(false);
void InsetMath::mathmlize(MathStream & os) const
{
- NormalStream ns(os.os());
- normalize(ns);
+ NormalStream ns(os.os());
+ normalize(ns);
}
}
-std::ostream & operator<<(std::ostream & os, MathAtom const & at)
+ostream & operator<<(ostream & os, MathAtom const & at)
{
odocstringstream oss;
WriteStream wi(oss, false, false);