]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / LaTeXFeatures.C
index ae9e23002be46e10943a2cdfddf904e80f9400d4..5380932443a7eb72ba229aa3c208eed49ee40e90 100644 (file)
@@ -24,6 +24,8 @@
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using lyx::textclass_type;
 
 using std::endl;
@@ -38,6 +40,14 @@ LaTeXFeatures::LaTeXFeatures(BufferParams const & p)
 {}
 
 
+bool LaTeXFeatures::useBabel() const
+{
+       return lyxrc.language_use_babel ||
+               bufferParams().language->lang() != lyxrc.default_language ||
+               this->hasLanguages();
+}
+
+
 void LaTeXFeatures::require(string const & name)
 {
        if (isRequired(name))