mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Remove dependency on TEX2LYX #define in ModuleList.cpp
This commit is contained in:
parent
aef31d666e
commit
9a1e972edb
@ -48,21 +48,14 @@ LyXModule::LyXModule(string const & n, string const & i,
|
||||
|
||||
vector<string> LyXModule::prerequisites() const
|
||||
{
|
||||
#ifdef TEX2LYX
|
||||
return vector<string>();
|
||||
#else
|
||||
if (!checked_)
|
||||
isAvailable();
|
||||
return prerequisites_;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool LyXModule::isAvailable() const
|
||||
{
|
||||
#ifdef TEX2LYX
|
||||
return true;
|
||||
#else
|
||||
if (package_list_.empty())
|
||||
return true;
|
||||
if (checked_)
|
||||
@ -79,7 +72,6 @@ bool LyXModule::isAvailable() const
|
||||
}
|
||||
}
|
||||
return available_;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "Context.h"
|
||||
#include "Encoding.h"
|
||||
#include "Format.h"
|
||||
#include "LaTeXFeatures.h"
|
||||
#include "Layout.h"
|
||||
#include "LayoutFile.h"
|
||||
#include "LayoutModuleList.h"
|
||||
@ -101,6 +102,12 @@ bool Formats::isZippedFile(FileName const&) const
|
||||
}
|
||||
|
||||
|
||||
bool LaTeXFeatures::isAvailable(string const &)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Keep the linker happy on Windows
|
||||
void lyx_exit(int)
|
||||
{}
|
||||
|
Loading…
Reference in New Issue
Block a user