X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_spaceinset.h;h=00dd1a80186af52b02f221ea0eec99eb67fa65d9;hb=57501b93064a6deed43e415beed45606054d86ad;hp=31343c3fed6e021306d52d5ebed345711c3c51ef;hpb=84b7ffa3473faa9cfe66a974d2e0a5f9d6641187;p=lyx.git diff --git a/src/mathed/math_spaceinset.h b/src/mathed/math_spaceinset.h index 31343c3fed..00dd1a8018 100644 --- a/src/mathed/math_spaceinset.h +++ b/src/mathed/math_spaceinset.h @@ -1,28 +1,54 @@ +// -*- C++ -*- +/** + * \file math_spaceinset.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + #ifndef MATH_SPACEINSET_H #define MATH_SPACEINSET_H #include "math_inset.h" -#include "math_defs.h" + /// Smart spaces -class MathSpaceInset: public MathedInset { +class MathSpaceInset : public MathInset { public: /// - MathSpaceInset(int sp, short ot = LM_OT_SPACE, short st = LM_ST_TEXT); + explicit MathSpaceInset(int sp); + /// + explicit MathSpaceInset(std::string const & name); + /// + virtual std::auto_ptr clone() const; + /// + MathSpaceInset const * asSpaceInset() const { return this; } + /// + MathSpaceInset * asSpaceInset() { return this; } + /// + void incSpace(); + /// + void metrics(MetricsInfo & mi, Dimension & dim) const; + /// + void draw(PainterInfo & pi, int x, int y) const; + /// - MathedInset * Clone(); + void normalize(NormalStream &) const; /// - void draw(Painter &, int, int); + void validate(LaTeXFeatures & features) const; /// - void Write(std::ostream &, bool fragile); + void maple(MapleStream &) const; /// - void Metrics(); + void mathematica(MathematicaStream &) const; /// - void SetSpace(int sp); + void octave(OctaveStream &) const; /// - int GetSpace(); -protected: + void write(WriteStream & os) const; +private: /// - int space; + int space_; }; #endif