X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlayout.h;h=7cdff88aa062b1c0bd633e84b231b12e237de102;hb=024275f0690b41634e26dabe8758e3dc6cd31ee2;hp=d8d84a1aedf75a3d8a93a4dab9faea9008b6eef5;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/lyxlayout.h b/src/lyxlayout.h index d8d84a1aed..7cdff88aa0 100644 --- a/src/lyxlayout.h +++ b/src/lyxlayout.h @@ -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_; };