lyx_mirror/src/mathed/math_scriptinset.h
André Pönitz 1129104282 changed cursor movement/deletion behaviour in super/subscripts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2796 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-24 16:25:06 +00:00

40 lines
648 B
C++

// -*- C++ -*-
#ifndef MATH_SCRIPTINSET_H
#define MATH_SCRIPTINSET_H
#include "math_nestinset.h"
#ifdef __GNUG__
#pragma interface
#endif
/** Inset for super- and subscripts
\author André Pönitz
*/
class MathScriptInset : public MathNestInset {
public:
///
explicit MathScriptInset(bool up);
///
MathInset * clone() const;
///
void write(std::ostream &, bool fragile) const;
///
void metrics(MathStyles st) const;
///
void draw(Painter &, int x, int y) const;
///
MathScriptInset const * asScriptInset() const;
///
bool up() const { return up_; }
///
bool down() const { return !up_; }
private:
///
bool up_;
};
#endif