2001-10-19 11:25:48 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file math_boxinset.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.
|
|
|
|
|
*/
|
|
|
|
|
|
2001-10-19 11:25:48 +00:00
|
|
|
|
#ifndef MATH_BOXINSET_H
|
|
|
|
|
#define MATH_BOXINSET_H
|
|
|
|
|
|
2002-07-11 10:20:31 +00:00
|
|
|
|
#include "math_nestinset.h"
|
2001-10-19 11:25:48 +00:00
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LyXFont;
|
|
|
|
|
|
|
|
|
|
/// Support for \\mbox
|
|
|
|
|
|
2002-07-11 10:20:31 +00:00
|
|
|
|
class MathBoxInset : public MathNestInset {
|
2001-10-19 11:25:48 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2002-06-04 09:06:04 +00:00
|
|
|
|
explicit MathBoxInset(string const & name);
|
2001-10-19 11:25:48 +00:00
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const;
|
2002-06-04 09:06:04 +00:00
|
|
|
|
///
|
2002-07-18 11:02:33 +00:00
|
|
|
|
mode_type currentMode() const { return TEXT_MODE; }
|
|
|
|
|
///
|
2003-06-02 10:03:27 +00:00
|
|
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
2002-06-04 09:06:04 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2001-10-19 11:25:48 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void write(WriteStream & os) const;
|
2001-10-19 11:25:48 +00:00
|
|
|
|
///
|
2002-06-04 09:06:04 +00:00
|
|
|
|
void normalize(NormalStream & ns) const;
|
2002-07-10 07:15:36 +00:00
|
|
|
|
///
|
|
|
|
|
void infoize(std::ostream & os) const;
|
2001-10-19 11:25:48 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string name_;
|
|
|
|
|
};
|
2002-06-24 15:37:14 +00:00
|
|
|
|
|
|
|
|
|
|
2001-10-19 11:25:48 +00:00
|
|
|
|
#endif
|