2003-05-07 07:46:04 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_MAKEBOXINSET_H
|
|
|
|
#define MATH_MAKEBOXINSET_H
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Extra nesting: \\makebox.
|
|
|
|
* \author Ling Li
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
|
|
|
|
|
|
|
// consolidate with MathFrameboxInset?
|
|
|
|
|
|
|
|
class MathMakeboxInset : public MathNestInset {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathMakeboxInset();
|
|
|
|
///
|
|
|
|
MathInset * clone() const;
|
|
|
|
///
|
2003-05-28 13:22:36 +00:00
|
|
|
Dimension metrics(MetricsInfo & mi) const;
|
2003-05-07 07:46:04 +00:00
|
|
|
///
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
|
|
|
///
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
/// write normalized content
|
|
|
|
void normalize(NormalStream & ns) const;
|
|
|
|
///
|
|
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
|
|
|
private:
|
|
|
|
/// width of '[' in current font
|
|
|
|
mutable int w_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|