Commit Graph

222 Commits

Author SHA1 Message Date
Richard Heck
33707856c3 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32202 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 21:54:09 +00:00
Pavel Sanda
0c6d32eb04 Fix bug #3349 - SVG support in Lyx
You wouldn't believe it, the convertor was already on my box ;)
Credit goes to Carl Worth.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32201 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-25 21:46:33 +00:00
Richard Heck
b30bcc3860 Shortcut for LyX HTML output. (Makes my life easier!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32107 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:50:00 +00:00
Richard Heck
d62c5cf02e Sorry, I didn't mean to commit all that. Let's try again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32105 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:47:22 +00:00
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