Commit Graph

41 Commits

Author SHA1 Message Date
Joost Verburg
7d83d5d081 configure.py: add support for the EMF file format and the metafile2eps conversion utility for WMF/EMF to EPS conversion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@19197 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 21:12:42 +00:00
Enrico Forestieri
96a6e50ceb Fix bug 3220
* src/insets/ExternalSupport.C
	(updateExternal): Avoid computing crc of a directory as this leads
	to a crash on Cygwin.

	* lib/configure.py:
	Use a python script to get the current date in order to avoid
	a stalling condition with the date command on Win32.

	* lib/scripts/date.py:
	New python script.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17177 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 23:20:29 +00:00
Georg Baum
125e638bdb Fix bug 2868
* src/insets/insetgraphics.C
	(findTargetFormat): return pdf for vector graphics

	* src/format.h
	(Flags): new enum describing format flags
	(flags_): new member variable for format flags
	(vectorFormat): new, tell whether a format can contain vector graphics

	* src/format.C: adjust to flags changes

	* src/frontends/qt2QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new vector flag
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt2/ui/QPrefFileformatsModule.ui
	(vectorCB): new checkbox for vector flag

	* src/lyxrc.C
	(LyXRC::read): read vector flag
	(LyXRC::write): write vector flag

	* lib/doc/Customization.lyx: document format flags

	* lib/configure.py
	(checkFormatEntries): Add vector flag to some formats


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16432 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 21:11:42 +00:00
Enrico Forestieri
0698a90dd4 Fix compatibility with python 2.2.x
* lib/configure.py:
	Add compatibility code for booleans and use True and False
	instead of 'true' and 'false'

	* lib/scripts/lyxpreview_tools.py:
	* lib/scripts/fig_copy.py:
	* lib/scripts/TeXFiles.py:
	Fix typo and make code compatible also with python versions
	greater than 2.2.0


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15947 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 10:23:34 +00:00
Enrico Forestieri
0f641c9a84 Fix dtl tools detection. A non-empty variable is always true in python,
even if its value is false...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15911 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 19:29:17 +00:00
Enrico Forestieri
9d46ada90a Check only once for dtl tools in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15892 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 21:59:19 +00:00
Georg Baum
294109c66a Add lilypond external inset
* src/graphics/GraphicsConverter.C
	(build_script): Change the current directory to the directory of
	the output file

	* src/converter.C
	(Converters::convert): Add comment

	* lib/external_templates: Add lilypond template

	* lib/configure.py
	(checkFormatEntries): Add lilypond format
	(checkConverterEntries): Add lilypond converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15260 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-05 19:58:42 +00:00
Georg Baum
ebc38de12a Add latex2rtf converter
* lib/configure.py
	(checkFormatEntries): Add rtf format
	(checkConverterEntries): Add latex2rtf converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15170 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 14:17:55 +00:00
Georg Baum
927155ee00 Fix bug 2845
* lib/configure.py
	(checkFormatEntries): Add wmf format
	(checkConverterEntries): Add wmf -> eps converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15122 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 14:27:23 +00:00
José Matox
20c3de818d Fix compatibility with python 2.2.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15117 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 10:37:44 +00:00
José Matox
5eac90cdd3 make configure.py compatible with python 2.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15097 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 10:12:08 +00:00
Georg Baum
fd7594f86a Fix bug 2289
* src/tex2lyx/text.C
	(void parse_noweb): new, parse a noweb code chunck
	(void parse_text): handle noweb <<xxx>>= and [[xxx]] constructs

	* src/tex2lyx/tex2lyx.[Ch]: new global variable noweb_mode and
	command line option to set it

	* src/tex2lyx/preamble.C
	(parse_preamble): prepend "literate-" to the textclass name in
	noweb mode

	* lib/configure.py
	(checkConverterEntries): fix literate -> lyx converter
	(checkConverterEntries): fix typo in latex -> sxw converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14639 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 13:22:34 +00:00
