// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
+/**
+ * \file insettheorem.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * Copyright 1998 The LyX Team.
+ * \author Lars Gullik Bjønnes
*
- * ======================================================
+ * Full author contact details are available in file CREDITS.
*/
#ifndef InsetTheorem_H
#define InsetTheorem_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "insetcollapsable.h"
/** The theorem inset
-
+
*/
class InsetTheorem : public InsetCollapsable {
public:
///
InsetTheorem();
///
- void Write(Buffer const * buf, std::ostream & os) const;
+ void write(Buffer const & buf, std::ostream & os) const;
+ ///
+ virtual InsetBase * clone() const;
///
- Inset * Clone(Buffer const &) const;
+ Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
///
- Inset::Code LyxCode() const { return Inset::THEOREM_CODE; }
+ void metrics(MetricsInfo &, Dimension &) const;
///
- bool display() const { return true; }
+ void draw(PainterInfo & pi, int x, int y) const;
///
- int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+ int latex(Buffer const &, std::ostream &,
+ LatexRunParams const &) const;
///
- string const EditMessage() const;
+ string const editMessage() const;
+private:
///
- bool InsertInsetAllowed(Inset * inset) const;
+ mutable unsigned int center_indent_;
};
#endif