2001-06-25 00:06:33 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATHSIZEINSET_H
|
|
|
|
|
#define MATHSIZEINSET_H
|
|
|
|
|
|
2001-08-03 17:10:22 +00:00
|
|
|
|
#include "math_nestinset.h"
|
2002-08-02 14:04:16 +00:00
|
|
|
|
#include "math_metricsinfo.h"
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** An inset for \scriptsize etc
|
2001-08-10 13:50:42 +00:00
|
|
|
|
\author Andr<EFBFBD> P<EFBFBD>nitz
|
2001-06-25 00:06:33 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2001-08-10 13:50:42 +00:00
|
|
|
|
class latexkeys;
|
|
|
|
|
|
2001-08-03 17:10:22 +00:00
|
|
|
|
class MathSizeInset : public MathNestInset {
|
2001-06-25 00:06:33 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2001-08-10 13:50:42 +00:00
|
|
|
|
explicit MathSizeInset(latexkeys const * l);
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
|
MathInset * clone() const;
|
2002-07-10 07:15:36 +00:00
|
|
|
|
/// we write extra braces in any case...
|
|
|
|
|
bool extraBraces() const { return true; }
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void metrics(MathMetricsInfo & st) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
2002-02-14 13:25:26 +00:00
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void write(WriteStream & os) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void normalize(NormalStream &) const;
|
2002-07-10 06:52:05 +00:00
|
|
|
|
///
|
|
|
|
|
void infoize(std::ostream & os) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
|
|
private:
|
2002-03-21 17:42:56 +00:00
|
|
|
|
///
|
2001-08-10 13:50:42 +00:00
|
|
|
|
latexkeys const * key_;
|
2002-07-17 15:57:03 +00:00
|
|
|
|
///
|
|
|
|
|
MathStyles const style_;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|