-/* This file is part of
- * ======================================================
+/**
+ * \file LaTeXFeatures.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author José Matos
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author Jürgen Vigna
+ * \author André Pönitz
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 the LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
#include <config.h>
#include "support/filetools.h"
#include "support/lstrings.h"
+using namespace lyx::support;
+
using lyx::textclass_type;
using std::endl;
{}
+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))
if (isRequired("NeedTabularnewline"))
macros << tabularnewline_def;
+ // greyedout environment (note inset)
+ if (isRequired("lyxgreyedout"))
+ macros << lyxgreyedout_def;
+
// floats
getFloatDefinitions(macros);