]> git.lyx.org Git - lyx.git/blobdiff - src/Format.cpp
Output keys with bibliography, too.
[lyx.git] / src / Format.cpp
index 6bd5ecb8c8e13951f8ce83a94d2c9370914f37df..5605dbb5569b662c2439ba131ce335bade4eefc0 100644 (file)
@@ -246,6 +246,17 @@ void Formats::setViewer(string const & name, string const & command)
 }
 
 
+void Formats::setEditor(string const & name, string const & command)
+{
+       add(name);
+       FormatList::iterator it =
+               find_if(formatlist.begin(), formatlist.end(),
+                       FormatNamesEqual(name));
+       if (it != formatlist.end())
+               it->setEditor(command);
+}
+
+
 bool Formats::view(Buffer const & buffer, FileName const & filename,
                   string const & format_name) const
 {