mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
e4c58b72be
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2722 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
815 B
C++
45 lines
815 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;
|
|
/// identifies things that can get \limits or \nolimits
|
|
bool takesLimits() const;
|
|
|
|
private:
|
|
///
|
|
MathTextCodes code() const;
|
|
///
|
|
MathTextCodes code2() const;
|
|
|
|
///
|
|
latexkeys const * sym_;
|
|
///
|
|
mutable int h_;
|
|
};
|
|
#endif
|