2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file math_diminset.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
2002-09-11 09:14:57 +00:00
|
|
|
|
|
2002-03-19 16:55:58 +00:00
|
|
|
|
#include "math_diminset.h"
|
|
|
|
|
#include "Lsstream.h"
|
|
|
|
|
#include "textpainter.h"
|
|
|
|
|
|
|
|
|
|
|
2002-03-21 06:57:13 +00:00
|
|
|
|
void MathDimInset::metricsT(TextMetricsInfo const &) const
|
2002-03-19 16:55:58 +00:00
|
|
|
|
{
|
2002-08-08 17:11:30 +00:00
|
|
|
|
#ifndef WITH_WARNINGS
|
|
|
|
|
#warning temporarily disabled
|
|
|
|
|
#endif
|
|
|
|
|
/*
|
2002-03-19 16:55:58 +00:00
|
|
|
|
std::ostringstream os;
|
2002-08-08 17:11:30 +00:00
|
|
|
|
os << MathAtom(this);
|
2003-05-27 13:55:03 +00:00
|
|
|
|
dim_.wid = int(os.str().size());
|
|
|
|
|
dim_.asc = 1;
|
|
|
|
|
dim_.des = 0;
|
2002-08-08 17:11:30 +00:00
|
|
|
|
*/
|
2002-03-19 16:55:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2002-08-08 17:11:30 +00:00
|
|
|
|
void MathDimInset::drawT(TextPainter &, int, int) const
|
2002-03-19 16:55:58 +00:00
|
|
|
|
{
|
2002-08-08 17:11:30 +00:00
|
|
|
|
/*
|
2002-03-19 16:55:58 +00:00
|
|
|
|
std::ostringstream os;
|
2002-08-08 17:11:30 +00:00
|
|
|
|
os << MathAtom(this);
|
2002-11-04 02:12:42 +00:00
|
|
|
|
pain.draw(x, y, STRCONV(os.str()));
|
2002-08-08 17:11:30 +00:00
|
|
|
|
*/
|
2002-03-19 16:55:58 +00:00
|
|
|
|
}
|