-int MathCharInset::ascent() const
-{
- return mathed_char_ascent(code_, mi_, char_);
-}
-
-
-int MathCharInset::descent() const
-{
- return mathed_char_descent(code_, mi_, char_);
-}
-
-
-int MathCharInset::width() const
-{
- return mathed_char_width(code_, mi_, char_);
-}
-
-
void MathCharInset::metrics(MathMetricsInfo const & mi) const
{
mi_ = mi;
void MathCharInset::metrics(MathMetricsInfo const & mi) const
{
mi_ = mi;
+ ascent_ = mathed_char_ascent(code_, mi_, char_);
+ descent_ = mathed_char_descent(code_, mi_, char_);
+ width_ = mathed_char_width(code_, mi_, char_);
#ifndef MATH_CHARINSET_H
#define MATH_CHARINSET_H
#ifndef MATH_CHARINSET_H
#define MATH_CHARINSET_H
+#include "math_diminset.h"
#ifdef __GNUG__
#pragma interface
#ifdef __GNUG__
#pragma interface
-class MathCharInset : public MathInset {
+class MathCharInset : public MathDimInset {
public:
///
explicit MathCharInset(char c);
public:
///
explicit MathCharInset(char c);
void writeRaw(std::ostream &) const;
///
void normalize(NormalStream &) const;
void writeRaw(std::ostream &) const;
///
void normalize(NormalStream &) const;
- ///
- int ascent() const;
- ///
- int descent() const;
- ///
- int width() const;
/// identifies Charinsets
MathCharInset const * asCharInset() const { return this; }
///
/// identifies Charinsets
MathCharInset const * asCharInset() const { return this; }
///