2000-07-04 19:16:35 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-09-25 14:26:13 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file insettheorem.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:09:55 +00:00
|
|
|
|
*
|
2002-09-25 14:26:13 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2000-07-04 19:16:35 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2000-07-04 19:16:35 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef InsetTheorem_H
|
|
|
|
|
#define InsetTheorem_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "insetcollapsable.h"
|
|
|
|
|
|
2000-07-15 23:51:46 +00:00
|
|
|
|
/** The theorem inset
|
2002-03-21 17:09:55 +00:00
|
|
|
|
|
2000-07-04 19:16:35 +00:00
|
|
|
|
*/
|
|
|
|
|
class InsetTheorem : public InsetCollapsable {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
InsetTheorem();
|
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
void write(Buffer const & buf, std::ostream & os) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
|
///
|
2003-06-16 11:49:38 +00:00
|
|
|
|
virtual InsetBase * clone() const;
|
2003-05-26 09:13:55 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
|
2000-07-04 19:16:35 +00:00
|
|
|
|
///
|
2003-08-26 10:33:59 +00:00
|
|
|
|
void metrics(MetricsInfo &, Dimension &) const;
|
|
|
|
|
///
|
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
int latex(Buffer const &, std::ostream &,
|
2003-05-23 08:59:47 +00:00
|
|
|
|
LatexRunParams const &) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
|
string const editMessage() const;
|
2003-08-26 10:33:59 +00:00
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
mutable unsigned int center_indent_;
|
2000-07-04 19:16:35 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|