3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
12 #include "insetlist.h"
13 #include "insets/insettext.h"
15 #include "BufferView.h"
21 #include "support/std_ostream.h"
27 // This class is _far_ from finished. I hope that we can have a inset to
28 // handle the different lists that we have. It should also be possible
29 // to create new lists on the fly.
30 // Currently LyX only supports: itemize, enumerate, description and
31 // lyxlist. All support for these should be moved to this class and other
33 // It is also possible that we will need a baseclass and subclasses for
34 // different types of lists. (and should they be collapsable?)
38 InsetList::InsetList()
42 LyXFont font(LyXFont::ALL_SANE);
45 font.setColor(LColor::collapsable);
48 setAutoCollapse(false);
54 void InsetList::write(Buffer const * buf, ostream & os) const
56 os << getInsetName() << "\n";
57 InsetCollapsable::write(buf, os);
61 string const InsetList::editMessage() const
63 return _("Opened List Inset");
67 int InsetList::latex(Buffer const * buf, ostream & os,
68 OutputParams const & runparams) const
70 os << "\\footnote{%\n";
72 int i = inset.latex(buf, os, runparams);