lyx_mirror/src/mathed/math_symbolinset.h
André Pönitz e4c58b72be try to do with super- and subscripts what TeX does
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2722 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-11 10:58:17 +00:00

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