2002-07-08 11:29:51 +00:00
|
|
|
#ifndef MATH_PARBOXINSET_H
|
|
|
|
#define MATH_PARBOXINSET_H
|
|
|
|
|
2002-07-31 17:26:14 +00:00
|
|
|
#include "math_textinset.h"
|
2002-07-08 11:29:51 +00:00
|
|
|
|
2002-07-31 17:26:14 +00:00
|
|
|
// implements support for \parbox
|
|
|
|
|
|
|
|
class MathParboxInset : public MathTextInset {
|
2002-07-08 11:29:51 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathParboxInset();
|
|
|
|
///
|
|
|
|
MathParboxInset * asParboxInset() { return this; }
|
|
|
|
///
|
|
|
|
MathInset * clone() const;
|
2002-07-18 11:02:33 +00:00
|
|
|
///
|
|
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
2002-07-08 11:29:51 +00:00
|
|
|
///
|
|
|
|
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-31 17:26:14 +00:00
|
|
|
/// one of htb
|
2002-07-08 11:29:51 +00:00
|
|
|
char position_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|