X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettheorem.h;h=2e1d8d59b11c2f3d54ba7d859442e05802ca7b30;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=e3d3a92cab6412eb3624bcc61d1fd3bbe5b844a7;hpb=946895278050e4a464c9591e99232a72f5f4dec9;p=lyx.git diff --git a/src/insets/insettheorem.h b/src/insets/insettheorem.h index e3d3a92cab..2e1d8d59b1 100644 --- a/src/insets/insettheorem.h +++ b/src/insets/insettheorem.h @@ -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 doClone() const; + /// - //LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const; + mutable unsigned int center_indent_; }; + +} // namespace lyx + #endif