mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
2806246e1e
\mathbb) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2647 a592a061-630c-0410-9148-cb99ea01b6c8
43 lines
731 B
C++
43 lines
731 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_SYMBOLINSET_H
|
|
#define MATH_SYMBOLINSET_H
|
|
|
|
#include "math_diminset.h"
|
|
|
|
struct latexkeys;
|
|
|
|
// "normal" symbols that don't take limits and don't grow in displayed
|
|
// formulae
|
|
|
|
class MathSymbolInset : public MathDimInset {
|
|
public:
|
|
///
|
|
explicit MathSymbolInset(latexkeys const *);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void write(std::ostream &, bool fragile) const;
|
|
///
|
|
void writeNormal(std::ostream &) const;
|
|
///
|
|
void metrics(MathStyles st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
bool isRelOp() const;
|
|
///
|
|
bool isScriptable() const;
|
|
|
|
private:
|
|
///
|
|
MathTextCodes code() const;
|
|
///
|
|
MathTextCodes code2() const;
|
|
|
|
///
|
|
latexkeys const * sym_;
|
|
///
|
|
mutable int h_;
|
|
};
|
|
#endif
|