lyx_mirror/src/mathed/math_sizeinset.h
André Pönitz 0024f42724 split super/subscript handling in new base class MathUpDownInset and
MathScriptInset/MathBigOpInset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2220 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-12 07:18:29 +00:00

39 lines
645 B
C++

// -*- C++ -*-
#ifndef MATHSIZEINSET_H
#define MATHSIZEINSET_H
#include "math_inset.h"
#include "math_defs.h"
#ifdef __GNUG__
#pragma interface
#endif
/** An inset for \scriptsize etc
\author André Poenitz
*/
class MathSizeInset : public MathInset {
public:
///
explicit MathSizeInset(MathStyles st);
///
virtual MathInset * clone() const;
///
void Metrics(MathStyles st, int asc = 0, int des = 0);
///
void draw(Painter &, int x, int baseline);
///
void Write(std::ostream &, bool fragile) const;
///
void WriteNormal(std::ostream &) const;
private:
///
char const * verbose() const;
///
MathStyles style_;
};
#endif