#include <config.h>
#include "InsetMathTabular.h"
+
#include "MathData.h"
#include "MathStream.h"
#include "MathStream.h"
#include "support/lstrings.h"
-#include "support/std_ostream.h"
-
-#include <iterator>
+#include <ostream>
namespace lyx {
{}
-InsetMathTabular::InsetMathTabular(docstring const & name, char valign,
- docstring const & halign)
- : InsetMathGrid(valign, halign), name_(name)
-{}
-
Inset * InsetMathTabular::clone() const
{
void InsetMathTabular::write(WriteStream & os) const
{
+ ModeSpecifier specifier(os, TEXT_MODE);
+
if (os.fragile())
os << "\\protect";
os << "\\begin{" << name_ << '}';
- if (v_align_ == 't' || v_align_ == 'b')
- os << '[' << char(v_align_) << ']';
- os << '{' << halign() << "}\n";
+ char const v = verticalAlignment();
+ if (v == 't' || v == 'b')
+ os << '[' << v << ']';
+ os << '{' << horizontalAlignments() << "}\n";
InsetMathGrid::write(os);