-/**\r
- * \file InsetMathBM.cpp\r
- * This file is part of LyX, the document processor.\r
- * Licence details can be found in the file COPYING.\r
- *\r
- * \author Bernhard Roider\r
- *\r
- * Full author contact details are available in file CREDITS.\r
- */\r
-\r
-#include <config.h>\r
-\r
-#include "InsetMathBM.h"\r
-\r
-#include "MathStream.h"\r
-#include "MathData.h"\r
-#include "LaTeXFeatures.h"\r
-\r
-#include <ostream>\r
-\r
-\r
-namespace lyx {\r
-\r
-InsetMathBM::InsetMathBM()\r
- : InsetMathNest(1)\r
-{}\r
-\r
-\r
-Inset * InsetMathBM::clone() const\r
-{\r
- return new InsetMathBM(*this);\r
-}\r
-\r
-\r
-void InsetMathBM::metrics(MetricsInfo & mi, Dimension & dim) const\r
-{\r
- //FontSetChanger dummy(mi.base, "mathbf");\r
- cell(0).metrics(mi, dim);\r
- metricsMarkers(dim);\r
- ++dim.wid; // for 'double stroke'\r
-}\r
-\r
-\r
-void InsetMathBM::draw(PainterInfo & pi, int x, int y) const\r
-{\r
- //FontSetChanger dummy(pi.base, "mathbf");\r
- cell(0).draw(pi, x + 1, y);\r
- cell(0).draw(pi, x + 2, y);\r
- drawMarkers(pi, x, y);\r
-}\r
-\r
-\r
-void InsetMathBM::metricsT(TextMetricsInfo const & mi, Dimension & /*dim*/) const\r
-{\r
- // FIXME: BROKEN!\r
- Dimension dim;\r
- cell(0).metricsT(mi, dim);\r
-}\r
-\r
-\r
-void InsetMathBM::drawT(TextPainter & pain, int x, int y) const\r
-{\r
- cell(0).drawT(pain, x, y);\r
-}\r
-\r
-\r
-void InsetMathBM::validate(LaTeXFeatures & features) const\r
-{\r
- InsetMathNest::validate(features);\r
- features.require("bm");\r
-}\r
-\r
-\r
-void InsetMathBM::write(WriteStream & os) const\r
-{\r
- os << "\\bm{" << cell(0) << "}";\r
-}\r
-\r
-\r
-void InsetMathBM::infoize(odocstream & os) const\r
-{\r
- os << "bm ";\r
-}\r
-\r
-\r
-} // namespace lyx\r