mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
40 lines
635 B
C
40 lines
635 B
C
|
// -*- C++ -*-
|
||
|
#ifndef MATH_ACCENTINSET_H
|
||
|
#define MATH_ACCENTINSET_H
|
||
|
|
||
|
#include "math_inset.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 { return code; }
|
||
|
|
||
|
protected:
|
||
|
///
|
||
|
byte c;
|
||
|
///
|
||
|
MathedTextCodes fn;
|
||
|
///
|
||
|
int code;
|
||
|
///
|
||
|
MathedInset * inset;
|
||
|
///
|
||
|
int dh, dy;
|
||
|
};
|
||
|
#endif
|