]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
Fix bug #5131: Remember last file active.
[lyx.git] / src / LaTeXFeatures.h
index 635376c8a12359a87e47b940d5e61501eb11a217..7f010b33ca94522ba397e4ff098683c600a7df1c 100644 (file)
@@ -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();
@@ -103,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_; }
 
@@ -145,6 +151,8 @@ private:
         *  in validate().
         */
        OutputParams const & runparams_;
+       ///
+       bool in_float_;
 };