X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfloatlist.h;h=19b03e8dbefff46f674f66453670a66460a497c9;hb=1e394731004491d04abe436112b5a89521bbd19a;hp=0e449f9e6254a74631f41b63de7c5f347582d36c;hpb=52153a589b4224d794de4f61f3f55b8d8832186f;p=lyx.git diff --git a/src/insets/insetfloatlist.h b/src/insets/insetfloatlist.h index 0e449f9e62..19b03e8dbe 100644 --- a/src/insets/insetfloatlist.h +++ b/src/insets/insetfloatlist.h @@ -3,10 +3,10 @@ * ====================================================== * * LyX, The Document Word Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1996-2001 The LyX Team. - * + * * ====================================================== */ #ifndef INSET_FLOATLIST_H @@ -16,45 +16,46 @@ #pragma interface #endif -#include "insetbutton.h" +#include "insetcommand.h" /** Used to insert table of contents */ -class InsetFloatList : public InsetButton { +class InsetFloatList : public InsetCommand { public: /// - InsetFloatList() {} + InsetFloatList(); /// - InsetFloatList(string const & type) - : float_type(type) {} + InsetFloatList(string const & type); /// - Inset * Clone(Buffer const &) const { - return new InsetFloatList(*this); + Inset * clone(Buffer const &, bool = false) const { + return new InsetFloatList(getCmdName()); } - /// - string const getScreenLabel() const; /// - void Edit(BufferView * bv, int, int, unsigned int); - /// - EDITABLE Editable() const { return IS_EDITABLE; } + string const getScreenLabel(Buffer const *) const; + /// + void edit(BufferView * bv, int, int, mouse_button::state); + /// + void edit(BufferView * bv, bool front = true); + /// + EDITABLE editable() const { return IS_EDITABLE; } /// bool display() const { return true; } /// - Inset::Code LyxCode() const; + Inset::Code lyxCode() const; + /// + void write(Buffer const *, std::ostream &) const; /// - void Write(Buffer const *, 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 *, ostream &, bool, bool) const; + int linuxdoc(Buffer const *, std::ostream &) const { return 0; } /// - int Linuxdoc(Buffer const *, ostream &) const { return 0; } + int docbook(Buffer const *, std::ostream &) const { return 0; } /// - int DocBook(Buffer const *, ostream &) const { return 0; } + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int Ascii(Buffer const *, std::ostream &, int linelen) const; -private: - string float_type; + void validate(LaTeXFeatures & features) const; }; #endif