X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFormat.cpp;h=cedbf7a2aea4acb90038f9d627ab4a753c15db8e;hb=5a8e91d1c5381d8c152b12269707b547d5241624;hp=bf3102653c37658c838c6e67704d33f4d936a07f;hpb=a180414975f45dc3387d6ca71912509fbb03e3e5;p=lyx.git diff --git a/src/Format.cpp b/src/Format.cpp index bf3102653c..cedbf7a2ae 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -716,7 +716,8 @@ bool Formats::view(Buffer const & buffer, FileName const & filename, PathChanger p(filename.onlyPath()); Systemcall one; - one.startscript(Systemcall::DontWait, command, buffer.filePath()); + one.startscript(Systemcall::DontWait, command, + buffer.filePath(), buffer.layoutPos()); // we can't report any sort of error, since we aren't waiting return true; @@ -785,7 +786,8 @@ bool Formats::edit(Buffer const & buffer, FileName const & filename, buffer.message(_("Executing command: ") + from_utf8(command)); Systemcall one; - one.startscript(Systemcall::DontWait, command, buffer.filePath()); + one.startscript(Systemcall::DontWait, command, + buffer.filePath(), buffer.layoutPos()); // we can't report any sort of error, since we aren't waiting return true; @@ -837,6 +839,7 @@ FlavorTranslator initFlavorTranslator() f.addPair(OutputParams::XML, "docbook-xml"); f.addPair(OutputParams::HTML, "xhtml"); f.addPair(OutputParams::TEXT, "text"); + f.addPair(OutputParams::LYX, "lyx"); return f; }