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
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
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-05-30 07:09:54 +00:00
|
|
|
void metrics(MathMetricsInfo & st) const;
|
2001-09-10 09:35:12 +00:00
|
|
|
///
|
2001-10-12 12:02:49 +00:00
|
|
|
MathArrayInset * asArrayInset() { 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
|