mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
51e0c8bd1f
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2413 a592a061-630c-0410-9148-cb99ea01b6c8
42 lines
725 B
C++
42 lines
725 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_DECORATIONINSET_H
|
|
#define MATH_DECORATIONINSET_H
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/** Decorations and accents over (below) a math object
|
|
\author Alejandro Aguilar Sierra
|
|
*/
|
|
|
|
struct latexkeys;
|
|
|
|
class MathDecorationInset : public MathNestInset {
|
|
public:
|
|
///
|
|
explicit MathDecorationInset(latexkeys const *);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void draw(Painter &, int, int);
|
|
///
|
|
void write(std::ostream &, bool fragile) const;
|
|
///
|
|
void metrics(MathStyles st);
|
|
///
|
|
void writeNormal(std::ostream & os) const;
|
|
private:
|
|
///
|
|
latexkeys const * key_;
|
|
///
|
|
bool upper_;
|
|
/// height of deco
|
|
int dh_;
|
|
/// vertical offset of deco
|
|
int dy_;
|
|
};
|
|
#endif
|