#include "support/lstrings.h"
#include "support/Messages.h"
#include "support/unicode.h"
-
-#include <boost/scoped_ptr.hpp>
+#include "support/unique_ptr.h"
// getpid(), getppid()
#ifdef HAVE_SYS_TYPES_H
#include <map>
#include <iostream>
+
using namespace std;
using namespace lyx::support;
-using ::boost::scoped_ptr;
-
namespace lyx {
+// Dummy verbose support
+bool verbose = false;
+
// Dummy LyXRC support
struct LyXRC {
string icon_set;
namespace cmdline {
- docstring mainTmp(from_ascii("/tmp"));
+docstring mainTmp(from_ascii("/tmp"));
class StopException : public exception
"lyxclient will connect only to a lyx with the specified pid. Options -c and -g\n"
"cannot be set simultaneoulsly. If no -c or -g options are given, lyxclient\n"
"will read commands from standard input and disconnect when command read is BYE:\n"
- "\n"
- "System directory is: " << to_utf8(cmdline::mainTmp)
+ "\n"
+ "System directory is: " << to_utf8(cmdline::mainTmp)
<< endl;
}
<< endl;
return -1;
}
- singleCommand = "LYXCMD:server-goto-file-row "
- + arg[0] + ' '
- + arg[1];
+ singleCommand = "LYXCMD:command-sequence "
+ "server-goto-file-row "
+ + arg[0] + ' '
+ + arg[1] + "; " +
+ "lyx-activate";
return 2;
}
return EXIT_FAILURE;
}
- scoped_ptr<LyXDataSocket> server;
+ unique_ptr<LyXDataSocket> server;
if (!cmdline::serverAddress.empty()) {
server.reset(new LyXDataSocket(FileName(to_utf8(cmdline::serverAddress))));