lyx_mirror/src/mathed/math_fracinset.h

47 lines
1.0 KiB
C
Raw Normal View History

// -*- C++ -*-
#ifndef MATH_FRACINSET_H
#define MATH_FRACINSET_H
#include "math_nestinset.h"
#ifdef __GNUG__
#pragma interface
#endif
/** Fraction like objects (frac, stackrel, binom)
\author Alejandro Aguilar Sierra
*/
class MathFracInset : public MathNestInset {
public:
///
explicit MathFracInset(const string & name);
///
virtual MathInset * clone() const;
///
virtual void write(std::ostream &, bool fragile) const;
///
virtual void writeNormal(std::ostream &) const;
///
virtual void metrics(MathStyles st);
///
virtual void draw(Painter &, int x, int baseline);
///
virtual bool idxUp(int &, int &) const;
///
virtual bool idxDown(int &, int &) const;
///
virtual bool idxLeft(int &, int &) const;
///
virtual bool idxRight(int &, int &) const;
///
virtual bool idxFirstUp(int & idx, int & pos) const;
///
virtual bool idxFirstDown(int & idx, int & pos) const;
///
virtual bool idxLastUp(int & idx, int & pos) const;
///
virtual bool idxLastDown(int & idx, int & pos) const;
};
#endif