mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
a31e65aa9f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3031 a592a061-630c-0410-9148-cb99ea01b6c8
43 lines
758 B
C++
43 lines
758 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_SPACEINSET_H
|
|
#define MATH_SPACEINSET_H
|
|
|
|
#include "math_diminset.h"
|
|
#include "math_defs.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/// Smart spaces
|
|
class MathSpaceInset : public MathDimInset {
|
|
public:
|
|
///
|
|
explicit MathSpaceInset(int sp);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
MathSpaceInset const * asSpaceInset() const { return this; }
|
|
///
|
|
MathSpaceInset * asSpaceInset() { return this; }
|
|
///
|
|
void incSpace();
|
|
///
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void maplize(MapleStream &) const;
|
|
///
|
|
void octavize(OctaveStream &) const;
|
|
///
|
|
void write(WriteStream & os) const;
|
|
private:
|
|
///
|
|
int space_;
|
|
};
|
|
#endif
|