mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
fe87869cb7
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
863 B
C++
47 lines
863 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 & mi) const;
|
|
///
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
|
///
|
|
void metricsT(TextMetricsInfo const & mi) const;
|
|
///
|
|
void drawT(TextPainter &, int x, int y) const;
|
|
///
|
|
MathFracInset * asFracInset();
|
|
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void maplize(MapleStream &) const;
|
|
///
|
|
void octavize(OctaveStream &) const;
|
|
///
|
|
void mathmlize(MathMLStream &) const;
|
|
public:
|
|
///
|
|
const bool atop_;
|
|
};
|
|
|
|
#endif
|