#include "InsetMathFracBase.h"
+namespace lyx {
+
+
/// Fraction like objects (frac, binom)
class InsetMathFrac : public InsetMathFracBase {
public:
FRAC,
OVER,
ATOP,
- NICEFRAC
+ NICEFRAC,
+ UNITFRAC,
+ UNIT
};
///
- explicit InsetMathFrac(Kind kind = FRAC);
+ explicit InsetMathFrac(Kind kind = FRAC, idx_type ncells = 2);
+ ///
+ bool idxRight(Cursor &) const;
+ ///
+ bool idxLeft(Cursor &) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
/// identifies FracInsets
InsetMathFrac const * asFracInset() const;
///
- std::string name() const;
+ docstring name() const;
///
bool extraBraces() const;
///
void octave(OctaveStream &) const;
///
- void mathmlize(MathMLStream &) const;
+ void mathmlize(MathStream &) const;
///
void validate(LaTeXFeatures & features) const;
public:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
///
Kind kind_;
};
+
+
+} // namespace lyx
#endif