Commit Graph

15530 Commits

Author SHA1 Message Date
Enrico Forestieri
667031f492 Fix shortcut target for the Content combo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33346 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-06 19:18:32 +00:00
Vincent van Ravesteijn
d37683420c branch: Fix bug #6489: Assertion triggered when deleting contents of math ERT. (probably a stdlib assertion).
Do not access name_[0] if name_ has size 0.

see r33290 and r33292.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33337 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-06 01:43:50 +00:00
Enrico Forestieri
64ddb9f47d Fix bug #2872: reference in math to label with "underscore"...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33332 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-05 13:33:20 +00:00
Edwin Leuven
93b1b4b35e backport r33088
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33314 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 20:20:35 +00:00
Enrico Forestieri
c47af690de According to André, QLatin1String is cheaper.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33307 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 01:14:00 +00:00
Vincent van Ravesteijn
b9250f26a3 Fix bug #6448: Crash with invalid anchor.
If we check whether a cursor is valid, we should also check the anchor_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33281 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 18:00:05 +00:00
Vincent van Ravesteijn
aa7903de80 branch: Fix bug #6431: Crash when closing a workarea with a pending completion popup.
The GuiCompleter? has to have a parent, otherwise it is not destroyed when a GuiWorkArea? is destroyed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33280 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 17:55:10 +00:00
Jürgen Spitzmüller
85e8e0b8cf * InsetTabular.{cpp, h}:
- implement addToToc (bug 6372).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33261 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 13:04:02 +00:00
Jürgen Spitzmüller
5d80852425 oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33246 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:36:59 +00:00
Jürgen Spitzmüller
8af73a3f93 * CutAndPaste.cpp:
- more improvements as suggested by Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:34:31 +00:00
Jürgen Spitzmüller
3d15a23796 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33244 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:20:50 +00:00
Jürgen Spitzmüller
207ca6ccbf * InsetMathHull.h: constness, as suggested by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:15:04 +00:00
Jürgen Spitzmüller
948cb9e3ff * CutAndPaste.cpp: reduce indendation levels, as suggested by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 09:08:37 +00:00
Jürgen Spitzmüller
3e330398b1 When pasting a math inset with a label, check for duplicates (as we do outside math)
(bug 6218)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33239 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-28 07:29:57 +00:00
Enrico Forestieri
eee77cd0ad Fix compiler warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33233 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-27 13:18:05 +00:00
Jürgen Spitzmüller
0a7df344a3 * BufferView.cpp:
- Fix crash when performing word-replace while the cursor has a selection
	  in mathed (bug 6437)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33205 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-24 17:35:32 +00:00
Vincent van Ravesteijn
254a3f9650 branch: Fix bug #6433: read-only status is not refreshed when reloading a buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33203 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-24 17:31:20 +00:00
Jürgen Spitzmüller
c67fa0732f * add support for the enchant spell checker (bug 6226).
Patch by Caolán McNamara.

SCons users please test

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33188 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-24 10:04:52 +00:00
Enrico Forestieri
01da7a61c0 Fix bug #5525: Windows XP doesn't shut down with LyX open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33179 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-23 18:42:00 +00:00
Jürgen Spitzmüller
daed127a08 really fix the Diamond toolbar item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33175 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-23 09:56:39 +00:00
Richard Heck
c5721fdd50 Backport r33142 to branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-22 14:01:41 +00:00
Uwe Stöhr
66ad612769 MathData: fix #6388 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33103 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-20 02:10:29 +00:00
Jürgen Spitzmüller
e4d6e56d5a * Add support for aspell language varieties.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33092 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 10:22:08 +00:00
Jürgen Spitzmüller
01ab6d7f94 * Text3.cpp:
- While in ERT, disable non-functional sub- and superscript functions that
 	  crashed LyX (bug 6459).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33090 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 08:50:35 +00:00
Jürgen Spitzmüller
181a9338f4 * GuiSpellchecker:
- implement event filter and allow selection of suggestions with the keyboard
	  (second part of bug 6460).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33079 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-18 10:06:40 +00:00
Jürgen Spitzmüller
806a476bd1 * Add more keyboard accelerators to the spellchecker dialog (part of bug 6460).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33064 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-17 10:50:30 +00:00
Jürgen Spitzmüller
91e020e6fb * revert r32451 which broke polytonic Greek.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33054 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-16 09:51:27 +00:00
Pavel Sanda
fa4be31b0c Backport svn quirks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33053 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-16 09:26:29 +00:00
Enrico Forestieri
772a032cd0 Query the cygdrive prefix only if the cygwin mount command is available.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33026 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-14 13:13:05 +00:00
Enrico Forestieri
b90410b40f Don't use a hourglass cursor while diplaying alerts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32978 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-12 00:30:43 +00:00
Enrico Forestieri
c1a6dc73cb Add support for the newly released Cygwin 1.7.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32921 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-09 19:25:36 +00:00
Uwe Stöhr
2b961775f7 tex2lyx/preamble.cpp: - recognize the correct type of quotes dependent on the document language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32864 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 23:40:57 +00:00
Uwe Stöhr
233dc0ac1b tex2lyx/preamble.cpp: - code simplification: don't evaluate synonym languages at three different places. Do this right before writing the LyX file header; no status entry necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32863 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 23:36:10 +00:00
Uwe Stöhr
97037fba02 tex2lyx/preamble.cpp: - don't specially handle the document encoding any longer (tex2lyx supports fileformat 264 since a while now and support for ascii was added in fileformat 262); no status entry necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32862 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 23:34:15 +00:00
Uwe Stöhr
e1f26b4274 tex2lyx/preamble.cpp:
- accept Kazakh as document language
- fix a few comments 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32861 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 23:31:27 +00:00
Enrico Forestieri
6287499b16 Allow spaces in path names for LFUN_SERVER_GOTO_FILE_ROW.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32828 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 13:10:37 +00:00
Vincent van Ravesteijn
1f1de383a7 branch: Fix bug #2948: Drag and drop support for all importable file types.
see r32492.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32810 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 21:21:28 +00:00
Vincent van Ravesteijn
237be3e41d branch: Fix bug #6387: Incorrect selectlanguage command at end of document.
see r32792.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 21:02:07 +00:00
Vincent van Ravesteijn
39d43fcd78 branch: Fix bug #6426: Language not set correctly when inserting an Inset.
see r32750.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32807 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 20:56:15 +00:00
Vincent van Ravesteijn
7554c40dbb branch: Do not clear the default master setting when cancelling the browse dialog.
see r32737.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32806 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 20:20:22 +00:00
Vincent van Ravesteijn
0c3357e510 branch: Refresh the contents of some dialogs when the document is read-only.
Update the view also when the document is read-only.

