X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathData.h;h=6224e91ea1c6ea29e7536f6da5bf6eacaa60fe02;hb=ebe6612e2661f49dcfae6103f056c27afd47751f;hp=31bb787c98f4d82c56e14193c2358aaa4c180f3e;hpb=b92ddb03627e266bdd6c5e9de30d0709c4f452fe;p=lyx.git diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h index 31bb787c98..6224e91ea1 100644 --- a/src/mathed/MathData.h +++ b/src/mathed/MathData.h @@ -124,8 +124,14 @@ public: /// Add this array to a math row. Return true if contents got added bool addToMathRow(MathRow &, MetricsInfo & mi) const; + // return true if caret is in this cell in this buffer view + bool hasCaret(BufferView * bv) const; + /// rebuild cached metrics information - void metrics(MetricsInfo & mi, Dimension & dim) const; + /** When \c tight is true, the height of the cell will be at least + * that of 'x'. Otherwise, it will be the max height of the font. + */ + void metrics(MetricsInfo & mi, Dimension & dim, bool tight = true) const; /// Dimension const & dimension(BufferView const &) const; @@ -179,7 +185,7 @@ public: /// void updateBuffer(ParIterator const &, UpdateType); /// - void setBuffer(Buffer & b) { buffer_ = &b; } + void setBuffer(Buffer & b); protected: /// cached values for super/subscript placement