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.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MATH_XYMATRIX_H
|
|
|
|
|
#define MATH_XYMATRIX_H
|
|
|
|
|
|
|
|
|
|
#include "lyxlength.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:
|
|
|
|
|
///
|
2006-10-31 19:10:30 +00:00
|
|
|
|
InsetMathXYMatrix(LyXLength const & = LyXLength(), char c = '\0');
|
2006-02-22 12:26:06 +00:00
|
|
|
|
///
|
2006-11-28 15:15:49 +00:00
|
|
|
|
bool 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:
|
|
|
|
|
///
|
|
|
|
|
virtual std::auto_ptr<InsetBase> doClone() const;
|
2006-10-31 19:10:30 +00:00
|
|
|
|
/// extra spacing, may be empty
|
|
|
|
|
LyXLength spacing_;
|
|
|
|
|
///
|
|
|
|
|
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
|