* the GNU General Public Licence version 2 or later.
*/
-#include <config.h>
-
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_inset.h"
-#include "mathed/support.h"
-#include "Painter.h"
#include "debug.h"
array.push_back(p);
}
-void MathInset::Metrics(MathStyles st, int, int)
+void MathInset::Metrics(MathStyles st)
{
size_ = st;
for (int i = 0; i < nargs(); ++i)
deleteit = false;
}
+void MathInset::idxDeleteRange(int, int)
+{}
+
bool MathInset::idxLastUp(int &, int &) const
{
}
-void MathInset::push_back(byte ch, MathTextCodes fcode)
+void MathInset::push_back(unsigned char ch, MathTextCodes fcode)
{
if (nargs())
cells_.back().data_.push_back(ch, fcode);
y >= yo_ - ascent_ &&
y <= yo_ + descent_;
}
+
+void MathInset::Validate(LaTeXFeatures & features) const
+{
+ for (int i = 0; i < nargs(); ++i)
+ cell(i).Validate(features);
+}
+
+std::vector<int> MathInset::idxBetween(int from, int to) const
+{
+ std::vector<int> res;
+ for (int i = from; i <= to; ++i)
+ res.push_back(i);
+ return res;
+}