1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1998 The LyX Team.
8 * ====================================================== */
13 #pragma implementation
16 #include "insetlist.h"
19 #include "BufferView.h"
21 #include "insets/insettext.h"
22 #include "support/LOstream.h"
28 // This class is _far_ from finished. I hope that we can have a inset to
29 // handle the different lists that we have. It should also be possible
30 // to create new lists on the fly.
31 // Currently LyX only supports: itemize, enumerate, description and
32 // lyxlist. All support for these should be moved to this class and other
34 // It is also possible that we will need a baseclass and subclasses for
35 // different types of lists. (and should they be collapsable?)
39 InsetList::InsetList()
43 LyXFont font(LyXFont::ALL_SANE);
46 font.setColor(LColor::collapsable);
49 setAutoCollapse(false);
55 void InsetList::write(Buffer const * buf, ostream & os) const
57 os << getInsetName() << "\n";
58 InsetCollapsable::write(buf, os);
62 string const InsetList::editMessage() const
64 return _("Opened List Inset");
68 int InsetList::latex(Buffer const * buf,
69 ostream & os, bool fragile, bool fp) const
71 os << "\\footnote{%\n";
73 int i = inset.latex(buf, os, fragile, fp);