// -*- C++ -*-
-/* This file is part of
-* ======================================================
-*
-* LyX, The Document Processor
-*
-* Copyright 1995 Matthias Ettrich
-* Copyright 1995-2001 the LyX Team.
-*
-* ====================================================== */
+/**
+ * \file LaTeXFeatures.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
#ifndef LATEXFEATURES_H
#define LATEXFEATURES_H
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "support/types.h"
#include "LString.h"
-#include <vector>
#include <set>
#include <list>
#include <map>
///
void useLanguage(Language const *);
///
- bool hasLanguages();
+ bool hasLanguages() const;
///
string getLanguages() const;
///
- std::set<string> getEncodingSet(string const & doc_encoding);
+ std::set<string> getEncodingSet(string const & doc_encoding) const;
///
void useLayout(string const & lyt);
///
BufferParams const & bufferParams() const;
- ///
+ /// the return value is dependent upon both LyXRC and LaTeXFeatures.
+ bool useBabel() const;
private:
string externalPreambles;
- std::set<string> layout;
+ std::list<string> usedLayouts;
/// Static preamble bits from the external material insets