mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
8b7b3a5895
- make all cache variables mutable, remove const_casts git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2426 a592a061-630c-0410-9148-cb99ea01b6c8
28 lines
378 B
C++
28 lines
378 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_DIMINSET_H
|
|
#define MATH_DIMINSET_H
|
|
|
|
#include "math_inset.h"
|
|
|
|
/// things that need the dimension cache
|
|
|
|
class MathDimInset : public MathInset {
|
|
public:
|
|
MathDimInset();
|
|
///
|
|
int ascent() const;
|
|
///
|
|
int descent() const;
|
|
///
|
|
int width() const;
|
|
|
|
protected:
|
|
///
|
|
mutable int width_;
|
|
///
|
|
mutable int ascent_;
|
|
///
|
|
mutable int descent_;
|
|
};
|
|
#endif
|