lyx_mirror/src/mathed/math_accentinset.h
Lars Gullik Bjønnes 7f6bd7f12d mathed cleanup, change mask for tmpdir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1641 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-28 11:56:36 +00:00

48 lines
739 B
C++

// -*- C++ -*-
#ifndef MATH_ACCENTINSET_H
#define MATH_ACCENTINSET_H
#include "math_inset.h"
#include "mathed/support.h"
#include "math_defs.h"
/// Accents
class MathAccentInset : public MathedInset {
public:
///
MathAccentInset(byte, MathedTextCodes, int, short st = LM_ST_TEXT);
///
MathAccentInset(MathedInset *, int, short st = LM_ST_TEXT);
///
~MathAccentInset();
///
MathedInset * Clone();
///
void draw(Painter &, int, int);
///
void Write(std::ostream &, bool fragile);
///
void Metrics();
///
int getAccentCode() const;
protected:
///
byte c;
///
MathedTextCodes fn;
///
int code;
///
MathedInset * inset;
///
int dh, dy;
};
inline
int MathAccentInset::getAccentCode() const
{
return code;
}
#endif