mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
747cd76667
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2234 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
|
|
#ifndef MATH_SUPPORT_H
|
|
#define MATH_SUPPORT_H
|
|
|
|
#include "lyxfont.h"
|
|
#include "math_defs.h"
|
|
|
|
class Painter;
|
|
class MathArray;
|
|
class MathMatrixInset;
|
|
|
|
extern char const * math_font_name[];
|
|
extern char const * latex_mathspace[];
|
|
|
|
int mathed_char_height(short type, int size, unsigned char c,
|
|
int & asc, int & des);
|
|
int mathed_char_width(short type, int size, unsigned char c);
|
|
void mathed_char_dim(short type, int size, unsigned char c,
|
|
int & asc, int & des, int & wid);
|
|
|
|
void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
|
|
|
|
LyXFont mathed_get_font(short type, int size);
|
|
|
|
void mathed_string_dim(short type, int size, string const & s,
|
|
int & asc, int & des, int & wid);
|
|
int mathed_string_height(short type, int size, string const & s,
|
|
int & asc, int & des);
|
|
int mathed_string_width(short type, int size, string const & s);
|
|
|
|
bool MathIsInset(short x);
|
|
bool MathIsAlphaFont(short x);
|
|
bool MathIsBOPS(short x);
|
|
bool MathIsSymbol(short x);
|
|
bool MathIsRelOp(unsigned char c, MathTextCodes f);
|
|
|
|
void drawStr(Painter & pain, short type, int siz,
|
|
int x, int y, string const & s);
|
|
void drawChar(Painter & pain, short type, int siz,
|
|
int x, int y, char c);
|
|
|
|
#endif
|