}
+bool InsetMathOverset::idxFirst(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool InsetMathOverset::idxLast(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
void InsetMathOverset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
///
bool idxUpDown(Cursor & cur, bool up) const;
///
+ bool idxFirst(Cursor &) const;
+ ///
+ bool idxLast(Cursor &) const;
+ ///
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;
#include "LaTeXFeatures.h"
#include "MetricsInfo.h"
+#include "support/lassert.h"
+
using namespace std;
namespace lyx {
}
+bool InsetMathStackrel::idxFirst(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool InsetMathStackrel::idxLast(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
MathClass InsetMathStackrel::mathClass() const
{
// FIXME: update this when/if \stackbin is supported
///
bool idxUpDown(Cursor &, bool up) const;
///
+ bool idxFirst(Cursor &) const;
+ ///
+ bool idxLast(Cursor &) const;
+ ///
MathClass mathClass() const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
#include "LaTeXFeatures.h"
#include "MetricsInfo.h"
+#include "support/lassert.h"
using namespace std;
}
+bool InsetMathUnderset::idxFirst(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool InsetMathUnderset::idxLast(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
void InsetMathUnderset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
///
void draw(PainterInfo & pi, int x, int y) const;
///
+ bool idxFirst(Cursor &) const;
+ ///
+ bool idxLast(Cursor &) const;
+ ///
void write(WriteStream & ws) const;
///
void normalize(NormalStream & ns) const;