lyx_mirror/src/mathed/math_makeboxinset.h
André Pönitz 38fce2feac Prepare mathed for unified two-stage drawing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7059 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-28 13:22:36 +00:00

41 lines
765 B
C++

// -*- 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;
///
Dimension metrics(MetricsInfo & mi) const;
///
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