find correct ps and pdf previewers in win32 (bug 1508); remove lyxrc variable \ps_command

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8515 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2004-03-22 16:22:52 +00:00
parent f54151f2d6
commit aefbd97a16
6 changed files with 26 additions and 37 deletions

View File

@ -1,3 +1,11 @@
2004-03-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxrc.example: remove \ps_command
* configure.m4: check for acrobat, acrord32 and gsview32 as PDF
viewers (useful for windows); do not pass -swap option when
gsview32 is used as ps viewer. Remove support for \ps_command
2004-03-17 Angus Leeming <leeming@lyx.org> 2004-03-17 Angus Leeming <leeming@lyx.org>
* ui/classic.ui: * ui/classic.ui:

View File

@ -263,14 +263,16 @@ test "$word_to_latex_command" = "word2x" && word_to_latex_command="word2x -f lat
SEARCH_PROG([for Image converter],image_command,convert) SEARCH_PROG([for Image converter],image_command,convert)
test $image_command = "convert" && image_command="convert \$\$i \$\$o" test $image_command = "convert" && image_command="convert \$\$i \$\$o"
# Search for a Postscript interpreter
LYXRC_PROG([for a Postscript interpreter], \ps_command, gs)
# Search something to preview postscript # Search something to preview postscript
SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gv ghostview) SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview)
case $GHOSTVIEW in
gv|ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;;
*) PS_VIEWER="$GHOSTVIEW";;
esac
EPS_VIEWER=$GHOSTVIEW
# Search for a program to preview pdf # Search for a program to preview pdf
SEARCH_PROG([for a PDF preview],PDF_VIEWER,acroread gv ghostview xpdf) SEARCH_PROG([for a PDF preview],PDF_VIEWER, acrobat acrord32 gsview32 acroread gv ghostview xpdf)
# Search something to preview dvi # Search something to preview dvi
SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap) SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap)
@ -559,8 +561,8 @@ cat >$outfile <<EOF
\\viewer pdf "$PDF_VIEWER" \\viewer pdf "$PDF_VIEWER"
\\viewer pdf2 "$PDF_VIEWER" \\viewer pdf2 "$PDF_VIEWER"
\\viewer pdf3 "$PDF_VIEWER" \\viewer pdf3 "$PDF_VIEWER"
\\viewer ps "$GHOSTVIEW -swap" \\viewer ps "$PS_VIEWER"
\\viewer eps "$GHOSTVIEW" \\viewer eps "$EPS_VIEWER"
$rc_entries $rc_entries
\\font_encoding "$chk_fontenc" \\font_encoding "$chk_fontenc"

View File

@ -118,13 +118,6 @@
# executive, a3, a4, a5, or b5 as the default papersize. # executive, a3, a4, a5, or b5 as the default papersize.
#\default_papersize "a4" #\default_papersize "a4"
# Define which program to use to use as postscript interpreter for included
# images.
# You can not include any options. The default is "gs" if it can be found.
# If you have a slow computer, you should consider turning off the WYSIWYG
# display of includes images, by using this command:
#\ps_command ""
# Define which program to use to run "chktex". # Define which program to use to run "chktex".
# You should include options that turn different warnings on and off. # You should include options that turn different warnings on and off.
# Default is "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38" # Default is "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"

View File

@ -1,3 +1,8 @@
2004-03-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxrc.C (setDefaults, getDescription, output, read):
* lyxrc.h: remove ps_command
2004-03-22 Angus Leeming <leeming@lyx.org> 2004-03-22 Angus Leeming <leeming@lyx.org>
* lyx_main.C (error_handler, init): remove handler for SIGPIPE. * lyx_main.C (error_handler, init): remove handler for SIGPIPE.
@ -12,12 +17,12 @@
2004-03-19 André Pönitz <poenitz@gmx.net> 2004-03-19 André Pönitz <poenitz@gmx.net>
        * cursor.[Ch] (reset): take main text inset as argument * cursor.[Ch] (reset): take main text inset as argument
        * BufferView: adjust * BufferView: adjust
        * BufferView_pimpl.C: adjust * BufferView_pimpl.C: adjust
        * paragraph.[Ch]: fix completely broken operator=() * paragraph.[Ch]: fix completely broken operator=()
2004-03-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2004-03-16 Jean-Marc Lasgouttes <lasgouttes@lyx.org>

View File

