Commit Graph

17745 Commits

Author SHA1 Message Date
Tommaso Cucinotta
4bac24026d Fixed #2674 (Find and replace should restore initial cursor position), occurring on replace all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33818 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 10:36:59 +00:00
Uwe Stöhr
2211213cb9 InsetTabular.cpp: remove FIXME as nothing needs to be fixed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33817 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 04:29:22 +00:00
Uwe Stöhr
f969d4b87f revert r33814 but widen the text edit fields instead
(reverting things without discussing it is not OK)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33815 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 00:54:49 +00:00
Enrico Forestieri
534604d187 Fix PrefLatexUi.ui after r33783.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33814 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 23:14:33 +00:00
Richard Heck
8a690ea050 Don't bother bliking the cursor if it isn't on the screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 15:11:25 +00:00
Tommaso Cucinotta
57aa866a1c Fixed issues in backward search in various corner cases (fixed #6482 and #6596).
Now, when scope includes multiple documents, the switch_buffer LFUN is only issues if buffer actually changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33812 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 13:59:46 +00:00
Tommaso Cucinotta
83104beee3 Limit the search for the word at current cursor position only to the case in which cursor is in texted.
Fixes crash in #6573.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33811 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 12:15:05 +00:00
Edwin Leuven
fbc91c1967 forgotten in r33799
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33810 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-20 10:20:28 +00:00
Richard Heck
d0434b96e8 Since we don't do anything if the cursor isn't in view, do that test
first.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33803 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 16:11:58 +00:00
Richard Heck
25df3fa83d Defer calculations we may not have to do.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33802 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 15:07:52 +00:00
Richard Heck
72d110bb6e Add a math-as-LaTeX option, and fix some issues with lyx2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 15:02:12 +00:00
Jürgen Spitzmüller
f91cd9d255 fix bug #6513.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 13:35:32 +00:00
Edwin Leuven
1a1bf4988b fix the drawing for cells with a specified vertical alignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 09:41:31 +00:00
Richard Heck
32faa2a273 Simplify a bit, after last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33798 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 01:46:13 +00:00
Richard Heck
4d0d67872e Fix at least the most immediate manifestation of bug #6454.
Investigation of this bug revealed that we are blinking the cursor even
when it is not visible. This should also be reverted. It may, in a way,
be that bug that caused this one, but this check is worth doing anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33797 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 01:43:53 +00:00
Richard Heck
93c99335b0 Suppress XHTML output for math macros. (We used to get the default from
Inset.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33795 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 22:19:34 +00:00
Richard Heck
d8a1720d56 Give ourselves a little more flexibility about math output under XHTML.
I think it will be worth implementing a version of pure HTML output, for
some uses, a la eLyXer.

Note that at present none of this does anything, and there is no UI to
set it. I just want to make sure it's in the file format, in case I do
not get to this before 2.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33794 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 20:35:08 +00:00
Edwin Leuven
1e67084666 revert awful spaghetti (r33780)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33793 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 19:02:01 +00:00
Richard Heck
3efcfa3cf1 Use something simpler for the TOC links in XHTML. Some browsers don't
like the ⇘ entity.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 18:12:30 +00:00
Abdelrazak Younes
bfe352d39d Fix gcc-4.4 warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33791 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 14:00:44 +00:00
Abdelrazak Younes
44fb52d1a2 Fix potential bug affecting export and preview with threads.
QThreadPool::maxThreadCount() defaults in general to 2 on single or
dual-processor. This is clearly not enough in a time where we use
threads for document preview and/or export. 20 should be OK.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 12:42:34 +00:00
Pavel Sanda
a0aabe4ed9 Fix bug 6445: Incorrect TEX code causes misleading "File does not exist" error on "View PDF"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 13:56:59 +00:00
Pavel Sanda
1fc1652f10 Fix bug 6593: LyX wont detect some pdftex errors
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33788 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 13:50:27 +00:00
Tommaso Cucinotta
e74f4b1d8b No more auto math toolbars while in regexp mode (addressing #6471).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 13:37:15 +00:00
Richard Heck
8f5d4a3fcb Get rid of label_init_length. There is no way to set it from the GUI any
more. Worse, it was being used inconsistently. And we don't really need
it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33786 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 12:50:58 +00:00
Richard Heck
4cd5bcefe9 Introduce a RefPrefix tag for Style, InsetLayout, and Float, that
indicates what prefix to use when constructing formatted references.
Documentation to follow.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 12:23:24 +00:00
Uwe Stöhr
317192fa1f PrefLatexUi.ui: fix alignment and spacing of the text edit fields
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33783 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-17 01:02:21 +00:00
Uwe Stöhr
9231f19340 InsetTabular.cpp:
- reintroduce issue that was removed in r33731
  (multirow cells are by default left-aligned, LyX does not yet support to change this)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33782 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 22:48:07 +00:00
Edwin Leuven
28c759e171 correct cell line drawing for multirow cells
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 22:42:57 +00:00
Uwe Stöhr
76ff0540d1 InsetTabular.cpp/h: fix the drawing for cells with a specified vertical alignment
Please also see my according post on the mailing list

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 22:27:17 +00:00
Uwe Stöhr
96f16d62f8 PrintNomenclUi.ui: fix a typo, spotted by Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33775 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 21:51:39 +00:00
Edwin Leuven
1f8b6f8a0a - deleteRow did not properly change multirows
little things:
- rename method to what it is
- correct parameter
- bit of formatting

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33774 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 21:42:16 +00:00
Edwin Leuven
613f9d8996 and also correctly draw selected multicolumn cells while we're at it...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33765 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 09:50:58 +00:00
Edwin Leuven
7ff4105558 correctly draw selected multirow cells
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33764 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 09:46:25 +00:00
Enrico Forestieri
06122df30a Revert r33756 because lyx hangs on startup on some platforms.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33761 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-16 07:55:22 +00:00
Enrico Forestieri
61096546b3 The output pipe is only used for writing, and not also for reading.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 22:16:30 +00:00
Edwin Leuven
62b0691b3c avoid invalidated indexes with multicol/row
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33751 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 18:08:38 +00:00
Abdelrazak Younes
545d7bb431 white space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33750 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 16:26:09 +00:00
Pavel Sanda
21f2ad3701 Parametrize position of version string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33745 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 12:39:06 +00:00
Pavel Sanda
8ffc79cf63 Honour lyxrc.show_banner again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33744 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 12:18:21 +00:00
Jürgen Spitzmüller
c23fe9abfe * GuiSpellchecker.cpp:
- prevent null pointer (bug 6586)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 10:03:02 +00:00
Vincent van Ravesteijn
44bb53b57a Revert r33714: It causes bug #6588.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33742 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 08:55:58 +00:00
Edwin Leuven
3c45586d96 use more flexible default for now...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33739 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-14 10:33:02 +00:00
Richard Heck
5e0de68db5 Minor cleanup, and some const-ness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 16:55:59 +00:00
Edwin Leuven
b5ddcaa4d1 increment in the same way in ::draw, ::drawSelection and ::cursorPos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33733 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 12:00:37 +00:00
Pavel Sanda
9be4767f27 Fix Error dialog. Patch from Richard and Abdel.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg158649.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg158658.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33732 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 11:39:50 +00:00
Edwin Leuven
559537c080 fix some vertical alignment issues in tabular
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33731 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-13 10:49:26 +00:00
Vincent van Ravesteijn
487e9ad92a Fix bug #6377: Tex2lyx error with multiple languages.
We have to set the language again when a new paragraph is started. Otherwise the n'th paragraph in a certain language is set to the document language.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33727 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 18:36:19 +00:00
Vincent van Ravesteijn
7d30e34b08 Fix bug #6462: Out-of-bounds index in GuiErrorList::goTo when new buffer is active.
Cache the buffer and errorList in the GuiErrorList dialog. Now, we can check whether the active buffer is also the buffer for which the errors are shown. We switch back to the correct buffer, when one clicks on an item or clicks "View complete log".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 15:06:13 +00:00
Vincent van Ravesteijn
2ef545a250 Fix bug #6397: use GUIfied strings in the error dialog.
Forward port of r33408 (commit by Juergen).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33725 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 13:47:28 +00:00
Enrico Forestieri
0f8929d5d1 Fix command line parsing and allow unicode arguments for tex2lyx on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33723 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 01:18:39 +00:00
Uwe Stöhr
1f907d16d1 GuiWorkArea.cpp: remove unused include of MetricsInfo.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33722 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 00:27:12 +00:00
Uwe Stöhr
6d41db574d InsetXXX.cpp: remove unused include of MetricsInfo.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33721 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 00:23:48 +00:00
Vincent van Ravesteijn
bad0d577e8 Fix the InsetBranchParams::read function after that the '\n' was removed from params2string in r33710.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33720 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 21:11:03 +00:00
Vincent van Ravesteijn
ff7526a3ed No camelBump style for local variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33719 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 19:50:04 +00:00
Vincent van Ravesteijn
c5f556e43a Remove unused function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33718 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 19:48:49 +00:00
Vincent van Ravesteijn
ab76cb0bc9 Typo and style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33717 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 19:40:11 +00:00
Vincent van Ravesteijn
cabde10fa3 Adjust the window settings for MacOSX.
- No more Drawers,
- ProgressView and SourceView are docked at the bottom,
- SpellChecker, FindAndReplace and Outline are floating by default, but dockable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33716 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 19:33:08 +00:00
Vincent van Ravesteijn
c5e0708f88 Add Qt version info to the About dialog in the DEVEL_VERSION.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33715 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 18:31:01 +00:00
Vincent van Ravesteijn
7c8510f02e Fix bug #6563: Change tracking and moving labels
Do not warn that a label already exists if it is in a deleted part of the document.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33714 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 18:20:57 +00:00
Vincent van Ravesteijn
d8bb69e74e Fix bug #5735: Modifying a keyboard shortcut function entry clashes with its own shortcut key combination definition.
- Trim the saved lfun because there is a space added in the textfield,
- check whether the action has changed before signaling that the shortcut already exists.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33713 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 17:34:59 +00:00
Vincent van Ravesteijn
b9b872f36a Fix bug #6474: Tex2lyx skips all spaces in the preamble.
Partially reverting r30113.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33711 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 16:56:41 +00:00
Richard Heck
f44ee9937a Finish fixing the problem with "New Inset" in branches noticed by
Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33710 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-11 12:56:25 +00:00
Abdelrazak Younes
2a3f27a80c Code simplification.
TocTypeModel is not needed outside TocModel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33707 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 21:00:34 +00:00
Richard Heck
e50264577c Fix part of a problem reported by Vincent.
The asymmetry between how "Branch" is read and written still needs to be
addressed, as does the fact that InsetBranchParams ought to be created
with a param string.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33706 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 20:56:45 +00:00
Enrico Forestieri
ea4d17acb3 Fix bug #6581: Empty base of a script inset should not be shown as an empty brace inset on screen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33705 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 20:10:30 +00:00
Richard Heck
56d89dbff9 This is worth having here anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33703 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 18:43:10 +00:00
Richard Heck
0bddd759d7 Another try at #6522. This works here, for the most part, with no ill
effects that I can see. That said, I believe there is still a crash you
could get. I'll explain in a moment.

Since we may run into this kind of thing again, let me explain why this
is necessary. The problem was that resetting the model was causing a
signal to be emitted that the current index had changed, which was
triggering an update of the Buffer, eventually. I'm not sure why this
did not happen in Qt 4.5, but in Qt 4.6, you have to call
beginResetModel() before doing anything, so that the combo box will
remember its previous setting. Then you can change the data; then you
can call endResetModel(). This will attempt to restore the previous
setting. Only if it cannot do so will currentIndexChanged() be emitted.

You can see, therefore, that if whatever the user did caused the current
setting to become invalid---e.g., she deleted the only footnote---then
the signal will be emitted and LyX will still crash. Still, that is a
fair bit better than presently.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 18:41:28 +00:00
Vincent van Ravesteijn
039807ed28 Adjust some messages and constify a variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33701 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 17:03:53 +00:00
Vincent van Ravesteijn
f225a6d8b6 Remove superfluous std::.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33700 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 17:01:40 +00:00
Vincent van Ravesteijn
16c74c7f25 Add a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33699 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 17:01:08 +00:00
Vincent van Ravesteijn
a866d2e1a9 Add missing continue. I guess I found this when running latex with a symbol file with some windows encoding or line-ends.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33698 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 16:58:20 +00:00
Vincent van Ravesteijn
5d60104a69 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33697 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 16:57:01 +00:00
Vincent van Ravesteijn
cd5d57e504 Do not use const char *.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33696 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 16:56:13 +00:00
Vincent van Ravesteijn
ab5c1c7408 Initialize number_index and unit_index in isValidGlueLength(). This is now the same as in isValidLength(), so I assume it's OK.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33695 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 16:35:40 +00:00
Vincent van Ravesteijn
6200f4852b Small simplification and remove unneeded std::.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33694 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 15:11:31 +00:00
Vincent van Ravesteijn
fd507aecf4 Fix typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33693 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 15:09:44 +00:00
Vincent van Ravesteijn
f23a2ccb58 Fix bug #6488: Avoid a null pointer when accessing documentBufferView when there is none.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33692 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-10 14:46:28 +00:00
Jean-Marc Lasgouttes
b8bbd7aea9 Cleanup InsetTabular::getStatus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33690 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 23:04:59 +00:00
Jean-Marc Lasgouttes
19031e2345 Restore some sanaity in InsetInfo lfuns (bug #6580)
The context menu is wrong, I do not know why.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33689 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 23:04:35 +00:00
Edwin Leuven
684def2036 simplify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33688 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 19:21:32 +00:00
Edwin Leuven
93830fd28d avoid crash when calling inset_modify with cursor not in table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33687 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 19:07:54 +00:00
Richard Heck
42a2a0f289 Cheap fix for #6554. When we save a Buffer to a new location, we check
the included insets and make sure that the files they reference are
still where they are supposed to be.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33686 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-09 03:25:47 +00:00
Richard Heck
4a07f1d0e2 Unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33684 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 20:54:31 +00:00
Richard Heck
d70f91a380 Line length, again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33683 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 20:48:48 +00:00
Richard Heck
6f624ab79b Change updateLayout() to updateDocumentClass(), since that is what it
does.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33682 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 20:37:11 +00:00
Richard Heck
2cb20b211c Line length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33681 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 20:22:37 +00:00
Richard Heck
c653974e9d Revert r33630 and do something more sensible.
I don't think this fixes the underlying problem, but I think that
problem is very extensive. Fixing it would involve a re-thinking of
where and how we call updateBuffer()---the old updateLabels().

This fix also reveals another problem with the TOC, again due to the
early call of on_typeCO_currentIndexChanged(). But that problem is a
slightly different one, I think.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33680 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 19:52:48 +00:00
Richard Heck
8a6b77bfe1 Introduce isBufferValid() method now, that returns true also for cloned
Buffers. Use it, as well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33679 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 19:07:05 +00:00
Richard Heck
a2e06a3c15 Eliminate redundancy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33678 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 19:06:28 +00:00
Richard Heck
821cffab63 s/isBufferValid/isBufferLoaded/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33677 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 18:57:42 +00:00
Richard Heck
5a4e241df4 Cloned buffers routinely have their parents reset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33676 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 14:56:49 +00:00
Richard Heck
13746b6d82 Micro-optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33675 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 14:55:33 +00:00
Richard Heck
b1d5168109 Fix bug #6516. Under no circumstances do we want to try to reload a
child document from within the export thread.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33674 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 14:25:32 +00:00
Richard Heck
da4a77c4ae Whoops. Wrong version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 13:36:51 +00:00
Richard Heck
e4d8746461 Minor fixup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33672 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 13:34:32 +00:00
Abdelrazak Younes
27657b3b75 isValidGlueLength(): fix gcc warning and cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33671 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 13:33:47 +00:00
Richard Heck
45287844fa Add sanity check. This partially fixes a crash related to saving master
documents to new locations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33670 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 13:26:08 +00:00
Richard Heck
483c891705 Spellcheck related bugfix from John McCabe-Dansted:
PrefSpellchecker disables the "Spellchecker Engine:" selector if
theSpellChecker() reports that no spell checking engine is selected.
This means that if we have not already selected a spell checking
engine we cannot select one now. I think this problem can be
reproduced by first compiling and running LyX without spellchecking
support and then compiling and running LyX with spellchecking support.

In any case it is clear that we should be able to select a
spellchecking engine if one is available, so I propose the attached
patch. This patch fixed the problem on my machine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33669 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 13:22:56 +00:00
Richard Heck
60034997d9 Make sure the model exists before we access it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33668 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 12:42:18 +00:00
Peter Kümmel
92ebfe89e7 no Q_EMIT in older Qt versions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33667 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 09:35:10 +00:00
Edwin Leuven
f7ef9c3e6e lil' cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33666 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 04:08:11 +00:00
Edwin Leuven
f313bd6a90 erratum to r33628
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33665 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-08 04:04:56 +00:00
Edwin Leuven
ece4da2f01 fix cursor position(ing)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33663 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-07 17:33:33 +00:00
Peter Kümmel
97651ca03c Use one place to generate current time string, increase resolution to ms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33662 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-07 11:55:14 +00:00
Peter Kümmel
3a5d681a9b cmake: fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33660 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-07 11:03:23 +00:00
Abdelrazak Younes
b8390b5e2c Try to restore longtable dialog to a semi functional state. This Dialog is really horrible, disabling/enabling a checkbox depending on the cursor position is very unintuitive... We need some edit boxes to show which rows are header/footer/etc without having to move the cursor first. That would be my next step newt week.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33651 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 19:08:10 +00:00
Vincent van Ravesteijn
8a840ef805 Fix bug #6580: Revert r29305, which was supposed to fix bug #5901.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33646 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 17:47:50 +00:00
Peter Kümmel
870e4549f9 cmake: fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33645 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 16:18:16 +00:00
Pavel Sanda
a7b921aeeb Fix unsafe use of fixed width arrays.
Fix crash when MathMatrix has more than 80 columns

Patch from John McCabe-Dansted, approved from Andre.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33641 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 14:57:16 +00:00
Abdelrazak Younes
321f6031af Fix bug #6564. The cmd status retrieval is quite broken within tables (math or text).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33639 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 14:19:21 +00:00
Pavel Sanda
8f136a5467 Remove unused SignalSlot files per Abdel's suggestion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33637 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 12:48:02 +00:00
Pavel Sanda
c73afcd734 File missing in tarball
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33636 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-06 12:47:57 +00:00
Richard Heck
75454ca8c5 Disable lists of floats we don't know how to generate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33635 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 23:47:33 +00:00
Richard Heck
abc81b5c07 Rework and partially revert r33631.
This patch introduces a "ListCommand" tag for Float layout. This tag
defines the command used to generate a list of such floats, in the cases
where float.sty is not used (i.e., where NeedsFloatPkg is true). We were
previously hardcoding the commands \listoftables and \listoffigures. But
in other cases, such as achemso.layout, which defines lists of schemes,
charts, etc, we could not output such lists.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33633 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 22:58:29 +00:00
Richard Heck
9d6979f0eb FIXME regarding XHTML output of custom float lists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33632 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 21:07:01 +00:00
Richard Heck
cbed4c3cc5 Let floats decide for themselves what command is used to create a list
of them. This is preparatory for introducing a layout tag that lets us
customize that command for builtin floats.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33631 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 21:06:22 +00:00
Richard Heck
1fcc1c0f18 Fix bug 6522 and its relatives in trunk. I am not absolutely sure this
is right, though. Someone please check.

The problem, in branch, was that (in Qt 4.6.x, anyway) the call to
reset() eventually triggers the on_typeCO_currentIndexChanged() method,
which eventually leads to GuiView::setFocus(), which leads to
GuiWorkArea::focusInEvent(), which tries to start the cursor, whose
position hasn't been updated yet, from what I can see.

The problem in trunk is similar. The crash happens, I think, because,
while we are in the middle of resetting the model, the same method is
triggered, which leads us to try to access the model while we are in the
middle of resetting it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33630 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 20:47:50 +00:00
Edwin Leuven
42c5246b9d rename frenzy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33628 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 18:10:34 +00:00
Peter Kümmel
d58b4ead47 fix bug 6578, use tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33627 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 18:07:05 +00:00
Richard Heck
b64e2d4103 Change the LaTeXBuiltin tag to a NeedsFloatPkg tag. Discussion on the
list revealed that the former is confusing to people. The latter
indicates more clearly what the tag does.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33626 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 17:24:38 +00:00
Pavel Sanda
563eddd4bc next one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33624 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 08:05:25 +00:00
Pavel Sanda
59c980e6e5 Start preparations for alpha
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 08:05:20 +00:00
Uwe Stöhr
eb0ade4e9f InsetTabular.cpp:
- multirow cells are always left aligned, therefore disable horizontal alignment
- multirows cannot be vertically aligned, therefore disallow this

(Two issues less in http://wiki.lyx.org/Devel/Multirow .)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33622 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-05 03:37:21 +00:00
Edwin Leuven
f365532e35 remove old "logic"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33620 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 21:31:06 +00:00
Edwin Leuven
9b93ec0732 - unset multicol (row) when setting multirow (col)
- bit of function cleanup


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33619 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 20:20:45 +00:00
Richard Heck
afb8365d82 Some cleanup for the Floating class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33617 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 13:42:05 +00:00
Tommaso Cucinotta
8c244aa68d Set linelen when exporting latex for the purpose of chktex-ing it, so that a meaningful error-line is reported back to the GUI (addressing #6574).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33616 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 08:13:42 +00:00
Uwe Stöhr
20fbd7068a InsetTabular.cpp: fix bug that LyX allowed to specify the vertical alignment of table columns without a fixed width
Should also go to branch, Jürgen?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33615 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 03:55:13 +00:00
Uwe Stöhr
497d6d13f7 InsetTabular.cpp: disallow the following cases:
- a multirow cannot be a multicolumn the same time
- a multirow cannot be the caption of a longtable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33614 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-04 03:27:30 +00:00
Richard Heck
d65020b293 s/updateLabels/updateBuffer/g, per a suggestion of Abdel's.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33613 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-03 22:13:45 +00:00
Jürgen Spitzmüller
de50c5248e * handle encoding in PDF options gracefully.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33604 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-01 17:39:41 +00:00
Abdelrazak Younes
81d2d239c3 Document Settings: fix Float placement dialog. The float type is not
needed here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33602 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-01 09:03:15 +00:00
Uwe Stöhr
7d4cd54c46 Buffer.cpp, InsetCommandParams.cpp: refine comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33592 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-28 14:50:02 +00:00
Jürgen Spitzmüller
4def0c2a52 * Menus.cpp: add accelerator to "More Languages ..."
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33591 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-28 10:23:06 +00:00
Jürgen Spitzmüller
5c6c8dc25f " Menus.cpp: sort languages. Based on a patch by John McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33590 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-28 10:06:05 +00:00
Richard Heck
c785e832fb Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33587 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 20:17:29 +00:00
Richard Heck
fce0bea8a2 Truncate long cross-references and show the whole thing in a tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33586 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 20:16:12 +00:00
Richard Heck
3906792378 We were doing this twice, and I think there's also a bug here, namely,
that we weren't re-enabling if we returned early.

Someone tell me if this is wrong.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33585 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 19:56:08 +00:00
Richard Heck
805231ccbe This can just take a FuncCode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33584 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 19:51:06 +00:00
Richard Heck
c127d83b66 A little cleanup while perusing TocWidget....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33583 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 19:48:20 +00:00
Vincent van Ravesteijn
834115c920 Fix bug #6552: Crash when inserting TeX-code in math mode and scrolling
Avoid an assertion when accessing the CoordCache while the Inset is in a paragraph which is not visible on screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33582 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 15:59:08 +00:00
Jean-Marc Lasgouttes
6d671bf5f2 Fix compilation with qt 4.2: QString::operator[] returns a QCharRef,
which is supposedly like a QChar... except that some methods like isUpper 
were forgotten in the process.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33580 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 14:46:42 +00:00
Vincent van Ravesteijn
4aeca63887 Fix bug #6464: Crash when exiting LyX from second window when first window has changed buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33579 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 14:07:21 +00:00
Jürgen Spitzmüller
f31298fd7c * GuiSpellchecker.cpp:
- fix bug #6561 (null pointer).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33578 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-26 13:34:36 +00:00
Jürgen Spitzmüller
86f1641299 * Buffer.cpp (getLanguages):
- assure the buffer language is in the list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33569 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 18:00:43 +00:00
Jürgen Spitzmüller
9f67cede58 Menus.cpp: priorize capitals as language accelerators.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33566 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 12:56:12 +00:00
Jürgen Spitzmüller
ea6b96dfc5 * Menus.cpp: hide Language item if only one language is used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33565 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 12:46:16 +00:00
Jean-Marc Lasgouttes
c224f085ce avoid crash when there is no buffer (bug #6548)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33564 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 11:36:31 +00:00
Jean-Marc Lasgouttes
04336d45d8 fix compilation with qt 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33563 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 11:35:41 +00:00
Enrico Forestieri
3fce202517 On Windows, allow loading documents with non-ascii chars in their path
also from command line and from explorer windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33561 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 00:20:31 +00:00
Vincent van Ravesteijn
b9e45ab91f Remove the bogus fixme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33558 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 17:54:15 +00:00
Vincent van Ravesteijn
ccf2080ae8 Fix bug #6556: Exporting .lyx to .lyx15 or lyx16 report error, yet succeeds.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33557 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 17:02:52 +00:00
Jürgen Spitzmüller
a15a58b51c * Menus.cpp:
- exclude spaces from accelerator construction.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33556 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 14:21:30 +00:00
Jürgen Spitzmüller
1f97351716 * Menus.cpp:
- add accelerators to the language selector submenu (bug 6558)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33555 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 14:06:40 +00:00
Jürgen Spitzmüller
c2ef290547 * enable instant preview with XeTeX (requires preview-latex v.11.86) [bug #5577]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33554 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 10:47:35 +00:00
Abdelrazak Younes
85c782bde8 Migrate GuiBibitem to InsetParamsWidget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33547 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-23 21:24:24 +00:00
Enrico Forestieri
ab77356a6a When using CREATE_NEW, CreateFile fails if the file already exists.
I intended that, but was forgetting to account for it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33545 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-23 16:22:27 +00:00
Jean-Marc Lasgouttes
a9d094bcce fix compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33544 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-23 08:00:29 +00:00
Pavel Sanda
06b4dfb24d Revert r33533.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33543 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-23 03:51:49 +00:00
Tommaso Cucinotta
a7f63005f0 Fixed #6555 (crash when trying to replace starting from multi-par selection with end pos < beg pos).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33542 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 21:44:59 +00:00
Uwe Stöhr
1c9a6f8b49 GuiView.cpp: fix compilation after r33533
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33540 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 20:31:13 +00:00
Enrico Forestieri
10f1370464 On windows, allow saving a document whose pathname contains unicode chars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33539 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 19:34:25 +00:00
Pavel Sanda
21379cbef9 At least basic capability for VC comparison.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33533 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 02:01:04 +00:00
Pavel Sanda
5cb1a6a08d Forgot these
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33532 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 02:00:59 +00:00
Pavel Sanda
ddd4cb6152 Kill files unused for long time
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33531 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-22 02:00:55 +00:00
Enrico Forestieri
d472d8ddc0 Win95 is not supported by a long time now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33527 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-21 18:38:17 +00:00
Enrico Forestieri
220f0f9f5b This should have gone in r33524.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33526 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-21 13:51:06 +00:00
Abdelrazak Younes
5d235f5251 Migrate GuiHSPace to InsetParamsDialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33525 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-21 09:28:33 +00:00
Enrico Forestieri
37974532f6 Fix bug #5238: LyX 1.6 fails with non-ascii chars in path (on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33524 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-21 04:51:27 +00:00
Edwin Leuven
3c765c6bc5 bit of clean up
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33522 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 22:00:54 +00:00
Abdelrazak Younes
4db2685cbe Migrate Branch dialog to InsetParamsWidget
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33521 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 20:57:25 +00:00
Abdelrazak Younes
bebd53821a Implement Vincent's suggestions:
- [New Inset] button even in non synchronous mode
- Get rid of the horizontal spacer for improved layout under Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33520 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 20:44:59 +00:00
Enrico Forestieri
f5cc73f583 Avoid unnecessary exceptions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33516 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 16:31:15 +00:00
Jürgen Spitzmüller
90e28136b6 * Buffer.cpp:
- Issue a warning if a path contains uncodable characters (bug 6301).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33514 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 14:47:19 +00:00
Abdelrazak Younes
3ec48cce2a Fix single table action (from toolbar).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33511 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 12:21:49 +00:00
Abdelrazak Younes
10e22f9eab Following previous commit, the dialog now needs to be reinitialized when
called...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33510 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 11:17:00 +00:00
Abdelrazak Younes
3efb329cb0 InsetParamsDialog: don't update the inset widget if we are not un
synchronised mode.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33509 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 11:04:15 +00:00
Abdelrazak Younes
3776d8ec89 Fix cell width initial fill-in.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33508 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 10:25:20 +00:00
Abdelrazak Younes
addba25b98 r33506: better fix for table borders.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33507 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 10:03:03 +00:00
Abdelrazak Younes
15e19deed3 Really fix table borders toggling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33506 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 09:03:39 +00:00
Abdelrazak Younes
98ed6f399e Tabular dialog: fix border setting/unsetting bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33505 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 08:20:58 +00:00
Abdelrazak Younes
816b7fdd91 Simplify featureAsString()... I don't understand why some people insist
on those complicated, verbose STL code...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33504 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-19 08:11:09 +00:00
Abdelrazak Younes
e92aed709b Fix gcc warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33503 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 11:52:18 +00:00
Enrico Forestieri
e26331dd35 Remove obsolete source file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 09:58:20 +00:00
Pavel Sanda
7f8f613a11 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33497 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 09:01:33 +00:00
Abdelrazak Younes
b5049e769b * InsetTabular cleanup:
- proper message passing for all tabular features
- properly define which feature needs an argument

* replace LFUN_TABULAR_FEATURE with LFUN_INSET_MODIFY
- The math tables are also affected. In the future a common base class
between math and text table will solve this inconsistency.
- There is a hack in GuiApplication in order to not rename the toolbar
icons. This will have to be cleaned up with a general icon naming for
LFUN_INSET_MODIFY... to be discussed.

* Tabular Dialog:
- big cleanup, lots and lots of bug fixing here
- migrated to InsetParamsWidget


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33495 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 08:28:46 +00:00
Abdelrazak Younes
8613f66a1d InsetParamsWidget(): fix method constness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33493 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 07:56:38 +00:00
Enrico Forestieri
4c92ec8383 Operator new[] should always be matched by operator delete[],
even when allocating POD types.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33488 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-17 19:33:52 +00:00
Abdelrazak Younes
6490dd8636 Factorize showInsetDialog() for InsetParamsDialog based dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33487 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-16 13:35:40 +00:00
Abdelrazak Younes
175c03336e InsetBox:
* update the button label when a parameter is changed.
* Get rid of unused LFUN_INSET_DIALOG_UPDATE dispatch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33486 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-16 12:55:05 +00:00
Abdelrazak Younes
3a26a8d9d7 some moreInsetParamsDialog bug fixing...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33485 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-16 10:50:06 +00:00
Abdelrazak Younes
c775690b58 InsetParamsDialog bug fixing:
* OK button now creates an inset if none is present
* Fix some enabling/disabling of buttons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33484 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-16 09:39:14 +00:00
Abdelrazak Younes
06e19de13b Fix autotools for r33480.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33483 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-16 08:05:49 +00:00
Abdelrazak Younes
f345feeced Fix compilation with Qt4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33481 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 23:19:31 +00:00
Abdelrazak Younes
bbda43a400 Attempt to simplify as much as possible Inset parameter dialog creation. We now just need an ui file and a class that inherits InsetParamsWidget and implement 4 methods. Then InsetParamsDialog will take care of the rest. InsetParamsDialog has 2 running mode: "immediate apply" and "Restore/OK/Close" which is the default; I hope this is enough to satisfy all users. The checkbox status might be saved later in session settings.
This new attempt replace the previous attempt with InsetDialog which was still too tight with the older framework.
Status:
float, ert, box, info: migrated
vspace: migrated but buggy. To be fixed later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33480 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 23:17:45 +00:00
Abdelrazak Younes
22e4332d2b Add a new insetDisplayName() method that will be used for GUI purpose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33479 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 22:46:50 +00:00
Pavel Sanda
bde1274042 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33478 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 09:15:38 +00:00
Pavel Sanda
74c70e39cb Support revision fetching also for RCS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33477 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 09:05:24 +00:00
Pavel Sanda
c30a82d94d Glitch in LFUN
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33476 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 09:05:16 +00:00