Bo Peng
f6dbef59e6 Keep a copy of output from lib/configure.py to configure.log
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14591 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 15:27:12 +00:00
Jean-Marc Lasgouttes
743c2be02d fix the header of lyxrc.defaults
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14589 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 09:37:28 +00:00
Bo Peng
c012fabf39 lib/configure.py: display latex package checking results faster
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14548 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-06 23:21:43 +00:00
Bo Peng
5ae5cb1d70 no-Shell patch four: spaces/tab adjustment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14465 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 19:57:23 +00:00
Bo Peng
1603f20819 no-Shell patch three: fig2pstex/pdftex.sh -> fig2pstex/pdftex.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14464 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 19:41:30 +00:00
Bo Peng
d8fb4444fb no-Shell patch two: fig_copy.sh -> fig_copy.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14463 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 19:32:56 +00:00
Bo Peng
408e652cd0 lib/configure.py: fix CheckTexPaths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14371 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 02:53:50 +00:00
Bo Peng
0853b8e044 lib/configure.py: fix checkTeXAllowSpaces, by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14337 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 13:58:52 +00:00
Bo Peng
f7c2372ec4 lib/configure.py: use \nonstopmode instead of -interaction=nonstopmode, from JMarc and Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14317 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 15:34:02 +00:00
Bo Peng
fd9ca909c6 configure.py: add nonstopmode to cygwin latex check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14289 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 14:12:48 +00:00
Jean-Marc Lasgouttes
daa8296b7f The big cygwin_path rewrite patch from Enrico Forestieri.
Renaming:
	cygwin_path_fix		->	windows_style_tex_paths
	cygwin_path_fix_needed	->	tex_expects_windows_paths
	check_cygwin_path	->	check_windows_style_tex_paths
	use_cygwin_paths	->	use_windows_paths
	RC_CYGWIN_PATH_FIX	->	RC_TEX_EXPECTS_WINDOWS_PATHS

	* src/frontends/qt4/ui/QPrefCygwinPathUi.ui
	* src/frontends/qt3/ui/QPrefCygwinPathModule.ui
	  Updated checkbutton label and description

	* src/frontends/qt4/QPrefsDialog.C
	  (PrefCygwinPath): cygwin_path_fix -> windows_style_tex_paths
	  (QPrefsDialog): Enable checkbutton for native WIN32 builds

	* src/frontends/xforms/forms/form_preferences.fd
	  Updated label and name of checkbutton

	* src/frontends/xforms/FormPreferences.C
	  (apply): cygwin_path_fix -> windows_style_tex_paths
	           check_cygwin_path -> check_windows_style_tex_paths
	  (build): Enable checkbutton for native WIN32 builds
	  (update): Ditto
	  (feedback): Updated description

	* src/frontends/qt3/QPrefs.C
	* src/frontends/qt3/QPrefsDialog.C
	* src/frontends/qt3/QPrefsDialog.h
	  Renaming as above, enabled checkbutton for native WIN32 builds

	* src/support/os_unix.C
	* src/support/os.h
	* src/support/os_win32.C
	  Renaming cygwin_path_fix -> windows_style_tex_paths
	* src/support/os_cygwin.C
	  Ditto
	  (external_path, external_path_list): always return windows
	  style paths, not depending on the checkbutton status

	* src/lyxrc.C
	* src/lyxrc.h
	* src/lyxfunc.C
	* src/lyx_main.C
	  Renaming

	* lib/configure.py
	  Renaming, more meaningful diagnostics




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14243 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:54:14 +00:00
Georg Baum
51ca3d43d3 * lib/configure.py: Add tgif->png and tgif->ppm converters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14021 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-06 11:42:35 +00:00
Jürgen Spitzmüller
69ef78d216 * lib/configure.py:
use $$o flag where appropriate (still some cases pending).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13955 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-29 16:01:25 +00:00
Georg Baum
2a880d4fc5 * lib/configure.py: Add missing dvi2 editor (from Enrico)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13945 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-28 16:58:58 +00:00
Jürgen Spitzmüller
5d43d3a0c4 add support for dvipdfmx converter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13935 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-26 15:17:18 +00:00
Georg Baum
8f02fb39d0 Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
"Don't view/edit this format", and 'auto' means "Use the default viewer/editor".
        * src/format.C
        (fixCommand): Change semantics: "none" is equal to "", and "auto"
        is removed if canAutoOpenFile returns false.

        * src/frontends/xforms/FormPreferences.C
        (FormPreferences::SpellOptions::apply): regognize "" as "none"

        * src/lyxrc.C
        (LyXRC::getDescription): "none" -> ""

        * lib/doc/Customization.lyx: Document the autoopen feature

        * lib/configure.py
        (checkProg): add optional not_found argument, defaulting to 'none'
        (checkViewer): new, equivalent to checkProg with not_found = 'auto'
        (checkFormatEntries): call checkViewer instead of checkProg for
        viewers and editors


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13933 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-26 08:33:01 +00:00
Georg Baum
44aff0779e From Joost Verburg: Put the clean_dvi.py script into the main distribution
* lib/configure.py
	(checkLatex): Add DraftDVI converter on windows if dv2dt and dt2dv
	are available
	(checkFormatEntries): Add DraftDVI entry on windows if dv2dt and
	dt2dv are available

	* lib/Makefile.am: add clean_dvi.py

	* development/Win32/packaging/build_lyxwin.sh: remove clean_dvi.py
	stuff

	* development/Win32/packaging/package_lyxwin.sh: remove configure
	mangling for clean_dvi.py

	* development/Win32/packaging/clean_dvi.py: move to lib/scripts

	* development/Win32/packaging/README: remove clean_dvi.py stuff


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13922 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-24 19:52:27 +00:00
Jean-Marc Lasgouttes
762ea11579 2006-05-18 Enrico Forestieri <forenr@tlc.unipr.it>
* lib/configure.py: fix setting of \cygwin_path_fix_needed; remove
	extra \r at end of line for cygwin.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13862 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 09:14:00 +00:00
