]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.cpp
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / MacroTable.cpp
index 406e901c49d0f3503f9606e379540b81c866e9e4..ad9f43f938a3549113c2eb95864f7bde18207ff6 100644 (file)
 #include "InsetMathNest.h"
 
 #include "Buffer.h"
+#include "DocIterator.h"
 #include "InsetList.h"
 #include "Text.h"
 
 #include "support/debug.h"
-#include "DocIterator.h"
 
 #include <boost/assert.hpp>
 
@@ -205,6 +205,13 @@ void MacroTable::insert(docstring const & def, string const & requires)
 }
 
 
+void MacroTable::getMacroNames(std::set<docstring> & names) const
+{
+       for (const_iterator it = begin(); it != end(); ++it)
+               names.insert(it->first);
+}
+
+
 void MacroTable::dump()
 {
        lyxerr << "\n------------------------------------------" << endl;