]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MacroTable.cpp
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / MacroTable.cpp
index 188d3c0d89070ef362e3f1e72b9b86c14792e804..b4dfb13b15a36b2e51464398021a881723bdfaa4 100644 (file)
@@ -60,7 +60,7 @@ MacroData::MacroData(MathMacroTemplate const & macro)
          redefinition_(false), type_(MacroTypeNewcommand)
 {
        queryData(macro);
-}      
+}
 
 
 void MacroData::expand(vector<MathData> const & args, MathData & to) const
@@ -123,7 +123,8 @@ void MacroData::queryData(MathMacroTemplate const & macro) const
        redefinition_ = macro.redefinition();
        type_ = macro.type();
        optionals_ = macro.numOptionals();
-       macro.getDefaults(defaults_);   
+       
+       macro.getDefaults(defaults_);
 }
 
 
@@ -205,6 +206,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;