2010-09-19 22:12:06 +00:00
|
|
|
// -*- 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:
|
|
|
|
///
|
2019-09-15 21:56:17 +00:00
|
|
|
explicit InsetMathDiagram(Buffer * buf);
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void metrics(MetricsInfo &, Dimension &) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void draw(PainterInfo & pi, int x, int y) const override;
|
2016-11-19 20:25:34 +00:00
|
|
|
///
|
2010-09-19 22:12:06 +00:00
|
|
|
InsetMathDiagram const * asDiagramInset() const { return this; }
|
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
int colsep() const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
int rowsep() const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
|
|
|
|
///
|
2020-12-26 19:04:36 +00:00
|
|
|
void write(TeXMathStream & os) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void infoize(odocstream & os) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void normalize(NormalStream &) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void maple(MapleStream &) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
void validate(LaTeXFeatures & features) const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; }
|
2010-09-19 22:12:06 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
2020-10-01 07:42:11 +00:00
|
|
|
Inset * clone() const override;
|
2010-09-19 22:12:06 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|