}
-void const LyXFunc::verboseDispatch(string const & s, bool show_sc)
+void LyXFunc::verboseDispatch(string const & s, bool show_sc)
{
- // Split command string into command and argument
- string cmd;
- string line = frontStrip(s);
- string const arg = strip(frontStrip(split(line, cmd, ' ')));
-
- int action = lyxaction.LookupFunc(cmd);
+ int action = lyxaction.LookupFunc(frontStrip(s));
if (action == LFUN_UNKNOWN_ACTION) {
string const msg = string(_("Unknown function ("))
- + cmd + ")";
+ + s + ")";
owner->message(msg);
} else {
verboseDispatch(action, show_sc);
}
-void const LyXFunc::verboseDispatch(int ac, bool show_sc)
+void LyXFunc::verboseDispatch(int ac, bool show_sc)
{
string argument;
kb_action action;
-void const LyXFunc::verboseDispatch(kb_action action,
- string const & argument, bool show_sc)
+void LyXFunc::verboseDispatch(kb_action action,
+ string const & argument, bool show_sc)
{
string res = dispatch(action, argument);
{
string const filename =
MakeAbsPath(argument,
- OnlyPath(owner->buffer()->fileName()));
+ owner->buffer()->filePath());
setMessage(N_("Opening child document ") +
MakeDisplayPath(filename) + "...");
owner->view()->savePosition(0);
string initpath = lyxrc.document_path;
if (owner->view()->available()) {
- string const trypath = owner->buffer()->filepath;
+ string const trypath = owner->buffer()->filePath();
// If directory is writeable, use this as default.
if (IsDirWriteable(trypath))
initpath = trypath;
string initpath = lyxrc.document_path;
if (owner->view()->available()) {
- string const trypath = owner->buffer()->filepath;
+ string const trypath = owner->buffer()->filePath();
// If directory is writeable, use this as default.
if (IsDirWriteable(trypath))
initpath = trypath;
string initpath = lyxrc.document_path;
if (owner->view()->available()) {
- string const trypath = owner->buffer()->filepath;
+ string const trypath = owner->buffer()->filePath();
// If directory is writeable, use this as default.
if (IsDirWriteable(trypath))
initpath = trypath;