2002-07-17 10:25:33 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_FONTOLDINSET_H
|
|
|
|
|
#define MATH_FONTOLDINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Old-style font changes
|
2002-09-11 08:26:02 +00:00
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-07-17 10:25:33 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class latexkeys;
|
|
|
|
|
|
|
|
|
|
class MathFontOldInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit MathFontOldInset(latexkeys const * key);
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
2002-07-18 11:02:33 +00:00
|
|
|
|
/// we are in text mode.
|
|
|
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
2002-07-17 10:25:33 +00:00
|
|
|
|
/// we write extra braces in any case...
|
|
|
|
|
bool extraBraces() const { return true; }
|
|
|
|
|
///
|
2003-05-28 13:22:36 +00:00
|
|
|
|
Dimension metrics(MetricsInfo & mi) const;
|
2002-07-17 10:25:33 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2002-07-17 10:25:33 +00:00
|
|
|
|
///
|
2003-05-28 13:22:36 +00:00
|
|
|
|
void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
|
2002-07-17 10:25:33 +00:00
|
|
|
|
///
|
|
|
|
|
void drawT(TextPainter & pi, int x, int y) const;
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
|
|
|
|
void infoize(std::ostream & os) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// the font to be used on screen
|
|
|
|
|
latexkeys const * key_;
|
|
|
|
|
};
|
|
|
|
|
#endif
|