mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
allow to specify arguments for viewers; mozilla is now the default HTML viewer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5667 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
13df69a261
commit
bffc094ccd
@ -1,3 +1,7 @@
|
||||
2002-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* configure.m4: add mozilla as default previewer for html
|
||||
|
||||
2002-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lib/ru_splash.lyx: update from Vitaly Lipatov
|
||||
|
@ -253,7 +253,7 @@ SEARCH_PROG([for a PDF preview],PDF_VIEWER,acroread gv ghostview xpdf)
|
||||
SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap)
|
||||
|
||||
# Search something to preview html
|
||||
SEARCH_PROG([for a HTML previewer],HTML_VIEWER, netscape)
|
||||
SEARCH_PROG([for a HTML previewer],HTML_VIEWER, "mozilla file://\$\$p\$\$i" netscape)
|
||||
|
||||
# Search for a program to convert ps to pdf
|
||||
SEARCH_PROG([for a PS to PDF converter],ps_to_pdf_command,ps2pdf)
|
||||
|
@ -1,3 +1,9 @@
|
||||
2002-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* converter.C (view): add support for $$i (file name) and $$p
|
||||
(file path) for the viewer command. If $$i is not specified, then
|
||||
it is appended to the command (for compatibility with old syntax)
|
||||
|
||||
2002-10-24 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* paragraph.C (TeXOnePar): Fix bug with language changes in nested
|
||||
|
@ -51,6 +51,7 @@ namespace {
|
||||
string const token_from("$$i");
|
||||
string const token_base("$$b");
|
||||
string const token_to("$$o");
|
||||
string const token_path("$$p");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -194,7 +195,12 @@ bool Formats::view(Buffer const * buffer, string const & filename,
|
||||
command += 'r';
|
||||
}
|
||||
|
||||
command += " " + QuoteName(OnlyFilename((filename)));
|
||||
if (!contains(command, token_from))
|
||||
command += " " + token_from;
|
||||
|
||||
command = subst(command, token_from,
|
||||
QuoteName(OnlyFilename(filename)));
|
||||
command = subst(command, token_path, QuoteName(OnlyPath(filename)));
|
||||
|
||||
lyxerr[Debug::FILES] << "Executing command: " << command << endl;
|
||||
ShowMessage(buffer, _("Executing command:"), command);
|
||||
|
@ -22,6 +22,11 @@ What's new
|
||||
- selecting a word by double clicking now sets the X clipboard (like
|
||||
when dragging the mouse)
|
||||
|
||||
- it is now possible to specify the arguments for viewers; in
|
||||
particular, this means that it is possible to use browsers which
|
||||
require a file: URL as HTML viewers (mozilla is used as default if
|
||||
found)
|
||||
|
||||
- when changing the current layout with the toolbar, the corresponding
|
||||
keyboard binding is shown in the minibuffer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user