X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlayout.h;h=cd9193a4f6435df55a9552853b2a69e5738244cb;hb=ac103f15a7cead429a7b2ee1f75d67cc988ec81d;hp=ff6d1446f55c96c0264aa3fbceee544f5601792a;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/lyxlayout.h b/src/lyxlayout.h index ff6d1446f5..cd9193a4f6 100644 --- a/src/lyxlayout.h +++ b/src/lyxlayout.h @@ -52,6 +52,8 @@ public: /// string const & obsoleted_by() const; /// + string const & depends_on() const; + /// string const & latexname() const { return latexname_; } /// string const & labelstring() const { return labelstring_; } @@ -186,6 +188,9 @@ public: LYX_LATEX_TYPES latextype; /// Does this object belong in the title part of the document? bool intitle; + /// Does this layout allow for an optional parameter? + int optionalargs; + private: /// Name of the layout/paragraph environment string name_; @@ -196,6 +201,12 @@ private: */ string obsoleted_by_; + /** Name of an layout which preamble must come before this one + This is used when the preamble snippet uses macros defined in + another preamble + */ + string depends_on_; + /// LaTeX name for environment string latexname_;