#include <sstream>
-using lyx::support::IsSGMLFilename;
-using lyx::support::LibFileSearch;
-using lyx::support::MakeRelPath;
-using lyx::support::OnlyPath;
+using lyx::support::isSGMLFilename;
+using lyx::support::libFileSearch;
+using lyx::support::makeRelPath;
+using lyx::support::onlyPath;
using std::endl;
using std::find;
LaTeXFeatures::LaTeXFeatures(Buffer const & b, BufferParams const & p,
- OutputParams const & r)
+ OutputParams const & r)
: buffer_(&b), params_(p), runparams_(r)
{}
void LaTeXFeatures::getAvailable()
{
LyXLex lex(0, 0);
- string real_file = LibFileSearch("", "packages.lst");
+ string real_file = libFileSearch("", "packages.lst");
if (real_file.empty())
return;
LanguageList::const_iterator it = UsedLanguages_.begin();
LanguageList::const_iterator end = UsedLanguages_.end();
for (; it != end; ++it)
- if ((*it)->encoding()->LatexName() != doc_encoding)
- encodings.insert((*it)->encoding()->LatexName());
+ if ((*it)->encoding()->latexName() != doc_encoding)
+ encodings.insert((*it)->encoding()->latexName());
return encodings;
}
"dvipost",
"fancybox",
"calc",
+ "nicefrac",
};
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
string const LaTeXFeatures::getIncludedFiles(string const & fname) const
{
ostringstream sgmlpreamble;
- string const basename = OnlyPath(fname);
+ string const basename = onlyPath(fname);
FileMap::const_iterator end = IncludedFiles_.end();
for (FileMap::const_iterator fi = IncludedFiles_.begin();
fi != end; ++fi)
sgmlpreamble << "\n<!ENTITY " << fi->first
- << (IsSGMLFilename(fi->second) ? " SYSTEM \"" : " \"")
- << MakeRelPath(fi->second, basename) << "\">";
+ << (isSGMLFilename(fi->second) ? " SYSTEM \"" : " \"")
+ << makeRelPath(fi->second, basename) << "\">";
return sgmlpreamble.str();
}