Commit Graph

22775 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
316a17f414 Changes in buffer_funcs.cpp::newUnnamedFile():
- the prefix can now be supplied,
- there can be more types of unnamed files,
- the code is made more concise,
- templatefile parameter is made optional,
- "newfile" is made translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31704 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 14:20:00 +00:00
Richard Heck
923dc53431 Fix a typo and clarify the logic around the return value. Note that this
would allow us to do something after copying, if we should later want to
do that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 12:31:59 +00:00
Uwe Stöhr
adaeffec5a ext_copy.py: fix #6234 for trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31698 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 00:55:28 +00:00
Vincent van Ravesteijn
f09a4ac03c Fix bug #6280: Wrong context menu is opened in an auto-opened inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31697 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 00:02:41 +00:00
Jean-Marc Lasgouttes
42546d3f2c Disable forking on Mac OS X. This should fix crashes on Snow Leopard.
It would be better to
* detect OS X version at run time (how??)
or
* use proper threads for autosave


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 16:50:40 +00:00
Jean-Marc Lasgouttes
b265203a84 Paragraph::write: buffer normal characters into a docstring, in order to reduce the number of calls to to_qstr().
THis leads to a big speedup of the buffer-write function (>60%). The goal is to make autosave less noticeable.

This patch should be safe as long as transforming a docstring to utf8 is equivalent to transforming the characters one by one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31695 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 16:48:55 +00:00
Enrico Forestieri
1535e4b825 Fix the rest of bug #6284.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31694 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 15:00:36 +00:00
Jürgen Spitzmüller
537caa8833 * LaTeXFeatures.cpp:
- do not eat space at the beginning of \lyxadded macro (bug 6282).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31692 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 09:01:51 +00:00
Uwe Stöhr
212e783052 installer: sync with branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31691 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-21 03:11:14 +00:00
Uwe Stöhr
3856be62b9 Tutorial.lyx: fixes of issues spotted by John Hudson and revision of the document
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31689 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-21 03:08:18 +00:00
Enrico Forestieri
456449bd56 Better fix for bug #6284. There's no need to check for spaces here
as they are already accounted for during the tokenization phase.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31687 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-20 15:26:22 +00:00
Uwe Stöhr
d319b368c7 tex2lyx/preamble.cpp: improve the fix from r31440:
- when languages are given in the documentclass options _and_ the babel options, babel takes the last language option of the \usepackage call
 - there is no quote language "ngerman", it is in both cases "german"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31685 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-20 01:45:33 +00:00
