mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
1129104282
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2796 a592a061-630c-0410-9148-cb99ea01b6c8
40 lines
648 B
C++
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
|
|
|