]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutModuleList.h
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / LayoutModuleList.h
index 8b47074a8e5ad516692191c62fed7dfa54da1dc0..868c1cf945d73ecd852eaf61f6eb9e34ae3e28e0 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Richard Heck
+ * \author Richard Kimberly Heck
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -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