Commit Graph

418 Commits

Author SHA1 Message Date
Richard Heck
b8743dd2ed The default tag for an InsetLayout should depend upon MultiPar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:41:31 +00:00
Richard Heck
487053deb8 We need truly XHTML output to get MathML to display in Firefox, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31982 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-14 16:21:21 +00:00
Uwe Stöhr
4147409b37 configure.py: revert back to r31950, except of the comment that was removed in this revision
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31959 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-12 23:24:55 +00:00
Uwe Stöhr
5af21dd2ab configure.py: revert r31950 because
- Richard removed a valid comment
- Richard's change introduced a regression, see my mail on the list

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31955 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-12 01:18:04 +00:00
Richard Heck
f826daf396 Alex Fernandez's elyxer detection patch for trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31950 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-11 23:10:13 +00:00
Uwe Stöhr
fc709d0c0a configure.py: fix detection of LyX to HTML converter - only create such a converter when eLyXer was found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31949 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-11 22:51:19 +00:00
Uwe Stöhr
60ca549de3 configure.py: fix check for eLyXer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31897 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-07 16:55:23 +00:00
Jürgen Spitzmüller
fbb0c219ca * add support for jmakeindex (a Japanese index processor)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31659 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 16:57:38 +00:00
Jürgen Spitzmüller
95c34cc714 * configure.py: remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31305 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:38:11 +00:00
Jürgen Spitzmüller
3e8532d83e * configure.py: fix construction of *_alternatives rc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31303 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:30:33 +00:00
Jürgen Spitzmüller
2ebb97758c * store all available viewers/editors and allow for an alternative selection in the GUI.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31291 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:11:43 +00:00
Uwe Stöhr
4aa442a9b0 configure.py: fix the calling of eLyXer. Now also files with spaces in the path can be handled correctly. This makes it possible to convert files on Windows like our documentation files when you open them via the Help menu.
To use now eLyXer, you only need to copy it to LyX's scripts folder.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31265 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-03 22:36:48 +00:00
Jürgen Spitzmüller
0c4f7f62c1 * configure.py: attempt to fix the check for the java version of splitindex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31113 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 10:10:06 +00:00
Jürgen Spitzmüller
a688f25880 * configure.py: change detection order of splitindex preprocessors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31112 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 08:52:42 +00:00
Richard Heck
7035f4cabb Module categories, for Pavel.
Do free free to change the categories. I just did these ones for testing, really.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 15:20:11 +00:00
Uwe Stöhr
29d4c2de97 configure.py: check also for Yap, MiKTeX's DVI previewer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 22:24:32 +00:00
Pavel Sanda
4e082c886d Fix bug #6103.
Juergen?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31004 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 11:29:48 +00:00
Uwe Stöhr
9457f62107 configure.py: check for hylapex, a fax program that runs on all platforms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30891 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 01:31:22 +00:00
Pavel Sanda
533d0c2a9f Search for both elyxer and elyxer.py.
Patch from Sven Hoexter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30251 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-24 19:09:33 +00:00
Jean-Marc Lasgouttes
23b70a8fdd Fix bug 5881: documentation bug in /usr/share/lyx/configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30218 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 10:38:13 +00:00
Jürgen Spitzmüller
3d1da3331d * configure.py:
- change eLyXer command and copier to copy images
	  to the appropriate places on view and export
	  (requires eLyXer 0.27).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30132 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-16 08:06:12 +00:00
Pavel Sanda
e35f3ef321 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-13 22:32:28 +00:00
Pavel Sanda
227a0802dc Lets have new output in view menu too.
Copiers command would be needed one day?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29974 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 20:22:10 +00:00
Richard Heck
aa992dbbc2 Fix format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 18:27:06 +00:00
Richard Heck
92a69bb790 Basic output routines for HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29950 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 17:44:35 +00:00
Uwe Stöhr
d3ff1d16e3 configure.py: port r29905
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29913 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-03 22:09:55 +00:00
Uwe Stöhr
5fb7fa93c7 configure.py: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29798 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 23:31:16 +00:00
Jean-Marc Lasgouttes
6d08a75d62 New literate programming modules.
These modules allow to use Sweave or Noweb with any LyX textclass.
They will eventually allow to get rid of literate-* classes.

