Commit Graph

5 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
8f2d853ec1 Backport of revision 25419:
URL: http://www.lyx.org/trac/changeset/25419
Log:
*** Extend preview scripts to also handle PDF output (bug 2165) ***

* src/PreviewLoader.cpp:
        - add conditions for preview with pdf output

* lib/scripts/legacy_lyxpreview2ppm.py:
        - if no dvi preview file is available, check for a PDF file
          and process that, if found
        - also produce png output, if requested.

* lib/scripts/lyxpreview2bitmap.py:
        - if no dvi preview file is available, check for a PDF file
          and process that, if found

*  lib/scripts/lyxpreview_tools.py:
        - move some common functions here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26209 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 08:02:39 +00:00
Bo Peng
2ae2c0db71 Remove hardcoded option -tt from python scripts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14478 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 19:41:32 +00:00
Georg Baum
4ae87a3bb8 Call python with the -tt switch to make mixed tab/space indentation an error
* src/support/os.[Ch]
	(python): new function, return the python command

	* lib/lyx2lyx/lyx_1_5.py
	(revert_font_settings): replace tabs with spaces

The rest is simply s/python/python -tt/ and
s/"python"/lyx::support::os::python()/ where appropriate.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14270 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-30 13:54:01 +00:00
Angus Leeming
132d2a2da7 Enable instant preview to work if the path to GhostScript contains spaces (bug
2193).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10710 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-05 14:13:14 +00:00
Angus Leeming
f907db6a82 Move common code into a 'tools' file.
Implementation is as similar as possible to the well-tested code in the
1.3.x tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8878 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-09 11:31:18 +00:00