#include <sstream>
#include <vector>
-using lyx::docstring;
-using std::getline;
+namespace lyx {
+using std::getline;
using std::istringstream;
using std::vector;
using std::string;
FuncRequest::FuncRequest(kb_action act, string const & arg, Origin o)
- : action(act), argument_(lyx::from_utf8(arg)), origin(o), x(0), y(0),
+ : action(act), argument_(from_utf8(arg)), origin(o), x(0), y(0),
button_(mouse_button::none)
{}
FuncRequest::FuncRequest(FuncRequest const & cmd, string const & arg, Origin o)
- : action(cmd.action), argument_(lyx::from_utf8(arg)), origin(o),
+ : action(cmd.action), argument_(from_utf8(arg)), origin(o),
x(cmd.x), y(cmd.y), button_(cmd.button_)
{}
string FuncRequest::getArg(unsigned int i) const
{
vector<string> args;
- split(args, lyx::to_utf8(argument_));
+ split(args, to_utf8(argument_));
return i < args.size() ? args[i] : string();
}
{
return os
<< " action: " << cmd.action
- << " arg: '" << lyx::to_utf8(cmd.argument()) << "'"
+ << " arg: '" << to_utf8(cmd.argument()) << "'"
<< " x: " << cmd.x
<< " y: " << cmd.y;
}
+
+
+} // namespace lyx