mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
c80a4abde9
\sum_i{i=1}^n i^2 is now parsed properly. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3025 a592a061-630c-0410-9148-cb99ea01b6c8
41 lines
710 B
C++
41 lines
710 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_FRACINSET_H
|
|
#define MATH_FRACINSET_H
|
|
|
|
#include "math_fracbase.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/** Fraction like objects (frac, binom)
|
|
\author Alejandro Aguilar Sierra
|
|
*/
|
|
class MathFracInset : public MathFracbaseInset {
|
|
public:
|
|
///
|
|
explicit MathFracInset(bool atop = false);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
MathFracInset * asFracInset();
|
|
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void maplize(MapleStream &) const;
|
|
///
|
|
void mathmlize(MathMLStream &) const;
|
|
public:
|
|
///
|
|
const bool atop_;
|
|
};
|
|
|
|
#endif
|