Commit Graph

14383 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Pavel Sanda
1dadaa5890 When only selecting the end_margin between 'after i-1' and 'before i', the
anchor is incorrectly set to be equal to the cur. This is because comparing two
CursorSlices does not take into account the boundary property (because the
CursorSlice does not know this).

Patch by Vincent.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143572.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26393 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 23:03:33 +00:00
Pavel Sanda
9b1c5d2233 If we call cur.setSelection() in line Text3.cpp:1256 we should require some
sort of repaint, because if the selection is adjusted, we may have to draw the
selection again.

Patch by Vincent.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143572.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26392 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 22:59:09 +00:00
Abdelrazak Younes
d81071086f rev26385: don't know why but some file were not committed...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 20:19:32 +00:00
Abdelrazak Younes
d88caf97cb exit(10) was a bit extreme... replace with a Buffer exception.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 17:12:01 +00:00
Abdelrazak Younes
f83a38b3de Paragraph::inInset() shall not be used if the owner inset was not initialized. Make this rule clear and unavoidable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26385 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 17:01:54 +00:00
Abdelrazak Younes
3f55a73a05 Erase unimplemented methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 15:41:33 +00:00
Abdelrazak Younes
7d888cc5e0 Fix silly bug spotted by Vincent in r26372
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 15:32:26 +00:00
Jürgen Spitzmüller
53ff578195 * TabularUi.ui
- a hopefully somewhat clearer description of what valign is supposed to do.:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 14:10:03 +00:00
Abdelrazak Younes
c30878463c Fix silly bug spotted by Vincent in r26372
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26381 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 12:16:50 +00:00
Jürgen Spitzmüller
a942cf9e86 * Fix display of horizontal alignment in fixed width tabular cells (bug 3484)
* src/Inset.h:
	- new member content Alignment that indicates whether the content
	  of text insets should be displayed with a specific alignment
* src/TextMetrics.cpp:
	- handle inset's contentAlignment
* src/insets/InsetTabular.{cpp,h}:
	- set contentAlignment for tabular cells.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 10:10:01 +00:00
Jürgen Spitzmüller
a3392f4088 I/1H\$Hl$Ld$Ll$ Lt$(L|$0H8M
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 17:25:11 +00:00
Abdelrazak Younes
86e57cba38 breakParagraphConservative(): don't forget to set the inset owner. This is the real fix for bug http://bugzilla.lyx.org/show_bug.cgi?id=5099
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 14:49:50 +00:00
Jean-Marc Lasgouttes
3387e437a8 Length::inBP returns big postscript points, not pixel width
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 14:38:03 +00:00
Abdelrazak Younes
0b18d24e56 Get rid of Paragraph::insetAllowed()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26372 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 13:57:15 +00:00
Abdelrazak Younes
6cc68a2663 I forgot this in previous rev.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26371 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 13:43:48 +00:00
Abdelrazak Younes
227ae7c2c7 Get rid of indirections and add a check.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26370 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 13:36:40 +00:00
Abdelrazak Younes
0743708418 Test Paragraph::inInset() before using it. Fixes bug http://bugzilla.lyx.org/show_bug.cgi?id=5099
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26369 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 12:55:35 +00:00
Pavel Sanda
34530817ee Let doxygen document this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26367 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 10:42:23 +00:00
Jean-Marc Lasgouttes
a0e1e87603 document Cursor::selHandle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26363 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 10:21:00 +00:00
Pavel Sanda
1d25a38fc1 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26362 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:21:14 +00:00
Pavel Sanda
0cd57df397 Revert unwanted part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26361 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:11:07 +00:00
Pavel Sanda
9ebf6bf506 Depth slider in Outliner is not automatically set at init and after closing last file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26360 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:04:42 +00:00
Pavel Sanda
a6df920f6b Try to fix the rest of bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 .
(Initialize dialogs after lyx launch).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26359 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:02:56 +00:00
Richard Heck
bb11f79ca0 I need some sleep.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26358 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:35:26 +00:00
Richard Heck
7380e914d4 Fix bug: TOC depth slider wasn't reset when switching to empty documents.
This doubly fixes the previous bug, too.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26357 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:15:45 +00:00
Richard Heck
e2b8ea875d Fix bug reported by Helge. Vincent found the problem, really, which was a
pair of uninitialized variables. The reason the crash doesn't happen when 
you open the User Guide is that they get set in TocModel::populate() before 
the slider's maximum value is fixed. It was setting that value to some huge
number that caused the problem.

I've added an assertion to make sure we don't run into this kind of problem
again. Probably not necessary, but it can't hurt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26356 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-11 21:02:18 +00:00
Jürgen Spitzmüller
9b99e7be2c Fix rest of bug 4886, following Richard's advices.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26354 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 16:02:32 +00:00
Richard Heck
e16468d72e Revert 26348 and 26350. Wrong solution.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 14:36:38 +00:00
Jürgen Spitzmüller
623308f1e9 * src/insets/InsetTabular.cpp:
- correct LaTeX output for alignment in fixed width multicolumn cells
	  (bug 1747).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26352 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 12:49:08 +00:00
Abdelrazak Younes
c1fdb12118 n-th bug fixing patch from Vincent:
Almost all methods in the GuiPainter class have something like
 
if (!isDrawingEnabled())
  return;
 
except GuiPainter::fillRectangle(...) !!
 
Adding this will solve
 
gmane.editors.lyx.devel/109857
gmane.editors.lyx.devel/109859
http://bugzilla.lyx.org/show_bug.cgi?id=4937
http://bugzilla.lyx.org/show_bug.cgi?id=5027
http://bugzilla.lyx.org/show_bug.cgi?id=5235
 
Maybe also:
http://bugzilla.lyx.org/show_bug.cgi?id=5230


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26351 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 21:01:18 +00:00
Richard Heck
e3b15701a7 Forgot this part.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26350 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:46:38 +00:00
Richard Heck
3bb9c0d34d Fix bug 4886.
Introduce OutputParams::inTableCell, to track when we are in a table cell.
Use this information to output \newline rather than \\ when in one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:42:17 +00:00
Richard Heck
e78347a673 Restore toggling behavior to math bold.
I've left mathbf in the symbols file. We should perhaps restore it as something that can be toggled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 17:50:37 +00:00
Edwin Leuven
fab42d011c fix sideways scrolling in tabulars with nested insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 14:12:08 +00:00
Jürgen Spitzmüller
a4610848dc * GuiSearch.cpp:
- Texts that are entered in the search and replace fields of the
	   GuiSearch dialog are added to the bottom of the ComboBox. With this
	   patch they are added to the top as it probably most intuitive.
	   (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:20:44 +00:00
Jürgen Spitzmüller
8c097556d5 * GuiRef.cpp:
- The GuiRef dialog does not respond to keyboard events if the
	  reference list is empty. This is because the reference list has the
	  focus proxy and is disabled when the list is empty. Therefore I removed
	  the focus proxy from the list if it is disabled.
	  (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26345 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:18:36 +00:00
Uwe Stöhr
eb963540d4 various listings fixes by Vincent, see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143302.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 21:51:38 +00:00
Uwe Stöhr
19c8baa1e1 specify a background color for listings and allow the user to change it, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26340 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 21:38:01 +00:00
Pavel Sanda
e6a27a4724 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5234 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 15:46:23 +00:00
Pavel Sanda
c1173eb11c Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:18:33 +00:00
Pavel Sanda
4649511c2c Fix for accepting Tab key in shortcut dialog.
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:00:58 +00:00
Pavel Sanda
5aa4c26c22 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26333 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:28:32 +00:00
Pavel Sanda
cc5d0478c6 Move code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:27:07 +00:00
Pavel Sanda
375a2e6e1c Add completion-accept lfun.
Fixes first part of http://bugzilla.lyx.org/show_bug.cgi?id=5062 .

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143281.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26331 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:24:47 +00:00
Stefan Schimanski
f6084eaaa9 * LFUNs complete and complete-cancel. No key interception anymore. For now you have to bind the two LFUNs yourself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:13:55 +00:00
Jürgen Spitzmüller
6875fa60be cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 16:13:24 +00:00
Pavel Sanda
809ed31d54 Fixing inline completion, Vincent strikes back :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 15:54:06 +00:00
Uwe Stöhr
9a57449f40 GuiWorkArea.cpp: allow to navigate in tables with the Tab key, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 21:10:59 +00:00
Stefan Schimanski
8314b93c04 * enter new macro template and select the name. This save a lot of keystrokes to remoe the long default name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26315 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:23 +00:00
Stefan Schimanski
849b405c73 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26314 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:10 +00:00
Abdelrazak Younes
d577bf8c4a Simplify InsetQuotes ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:12:38 +00:00
Abdelrazak Younes
a5d7f0504d Pass Buffer in InsetQuote ctor. Patch fro Richard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:04:01 +00:00
Abdelrazak Younes
2bd480132a fix crash: Copying the paragraphs invalidate the referenced Buffer so a new setBuffer() would be necessary, in it preferable and faster to just use a const ref.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 13:49:10 +00:00
Abdelrazak Younes
009bd5b8ff GuiApplication::resetGui(): clear out Mac nenubar before deletion, just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26307 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:42:47 +00:00
Abdelrazak Younes
0595b725f7 GuiApplication::resetGui(): Recreate Mac nenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:39:43 +00:00
Enrico Forestieri
8fde2a6fa7 Implement the EnsureMath inset in mathed for nesting math mode in text mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 22:24:07 +00:00
Richard Heck
2807761e65 Fix a bug that allowed setting of layouts inside optional arguments.
There is more that could be done here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 21:50:14 +00:00
Pavel Sanda
827f28a1b1 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26300 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 19:54:32 +00:00
Jürgen Spitzmüller
808dfb6c1f * src/LaTeXFeatures.cpp:
- handle case where natbib is loaded internally by a class, but still plain cite commands
	  have to be output (bug 5182)
* lib/revtex4.layout:
	- this is such a case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26298 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 14:39:08 +00:00
Jürgen Spitzmüller
7950986c87 Some GuiSendto polishing by Vincent and me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 09:36:44 +00:00
Enrico Forestieri
105e0dfe29 Add FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 19:07:54 +00:00
Edwin Leuven
ca2bf82ca9 correct size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:47:12 +00:00
André Pönitz
78767f76fe cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:30:05 +00:00
Abdelrazak Younes
37e389baf7 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191
Patch from Vincent van Ravesteijn

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 12:59:36 +00:00
Enrico Forestieri
8d6b5113ec We may have buffers with different encodings, that, in turn, may also
be different from the language default ones.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26290 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 08:17:00 +00:00
Enrico Forestieri
1c362c80b2 Specify that we are in math mode. This avoids unnecessary \ensuremath
commands when using math in text mode (such as in $\text{$\phi$}$, where
\phi would be enclosed in \ensuremath{} as it is inside \text{}).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:04:05 +00:00
Enrico Forestieri
ad91dd139c Take into account the latex encoding when generating math preview snippets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:02:08 +00:00
Jürgen Spitzmüller
2179c671cf better naming for encoding default, as discussed in bug 4971.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-01 08:39:19 +00:00
Uwe Stöhr
ed5fcd95ac InsetHyperlink.cpp: coding style change according to André's advice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 14:52:56 +00:00
Abdelrazak Younes
cc8653b95e potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5168
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 09:25:55 +00:00
Uwe Stöhr
ac3f391b46 InsetHyperlink.cpp: fix a bug I introduced in r26218
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 22:44:48 +00:00
Pavel Sanda
2d811e48e2 Get rid of annoying tooltips. ERT tooltip survived for the time being.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142984.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:38:51 +00:00