2001-08-20 16:37:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_CHEATINSET_H
|
|
|
|
#define MATH_CHEATINSET_H
|
|
|
|
|
|
|
|
#include "math_diminset.h"
|
2001-08-21 14:20:50 +00:00
|
|
|
#include "vspace.h"
|
|
|
|
#include "LString.h"
|
2001-08-20 16:37:35 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-08-21 14:20:50 +00:00
|
|
|
/// The \kern primitive
|
2001-08-20 16:37:35 +00:00
|
|
|
|
2001-08-21 14:20:50 +00:00
|
|
|
class MathKernInset : public MathDimInset {
|
2001-08-20 16:37:35 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-08-21 14:20:50 +00:00
|
|
|
MathKernInset();
|
|
|
|
///
|
|
|
|
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-10-19 11:25:48 +00:00
|
|
|
void write(MathWriteInfo & os) const;
|
2001-08-20 16:37:35 +00:00
|
|
|
///
|
2001-11-08 12:06:56 +00:00
|
|
|
void writeNormal(NormalStream &) const;
|
2001-08-20 16:37:35 +00:00
|
|
|
///
|
2001-10-19 11:25:48 +00:00
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
2001-08-20 16:37:35 +00:00
|
|
|
private:
|
|
|
|
/// width in em
|
2001-08-21 14:20:50 +00:00
|
|
|
LyXLength wid_;
|
2001-08-20 16:37:35 +00:00
|
|
|
};
|
|
|
|
#endif
|