mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
2b8ef58dc0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3804 a592a061-630c-0410-9148-cb99ea01b6c8
42 lines
664 B
C++
42 lines
664 B
C++
// -*- C++ -*-
|
|
#ifndef MATHSIZEINSET_H
|
|
#define MATHSIZEINSET_H
|
|
|
|
#include "math_nestinset.h"
|
|
#include "math_defs.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
/** An inset for \scriptsize etc
|
|
\author André Pönitz
|
|
*/
|
|
|
|
class latexkeys;
|
|
|
|
class MathSizeInset : public MathNestInset {
|
|
public:
|
|
///
|
|
explicit MathSizeInset(latexkeys const * l);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
bool needsBraces() const { return false; }
|
|
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
|
|
private:
|
|
///
|
|
latexkeys const * key_;
|
|
};
|
|
|
|
#endif
|