X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.cpp;h=14c1e202dd7eb09fe275338e04e72272c2b308c1;hb=700af7e7011f102d92222744791638ff2db18f94;hp=a9233745afd1afca82edf7bea37a2109566f2088;hpb=23a672cf26c29a9fd24196961642f89498a444b5;p=lyx.git diff --git a/src/Server.cpp b/src/Server.cpp index a9233745af..14c1e202dd 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -40,15 +40,15 @@ #include #include "Server.h" -#include "support/debug.h" #include "FuncRequest.h" #include "LyXAction.h" #include "LyXFunc.h" + #include "frontends/Application.h" +#include "support/debug.h" #include "support/FileName.h" #include "support/lstrings.h" -#include "support/lyxlib.h" #include @@ -58,18 +58,11 @@ #endif #include +using namespace std; +using namespace lyx::support; namespace lyx { -using support::compare; -using support::FileName; -using support::rtrim; -using support::split; - -using std::endl; -using std::string; - - ///////////////////////////////////////////////////////////////////// // // LyXComm @@ -79,7 +72,7 @@ using std::string; #if !defined (HAVE_MKFIFO) // We provide a stub class that disables the lyxserver. -LyXComm::LyXComm(std::string const &, Server *, ClientCallbackfct) +LyXComm::LyXComm(string const &, Server *, ClientCallbackfct) {} void LyXComm::openConnection() @@ -114,7 +107,7 @@ void LyXComm::send(string const & msg) #else // defined (HAVE_MKFIFO) -LyXComm::LyXComm(std::string const & pip, Server * cli, ClientCallbackfct ccb) +LyXComm::LyXComm(string const & pip, Server * cli, ClientCallbackfct ccb) : pipename_(pip), client_(cli), clientcb_(ccb) { ready_ = false; @@ -351,7 +344,7 @@ void ServerCallback(Server * server, string const & msg) server->callback(msg); } -Server::Server(LyXFunc * f, std::string const & pipes) +Server::Server(LyXFunc * f, string const & pipes) : numclients_(0), func_(f), pipes_(pipes, this, &ServerCallback) {}