]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlist.C
fix typo that put too many include paths for most people
[lyx.git] / src / insets / insetlist.C
index d577c185ed70879992fa831c188634020558f169..646cb86ea03868fa6621fc46800c7b368ebec213 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 1998 The LyX Team.
  *
  * ====================================================== */
@@ -45,7 +45,9 @@ InsetList::InsetList()
        font.decSize();
        font.setColor(LColor::collapsable);
        setLabelFont(font);
+#if 0
        setAutoCollapse(false);
+#endif
        setInsetName("List");
 }
 
@@ -57,18 +59,6 @@ void InsetList::write(Buffer const * buf, ostream & os) const
 }
 
 
-Inset * InsetList::clone(Buffer const &, bool same_id) const
-{
-       InsetList * result = new InsetList;
-       result->inset.init(&inset, same_id);
-       
-       result->collapsed = collapsed;
-       if (same_id)
-               result->id_ = id_;
-       return result;
-}
-
-
 string const InsetList::editMessage() const
 {
        return _("Opened List Inset");
@@ -79,19 +69,9 @@ int InsetList::latex(Buffer const * buf,
                     ostream & os, bool fragile, bool fp) const
 {
        os << "\\footnote{%\n";
-       
+
        int i = inset.latex(buf, os, fragile, fp);
        os << "}%\n";
-       
-       return i + 2;
-}
 
-
-bool InsetList::insertInsetAllowed(Inset * in) const
-{
-       if ((in->lyxCode() == Inset::FOOT_CODE) ||
-           (in->lyxCode() == Inset::MARGIN_CODE)) {
-               return false;
-       }
-       return true;
+       return i + 2;
 }