lyx_mirror/src/mathed/math_unknowninset.h
André Pönitz 858355fb69 - reduce sizeof(MathCharInset) by 20 by better font caching
(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
2002-03-19 16:55:58 +00:00

51 lines
970 B
C++

// -*- C++ -*-
#ifndef MATH_UNKNOWNINSET_H
#define MATH_UNKNOWNINSET_H
#include "math_diminset.h"
#include "math_defs.h"
#ifdef __GNUG__
#pragma interface
#endif
/**
Unknowntions or LaTeX names for objects that we really don't know
*/
class MathUnknownInset : public MathDimInset {
public:
///
explicit MathUnknownInset(string const & name);
///
MathInset * clone() const;
///
void metrics(MathMetricsInfo const & st) const;
///
void draw(Painter &, int x, int y) const;
///
string const & name() const;
/// identifies UnknownInsets
MathUnknownInset const * asUnknownInset() const { 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