mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
85a5ea7bfc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2150 a592a061-630c-0410-9148-cb99ea01b6c8
36 lines
583 B
C++
36 lines
583 B
C++
// -*- 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
|