mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
c9c3b9b447
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2460 a592a061-630c-0410-9148-cb99ea01b6c8
37 lines
709 B
C++
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
|