]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.h
Revert 23154.
[lyx.git] / src / Layout.h
index 0e4943dab1b5efbddc5789f11eb6457191f69fcc..e93a9bcbc283a680d27350e64fa75a0dd8388487 100644 (file)
@@ -19,6 +19,9 @@
 #include "Spacing.h"
 #include "support/docstring.h"
 
+#include <set>
+#include <string>
+
 namespace lyx {
 
 class Lexer;
@@ -49,6 +52,7 @@ public:
        ///
        Layout();
        /// Reads a layout definition from file
+       /// \return true on success.
        bool read(Lexer &, TextClass const &);
        ///
        void readAlign(Lexer &);
@@ -81,6 +85,8 @@ public:
        ///
        docstring const & preamble() const { return preamble_; }
        ///
+       std::set<std::string> const & requires() const { return requires_; }
+       ///
        std::string const & latexparam() const { return latexparam_; }
        ///
        std::string const & innertag() const { return innertag_; }
@@ -250,6 +256,8 @@ private:
        std::string itemtag_;
        /// Macro definitions needed for this layout
        docstring preamble_;
+       /// Packages needed for this layout
+       std::set<std::string> requires_;
 };
 
 } // namespace lyx