2001-02-13 13:28:32 +00:00
|
|
|
// -*- C++ -*-
|
2001-07-27 10:08:04 +00:00
|
|
|
#ifndef MATH_SYMBOLINSET_H
|
|
|
|
#define MATH_SYMBOLINSET_H
|
2001-02-13 13:28:32 +00:00
|
|
|
|
2001-08-03 17:55:10 +00:00
|
|
|
#include "math_diminset.h"
|
2001-02-13 13:28:32 +00:00
|
|
|
|
2001-07-26 14:37:09 +00:00
|
|
|
struct latexkeys;
|
|
|
|
|
2001-08-06 17:20:26 +00:00
|
|
|
// "normal" symbols that don't take limits and don't grow in displayed
|
|
|
|
// formulae
|
|
|
|
|
2001-08-03 17:55:10 +00:00
|
|
|
class MathSymbolInset : public MathDimInset {
|
2001-02-13 13:28:32 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-07-27 10:08:04 +00:00
|
|
|
explicit MathSymbolInset(latexkeys const *);
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
MathInset * clone() const;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-10-19 11:25:48 +00:00
|
|
|
void write(MathWriteInfo & os) const;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-07-26 06:56:43 +00:00
|
|
|
void writeNormal(std::ostream &) const;
|
2001-04-25 15:43:57 +00:00
|
|
|
///
|
2001-10-19 11:25:48 +00:00
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
2001-06-27 14:10:35 +00:00
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
void draw(Painter &, int x, int y) const;
|
2001-08-09 08:53:16 +00:00
|
|
|
///
|
|
|
|
bool isRelOp() const;
|
2001-08-30 22:42:26 +00:00
|
|
|
///
|
|
|
|
bool isScriptable() const;
|
2001-09-11 10:58:17 +00:00
|
|
|
/// identifies things that can get \limits or \nolimits
|
|
|
|
bool takesLimits() const;
|
2001-08-03 17:55:10 +00:00
|
|
|
|
2001-11-07 08:51:35 +00:00
|
|
|
///
|
|
|
|
string octavize() const;
|
|
|
|
///
|
|
|
|
string maplize() const;
|
|
|
|
///
|
|
|
|
string mathmlize() const;
|
2001-06-27 14:10:35 +00:00
|
|
|
private:
|
2001-08-30 22:42:26 +00:00
|
|
|
///
|
|
|
|
MathTextCodes code() const;
|
2001-08-31 21:15:57 +00:00
|
|
|
///
|
|
|
|
MathTextCodes code2() const;
|
2001-08-30 22:42:26 +00:00
|
|
|
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-07-26 14:37:09 +00:00
|
|
|
latexkeys const * sym_;
|
2001-08-30 22:42:26 +00:00
|
|
|
///
|
|
|
|
mutable int h_;
|
2001-10-22 15:37:49 +00:00
|
|
|
///
|
|
|
|
mutable MathMetricsInfo mi_;
|
2001-02-13 13:28:32 +00:00
|
|
|
};
|
|
|
|
#endif
|