]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
Move editing, shortcuts, keyboard/mouse and completion to a separate category in...
[lyx.git] / src / Layout.cpp
index c874f88efc12393bd817d324b1f17598c88b288a..e368f23bbda0e821d3928b0f58538e5290a9e577 100644 (file)
@@ -830,6 +830,16 @@ docstring const & Layout::depends_on() const
 }
 
 
+bool Layout::operator==(Layout const & rhs) const
+{
+       // This is enough for the applications we actually make,
+       // at least at the moment. But we could check more.
+       return name() == rhs.name()
+               && latexname() == rhs.latexname()
+               && latextype == rhs.latextype;
+}
+
+
 Layout * Layout::forCaption()
 {
        Layout * lay = new Layout();