2003-03-03 16:15:38 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_TABULARINSET_H
|
|
|
|
|
#define MATH_TABULARINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_gridinset.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Inset for things like \begin{tabular}...\end{tabular}
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathTabularInset : public MathGridInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathTabularInset(string const &, int m, int n);
|
|
|
|
|
///
|
|
|
|
|
MathTabularInset(string const &, int m, int n,
|
|
|
|
|
char valign, string const & halign);
|
|
|
|
|
///
|
|
|
|
|
MathTabularInset(string const &, char valign, string const & halign);
|
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const;
|
2003-03-03 16:15:38 +00:00
|
|
|
|
///
|
2003-06-02 10:03:27 +00:00
|
|
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
2003-03-03 16:15:38 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2003-03-03 16:15:38 +00:00
|
|
|
|
///
|
|
|
|
|
MathTabularInset * asTabularInset() { return this; }
|
|
|
|
|
///
|
|
|
|
|
MathTabularInset const * asTabularInset() const { return this; }
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
|
|
|
|
///
|
|
|
|
|
void maple(MapleStream &) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string name_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|