]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insettheorem.h
index 41a1aa3eb3f49a72ac08765c422702d44cfe1b6d..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 100644 (file)
@@ -1,23 +1,23 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file insettheorem.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 1998 The LyX Team.
- *
- * ======================================================
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef InsetTheorem_H
 #define InsetTheorem_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insetcollapsable.h"
 
+
+namespace lyx {
+
 /** The theorem inset
 
 */
@@ -26,17 +26,26 @@ public:
        ///
        InsetTheorem();
        ///
-       void write(Buffer const * buf, std::ostream & os) const;
-       ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const;
+       void write(Buffer const & buf, std::ostream & os) const;
        ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       bool display() const { return true; }
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
-       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       string const editMessage() const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
+       ///
+       virtual docstring const editMessage() const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
+       ///
+       mutable unsigned int center_indent_;
 };
 
+
+} // namespace lyx
+
 #endif