]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
Final touch 'inset display()'; fix 'is a bit silly' bug
[lyx.git] / src / insets / insettheorem.h
index 24e9b8a2156d544b35213bc0328602ff37870bdd..465479ba0b5d970b5236d26db124e8ff9c7537ba 100644 (file)
@@ -1,42 +1,45 @@
 // -*- 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 Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual InsetBase * clone() const;
        ///
        Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       bool display() const { return true; }
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       void draw(PainterInfo & pi, int x, int y) const;
+       ///
+       int latex(Buffer const &, std::ostream &,
+                 LatexRunParams const &) const;
        ///
        string const editMessage() const;
+private:
+       ///
+       mutable unsigned int center_indent_;
 };
 
 #endif