///
explicit MathCharInset(char c);
///
- virtual std::auto_ptr<InsetBase> clone() const;
- ///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
///
void drawT(TextPainter &, int x, int y) const;
+ ///
+ int width() const { return width_; }
+
///
void write(WriteStream & os) const;
///
bool isRelOp() const;
private:
+ virtual std::auto_ptr<InsetBase> doClone() const;
/// the character
char char_;
+ /// cached width
+ mutable int width_;
};
#endif