]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutModuleList.h
Revert "Automatically show the review toolbar if the document has tracked changes"
[lyx.git] / src / LayoutModuleList.h
index f5741dede1657d6c3d016d01dd3f2222c28d1d47..aa9925109d9c6ab25979d60e1bab419df79fd001 100644 (file)
@@ -20,9 +20,9 @@ namespace lyx {
 class LayoutFile;
 
 /**
-       Represents a list of modules, such as might be associated with 
+       Represents a list of modules, such as might be associated with
        a particular document. Provides methods for adding modules, checking
-       if a module can be added, and, importantly, adapting the list to a 
+       if a module can be added, and, importantly, adapting the list to a
        new DocumentClass.
 */
 class LayoutModuleList {
@@ -50,7 +50,7 @@ public:
                { return lml_.insert(pos, str); }
        ///
        void push_back(std::string const & str) { lml_.push_back(str); }
-       /// 
+       ///
        size_t size() const { return lml_.size(); }
        /// This is needed in GuiDocument. It seems better than an
        /// implicit conversion.
@@ -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