The sweave modules will benefit in trunk from a forthcoming patch which allows 
to select the output format for a literate OutputType. This will allow to
support Sweave out-of-the-box.

For branch, this pair of modules is IMO a candidate for LyX 1.6.4 (no need to
hurry).

Thanks to Gregor Gorjanc for his work on this subject. There is
undoubtlessly some additional work that has to be done here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29657 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 21:23:05 +00:00
Jürgen Spitzmüller
48f36f59e7 * configure.py:
- add new method that records all available alternative programs
	  as opposed to only the first found one.

* LyXRC[cpp,h}:
* LyXFunc.cpp:
	- new RCs \bibtex_alternatives and \index_alternatives, holding
	  alternative processors.

* GuiPrefs.{cpp, h}:
* PrefLatexUi.ui:
	- UI to select from a list of preconfigures bibliography/index processors.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 10:07:32 +00:00
Pavel Sanda
546fa8c705 Adapt detection of elyxer to new versions (>=0.18).
This should fix the execution ptoblem on windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29528 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 00:51:32 +00:00
Pavel Sanda
734dfec925 Please Uwe
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29493 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 12:51:36 +00:00
Pavel Sanda
27842f0bd5 Revert http://www.lyx.org/trac/changeset/29452
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150555.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 08:39:40 +00:00
Uwe Stöhr
bd9de0b764 configure.py: prepare LyX to include eLyXer, for more info I wrote to the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29452 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 02:06:44 +00:00
Pavel Sanda
b12096dc21 Add recognition to eLyXer
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150466.html
http://www.lyx.org/trac/ticket/5929


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29448 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-30 20:16:02 +00:00
Pavel Sanda
b69946bee0 whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29447 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-30 13:47:38 +00:00
Jürgen Spitzmüller
a43849b699 * configure.py:
- check for KDE4's okular viewer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 12:00:11 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Jürgen Spitzmüller
26b361417d * Properly separate the specific Japanese (i.e., pLaTeX) auxiliary programs (jbibtex, mendex)
from the standard LaTeX programs.
  These programs are only used now if the document actually uses Japanese, not always if they are found.
  (bug 5601 a.o.).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-13 09:53:40 +00:00
Jürgen Spitzmüller
737e9b2c20 start XeTeX support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 06:58:30 +00:00
Jürgen Spitzmüller
b52205d30b configure.py:
- add support for newer lilypond versions (bug 5834).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28815 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 13:47:58 +00:00
José Matox
b8ce87578f Use logging module instead of homebrew python class (Patch from Bo Peng)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28704 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 18:54:08 +00:00
Pavel Sanda
28bfbe4e03 Duplicate line.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27915 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 16:32:54 +00:00
Pavel Sanda
b17f13a5e5 Allow Dia diagrams as external insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:07:07 +00:00
Pavel Sanda
441161daa2 ispell leftover
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27817 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-08 22:26:45 +00:00
Vincent van Ravesteijn
ab015d7389 configure.py: Add the new LyX 1.6.x file format and convertor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 22:14:59 +00:00
Stephan Witt
37749a04dc use new converter variable $$d to make tgif preview working (via png converter path)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:20:53 +00:00
Jean-Marc Lasgouttes
071016df39 remove last traces of plaintext_roff_command
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27515 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 23:39:48 +00:00
Jean-Marc Lasgouttes
1b391f35cd do not try to run platex if it has not been found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 13:56:57 +00:00
José Matox
3caeb344b8 Fix configuration for docbook backend and add detection of xlstproc. (Rafael García)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27389 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 21:02:19 +00:00
Richard Heck
b940dc2db7 Configure shouldn't abort just because it encounters an error reading a layout file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27057 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 15:30:17 +00:00
Richard Heck
13a7093719 Give some more useful feedback.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27021 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-22 11:59:51 +00:00
Uwe Stöhr
f3117747ff remove last traces of linuxdoc whose support has been removed long ago; requested in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145127.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26982 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 20:49:04 +00:00
Uwe Stöhr
072f9c91a8 configure.py: add comment for the OpenDocument conversion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 13:57:04 +00:00
Jürgen Spitzmüller
5b5e0025ef * configure.py:
- TeXLive does not include the oolatex script, but relies on mk4ht.
	  Also reinclude the verbose command as a fallback.

