]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
more cursor dispatch
[lyx.git] / src / LaTeXFeatures.h
index daa6231c2b3f966a6558dbfdc0e38f92efc30c38..c3d62de312b60008994785b162e7b917d799c597 100644 (file)
@@ -17,6 +17,7 @@
 #include <set>
 #include <list>
 #include <map>
+#include <string>
 
 class Buffer;
 class BufferParams;
@@ -38,7 +39,7 @@ struct Language;
 class LaTeXFeatures {
 public:
        ///
-       LaTeXFeatures(Buffer const &, BufferParams const &);
+       LaTeXFeatures(Buffer const &, BufferParams const &, bool);
        /// The packages needed by the document
        std::string const getPackages() const;
        /// The macros definitions needed by the document
@@ -81,6 +82,8 @@ public:
        BufferParams const & bufferParams() const;
        /// the return value is dependent upon both LyXRC and LaTeXFeatures.
        bool useBabel() const;
+       ///
+       bool nice() const { return nice_; };
 
 private:
        std::list<std::string> usedLayouts_;
@@ -107,6 +110,10 @@ private:
        Buffer const & buffer_;
        ///
        BufferParams const & params_;
+       /** If we are writing a nice LaTeX file or not.
+        *  Only needed by InsetInclude::validate().
+        */
+       bool nice_;
 };
 
 #endif