2001-06-25 00:06:33 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_ARRAYINSET_H
|
|
|
|
|
#define MATH_ARRAYINSET_H
|
|
|
|
|
|
2001-07-17 07:38:41 +00:00
|
|
|
|
#include "math_gridinset.h"
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
|
|
|
2002-12-01 22:59:25 +00:00
|
|
|
|
/**
|
2002-09-11 08:26:02 +00:00
|
|
|
|
* Inset for things like \begin{array}...\end{array}
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
|
|
class MathArrayInset : public MathGridInset {
|
2002-03-21 17:42:56 +00:00
|
|
|
|
public:
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2002-02-14 14:52:23 +00:00
|
|
|
|
MathArrayInset(string const &, int m, int n);
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2002-02-14 14:52:23 +00:00
|
|
|
|
MathArrayInset(string const &, int m, int n,
|
|
|
|
|
char valign, string const & halign);
|
2001-11-28 13:09:40 +00:00
|
|
|
|
///
|
2002-02-14 14:52:23 +00:00
|
|
|
|
MathArrayInset(string const &, char valign, string const & halign);
|
2001-11-07 13:15:59 +00:00
|
|
|
|
/// convienience constructor from whitespace/newline seperated data
|
2002-02-14 14:52:23 +00:00
|
|
|
|
MathArrayInset(string const &, string const & str);
|
2001-10-12 12:02:49 +00:00
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
|
MathInset * clone() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2002-10-02 06:38:49 +00:00
|
|
|
|
void metrics(MathMetricsInfo & mi) const;
|
|
|
|
|
///
|
|
|
|
|
void draw(MathPainterInfo & pi, int x, int y) const;
|
2001-09-10 09:35:12 +00:00
|
|
|
|
///
|
2001-10-12 12:02:49 +00:00
|
|
|
|
MathArrayInset * asArrayInset() { return this; }
|
2002-08-09 10:22:35 +00:00
|
|
|
|
///
|
|
|
|
|
MathArrayInset const * asArrayInset() const { return this; }
|
2001-11-09 08:35:57 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
|
|
|
|
void maplize(MapleStream &) const;
|
2002-02-14 14:52:23 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string name_;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|