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
13 #include "insetlist.h"
16 #include "BufferView.h"
18 #include "insets/insettext.h"
19 #include "support/LOstream.h"
25 // This class is _far_ from finished. I hope that we can have a inset to
26 // handle the different lists that we have. It should also be possible
27 // to create new lists on the fly.
28 // Currently LyX only supports: itemize, enumerate, description and
29 // lyxlist. All support for these should be moved to this class and other
31 // It is also possible that we will need a baseclass and subclasses for
32 // different types of lists. (and should they be collapsable?)
36 InsetList::InsetList()
40 LyXFont font(LyXFont::ALL_SANE);
43 font.setColor(LColor::collapsable);
46 setAutoCollapse(false);
52 void InsetList::write(Buffer const * buf, ostream & os) const
54 os << getInsetName() << "\n";
55 InsetCollapsable::write(buf, os);
59 string const InsetList::editMessage() const
61 return _("Opened List Inset");
65 int InsetList::latex(Buffer const * buf, ostream & os,
66 LatexRunParams const & runparams) const
68 os << "\\footnote{%\n";
70 int i = inset.latex(buf, os, runparams);