2002-07-08 11:29:51 +00:00
|
|
|
#ifndef MATH_PARBOXINSET_H
|
|
|
|
#define MATH_PARBOXINSET_H
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
class MathParboxInset : public MathNestInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathParboxInset();
|
|
|
|
///
|
|
|
|
MathParboxInset * asParboxInset() { return this; }
|
|
|
|
///
|
|
|
|
MathInset * clone() const;
|
|
|
|
///
|
|
|
|
void metrics(MathMetricsInfo & mi) const;
|
|
|
|
///
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
|
|
|
///
|
|
|
|
void infoize(std::ostream & os) const;
|
|
|
|
///
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
///
|
|
|
|
void setWidth(string const & width);
|
|
|
|
///
|
|
|
|
void setPosition(string const & pos);
|
|
|
|
private:
|
|
|
|
/// width on screen
|
|
|
|
int lyx_width_;
|
|
|
|
/// width for TeX
|
|
|
|
string tex_width_;
|
2002-07-09 08:24:33 +00:00
|
|
|
/// htb
|
2002-07-08 11:29:51 +00:00
|
|
|
char position_;
|
2002-07-09 08:24:33 +00:00
|
|
|
/// cached metrics
|
|
|
|
mutable std::vector<MathXArray::Row> rows_;
|
2002-07-08 11:29:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|