]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Add some missing files to autoconf's dist
[lyx.git] / src / LaTeXFeatures.cpp
index e20617f1c8a01ff3095b390236d125d41539ccc8..a7974b62c5ac062ef2bb95ee0599e71de04710bc 100644 (file)
@@ -426,10 +426,14 @@ void LaTeXFeatures::require(set<string> const & names)
 
 
 void LaTeXFeatures::useLayout(docstring const & layoutname)
+{
+       useLayout(layoutname, 0);
+}
+
+
+void LaTeXFeatures::useLayout(docstring const & layoutname, int level)
 {
        // Some code to avoid loops in dependency definition
-       // FIXME THREAD
-       static int level = 0;
        const int maxlevel = 30;
        if (level > maxlevel) {
                lyxerr << "LaTeXFeatures::useLayout: maximum level of "
@@ -449,9 +453,7 @@ void LaTeXFeatures::useLayout(docstring const & layoutname)
                require(layout.requires());
 
                if (!layout.depends_on().empty()) {
-                       ++level;
-                       useLayout(layout.depends_on());
-                       --level;
+                       useLayout(layout.depends_on(), level + 1);
                }
                usedLayouts_.push_back(layoutname);
        } else {
@@ -459,8 +461,6 @@ void LaTeXFeatures::useLayout(docstring const & layoutname)
                       << to_utf8(layoutname) << "' does not exist in this class"
                       << endl;
        }
-
-       --level;
 }
 
 
@@ -742,7 +742,12 @@ char const * simplefeatures[] = {
        "tfrupee",
        "shapepar",
        "rsphrase",
-       "algorithm2e"
+       "algorithm2e",
+       "sectionbox",
+       "tcolorbox",
+       "pdfcomment",
+       "fixme",
+       "todonotes"
 };
 
 char const * bibliofeatures[] = {