see r32694.

Update the GuiInfo dialog also when the document is read-only. A dialog that does not dispatch a single LFUN (see getLfun()) but is buffer dependent (see isBufferDependent()) should implement the canApply function (if I'm correct).

see r32695.

Update the GuiLabel view when the document is read-only. Also disable the text field.

see r32696.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32802 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 20:11:45 +00:00
Vincent van Ravesteijn
58ca8035bb branch: Fix bug #6332: Do not paint the cursor after a resize event when it should be invisible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 19:58:37 +00:00
Vincent van Ravesteijn
0f58260014 branch: Update the status bar when starting LyX (creating a new view) and when the last document is closed.
see r32652.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 19:53:05 +00:00
Vincent van Ravesteijn
300611ec43 branch: Fix bug #6400.
Shift+mouse click loses the existing selection instead of extending it.

see r32578.

After selecting a word by double-clicking it, extending the selection by a single mouse-click should also select only whole words.

see r32580.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 19:49:53 +00:00
Vincent van Ravesteijn
851e1b2b85 branch: Set the current font when moving into a table or between two table cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32798 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 19:42:49 +00:00
Vincent van Ravesteijn
db3e9e58cb branch: Compute the font_scaling_factor every time a preview is created (we can afford a few multiplications I guess). Now, the newly generated previews use the possibly updated zoom, dpi and preview_scale_factor.
see r32563.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32797 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 19:40:02 +00:00
Enrico Forestieri
42fadd42c4 Fix bug #4063: LyX cannot handle apostrophe characters ' in path names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32773 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 19:37:49 +00:00
Pavel Sanda
c6ddbaf8d2 Backport r32617, no status entry needed, this was new in 1.6.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32618 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-23 12:48:36 +00:00
Jürgen Spitzmüller
485ae5821a * BiblioInfo.cpp (convertLaTeXCommands):
- fix parsing of thin space (\,).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32505 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:53:12 +00:00
Vincent van Ravesteijn
65ca18f336 branch: Do not save an emergency file after choosing to revert the document to the version saved on disk.
Now also when the user tries to load the document when it's already loaded.

see r32170 and r32485.

(No status entry needed).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 00:33:20 +00:00
Enrico Forestieri
756862c37c Fix bug #6382: Wrong cursor placement when inserting math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32480 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 18:05:12 +00:00
Vincent van Ravesteijn
4b5f45a6b9 Restore the encoding after messing with it in r32418.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32456 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 14:18:46 +00:00
Vincent van Ravesteijn
ad291caa99 Correct encoding (Hope it works).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32455 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 13:49:59 +00:00
Vincent van Ravesteijn
3cd6a2b0b7 branch: Fix bug #740: Wish for added menu item: File->Close all.
see r30882, r30883, r30890.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32454 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 13:27:21 +00:00
Jürgen Spitzmüller
2545764716 Simplify the definition of multi-accented polytonic Greek, patch by Günter Milde.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32451 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 08:26:52 +00:00
Vincent van Ravesteijn
443846282c branch: Fix bug #6365: tex2lyx uses wrong encoding in the preamble.
Everything is ok while reading the file, but when the lyxfile is written, only the first byte of a double-byte character is written to the file. This is because t.character() is sort of defined as cs_[0] in which cs_ is a docstring. This thus seems to fail for multi-byte characters.

see r32441.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32442 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-09 13:50:14 +00:00
Vincent van Ravesteijn
45c3ece046 branch: Fix bug #6113: Customized font color in footnote is not rendered in LyX.
It seems we realized the font in the wrong order. If the layout font specifies "Font Size Small", we should be able to make it large if we want to.

see: r32129 and r32413, and
http://thread.gmane.org/gmane.editors.lyx.devel/122682

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32437 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-09 02:15:51 +00:00
Jürgen Spitzmüller
00085df291 indicate that we're opening a dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32429 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-08 08:34:18 +00:00
Pavel Sanda
625879d3c2 Backport fixes for #5211 - r32179, r32180 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32428 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-08 02:07:48 +00:00
Vincent van Ravesteijn
2b81ec5c0d branch: Do not save an emergency file after choosing to revert the document to the version saved on this.
see r32170.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 22:00:56 +00:00
Vincent van Ravesteijn
e0c1663e39 branch: Fix bug #4360: Instant preview does not render formulas which contain math-macro from input file.
see r32157, r32200, r32352 and r32353.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32418 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 21:56:58 +00:00
Vincent van Ravesteijn
e97f967744 branch: Fix bug #2179: GuiErrorList resets to first item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32417 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 21:46:09 +00:00
Vincent van Ravesteijn
c736659a90 branch: Fix bug #6356: Reloading image does not work for compiling.
- Add a FileName::refresh function and replace one call to lastModified which was just meant to refresh the file info.

- Refresh the file info, otherwise InsetGraphics::latex might still think that the file does not exist.

see r32354 and r32355.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32415 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 21:37:48 +00:00
Jürgen Spitzmüller
e854d3c75c ParagraphUi.ui: layout fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32383 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 07:06:43 +00:00
Jürgen Spitzmüller
1c3220bf98 Some spelling fixes, from Sven Hoexter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32382 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 07:06:23 +00:00
Enrico Forestieri
8e8ce41eeb Fix bug #6351: Crash when editing the unit on a number
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32214 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-26 13:47:20 +00:00
Vincent van Ravesteijn
4cb580a1c0 branch: Move the contents of a row into the caption when setting a row as a longtable caption.
see r32156.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32172 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-23 23:26:33 +00:00
Vincent van Ravesteijn
f1dfaa091b branch: Unset all caption rows and dissolve all captions in a long-table when converting to a normal table.
see r32155.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32171 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-23 23:21:57 +00:00
Enrico Forestieri
dcd06297ec Fix bug #6342: Pasting-bug in math-mode sub- and super-scripts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-23 12:47:27 +00:00
Vincent van Ravesteijn
fe6a944bdd branch: Fix bug #5754: Caption inset not dissolved when unsetting longtable caption.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32154 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 18:35:36 +00:00
Vincent van Ravesteijn
bd5efd7b53 branch: Allow PgUp and PgDwn to put the cursor on the first or last row.
see r32036.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32152 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 12:56:39 +00:00
Vincent van Ravesteijn
380ae9c292 branch: Another fix for bug #5061: A slight correction of the patch shown described in http://permalink.gmane.org/gmane.editors.lyx.devel/113507.
No status.16x entry needed.

see r31791.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32151 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 12:44:53 +00:00
Vincent van Ravesteijn
feb5aae02b branch: Fix bug #6310: Incorrect latex for sparse matrices with vertical lines.
see r32145.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32150 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 12:12:16 +00:00
Jürgen Spitzmüller
20dfac9c5e revert r31271
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg155843.html.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32149 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-22 09:52:03 +00:00
Vincent van Ravesteijn
e0466fe56b Do not allow a program listing to be in a font changing command.
see r32124.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32126 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-21 15:09:10 +00:00
Vincent van Ravesteijn
0496ff98e8 branch: Fix bugs
- #6161: Wrong cursor position in RTL text
- #6165: Assertion when clicking on left side of inset in RTL text

If the first character is a separator, we are in RTL text. This character will not be painted on screen and thus we should not count it and skip to the next.

This bug pretty much destroyed cursor placement in RTL text on a row with large gaps.

see r32116.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32121 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-21 14:29:36 +00:00
Vincent van Ravesteijn
594f47b4b7 branch: Fix bug #6320: LyX goes to infinite loop when selecting document parts.
Set the boundary member correctly when the cursor goes to an 'empty' row.

No status.16x entry needed as this was introduced by r31880.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32111 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 23:12:15 +00:00
Vincent van Ravesteijn
5e0d1703c6 branch: Fix bug #6327: Crash in new file and press PgUp button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32102 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 22:28:51 +00:00
Peter Kümmel
c80cd62b8b fix merged build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32080 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 14:42:12 +00:00
Jean-Marc Lasgouttes
4b350d031a fix autosave crash on Snow Leopard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32055 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-16 23:17:03 +00:00
Enrico Forestieri
a70ece44ed Clarify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32052 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-16 14:13:24 +00:00
Enrico Forestieri
5ba1dbb453 Fix bug #6208: macro crash.
The fix consists in not updating the macro while it is being edited,
and this is accomplished by the changes in MathData::updateMacros().
However, when clicking away with the mouse I was getting another crash,
which is cured by the changes in MathMacro::notifyCursorLeaves().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32050 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-16 13:59:23 +00:00
Enrico Forestieri
bdb91ff5cc Fix bug #5530: LyX expansion in math-macro overwritten by default one.
Changes backported from r31873, r31898, 31905, r31907, and r31998.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-15 17:38:36 +00:00
Jürgen Spitzmüller
b47fa6f8f3 * MathsUi.ui: grammar fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32011 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-15 15:45:49 +00:00
Uwe Stöhr
506ed7c135 - MathsUi.ui: fix again another typo in tooltip
- po-files: remerge
- de.po: new translations

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32010 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-15 15:12:36 +00:00
Uwe Stöhr
d3a9ee38e1 MathsUi.ui: add tooltips
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32009 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-15 14:56:19 +00:00
Jürgen Spitzmüller
27402a1559 * GuiAbout.cpp:
- unmask e-mail addresses in the credits pane.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31935 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-10 14:45:02 +00:00
Peter Kümmel
765362f7a2 cmake: fix merged build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31923 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-09 15:31:28 +00:00
Vincent van Ravesteijn
f38483d441 branch: Fix bug #6237: The boundary has to be set correctly when moving up with a selection. If not, the cursor will remain on the same row when there are two e.g. displayed equations after each other. This will cause an infinite loop when SCREEN_UP is executed.
(I added a small extra safety measure to not change the logic resulting from r31864. I'm not sure it can harm.)

see r31863, r31864.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31880 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-06 18:08:06 +00:00
Pavel Sanda
59cfb45de0 Backport fix for #3852.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31879 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-06 16:09:12 +00:00
Enrico Forestieri
d3e25253c3 Better fix for bug #6270. The outer braces are swallowed only for user
defined macros, so better use a brace inset only when strictly needed.
No status.16x line is necessary.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31871 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-06 14:47:27 +00:00
Vincent van Ravesteijn
294247c93a branch: Fix bug #5968: Assertion while reading a document with multiple equation labels.
This is another ad-hoc solution for the problem of a zero buffer pointer while reading a document or when using cut&paste.

This simple solution would be suitable for branch.

see also e.g. r29085, r28319, bug #5688, r31861.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31862 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-05 12:33:59 +00:00
Vincent van Ravesteijn
2c615002b1 branch: Fix bug #6193: Crash when navigating away from an empty super/subscript.
see r31758.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31860 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-04 23:11:03 +00:00
Jürgen Spitzmüller
9c1bd19887 fix bug 6298: impossible to create boxes with a custom width:
* LengthCombo.{cpp,h}:
	- new method to reset the combo to initial state
* GuiBox.cpp (setSpecial):
	- reset width length combo properly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31840 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-03 15:00:32 +00:00
Vincent van Ravesteijn
8b4505cb09 branch: Fix bug #5063: We don't want the combo boxes to adjust to the contents. Also, make the logic exactly the same for all comboboxes.
see r31821.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31833 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-02 18:53:15 +00:00
Vincent van Ravesteijn
792f7b6299 branch: Fix bug #6292: Ensure the current language is set correctly after dissolving an Inset.
see r31790.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31832 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-02 17:43:08 +00:00
Vincent van Ravesteijn
be86dbbd39 branch: Fix bug #6297: Use of Fraktur font in boxed equation does not automatically include amssymb.
see r31819.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31831 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-02 17:36:53 +00:00
Vincent van Ravesteijn
b77e72f325 branch: Fix bug #5061. Fix the positioning of the cursor in some cases with mixed RTL and LTR text (bug 5061).Patches from Dov (a long time ago).
see: r30765 and
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/branches/BRANCH_1_6_X@31757 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-27 00:01:15 +00:00
Vincent van Ravesteijn
a7850e7524 branch: Fix bug #6280: Wrong context menu is opened in an auto-opened inset.
see r31697 and r31728.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31750 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-26 16:55:31 +00:00
Pavel Sanda
b20d162681 Squeeze warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31733 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-25 09:58:15 +00:00
Jürgen Spitzmüller
18a9c10c94 * PrefDisplayUi.ui: add tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-25 09:13:51 +00:00
Vincent van Ravesteijn
ea5e81651a branch: Fix bug 6129: Show paragraph marks / pilcrows.
see r31155, r31157, r31159 and r31168.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31715 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 17:10:48 +00:00
Enrico Forestieri
fe41e57d12 Backport cumulative fix for bug #6284.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31710 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 16:15:29 +00:00
Vincent van Ravesteijn
4c0db93e40 branch: Fix the painting of the last character of a paragraph. That is either the added/deleted paragraph breaks in change tracking or the to-be introduced pilcrow marks.
see r31154.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31702 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 11:08:00 +00:00
Vincent van Ravesteijn
54fc638382 branch: Do not remember documents for next startup when closing a window but not closing LyX.
see r31148.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31701 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 10:57:29 +00:00
Vincent van Ravesteijn
9610852f65 branch: Fix bug #2972: Static EndLabelStrings were not painted correctly.
see r30962 and r31205.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-24 10:32:26 +00:00
Jürgen Spitzmüller
f68a897158 * LaTeXFeatures.cpp:
- do not eat space at the beginning of \lyxadded macro (bug 6282).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31693 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 09:04:15 +00:00
Uwe Stöhr
41d659ee57 tex2lyx/preamble.cpp: fix two issues:
- when languages are given in the documentclass options _and_ the babel options, babel takes the last language option of the \usepackage call
 - there is no quote language "ngerman", it is in both cases "german"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31688 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-20 20:19:15 +00:00
Enrico Forestieri
a087ee5e44 Restore the master language at the end of an included child document
instead of the child document language.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31678 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-19 15:32:43 +00:00
Pavel Sanda
f6b2944e41 I was too fast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31663 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:56:58 +00:00
Pavel Sanda
2672494b9c squash gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31662 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:55:03 +00:00
Pavel Sanda
614b5fdd14 Backport change of emergency string.
I suppose no status entry needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31661 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 19:50:59 +00:00
Jean-Marc Lasgouttes
543d12d62e Improve on fix r31610 for ticket #5702. Replacing DefaultModule with
Input did not preserve the loading order of modules.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31639 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:25:43 +00:00
Jean-Marc Lasgouttes
783b1434ea Fix #6276: tex2lyx fails to import captions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-15 14:09:11 +00:00
Jürgen Spitzmüller
4c6d117bd9 * add missing blank.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31627 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 21:31:36 +00:00
Pavel Sanda
f1ed78e722 Backport fix for bug #6255.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31620 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-14 20:05:30 +00:00
Jean-Marc Lasgouttes
e74dc919ed fix the code introduced in r30896 to look for the right files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 15:18:09 +00:00
Jürgen Spitzmüller
9683aa4ef1 * Changes.cpp (getLaTeXMarkup):
- pass references, not copies.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31605 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-13 07:08:54 +00:00
Jürgen Spitzmüller
0cdc91666d Assure the author is encoded correctly in the LaTeX output of change tracking markup (bug 6225).
Patch reviewed by Jean-Marc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31603 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 16:34:58 +00:00
Jean-Marc Lasgouttes
a8ab4e22e1 backport r31600 (bug #6273)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31601 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 15:50:39 +00:00
Vincent van Ravesteijn
9078a80264 Fix inset-begin and inset-end. Now, if the cursor was at the beginning of a paragraph in the middle of the inset, inset-begin would jump out of the inset.
See r31199.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31599 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 08:28:02 +00:00
Vincent van Ravesteijn
a18553e403 branch: Fix bug #5991: Select function in environments.
C-M-a now selects the contents of an inset, if the whole inset is already selected, it will jump out the inset and selects everything in that inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31598 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 08:21:32 +00:00
Enrico Forestieri
ee2bbb8d89 Fix bug #6270: Bug in parsing selection as math macro argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31594 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:37:31 +00:00
Enrico Forestieri
8f2106783f Fix bug #6250: LyX 1.6.4 crashes when copying Japanese text in math to clipboard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-11 15:26:57 +00:00
Jürgen Spitzmüller
e74ee2fc3e revert unintended commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31571 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:47:30 +00:00
Jürgen Spitzmüller
7dc9eab62b * InsetExternal.cpp:
* GuiExternal.cpp:
	- do not crash if the list of external templates is empty (bug #3974).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:42:32 +00:00
Jürgen Spitzmüller
41924f48f7 * GuiExternal.cpp:
- do not use invalid index if a template is not found. Fixes crash bug #6259.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-09 12:11:13 +00:00
Enrico Forestieri
a08af1f602 Fix bug #6264: Broken undo of removed script in mathed when both scripts are present.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-08 14:21:55 +00:00
Pavel Sanda
b574759cf2 Backoport fix for bug #5977 - Make Close button on tabs configurable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31553 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-07 10:02:30 +00:00
Vincent van Ravesteijn
886071393b branch: Fix bug #6108: Crash on menu key
The wrong context menu is being expanded, because the location where the context menu is requested is computed wrongly by Qt. 

Actually, the problem seemed to be in InputMethodQuery??. For some reason, the box of the cursor is shifted right under the cursor box.

The menu key uses InputMethodQuery?? to locate the context menu, just as he Japanese input method locates the box with possibilities.

1.6.x shows the same behaviour, but in that case it doesn't crash because the spellchecker entry does not exist there, but there might be another case in which it will crash.

see r30797.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31531 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 18:20:55 +00:00
Vincent van Ravesteijn
089945a888 branch: Fix bug #4906: Files always reopened in tabbed window on launch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 14:53:31 +00:00
Enrico Forestieri
7c4f9dc43b Fix bug #6258: LyX incorrectly interprets tetex warnings as errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31517 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 16:11:57 +00:00
Jürgen Spitzmüller
89bf8d2c8a * LyXView.cpp (reloadBuffer):
- adjust r31511 to prevent null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 14:33:05 +00:00
Jürgen Spitzmüller
68141ce03c * LyXFunc.cpp (reloadBuffer):
- make sure a child is re-allocated to its master after reloading (bug 6233).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 14:24:20 +00:00
Jürgen Spitzmüller
e215fa5131 * BufferView.cpp (gotoLabel):
- stop iterating over the list of labels after the label was found.
	  This also prevents a crash if the found label is in a child (and the
	  pointers become invalid) [bug 6252].

Trunk already has this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31503 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 10:31:09 +00:00
Pavel Sanda
e4ec45fba2 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-03 23:52:19 +00:00
Jean-Marc Lasgouttes
2d950f264a backport r31489: Fix support for optional argument of \bibitem in tex2lyx (bug 6249)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31490 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-02 10:36:34 +00:00
Enrico Forestieri
391659b5af Fix bug #6246: InsetMathKern is broken
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31483 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-28 22:11:02 +00:00
Vincent van Ravesteijn
d082cacdfd branch: Fix bug #6188: Assertion with multiple views of same document.
We have to prevent that two views share the same ID, also when an id was supplied (because we can open the same document twice).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-25 14:26:04 +00:00
Jean-Marc Lasgouttes
7911dd2269 backport r31439 (second part of #6142)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-25 12:43:09 +00:00
Richard Heck
49ed00e105 Fix doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31461 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 11:57:21 +00:00
Jürgen Spitzmüller
adc876029f * LaTeXFeatures.cpp: fix whitespace issue after Greek character.
No status entry needed, this bug slipped in after 1.6.4.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31454 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 10:34:37 +00:00
Jean-Marc Lasgouttes
9cd1131c0c backport r31222 (part of #6142)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31437 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 21:03:05 +00:00
Uwe Stöhr
1d5c704360 GuiPrefs: fix #6176 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31429 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 11:58:31 +00:00
Enrico Forestieri
3fa9c60f44 Fix bug #6215 (spotted by Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31422 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 23:07:16 +00:00
Richard Heck
da444e0bf0 Backport r31395, fixing 6227 for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31414 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 15:18:30 +00:00
Enrico Forestieri
d59295680b Properly reset the stream encoding after an environment. Fixes bug #6216.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 15:49:56 +00:00
Enrico Forestieri
6ffeab01b7 Implement the LyXServer on Windows.
In order to enable the server, specify the LyXServer pipe in
Tools->Preferences->Paths. The path to be entered there must have the
form "\\.\pipe\nameofyourchoice" (without quotes). After that, you can
send commands to LyX. For example, if the pipe path is \\.\pipe\lyxpipe,
typing the following in a terminal:

echo LYXCMD:test:file-open > \\.\pipe\lyxpipe.in
type \\.\pipe\lyxpipe.out

brings up the file dialog and returns the acknowledgment from LyX.
Beware of spaces when using cmd.exe. For example, the following:
echo LYXCMD:test:file-open:foo.lyx> \\.\pipe\lyxpipe.in
will correctly load the document named foo.lyx, but
echo LYXCMD:test:file-open:foo.lyx > \\.\pipe\lyxpipe.in
(notice the space before the redirection) will try to load a
document whose name is "foo.lyx .lyx" because cmd.exe will also
pass the space (sigh).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31389 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 20:49:30 +00:00
Enrico Forestieri
3fda114784 Fix bug #6110.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31385 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 13:53:53 +00:00
Jürgen Spitzmüller
bd5d83a578 Fix bug 6179 ("|" in index entries not embraced in ERT by lyx2lyx).
* OutputParams.{cpp,h}:
	- new param inIndexEntry
* InsetIndex.cpp (latex):
	- set param.
* InsetErt.cpp (plainText):
	- output active chars in IndexInsets

* lib/lyx2lyx/lyx_1_6.py:
	- embrace "|" in ERT when converting old index entries to collapsables.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-10 12:10:18 +00:00
Vincent van Ravesteijn
869116e9d1 branch: Fix bug #6205: Fix a bunch of assertions.
The first thing that bformat does is to check whether the string contains "%1$s". Otherwise it asserts.

Why didn't we see this happen before ? This was revealed by the emergency saves that Richard introduced in the Buffer dtor.

see also r31062.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31344 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-08 11:57:07 +00:00
Vincent van Ravesteijn
4a337c89f1 branch: Fix bug #6112: Crash when searching for a string that is found in a table, while the cursor is in math (bug #6112).
see r31339.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31342 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-08 09:38:05 +00:00
Vincent van Ravesteijn
660c977512 branch: Fix bug #2969: Double labels appear on empty lines of multi-line equations.
This reverts part of r10553. There, an extra '//' was added when the last line was empty. However, this really makes an extra line and that is visible when the lines have a line number. The bug #2067 that would have been fixed by this does not seem to 'exist' anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31333 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 14:42:29 +00:00
Pavel Sanda
68b323f62d Backport bugfix for #2045.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:44:49 +00:00
Vincent van Ravesteijn
95012dd5e7 branch: Fix bug #3997: RTL paragraphs are painted slightly too far to the left
In the computation of the row width, the last space on a row was included. However, this space is not drawn on screen and shouldn't contribute to the width. As a result all rows in a paragraph were painted slightly too far to the left, except the last on.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:40:00 +00:00
Vincent van Ravesteijn
dc908295ff branch: Fix bug #5796: Context menu of one inset asks status of another inset.
Store the position for the context menu on mouse press. This is also done in qt but then only on the widget level. 

This avoids that e.g. the edit menu will call getStatus() of math (which causes a crash actually).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:33:00 +00:00
Vincent van Ravesteijn
8d68226144 branch: Fix bug #6134: Reload context menu for graphics inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 11:18:52 +00:00
Vincent van Ravesteijn
90cbb1225f branch: Fix bug #6119: Keyboard map still shows up after deleting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:42:42 +00:00
Vincent van Ravesteijn
21a5043183 branch: Fix bug #6125: Float positioning dialog enables invalid options for subfloats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31321 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:14:57 +00:00
Jürgen Spitzmüller
4f3f4eed15 * GuiRef.cpp:
- use itemDoubleClicked() instead of itemActivated(). The latter is traditionally defined as single click
	  on UNIX, which is not desired here (bug 6204)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31320 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:06:18 +00:00
Vincent van Ravesteijn
0113ce8310 branch: Fix #6045: Possible to insert table floats into figure floats.
The lfuns, LFUN_FLOAT_INSERT and LFUN_WRAP_INSERT are now only enabled when they should be.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31318 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 08:40:40 +00:00
Pavel Sanda
0c0b77274a Backport bugfix for #2120.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 13:29:56 +00:00
Richard Heck
d7732ba4ee Better message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31276 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:34:02 +00:00
Jürgen Spitzmüller
5be07da6e5 backport r30112:
Author: spitz
	Date: Mon Jun 15 17:57:54 2009
	New Revision: 30112
	URL: http://www.lyx.org/trac/changeset/30112

	Log:
	* Paragraph.cpp:
      	  - do not embrace list items. According to the comment, 
        	    this was only done to escape brackets, but brackets
       	    are embraced anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31271 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 11:21:25 +00:00
Jürgen Spitzmüller
f9834b6b20 Backport r30619:
Author: spitz
	Date: Thu Jul 16 08:19:25 2009
	New Revision: 30619
	URL: http://www.lyx.org/trac/changeset/30619

	Log:
	* attempt to fix polytonic Greek (with mutli-accents) [bug 5976].
	* add extended Greek chars to unicodesymbols [bug 4997].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31270 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 11:07:52 +00:00
Jürgen Spitzmüller
7c42ec6c89 * PrefSpellcheckerUI.ui: add tooltip (bug 6185).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31269 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 09:36:01 +00:00
Richard Heck
652ef4b78b Backport r31056 and 31057, to get a proper emergency save when dirty buffers
are destroyed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31259 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 16:02:08 +00:00
Richard Heck
09f0e5bbb3 Revert r31117 to prepare for proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31258 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 15:41:53 +00:00
Richard Heck
2c80f1d9d1 Fix 1492 for branch, backporting 28856.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31256 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 13:55:59 +00:00
Jürgen Spitzmüller
d1fb78f27d * revert r30900.
This should re-enable the prefs and aboutlyx menu items on the Mac, but re-introduce bug 1720.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-31 07:37:56 +00:00
Vincent van Ravesteijn
70ab7f2585 branch: Fix bug #6162: Crash after close window with master/child.
A copy-paste error. GuiView::disconnectBuffer() was exactly the same as GuiView::disconnectBufferView().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 09:17:10 +00:00
Vincent van Ravesteijn
8671278ac0 branch: Fix a crash when closing LyX with a master and a child open (and the master is in the second tab).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:14:34 +00:00
Vincent van Ravesteijn
afa885378c branch: Fix bug #6158: Crash when entering math in tabular.
We have to determine whether we are in an empty cell before we dispatch the lfun to the inset. Otherwise we determine whether the math is empty and if so, we then go to the next cell in the math inset. This cell doesn't exist probably.

see r31121.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31139 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 10:45:23 +00:00
Richard Heck
c44061a21e Fix encoding problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 13:55:13 +00:00
Richard Heck
412cd14027 Emergency save of dirty Buffers when they are destroyed.
Better fix to be committed for 1.6.5.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31117 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 13:40:17 +00:00
Enrico Forestieri
a91c42b7db Fix the dataloss problem when shutting down Windows (part of bug #5525).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31114 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-18 11:49:00 +00:00
Vincent van Ravesteijn
b92e1c3a96 branch: Adjust the work-around for bug #5957.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31032 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 15:08:04 +00:00
Vincent van Ravesteijn
40aa853de5 branch: Disable assertion in branch
Just for safety. 

(Are they turned off in the Windows release version yet).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31009 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 14:27:55 +00:00
Vincent van Ravesteijn
7ddff39db7 branch: Fix bug #6126: Assertion with page down in Math manual.
If we correct the row where we put the cursor after a PgDn or PgUp command, then we should also adjust the y-coordinate that is used later for checkInsetHit and inset->editXY. 

However, this code doesn't function like it should, but that is bug #4382.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31008 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 14:25:01 +00:00
Jürgen Spitzmüller
e886b9feb3 * GuiView.cpp: disable symbols dialog in read-only mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-12 11:03:41 +00:00
Jürgen Spitzmüller
51d5de4ebe Fix bug 5946: Infinite loop when opening file with two files opened with the same name
This simply changes the appearance of the display path (in the tab header) in one detail: if the file suffix is not "lyx" (but "lyx15" etc.), the file is displayed with the extension. This fixes the problem (which is due to identical display paths), and it adds, IMHO, useful information to the GUI.

Patch reviewed by vfr.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30978 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-11 12:34:41 +00:00
Uwe Stöhr
bee4db9ae3 tex2lyx/preamble.cpp: this one should not have been reverted in r30964
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30973 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 23:31:54 +00:00
Uwe Stöhr
251e6ab0a6 tex2lyx/preamble.cpp: revert r30167 and r30449 as discussed in #605; I'll bring this topic now to the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30964 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 00:05:03 +00:00
Pavel Sanda
2b56aa6f2d Backport r30933
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30943 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 15:45:01 +00:00
Vincent van Ravesteijn
260d52f5a3 branch: Remove black box around GuiWorkarea? which is visible with Qt4.5.
see r29861.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30907 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 16:22:08 +00:00
Vincent van Ravesteijn
7fd27c3b81 Some improvements for the math context menu:
- hide "Number this line" for single line equations,
- set flag for LFUN_MATH_MUTATE.

see r29762 and r29764.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30906 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:56:00 +00:00
Vincent van Ravesteijn
75e66e9d4c branch: Fix a few enable/disable problems for longtables:
- set header, set first-header-empty, unset first-header-empty,
- set header, set first-header-empty, unset header

The same also for footers.

see r29716.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30905 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:29:36 +00:00
Vincent van Ravesteijn
6c7b0b67b3 branch: Add the emf and wmf graphics format as parameters to LFUN_PASTE.
see r29509.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30904 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 15:05:32 +00:00
Vincent van Ravesteijn
c981573a4c branch: Fix bug #4464: Missing autoscroll when selecting by mouse
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30901 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:47:59 +00:00
Jean-Marc Lasgouttes
750d6b6a52 backport r30557 (bug #1720)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30900 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:38:27 +00:00
Vincent van Ravesteijn
39ba733bc1 branch: Work-around for bug #6034: Applying preferences confuses window about its size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30899 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:25:48 +00:00
Jean-Marc Lasgouttes
0f655bc3eb backport r30389 (bug #6043)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30898 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 13:20:48 +00:00
Richard Heck
5ba684315e Work around bug 5702 a bit: Make tex2lyx treat the DefaultModule tag as
an Input tag.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30896 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 12:19:59 +00:00
Jürgen Spitzmüller
c35cfda727 Catch encoding exception when performing instant preview on an uncodable char (bug 6116).
* MathStream{.cpp, h}:
	- replace bool dryrun() by enum output that also knows whether the stream is for instant preview
* InsetMathHull.cpp:
	- tell the stream whether we use it for instant preview.
* MathString.cpp (write):
	- gracefully catch encoding exception for instant preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30894 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 05:24:57 +00:00
Enrico Forestieri
46a0021242 White space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30858 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-04 10:38:12 +00:00
Enrico Forestieri
51a3759899 Properly restore the file encoding after a LaTeX environment with local scope.
Fixes bug #5690: Hebrew file cannot be exported to dvi or pdf.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30849 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-03 18:40:48 +00:00
Enrico Forestieri
6674de3959 Avoid deferencing a null pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30806 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-30 03:24:00 +00:00
Enrico Forestieri
700dd75d5e Better fix for bug #5096: Language switch fails in environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30804 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-30 01:13:11 +00:00
Vincent van Ravesteijn
26d14890d6 Work-around for bug #5957.
see r30794.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30796 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-27 07:32:08 +00:00
Pavel Sanda
e8bd4f14a4 Fix monolithic builds
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 13:32:32 +00:00
Pavel Sanda
71b60a20b5 Fix warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30792 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 13:28:30 +00:00
Pavel Sanda
87c8b9cb42 Backport r30787
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30791 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 12:17:54 +00:00
Pavel Sanda
b2c73ae2bd Backport r30779
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30781 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-26 07:57:25 +00:00
Vincent van Ravesteijn
ea16d18b54 branch: Fix bug #4473: Incorrect LaTeX output for inter-word spaces.
This is a hack necessary because \\textcolor is a bit buggy.

see r30773.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30774 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 10:55:35 +00:00
Jürgen Spitzmüller
64a7513231 * Text.cpp (dissolveInset):
- perform updateLabels also after dissolving an empty inset (bug 6003).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30772 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 08:24:21 +00:00
Jürgen Spitzmüller
407c5742c0 * 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/branches/BRANCH_1_6_X@30770 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 06:20:31 +00:00
Vincent van Ravesteijn
06bb52c1af branch: Fix bug #5998: Crash when closing a LyX window with split views.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30762 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 20:23:17 +00:00
Jürgen Spitzmüller
5d2a712467 * TocWidget.cpp: disable sort option for TOC (bug 5983).
* TocModel.cpp: whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30761 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 14:03:22 +00:00
Richard Heck
975cbd3266 Bug 5522 for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30754 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 14:22:34 +00:00
Jürgen Spitzmüller
e98ca2362e * Validator.{cpp, h}:
- add usignedGlueLengthValidator

* GuiVSpace.cpp:
* GuiDocument.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/branches/BRANCH_1_6_X@30703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 05:32:03 +00:00
Vincent van Ravesteijn
2d257de986 branch: Fix bug #4177: Lyx fails to open files with a $ character in their name.
see r29587.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30662 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 09:19:04 +00:00
Vincent van Ravesteijn
0c259d8b23 Squeeze warning due to unrecognized escape sequence.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30651 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 18:32:29 +00:00
Vincent van Ravesteijn
af3fe8ab88 Fix bug #6070: Width unit cannot be set in tabular dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30650 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 18:28:00 +00:00
Jürgen Spitzmüller
79015cd542 * GuiApplication:
- typo and capitalization.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 15:40:23 +00:00
Richard Heck
fa5764df3d Fix bug 6076 for branch. And even include status.16x.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30643 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 14:01:21 +00:00
Enrico Forestieri
399324baec Fix bug #5096: Language switch fails in environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30628 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 13:02:50 +00:00
Vincent van Ravesteijn
1fda2e4577 branch: Fix the enabling of the custom page size field in GuiDocument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30626 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 12:35:31 +00:00
Vincent van Ravesteijn
d0d41147a7 branch: Fix bug #2213: GuiChanges? lacks "Previous Change" button.
see r29108, r29109, r29110, r29111, and r29115.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30597 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 10:08:56 +00:00
Pavel Sanda
9e6e4ebdd5 Backport r30581.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30596 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-15 07:31:22 +00:00
Pavel Sanda
ff23147186 Backport r30587
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 19:47:43 +00:00
Jean-Marc Lasgouttes
52bdc0abdd fix bug 6081
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:33:10 +00:00
Jean-Marc Lasgouttes
708a139d77 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30576 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:31:06 +00:00
Pavel Sanda
108586552a backport r30567
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30575 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:30:52 +00:00
Vincent van Ravesteijn
6f1642fe3e branch: Fix bug #5948: Copy as reference for equation labels.
see r29678.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30571 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:01:10 +00:00
Vincent van Ravesteijn
12cb76773d branch: Fix bug #5944: Scrolling isn't predictable.
The row in editXY is corrected when we're scrolling with PgUp and PgDn to make sure that the row where the cursor is places, is completely in the view.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 21:49:07 +00:00
Pavel Sanda
a277b8bd21 Backport r30536
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30538 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 10:48:48 +00:00
Vincent van Ravesteijn
e1bdd1b4ad branch: Fix bug #5435: DEPM is not executed when leaving an inset.
see r29585 and r29248.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30514 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 16:48:02 +00:00
Vincent van Ravesteijn
25aa3d4022 branch: Fix bug #5458: File reopens at LyX-start even though it was closed in previous session.
see r29596.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30513 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 16:01:38 +00:00
Enrico Forestieri
51521e44ab Honour preferences about automatic popup and inline completion when
pressing Ctrl-L in math mode.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:53:43 +00:00
Vincent van Ravesteijn
75dabc75f9 branch: Fix bug #5390. Copy from a deleted section with change tracking.
Do not accept the changes in the selection, if it is completely deleted.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:14:51 +00:00
Enrico Forestieri
5b103485d5 Fix bug #6063: Keylogger lyx::lyxbreaker: Crash in Math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30508 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 15:10:14 +00:00
Jürgen Spitzmüller
c608834725 * correct bug reference.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:46:32 +00:00
Jürgen Spitzmüller
d78bc34d3b * InsetTabular.cpp: fix bug 6057: longtable captions must always be in a first header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:43:30 +00:00
Vincent van Ravesteijn
4813d3ae41 branch: Fix bug #4952: Multiple cells pasting fails if cells are selected.
When the clipboard contains a tabular selection, dirty_tabular_stack_ is true. However, it is set to false when the user clears a selection (without copying). After this (mostly accidental) action, pasting the tabular contents goes wrong.

So, we only clear the dirty_tabular_stack_ flag when a 'real' copy to clipboard has been made.

see r29717, r29718, r29719



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30499 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:31:05 +00:00
Vincent van Ravesteijn
e49fed46fc branch: Fix bug #3918: "Toggle Outline" button does not toggle back when clicking 'x' button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30498 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 13:22:40 +00:00
Vincent van Ravesteijn
059d5ee830 branch: Fix bug #2034: Inconsistent behavior of cursor inside mathed.
When closing the macromode, do the same trick as in lines 835--838.

see r29686

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 17:57:25 +00:00
Vincent van Ravesteijn
4abaf35bad branch: Fix bug #3706: Mathed builtin/macro expansion not performed when clicking away.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 17:53:26 +00:00
Enrico Forestieri
955716dfa5 Fix bug #5923: Math macro expansion not performed when modifying the macro identifier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 14:48:16 +00:00
Uwe Stöhr
f1b3896cd0 tex2lyx/preamble.cpp: backport r30448 - (I simply forgot these 3 commands in r30167)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30449 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 13:05:13 +00:00
Enrico Forestieri
a8b29819e9 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/branches/BRANCH_1_6_X@30439 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 20:51:21 +00:00
Jürgen Spitzmüller
06caaf0528 * GuiLog.cpp: don't forget Package warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:20:03 +00:00
Jürgen Spitzmüller
315db2d1dc LogUi.ui: string redundancy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30429 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:06:20 +00:00
Jürgen Spitzmüller
7ba4a87bae LogUi.ui: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 16:00:24 +00:00
Jürgen Spitzmüller
28988d22bc * GuiLog.{cpp,h}:
* LogUi.ui:
	- add some basic navigation facilities.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 15:54:13 +00:00
Jürgen Spitzmüller
cfeab7476f * InsetBranch.cpp:
- fix display of "child only" suffix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30424 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 11:49:16 +00:00
Jean-Marc Lasgouttes
c88dd9924e Backport r30399 in order to fix #6013 (I am not sure how to be more cryptic yet still useful)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30413 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 11:03:41 +00:00
Jürgen Spitzmüller
a05115102e * NomenclUi.ui: set acceptRichText to false.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30403 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 12:27:51 +00:00
Jürgen Spitzmüller
c6c0c87eba * PreambleUi.ui:
- fix bug #3936: Paste into preamble gives wrong font size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 08:17:18 +00:00
Enrico Forestieri
09eb90bd3e Fix bug #6041: "tabular-feature align-" in a math-matrix.
Also fix display of centered vertical alignment status and smash
unnecessary debug output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30374 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 14:01:53 +00:00
Jürgen Spitzmüller
4ff130f073 * PrefLanguageUi.ui: correct tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-01 08:26:28 +00:00