2002-08-29 09:57:57 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file math_frameboxinset.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2002-08-29 09:57:57 +00:00
|
|
|
|
#ifndef MATH_FRAMEBOXINSET_H
|
|
|
|
|
#define MATH_FRAMEBOXINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
|
|
|
2003-08-19 13:00:56 +00:00
|
|
|
|
/// Extra nesting
|
2002-08-29 09:57:57 +00:00
|
|
|
|
class MathFrameboxInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathFrameboxInset();
|
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const;
|
2002-08-29 09:57:57 +00:00
|
|
|
|
///
|
2003-06-02 10:03:27 +00:00
|
|
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
2002-08-29 09:57:57 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2002-08-29 09:57:57 +00:00
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
/// write normalized content
|
|
|
|
|
void normalize(NormalStream & ns) const;
|
2003-03-03 11:55:18 +00:00
|
|
|
|
///
|
|
|
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
2002-08-29 09:57:57 +00:00
|
|
|
|
private:
|
|
|
|
|
/// width of '[' in current font
|
|
|
|
|
mutable int w_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|