]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.C
Move #includes out of header files.
[lyx.git] / src / LyXAction.C
index 09e7c7c85b82bd4099ea062d3be2e938d47a4da6..4a5bf1a023cc6c71056ef227dfbd17fdc8f36313 100644 (file)
@@ -1,7 +1,14 @@
 /**
  * \file LyXAction.C
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author John Levon
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -9,9 +16,12 @@
 #include "LyXAction.h"
 
 #include "debug.h"
+#include "funcrequest.h"
 #include "gettext.h"
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using std::ostream;
 using std::endl;
 using std::pair;
@@ -220,6 +230,7 @@ void LyXAction::init()
                { LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop },
                { LFUN_META_FAKE, "meta-prefix", NoBuffer },
                { LFUN_INSET_MINIPAGE, "minipage-insert", Noop },
+               { LFUN_INSERT_BRANCH, "branch-insert", Noop },
                { LFUN_INSERT_NOTE, "note-insert", Noop },
                { LFUN_GOTONOTE, "note-next", ReadOnly },
                { LFUN_INSET_TOGGLE, "inset-toggle", ReadOnly },
@@ -396,7 +407,7 @@ FuncRequest LyXAction::retrieveActionArg(int pseudo) const
        if (pit != lyx_pseudo_map.end()) {
                lyxerr[Debug::ACTION] << "Found the pseudoaction: ["
                                      << pit->second.action << '|'
-                                     << pit->second.argument << "]\n";
+                                     << pit->second.argument << "]" << endl;
                return pit->second;
        } else {
                lyxerr << "Lyx Error: Unrecognized pseudo-action "
@@ -415,8 +426,8 @@ int LyXAction::LookupFunc(string const & func)
        // split action and arg
        string actstr;
        string const argstr = split(func2, actstr, ' ');
-       lyxerr[Debug::ACTION] << "Action: " << actstr << '\n';
-       lyxerr[Debug::ACTION] << "Arg   : " << argstr << '\n';
+       lyxerr[Debug::ACTION] << "Action: " << actstr << '\n'
+                             << "Arg   : " << argstr << endl;
 
        func_map::const_iterator fit = lyx_func_map.find(actstr);