mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
a37064c0ac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5263 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
797 B
C++
44 lines
797 B
C++
#ifndef MATH_PARBOXINSET_H
|
|
#define MATH_PARBOXINSET_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "math_textinset.h"
|
|
|
|
// implements support for \parbox
|
|
|
|
class MathParboxInset : public MathTextInset {
|
|
public:
|
|
///
|
|
MathParboxInset();
|
|
///
|
|
MathParboxInset * asParboxInset() { return this; }
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
|
///
|
|
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_;
|
|
/// one of htb
|
|
char position_;
|
|
};
|
|
|
|
#endif
|