From 2369041276600acb97a906e0539014f1810318e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 3 Aug 2001 17:56:11 +0000 Subject: [PATCH] forget to add the file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2415 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_diminset.C | 24 ++++++++++++++++++++++++ src/mathed/math_diminset.h | 26 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/mathed/math_diminset.C create mode 100644 src/mathed/math_diminset.h diff --git a/src/mathed/math_diminset.C b/src/mathed/math_diminset.C new file mode 100644 index 0000000000..f3065be8e3 --- /dev/null +++ b/src/mathed/math_diminset.C @@ -0,0 +1,24 @@ +#include "math_diminset.h" + + +MathDimInset::MathDimInset() + : width_(0), ascent_(0), descent_(0) +{} + + +int MathDimInset::ascent() const +{ + return ascent_; +} + + +int MathDimInset::descent() const +{ + return descent_; +} + + +int MathDimInset::width() const +{ + return width_; +} diff --git a/src/mathed/math_diminset.h b/src/mathed/math_diminset.h new file mode 100644 index 0000000000..931efa9f4b --- /dev/null +++ b/src/mathed/math_diminset.h @@ -0,0 +1,26 @@ +// -*- C++ -*- +#ifndef MATH_DIMINSET_H +#define MATH_DIMINSET_H + +#include "math_inset.h" + +/// thing that need the dimension cache +class MathDimInset : public MathInset { +public: + MathDimInset(); + /// + int ascent() const; + /// + int descent() const; + /// + int width() const; + +protected: + /// + int width_; + /// + int ascent_; + /// + int descent_; +}; +#endif