lyx_mirror/src/mathed/math_spaceinset.h

36 lines
583 B
C
Raw Normal View History

// -*- C++ -*-
#ifndef MATH_SPACEINSET_H
#define MATH_SPACEINSET_H
#include "math_inset.h"
#include "math_defs.h"
#ifdef __GNUG__
#pragma interface
#endif
/// Smart spaces
class MathSpaceInset : public MathInset {
public:
///
MathSpaceInset(int sp, MathInsetTypes ot = LM_OT_SPACE);
///
MathInset * Clone() const;
///
void draw(Painter &, int, int);
///
void Write(std::ostream &, bool fragile) const;
///
void WriteNormal(std::ostream &) const;
///
void Metrics(MathStyles st);
///
void SetSpace(int sp);
///
int GetSpace();
private:
///
int space_;
};
#endif