Commit Graph

15197 Commits

Author SHA1 Message Date
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