Obviously, such changes need testing on as many systems and distributions as possible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 11:49:37 +00:00
Uwe Stöhr
3635825581 configure.py: - fix converter command for OpenDocument, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4604
- check for OpenOffice as viewer for OpenDocument

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-18 17:38:39 +00:00
Jean-Marc Lasgouttes
8641445588 configure automatically literate>pdflatex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-17 11:00:31 +00:00
Jürgen Spitzmüller
641708ac4b * separate nomencl processing command from index processing command, since nomencl
relies on makeindex (with specific options) [bug 5184].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 09:44:00 +00:00
Jürgen Spitzmüller
a2906cb877 ** proper implementation of pLaTeX by Tetsuya Makimura and me, fixes many remaining problems and bugs with language "japanese" (bugs 4863, 4290, 4700 and partially 4697) **
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26200 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-18 17:26:09 +00:00
Jürgen Spitzmüller
a46886a8ff * lib/configure.py:
- check if texindy is available and if so, use it instead of makeindex
	  (bug 4732).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 08:46:00 +00:00
Abdelrazak Younes
1bd3845672 add JFig fig editor support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25247 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 13:46:27 +00:00
Jürgen Spitzmüller
fce7799859 * lib/configure.py:
- add support for Graphviz Dot files (bug 4882).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:49:15 +00:00
Uwe Stöhr
a2f6539aff configure.py: rename "Comma-separated values" to "Table (CSV)"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24852 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 00:59:16 +00:00
Jürgen Spitzmüller
42aaa245db * Hartmut's csv2lyx script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 17:08:21 +00:00
Richard Heck
6bc34295e3 Add JabRef to the search list for BibTeX editors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 19:42:22 +00:00
Jürgen Spitzmüller
eb60240b73 Oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:20:03 +00:00
Jürgen Spitzmüller
a585806b3c Implement inset-edit in InsetBibtex and add a context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:14:18 +00:00
Jürgen Spitzmüller
5997d41b38 ** support pdfpages via external inset **
* development/FORMAT:
* src/Buffer.cpp:
	- format incremented to 326

* src/LaTeXFeatures.cpp:
* lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx:
	- support pdfpages

* lib/external_templates:
	- add template for pdfpages

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion routine.

* lib/configure.py:
	- fix call to "pdftops --eps"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24237 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 14:07:25 +00:00
Uwe Stöhr
da0a9688bd configure.py: check for BibTeX programs. This makes it possible to use for example a Japanese BibTeX program.
Fixes http://bugzilla.lyx.org/show_bug.cgi?id=4143

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24056 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-30 00:11:36 +00:00
Jürgen Spitzmüller
01d9b33db9 * lib/configure.py:
- add support for htmltolatex

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 12:22:28 +00:00
Jürgen Spitzmüller
2d697fb88f * lib/configure.py:
- add support for gnuhtml2latex

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23566 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:17:15 +00:00
Pavel Sanda
300977b597 Add unrtf to configure.py.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23563 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:44:49 +00:00
Jürgen Spitzmüller
ca4d221248 * lib/configure.py:
- Use verbose htlatex command instead of oolatex, if available, 
	  since the latter caused problems on some systems (bug 4604).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:34:16 +00:00
