Commit Graph

15530 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
18a9c10c94 * PrefDisplayUi.ui: add tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-25 09:13:51 +00:00
Vincent van Ravesteijn
ea5e81651a branch: Fix bug 6129: Show paragraph marks / pilcrows.
see r31155, r31157, r31159 and r31168.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31715 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 17:10:48 +00:00
Enrico Forestieri
fe41e57d12 Backport cumulative fix for bug #6284.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31710 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 16:15:29 +00:00
Vincent van Ravesteijn
4c0db93e40 branch: Fix the painting of the last character of a paragraph. That is either the added/deleted paragraph breaks in change tracking or the to-be introduced pilcrow marks.
see r31154.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31702 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 11:08:00 +00:00
Vincent van Ravesteijn
54fc638382 branch: Do not remember documents for next startup when closing a window but not closing LyX.
see r31148.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31701 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 10:57:29 +00:00
Vincent van Ravesteijn
9610852f65 branch: Fix bug #2972: Static EndLabelStrings were not painted correctly.
see r30962 and r31205.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 10:32:26 +00:00
Jürgen Spitzmüller
f68a897158 * LaTeXFeatures.cpp:
- do not eat space at the beginning of \lyxadded macro (bug 6282).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31693 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 09:04:15 +00:00
Uwe Stöhr
41d659ee57 tex2lyx/preamble.cpp: fix two issues:
- 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/branches/BRANCH_1_6_X@31688 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-20 20:19:15 +00:00
Enrico Forestieri
a087ee5e44 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/branches/BRANCH_1_6_X@31678 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 15:32:43 +00:00
Pavel Sanda
f6b2944e41 I was too fast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31663 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:56:58 +00:00
Pavel Sanda
2672494b9c squash gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31662 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:55:03 +00:00
Pavel Sanda
614b5fdd14 Backport change of emergency string.
I suppose no status entry needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31661 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:50:59 +00:00
Jean-Marc Lasgouttes
543d12d62e Improve on fix r31610 for ticket #5702. Replacing DefaultModule with
Input did not preserve the loading order of modules.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31639 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:25:43 +00:00
Jean-Marc Lasgouttes
783b1434ea Fix #6276: tex2lyx fails to import captions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:09:11 +00:00
Jürgen Spitzmüller
4c6d117bd9 * add missing blank.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31627 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 21:31:36 +00:00
Pavel Sanda
f1ed78e722 Backport fix for bug #6255.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31620 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 20:05:30 +00:00
Jean-Marc Lasgouttes
e74dc919ed fix the code introduced in r30896 to look for the right files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 15:18:09 +00:00
Jürgen Spitzmüller
9683aa4ef1 * Changes.cpp (getLaTeXMarkup):
- pass references, not copies.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31605 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 07:08:54 +00:00
Jürgen Spitzmüller
0cdc91666d 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/branches/BRANCH_1_6_X@31603 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 16:34:58 +00:00
Jean-Marc Lasgouttes
a8ab4e22e1 backport r31600 (bug #6273)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31601 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 15:50:39 +00:00
Vincent van Ravesteijn
9078a80264 Fix inset-begin and inset-end. Now, if the cursor was at the beginning of a paragraph in the middle of the inset, inset-begin would jump out of the inset.
See r31199.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31599 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 08:28:02 +00:00
Vincent van Ravesteijn
a18553e403 branch: Fix bug #5991: Select function in environments.
C-M-a now selects the contents of an inset, if the whole inset is already selected, it will jump out the inset and selects everything in that inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31598 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 08:21:32 +00:00
Enrico Forestieri
ee2bbb8d89 Fix bug #6270: Bug in parsing selection as math macro argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31594 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:37:31 +00:00
Enrico Forestieri
8f2106783f Fix bug #6250: LyX 1.6.4 crashes when copying Japanese text in math to clipboard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:26:57 +00:00
Jürgen Spitzmüller
e74ee2fc3e revert unintended commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31571 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:47:30 +00:00
Jürgen Spitzmüller
7dc9eab62b * InsetExternal.cpp:
* GuiExternal.cpp:
	- do not crash if the list of external templates is empty (bug #3974).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:42:32 +00:00
Jürgen Spitzmüller
41924f48f7 * GuiExternal.cpp:
- do not use invalid index if a template is not found. Fixes crash bug #6259.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:11:13 +00:00
Enrico Forestieri
a08af1f602 Fix bug #6264: Broken undo of removed script in mathed when both scripts are present.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-08 14:21:55 +00:00
Pavel Sanda
b574759cf2 Backoport fix for bug #5977 - Make Close button on tabs configurable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31553 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-07 10:02:30 +00:00
Vincent van Ravesteijn
886071393b branch: Fix bug #6108: Crash on menu key
The wrong context menu is being expanded, because the location where the context menu is requested is computed wrongly by Qt. 

Actually, the problem seemed to be in InputMethodQuery??. For some reason, the box of the cursor is shifted right under the cursor box.

The menu key uses InputMethodQuery?? to locate the context menu, just as he Japanese input method locates the box with possibilities.

1.6.x shows the same behaviour, but in that case it doesn't crash because the spellchecker entry does not exist there, but there might be another case in which it will crash.

see r30797.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31531 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 18:20:55 +00:00
Vincent van Ravesteijn
089945a888 branch: Fix bug #4906: Files always reopened in tabbed window on launch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 14:53:31 +00:00
Enrico Forestieri
7c4f9dc43b Fix bug #6258: LyX incorrectly interprets tetex warnings as errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31517 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 16:11:57 +00:00
Jürgen Spitzmüller
89bf8d2c8a * LyXView.cpp (reloadBuffer):
- adjust r31511 to prevent null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 14:33:05 +00:00
Jürgen Spitzmüller
68141ce03c * LyXFunc.cpp (reloadBuffer):
- make sure a child is re-allocated to its master after reloading (bug 6233).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 14:24:20 +00:00
Jürgen Spitzmüller
e215fa5131 * BufferView.cpp (gotoLabel):
- stop iterating over the list of labels after the label was found.
	  This also prevents a crash if the found label is in a child (and the
	  pointers become invalid) [bug 6252].

Trunk already has this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31503 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 10:31:09 +00:00
Pavel Sanda
e4ec45fba2 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-03 23:52:19 +00:00
Jean-Marc Lasgouttes
2d950f264a backport r31489: Fix support for optional argument of \bibitem in tex2lyx (bug 6249)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31490 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-02 10:36:34 +00:00
Enrico Forestieri
391659b5af Fix bug #6246: InsetMathKern is broken
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31483 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-28 22:11:02 +00:00
Vincent van Ravesteijn
d082cacdfd branch: Fix bug #6188: Assertion with multiple views of same document.
We have to prevent that two views share the same ID, also when an id was supplied (because we can open the same document twice).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-25 14:26:04 +00:00
Jean-Marc Lasgouttes
7911dd2269 backport r31439 (second part of #6142)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-25 12:43:09 +00:00
Richard Heck
49ed00e105 Fix doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31461 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 11:57:21 +00:00
Jürgen Spitzmüller
adc876029f * LaTeXFeatures.cpp: fix whitespace issue after Greek character.
No status entry needed, this bug slipped in after 1.6.4.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31454 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 10:34:37 +00:00
Jean-Marc Lasgouttes
9cd1131c0c backport r31222 (part of #6142)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31437 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 21:03:05 +00:00
Uwe Stöhr
1d5c704360 GuiPrefs: fix #6176 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31429 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 11:58:31 +00:00
Enrico Forestieri
3fa9c60f44 Fix bug #6215 (spotted by Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31422 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 23:07:16 +00:00
Richard Heck
da444e0bf0 Backport r31395, fixing 6227 for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31414 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 15:18:30 +00:00
Enrico Forestieri
d59295680b Properly reset the stream encoding after an environment. Fixes bug #6216.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 15:49:56 +00:00
Enrico Forestieri
6ffeab01b7 Implement the LyXServer on Windows.
In order to enable the server, specify the LyXServer pipe in
Tools->Preferences->Paths. The path to be entered there must have the
form "\\.\pipe\nameofyourchoice" (without quotes). After that, you can
send commands to LyX. For example, if the pipe path is \\.\pipe\lyxpipe,
typing the following in a terminal:

echo LYXCMD:test:file-open > \\.\pipe\lyxpipe.in
type \\.\pipe\lyxpipe.out

brings up the file dialog and returns the acknowledgment from LyX.
Beware of spaces when using cmd.exe. For example, the following:
echo LYXCMD:test:file-open:foo.lyx> \\.\pipe\lyxpipe.in
will correctly load the document named foo.lyx, but
echo LYXCMD:test:file-open:foo.lyx > \\.\pipe\lyxpipe.in
(notice the space before the redirection) will try to load a
document whose name is "foo.lyx .lyx" because cmd.exe will also
pass the space (sigh).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31389 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 20:49:30 +00:00
Enrico Forestieri
3fda114784 Fix bug #6110.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31385 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 13:53:53 +00:00
Jürgen Spitzmüller
bd5d83a578 Fix bug 6179 ("|" in index entries not embraced in ERT by lyx2lyx).
* OutputParams.{cpp,h}:
	- new param inIndexEntry
* InsetIndex.cpp (latex):
	- set param.
* InsetErt.cpp (plainText):
	- output active chars in IndexInsets

* lib/lyx2lyx/lyx_1_6.py:
	- embrace "|" in ERT when converting old index entries to collapsables.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-10 12:10:18 +00:00
Vincent van Ravesteijn
869116e9d1 branch: Fix bug #6205: Fix a bunch of assertions.
The first thing that bformat does is to check whether the string contains "%1$s". Otherwise it asserts.

Why didn't we see this happen before ? This was revealed by the emergency saves that Richard introduced in the Buffer dtor.

see also r31062.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31344 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-08 11:57:07 +00:00
Vincent van Ravesteijn
4a337c89f1 branch: Fix bug #6112: Crash when searching for a string that is found in a table, while the cursor is in math (bug #6112).
see r31339.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31342 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-08 09:38:05 +00:00
Vincent van Ravesteijn
660c977512 branch: Fix bug #2969: Double labels appear on empty lines of multi-line equations.
This reverts part of r10553. There, an extra '//' was added when the last line was empty. However, this really makes an extra line and that is visible when the lines have a line number. The bug #2067 that would have been fixed by this does not seem to 'exist' anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31333 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 14:42:29 +00:00
Pavel Sanda
68b323f62d Backport bugfix for #2045.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:44:49 +00:00
Vincent van Ravesteijn
95012dd5e7 branch: Fix bug #3997: RTL paragraphs are painted slightly too far to the left
In the computation of the row width, the last space on a row was included. However, this space is not drawn on screen and shouldn't contribute to the width. As a result all rows in a paragraph were painted slightly too far to the left, except the last on.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:40:00 +00:00
Vincent van Ravesteijn
dc908295ff branch: Fix bug #5796: Context menu of one inset asks status of another inset.
Store the position for the context menu on mouse press. This is also done in qt but then only on the widget level. 

This avoids that e.g. the edit menu will call getStatus() of math (which causes a crash actually).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:33:00 +00:00
Vincent van Ravesteijn
8d68226144 branch: Fix bug #6134: Reload context menu for graphics inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:18:52 +00:00
Vincent van Ravesteijn
90cbb1225f branch: Fix bug #6119: Keyboard map still shows up after deleting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:42:42 +00:00
Vincent van Ravesteijn
21a5043183 branch: Fix bug #6125: Float positioning dialog enables invalid options for subfloats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31321 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:14:57 +00:00
Jürgen Spitzmüller
4f3f4eed15 * GuiRef.cpp:
- use itemDoubleClicked() instead of itemActivated(). The latter is traditionally defined as single click
	  on UNIX, which is not desired here (bug 6204)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31320 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:06:18 +00:00
Vincent van Ravesteijn
0113ce8310 branch: Fix #6045: Possible to insert table floats into figure floats.
The lfuns, LFUN_FLOAT_INSERT and LFUN_WRAP_INSERT are now only enabled when they should be.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31318 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 08:40:40 +00:00
Pavel Sanda
0c0b77274a Backport bugfix for #2120.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 13:29:56 +00:00
Richard Heck
d7732ba4ee Better message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31276 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:34:02 +00:00
Jürgen Spitzmüller
5be07da6e5 backport r30112:
Author: spitz
	Date: Mon Jun 15 17:57:54 2009
	New Revision: 30112
	URL: http://www.lyx.org/trac/changeset/30112

	Log:
	* Paragraph.cpp:
      	  - do not embrace list items. According to the comment, 
        	    this was only done to escape brackets, but brackets
       	    are embraced anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31271 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 11:21:25 +00:00
Jürgen Spitzmüller
f9834b6b20 Backport r30619:
Author: spitz
	Date: Thu Jul 16 08:19:25 2009
	New Revision: 30619
	URL: http://www.lyx.org/trac/changeset/30619

	Log:
	* attempt to fix polytonic Greek (with mutli-accents) [bug 5976].
	* add extended Greek chars to unicodesymbols [bug 4997].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31270 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 11:07:52 +00:00
Jürgen Spitzmüller
7c42ec6c89 * PrefSpellcheckerUI.ui: add tooltip (bug 6185).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31269 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 09:36:01 +00:00
Richard Heck
652ef4b78b Backport r31056 and 31057, to get a proper emergency save when dirty buffers
are destroyed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31259 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 16:02:08 +00:00
Richard Heck
09f0e5bbb3 Revert r31117 to prepare for proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31258 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 15:41:53 +00:00
Richard Heck
2c80f1d9d1 Fix 1492 for branch, backporting 28856.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31256 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 13:55:59 +00:00
Jürgen Spitzmüller
d1fb78f27d * revert r30900.
This should re-enable the prefs and aboutlyx menu items on the Mac, but re-introduce bug 1720.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-31 07:37:56 +00:00
Vincent van Ravesteijn
70ab7f2585 branch: Fix bug #6162: Crash after close window with master/child.
A copy-paste error. GuiView::disconnectBuffer() was exactly the same as GuiView::disconnectBufferView().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 09:17:10 +00:00
Vincent van Ravesteijn
8671278ac0 branch: Fix a crash when closing LyX with a master and a child open (and the master is in the second tab).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:14:34 +00:00
Vincent van Ravesteijn
afa885378c branch: Fix bug #6158: Crash when entering math in tabular.
We have to determine whether we are in an empty cell before we dispatch the lfun to the inset. Otherwise we determine whether the math is empty and if so, we then go to the next cell in the math inset. This cell doesn't exist probably.

see r31121.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31139 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 10:45:23 +00:00
Richard Heck
c44061a21e Fix encoding problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 13:55:13 +00:00
Richard Heck
412cd14027 Emergency save of dirty Buffers when they are destroyed.
Better fix to be committed for 1.6.5.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31117 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 13:40:17 +00:00
Enrico Forestieri
a91c42b7db Fix the dataloss problem when shutting down Windows (part of bug #5525).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31114 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 11:49:00 +00:00
Vincent van Ravesteijn
b92e1c3a96 branch: Adjust the work-around for bug #5957.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31032 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 15:08:04 +00:00
Vincent van Ravesteijn
40aa853de5 branch: Disable assertion in branch
Just for safety. 

(Are they turned off in the Windows release version yet).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31009 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 14:27:55 +00:00
Vincent van Ravesteijn
7ddff39db7 branch: Fix bug #6126: Assertion with page down in Math manual.
If we correct the row where we put the cursor after a PgDn or PgUp command, then we should also adjust the y-coordinate that is used later for checkInsetHit and inset->editXY. 

However, this code doesn't function like it should, but that is bug #4382.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31008 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 14:25:01 +00:00
Jürgen Spitzmüller
e886b9feb3 * GuiView.cpp: disable symbols dialog in read-only mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-12 11:03:41 +00:00
Jürgen Spitzmüller
51d5de4ebe Fix bug 5946: Infinite loop when opening file with two files opened with the same name
This simply changes the appearance of the display path (in the tab header) in one detail: if the file suffix is not "lyx" (but "lyx15" etc.), the file is displayed with the extension. This fixes the problem (which is due to identical display paths), and it adds, IMHO, useful information to the GUI.

Patch reviewed by vfr.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30978 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-11 12:34:41 +00:00
Uwe Stöhr
bee4db9ae3 tex2lyx/preamble.cpp: this one should not have been reverted in r30964
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30973 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 23:31:54 +00:00
Uwe Stöhr
251e6ab0a6 tex2lyx/preamble.cpp: revert r30167 and r30449 as discussed in #605; I'll bring this topic now to the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30964 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 00:05:03 +00:00
Pavel Sanda
2b56aa6f2d Backport r30933
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30943 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 15:45:01 +00:00
Vincent van Ravesteijn
260d52f5a3 branch: Remove black box around GuiWorkarea? which is visible with Qt4.5.
see r29861.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30907 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 16:22:08 +00:00
Vincent van Ravesteijn
7fd27c3b81 Some improvements for the math context menu:
- hide "Number this line" for single line equations,
- set flag for LFUN_MATH_MUTATE.

see r29762 and r29764.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30906 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:56:00 +00:00
Vincent van Ravesteijn
75e66e9d4c branch: Fix a few enable/disable problems for longtables:
- set header, set first-header-empty, unset first-header-empty,
- set header, set first-header-empty, unset header

The same also for footers.

see r29716.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30905 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:29:36 +00:00
Vincent van Ravesteijn
6c7b0b67b3 branch: Add the emf and wmf graphics format as parameters to LFUN_PASTE.
see r29509.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30904 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:05:32 +00:00
Vincent van Ravesteijn
c981573a4c branch: Fix bug #4464: Missing autoscroll when selecting by mouse
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30901 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:47:59 +00:00
Jean-Marc Lasgouttes
750d6b6a52 backport r30557 (bug #1720)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30900 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:38:27 +00:00
Vincent van Ravesteijn
39ba733bc1 branch: Work-around for bug #6034: Applying preferences confuses window about its size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30899 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:25:48 +00:00
Jean-Marc Lasgouttes
0f655bc3eb backport r30389 (bug #6043)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30898 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:20:48 +00:00
Richard Heck
5ba684315e Work around bug 5702 a bit: Make tex2lyx treat the DefaultModule tag as
an Input tag.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30896 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 12:19:59 +00:00
Jürgen Spitzmüller
c35cfda727 Catch encoding exception when performing instant preview on an uncodable char (bug 6116).
* MathStream{.cpp, h}:
	- replace bool dryrun() by enum output that also knows whether the stream is for instant preview
* InsetMathHull.cpp:
	- tell the stream whether we use it for instant preview.
* MathString.cpp (write):
	- gracefully catch encoding exception for instant preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30894 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 05:24:57 +00:00
Enrico Forestieri
46a0021242 White space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30858 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-04 10:38:12 +00:00
Enrico Forestieri
51a3759899 Properly restore the file encoding after a LaTeX environment with local scope.
Fixes bug #5690: Hebrew file cannot be exported to dvi or pdf.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30849 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-03 18:40:48 +00:00
Enrico Forestieri
6674de3959 Avoid deferencing a null pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30806 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-30 03:24:00 +00:00
Enrico Forestieri
700dd75d5e Better fix for bug #5096: Language switch fails in environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30804 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-30 01:13:11 +00:00
Vincent van Ravesteijn
26d14890d6 Work-around for bug #5957.
see r30794.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30796 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-27 07:32:08 +00:00
Pavel Sanda
e8bd4f14a4 Fix monolithic builds
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 13:32:32 +00:00
Pavel Sanda
71b60a20b5 Fix warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30792 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 13:28:30 +00:00
Pavel Sanda
87c8b9cb42 Backport r30787
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30791 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 12:17:54 +00:00
Pavel Sanda
b2c73ae2bd Backport r30779
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30781 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 07:57:25 +00:00
Vincent van Ravesteijn
ea16d18b54 branch: Fix bug #4473: Incorrect LaTeX output for inter-word spaces.
This is a hack necessary because \\textcolor is a bit buggy.

see r30773.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30774 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 10:55:35 +00:00
Jürgen Spitzmüller
64a7513231 * Text.cpp (dissolveInset):
- perform updateLabels also after dissolving an empty inset (bug 6003).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30772 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 08:24:21 +00:00
Jürgen Spitzmüller
407c5742c0 * LyXFunc.cpp:
- make sure there are no pending key sequences when applying the prefs,
	  since the key bindings are changed and this will make the status bar
	  messages go crazy and crash (bug 6064).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30770 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 06:20:31 +00:00
Vincent van Ravesteijn
06bb52c1af branch: Fix bug #5998: Crash when closing a LyX window with split views.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30762 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 20:23:17 +00:00
Jürgen Spitzmüller
5d2a712467 * TocWidget.cpp: disable sort option for TOC (bug 5983).
* TocModel.cpp: whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30761 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 14:03:22 +00:00
Richard Heck
975cbd3266 Bug 5522 for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30754 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 14:22:34 +00:00
Jürgen Spitzmüller
e98ca2362e * Validator.{cpp, h}:
- add usignedGlueLengthValidator

* GuiVSpace.cpp:
* GuiDocument.cpp:
	- re-allow the insertion of glue lengths (regression of the qt4 frontend)
	  (bug 6097)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 05:32:03 +00:00
Vincent van Ravesteijn
2d257de986 branch: Fix bug #4177: Lyx fails to open files with a $ character in their name.
see r29587.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30662 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 09:19:04 +00:00
Vincent van Ravesteijn
0c259d8b23 Squeeze warning due to unrecognized escape sequence.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30651 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 18:32:29 +00:00
Vincent van Ravesteijn
af3fe8ab88 Fix bug #6070: Width unit cannot be set in tabular dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30650 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 18:28:00 +00:00
Jürgen Spitzmüller
79015cd542 * GuiApplication:
- typo and capitalization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 15:40:23 +00:00
Richard Heck
fa5764df3d Fix bug 6076 for branch. And even include status.16x.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30643 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 14:01:21 +00:00
Enrico Forestieri
399324baec Fix bug #5096: Language switch fails in environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30628 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 13:02:50 +00:00
Vincent van Ravesteijn
1fda2e4577 branch: Fix the enabling of the custom page size field in GuiDocument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30626 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 12:35:31 +00:00
Vincent van Ravesteijn
d0d41147a7 branch: Fix bug #2213: GuiChanges? lacks "Previous Change" button.
see r29108, r29109, r29110, r29111, and r29115.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30597 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 10:08:56 +00:00
Pavel Sanda
9e6e4ebdd5 Backport r30581.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30596 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 07:31:22 +00:00
Pavel Sanda
ff23147186 Backport r30587
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 19:47:43 +00:00
Jean-Marc Lasgouttes
52bdc0abdd fix bug 6081
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:33:10 +00:00
Jean-Marc Lasgouttes
708a139d77 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30576 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:31:06 +00:00
Pavel Sanda
108586552a backport r30567
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30575 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:30:52 +00:00
Vincent van Ravesteijn
6f1642fe3e branch: Fix bug #5948: Copy as reference for equation labels.
see r29678.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30571 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:01:10 +00:00
Vincent van Ravesteijn
12cb76773d branch: Fix bug #5944: Scrolling isn't predictable.
The row in editXY is corrected when we're scrolling with PgUp and PgDn to make sure that the row where the cursor is places, is completely in the view.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 21:49:07 +00:00
Pavel Sanda
a277b8bd21 Backport r30536
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30538 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 10:48:48 +00:00
Vincent van Ravesteijn
e1bdd1b4ad branch: Fix bug #5435: DEPM is not executed when leaving an inset.
see r29585 and r29248.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30514 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 16:48:02 +00:00
Vincent van Ravesteijn
25aa3d4022 branch: Fix bug #5458: File reopens at LyX-start even though it was closed in previous session.
see r29596.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30513 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 16:01:38 +00:00
Enrico Forestieri
51521e44ab Honour preferences about automatic popup and inline completion when
pressing Ctrl-L in math mode.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:53:43 +00:00
Vincent van Ravesteijn
75dabc75f9 branch: Fix bug #5390. Copy from a deleted section with change tracking.
Do not accept the changes in the selection, if it is completely deleted.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:14:51 +00:00
Enrico Forestieri
5b103485d5 Fix bug #6063: Keylogger lyx::lyxbreaker: Crash in Math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30508 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:10:14 +00:00
Jürgen Spitzmüller
c608834725 * correct bug reference.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:46:32 +00:00
Jürgen Spitzmüller
d78bc34d3b * InsetTabular.cpp: fix bug 6057: longtable captions must always be in a first header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:43:30 +00:00
Vincent van Ravesteijn
4813d3ae41 branch: Fix bug #4952: Multiple cells pasting fails if cells are selected.
When the clipboard contains a tabular selection, dirty_tabular_stack_ is true. However, it is set to false when the user clears a selection (without copying). After this (mostly accidental) action, pasting the tabular contents goes wrong.

So, we only clear the dirty_tabular_stack_ flag when a 'real' copy to clipboard has been made.

see r29717, r29718, r29719



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30499 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:31:05 +00:00
Vincent van Ravesteijn
e49fed46fc branch: Fix bug #3918: "Toggle Outline" button does not toggle back when clicking 'x' button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30498 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:22:40 +00:00
Vincent van Ravesteijn
059d5ee830 branch: Fix bug #2034: Inconsistent behavior of cursor inside mathed.
When closing the macromode, do the same trick as in lines 835--838.

see r29686

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 17:57:25 +00:00
Vincent van Ravesteijn
4abaf35bad branch: Fix bug #3706: Mathed builtin/macro expansion not performed when clicking away.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 17:53:26 +00:00
Enrico Forestieri
955716dfa5 Fix bug #5923: Math macro expansion not performed when modifying the macro identifier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 14:48:16 +00:00
Uwe Stöhr
f1b3896cd0 tex2lyx/preamble.cpp: backport r30448 - (I simply forgot these 3 commands in r30167)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30449 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 13:05:13 +00:00
Enrico Forestieri
a8b29819e9 Fix bugs #6047, #4043, and #5394.
6047: Lyx 1.6.3 unable to typeset the third chemical equation of the
      file mhchem.lyx (package mhchem)
4043: mhchem support
5394: support for the mhchems's \ce command
The \ce and \cf insets are text mode environments that allow entering
spaces and mathmode commands. LyX leaves them alone and doesn't try to
be smart, i.e., the behaviour is exactly the same we had in the old days
with text-in-math mode environments, before the introduction of the
\ensuremath and \lyxmathsym macros. This means that in those environments
one has to know what he is doing, as LyX will not offer any protection.
The hack of enclosing \ce and \cf in a \text{} environment in order to
be able to enter spaces is no longer necessary.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30439 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 20:51:21 +00:00
Jürgen Spitzmüller
06caaf0528 * GuiLog.cpp: don't forget Package warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:20:03 +00:00
Jürgen Spitzmüller
315db2d1dc LogUi.ui: string redundancy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30429 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:06:20 +00:00
Jürgen Spitzmüller
7ba4a87bae LogUi.ui: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:00:24 +00:00
Jürgen Spitzmüller
28988d22bc * GuiLog.{cpp,h}:
* LogUi.ui:
	- add some basic navigation facilities.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 15:54:13 +00:00
Jürgen Spitzmüller
cfeab7476f * InsetBranch.cpp:
- fix display of "child only" suffix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30424 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 11:49:16 +00:00
Jean-Marc Lasgouttes
c88dd9924e Backport r30399 in order to fix #6013 (I am not sure how to be more cryptic yet still useful)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30413 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 11:03:41 +00:00
Jürgen Spitzmüller
a05115102e * NomenclUi.ui: set acceptRichText to false.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30403 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 12:27:51 +00:00
Jürgen Spitzmüller
c6c0c87eba * PreambleUi.ui:
- fix bug #3936: Paste into preamble gives wrong font size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:17:18 +00:00
Enrico Forestieri
09eb90bd3e Fix bug #6041: "tabular-feature align-" in a math-matrix.
Also fix display of centered vertical alignment status and smash
unnecessary debug output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30374 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 14:01:53 +00:00
Jürgen Spitzmüller
4ff130f073 * PrefLanguageUi.ui: correct tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-01 08:26:28 +00:00
Jürgen Spitzmüller
b78412f8a8 * GuiApplication.cpp (readUiFiles):
- only reset settings if a file with Toolbars has changed. This should significantly decrease
	  the number of circumstances where the settings are lost unnecessarily.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 13:12:28 +00:00
Jean-Marc Lasgouttes
e079ef7d69 fix setonoff for inset-modify on InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30308 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 13:33:47 +00:00
Jean-Marc Lasgouttes
3e6401ac2b Fix assertion when selection with Shift-button in math editor (bug #6026)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30307 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 13:03:04 +00:00
Jean-Marc Lasgouttes
a2e081eb84 Fix context menu for insets inside a branch inset (bug 6022)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30306 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 12:58:08 +00:00
Jürgen Spitzmüller
235d85d6f2 * do not change name of QSettings config file on LyX version change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30302 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 08:45:03 +00:00
Pavel Sanda
b6801bccae Backport r30284
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30285 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 11:15:20 +00:00
Pavel Sanda
4eb10e4681 Backport gui for svn locking property
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30271 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-26 14:54:37 +00:00
Enrico Forestieri
ac9587e6e1 Fix bug #6033: Initial character sometimes eaten by math-insert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-24 08:29:50 +00:00
Jean-Marc Lasgouttes
80f0206b86 backport r30242 (bug 2566)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30243 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 13:29:41 +00:00
Pavel Sanda
130b71ce0d Backport typo & shadowing spotted by Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 08:09:59 +00:00
Enrico Forestieri
9d46e0b6e5 Fix bug #6020: Reverse DVI/PDF search fails with child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30216 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 06:18:12 +00:00
Enrico Forestieri
56b70e512b Fix bug #6030: LyX does not take into account BOM.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30215 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 06:15:20 +00:00
Jürgen Spitzmüller
001b2b1624 * LaTeX.cpp (deplog):
- fix regex so that rexeg_search finds more than one match in a line.
	  This fixes a bug where files which were output in the log file in a 
	  line which already listed another file were not dependency tracked.
	  I.e., cases such as
	  (./child1.tex) (./child2.tex)
	  (bug 6024).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-20 13:03:19 +00:00
Uwe Stöhr
ef2633816f branch: tex2lyx/preamble.cpp: support for fileformat 264 (nothing to do for tex2lyx)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30176 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 00:45:41 +00:00
Uwe Stöhr
74fc41c076 branch: tex2lyx/preamble.cpp: support for fileformat 263: support for the document languages Brazilian and Portuguese
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30175 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 00:44:43 +00:00
Uwe Stöhr
0959e3df5f branch: tex2lyx/preamble.cpp: support for fileformat 262 (nothing to do for tex2lyx)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30174 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 00:39:19 +00:00
Uwe Stöhr
c8554cfdeb branch: tex2lyx/preamble.cpp:
- remove unneeded comment (sorry for all these small bits)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30170 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 00:03:31 +00:00
Uwe Stöhr
a111cf6310 branch: tex2lyx/preamble.cpp:
- support for fileformat 258 (nothing to do for tex2lyx)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30168 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 23:57:43 +00:00
Uwe Stöhr
4ef3356020 branch: tex2lyx/preamble.cpp:
- don't assume any longer LyX specific commands from their position in TeX files and a comment (fixes bugs in the preamble handling and makes the tex2lyx testfiles compilable after importing)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30167 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 23:55:49 +00:00
Jean-Marc Lasgouttes
877808064d Backport http://www.lyx.org/trac/changeset/28814
New commands inset-begin/end (bound to Ctrl-Alt-Home/End) allow to jump 
  to begin/end of insets (and outside of the inset if the cursor is already 
  in place). There are also versions that select text.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30160 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 15:47:01 +00:00
Jürgen Spitzmüller
b498fa1b05 * Paragraph.cpp:
- we do not output alignment begin for the default alignment,
	  so we must not output the end tag (bug 5995)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30152 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 06:52:59 +00:00
Pavel Sanda
e0c5df56a6 backport r30144
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30149 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-17 22:07:32 +00:00
Enrico Forestieri
943eb2a6f1 Reintroduce workaround for dealing with nested math hulls, as it is
not guaranteed that LyX is always able to replace $...$ constructs
with \ensuremath{...}.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30147 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-17 17:36:41 +00:00
Uwe Stöhr
d904fb9cb1 branch: tex2lyx: support for fileformat 257 (caption format)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30126 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:21:45 +00:00
Uwe Stöhr
26f483affa branch: tex2lyx: forgot this in r30114
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30120 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:19:25 +00:00
Uwe Stöhr
9ab9f1c747 branch: tex2lyx/preamble.cpp: support for fileformat 256 tex2lyx/preamble.cpp: support for fileformat 256:
- the code for \clear***page was already there
- tex2lyx allows already to use any input encoding


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:15:15 +00:00
Uwe Stöhr
8cff18e1c1 branch: tex2lyx/preamble.cpp:
- support for fileformat 254 (esint)
- using amsmath and esint automatically is safer than not to use them. The automatic usage is also our default when you create a new LyX file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30118 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:11:39 +00:00
Uwe Stöhr
8c512db1a9 branch: tex2lyx: support for fileformat 253 (nomenclature)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30117 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:08:35 +00:00
Uwe Stöhr
14c40d8d16 branch: tex2lyx/preamble.cpp: textcomp is supported sine we can handle Unicode
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30116 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:07:45 +00:00
Uwe Stöhr
3134d0881c branch: tex2lyx/preamble.cpp: revert stuff to have a clean commit timeline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30115 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:06:30 +00:00
Uwe Stöhr
353f3f8cdd branch: tex2lyx/text.cpp: support for fileformat 252
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30114 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 20:00:48 +00:00
Uwe Stöhr
2cd66e4536 branch: tex2lyx/preamble.cpp: improve whitespace handling in the preamble
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30113 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 19:53:37 +00:00
Pavel Sanda
373f3d8f7d Backport fix for bug #6000
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30110 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 15:55:53 +00:00
Jean-Marc Lasgouttes
44f0cd4dca backport http://www.lyx.org/trac/changeset/30107
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30108 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-15 12:18:18 +00:00
Jürgen Spitzmüller
23345956ef * BiblioInfo.cpp:
- convert author/editor to proper unicode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30073 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-12 14:34:44 +00:00
Enrico Forestieri
a676d02970 Fix display of BibTeX entries in the info field of the citation
dialog by only converting text mode latex macros to unicode points.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30071 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-12 14:22:51 +00:00
Uwe Stöhr
8673417a51 tex2lyx/preamble.cpp:
- support for url, varioref, prettyref
- reduce the sometimes huge amount of whitespace in the preamble after importing files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30068 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-12 11:58:41 +00:00
Uwe Stöhr
2040fc69df GuiCitation.cpp: fix #5987 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30066 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-12 11:34:32 +00:00
Jean-Marc Lasgouttes
3c6e023f62 Show binding associated to the lfun in the tooltip of a toolbar icon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30040 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-10 14:03:55 +00:00
Enrico Forestieri
8d21593429 The QFileInfo::refresh() bug is fixed in Qt 4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30038 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-10 11:34:28 +00:00
Pavel Sanda
f89bd3fe91 Backport fix for 5980.
Patch from Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30025 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-09 06:53:51 +00:00
Jürgen Spitzmüller
b7304601e0 backport revision 29238
URL: http://www.lyx.org/trac/changeset/29238

Log:
* 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/branches/BRANCH_1_6_X@30020 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-08 16:04:11 +00:00
Jürgen Spitzmüller
8262926d58 * ToggleWarningUi.ui:
- attempt to fix the layout.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30018 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-08 13:24:19 +00:00
Jürgen Spitzmüller
ef31f02ca5 backport rev. 29324:
Timestamp: 
04/19/09 13:57:52
Author: 
spitz 
Message: 
Implement a warning dialog with a "Do not show this warning again!" checkbox.
Since Qt does not provide this, we have to roll our own dialog.
Hidden warnings are stored in sessions.

The dialog is currently only used in the case where an included file
has a different textclass then the master (bug 3218).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29941 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 05:06:17 +00:00
Enrico Forestieri
dc3abde38e Take into account file system case sensitivity when checking whether
a path starts with a given prefix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29940 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-04 18:56:22 +00:00
Richard Heck
255b1e9d91 Word-wrapping for footnotes. Backports some earlier commits to trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29920 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-04 13:04:51 +00:00
Enrico Forestieri
0c30476127 This is a bit more descriptive.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29865 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-27 10:27:04 +00:00
Enrico Forestieri
27b0a1e35a Don try to be smart and always protect the preamble with \makeatletter
and \makeatother if it is not empty.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29854 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-26 18:07:27 +00:00
Uwe Stöhr
10ce509814 InsetMathFrac.cpp: fix the regression now completely
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29850 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 22:48:59 +00:00
Uwe Stöhr
c517d8c16d InsetMathFrac.cpp: fix regression reported here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151588.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29848 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 22:42:53 +00:00
Enrico Forestieri
3f5f4266a3 Fix reverse search when the View Source window is active.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29835 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-24 09:03:03 +00:00
Pavel Sanda
312f2f9bc5 Backport #5307.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29792 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 21:43:27 +00:00
Vincent van Ravesteijn
db96572421 branch: Fix bug #5540: Crash in MathAtom on Undo.
No undo steps are recorded for math-macros. Now, it is also not done when we resume to edit a macro.

see r29685.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29765 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 13:52:33 +00:00
Pavel Sanda
47c83e2fec Backport few glitches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29749 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-20 18:39:39 +00:00
Enrico Forestieri
533273ed5d Fix bug #1435. Now Ctrl-m enters math mode when in text-in-math mode,
instead of producing nested text boxes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29748 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-20 15:35:49 +00:00
Enrico Forestieri
5c692aeef2 Another compile fix for msvc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29742 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 20:30:43 +00:00
Jürgen Spitzmüller
091d4e58e3 * potential compile fix for msvc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29740 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 20:00:27 +00:00
Jürgen Spitzmüller
f720a43314 * calculate the size of the iconv output buffer (bug 5951).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29736 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 15:28:27 +00:00
Jürgen Spitzmüller
647e492ac9 * InsetTabular.cpp (getStatus):
- allow again to set allocate multiple header attributes to a row,
	  since this is valid (fix bug 5950).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29722 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-18 06:25:43 +00:00
Jürgen Spitzmüller
a0cf405633 formatting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29707 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 09:27:21 +00:00
Jürgen Spitzmüller
c726acdfc4 only whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29706 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 09:03:57 +00:00
Jürgen Spitzmüller
9cd46c3d32 * InsetCollapsable.cpp (doDispatch):
- reset paragraph fonts also after LFUN_SELECTION_PASTE.
          This assures lang is set to latex in ERTs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29691 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 15:43:06 +00:00
Vincent van Ravesteijn
7859191dd7 branch: Partial fix for bug #5465. This will enable scrolling down past a very large inset. With this code, LyX will scroll up everytime you try to scroll past the inset, because the cursor is set on the uppermost row.
see:
http://thread.gmane.org/gmane.editors.lyx.devel/118449


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29684 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-15 21:27:28 +00:00
Vincent van Ravesteijn
976347a2f3 Fix the assert on Windows when starting LyX by double-clicking on a file. Do the same also for FileName::set.
see r29646--r29648.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29671 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 18:01:10 +00:00
Vincent van Ravesteijn
a96090060d branch: Fix bug #5888.
See r29665 and http://thread.gmane.org/gmane.editors.lyx.devel/116562.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29670 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 17:56:36 +00:00
Jean-Marc Lasgouttes
c3cb9d0122 backport fix for tex2lyx bug http://www.lyx.org/trac/ticket/5935
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29653 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 09:56:02 +00:00
Vincent van Ravesteijn
35229a994e branch: Prevent assertions due to non-absolute filename as a parameter of buffer-switch or file-insert-plaintext.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29644 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 18:42:56 +00:00
Enrico Forestieri
4d613ca34c Don't create nested math hulls (fixes bug #5392) and remove workaround
needed to deal with such nesting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 14:32:00 +00:00
Enrico Forestieri
8baf858a80 Fix bug in FileName::dirList(). If the directory had been specified without a
trailing slash, the listing of the parent directory would have been returned.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29609 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 14:17:57 +00:00
Vincent van Ravesteijn
a2316bd480 branch: Fix part 2 of bug #5758: Crash when closing the dosbox from which LyX was started.
A problem occurs when we write the ConverterCache index file. This action is instantiated in the destructor of the 'static ConverterCache' object. The use of QFileInfo at that point leads to a crash.

It is maybe not a good idea at all to put part of the functionality in a destructor, especially not when we do not delete the object ourselves and when this functionality uses external libraries etc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29608 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 11:07:03 +00:00
Vincent van Ravesteijn
a6b4e213b6 branch: Fix bug #5930: Crash when undoing info-insert in math mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29607 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 11:01:54 +00:00
Vincent van Ravesteijn
f4845784d5 branch: Fix bug #5890: Assertion when reducing the view size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29606 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 10:55:17 +00:00
Vincent van Ravesteijn
8ab43f3d6d branch: Fix bug #5879: Move the autosave file of a buffer when the filename changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 19:13:21 +00:00
Vincent van Ravesteijn
6d9490470c branch: Autosave files of still unnamed documents (newfiles) are now saved in the backup dir, default document dir, or else in the temp dir.
see r29065, r29071, r29073, and r29508.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29592 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 19:08:59 +00:00
Vincent van Ravesteijn
85419bb6cb branch: Fix bug #5131: Remember last file active.
A bool is added to the entry of a last opened file in the Session file. This bool, indicates whether the file was the last one being edited.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:47:32 +00:00
Vincent van Ravesteijn
391a16e42f Close the tabs in reverse order, which is aesthetically better after r29530. Consequently, we have to open the files (read from the session file) also in reverse order.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29590 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:35:34 +00:00
Vincent van Ravesteijn
1233a0a00e Fix some outliner ui glitches:
- reduce flickering, 
- improved disabling and enabling of controls.

see also r29477.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:27:08 +00:00
Jürgen Spitzmüller
a7c3fa14fd * disable some invalid insets in description items (covers bug 5937).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29586 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 16:56:58 +00:00
Jürgen Spitzmüller
e2d2eae554 * also enable LFUN_BRANCH_INSERT if we have branches only in a child.
(no status entry needed. This is due to a new feature)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 12:40:23 +00:00
Enrico Forestieri
919f0537ff Fix bug 5705 by speeding up FileName operator== (Georg's solution).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 16:22:49 +00:00
Vincent van Ravesteijn
bcf361f389 branch: Fix bug #5001: Tab order not preserved when starting lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29533 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 19:20:20 +00:00
Pavel Sanda
ee2bad7dc7 Backport r29527
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 08:01:09 +00:00
Enrico Forestieri
081b58b672 When performing a reverse DVI search and the tmpdir is a symlink, the
DVI viewer passes back the resolved path, such that the search fails,
as internally LyX uses the unresolved path.
This patch fixes this bug by using the new method FileName::realPath
which resolves a path by getting rid of any '.', '..', or symlink
path components.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29504 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 21:51:06 +00:00
Pavel Sanda
9d07a6ca61 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29495 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 13:32:20 +00:00
Pavel Sanda
d308eb6906 Backport
http://www.lyx.org/trac/changeset/29491
http://www.lyx.org/trac/changeset/29492



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29494 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 13:21:56 +00:00
Pavel Sanda
7057ee58f8 Backport http://www.lyx.org/trac/changeset/29473
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29475 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 13:55:56 +00:00
Enrico Forestieri
22794313af Don't try to load a nonexisting file when executing server-goto-file-row
as this leads to a crash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 22:35:53 +00:00
Pavel Sanda
29cc2c79f9 backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 11:56:31 +00:00
Pavel Sanda
9ddb40238c backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 08:44:40 +00:00
Jean-Marc Lasgouttes
f087798732 backport r29392
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-25 11:20:59 +00:00
Jürgen Spitzmüller
64d320c255 backport r29394:
Author: younes
Date: Fri Apr 24 23:04:51 2009
New Revision: 29394
URL: http://www.lyx.org/trac/changeset/29394

Log:
Simple fix for bug 4464
http://www.lyx.org/trac/ticket/4464

Thanks to Vincent for showing the way.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29396 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-25 09:48:16 +00:00
Jean-Marc Lasgouttes
2b677bdc06 fix bug #5912
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29388 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-23 13:50:00 +00:00
Uwe Stöhr
93b6399c77 InsetHyperlink.cpp: - fix #5908 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:32:21 +00:00
Jean-Marc Lasgouttes
e0fc18d2b0 backport r29346
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29359 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 12:50:44 +00:00
Vincent van Ravesteijn
e1df748c11 branch: Fix bug 5894: Inserting tabs with inline selections.
see r29245.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:18:19 +00:00
Vincent van Ravesteijn
9eabb73fa5 branch: Fix bug #5758: Crash when closing the dosbox from which LyX was started
The wmf_mime_ object was deleted both when deleting GuiApplication::Private as from 
QWindowsMimeList::~QWindowsMimeList().

see r29326.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:03:39 +00:00
Vincent van Ravesteijn
0dd017f0fc branch: Revert fix for bug #5435.
Revert r29002 and r29003. This fix introduced a regression. The new fix will be postponed to 1.6.4.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:00:59 +00:00
Uwe Stöhr
3cbf60249a BiblioInfo.cpp: make it compilable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29313 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 15:43:19 +00:00
Richard Heck
12fbbcc175 Backport r27635, r28193, r28194, r28220, r29094, and r29095. The point
of these, taken together, is to improve the display of information in 
InsetCitation and GuiCitation, by gathering missing data from the 
crossref, if one is defined, basically as BibTeX does.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29312 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 15:29:36 +00:00
Uwe Stöhr
aa6c45c1cc - support for \cfrac also for branch
- add missing mathmlize routine for \binom (we already support mathml for \tbinom and \dbinom)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 21:00:08 +00:00
Jean-Marc Lasgouttes
273832e21f fix a few compilation warnings with gcc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29242 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-14 10:37:49 +00:00
Vincent van Ravesteijn
7503ba017e branch: Enable dialogs that can apply for read-only documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29226 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:00:29 +00:00
Jürgen Spitzmüller
bb3e18b211 * InsetBranch.cpp:
- indicate branch status in the tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 07:17:41 +00:00
Richard Heck
ab34290690 Now, JMarc's check-cross branch patch for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29194 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:59:03 +00:00
Richard Heck
d40a7651f2 Revert 29191. I didn't meant to commit all that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29193 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:57:25 +00:00
Richard Heck
896f580ed0 Backport JMarc's check-cross patch for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29191 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:51:50 +00:00
Vincent van Ravesteijn
c0771e3c07 branch: Fix bug #4510: GuiInclude->Edit marks master as changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29151 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 16:01:59 +00:00
Enrico Forestieri
b59d7f44d6 Introduce a helper function and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29145 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 17:41:25 +00:00
Pavel Sanda
5baae858a8 Backport http://www.lyx.org/trac/changeset/29140
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29142 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 12:04:24 +00:00
Enrico Forestieri
9761a302d6 Don't create nested text-in-math environments and don't wrap characters
marked as mathalpha in the unicodesymbols file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29122 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 09:07:52 +00:00
Vincent van Ravesteijn
0b00107aaf branch: Fix bug #3038: wish for lfuns for zoom-in and zoom-out
see:
http://www.lyx.org/trac/changeset/29077
http://www.lyx.org/trac/changeset/29080
http://www.lyx.org/trac/changeset/29081

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29107 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 17:23:57 +00:00
Enrico Forestieri
e6632d97c8 Tweaks for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 15:21:55 +00:00
Enrico Forestieri
c290f2d6c4 The \text macro does not require the full AMS package. Also load amstext
when a text-in-math environment is used, such that super and subscripts
are typeset in the correct size.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29103 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 13:56:08 +00:00
Enrico Forestieri
403e3a3f28 Unicode symbols entered or pasted in math are wrapped in \text{} by default.
Unwrapped symbols can be obtained either by dissolving the text inset or by
verbatim paste (Ctrl+Shift+V). In such a case, the symbols are wrapped in
\lyxmathsym when exporting to latex, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29102 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 13:46:37 +00:00
Richard Heck
132466f6f7 Backport fixes for 5787. Patches from Bo and Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29089 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:35:53 +00:00
Richard Heck
feee22e674 Backport fix for bug 5859.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29087 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:11:03 +00:00
Richard Heck
790376adbc Backport r28544, fixing 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29086 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:06:08 +00:00
Pavel Sanda
81c8021ab1 Backport http://www.lyx.org/trac/changeset/29057
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg149683.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29079 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 09:49:57 +00:00
Vincent van Ravesteijn
16d1b8d701 branch: Fix bug 4733 and partly bug 4174
- Auto popup of math toolbar hides the math editor
  www.lyx.org/trac/ticket/4733
- Do not scroll to the cursor without a reason
  www.lyx.org/trac/ticket/4174

* GuiWorkArea?: This adds "buffer_view_->scrollToCursor();" to GuiWorkArea::resizeBufferView() to make sure that the cursor remains visible. 

* BufferView?: Make sure that we can call the scrollToCursor function without causing a new repaint.

* BufferView?: Make sure that we only scroll when the cursor was in the view (bug 4174: www.lyx.org/trac/ticket/4174).

see:
http://www.lyx.org/trac/changeset/28946
http://www.lyx.org/trac/changeset/29066

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29076 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 08:55:07 +00:00
Vincent van Ravesteijn
42c3b63c36 branch: Fix bug 4067: Incorrect indentation in Description environment
http://www.lyx.org/trac/ticket/4067


If we are in the first pos, we are never in the body and always in the label.

see:
http://www.lyx.org/trac/changeset/29033




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29064 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 19:56:30 +00:00
Richard Heck
c76b28d1a0 Backport r29017.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29049 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:46:44 +00:00
Jürgen Spitzmüller
ba26d715cd Buffer.cpp:
- re-assign a master's children if a child was reloaded (bug 5873)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29047 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:09:21 +00:00
Jürgen Spitzmüller
9ee1ec0b62 backport r28934.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29045 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 10:59:39 +00:00
Pavel Sanda
cfcec856ef Compilation fix
(Vincent have you tested r28754 works correctly in branch?)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29032 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:51:53 +00:00
Vincent van Ravesteijn
776e608bad branch: Fix bug 4673: Case-insensitive sorting of colors in GuiPrefs?.
see:
http://www.lyx.org/trac/changeset/27995




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:19:46 +00:00
Vincent van Ravesteijn
b10cf08974 branch: Remove black box around GuiWorkarea? which is visible with Qt4.5.
see:
http://www.lyx.org/trac/changeset/28747

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29028 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:15:36 +00:00
Vincent van Ravesteijn
dbeddbac57 branch: Improved UI for version control:
* the menu-item should also be enabled when the buffer is still unnamed (it will be saved anyway), and
* no buffer-reload after user cancel.

see:
http://www.lyx.org/trac/changeset/28028

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:13:26 +00:00
Vincent van Ravesteijn
4dd1fed397 branch: Fix disabling of submenus that are empty.
see:
http://www.lyx.org/trac/changeset/28027

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29026 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:08:25 +00:00
Vincent van Ravesteijn
4b76c8267f branch: Fix disabling of submenus that have only disabled items.
see:
http://www.lyx.org/trac/changeset/28026

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29025 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:07:08 +00:00
Vincent van Ravesteijn
2e0b91e170 branch: Fix bug 5526: screen-recenter LFUN doesn't work
http://bugzilla.lyx.org/show_bug.cgi?id=5526

see:
http://www.lyx.org/trac/changeset/28916

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:56:26 +00:00
Vincent van Ravesteijn
1f3ac11ea2 branch: Prevent assertion with command 'buffer-switch xxx' in which xxx is not the name of a loaded buffer.
see:
http://www.lyx.org/trac/changeset/28966


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29022 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:50:52 +00:00
Vincent van Ravesteijn
f1b242b62a branch: Fix a few peculiarities wrt graphics. E.g., an InsetGraphic? with a non-existing image showed the message that the image was loaded, instead of "No file found!".
* CacheItem::Impl::tryDisplayFormat


- Enhance description of the return value.
- Negate the return values to match the description.


* CacheItem::tryDisplayFormat


- Impl::tryDisplayFormat returns whether a conversion is needed, not whether the try was successful. Therefore, we should check the status as well.

see: http://www.lyx.org/trac/changeset/28754.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29021 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:41:00 +00:00
Vincent van Ravesteijn
264455562c branch: Preferences dialog fixes:
* accelerator clashes,
* missing accelerators, and
* strings (capitalization). 

see:
http://www.lyx.org/trac/changeset/28960

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29004 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:25:06 +00:00
Vincent van Ravesteijn
0f290b2783 branch: Fix bug 5435: DEPM doesn't function when leaving an inset
http://bugzilla.lyx.org/show_bug.cgi?id=5435
The code for this was already present, but was never reached.

see:
http://www.lyx.org/trac/changeset/28910

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29003 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:15:28 +00:00
Vincent van Ravesteijn
2bb22bd940 branch: Fix bug 5434: DEPM not executed for PgUp/PgDown?
http://bugzilla.lyx.org/show_bug.cgi?id=5434

see
http://www.lyx.org/trac/changeset/28909
http://www.lyx.org/trac/changeset/28927

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29001 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:05:15 +00:00
Vincent van Ravesteijn
7d78cc8d72 branch: Fix the bug that the view source window remained disabled forever when window got disabled while the autoUpdate checkbox was unchecked. Also, update the window when the autoUpdate checkbox was toggled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29000 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 20:49:46 +00:00
Pavel Sanda
d7cd83046b typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28997 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 21:57:58 +00:00
Pavel Sanda
36fa2dc1e7 Fix monolithic build.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28994 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 21:19:43 +00:00
Jürgen Spitzmüller
257b765df8 * ExternalUi.ui: layout fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28990 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 12:36:49 +00:00
Enrico Forestieri
4f2d5f39ee New simplified definition of \lyxmathsym and better re-import from latex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28989 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 11:29:31 +00:00
Jürgen Spitzmüller
d4a2f681b8 Fix bug 5863:
* beamer.layout:
* powerdot.layout:
	- those provide geometry

* BufferParams.cpp:
* GuiDocument.cpp:
	- implement provides("geometry")

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 10:51:43 +00:00
Uwe Stöhr
3f1963ea40 LyXAction.cpp: fix documentation bug: add-vline-left/right is not allowed for the cases environments and we already correctly check this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28951 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 01:35:24 +00:00
Vincent van Ravesteijn
7e48a5cf5c branch: Fix bug 4441. GuiRef: Ok button must be default.
See also:
http://www.lyx.org/trac/changeset/28784
http://www.lyx.org/trac/changeset/28726
http://bugzilla.lyx.org/show_bug.cgi?id=5695


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28944 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:04:51 +00:00
Jürgen Spitzmüller
a26a9f6592 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28937 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 12:39:17 +00:00
Richard Heck
1cf1e65b63 Tooltips for InsetCitation (backported).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28935 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 12:17:25 +00:00
Jürgen Spitzmüller
b4a08eb307 Fix bug 5827 (validate date-insert argument):
* src/support/os*.{cpp,h}:
	- new function is_valid_strftime that validates strftime arguments, 
	  OS dependant (win32 differs here)

* src/Text3.cpp:
	- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
	- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28933 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:25:23 +00:00
Jürgen Spitzmüller
f3a89dad1a * PrefLanguage.ui:
* PrefPaths.ui:
	- fix some "buddies" (accelerators).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28929 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 10:14:59 +00:00
Richard Heck
f106307c47 Backport the fixes for bug 5872.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28923 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 17:39:11 +00:00
Jean-Marc Lasgouttes
be88703ad1 make the man pages autogenerated; update the tex2lyx man page
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28893 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 09:52:05 +00:00
Enrico Forestieri
82e5e90864 Fix a handful of dialog layouts for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28885 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 22:27:23 +00:00
Jürgen Spitzmüller
41de4ebc11 * GuiView.cpp (closeEvent):
- store child documents in session.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28873 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:19:14 +00:00
Jürgen Spitzmüller
4fb5e44811 Backport rev. 28280:
Author: spitz
Date: Sun Jan 25 18:04:57 2009
New Revision: 28280

URL: http://www.lyx.org/trac/changeset/28280
Log:
* GuiApplication.cpp:
        - use the first command in sequence as icon name for command-alternatives.
* lib/ui/stdtoolbars.inc:
        - use command-alternatives for the alignment buttons in the tabular toolbar (bug 5709).
* lib/images/tabular-feature_align-*.png:
* lib/images/tabular-feature_valign-*.png:
        - rename to tabular-feature_m-[v]align-*.png:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28872 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:08:22 +00:00
Enrico Forestieri
fb47d709ee Fix display of release date with Qt 4.2.
In Qt 4.2, QLocale::toString(QDate, ...) returns an invalid but not empty date
when QDate is invalid. So, check whether QDate is valid before conversion.
(status.16x is already updated)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28864 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-19 08:57:09 +00:00
Jean-Marc Lasgouttes
77a4103668 fix "make check" with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28861 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 23:09:29 +00:00
Jean-Marc Lasgouttes
f9a4e1cc95 backport the tex2lyx unicode stuff from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28858 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:40:08 +00:00
Jean-Marc Lasgouttes
6dec0f3e0d read correctly InsetFlex which name contains a space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28857 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:21:25 +00:00
Jean-Marc Lasgouttes
dd658e6f84 remove useless checkbox for some tabular-feature functions in math arrays
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28855 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:39:17 +00:00
Jean-Marc Lasgouttes
9aa0e78047 do not compare char* strings directly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28852 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:14:49 +00:00
Enrico Forestieri
c23a63478a Fixes for gcc4 on cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28848 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 11:52:26 +00:00
Vincent van Ravesteijn
f72455413f branch: move ColorSet to a header of its own to reduce #include dependencies. Patch by Andre.
see:
http://www.lyx.org/trac/changeset/28426.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28841 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 13:23:54 +00:00
Jürgen Spitzmüller
73709670e1 * VCBackend.cpp:
- some spelling and grammar fixes (a native EN speaker will have to double-check).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28838 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 11:07:17 +00:00
Vincent van Ravesteijn
1d8b2b595f branch: Disable the Edit->Math menu when not in math (bug 4218).
Introduce new LFUN_MATH_FONT_STYLE which takes one of the font styles as an argument. A dispatch is being redirected to math-insert.

see:
http://www.lyx.org/trac/changeset/28181.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28836 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:51:39 +00:00
Jürgen Spitzmüller
8d238def28 * InsetMathCases.cpp:
- fix string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28834 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:46:21 +00:00
Vincent van Ravesteijn
b79355e6a3 branch: Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28833 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:23:06 +00:00
Jürgen Spitzmüller
3229618c20 * Fix encoding problem following a Listing (bug 5783).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28831 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 09:26:37 +00:00
Jürgen Spitzmüller
67af233115 * LaTeX.cpp:
- perform extra LaTeX run when requested by lettre.cls (bug 5818).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28829 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 05:11:24 +00:00
Uwe Stöhr
7b12d8bbb6 - InsetMathCases.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=4141 for branch
- status.16x: some updates and whitespace fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28827 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 00:38:23 +00:00
Richard Heck
36e72cd094 Fix bug 5782 in branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28824 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 20:19:51 +00:00
Pavel Sanda
42de81d76f * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28822 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:50:50 +00:00
Richard Heck
a84580306e Backport r28340.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28820 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:31:12 +00:00
Pavel Sanda
f6ad811535 Backport jump-back button
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147979.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28819 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:14:38 +00:00
Pavel Sanda
d735335c88 Backport r28752
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28818 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 18:44:51 +00:00
Pavel Sanda
e211a71471 Backport svn locking
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147723.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28817 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 18:30:53 +00:00
Richard Heck
a540263da9 Backport r28366-7, approved a long time ago and since held.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28809 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 21:26:14 +00:00
Richard Heck
5b185f8683 Squash a warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28808 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 21:25:35 +00:00
Vincent van Ravesteijn
21d90e18d1 branch: Fix bug 5819: Close button of tabbar closes wrong document
http://bugzilla.lyx.org/show_bug.cgi?id=5819.

If no call to setCurrentIndex is made, we should make sure ourselves that the currentWorkArea switches to the clicked TabWorkArea.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28806 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:26:48 +00:00
Vincent van Ravesteijn
a5381101e3 branch: Fix bug 5848: Do not create a new file after 'new from template..' and cancel.
see:
http://www.lyx.org/trac/changeset/28029


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28805 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:15:57 +00:00
Vincent van Ravesteijn
d8c3c6519d branch: Fix bug 5695: Default button must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695

Fix for GuiHyperlink and GuiInclude.

see:
http://www.lyx.org/trac/changeset/28726
http://www.lyx.org/trac/changeset/28784

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28804 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:05:11 +00:00
Uwe Stöhr
5c9e3284e9 preamble.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5846 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28801 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 16:44:07 +00:00
Jürgen Spitzmüller
5e387ecdb5 please Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28798 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 15:50:40 +00:00
Enrico Forestieri
64aa11b124 Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
Japanese char between math insets becomes wrong in TeX output


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28797 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 14:08:09 +00:00
Vincent van Ravesteijn
0f93daf6a3 branch: UI Command Buffer improvements.
* the history is stored in the session file and restored in the next LyX session,
* the lists now disappear when the mouse is released in stead of pressed,
* correct enabling/disabling of the up/down button,
* hide the lists when clicked outside the list. Now using the function event() and check for a mouseButtonPressEvent instead of using mouseReleaseEvent(). The latter is only called when the mouse button is released inside the widget, but we want to use this event to detect a mouseclick outside the list.

see:
http://www.lyx.org/trac/changeset/28250
http://www.lyx.org/trac/changeset/28794

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28796 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:31:37 +00:00
Jürgen Spitzmüller
838b3e9193 * GuiDelimiter.cpp:
- do not auto-apply if "match" is not chosen (bug 5789).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:16:10 +00:00
Vincent van Ravesteijn
a58e160745 branch: Fix bug 5629: Hard to distinguish between added and deleted text.
http://bugzilla.lyx.org/show_bug.cgi?id=5629. 

Backport of:
- (r28420) Add a new Color class. This class makes it possible to specify a color as a merging of two other colors.
- (r28421) Use the new Color class in the Painter code. 
- (r28422) Add a new member to FontInfo? denoting the color to be used when painting. 
- (r28423) Add a new customizable color that indicates the merge color for deletion.

See also: 
http://thread.gmane.org/gmane.editors.lyx.devel/114189 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28785 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 20:41:04 +00:00
Vincent van Ravesteijn
3f6dae8123 branch: Fix bug 5769: http://bugzilla.lyx.org/show_bug.cgi?id=5769.
Copy content vanishes on Quit.

The work-around to clear the clipboard was needed to work around bug 4846. This bug has been resolved by the fix for bug 5472, so the work-around isn't needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28783 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 18:32:31 +00:00
Vincent van Ravesteijn
5bbf48b743 branch: Fix bug 5799. Warning when opening the document settings and preferences dialogs: http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28782 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 18:24:09 +00:00
Vincent van Ravesteijn
9a912afd42 branch: Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28781 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:56:26 +00:00
Vincent van Ravesteijn
e007ee91da branch: Fix bug 5088: Incorrect cursor movement
http://bugzilla.lyx.org/show_bug.cgi?id=5088

After executing DEPM to remove a double space, the position of the cursor was only 'fixed' if the cursor remained in the same par. This patch corrects this
to fix the position of the cursor also when the cursor is in a nested inset which is in the same par. This is needed because otherwise the cursor would not
point to the inset but one pos after it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28780 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:41:19 +00:00
Vincent van Ravesteijn
73db05c0bb branch: Fix bug 1802: http://bugzilla.lyx.org/show_bug.cgi?id=1802.
* allows the selection of a whole cell with shift+key
* shift-movement between empty cells with a single keystroke 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:31:11 +00:00
Vincent van Ravesteijn
9ad1428486 Fix an infinite loop with Qt4.5 when creating two unnamed files.
In Qt4.5, QFileInfo::operator==() always returns true when comparing two non-existing files. Therefore, an extra check is needed. 

see 
http://www.lyx.org/trac/changeset/28748


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28768 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 10:47:29 +00:00
Vincent van Ravesteijn
7238dc91e8 branch: change the use of QString::indexOf(RegExp) into RegExp::indexIn(QString) to avoid crashes and infinite loops with Qt4.5.
See:
http://www.lyx.org/trac/changeset/28746

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28767 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 10:39:27 +00:00
Jürgen Spitzmüller
a37fe91e51 * buffer_funcs.cpp:
- fix another dataloss crash when undoing a resolved branch in a child
	  (patch by rgheck).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28759 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-13 12:08:20 +00:00
Jürgen Spitzmüller
1d9ee4e901 Backport r28730.
Author: vfr
Date: Sun Mar  8 22:23:31 2009
New Revision: 28730

URL: http://www.lyx.org/trac/changeset/28730
Log:
Fix scrolling regression (http://www.lyx.org/trac/changeset/28397).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28733 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 07:49:21 +00:00
Jürgen Spitzmüller
a0e0bd3311 * tex2lyx/Makefile.am:
- add tex2lyx.1 to the distribution.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 08:29:23 +00:00
Jürgen Spitzmüller
22a49ee863 fix bug 5833
* Buffer.{cpp, h}:
	- new method getChildren() that returns included (and sub-included) files

* GuiView.cpp (closeEvent):
	- do not just close dirty child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28713 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 16:35:25 +00:00
Jürgen Spitzmüller
3e5a87d6d7 * CutAndPaste.cpp:
- correctly set buffer on paste. This fixes a crash on pasting branches 
	   within child documents (bug 5813)

(patch by rgheck)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28709 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 11:37:51 +00:00
Vincent van Ravesteijn
06f2013ab8 branch: InsetTabular.cpp: Make sure the caption is inserted in the correct cell. This means we first have to reset the cursor to point to the new multicolumn, and then insert the caption.
See:
http://www.lyx.org/trac/changeset/28441

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-01 16:06:04 +00:00
Vincent van Ravesteijn
364cc24033 Fix nr.3 of bug 4346.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28643 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-28 16:52:46 +00:00
Vincent van Ravesteijn
e09184fd5d branch: Fix bug 5765: http://bugzilla.lyx.org/show_bug.cgi?id=5765.
[visual cursor] Crash when cutting a figure caption and moving the cursor. 
Avoid negative positions. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 23:03:39 +00:00
Vincent van Ravesteijn
d39be32421 branch: Fix bug 5762: http://bugzilla.lyx.org/show_bug.cgi?id=5762.
[visual cursor] Crash when moving left in table in an RTL document 
Avoid negative positions. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 22:59:54 +00:00