]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.h
installer: further preparation
[lyx.git] / src / Layout.h
index b7c6e708cd1f1c02db73fb28ec3a8b6ce212ee16..913546fd744c37e3f993b13390e1f01f017cb871 100644 (file)
@@ -310,9 +310,23 @@ public:
 
        /// Is this spellchecked?
        bool spellcheck;
+       /**
+        * Should this layout definition always be written to the document preamble?
+        * Possible values are:
+        *   0: Do not enforce local layout
+        * >=1: Enforce local layout with version forcelocal
+        *  -1: Enforce local layout with infinite version
+        * On reading, the forced local layout is only used if its version
+        * number is greater than the version number of the same layout in the
+        * document class. Otherwise, it is ignored.
+        */
+       int forcelocal;
 
 
 private:
+       /// Reads a layout definition from file
+       /// \return true on success.
+       bool readIgnoreForcelocal(Lexer &, TextClass const &);
        /// generates the default CSS for this layout
        void makeDefaultCSS() const;
        ///