2001-02-13 13:28:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
|
|
|
#ifndef MATH_SUPPORT_H
|
|
|
|
#define MATH_SUPPORT_H
|
|
|
|
|
|
|
|
#include "lyxfont.h"
|
|
|
|
|
|
|
|
#ifndef byte
|
|
|
|
#define byte unsigned char
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class Painter;
|
2001-02-13 19:10:18 +00:00
|
|
|
class MathedArray;
|
|
|
|
class MathParInset;
|
2001-02-13 13:28:32 +00:00
|
|
|
|
|
|
|
struct math_deco_struct {
|
|
|
|
int code;
|
2001-02-16 09:25:43 +00:00
|
|
|
float const * data;
|
2001-02-13 13:28:32 +00:00
|
|
|
int angle;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern char const * math_font_name[];
|
|
|
|
extern char const * latex_mathspace[];
|
|
|
|
|
|
|
|
extern int mathed_char_height(short type, int size, byte c,
|
|
|
|
int & asc, int & des);
|
|
|
|
extern int mathed_char_width(short type, int size, byte c);
|
|
|
|
extern void mathed_draw_deco(Painter & pain, int x, int y,
|
|
|
|
int w, int h, int code);
|
|
|
|
|
|
|
|
extern LyXFont mathed_get_font(short type, int size);
|
|
|
|
extern int mathed_string_height(short type, int size, string const & s,
|
|
|
|
int & asc, int & des);
|
|
|
|
extern int mathed_string_width(short type, int size, string const & s);
|
|
|
|
extern math_deco_struct const * search_deco(int code);
|
2001-02-13 19:10:18 +00:00
|
|
|
|
|
|
|
/// math_parser.C
|
|
|
|
extern
|
2001-02-20 17:45:56 +00:00
|
|
|
void mathed_parse(MathedArray & data, unsigned flags, MathParInset ** mt);
|
2001-02-13 19:10:18 +00:00
|
|
|
|
|
|
|
/// math_parser.C
|
|
|
|
extern
|
|
|
|
void mathed_parser_file(std::istream &, int);
|
|
|
|
/// math_parser.C
|
|
|
|
extern
|
|
|
|
int mathed_parser_lineno();
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsInset(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsFont(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsAlphaFont(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsActive(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsUp(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsDown(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsScript(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsBOPS(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsBinary(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool MathIsSymbol(short x);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_eqn_type(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_matrix_type(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_multiline(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_ams(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_singlely_numbered(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_multi_numbered(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_numbered(short int type);
|
|
|
|
|
|
|
|
extern
|
|
|
|
bool is_multicolumn(short int type);
|
|
|
|
|
2001-02-13 13:28:32 +00:00
|
|
|
#endif
|