X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettheorem.h;h=2e1d8d59b11c2f3d54ba7d859442e05802ca7b30;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=c81e54f036bfd8a010f977504c6dee936cbfc560;hpb=85a5ea7bfc80e179a61a99f2955455e84d3384cc;p=lyx.git diff --git a/src/insets/insettheorem.h b/src/insets/insettheorem.h index c81e54f036..2e1d8d59b1 100644 --- a/src/insets/insettheorem.h +++ b/src/insets/insettheorem.h @@ -1,44 +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" + +namespace lyx { + /** The theorem inset - + */ class InsetTheorem : public InsetCollapsable { public: /// InsetTheorem(); /// - void write(Buffer const * buf, std::ostream & os) const; - /// - virtual Inset * clone(Buffer const &) 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; /// - bool insertInsetAllowed(Inset * inset) const; + virtual docstring const editMessage() const; +private: + virtual std::auto_ptr doClone() const; + + /// + mutable unsigned int center_indent_; }; + +} // namespace lyx + #endif