]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
GuiDocument.cpp: remove unneeded conversion
[lyx.git] / src / LaTeXFeatures.h
index d93b96b092cc60b51597e821834d831cdba556f5..7f010b33ca94522ba397e4ff098683c600a7df1c 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  *
  * Full author contact details are available in file CREDITS.
@@ -56,6 +56,8 @@ public:
        std::string const getBabelOptions() const;
        /// The definitions needed by the document's textclass
        docstring const getTClassPreamble() const;
+       /// The language dependent definitions needed by the document's textclass
+       docstring const getTClassI18nPreamble(bool use_babel) const;
        /// The sgml definitions needed by the document (docbook)
        docstring const getLyXSGMLEntities() const;
        /// The SGML Required to include the files added with includeFile();
@@ -89,8 +91,6 @@ public:
        void useLanguage(Language const *);
        ///
        bool hasLanguages() const;
-       /// \return true if the passed language name is used in the document.
-       bool hasLanguage(std::string const & lang) const;
        ///
        std::string getLanguages() const;
        ///
@@ -105,6 +105,10 @@ public:
        BufferParams const & bufferParams() const;
        /// the return value is dependent upon both LyXRC and LaTeXFeatures.
        bool useBabel() const;
+       /// are we in a float?
+       bool inFloat() const { return in_float_; }
+       /// are we in a float?
+       void inFloat(bool const b) { in_float_ = b; }
        /// Runparams that will be used for exporting this file.
        OutputParams const & runparams() const { return runparams_; }
 
@@ -147,6 +151,8 @@ private:
         *  in validate().
         */
        OutputParams const & runparams_;
+       ///
+       bool in_float_;
 };