]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.h
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / MacroTable.h
index 7bc220a7e2408171451b5cfc1c271b9bceae87c1..25664a1820e7323fd605656e9d621b38a3c07e12 100644 (file)
@@ -47,7 +47,17 @@ public:
        /// is it being drawn?
        bool locked() const { return lockCount_ != 0; }
        ///
-       void unlock() const { --lockCount_; BOOST_ASSERT(lockCount_ >= 0); }    
+       void unlock() const { --lockCount_; BOOST_ASSERT(lockCount_ >= 0); }
+
+       ///
+       bool operator==(MacroData const & x) const {
+               return def_ == x.def_ &&
+                       numargs_ == x.numargs_ &&
+                       disp_ == x.disp_ &&
+                       requires_ == x.requires_;
+       }
+       ///
+       bool operator!=(MacroData const & x) const { return !operator==(x); }
 
 private:
        ///