Uwe Stöhr
d98251c379 - gen_lfuns.py: reduce the space between items in LFUNs.lyx to save whitespace
- LFUNs.lyx: rebuilt with changed gen_lfuns.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31681 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 23:44:11 +00:00
Enrico Forestieri
5484edda22 Fix bug #6284: missing space between # and text in math mode when using \mbox
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31680 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 23:11:36 +00:00
Enrico Forestieri
ba9d500de4 The current buffer is the master of an included file, not the grandmaster.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31677 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 10:29:15 +00:00
Uwe Stöhr
8355b32381 - LFUNs.lyx: there is no need to use AMS for this file.
- gen_lfuns.py: change the script accordingly and add the missing \spacing tag

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31669 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 00:01:01 +00:00
Enrico Forestieri
ceaf30cc41 Update reverse search documentation for Cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31667 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 23:09:39 +00:00
Enrico Forestieri
e590b77bcc Update it.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31666 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 22:35:33 +00:00
Enrico Forestieri
128e349191 Restore the master language at the end of an included child document
instead of the child document language.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31665 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 21:48:13 +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
Uwe Stöhr
4beb1a5546 languages: fix spelling (can also go to branch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31657 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 14:30:33 +00:00
Pavel Sanda
8962886acb String formatting
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg155067.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31656 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 03:58:20 +00:00
Richard Heck
5f8f8dd947 Factor out some common code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31655 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-17 22:58:44 +00:00
Richard Heck
973b0e25fb Redo the viewer_alternatives and editor_alternatives in terms of a map,
rather than a vector. This helps deal with problems involving multiple
specifications of a single command. (Even after the previous commit, 
we were still getting duplicates in the UI after every alteration of 
the preferences.) It's also more natural, anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31654 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-17 22:52:16 +00:00
Richard Heck
9c3fc03f3a Fix how viewer_alternatives and editor_alternatives are written
to the preferences file. The old way produced tons of duplicates.
The fix is the same as for a prior bug with bibtex_alternatives.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-17 18:02:40 +00:00
Richard Heck
3d19a3a820 Viewer and editor selections were not being saved.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31651 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-16 16:17:52 +00:00
Kornel Benko
8e02385cea Applied revision 31646 to cmake-build too
Do not check for headers strings.h, io.h, process.h

Do not check for functions mkstemp, mktemp

Do not check for declarations of istreambug_iterator, iterator, mktemp



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31647 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-16 10:51:58 +00:00
Jean-Marc Lasgouttes
d23a75a3dc Remove dead includes in FileName, since we do not use mkstemp anymore
Do not check for headers strings.h, io.h, process.h

Do not check for functions mkstemp, mktemp

Do not check for declarations of istreambug_iterator, iterator, mktemp

NOTE to cmake/scons maintainers: you should also get rid of the handling of those symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-16 09:32:50 +00:00
Uwe Stöhr
d9e83bc7ff German Additional.lyx: update by Hartmut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31645 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-16 00:01:43 +00:00
Pavel Sanda
da55181c33 More info into emergency dialog. This is especially useful in case
more master/child emergency files were detected.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31642 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 21:37:09 +00:00
Jean-Marc Lasgouttes
2fd6cc3cb0 I just noticed that trunk did not define HAVE_FORK anymore, because this was part of checking for ispell support... This commit reinstates it, and probably makes autosave faster.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31640 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:45:22 +00:00
Jean-Marc Lasgouttes
4fc6c1247a Fix bug #6276: tex2lyx fails to import captions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:22:35 +00:00
Pavel Sanda
b1aa64f58b next leftover
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31623 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 20:12:25 +00:00
Pavel Sanda
81bff38d56 in trunk too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31622 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 20:08:37 +00:00
Pavel Sanda
32d48ba0d7 Sounds better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31619 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 19:35:54 +00:00
Pavel Sanda
dd82560e85 Next one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31618 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 19:29:06 +00:00
Pavel Sanda
d4bf62b417 Fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31617 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 19:27:12 +00:00
Pavel Sanda
f4f465a532 Doc it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31616 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 19:18:10 +00:00
Pavel Sanda
4257aa5e7f Make updating less dangerous, see comments in #6255.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31615 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 19:18:06 +00:00
Jean-Marc Lasgouttes
266cb16168 add support for \specialsection in amsart; fix some fonts for better screen rendering
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31613 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 09:51:26 +00:00
Jean-Marc Lasgouttes
1154a6d782 add missing modules to distribution
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31611 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 20:12:47 +00:00
Jürgen Spitzmüller
fe9261007f * po/*.po: remerge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31608 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 08:46:27 +00:00
Jürgen Spitzmüller
1f1c3a3ea8 * VCBackend.cpp: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31607 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 08:39:03 +00:00
Jürgen Spitzmüller
cb815e4045 * Changes.cpp (getLaTeXMarkup):
- pass references, not copies.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31606 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 07:30:46 +00:00
Jürgen Spitzmüller
3b6931719a Assure the author is encoded correctly in the LaTeX output of change tracking markup (bug 6225).
Patch reviewed by Jean-Marc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31602 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 16:22:05 +00:00
Jean-Marc Lasgouttes
60dca30530 disable the del-suppresses-equation-label-at-end feature (not easy to describe, is it?) when there is a selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31600 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 15:20:23 +00:00
Jürgen Spitzmüller
78a8c60d78 * de.po: forgotten corrections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31596 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:42:12 +00:00
Jürgen Spitzmüller
6accb48724 * de.po: another typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31595 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:38:46 +00:00
Uwe Stöhr
c8e960df85 de.po: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31592 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:28:25 +00:00
Peter Kümmel
bdd92ac7a2 fix merged build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31589 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 10:30:00 +00:00