]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.h
This is the first of a series of commits that will make InsetLayout a real class.
[lyx.git] / src / Layout.h
index 56e031fd59bb3a54f445b8c8fc907a59d86c4fbb..e93a9bcbc283a680d27350e64fa75a0dd8388487 100644 (file)
@@ -19,7 +19,7 @@
 #include "Spacing.h"
 #include "support/docstring.h"
 
-#include <vector>
+#include <set>
 #include <string>
 
 namespace lyx {
@@ -52,6 +52,7 @@ public:
        ///
        Layout();
        /// Reads a layout definition from file
+       /// \return true on success.
        bool read(Lexer &, TextClass const &);
        ///
        void readAlign(Lexer &);
@@ -84,7 +85,7 @@ public:
        ///
        docstring const & preamble() const { return preamble_; }
        ///
-       std::vector<std::string> const & requires() const { return requires_; }
+       std::set<std::string> const & requires() const { return requires_; }
        ///
        std::string const & latexparam() const { return latexparam_; }
        ///
@@ -256,7 +257,7 @@ private:
        /// Macro definitions needed for this layout
        docstring preamble_;
        /// Packages needed for this layout
-       std::vector<std::string> requires_;
+       std::set<std::string> requires_;
 };
 
 } // namespace lyx