]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
reorder.
[lyx.git] / src / ModuleList.cpp
index 247ebb5abd4152e3c642614e50dba8c74dfebfc7..e2471ed5e5bbec2ca04e3e501f5acbae462c3493 100644 (file)
@@ -45,6 +45,9 @@ LyXModule::LyXModule(string const & n, string const & i,
 
 
 bool LyXModule::isAvailable() {
+#ifdef TEX2LYX
+       return true;
+#else
        if (packageList.empty())
                return true;
        if (checked)
@@ -61,6 +64,7 @@ bool LyXModule::isAvailable() {
        }
        available = true;
        return available;
+#endif
 }
 
 
@@ -108,7 +112,7 @@ public:
 
 
 //Much of this is borrowed from LayoutFileList::read()
-bool ModuleList::load()
+bool ModuleList::read()
 {
        FileName const real_file = libFileSearch("", "lyxmodules.lst");
        LYXERR(Debug::TCLASS, "Reading modules from `" << real_file << '\'');