Pavel Sanda
398b07a2a5 xdg-open stuff was reverted only in branch, time to synchronize in trunk.
http://www.lyx.org/trac/changeset/22431


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23432 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 11:51:21 +00:00
Jürgen Spitzmüller
0b721a0b8c * lib/configure.py:
- add checks for pdf2ps and pdftops (bug 3968).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 10:34:43 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Uwe Stöhr
93c7c89beb configure.py: fix detection of LaTeX (bug 4397)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21982 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:26:48 +00:00
André Pönitz
b716ccd1a0 Patch from Sven Hoexter. Use 'xdg-open' and 'sensible-editor' when
available


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21957 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 21:25:46 +00:00
Uwe Stöhr
5d2108ae33 configure.py: revert accident commit (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg132477.html is still the case)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:19:49 +00:00
Uwe Stöhr
97aa558cac support for \pagebreak:
- rename former "pagebreak" to "newpage" since it produces a \newpage
- new LFUN
- menu entry
- tex2lyx support
- fileformat change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:10:00 +00:00
Bo Peng
360be11fcc Use latex instead of pplatex to check latex configurations, and exit from configure.py with proper error code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21691 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 16:24:26 +00:00
Enrico Forestieri
eab1d98ab4 When searching for programs, also take into account all possible
extensions for executables (only Windows is affected by this).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21201 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 13:40:28 +00:00
Uwe Stöhr
5d102dad68 configure.py: correct previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21137 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 23:59:00 +00:00
Uwe Stöhr
1c55d1fc77 configure.py, legacy_lyxpreview2ppm.py, lyxpreview2bitmap.py: check also for "platex" (Japanese variant of "latex"); patch by Koji
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21136 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 23:55:13 +00:00
Enrico Forestieri
727a421a1f Fix DraftDVI entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20977 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-15 23:32:07 +00:00
Bo Peng
34058aed9b Check and show proper error message if configure.py fails (part of buf 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20967 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 14:51:05 +00:00
Bo Peng
8d9893ad50 InsetInfo: Move LaTeXConfig.lyx.in to LaTeXConfig.lyx and stop processing this file in configure.py (and chkconfig.ltx.
* development/scons/scons_manifest.py: build system changes
	* lib/doc/Makefile.am
	* lib/doc/LaTeXConfig.lyx.in: rename to
	* lib/doc/LaTeXConfig.lyx: this one.
	* lib/chkconfig.ltx: stop processing sed file and LaTeXConfig.lyx.in
	* lib/configure.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20910 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 15:43:44 +00:00
Bo Peng
7329719bec Make sure a textclass.lst will exist even when configure.py fails. Part of Bug 2829, port from branch to trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20519 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 16:26:49 +00:00
Richard Heck
efec6dde3d Add export to 1.5.x to trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19966 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 04:09:03 +00:00
Richard Heck
7f17f13bfc Get package things working with modules prior to UI patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19900 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 22:59:25 +00:00
Richard Heck
8a947f63da This is one of a series of patches that will merge the layout modules development in personal/branches/rgheck back into the tree.
Design goal: Allow the use of layout "modules", which are to LaTeX packages as layout files are to LaTeX document classes. Thus, one could have a module that defined certain character styles, environments, commands, or what have you, and include it in various documents, each of which uses a different document class, without having to modify the layout files themselves. For example, a theorems.module could be used with article.layout to provide support for theorem-type environments, without having to modify article.layout itself, and the same module could be used with book.layout, etc.

This patch adds the backend. The ModuleList class holds a list of the available modules, which are retrieved from lyxmodules.lst, itself generated by configure.py. There are two LFUNs available: modules-clear and module-add, which do the obvious thing; you can test by typing these into the minibuffer, along with the name of one of the available modules: URL (a CharStyle), Endnote (a Custom Inset), and---with the spaces---End To Foot (View>LaTeX and look at the user preamble), which are themselves in lib/layouts. There are some others, too, that allow theorems to be added to classes like article and book.

The GUI will come next.

Issues: (i) The configure.py script could be improved. It'd be nice, for example, if it tested for the presence of the LaTeX packages a particular module needs. But this would mean re-working the LaTeX script, and I don't know how to do that. Note that at present, the packages are ignored. This will change shortly. (ii) I've used std::string in LyXModule, following what seemed to be a precedent in TextClass. If some of these should be docstrings, please let me know, and I'll change them. (iii) There is at present no distinction between LaTeX and DocBook modules. Should there be? That is: Should there be modules that are available when the document class is a LaTeX class and others that are available only when it is DocBook? Or should there just be one set of modules? Each module can of course indicate for what it is suitable in its description.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19893 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 17:59:49 +00:00
Georg Baum
022bcb105c fix tex4ht detection on older SuSE and current Debian
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 17:31:42 +00:00
Enrico Forestieri
cbc5b72004 On Windows, remove log file generated by miktex and copy chkconfig.ltx
obeying the umask value as on cygwin access is controlled through ACLs
and the python port knows nothing about them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-04 23:31:52 +00:00
Jean-Marc Lasgouttes
8151f74f21 revert r19291 (mk4ht returns the wrong error code))
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-03 21:19:29 +00:00
Richard Heck
1885fe5398 Use mk4ht oolatex' instead of htlatex etc etc etc', per Jean-Pierre's advice.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19291 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-03 14:45:43 +00:00
Richard Heck
364f49d04b [2085] Get OpenDocument export working when htlatex is available but oolatex
is not. Also check for oowriter as an ODT viewer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19260 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-31 17:18:02 +00:00
Joost Verburg
b3ace671d2 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/trunk@19196 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-24 21:08:25 +00:00
Michael Schmitt
c4d2b66aca fix white space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18834 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-19 21:20:09 +00:00
Richard Heck
954be90e11 Make HTML export work.
The key is the new copier script lib/scripts/ext_copy.py. Usage:
 ext_copy.py [-e ext1,ext2,...] <from file> <to file>
Given a <from file> and <to file>, it will copy all files in the directory 
in which from_file is found that have the extensions given in the -e option, 
or all files in that directory if no such argument is given. So, for example, 
we can do:
  python ext_copy.py -e png,html,css /path/from/file.html /path/to/file.html
and all html, png, and css files in /path/from/ will be copied to the 
(possibly new) directory /path/to/file.html.LyXconv/. The -t option determines 
the extension added to the output filename passed to the script ($$o, in the
copier definition), the default being "LyXconv". If just . is given, then no 
extension is added.

Other changes:
* configure.py: added appropriate copier definitions for html and wordhtml
formats, as well as for the Program pseudo-format.
* lib/Makefile.am and development/scons/scons_manifest.py: add ext_copy.py.
* lib/doc/Customization.lyx: update documentation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-15 17:02:35 +00:00
Richard Heck
8559f2fd0e Reorder checks for PDF and PS converters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18691 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-06 15:47:41 +00:00
Richard Heck
4fb4c517fd Add a check for the evince viewer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18679 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-05 17:23:09 +00:00
Richard Heck
3edbc20f79 Remove originaldir flag from HTML converters so that View-HTML works. Export still does not work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18492 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-24 16:45:38 +00:00
Richard Heck
e7149f4dd9 Change converter and format definitons for OpenDocument format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18396 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-18 04:12:58 +00:00
Richard Heck
119400e4b3 Add originaldir,needaux flags to default Latex to HTML(Word) conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18383 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 15:33:47 +00:00
Richard Heck
c640f9613f Fix for bug 3423: Add check for gimp-remote before check for gimp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17843 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-17 17:52:02 +00:00
Enrico Forestieri
b343446bd4 Fix bug 3400
* lib/scripts/convertDefault.py: Use the cropbox option when the
	source format is pdf and convert supports it.

	* lib/configure.py: Don't define a PDF->PNG converter in order to
	avoid the EPS->PDF->PNG route when converting EPS to a loadable
	format.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17668 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 18:21:54 +00:00
Michael Schmitt
7bd29ec955 add firefox as HTML previewer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17408 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-04 15:43:16 +00:00
Georg Baum
fed67a2d50 fix the fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17291 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 13:01:34 +00:00
Michael Schmitt
933173db26 * lib/configure.py: fix typo in comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17286 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 20:56:54 +00:00
Georg Baum
022a719d0d explain why we don't have an agr -> grace converter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17283 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 20:20:19 +00:00
Georg Baum
3ccb9d8af9 * src/exporter.C
(Exporter::Export): Remove hardcoded check for lyx backend.
	Use the shortest converter path instead, that is more flexible and
	always correct.

	* lib/configure.py: Add new formats and converters for importing and
	exporting files from CJK LyX.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17202 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 20:14:12 +00:00
Enrico Forestieri
1b21743511 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/trunk@17168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 19:09:54 +00:00
Enrico Forestieri
de42495b90 Fix to the fix for bug 2418. The commands python module is a *nix only
thing and it worked on Win32 only by chance.

	* lib/configure.py:
	Correctly collect stderr also on Win32.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17095 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 20:15:41 +00:00
Michael Schmitt
a02431057e * lib/configure.py: fix unwanted script abort (identify LinuxDoc layout file)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17090 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 17:38:11 +00:00
Enrico Forestieri
61b4f87330 Fix bug 2418 (hopefully)
* lib/configure.py:
	Check whether convert understands the -define option, and, if so,
	define a new converter PDF->PNG such that the CropBox rather than
	the MediaBox is used in the conversion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17078 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-06 23:44:43 +00:00
Uwe Stöhr
aba891d408 Add Ignacio García to the credits
step 2/3

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-06 22:03:14 +00:00
Bo Peng
afc9bac8d3 lib/configure.py: remove comments, this file is no longer experimental
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17041 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-04 16:49:57 +00:00
Georg Baum
bbc3a0f0c4 * src/MenuBackend.C
(expandFormats): Document hack

	* lib/configure.py
	(checkFormatEntries): s/Plain text (paragraphs)/Plain Text, Join Lines/
	since this is the term we use elsewhere and it shows up in the file
	filter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17039 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-04 15:16:44 +00:00
Michael Schmitt
1f7a1257f1 * change LFUN file-insert-ascii to file-insert-plaintext
* change LFUN file-insert-ascii-para to file-insert-plaintext-para
* change LyXRC::RC_ASCIIROFF_COMMAND to LyXRC::RC_PLAINTEXT_ROFF_COMMAND
* change LyXRC::RC_ASCII_LINELEN to LyXRC::RC_PLAINTEXT_LINELEN
* replace "ascii" by "plaintext" in method names


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-15 22:49:14 +00:00
Georg Baum
47e8e30eb1 Fix bug 144: Support for noteedit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16574 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 15:56:41 +00:00
Michael Schmitt
53e186297e * lib/configure.py: change "MS Word (HTML)" to "HTML (MS Word)" as suggested by H. Haase; fix a few typos ("a" => "an")
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16552 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 15:03:38 +00:00
Georg Baum
c7490b191e Add LyX 1.4.x format for export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16417 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 16:23:12 +00:00
Michael Schmitt
88a6d1a918 * lib/configure.py: fix typos ("Declear" => "Declare")
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16415 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 15:30:12 +00:00
Enrico Forestieri
35be7672f4 Use booleans True and False and fix a typo in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15932 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-15 01:20:31 +00:00
Enrico Forestieri
bfe2d2c027 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/trunk@15910 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 19:23:44 +00:00
Enrico Forestieri
3cc1001bd3 Check only once for dtl tools in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15891 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 21:47:03 +00:00
Georg Baum
90867eff0d 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/trunk@15245 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-04 19:01:00 +00:00
Georg Baum
2c72e0ecaa 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/qt[34]/QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new vector flag
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt3/ui/QPrefFileformatsModule.ui
	* src/frontends/qt4/ui/QPrefFileformatsUi.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/trunk@15205 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 08:34:59 +00:00
Georg Baum
b098503faf Add latex2rtf converter
* lib/configure.py
	(checkFormatEntries): Add rtf format
	(checkConverterEntries): Add latex2rtf converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15165 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:50:20 +00:00
Georg Baum
83b18f414e 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/trunk@15118 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 11:37:22 +00:00
Michael Schmitt
d056d51087 revert recent change to development/FORMAT (don't change history)
drop LinuxDoc support (final part)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14823 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 12:55:23 +00:00
Georg Baum
425dfd3a24 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/trunk@14635 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 09:46:28 +00:00
Bo Peng
46212cf492 Keep a copy of output from lib/configure.py to configure.log
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14590 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 15:21:22 +00:00
Jean-Marc Lasgouttes
8d9e8f5097 fix the header of lyxrc.defaults
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14588 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-09 09:36:42 +00:00
Georg Baum
f3b66682f2 Add converter to plain text and fix child format buglet
* src/graph.C
	(Graph::getReachable): Only add a child format to only viewable
	formats if the child or parent has a viewer. Previously a child
	format was also added when there was no viewer at all.

	* lib/configure.py
	(checkFormatEntries): add text2, text3 and text4 formats
	(checkConverterEntries): add ps2ascii , pstotext and catdvi converters


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14528 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-31 17:43:59 +00:00
Bo Peng
3181082c31 lib/configure.py: do not wait till the end of 'latex wrap_chkconfig.ltx' to display latex class availability info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14501 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 14:18:47 +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
Bo Peng
f8404ec837 lib/configure.py: fix CheckTexPaths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14370 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 02:50:24 +00:00
Bo Peng
efc3b4e52a lib/configure.py: fix checkTeXAllowSpaces, by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14336 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 13:55:28 +00:00
Bo Peng
d17833b8d0 lib/configure.py: use \nonstopmode instead of -interaction=nonstopmode, from JMarc and Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14316 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 15:28:13 +00:00
Bo Peng
9067cdb3e8 lib/configure.py: add -interaction=nonstopmode to cygwin/latex test.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14287 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 03:09:00 +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
Bo Peng
ad3a07c4f2 Replace lib/scriptsfig2pdftex.sh and fig2pstex.sh by their python version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-29 15:30:22 +00:00
Bo Peng
21f1b19b2e Replace lib/scripts/fig_copy.sh with fig_copy.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14261 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-28 14:26:27 +00:00
Bo Peng
a5a508bdaa Change the indent level of python code from two to four
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14250 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 21:08:54 +00:00
Jean-Marc Lasgouttes
44a5cfc89c 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/trunk@14242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:51:24 +00:00
Georg Baum
8cb28fed33 * lib/configure.py: Add tgif->png and tgif->ppm converters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13997 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-04 09:58:19 +00:00
Edwin Leuven
2d73110e2c make sure we get the correct path in windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13973 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-31 14:28:29 +00:00
Georg Baum
440ebe6385 * lib/configure.py: fix typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13940 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-27 08:31:22 +00:00
Jürgen Spitzmüller
b9d9326080 * lib/configure.py:
use $$o flag where appropriate (still some cases pending).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13939 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-27 07:48:56 +00:00
Jürgen Spitzmüller
8a336ada5b add support for dvipdfmx converter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13934 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-26 15:13:51 +00:00
Georg Baum
d544373734 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): "none" -> ""

	* src/lyxrc.C
	(LyXRC::read): "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/trunk@13929 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-25 11:57:22 +00:00
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