X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxserver.C;h=d258cb5474e5621c99c32672b106137bedb602c0;hb=69bee02a8901793b34ac5ca6d07e93910cef4005;hp=60dcf4085aecaef148bf4c0ebfb114718b8f1fe6;hpb=92d522b7f1be6046adcac062c558bbf0bf021612;p=lyx.git diff --git a/src/lyxserver.C b/src/lyxserver.C index 60dcf4085a..d258cb5474 100644 --- a/src/lyxserver.C +++ b/src/lyxserver.C @@ -1,12 +1,15 @@ -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor +/** + * \file lyxserver.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. + * \author Lars Gullik Bjønnes + * \author Jean-Marc Lasgouttes + * \author Angus Leeming + * \author John Levon * - * ====================================================== */ + * Full author contact details are available in file CREDITS. + */ /** Docu : To use the lyxserver define the name of the pipe in your @@ -36,20 +39,19 @@ #include -#include -#include -#include -#include -#include - #include "lyxserver.h" -#include "lyx_main.h" #include "debug.h" +#include "funcrequest.h" +#include "LyXAction.h" #include "lyxfunc.h" #include "support/lstrings.h" #include "support/lyxlib.h" #include "frontends/lyx_gui.h" +#include +#include +#include + #ifdef __EMX__ #include #include @@ -60,10 +62,14 @@ #include "support/os2_errortable.h" #endif - -using namespace lyx::support; +using lyx::support::compare; +using lyx::support::rtrim; +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 // lyxserver. @@ -136,6 +142,7 @@ void LyXComm::closeConnection() ready = false; } + int LyXComm::startPipe(string const & filename, bool write) { int fd; @@ -476,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: