X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetTheorem.h;h=74234954673ea0a4114f77d4b31c7b7dee675fc5;hb=d8a6b5bfd0baa02a4ba03f8c9e9c618baf41b03f;hp=e125f70f668b5ae1c24cab071f12f479a513a2b3;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetTheorem.h b/src/insets/InsetTheorem.h index e125f70f66..7423495467 100644 --- a/src/insets/InsetTheorem.h +++ b/src/insets/InsetTheorem.h @@ -1,6 +1,6 @@ // -*- C++ -*- /** - * \file InsetTheorem.h + * \file Inset.heorem.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -9,9 +9,10 @@ * Full author contact details are available in file CREDITS. */ -#ifndef InsetTheorem_H -#define InsetTheorem_H +#if 0 +#ifndef INSETTHEOREM_H +#define INSETTHEOREM_H #include "InsetCollapsable.h" @@ -21,25 +22,26 @@ namespace lyx { /** The theorem inset */ -class InsetTheorem : public InsetCollapsable { +class Inset.heorem : public InsetCollapsable { public: /// - InsetTheorem(); + Inset.heorem(); /// - void write(Buffer const & buf, std::ostream & os) const; + void write(std::ostream & os) const; /// - Inset::Code lyxCode() const { return Inset::THEOREM_CODE; } + InsetCode lyxCode() const { return THEOREM_CODE; } /// - bool metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const; /// void draw(PainterInfo & pi, int x, int y) const; /// - int latex(Buffer const &, odocstream &, - OutputParams const &) const; + bool isMacroScope() const { return true; } /// - virtual docstring const editMessage() const; + int latex(odocstream &, OutputParams const &) const; + /// + docstring editMessage() const; private: - virtual std::auto_ptr doClone() const; + Inset * clone() const; /// mutable unsigned int center_indent_; @@ -49,3 +51,5 @@ private: } // namespace lyx #endif + +#endif