lyx_mirror/src/mathed/math_diminset.C
Lars Gullik Bjønnes 2b8ef58dc0 ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3804 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 17:42:56 +00:00

22 lines
386 B
C

#include "math_diminset.h"
#include "Lsstream.h"
#include "textpainter.h"
void MathDimInset::metricsT(TextMetricsInfo const &) const
{
std::ostringstream os;
os << *this;
width_ = int(os.str().size());
ascent_ = 1;
descent_ = 0;
}
void MathDimInset::drawT(TextPainter & pain, int x, int y) const
{
std::ostringstream os;
os << *this;
pain.draw(x, y, os.str().c_str());
}