Pavel Sanda
9a7c6db6cc
/usr/bin/uic -tr lyx::qt_ ui/DelimiterUi.ui -o ui_DelimiterUi.h
...
'layoutWidget' isn't a valid widget
reported in both 4.5 and 4.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30787 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 10:43:50 +00:00
Pavel Sanda
c155dcbfe9
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30780 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 16:43:28 +00:00
Pavel Sanda
42dcca6b00
Fix bug #6106 . This can go to branch Juergen.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 14:34:00 +00:00
Vincent van Ravesteijn
504bc83a64
Fix bug #4473 : Incorrect LaTeX output for inter-word spaces.
...
This is a hack necessary because \\textcolor is a bit buggy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30773 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 10:44:36 +00:00
Jürgen Spitzmüller
35db143564
* Text.cpp (dissolveInset):
...
- perform updateLabels also after dissolving an empty inset (bug 6003).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30771 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 08:22:37 +00:00
Jürgen Spitzmüller
a84aa658f6
* 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/trunk@30769 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 06:16:46 +00:00
Enrico Forestieri
63f72c39be
This should have gone in r30766.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30768 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 01:09:31 +00:00
Enrico Forestieri
1344b11e45
Move bracket to the right place, as also suggested by the indentation...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30767 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 00:45:52 +00:00
Enrico Forestieri
49d4119736
Smash another case of missing language switch and also avoid redundant switches.
...
Essentially, non-default aligned paragraphs should be treated as nested ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30766 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 22:50:32 +00:00
Vincent van Ravesteijn
68ae319d7c
Fix bug #5061 . Patches from Dov (a long time ago).
...
see:
http://permalink.gmane.org/gmane.editors.lyx.devel/113506
http://permalink.gmane.org/gmane.editors.lyx.devel/113507
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30765 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 21:33:50 +00:00
Jürgen Spitzmüller
3ec9ac5ff5
* TocWidget.cpp: disable sort option for TOC (bug 5983).
...
* TocModel.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30760 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 13:58:02 +00:00
Jürgen Spitzmüller
a18d18fecb
* paragraph_funcs.cpp: sanitize setLabelWidthStringToSequence. Patch by rgheck.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30759 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 07:43:04 +00:00
Vincent van Ravesteijn
94959709b9
Fix another gcc error for r30756.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30758 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 20:38:24 +00:00
Vincent van Ravesteijn
cbb0829728
Fix a gcc error and warning for r30756.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30757 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 20:34:16 +00:00
Vincent van Ravesteijn
966687d98b
Fix bug #6058 : Change tracking not usable in version control.
...
This patch makes sure that there are minimal changes when loading and saving a file with change tracking.
- the authors are assigned a buffer_id, such that when the file is saved, they get the same id,
- the authorlist is sorted according to the buffer_id,
- the buffer_id is written to the file in the author list (file format change)
- the ids start with 1, because 0 is internally reserved for the current Author,
- when writing the file, the current author is assigned an id if he didn't already have it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 20:08:05 +00:00
Richard Heck
e5dfb57a9f
Improve debugging info slightly.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30755 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 15:33:54 +00:00
Jürgen Spitzmüller
df0801cf65
* Text2.cpp (setParagraphs):
...
- issue setLabelWidthStringToSequence only once for a selected range of paragraphs
of the same layout and depth. This fixes an assertion reported here:
http://marc.info/?l=lyx-devel&m=124774758211589
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30752 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 06:14:11 +00:00
Vincent van Ravesteijn
da2c479003
* Text.cpp: simplification of code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30749 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-22 20:36:40 +00:00
Vincent van Ravesteijn
690878bd4a
Fix #6045 : Possible to insert table floats to 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/trunk@30740 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 20:04:52 +00:00
Uwe Stöhr
0b33b9d090
allow to use glue lengths in the HSpace dialog; file format change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 11:51:43 +00:00
Jürgen Spitzmüller
64c067f2d1
add tooltip.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30723 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 09:38:25 +00:00
Jürgen Spitzmüller
9c33080428
move explanatory text to where it belongs (the tooltip).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30722 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 09:29:19 +00:00
Jürgen Spitzmüller
d794aaf776
* Menus.cpp: casing fixes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30719 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 08:43:16 +00:00
Richard Heck
35b4e73a11
Disable this assertion for now, and replace it with
...
some messages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30715 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 18:21:26 +00:00
Uwe Stöhr
efd4f71fbd
allow the usage of relative lengths in the HSpace and the VSpace dialog; file format change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30710 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 11:22:51 +00:00
Jürgen Spitzmüller
c1595f6dd5
* GuiDocument.cpp: "Length" -> "Custom" (the other choices are also lengths).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30707 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 08:14:21 +00:00
Jürgen Spitzmüller
fcc8201d2c
Document Dialog: move the listings settings to its own pane.
...
This shrinks the dialog to a somewhat reasonable size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30706 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 08:09:32 +00:00
Jürgen Spitzmüller
d3870c25bc
* TextLayoutUi.ui:
...
- fix widget heights (right version this time).
(maybe it's time to move the listings widget on its own pane?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30705 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 07:20:29 +00:00
Jürgen Spitzmüller
a4b3e6dc60
* TextLayoutUi.ui:
...
- fix widget heights.
(maybe it's time to move the listings widget on its own pane?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30704 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 07:17:49 +00:00
Jürgen Spitzmüller
91c0f22e20
* GuiDocument: allow insertion of glue length in parskip widget.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30702 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 05:05:48 +00:00
Uwe Stöhr
31f824e447
GuiDocument.cpp: code simplification spotted by Jürgen
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30701 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 01:34:09 +00:00
Uwe Stöhr
f981863cde
TextLayoutUi.ui: fix things spotted by Vincent
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 01:26:14 +00:00
Uwe Stöhr
6b970c0339
GuiDocument.cpp: allow to use percent lengths for the paragraph skip separation; file format change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 22:08:58 +00:00
Uwe Stöhr
53e7a92494
support to specify the paragraph indentation in the document settings dialog; introduces the new class HSpace; - file format change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30694 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 21:13:27 +00:00
Uwe Stöhr
969a8356b8
Length.cpp: take care of percent units also for glue lengths, with this change, #6091 and #6098 can be fixed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30693 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 20:01:39 +00:00
Jürgen Spitzmüller
3020ec058f
* Validator.{cpp, h}:
...
- add usignedGlueLengthValidator
* GuiVSpace.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/trunk@30692 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 16:53:50 +00:00
Vincent van Ravesteijn
768b216c83
Fix bug #4906 : Files always reopened in tabbed window on launch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30690 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 14:34:14 +00:00
Uwe Stöhr
c8be4510d7
rowpainter.cpp: sort
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30682 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 01:41:47 +00:00
Vincent van Ravesteijn
77d67595fd
In r30560, the setLayout function was removed from InsetCollapsable. This function also set the buttonLabel for the inset. After removing the setLayout calls in this place, the button label is not initialized for Notes, Boxes and Phantoms.
...
This commit restores the behaviour as it was, such that the labels are initialized again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30677 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 19:35:27 +00:00
Jürgen Spitzmüller
11d3a3b7bc
* fix bug 6089.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30667 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 13:46:05 +00:00
Jürgen Spitzmüller
03270dd2a6
* InsetSpace.cpp: prevent another (potential) null pointer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30666 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 12:19:31 +00:00
Jürgen Spitzmüller
a7721a236e
* Paragraph.cpp: prevent null pointer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30658 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 07:19:38 +00:00
Richard Heck
91f6855ca2
Make sure we don't get into an infinite loop here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30656 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:51:53 +00:00
Richard Heck
277e74ff9c
Move these declarations closer to where they are used.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30654 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:44:19 +00:00
Richard Heck
660b950aa7
Make sure these are the same....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30653 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:41:04 +00:00
Richard Heck
4f6f4cf7ab
Fix problem noted by Vincent.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:36:34 +00:00
Pavel Sanda
f2fd22f132
Close bug #934 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30649 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 17:10:10 +00:00
Richard Heck
2d632d0c65
Forgot this.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30642 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 13:56:19 +00:00
Uwe Stöhr
b1a1b4c92f
Length.h: revert unintended change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30641 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 01:01:37 +00:00
Uwe Stöhr
357af8a211
Length.h: partly revert r30595 , for an unknown reason the percent lengths are hardcoded
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30640 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 00:59:41 +00:00
Richard Heck
375d1526bb
React better if we can't find bind files. Related to bug 6076.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30639 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 23:12:45 +00:00
Pavel Sanda
091e3908b0
Kill LFUN_PARAGRAPH_SPACING in favour of LFUN_PARAGRAPH_PARAMS.
...
We don't want duplicit code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:55:23 +00:00
Jean-Marc Lasgouttes
70e6cac727
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:29:05 +00:00
Richard Heck
fd8c379545
Fix bug #6076 . As said there, other configuration files probably need to be checked.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30636 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:24:39 +00:00
Pavel Sanda
c99d41c001
* doxy
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30635 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:17:49 +00:00
Richard Heck
0facb603fe
Give inset codes to all the math insets, so we get more information when
...
we run into assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30634 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 19:00:24 +00:00
Vincent van Ravesteijn
466b09b006
* LyXAction.cpp: doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30633 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 18:58:47 +00:00
Vincent van Ravesteijn
fc5e189c52
* Buffer.cpp: whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30632 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 18:29:16 +00:00
Richard Heck
6de1a1a2da
Fix another assertion.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30629 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 13:34:33 +00:00
Enrico Forestieri
e10dc486b1
Fix bug #5096 : Language switch fails in environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30627 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 12:50:44 +00:00
Jean-Marc Lasgouttes
41003ea0eb
remove some explicit tests against ERT_CODE; more to come
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 10:08:13 +00:00
Vincent van Ravesteijn
5862b252db
Fix the enabling of the custom page size field in GuiDocument.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30624 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 08:39:22 +00:00
Jean-Marc Lasgouttes
408b96bb92
un-revert r30531, after Richard told me how to avoid the crash. Now, before
...
accepting changes in a clipboard copy (CutAndPaste.cpp), we set the buffer
of insets (and we reset them later).
Doing this makes sense because we know this is the only operation on these
out-of-document paragraphs that will require access to a buffer.
Also, this commit gets rid of one explicit test against ERT_CODE and
LISTING_CODE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30623 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 08:37:32 +00:00
Vincent van Ravesteijn
0dd2067a8f
Fix bug #6070 : Width unit cannot be set in tabular dialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30622 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 07:47:02 +00:00
Vincent van Ravesteijn
a333697538
* InsetCollapsable: simplification.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30621 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 07:44:35 +00:00
Jean-Marc Lasgouttes
8b1ce114e5
remove unused headers
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30620 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 07:26:52 +00:00
Jürgen Spitzmüller
87b701a06b
* 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/trunk@30619 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 06:19:25 +00:00
Vincent van Ravesteijn
52b1bd4c09
Revert r30390 and r30391. This seemed not to be necessary (bug #4509 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30616 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 01:47:30 +00:00
Vincent van Ravesteijn
2e715112b9
Oops..
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30612 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 20:40:03 +00:00
Vincent van Ravesteijn
243da49ee9
Remove nonsense comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30611 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 20:32:16 +00:00
Vincent van Ravesteijn
371eb63816
Remove nonsense assert.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 20:01:06 +00:00
Richard Heck
93593f8c15
Fix crash related to empty buffer_ argument.
...
Restore assertion removed at r30602.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30609 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 19:20:53 +00:00
Richard Heck
19efc7df45
Update doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30607 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 16:27:22 +00:00
Jean-Marc Lasgouttes
c3be74085f
revert r30531, which causes a crash when copying an inset.
...
Basically, insets in cut stack do not have a buffer, and therefore cannot
acess to buffer parameters. What is annoying here is that acceptChanges
requires this buffer params only to be able to read a font in moveItem,
in order to read the buffer language, and I doubt this is really needed...
Another change in this patch is that Inset::getLayout now returns a
plainLayout when the inset does not have a buffer_. This fixes a remaining
crash where dEPM reads isFreeSpacing() for an inset in the clipboard, but
this looks like a fragile situation. And it will not do the right thing when
doing depm in a freespacing inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30605 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 14:19:10 +00:00
Jean-Marc Lasgouttes
5d904d95e7
comment out assertion enabled in r30540. It triggered when entering a math inset with the mouse. I have not been able to understand why exactly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30602 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 13:53:26 +00:00
Uwe Stöhr
a00c355fb1
Length.h, lengthcommon.cpp: sort the units, the current sorting had no rule and therefore consumed a lot time until one found the desired unit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30595 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 22:38:47 +00:00
Jean-Marc Lasgouttes
0e8b1dc29a
define InsetText::insetAllowed properly and rely on it for inset insertion in Text::dispatchsvndiff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 21:56:22 +00:00
Jean-Marc Lasgouttes
0585f2b2b4
This commit terminates the great InsetCollapsable shrink party
...
* rename InsetLayout::isForceLtr to forceLTR
* move InsetCollapsable::xhtml to InsetText
* move InsetCollapsable::tocString to InsetText.
* move forcePlainLayout and allowParagraphCustomization from IC to IT
* use isPassThru instead of forceLTR in places where it seems to make
sense (was introduced in r21285)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 21:14:39 +00:00
Jean-Marc Lasgouttes
3dad722072
set better defaults for inset layouts: allow paragraph customization and do not force plain layout
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30590 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 21:08:48 +00:00
Jean-Marc Lasgouttes
435a1f67b4
move InsetCollapsable::docbook to InsetText; move InsetCollapsable::undefined to Inset
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30589 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 20:25:25 +00:00
Pavel Sanda
56aca11ce9
Andre's remark
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30587 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 19:46:17 +00:00
Jean-Marc Lasgouttes
78c45693ef
remove all trace of editMessage
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30585 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 18:56:13 +00:00
Jean-Marc Lasgouttes
5077b1ff11
streamline InsetERT
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 18:30:13 +00:00
Jean-Marc Lasgouttes
7345921eb2
this is helpful together with r30582
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30583 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 18:29:39 +00:00
Jean-Marc Lasgouttes
ace4f7d3b8
move the the latex and validate methods from InsetCollapsable to InsetText; small cleanups
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30582 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 18:27:54 +00:00
Pavel Sanda
34fc56c9bc
Hopefully fixes #6082
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg153098.html
Juergen?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30581 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 18:06:19 +00:00
Jean-Marc Lasgouttes
c4fafe11c9
fix ticket #6081
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30572 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:01:55 +00:00
Jean-Marc Lasgouttes
c1b89e4d68
fix button label of insets like InsetMarginal
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:01:07 +00:00
Jean-Marc Lasgouttes
bec171ed32
logic was reversed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30569 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:00:22 +00:00
Pavel Sanda
1b22f12b14
Hopefully fix bug #6077
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30567 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 15:51:21 +00:00
Jean-Marc Lasgouttes
30360e1b19
move more functions from InsetCollapsable::getStatus to Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30566 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 15:27:48 +00:00
Jean-Marc Lasgouttes
7a0107f4df
move tab-insert/delete from InsetCollapsable to Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 14:52:11 +00:00
Jean-Marc Lasgouttes
f8f814c3c4
move some code from InsetCollapsable::doDispatch to InsetText
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 13:32:36 +00:00
Jean-Marc Lasgouttes
e84d752414
move some code fro, InsetCollapsable::read to InsetText
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 13:05:13 +00:00
Jean-Marc Lasgouttes
e33095f10d
Move special handling of paste function from InsetCollapsable to InsetText
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 13:00:42 +00:00
Jean-Marc Lasgouttes
95bd716cdf
replace gratuitously complicated code by sane one, and make cursor leave inset after inserting an index
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 12:21:35 +00:00
Jean-Marc Lasgouttes
5bf8df4fbc
Remove the layout_ cache in InsetCollapsable.
...
Remove setLayout methods and all the calls to it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 12:07:51 +00:00
Jean-Marc Lasgouttes
b05a94c3dd
Fix again ticket #1720 . This got broken during frontend reorganization.
...
The situation now is almost good, although preference and about LyX are now disabled.
I moved the code that sets buffer to 0 to LyXFunc::getStatus, where it belongs.
I also set lyx_view_ to 0 when the window does not have focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30557 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 11:36:08 +00:00
Jean-Marc Lasgouttes
4dde959e6c
fix tests
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30556 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 10:37:17 +00:00
Uwe Stöhr
86fab2cefa
TextLayoutUi.ui: group everything into boxes for a consistent layout with the other document settings UI
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30555 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 01:40:51 +00:00
Uwe Stöhr
14efd07a82
PageLayoutUi.ui: group everything into boxes for a consistent layout with the other document settings UI
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30554 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 01:38:15 +00:00
Uwe Stöhr
b015528fca
update author settings for the files I recently notably modified
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30553 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 23:25:47 +00:00
Jean-Marc Lasgouttes
defe820a8a
note to self: always compile before committing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30550 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 15:57:08 +00:00
Jean-Marc Lasgouttes
d0cb2cc0b7
The most important change in this changeset is that InsetCollapsable::getLayout
...
is commented out, so that the documentclass is queried every time instead of
using the layout_ cache. For now I have kept the setLayout calls, but they are
inoperant.
Other changes:
* remove non-const usePlainLayout methods
* move InsetCollapsable::allowSpellCheck and allowMultiPar to InsetText
* move InsetCollapsable::isFreespacing and forceLTR to Inset
Freespacing support could be moved to insettext, but I have to check who
uses it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30549 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 15:47:40 +00:00
Jürgen Spitzmüller
e6f922009f
* Add possibility to append active branch names to the output file name ( #3105 ).
...
File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30546 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 14:30:08 +00:00
Jean-Marc Lasgouttes
9d857249b0
one less explicit test against FLEX_CODE
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30543 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 14:06:05 +00:00
Jean-Marc Lasgouttes
58182c5860
Small cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 13:53:58 +00:00
Jean-Marc Lasgouttes
4dbe411ba9
Remove all BufferParam arguments in InsetXXX methods (since insets know about their Buffer)
...
Add an assertion in Inset::dispatch that checks that buffer() == *cur.buffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30540 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 12:56:20 +00:00
Jean-Marc Lasgouttes
af905aaff6
small optimization and cleanup of Counters::counterLabel
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30539 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 11:05:31 +00:00
Pavel Sanda
49ea9227cd
Fix leftover from r27378. Patch and report from John McCabe-Dansted.
...
Presumably it fixes
"r30414 unselects insets after a fraction of a second. 1.5.7 doesn't exhibit this bug"
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg152960.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30536 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 09:50:46 +00:00
Jürgen Spitzmüller
bbfc419c10
Finally make the label color of multiple index entries work.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30533 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 06:46:52 +00:00
Jürgen Spitzmüller
c878519ca9
* InsetExternal.cpp (xhtml): fix compiler warning and formatting.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30532 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 06:34:05 +00:00
Jean-Marc Lasgouttes
067a685263
remove BufferParams parameter from Inset::accept/rejectChanges; adapt rest of code accordingly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30531 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 00:57:51 +00:00
Jean-Marc Lasgouttes
081fad9557
First step of InsetLayout cleanup.
...
Get rid of Inset::getLayout(BufferParams), since all insets have access to
their own buffer. Inset::getLayout() does the same now.
Get rid of InsetCollapsable::getLayout(BufferParams) too, and remove most references to InsetCollapsable::layout_. For now IC::getLayout() still returns layout_, but the idea is to change this (provided there is no performance problem).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30530 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 00:28:22 +00:00
Abdelrazak Younes
97a33c4f51
New support files for Hunspell support. Only autotools for now.
...
Hunspell is not used yet, don't try it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30527 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 22:46:01 +00:00
Uwe Stöhr
8c2d81bc34
MathMatrixUi.ui: proper naming
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30526 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 22:15:46 +00:00
Jean-Marc Lasgouttes
680590dfa8
remove the now unused Paragraph::translateIfPossible
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30525 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 22:14:49 +00:00
Jean-Marc Lasgouttes
95e983c382
Remove Layout::labelstring_appendix method; add a bool parameter to Layout::labelstring instead.
...
Fix the rest of the code, whih implies fixing a few potential bugs where the appendix status was not taken in account.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30524 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 21:48:50 +00:00
Uwe Stöhr
802067ecdc
support for matrix decoration in the MathMatrix dialog;
...
introduces a new LFUN and fixes #4620
This can in principle also go to branch when new LFUNs are there allowed, Jürgen?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 21:39:21 +00:00
Uwe Stöhr
1da9addbed
TabularUi.ui: add and correct a tooltip
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30522 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 21:36:02 +00:00
Vincent van Ravesteijn
1bce8f15af
Fix the infinite loop when automatically closing the view after a on_lastWorkAreaRemoved() signal was received.
...
In this case, all workareas are closed, but the tabworkarea still exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30521 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 20:42:14 +00:00
Jean-Marc Lasgouttes
e9d19b82d4
Make sure that the new caching mechanism for flattened labels respects languages.
...
* Counters.cpp (flatLabelString): return a cache of the flattened strings for each used language
* Counters.cpp (theCounter, counterLabel, flattenLabelString): add a lang parameter; in theCounter, populate the cache as needed.
* insets/InsetCaption.cpp:
* insets/InsetFoot.cpp:
* insets/InsetBibitem.cpp:
* insets/InsetCollapsable.cpp:
* Paragraph.cpp:
* Buffer.cpp: pass a language argument to counter methods.
* Paragraph.cpp (translateIfPossible): use the function with same name in gettext.cpp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30520 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 20:09:53 +00:00
Jean-Marc Lasgouttes
0e5695f933
fix another warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30518 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 17:54:35 +00:00
Jean-Marc Lasgouttes
91d7e3b191
(try 2) fix a couple warnings after the number localization patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30517 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 17:32:23 +00:00
Jean-Marc Lasgouttes
c355edfb6d
revert r30515: too many files there
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30516 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 17:30:56 +00:00
Jean-Marc Lasgouttes
834bfe5e21
fix a couple warnings after the number localization patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30515 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 17:28:46 +00:00
Jürgen Spitzmüller
52d9b45b0c
Add support for number localization in the GUI (using Qt's locale facilities).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:44:26 +00:00
Enrico Forestieri
14be173d42
Honour preferences by allowing inline completion in mathed on "Ctrl-L".
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30507 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 14:56:38 +00:00
Jean-Marc Lasgouttes
fa1ee437e5
* gettext.cpp (translateIfPossible): @Use the same tests as i
...
Paragraph::translateIfPossible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30506 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 14:50:51 +00:00
Jean-Marc Lasgouttes
d9e4ced1d4
Remove dummy gettext.cpp from tex2lyx source and use a dummy message
...
object instead.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30505 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 14:49:30 +00:00
Uwe Stöhr
dbf1f87bd7
InsetTabular.cpp: coding style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30504 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 14:36:42 +00:00
Jürgen Spitzmüller
d3a17d2d5e
* correct bug reference.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30503 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:47:06 +00:00
Jürgen Spitzmüller
4dfca52307
* InsetTabular.cpp: fix bug 6057: longtable captions must always be in a first header.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30500 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:43:05 +00:00
Enrico Forestieri
d2e8e53bb1
Fix bug #6063 : Keylogger lyx::lyxbreaker: Crash in Math.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 10:52:28 +00:00
Jürgen Spitzmüller
1704c727de
* GuiBranches.cpp: avoid message after cancel.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30487 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 17:29:52 +00:00
Uwe Stöhr
c5f225ce63
TabularUi: follow our naming convention
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30483 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 14:43:30 +00:00
Uwe Stöhr
8a3a2baf6d
- GuiTabular.cpp: longtables cannot have a vertical alignment
...
- InsetTabular.cpp: write the alignment as last features (to match the existing tex2lyx routines)
- InsetTabular.h: fix indexes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30482 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 14:33:05 +00:00
Uwe Stöhr
f90d0ca093
TabularUi.ui:
...
- correct spacing for the border tab
- move break line to group box in longtable tab
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30481 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 14:00:29 +00:00
Uwe Stöhr
ce143b21e6
InsetTabular.cpp: whitespace again, sorry
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30480 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 13:47:19 +00:00
Uwe Stöhr
0d75c1117f
InsetTabular.cpp: whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30479 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 13:44:13 +00:00
Uwe Stöhr
6776598761
InsetTabular.cpp:
...
- longtables cannot have a valignment, tables not a longtablealignment
- squash a compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30478 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 13:41:34 +00:00
Uwe Stöhr
424943af89
- support for longtable alignment, fileformat change
...
- GUI support for table alignment
(all comments to the polished layout of the table dialog welcome)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30477 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 13:09:45 +00:00
Uwe Stöhr
48dd95812d
TextMetrics.cpp: fix bug that AlignRight were aligned like Inline
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30474 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 11:30:41 +00:00
Uwe Stöhr
97e857b166
TextMetrics.cpp: typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30473 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 11:16:34 +00:00
Uwe Stöhr
e48e791465
GuiTabular.cpp: revert r30422 as discussed o the list
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30472 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 11:10:38 +00:00
Jürgen Spitzmüller
cbce556e0b
* GuiDocument.cpp:
...
- update colors before changing branches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30471 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 10:53:29 +00:00
Jürgen Spitzmüller
201a22b96f
* GuiDocument.cpp:
...
- clear changedBranches_ cache after branches were changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30470 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 10:31:32 +00:00
Pavel Sanda
edb52c37d2
Add LFUN_BRANCH_ADD_INSERT.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg152890.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30467 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 09:38:31 +00:00
Jürgen Spitzmüller
5c4758357f
* GuiDocument.{cpp,h}:
...
- do not rename branches in the document unless the dialog was applied.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 09:37:28 +00:00
Jürgen Spitzmüller
c650dcd540
* Buffer.cpp:
...
- rewrite getUsedBranches() with an InsetIterator approach.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30465 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 08:29:30 +00:00
Jürgen Spitzmüller
808dfaabea
* Buffer.{cpp,h}:
...
- rewrite LFUN_BRANCHES_RENAME with an InsetIterator approach.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 08:18:26 +00:00
Jürgen Spitzmüller
ca070ea260
* Buffer.cpp: squash compiler warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30463 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 06:50:18 +00:00
Jürgen Spitzmüller
eab8801afe
* GuiBranches.cpp:
...
* GuiIndices.{cpp,h}: more UI polishment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30462 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 06:29:57 +00:00
Jürgen Spitzmüller
5166030174
* GuiBranches.{cpp,h}: UI polishment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30461 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 06:12:27 +00:00
Jürgen Spitzmüller
4762b2168f
revert unintended commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30460 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 05:38:27 +00:00
Jürgen Spitzmüller
cfdda3ad08
* Buffer.cpp (renameBranches): record undo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 05:08:44 +00:00
Pavel Sanda
4a7bb9541f
Fix setting via context menu.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30458 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 00:11:59 +00:00
Pavel Sanda
29ff62face
Fix status check of branch (de)activation from the child, when master
...
has no info about that branch.
Context menu still does not work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30457 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 00:10:18 +00:00
Pavel Sanda
75659b3db4
Cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30456 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 19:06:10 +00:00
Richard Heck
43945090c1
Fix for bug 5522, by Sergiu Carpov.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30453 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 16:21:47 +00:00
Uwe Stöhr
20f8c82aa8
tex2lyx/preamble.cpp: take also care of lyxlist, lyxcode, and lyxaddress
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30448 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 12:38:22 +00:00
Jürgen Spitzmüller
9d35e6690c
revert unintended commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30443 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 06:58:54 +00:00
Jürgen Spitzmüller
5fdd2daa9c
* Add ability to rename branches (bug 4128).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30442 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 06:49:51 +00:00
Edwin Leuven
70a24259f8
continue spellchecking after "replace all"
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30438 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 20:03:00 +00:00
Enrico Forestieri
ce7302098c
Allow undoing changes to the name of macros that are already finalized.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30434 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 18:00:27 +00:00
Jürgen Spitzmüller
0e6724622f
* GuiLog.cpp: don't forget Package warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30432 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:17:40 +00:00
Jürgen Spitzmüller
34c4325570
LogUi.ui: string redundancy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30430 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:06:47 +00:00
Jürgen Spitzmüller
9172018008
LogUi.ui: typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30428 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:01:23 +00:00
Enrico Forestieri
0c2902d0c0
Better fix for bug #5923 . Now the macro name can be freely edited.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 15:21:21 +00:00
Jürgen Spitzmüller
7d1b297e7e
* InsetBranch.cpp:
...
- fix display of "child only" suffix, and "undefined" suffix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30423 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 11:45:19 +00:00
Uwe Stöhr
4b55ed8202
GuiTabular.cpp: fix #6057
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30422 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 11:17:14 +00:00
Jürgen Spitzmüller
341ac91738
*sigh*
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 11:16:27 +00:00
Jürgen Spitzmüller
17986e7509
Ease the pain with unknown branches:
...
* on paste, ask if unknown branches shall be added to the branch list
(entails new LFUN_BRANCH_ADD)
* add a list of undefined branches to the buffer and the GUI
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 09:48:34 +00:00
Vincent van Ravesteijn
93feef62b8
Fix bug #5998 .
...
When one document has a split view, closing this document will close two splitters at a time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30416 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 21:37:37 +00:00
Richard Heck
969a919a0d
More comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30415 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 19:55:03 +00:00
Pavel Sanda
78bea31ea8
* doxy
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30414 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 15:59:48 +00:00
Enrico Forestieri
6852e976b0
Proper fix for bug #5923 that doesn't introduce bug #6015 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 01:48:19 +00:00
Enrico Forestieri
98fb455d3f
Revert r30398, r30396, r30395, r30393, r30392, and r29387.
...
Soon to be replaced with a proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 01:41:06 +00:00
Uwe Stöhr
a165cec754
GuiTabular.cpp: correct a comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30407 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 19:24:07 +00:00
Richard Heck
3a41879cb4
Add and update some comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 15:29:33 +00:00
Richard Heck
44763a6f0f
Move LFUN_TAB* handling from InsetListings to InsetCollapsable, so that
...
the tabkeys works as such whenever PassThru is true.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30404 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 13:25:43 +00:00
Jürgen Spitzmüller
cf7a54d6ea
* NomenclUi.ui: fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30402 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 12:24:23 +00:00
Uwe Stöhr
c5208a21ec
NomenclUi.ui: fix #3936 also for the description field of the nomenclature dialog as reported in #6054
...
OK for branch too?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30401 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 12:06:15 +00:00
Jean-Marc Lasgouttes
73f9991eec
Fix #6013 : SIGABRT if we spell check inside a math macro, and then hit replace
...
This is just a matter of checking that we are in an insettext before calling
replaceSelectionWithString. I guess there are other good ways to fix the crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30399 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 10:50:27 +00:00
Vincent van Ravesteijn
1c6eea89b4
Fix previous commit for macros with arguments, again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30398 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:23:31 +00:00
Vincent van Ravesteijn
ebe7913a47
Only allow the cursor to be in lastpos for macros as editing in macro-mode is only possible at lastpos.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30396 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:16:21 +00:00
Vincent van Ravesteijn
ebe9b42279
Fix crash when selecting part of a macro and trying to resume macro-mode editing.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30395 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:13:07 +00:00
Jürgen Spitzmüller
bca1c1b92b
* PreambleUi.ui:
...
- fix bug #3936 : Paste into preamble gives wrong font size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30394 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:12:28 +00:00
Vincent van Ravesteijn
abdb069f9e
Remove unneeded check for cur.pos() > 0.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30393 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:12:08 +00:00
Vincent van Ravesteijn
fb57c00c0d
Fix bug #6015 : Macro with arguments is not finished when pressing space
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:08:14 +00:00
Vincent van Ravesteijn
5b888f0bc9
Wrong casing...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30391 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-06 22:14:47 +00:00
Vincent van Ravesteijn
e02afb345a
Fix bug #4509 : Default focus of SearchUi should be "Find Next".
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30390 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-06 22:11:05 +00:00
Jean-Marc Lasgouttes
5784b88f65
Patch from Ben M.: do not accept key events if we do not know what these keys
...
stand for.
This fixes bug #6043 : Windows multimedia keys intercepted
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30389 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-06 16:14:20 +00:00
Enrico Forestieri
14c5adf034
Better fix for #6049 and similar cases with other math insets.
...
In order to fix #6047 , I needed a further mode other than MATH_MODE
and TEXT_MODE. In this mode, LyX should have behaved as in TEXT_MODE
but should also have allowed math mode commands. Well, this mode was
already implemented in LyX as UNDECIDED_MODE. Currently, this mode is
used nowhere except in the strange case where a math hull is not
present. It cannot be created by any other mean than editing a .lyx
file and getting rid of the $...$ math delimiters. This kind of
file can be reloaded in LyX and you would see a strange math formula
in text mode outside of mathed. Of course, trying to latex this file
would cause errors. After this commit, this strange mode is still
possible, but now all math insets correctly declare that their mode
is math mode (instead of undecided, and unless they state otherwise)
and bugs such as #6049 are fixed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30385 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-06 00:48:07 +00:00
Enrico Forestieri
e8ecb8b483
Fix bug #6049 : Mathed: spacebar misbehavior while typing fractions
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30384 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 23:50:16 +00:00
Jean-Marc Lasgouttes
5ba54be043
unused #includes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30373 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 13:58:25 +00:00
Enrico Forestieri
d178fabe24
Refinements to fix for bug #6041 .
...
- Fix display of centered vertical alignment status.
- Avid else branch and simply return early (conforms to the used style).
- Smash unnecessary debug output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30372 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 13:36:34 +00:00
Jürgen Spitzmüller
668b4d8fc1
* LyX.cpp: add missing line break; spotted by Jean-Pierre Chrétien.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30367 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 08:37:44 +00:00
Jürgen Spitzmüller
56a7e127ad
* InsetInclude.cpp: typo spotted by Jean-Pierre Chrétien.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30366 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 08:34:55 +00:00
Enrico Forestieri
0b219d2541
Fix bug #6041 : "tabular-feature align-" in a math-matrix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30363 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 00:24:17 +00:00
Abdelrazak Younes
b8e5440bef
LFUN_WORD_REPLACE: Invert replacement and searched strings in the FuncRequest argument. This is to allow replacement of current word even if it is not selected.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30360 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-04 23:02:27 +00:00
Abdelrazak Younes
b8c470d55f
Spellchecker Bug fix: found word was not filled in.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30351 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-04 18:00:01 +00:00
Abdelrazak Younes
c95f44b0b1
GuiSpellchecker: add 'Find Next' and 'Replace All' buttons.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30350 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-04 17:15:27 +00:00
Enrico Forestieri
0a90c42b86
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/trunk@30338 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-03 00:05:58 +00:00
Jürgen Spitzmüller
7664ae5347
* PrefLanguageUi.ui: correct tooltip.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30329 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-01 08:26:06 +00:00
Pavel Sanda
f5df95c8b6
Make Vincent happy
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 18:33:33 +00:00
Jürgen Spitzmüller
7720592b2d
* 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/trunk@30317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 11:00:16 +00:00
Vincent van Ravesteijn
c4feab5f13
Cosmetics, squeeze some warnings, remove unused code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 00:10:55 +00:00
Vincent van Ravesteijn
c0ac23512e
Cosmetics and constify.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30309 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 23:43:23 +00:00
Jean-Marc Lasgouttes
4594b1425b
add onoff support for "inset-modify changetype xxx" in include inset
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30305 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 12:41:43 +00:00
Jürgen Spitzmüller
2efcbb74d6
* do not change name of QSettings config file on LyX version change.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30301 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 08:44:32 +00:00
Pavel Sanda
4c15e3fb55
Squash warn
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30294 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 22:12:16 +00:00
Pavel Sanda
0bde349a04
Capitalize
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 22:02:47 +00:00
Pavel Sanda
336164a9ce
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 21:53:31 +00:00
Pavel Sanda
ee863456a1
Save translators work
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30284 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 11:14:27 +00:00
Pavel Sanda
8a5b5b2e35
Keep numbering
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30281 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 10:37:34 +00:00
Jürgen Spitzmüller
3a16b6dbf7
Implement LFUN_OUTLINE_DRAGMOVE.
...
Contribution by Rob Oakes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30278 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 08:40:34 +00:00
Pavel Sanda
5fdfa59131
Cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30270 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-26 12:40:08 +00:00
Pavel Sanda
db18ee7c8c
Set it in both cases
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30269 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-26 12:40:07 +00:00
Pavel Sanda
7d2331fc17
Shouldn't be needed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30267 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-26 12:30:22 +00:00
Pavel Sanda
b627182bb4
Move to tristate version of locking property
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30265 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-26 12:25:51 +00:00
Pavel Sanda
7355a53a73
Guify setting of svn locking property
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-25 14:48:11 +00:00
Enrico Forestieri
5415144621
Fix bug #6033 : Initial character sometimes eaten by math-insert
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30246 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 18:01:31 +00:00
Jean-Marc Lasgouttes
042c5bf425
Fix bug http://www.lyx.org/trac/ticket/6026
...
LyX crashes when backward selecting during formula writing
The problem is basically that the anchor is not set (because there is no
selection going on) and BufferView::mouseSetCursor does not handle this.
* Cursor.cpp (anchor): return immediately when there is no selection.
* BufferView.cpp (mouseSetCursor): reset anchor before setting cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30245 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 14:54:35 +00:00
Jean-Marc Lasgouttes
7e5bdec673
fix assertion when inserting math inset
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 14:47:29 +00:00
Jean-Marc Lasgouttes
01b290e2dd
Fix part of bug http://www.lyx.org/trac/ticket/2566
...
We use Inset::producesOutput to skip things like notes and inactive
branches.
* buffer_funcs.cpp (countWords): align code style with countChars;
skip insets for which producesOutput() is false.
(countChars): honor Inset::producesOutput.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30242 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 09:46:48 +00:00
Abdelrazak Younes
8a421dcd37
Really spellcheck continuously.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30241 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 09:17:39 +00:00
Abdelrazak Younes
5d40a42f60
Paragraph::collectWords() and MenuDefinition::expandSpellingSuggestions(): reuse Paragraph::spellCheck().
...
Paragraph::collectWords() now also collects spellchecker suggested words for inline word completion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30240 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 08:54:21 +00:00
Pavel Sanda
ae9bcc7760
Fix of fix of fix of fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30239 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 08:20:10 +00:00
Abdelrazak Younes
e8d462799c
Proper fix for the warning that Pavel noticed. The problem was that the local variable d shadowed the private d one.
...
And I of course also put back the semi-colon fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30233 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 22:08:04 +00:00
Abdelrazak Younes
369b0714d6
Crash fix: end of doc check was wrong following previous cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30232 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:49:48 +00:00
Abdelrazak Younes
5e01b2dfa1
Buffer::Spellcheck(): Fix infinite loop when a math inset is met... stupid me!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30231 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:43:39 +00:00
Abdelrazak Younes
2f4f246512
A word have a non zero size.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30230 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:27:51 +00:00
Abdelrazak Younes
76aaecb221
MSVC: Add safety checks.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30229 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:06:25 +00:00
Pavel Sanda
f9621a5255
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg152311.html
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30228 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:06:00 +00:00
Abdelrazak Younes
5b2ba34ac6
Buffer::spellCheck(): don't spellcheck math.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30227 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:00:48 +00:00
Abdelrazak Younes
d9ce39844f
Fix MSVC crash.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30226 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 20:59:56 +00:00
Abdelrazak Younes
14864ab16a
Bug fix?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30225 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 20:16:08 +00:00
Abdelrazak Younes
59cd6fd17c
Spellchecker: Fix ignore button.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30224 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 17:40:09 +00:00
Abdelrazak Younes
c75fb1f6e0
First fix the spellchecker. Now, it find the next misspellec word.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30223 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 17:30:57 +00:00
Abdelrazak Younes
694399b16c
Simplify Buffer::spellCheck() by using Paragraph::spellCheck().
...
Paragrah::isMisspelled() is split in two.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30222 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 16:38:11 +00:00
Enrico Forestieri
d4f00122eb
Fix bug #6020 : Reverse DVI/PDF search fails with child documents.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30214 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 05:09:01 +00:00
Enrico Forestieri
e31e71a7a9
Fix bug #6030 : LyX does not take into account BOM in user layout files.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30213 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 18:23:10 +00:00
Abdelrazak Younes
f4f5178d4f
Revert previous to this file, stupid copy&paste bug fix, sorry.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30212 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 14:33:13 +00:00
Abdelrazak Younes
5387379c24
Introduce Paragraph::isWordSeparator() and use it instead of Paragraph::isLetter(). Note here a change in behavior WRT to word selection: a deleted character is not considered a word separator. This new behavior will impact word finding and spellchecking.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30211 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 14:30:57 +00:00
Abdelrazak Younes
7a4668b25e
Paragraph::isLetter(): Fix word selection in ERT. The check had nothing to do with spellchecking. This method is misnamed, it should perhaps be renamed to 'canBePartOfWord()'.
...
NB: I am not sure this escape character preference is something useful to keep. If some language has some special escape characters beside the single quote one we should support that out of the box and not asking the user to define it or them in the preference dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30210 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 13:43:34 +00:00
Jürgen Spitzmüller
5a54d11157
* Pop up error dialog if issuing master-buffer-[view|update] and errors occured.
...
Navigating in such dialogs does not work yet, but at least the user is informed
at all that LaTeX wasn't succesful.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30209 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 12:26:41 +00:00
Jürgen Spitzmüller
9388e76dc0
* Buffer.cpp:
...
- make LaTeX logfile dialog work for child documents and master-buffer-[view|update]:
if there's only a master file log or if the master file log is newer, it is displayed.
* Buffer.h: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30206 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 09:44:10 +00:00
Jürgen Spitzmüller
5f7c6b8964
* 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/trunk@30198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-20 13:02:12 +00:00
Richard Heck
83a89711b0
Fix captions, in accord with observations by Abdel and JMarc.
...
Note that we will sometimes use the "caption trick", still in
listings, for example.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30194 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-19 18:32:50 +00:00