Commit Graph

29580 Commits

Author SHA1 Message Date
Uwe Stöhr
ceb180cebd GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language 2012-06-08 05:39:00 +02:00
Uwe Stöhr
2872f35a51 - FORMAT: document latest change
- tex2lyx/text.cpp: fix a comment
2012-06-08 02:42:22 +02:00
Uwe Stöhr
7eca5d94d1 - support a bunch of new languages (fileformat change)
- tex2lyx support for
  - fontspec fonts
  - polyglossia
2012-06-08 02:37:36 +02:00
Uwe Stöhr
1cf9261ff6 - LaTeXConfig.lyx: accept Georg's changes and add bidi
- chkconfig.ltx: bidi and iftex are necessary for all right-to-left languages if XeTeX or LuaTeX is used
2012-06-07 23:08:02 +02:00
Juergen Spitzmueller
a4ea17e0e9 Restore default output format after tex fonts switch (#8191) 2012-06-07 21:27:01 +02:00
Jean-Marc Lasgouttes
c7549c1b54 Fix bug #8027: Edit->Paste Special->... does not replace selected text
Delete the selection before all paste-like lfuns. This was previoulsy done
only for LFUN_PASTE, the others at best unset the selection.
2012-06-07 18:14:17 +02:00
Jean-Marc Lasgouttes
0ef36860c3 Handle sending a FuncRequest object to lyxerr
* Implement the corresponding operator<<

  * Use it in a couple new places
2012-06-07 17:21:49 +02:00
Uwe Stöhr
47f70bd913 languages: fix and complete language codes 2012-06-07 16:57:56 +02:00
Richard Heck
9e678569ad Typo. 2012-06-06 18:20:02 -04:00
Richard Heck
b7ac2d69e7 Allow LyX format to be written to View>Source window. 2012-06-05 10:24:15 -04:00
Richard Heck
cfc43d772d Move TexRow stuff near where it is used. 2012-06-05 10:24:15 -04:00
Jean-Marc Lasgouttes
bcd6990eca Revert "Revert "Tentative fix to #8159: Undo doesn't restore environment depth correctly""
This is becoming crazy :)

This reverts commit 5b531b56ef.
2012-06-05 12:55:37 +02:00
Jean-Marc Lasgouttes
9a3b6733c0 Revert "Second tentative fix to #8159: Undo doesn't restore environment depth correctly"
Did not mean to commit that.

This reverts commit 8f01556236.
2012-06-05 12:55:37 +02:00
Jean-Marc Lasgouttes
992eae2524 Typos 2012-06-05 12:22:13 +02:00
Jean-Marc Lasgouttes
8f01556236 Second tentative fix to #8159: Undo doesn't restore environment depth correctly
In this version, the idea is to record undo at the place where the document is modified, which is definitely cleaner.

1/ in Buffer::updateBuffer, add a recordUndo, with the caveat that a
   const_cast has to be used

2/ in GuiApplication::dispatch, add an extra undo group that
   encompasses the updateBuffer call. Some other undo groups may be
   redundant now, but it is not a problem since they do not cost
   anything.
