lyx_mirror/src/mathed/InsetMathDiagram.h

60 lines
1.1 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file InsetMathDiagram.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author André Pönitz
* \author Ronen Abravanel
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_DIAGRAM_H
#define MATH_DIAGRAM_H
#include "InsetMathGrid.h"
namespace lyx {
class InsetMathDiagram : public InsetMathGrid {
public:
///
explicit InsetMathDiagram(Buffer * buf);
///
void metrics(MetricsInfo &, Dimension &) const override;
///
void draw(PainterInfo & pi, int x, int y) const override;
///
InsetMathDiagram const * asDiagramInset() const { return this; }
///
int colsep() const override;
///
int rowsep() const override;
///
2020-12-26 19:04:36 +00:00
void write(TeXMathStream & os) const override;
///
void infoize(odocstream & os) const override;
///
void normalize(NormalStream &) const override;
///
void maple(MapleStream &) const override;
///
void validate(LaTeXFeatures & features) const override;
///
InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; }
private:
///
Inset * clone() const override;
};
} // namespace lyx
#endif