#include <boost/bind.hpp>
-#include "support/std_sstream.h"
-#include <iomanip>
#include <fcntl.h>
+#include <sstream>
+#include <iomanip>
+
using lyx::support::AddName;
using lyx::support::user_lyxdir;
lyxsocket = new LyXServerSocket(&view->getLyXFunc(),
os::slashify_path(os::getTmpDir() + "/lyxsocket"));
- vector<string>::const_iterator cit = files.begin();
- vector<string>::const_iterator end = files.end();
- for (; cit != end; ++cit)
- view->view()->loadLyXFile(*cit, true);
+ for_each(files.begin(), files.end(),
+ bind(&BufferView::loadLyXFile, view->view(), _1, true));
// handle the batch commands the user asked for
if (!batch.empty())
lyxerr << "X can't find color for \"" << lcolor.getLyXName(col)
<< '"' << endl;
return string();
- }
+ }
- ostringstream os;
+ ostringstream os;
os << setbase(16) << setfill('0')
<< setw(2) << r
return fontloader.available(font);
}
-namespace {
-
-extern "C"
-void C_read_callback(int, void * data)
-{
- LyXComm * comm = static_cast<LyXComm *>(data);
- comm->read_ready();
-}
-
-}
-
-
-void set_read_callback(int fd, LyXComm * comm)
-{
- fl_add_io_callback(fd, FL_READ, C_read_callback, comm);
-}
-
-void remove_read_callback(int fd)
-{
- fl_remove_io_callback(fd, FL_READ, C_read_callback);
-}
-
namespace {