lyx_mirror/src/mathed/InsetMathSize.h

64 lines
1.3 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file InsetMathSize.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATHSIZEINSET_H
#define MATHSIZEINSET_H
2020-12-02 20:34:28 +00:00
#include "FontEnums.h"
#include "InsetMathNest.h"
namespace lyx {
class latexkeys;
class MetricsInfo;
/// An inset for \scriptsize etc.
class InsetMathSize : public InsetMathNest {
public:
///
explicit InsetMathSize(Buffer * buf, latexkeys const * l);
/// we write extra braces in any case...
bool extraBraces() const override { return true; }
///
void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
2020-10-03 12:42:14 +00:00
void draw(PainterInfo &, int x, int y) const override;
///
2020-12-26 19:04:36 +00:00
void write(TeXMathStream & os) const override;
///
void normalize(NormalStream &) const override;
///
void infoize(odocstream & os) const override;
///
2020-12-26 19:02:46 +00:00
void mathmlize(MathMLStream &) const override;
///
void htmlize(HtmlStream &) const override;
///
void validate(LaTeXFeatures &) const override;
///
InsetCode lyxCode() const override { return MATH_SIZE_CODE; }
private:
Inset * clone() const override;
///
latexkeys const * key_;
///
MathStyle const style_;
};
} // namespace lyx
#endif