2001-02-13 13:28:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_ACCENTINSET_H
|
|
|
|
#define MATH_ACCENTINSET_H
|
|
|
|
|
|
|
|
#include "math_inset.h"
|
2001-02-13 19:10:18 +00:00
|
|
|
#include "mathed/support.h"
|
|
|
|
#include "math_defs.h"
|
2001-02-13 13:28:32 +00:00
|
|
|
|
|
|
|
/// Accents
|
2001-02-28 11:56:36 +00:00
|
|
|
class MathAccentInset : public MathedInset {
|
2001-02-13 13:28:32 +00:00
|
|
|
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();
|
|
|
|
///
|
2001-02-28 11:56:36 +00:00
|
|
|
int getAccentCode() const;
|
2001-02-13 13:28:32 +00:00
|
|
|
protected:
|
|
|
|
///
|
|
|
|
byte c;
|
|
|
|
///
|
|
|
|
MathedTextCodes fn;
|
|
|
|
///
|
|
|
|
int code;
|
|
|
|
///
|
|
|
|
MathedInset * inset;
|
|
|
|
///
|
|
|
|
int dh, dy;
|
|
|
|
};
|
2001-02-28 11:56:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
int MathAccentInset::getAccentCode() const
|
|
|
|
{
|
|
|
|
return code;
|
|
|
|
}
|
2001-02-13 13:28:32 +00:00
|
|
|
#endif
|