mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 23:12:31 +00:00
cbf29c8fdc
'native' \stackrel support remove MathInset::name_ member (sizeof(MathInset) == 20 on IA32 now); git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2457 a592a061-630c-0410-9148-cb99ea01b6c8
39 lines
621 B
C++
39 lines
621 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é Poenitz
|
|
*/
|
|
|
|
class MathSizeInset : public MathNestInset {
|
|
public:
|
|
///
|
|
explicit MathSizeInset(MathStyles st);
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathStyles st) const;
|
|
///
|
|
void draw(Painter &, int x, int y) const;
|
|
///
|
|
void write(std::ostream &, bool fragile) const;
|
|
///
|
|
void writeNormal(std::ostream &) const;
|
|
|
|
private:
|
|
///
|
|
char const * name() const;
|
|
///
|
|
MathStyles style_;
|
|
};
|
|
|
|
#endif
|