2012-06-05 11:32:56 +02:00
Jean-Marc Lasgouttes
5b531b56ef Revert "Tentative fix to #8159: Undo doesn't restore environment depth correctly"
This reverts commit e3854bb59b.
2012-06-05 11:32:56 +02:00
Richard Heck
8b2aab9b3d Style. 2012-06-04 13:42:46 -04:00
Richard Heck
7ef8df460a Fix crash reported by Tommaso:
http://marc.info/?l=lyx-devel&m=133876924408431&w=2
The problem here is that the copy_params() routine in FindAndReplace.cpp
created a new DocumentClass, but it never updated its Buffer to reflect
that new DocumentClass. So its Paragraphs still contained points to the
Layouts in the old DocumentClass which, since ead697d4b6, gets garbage
collected once it is no longer needed. So the Layout doesn't exist, and
we crash.
2012-06-04 13:39:24 -04:00
Richard Heck
1078dba130 Fix crash reported by Scott. Forgot to change some pointers to
shared_ptr.
2012-06-04 13:04:26 -04:00
Jean-Marc Lasgouttes
ad7deaabeb Fix bug #7956: Assertion When Trying to Paste Into Table
For some unknown reason, the paste code likes to call Cursor::setSelection(), which is not appropriate here since we are not trying to set a selection at this point.
2012-06-04 17:05:43 +02:00
Uwe Stöhr
e525ee6db4 UserGuide.lyx: add a LyX 2.1-specific sentence proposed by Jürgen 2012-06-04 01:17:27 +02:00
Uwe Stöhr
1c8606e78e UserGuide.lyx: some changes for the thesaurus description proposed by Jürgen 2012-06-04 01:12:02 +02:00
Uwe Stöhr
a3d3e7984b uk.po: updates from Yuri 2012-06-04 00:07:43 +02:00
Uwe Stöhr
dc5dc850bf installer: implement new method to select hunspell and thesaurus dictionaries and to download the selected ones (final part 2) 2012-06-03 23:55:21 +02:00
Uwe Stöhr
b4aaa1b5bb languages: add missing language codes, fixes bug #8183 2012-06-03 23:49:24 +02:00
Uwe Stöhr
068b25315c installer: implement new method to select hunspell and thesaurus dictionaries and to download the selected ones (part 1) 2012-06-03 17:17:01 +02:00
Uwe Stöhr
df0648e62a splash.lyx: port from branch 2012-06-03 17:09:53 +02:00
Juergen Spitzmueller
4e8644bc1d Merge branch 'master' of git.lyx.org:lyx 2012-06-03 10:32:20 +02:00
Juergen Spitzmueller
af59dffeda Add missing undo recording.
This adds a change of the printindex type (with multiple indices) to the undo stack and marks the buffer dirty on that action (bug #8182)
2012-06-03 10:31:38 +02:00
Uwe Stöhr
32cf81058d installer: install a Perl interpreter to MiKTeX to fix bug #8181 2012-06-02 20:40:13 +02:00
Uwe Stöhr
09f91910e6 - UserGuide.lyx: 3 small fixes
- German UserGuide.lyx: translation again
2012-06-02 03:18:44 +02:00
Uwe Stöhr
ee2c9d3631 installer: a new MiKTeX installer version is out 2012-06-02 02:10:24 +02:00
Uwe Stöhr
d90bcd1f5a - UserGuide.lyx: adapt style of description of split indexes (the feature is btw. currently broken)
- German UserGuide.lyx: some further translations
- Japanese UserGuide.lyx: add missing section about split indexes
2012-06-02 02:09:36 +02:00
Uwe Stöhr
fc74599e87 - UserGuide.lyx: fix some typos and an unclear description
- German UserGuide.lyx: more translations and corrections
2012-06-01 02:27:36 +02:00
Uwe Stöhr
e489adea5f UserGuide.lyx:
- decline today's change because the text states "is explained in the chapter Tables of the Embedded Objects manual" So no need to describe LaTEX special again
- revert fileformat change; please keep the fileformat is possible unless you describe a new feature of LyX 2.1
2012-06-01 00:54:24 +02:00
Richard Heck
ead697d4b6 Deal with memory issue reported some time ago in connection with DocumentClass
objects. The problem that led to the leak is that these objects can be held in
memory long after the Buffer that created them is gone, mostly due to their
use in the CutStack. So they were previously held in a storage facility, the
DocumentClassBundle. Unfortunately, they were now being created too often,
especially by cloning. It's not really a leak, because they're accessible, but
we weren't ever destroying them.

This new approach uses a shared_ptr instead.

Thanks to Vincent for pointing out const_pointer_cast.
2012-05-31 12:34:29 -04:00
Richard Heck
03da96e0f7 Minor cleanup: We should use the usual conventions for
InsetLayout names.
2012-05-31 12:24:08 -04:00
Richard Heck
be89d37bd4 Properly initialize variable. This should fix the problem
reported here:
	http://marc.info/?l=lyx-devel&m=133775786222603&w=2
by Scott.
2012-05-31 12:04:09 -04:00
Pavel Sanda
262c2e95a9 Tabular.ui: Moving Latex argument field to column section.
Forgotten patch from John Tapsell.

Documentation moved from UI to User Guide.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg173987.html

This was here for ages, no need to rush into branch.
2012-05-31 15:36:33 +02:00
Pavel Sanda
f692181917 Fix #8180: Page break on current row can't be unchecked.
Patch from John Tapsell
2012-05-31 13:56:07 +02:00
Pavel Sanda
eb4a1074bf Forgotten permissions 2012-05-31 13:01:39 +02:00
Pavel Sanda
83f493d8ac Port suggestion to trunk 2012-05-31 12:47:08 +02:00
Pavel Sanda
b5edeac1e8 Forgotten patch from Scott Kostyshak. 2012-05-31 12:33:13 +02:00
Uwe Stöhr
e60a139d3f ported from branch:
- German UserGuide.lyx: many translations
- English UserGuide.lyx: some grammar and some style fixes
2012-05-31 00:45:26 +02:00
Uwe Stöhr
52db81fa22 - German UserGuide.lyx: some translations
- German Additional.lyx: some ports from branch
- English UserGuide.lyx: a grammar fix
2012-05-30 01:24:03 +02:00
Juergen Spitzmueller
ab3491adef Fix crash when removing last converter (bug 8178) 2012-05-29 14:21:29 +02:00
Juergen Spitzmueller
9fc92f783c Load bibtopic after hyperref (bug #8005) 2012-05-29 13:25:30 +02:00
Uwe Stöhr
158b398d28 German userGuide: port some changes from branch 2012-05-29 00:49:57 +02:00
Richard Heck
c1e3d795f6 A few more small optimizations noted along the way. 2012-05-28 18:21:22 -04:00
Jean-Marc Lasgouttes
a756403301 "Performance" fixes suggested by cppcheck
While cppcheck did not turn out any suspicious error messages, using
the "performance" flag highlighted several nitpicks in three categories
 * do not use it++ for iterators, ++it is better
 * do not use size() to test for emptyness, empty() is here
 * do not use "const T" as a function parameter, "const & T" is better

I doubt that any of these is a real performance problem, but the code is cleaner anyway.
2012-05-28 22:42:44 +02:00