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:
|
|
|
|
///
|
2007-04-28 12:58:49 +00:00
|
|
|
InsetMathXYMatrix(Length const & = Length(), char c = '\0');
|
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;
|
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_;
|
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
|