mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
858355fb69
(lots of subsequent changes) - ascii art drawing for \frac and \sqrt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3780 a592a061-630c-0410-9148-cb99ea01b6c8
51 lines
937 B
C++
51 lines
937 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_FUNCINSET_H
|
|
#define MATH_FUNCINSET_H
|
|
|
|
#include "math_diminset.h"
|
|
#include "math_defs.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/**
|
|
Functions or LaTeX names for objects that I don't know how to draw.
|
|
*/
|
|
class MathFuncInset : public MathDimInset {
|
|
public:
|
|
///
|
|
explicit MathFuncInset(string const & nm);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
string const & name() const;
|
|
/// identifies FuncInsets
|
|
MathFuncInset * asFuncInset() { return this; }
|
|
///
|
|
void setName(string const &);
|
|
///
|
|
bool match(MathInset * p) const;
|
|
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void maplize(MapleStream &) const;
|
|
///
|
|
void mathmlize(MathMLStream &) const;
|
|
///
|
|
void octavize(OctaveStream &) const;
|
|
///
|
|
void write(WriteStream &) const;
|
|
private:
|
|
///
|
|
string name_;
|
|
///
|
|
mutable LyXFont font_;
|
|
};
|
|
#endif
|