X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_spaceinset.h;h=00dd1a80186af52b02f221ea0eec99eb67fa65d9;hb=57501b93064a6deed43e415beed45606054d86ad;hp=df88004c9aecb6eb66e903d1e2a3abfb781814d1;hpb=cd8d582c67a873f32e0d1fac5212cc42765d9ed6;p=lyx.git diff --git a/src/mathed/math_spaceinset.h b/src/mathed/math_spaceinset.h index df88004c9a..00dd1a8018 100644 --- a/src/mathed/math_spaceinset.h +++ b/src/mathed/math_spaceinset.h @@ -1,13 +1,19 @@ // -*- 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" -#ifdef __GNUG__ -#pragma interface -#endif /// Smart spaces class MathSpaceInset : public MathInset { @@ -15,19 +21,32 @@ public: /// explicit MathSpaceInset(int sp); /// - MathInset * clone() const; + explicit MathSpaceInset(std::string const & name); + /// + virtual std::auto_ptr clone() const; /// - void draw(Painter &, int, int); + MathSpaceInset const * asSpaceInset() const { return this; } /// - void Write(std::ostream &, bool fragile) const; + MathSpaceInset * asSpaceInset() { return this; } /// - void WriteNormal(std::ostream &) const; + void incSpace(); /// - void Metrics(MathStyles st, int asc = 0, int des = 0); + void metrics(MetricsInfo & mi, Dimension & dim) const; /// - bool isSpaceInset() const { return true; } + void draw(PainterInfo & pi, int x, int y) const; + /// - void incSpace(); + void normalize(NormalStream &) const; + /// + void validate(LaTeXFeatures & features) const; + /// + void maple(MapleStream &) const; + /// + void mathematica(MathematicaStream &) const; + /// + void octave(OctaveStream &) const; + /// + void write(WriteStream & os) const; private: /// int space_;