mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
forget to add the file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2415 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
244d75e942
commit
2369041276
24
src/mathed/math_diminset.C
Normal file
24
src/mathed/math_diminset.C
Normal file
@ -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_;
|
||||
}
|
26
src/mathed/math_diminset.h
Normal file
26
src/mathed/math_diminset.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user