2001-08-20 16:37:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_CHEATINSET_H
|
|
|
|
#define MATH_CHEATINSET_H
|
|
|
|
|
2002-03-27 10:51:46 +00:00
|
|
|
#include "math_diminset.h"
|
|
|
|
#include "vspace.h"
|
|
|
|
#include "LString.h"
|
2002-03-25 12:11:25 +00:00
|
|
|
#include "math_nestinset.h"
|
2001-08-20 16:37:35 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-03-27 10:51:46 +00:00
|
|
|
/// The \kern primitive
|
2002-03-25 12:11:25 +00:00
|
|
|
/// Some hack for visual effects
|
2001-08-20 16:37:35 +00:00
|
|
|
|
2002-03-27 10:51:46 +00:00
|
|
|
class MathKernInset : public MathDimInset {
|
2001-08-20 16:37:35 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-08-21 14:20:50 +00:00
|
|
|
MathKernInset();
|
|
|
|
///
|
2002-03-27 10:51:46 +00:00
|
|
|
explicit MathKernInset(LyXLength const & wid);
|
|
|
|
///
|
|
|
|
explicit MathKernInset(string const & wid);
|
|
|
|
///
|
2001-08-20 16:37:35 +00:00
|
|
|
MathInset * clone() const;
|
|
|
|
///
|
|
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
void write(WriteStream & os) const;
|
2001-08-20 16:37:35 +00:00
|
|
|
///
|
2002-03-25 12:11:25 +00:00
|
|
|
void normalize(NormalStream & ns) const;
|
2001-08-20 16:37:35 +00:00
|
|
|
///
|
2002-03-27 10:51:46 +00:00
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
|
|
private:
|
|
|
|
/// width in em
|
|
|
|
LyXLength wid_;
|
2001-08-20 16:37:35 +00:00
|
|
|
};
|
|
|
|
#endif
|