lyx_mirror/src/mathed/InsetMathXYMatrix.h
Georg Baum f8b9d95ee4 Support all xymatrix arguments
* src/LaTeXFeatures.C
	(LaTeXFeatures::getPackages): Add package xy

	* src/mathed/InsetMathXYMatrix.[Ch]
	(spacing_): New
	(spacing_code_): New
	(validate): New, require xy package

	* src/mathed/InsetMathXYMatrix.C
	(InsetMathXYMatrix::write): write spacing_ and spacing_code_
	(InsetMathXYMatrix::infoize): output spacing_ and spacing_code_

	* src/mathed/MathFactory.C
	(createInsetMath): handle special arguments of xymatrix

	* src/mathed/MathParser.C
	(Parser::parse1): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15643 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 19:10:30 +00:00

60 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file InsetMathXYMatrix.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef MATH_XYMATRIX_H
#define MATH_XYMATRIX_H
#include "lyxlength.h"
#include "InsetMathGrid.h"
namespace lyx {
class InsetMathXYMatrix : public InsetMathGrid {
public:
///
InsetMathXYMatrix(LyXLength const & = LyXLength(), char c = '\0');
///
void metrics(MetricsInfo &, Dimension &) const;
///
InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
///
virtual int colsep() const;
///
virtual int rowsep() const;
///
void normalize();
///
void write(WriteStream & os) const;
///
void infoize(odocstream & os) const;
///
void normalize(NormalStream &) const;
///
void maple(MapleStream &) const;
///
void validate(LaTeXFeatures & features) const;
private:
///
virtual std::auto_ptr<InsetBase> doClone() const;
/// extra spacing, may be empty
LyXLength spacing_;
///
char spacing_code_;
};
} // namespace lyx
#endif