void metrics(MathMetricsInfo const & st) const;
///
void draw(Painter &, int x, int y) const;
+ ///
+ void metricsT(TextMetricsInfo const & st) const;
+ ///
+ void drawT(TextPainter &, int x, int y) const;
///
void metrics(MathInset const * nuc, MathMetricsInfo const & st) const;
///
void draw(MathInset const * nuc, Painter &, int x, int y) const;
///
+ void metricsT(MathInset const * nuc, TextMetricsInfo const & st) const;
+ ///
+ void drawT(MathInset const * nuc, TextPainter &, int x, int y) const;
+ ///
int ascent2(MathInset const * nuc) const;
///
int descent2(MathInset const * nuc) const;
bool idxLeft(idx_type &, pos_type &) const;
///
bool idxRight(idx_type &, pos_type &) const;
+ /// can we enter this cell?
+ bool validCell(idx_type i) const { return script_[i]; }
/// identifies scriptinsets
MathScriptInset const * asScriptInset() const;
bool hasDown() const;
/// do we have a script?
bool has(bool up) const;
+ /// do we have a anything?
+ bool empty() const;
/// remove script
void removeScript(bool up);
/// remove script
bool hasLimits(MathInset const * nuc) const;
/// possible subscript (index 0) and superscript (index 1)
- bool script_[2];
+ bool script_[2];
/// 1 - "limits", -1 - "nolimits", 0 - "default"
int limits_;
- /// cached MathMetricsInfo
- mutable MathMetricsInfo mi_;
+ /// cached font
+ mutable LyXFont font_;
};
#endif
-