Commit Graph

366 Commits

Author SHA1 Message Date
Georg Baum
f0f4e2c042 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/trunk@13924 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-24 20:06:42 +00:00
Georg Baum
5b83287abe * src/format.[Ch]
(document_): new flag, telling whether this is a document format and
	we want to show this format in the export and view menus
	(documentFormat): accessor for document_

	* src/format.h: Add some documentation

	* src/frontends/qt3/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt3/ui/QPrefFileformatsModule.ui: Add documentCB checkbox

	* src/frontends/qt4/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt4/ui/QPrefFileformatsUi.ui: Add documentCB checkbox

	* src/frontends/xforms/FormPreferences.C
	(FormPreferences::Formats::build): handle new check_document checkbox
	(FormPreferences::Formats::input): ditto
	(FormPreferences::Formats::Add): ditto
	(FormPreferences::Formats::Browser): ditto

	* src/frontends/xforms/forms/form_preferences.fd: Add check_document
	checkbox

	* src/lyxrc.C
	(LyXRC::read): Remove compatibility code for 1.3 \format entries.
	Read the new format flags (but don't require them for 1.4
	compatibility)
	(LyXRC::write): Write the new format flags

	* src/MenuBackend.C
	(expandFormats): Remove the hardcoded exception for image formats
	and use Format::isDocument() instead

	* lib/doc/Customization.lyx: Document auto viever/editor and the
	"document format" flag


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13887 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-20 12:03:40 +00:00
Jean-Marc Lasgouttes
c8410c3e0a 2006-05-18 Enrico Forestieri <forenr@tlc.unipr.it>
* 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/trunk@13861 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 09:13:24 +00:00
Jean-Marc Lasgouttes
b6e30400f5 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/trunk@13855 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-17 22:13:33 +00:00
Jean-Marc Lasgouttes
14b3dc43ed * 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/trunk@13793 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-03 13:32:42 +00:00
Bo Peng
a83b27130f Cygwin compatibility fix from Enrico
* lib/configure.py: specify dir for mkstemp


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13783 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-29 13:43:19 +00:00
Jean-Marc Lasgouttes
18d72887a6 * 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/trunk@13763 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 16:44:43 +00:00
Georg Baum
0ba907f1e4 * lib/configure.py: Don't use TeX in the the names of formats latex
and pdflatex, use LaTeX instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13744 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 11:12:39 +00:00
Georg Baum
a2457c3b5b 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/trunk@13708 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-21 15:15:55 +00:00
Georg Baum
7f6a274742 configure.py: Bo Peng (ben.bob@gmail.com)
Fix --without-latex-config option, separate processLayoutFile()
	Fix checkCygwinPath(),  by Enrico


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13539 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-01 09:39:11 +00:00
Georg Baum
fd1fc0cdf6 Major cleanup of lib/configure.py from Bo Peng
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13537 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-31 13:31:16 +00:00
Georg Baum
7a82979958 Adjust keybord shortcut of the "latex" format to the changed name
(this belongs to the fix for bug 2107)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13532 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 18:43:05 +00:00
Georg Baum
fc7f2d9805 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/trunk@13520 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-28 18:49:46 +00:00
Georg Baum
41dd4f0be3 fix several small errors (mainly typos) in lib/configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13341 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-11 16:24:59 +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