]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutModuleList.h
Fix screen display of parts and chapters in default classes
[lyx.git] / src / LayoutModuleList.h
index 8b47074a8e5ad516692191c62fed7dfa54da1dc0..aa9925109d9c6ab25979d60e1bab419df79fd001 100644 (file)
@@ -75,6 +75,14 @@ public:
        /// to be made.
        bool adaptToBaseClass(LayoutFile const * const lay,
                        std::list<std::string> const & removedModules);
+       ///
+       bool operator==(LayoutModuleList const & other) const {
+               return lml_ == other.lml_;
+       }
+       ///
+       bool operator!=(LayoutModuleList const & other) const {
+               return !operator==(other);
+       }
 private:
        /// Removes modules excluded by, provided by, etc, the base class.
        /// \param lay The document class against which to check.
@@ -96,5 +104,5 @@ private:
        ///
        std::list<std::string> lml_;
 };
-}
+} // namespace lyx
 #endif