Jean-Marc Lasgouttes
f4c0658d1b New auto-open feature from Bo Peng (with help from Jean-Marc and Enrico)
* src/lyx_main.C (init): call Formats::setAutoOpen.
	
	* src/lyxrc.C (read): do not reset editor/viewer values of "none".

	* src/format.C (fixCommand): helper function: tweak command depending
	of the availability of OS viewer/editor.
	(setAutoOpen): run fixCommand over all the formats.

	* src/support/Makefile.am: under win32, link against shlwapi.dll.
	
	* src/support/os_*.C (canAutoOpenFile, autoOpenFile): new
	functions, used	to let the OS handle viewers and editors it knows about.

	* configure.ac: improve check for shlwapi.

	* lib/configure.py: remove check for native windows viewers.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13856 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-17 22:37:24 +00:00
Jean-Marc Lasgouttes
5e32e533ea * configure.py: reinstantiate part of removeExtraFiles that was
removed by mistake. Add removal of chklatex.{ltx,log}.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13792 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-03 13:32:24 +00:00
Bo Peng
bc3cdedf14 Enrico's cygwin fix to configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13784 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-29 13:48:24 +00:00
Jean-Marc Lasgouttes
9d509572db * src/support/package.C.in (get_build_dirs): Look at Makefile
instead of lyxrc.defaults. Simplify the check for
          chkconfig.ltx.

	* configure.ac: do not run lib/configure.py

	* lib/doc/Makefile.am: LaTeXConfig.lyx is not generated anymore.

	* lib/configure.py (removeExtraFiles): remove.

	* lib/Makefile.am: no files are generated in there.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13764 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 16:47:07 +00:00
Georg Baum
7e9bd4bd81 Fix bug 2107:
* src/LaTeXFeatures.[Ch]: replace nice_ by runparams_

        * src/insets/insetexternal.C
        (InsetExternal::validate): Use the correct template for the desired
        output format

        * src/insets/insetgraphics.C
        (InsetGraphics::prepareFile): Record the needed files for "latex"
        or "pdflatex" format, dependant on the desired output format

        * src/insets/insetinclude.C
        (InsetInclude::latex): ditto

        * src/BufferView_pimpl.C
        (BufferView::Pimpl::getStatus): adapt to LaTeXFeatures changes

        * src/paragraph_pimpl.C
        (Paragraph::Pimpl::simpleTeXSpecialC): ditto

        * src/buffer.C
        (Buffer::makeLaTeXFile): ditto
        (Buffer::makeLinuxDocFile): ditto
        (Buffer::makeDocBookFile): ditto

        * src/paragraph.C
        (Paragraph::simpleTeXOnePar): ditto

        * src/exporter.C
        (Backends): Add "pdflatex" backend format
        (Exporter::Export): set runparams.flavor correctly for "pdflatex" format

        * lib/external_templates
        (RasterImage): Use "pdflatex" format in PDFLaTeX template
        (XFig): ditto
        (ChessDiagram): Add PDFLaTeX template
        (Date): ditto

        * lib/configure.py: Add "pdflatex" format


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13745 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 11:44:26 +00:00
Georg Baum
a297fd1c28 * lib/configure.py: sync comment with 1.5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13743 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 08:16:41 +00:00
Georg Baum
47d49731a4 From Angus:
Enable lib/configure.py to find tex2lyx if the path to it contains spaces.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 07:34:21 +00:00
Georg Baum
333c7161b1 sync cleanup of lib/configure.py with 1.5 (no functional changes)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13739 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-25 13:56:20 +00:00
Georg Baum
2f15123953 merge configure.py with trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13358 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-13 12:38:32 +00:00
Georg Baum
38fd7b00b8 sync lib/configure.py with lib/configure.m4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10813 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 10:09:15 +00:00
Angus Leeming
7ac823d980 Add Bo Peng's experimental Python script to the repository.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10453 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-18 09:03:11 +00:00