#include "Buffer.h"
#include "BufferParams.h"
#include "Cursor.h"
-#include "debug.h"
+#include "support/debug.h"
#include "MetricsInfo.h"
#include "output_latex.h"
#include "OutputParams.h"
#include "TexRow.h"
#include "TextMetrics.h"
+using namespace std;
namespace lyx {
-using std::endl;
-
InsetMathMBox::InsetMathMBox()
{
}
-bool InsetMathMBox::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathMBox::metrics(MetricsInfo & mi, Dimension & dim) const
{
TextMetrics & tm = mi.base.bv->textMetrics(&text_);
tm.metrics(mi, dim);
metricsMarkers2(dim);
- if (dim_ == dim)
- return false;
- dim_ = dim;
- return true;
}
ws << "}";
} else {
ws << "\\mbox{\n";
- std::ostringstream os;
+ ostringstream os;
text_.write(buf, os);
ws.os() << from_utf8(os.str());
ws << "}";
}
-void InsetMathMBox::drawSelection(PainterInfo & pi, int x, int y) const
-{
- pi.base.bv->textMetrics(&text_).drawSelection(pi, x, y);
-}
-
-
} // namespace lyx