]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.h
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / TextClass.h
index 2cecdb5751a82689dd3cbf4c13af248677221254..a64aff64632b347a04cbb3be625c0cd19015cc99 100644 (file)
@@ -137,6 +137,8 @@ public:
 
        /// is this feature already provided by the class?
        bool provides(std::string const & p) const;
+       /// features required by the class?
+       std::set<std::string> const & requires() const { return requires_; }
 
        ///
        unsigned int columns() const;
@@ -202,6 +204,8 @@ private:
        docstring preamble_;
        /// latex packages loaded by document class.
        std::set<std::string> provides_;
+       /// latex packages requested by document class.
+       std::set<std::string> requires_;
        ///
        unsigned int columns_;
        ///