]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlayout.h
Small formatting and comment cleanup.
[lyx.git] / src / lyxlayout.h
index d8d84a1aedf75a3d8a93a4dab9faea9008b6eef5..7cdff88aa062b1c0bd633e84b231b12e237de102 100644 (file)
@@ -63,7 +63,7 @@ public:
        ///
        lyx::docstring const & endlabelstring() const { return endlabelstring_; }
        ///
-       std::string const & preamble() const { return preamble_; }
+       docstring const & preamble() const { return preamble_; }
        ///
        std::string const & latexparam() const { return latexparam_; }
        ///
@@ -149,7 +149,13 @@ public:
        bool free_spacing;
        ///
        bool pass_thru;
-       ///
+       /**
+        * Whether this layout was declared with "Environment xxx" as opposed
+        * to "Style xxx". This is part of some unfinished generic environment
+        * handling (see also InsetEnvironment) started by Andre. No layout
+        * that is shipped with LyX has this flag set.
+        * Don't confuse this with isEnvironment()!
+        */
        bool is_environment;
        /// show this in toc
        int toclevel;
@@ -226,7 +232,7 @@ private:
        /// Internal tag to surround the item text in a list)
        std::string itemtag_;
        /// Macro definitions needed for this layout
-       std::string preamble_;
+       docstring preamble_;
 };