]> git.lyx.org Git - lyx.git/blobdiff - src/lyxserver.C
mathed uglyfication
[lyx.git] / src / lyxserver.C
index de288e2817e534f9fa0d0cdf44b4812831cc5c64..d258cb5474e5621c99c32672b106137bedb602c0 100644 (file)
@@ -41,6 +41,8 @@
 
 #include "lyxserver.h"
 #include "debug.h"
+#include "funcrequest.h"
+#include "LyXAction.h"
 #include "lyxfunc.h"
 #include "support/lstrings.h"
 #include "support/lyxlib.h"
@@ -66,6 +68,7 @@ using lyx::support::split;
 using lyx::support::unlink;
 
 using std::endl;
+using std::string;
 
 
 // provide an empty mkfifo() if we do not have one. This disables the
@@ -139,6 +142,7 @@ void LyXComm::closeConnection()
        ready = false;
 }
 
+
 int LyXComm::startPipe(string const & filename, bool write)
 {
        int fd;
@@ -479,7 +483,7 @@ void LyXServer::callback(LyXServer * serv, string const & msg)
                        // support currently. (Lgb)
 
 
-                       serv->func->dispatch(cmd + ' ' + arg);
+                       serv->func->dispatch(FuncRequest(lyxaction.lookupFunc(cmd), arg));
                        string const rval = serv->func->getMessage();
 
                        //modified june 1999 stefano@zool.su.se: