Commit Graph

19326 Commits

Author SHA1 Message Date
Richard Heck
805d18d818 Another fix for csv2lyx. This one looks like a generic bug, though
one that may have been triggered by an older version of python. The
problem is that the sniffer call could fail, and then dialect is
undefined. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26447 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 17:37:06 +00:00
Richard Heck
74b225d428 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26446 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 17:03:06 +00:00
Richard Heck
8d94611a02 The line_num member was only introduced with python 2.5, so we'll
do this a different way.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 16:57:56 +00:00
Jürgen Spitzmüller
0bb14ddfc7 get rid of two compiler warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 16:29:27 +00:00
Jürgen Spitzmüller
81d02909cf Fix bug 448:
* src/OutputParams.{cpp,h}:
	- new param isLastPar, indicating if the current paragraph is the last in a given inset/buffer
* src/output_latex.cpp:
	- set isLastPar
* src/Paragraph.cpp:
	- noTrivlistCentering also in tabular cells
	- in the last par, use alignment switch instead of environment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 14:51:16 +00:00
Jean-Marc Lasgouttes
bf02b246f9 LyXFunc::dispatch: do no close the undo group too early
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 14:34:33 +00:00
Jean-Marc Lasgouttes
b23bdfa00b use Length::inPixel and not Length::inBP to get screen lengths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 13:59:35 +00:00
Jean-Marc Lasgouttes
b0a3273bac BufferView::mouseDispatch: make sure to create an undo group
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 13:44:54 +00:00
Jean-Marc Lasgouttes
7b9bfecb2f another recordUndoFullDocument bits the dust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:47:28 +00:00
Jean-Marc Lasgouttes
00cca05443 improve debug info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:46:31 +00:00
Jean-Marc Lasgouttes
a20a4f2ca0 no need to record full document here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:40:53 +00:00
Enrico Forestieri
7557098b01 Update it.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26435 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 22:28:31 +00:00
Pavel Sanda
d36e010fdf Patch from Bennett.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26434 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 21:28:57 +00:00
Pavel Sanda
a1c21d9c79 One more comment from JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 21:26:54 +00:00
Jean-Marc Lasgouttes
32a3da1a84 Fix bug 2746: http://bugzilla.lyx.org/show_bug.cgi?id=2746
References autoupdate is not undone during UNDO operation

	* InsetLabel.cpp (updateCommand): record undo for each of the label 
	changes (and put everything in a group to make sure it will be undone 
	in one step).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26432 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 16:28:33 +00:00
Jean-Marc Lasgouttes
00c0933502 bad behaviour of recordUndoInset has been fixed in http://www.lyx.org/trac/changeset/14791
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26431 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 15:45:47 +00:00
Jean-Marc Lasgouttes
b654db1a2e try to clarify documentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26430 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 15:15:12 +00:00
Jean-Marc Lasgouttes
fafc1b1d3d re-implement correctly undo for graphics groups unification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26429 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 14:54:37 +00:00
Jean-Marc Lasgouttes
d585528d50 fix properly http://bugzilla.lyx.org/show_bug.cgi?id=2040
* BufferView.cpp (setCursorFromInset): new method, useful to find
	an inset that is known to be in the document.

	* frontends/qt4/GuiView.cpp (dispatch): do a proper recordUndo
	befire appplying changes to an inset. The insets are responsible
	for recording additional undo steps that could be needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 14:51:27 +00:00
Jean-Marc Lasgouttes
9bbe7251af actually this constructor is not used
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 13:21:30 +00:00
Jürgen Spitzmüller
f3c202d287 * po/*.po: remerge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26426 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 12:52:10 +00:00
Jean-Marc Lasgouttes
cf7fdf78bb fix a bunch of harmless warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 11:33:07 +00:00
Jean-Marc Lasgouttes
f3900b8b9b fix compiler warning introduced in r26399; note that paramater pos was not used in the Row(pos) form of the constructor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26424 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 11:32:38 +00:00
Jürgen Spitzmüller
f2dc0e073d * unicodesymbols:
- some more Greek glyphs. Patch by Günther Milde.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26422 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 07:48:36 +00:00
Enrico Forestieri
9b9e3ae480 Update it.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26421 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 18:06:23 +00:00
Abdelrazak Younes
d28a762ec7 Fix copy & paste of inset inside table cell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26420 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 17:03:15 +00:00
Enrico Forestieri
ed5794d68b Was forgetting this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26419 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:54:29 +00:00
Enrico Forestieri
3e55de70dd Introduce LFUN_FONT_BOLDSYMBOL, performing the same as LFUN_FONT_BOLD
except when in math mode, where \boldsymbol is used instead of \mathbf.
Restore the previous binding of Ctrl-B and make sure that LFUN_FONT_BOLDSYMBOL,
now bound to Ctrl-Alt-B, can be toggled.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:49:11 +00:00
Abdelrazak Younes
2f271f61bc fix warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:20:12 +00:00
Abdelrazak Younes
2b94a43e38 Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:09:08 +00:00
Abdelrazak Younes
1199f092d4 Graceful assertion in release mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:07:53 +00:00
Jean-Marc Lasgouttes
1070eeb9ac * LyXFunc.cpp (dispatch): make sure that a group os created before calling LyXView::dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26413 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 15:44:49 +00:00
Jürgen Spitzmüller
d17f1a298a * src/InsetIndex.cpp:
- fix LaTeX output with unrepresentable characters in current encoding (bug 5022). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26412 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 14:19:00 +00:00
Abdelrazak Younes
d46f34a4ee Fix GuiInfo dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26411 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 14:11:57 +00:00
Richard Heck
b1475b461a Update layout specification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 13:25:42 +00:00
Jürgen Spitzmüller
0337fcebd5 * unicodesymbols: fixe some entries.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 09:45:20 +00:00
Jürgen Spitzmüller
eb3ab2f3d0 * InsetTabular.cpp:
- comment out non-working code that can trigger an assertion (probably bug 5225).
	  (this code also does not work as expected in branch, but it doesn't act as badly there)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26407 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 08:43:42 +00:00
Jürgen Spitzmüller
7bbb01f8b6 * src/insets/InsetTabular.{cpp,h}:
- improve updating of on-screen alignment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 08:09:52 +00:00
Pavel Sanda
a89ab325ef Add note about ui-toggle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26405 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 00:58:00 +00:00
Pavel Sanda
4b0bd42405 Cosmetics (Vincent)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26404 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 22:09:10 +00:00
Enrico Forestieri
1383629299 Fix bug 5246
http://bugzilla.lyx.org/show_bug.cgi?id=5246


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26403 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 17:51:46 +00:00
Edwin Leuven
b1c3515769 comments don't hurt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 17:43:04 +00:00
Jürgen Spitzmüller
151da16a74 * TabularUi.ui
- descibe valign even more accurately.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26401 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 15:30:37 +00:00
Jürgen Spitzmüller
f742f7bf83 * linguistics.lyx: document OT floats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26400 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 15:26:36 +00:00
Abdelrazak Younes
3461169526 Patch by Vincent that solves a number of problems related to the painting of a selection:
1. When a listing is inserted in a bit of text, the line above the listing is not drawn over the full width like it is done for lines above other insets. This is because InsetListing has a AlignLeft alignment. Now, if you start selecting downwards with the mouse in this empty area, strange selection drawings appear (see attachment).
This is caused by the fact that starting your selection at such a place, causes beg.boundary() to be true in TextMetrics::drawRowSelection(..). This is correct, but this value is true for _all_ selected lines. Now, the selection acts as if it is RTL text. Therefore, just like for end.boundary, this value needs to be reset for every line.
2. Starting your selection in an end margin often causes the selection in this end margin to be painted later. This is because when starting your selection in an end margin, you may have set a (possible empty) selection before really selecting the end margin. The problem is that the checksum (computed later) is the same for this empty selection and for the end margin selection. Therfore, we need a call to cur.setSelection() before evaluating cur.selection().
 
3. In the following two lines, it is assumed that there is only an end margin to be painted if the selection extends to the next paragraph. This is not true for the above described case of an AlignLeft Inset. Then, the margin has also be drawn within a paragraph
 
4. The end and begin margins are only painted when the selection extends into the following or previous paragraph. This difference is not resembled in the checksum if you first select a row completely and then procede to the next or previous paragraph as the selection remains at the end of a row. This also holds for the AlignLeft case. Therefore I added a term to the checksum to monitor whether the end and begin margins need to be drawn.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26399 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 14:32:40 +00:00
Pavel Sanda
ca89a2ef50 Few glitches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26398 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 13:17:43 +00:00
Pavel Sanda
f4178824f7 Add note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26397 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 13:17:00 +00:00
Pavel Sanda
3bc607987e * cs.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26396 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 13:08:11 +00:00
Edwin Leuven
3573d29271 clean up horizontal tabular line latex-output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26395 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 12:31:58 +00:00
Jürgen Spitzmüller
a2c42bc702 fix bug 5250.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26394 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 07:42:15 +00:00