X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfloatlist.h;h=0808119bf67623375ab6bdb3b028fdeba8bdba5f;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=a279574a7f34130efabd1d6a6d4bedd773fc3ab4;hpb=5f2e3c4c43f8e1736a2b7654595dfe6c175b4b3b;p=lyx.git diff --git a/src/insets/insetfloatlist.h b/src/insets/insetfloatlist.h index a279574a7f..0808119bf6 100644 --- a/src/insets/insetfloatlist.h +++ b/src/insets/insetfloatlist.h @@ -1,62 +1,62 @@ // -*- C++ -*- -/* This file is part of* - * ====================================================== +/** + * \file insetfloatlist.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Word Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1996-2001 The LyX Team. - * - * ====================================================== */ + * \author Lars Gullik Bjønnes + * + * Full author contact details are available in file CREDITS. + */ #ifndef INSET_FLOATLIST_H #define INSET_FLOATLIST_H -#ifdef __GNUG__ -#pragma interface -#endif -#include "insetbutton.h" +#include "insetcommand.h" + + +namespace lyx { /** Used to insert table of contents */ -class InsetFloatList : public InsetButton { +class InsetFloatList : public InsetCommand { public: /// - InsetFloatList() {} - /// - InsetFloatList(string const & type) - : float_type(type) {} - /// - Inset * clone(Buffer const &, bool = false) const { - return new InsetFloatList(*this); - } - /// - string const getScreenLabel(Buffer const *) const; + InsetFloatList(); /// - void edit(BufferView * bv, int, int, unsigned int); + InsetFloatList(std::string const & type); /// - void edit(BufferView * bv, bool front = true); + docstring const getScreenLabel(Buffer const &) const; /// EDITABLE editable() const { return IS_EDITABLE; } /// - bool display() const { return true; } + InsetBase::Code lyxCode() const; /// - Inset::Code lyxCode() const; + bool display() const { return true; } /// - void write(Buffer const *, std::ostream &) const; + void write(Buffer const &, std::ostream &) const; /// - void read(Buffer const *, LyXLex &); + void read(Buffer const &, LyXLex &); /// - int latex(Buffer const *, std::ostream &, bool, bool) const; + int latex(Buffer const &, odocstream &, + OutputParams const &) const; /// - int linuxdoc(Buffer const *, std::ostream &) const { return 0; } + int docbook(Buffer const &, odocstream &, + OutputParams const &) const { return 0; } /// - int docBook(Buffer const *, std::ostream &) const { return 0; } + int plaintext(Buffer const &, odocstream &, + OutputParams const & runparams) const; /// - int ascii(Buffer const *, std::ostream &, int linelen) const; + void validate(LaTeXFeatures & features) const; private: - string float_type; + virtual std::auto_ptr doClone() const + { + return std::auto_ptr(new InsetFloatList(to_ascii(getParam("type")))); + } }; + +} // namespace lyx + #endif