#include "InsetMathCases.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathSupport.h"
#include "FuncStatus.h"
#include "LaTeXFeatures.h"
#include "support/lstrings.h"
-using lyx::docstring;
-using lyx::support::bformat;
+namespace lyx {
+
+using support::bformat;
using std::endl;
using std::max;
using std::min;
using std::swap;
-using std::string;
-
using std::auto_ptr;
InsetMathCases::InsetMathCases(row_type n)
- : InsetMathGrid(2, n, 'c', "ll")
+ : InsetMathGrid(2, n, 'c', from_ascii("ll"))
{}
void InsetMathCases::draw(PainterInfo & pi, int x, int y) const
{
- mathed_draw_deco(pi, x + 1, y - dim_.ascent(), 6, dim_.height(), "{");
+ mathed_draw_deco(pi, x + 1, y - dim_.ascent(), 6, dim_.height(), from_ascii("{"));
InsetMathGrid::drawWithMargin(pi, x, y, 8, 0);
setPosCache(pi, x, y);
}
if (s == "add-vline-left" || s == "add-vline-right") {
flag.enabled(false);
flag.message(bformat(
- lyx::from_utf8(N_("No vertical grid lines in '%1$s'")),
+ from_utf8(N_("No vertical grid lines in '%1$s'")),
s));
return true;
}
}
-void InsetMathCases::infoize(std::ostream & os) const
+void InsetMathCases::infoize(odocstream & os) const
{
os << "Cases ";
}
features.require("amsmath");
InsetMathGrid::validate(features);
}
+
+
+} // namespace lyx