@ -123,7 +123,6 @@ keyword_item lyxrcTags[] = {
{ "\\print_to_file", LyXRC::RC_PRINTTOFILE }, { "\\print_to_file", LyXRC::RC_PRINTTOFILE },
{ "\\print_to_printer", LyXRC::RC_PRINTTOPRINTER }, { "\\print_to_printer", LyXRC::RC_PRINTTOPRINTER },
{ "\\printer", LyXRC::RC_PRINTER }, { "\\printer", LyXRC::RC_PRINTER },
{ "\\ps_command", LyXRC::RC_PS_COMMAND },
{ "\\rtl", LyXRC::RC_RTL_SUPPORT }, { "\\rtl", LyXRC::RC_RTL_SUPPORT },
{ "\\screen_dpi", LyXRC::RC_SCREEN_DPI }, { "\\screen_dpi", LyXRC::RC_SCREEN_DPI },
{ "\\screen_font_encoding", LyXRC::RC_SCREEN_FONT_ENCODING }, { "\\screen_font_encoding", LyXRC::RC_SCREEN_FONT_ENCODING },
@ -198,7 +197,6 @@ void LyXRC::setDefaults() {
print_paper_dimension_flag = "-T"; print_paper_dimension_flag = "-T";
document_path.erase(); document_path.erase();
tempdir_path = "/tmp"; tempdir_path = "/tmp";
ps_command = "gs";
view_dvi_paper_option.erase(); view_dvi_paper_option.erase();
default_papersize = PAPER_USLETTER; default_papersize = PAPER_USLETTER;
custom_export_format = "ps"; custom_export_format = "ps";
@ -552,12 +550,6 @@ int LyXRC::read(string const & filename)
} }
break; break;
case RC_PS_COMMAND:
if (lexrc.next()) {
ps_command = lexrc.getString();
}
break;
case RC_CHKTEX_COMMAND: case RC_CHKTEX_COMMAND:
if (lexrc.next()) { if (lexrc.next()) {
chktex_command = lexrc.getString(); chktex_command = lexrc.getString();
@ -1165,11 +1157,6 @@ void LyXRC::output(ostream & os) const
} }
os << "\"\n"; os << "\"\n";
} }
case RC_PS_COMMAND:
if (ps_command != system_lyxrc.ps_command) {
os << "# Program used for interpreting postscript.\n"
<< "\\ps_command \"" << ps_command << "\"\n";
}
case RC_CHKTEX_COMMAND: case RC_CHKTEX_COMMAND:
if (chktex_command != system_lyxrc.chktex_command) { if (chktex_command != system_lyxrc.chktex_command) {
os << "\\chktex_command \"" << chktex_command << "\"\n"; os << "\\chktex_command \"" << chktex_command << "\"\n";
@ -1956,9 +1943,6 @@ string const LyXRC::getDescription(LyXRCTags tag)
str = _("Specify the default paper size."); str = _("Specify the default paper size.");
break; break;
case RC_PS_COMMAND:
break;
case RC_ACCEPT_COMPOUND: case RC_ACCEPT_COMPOUND:
str = _("Consider run-together words, such as \"diskdrive\" for \"disk drive\", as legal words?"); str = _("Consider run-together words, such as \"diskdrive\" for \"disk drive\", as legal words?");
break; break;

View File

@ -87,7 +87,6 @@ enum LyXRCTags {
RC_CHECKLASTFILES, RC_CHECKLASTFILES,
RC_VIEWDVI_PAPEROPTION, RC_VIEWDVI_PAPEROPTION,
RC_DEFAULT_PAPERSIZE, RC_DEFAULT_PAPERSIZE,
RC_PS_COMMAND,
RC_ACCEPT_COMPOUND, RC_ACCEPT_COMPOUND,
RC_SPELL_COMMAND, RC_SPELL_COMMAND,
RC_USE_INP_ENC, RC_USE_INP_ENC,
@ -191,8 +190,6 @@ enum LyXRCTags {
std::string custom_export_command; std::string custom_export_command;
/// ///
std::string custom_export_format; std::string custom_export_format;
/// postscript interpreter (in general "gs", if it is installed)
std::string ps_command;
/// option for telling the dvi viewer about the paper size /// option for telling the dvi viewer about the paper size
std::string view_dvi_paper_option; std::string view_dvi_paper_option;
/// default paper size for local xdvi/dvips/ghostview/whatever /// default paper size for local xdvi/dvips/ghostview/whatever