* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include "MathStream.h"
#include "MathSupport.h"
#include "frontends/Painter.h"
-#include "debug.h"
+#include "support/debug.h"
+using namespace std;
namespace lyx {
-using std::max;
-
-
InsetMathXYArrow::InsetMathXYArrow()
- : InsetMathNest(2)
+ : InsetMathNest(2), up_(false), target_(0)
{}
void InsetMathXYArrow::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
os << "\\ar";
- if (cell(0).size())
+ if (!cell(0).empty())
os << '[' << cell(0) << ']';
- if (cell(1).size())
+ if (!cell(1).empty())
os << (up_ ? '^' : '_') << '{' << cell(1) << '}';
os << " ";
}
}
+void InsetMathXYArrow::mathmlize(MathStream &) const
+{
+ throw MathExportException();
+}
+
+
+void InsetMathXYArrow::htmlize(HtmlStream &) const
+{
+ throw MathExportException();
+}
+
} // namespace lyx