2006-02-22 12:26:06 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
* \file InsetMathXYMatrix.h
|
2006-02-22 12:26:06 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2006-02-22 12:26:06 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MATH_XYMATRIX_H
|
|
|
|
#define MATH_XYMATRIX_H
|
|
|
|
|
2007-04-28 12:58:49 +00:00
|
|
|
#include "Length.h"
|
2006-09-17 09:14:18 +00:00
|
|
|
#include "InsetMathGrid.h"
|
2006-02-22 12:26:06 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2006-09-16 18:11:38 +00:00
|
|
|
class InsetMathXYMatrix : public InsetMathGrid {
|
2006-02-22 12:26:06 +00:00
|
|
|
public:
|
|
|
|
///
|
2009-12-13 21:32:08 +00:00
|
|
|
InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
|
|
|
|
bool equal_spacing = false);
|
2006-02-22 12:26:06 +00:00
|
|
|
///
|
2007-09-21 20:39:47 +00:00
|
|
|
void metrics(MetricsInfo &, Dimension &) const;
|
2006-02-22 12:26:06 +00:00
|
|
|
///
|
2006-09-16 18:11:38 +00:00
|
|
|
InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
|
2006-02-22 12:26:06 +00:00
|
|
|
///
|
|
|
|
virtual int colsep() const;
|
|
|
|
///
|
|
|
|
virtual int rowsep() const;
|
|
|
|
|
|
|
|
///
|
|
|
|
void normalize();
|
|
|
|
///
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
///
|
2006-10-22 10:15:23 +00:00
|
|
|
void infoize(odocstream & os) const;
|
2006-02-22 12:26:06 +00:00
|
|
|
///
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
///
|
|
|
|
void maple(MapleStream &) const;
|
2006-10-31 19:10:30 +00:00
|
|
|
///
|
|
|
|
void validate(LaTeXFeatures & features) const;
|
2009-07-16 19:00:24 +00:00
|
|
|
///
|
|
|
|
InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
|
2010-07-29 15:38:01 +00:00
|
|
|
///
|
|
|
|
void mathmlize(MathStream &) const;
|
|
|
|
///
|
|
|
|
void htmlize(HtmlStream &) const;
|
2009-07-16 19:00:24 +00:00
|
|
|
|
2006-02-22 12:26:06 +00:00
|
|
|
private:
|
|
|
|
///
|
2007-08-30 18:03:17 +00:00
|
|
|
virtual Inset * clone() const;
|
2006-10-31 19:10:30 +00:00
|
|
|
/// extra spacing, may be empty
|
2007-04-28 12:58:49 +00:00
|
|
|
Length spacing_;
|
2006-10-31 19:10:30 +00:00
|
|
|
///
|
|
|
|
char spacing_code_;
|
2009-12-13 21:32:08 +00:00
|
|
|
///
|
|
|
|
bool equal_spacing_;
|
2006-02-22 12:26:06 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
2006-02-22 12:26:06 +00:00
|
|
|
#endif
|