]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insettheorem.h
index e3d3a92cab6412eb3624bcc61d1fd3bbe5b844a7..2e1d8d59b11c2f3d54ba7d859442e05802ca7b30 100644 (file)
@@ -1,46 +1,51 @@
 // -*- 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 footnote inset
-  
+
+namespace lyx {
+
+/** 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;
        ///
-       Inset * Clone() const;
+       Inset::Code lyxCode() const { return Inset::THEOREM_CODE; }
        ///
-       Inset::Code LyxCode() const { return Inset::THEOREM_CODE; }
+       bool 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 &, odocstream &,
+                 OutputParams const &) const;
        ///
-       const char * EditMessage() const;
-       ///
-       bool InsertInsetAllowed(Inset * inset) const;
+       virtual docstring const editMessage() const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
-       //LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
+       mutable unsigned int center_indent_;
 };
 
+
+} // namespace lyx
+
 #endif