lyx_mirror/src/mathed/math_symbolinset.h
André Pönitz c9c3b9b447 move things around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2460 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-09 09:19:18 +00:00

37 lines
709 B
C++

// -*- C++ -*-
#ifndef MATH_SYMBOLINSET_H
#define MATH_SYMBOLINSET_H
#include "math_diminset.h"
#include "LString.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;
private:
///
latexkeys const * sym_;
/// cache for the symbol's onscreen string representation
mutable string ssym_;
};
#endif