2000-07-04 19:16:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1998 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef InsetTheorem_H
|
|
|
|
#define InsetTheorem_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcollapsable.h"
|
|
|
|
|
2000-07-15 23:51:46 +00:00
|
|
|
/** The theorem inset
|
2000-07-04 19:16:35 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
class InsetTheorem : public InsetCollapsable {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
InsetTheorem();
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
void write(Buffer const * buf, std::ostream & os) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
virtual Inset * clone(Buffer const &) const;
|
2000-07-04 19:16:35 +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
|
|
|
///
|
|
|
|
bool display() const { return true; }
|
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
string const editMessage() const;
|
2000-07-04 19:16:35 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
bool insertInsetAllowed(Inset * inset) const;
|
2000-07-04 19:16:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|