Commit Graph

14933 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
364cc24033 Fix nr.3 of bug 4346.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28643 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-28 16:52:46 +00:00
Vincent van Ravesteijn
e09184fd5d branch: Fix bug 5765: http://bugzilla.lyx.org/show_bug.cgi?id=5765.
[visual cursor] Crash when cutting a figure caption and moving the cursor. 
Avoid negative positions. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 23:03:39 +00:00
Vincent van Ravesteijn
d39be32421 branch: Fix bug 5762: http://bugzilla.lyx.org/show_bug.cgi?id=5762.
[visual cursor] Crash when moving left in table in an RTL document 
Avoid negative positions. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 22:59:54 +00:00
Vincent van Ravesteijn
5f63e5539e branch: Fix the fix for bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346.
Synchronizing insets asserts with two views open

This finishes the change of http://www.lyx.org/trac/changeset/28587.

Replace the setButtonLabels functions that need a BufferView by buttonLabel functions. These functions modify the label at drawing time.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28624 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 20:05:48 +00:00
Vincent van Ravesteijn
10dfb843e5 branch: Fix bug 5806: http://bugzilla.lyx.org/show_bug.cgi?id=5806.
Branch names with spaces impossible

Read the whole line to catch the whole branch name.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28623 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 19:43:01 +00:00
Vincent van Ravesteijn
33228fba67 branch: Fix bug 5744: http://bugzilla.lyx.org/show_bug.cgi?id=5744.
Crash with completion in mathed.

When deleting an inset, the stored DocIterator might contain a reference to a non-existent Inset and Text. Therefore, if we detect that the depth has changed, we are (for sure) not in the same paragraph, but we should make sure not to ask for the innerParagraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28608 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 21:08:46 +00:00
Enrico Forestieri
7dc351d2a2 Fix bug 5541: http://bugzilla.lyx.org/show_bug.cgi?id=5541
This was due to a thinko in http://www.lyx.org/trac/changeset/26002


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28606 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 12:17:46 +00:00
Vincent van Ravesteijn
2f695eb436 branch: Fix bug 5797: http://bugzilla.lyx.org/show_bug.cgi?id=5797.
GetStatus of an InsetCollapsable asserts for unhandled commands.

When you add a command to the context menu of an InsetCollapsable of which the getStatus method does not handle this command, an assertion will be raised. This happens when getStatus doesn't handle a command it is forwarded to text::getStatus which asserts because cur.text() is the text the inset is in, while this is the text of the inset. So, we only dispatch to text_ if the cursor is inside the text_. This is not the case for e.g. context menus.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-24 08:47:20 +00:00
Vincent van Ravesteijn
c17f118c9c Fix bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346.
Synchronizing insets asserts with two views open

It changes the autoOpen_ member of InsetCollapsable into a map, such that an autoOpen value can be specified for each bufferView. Now, the assertion is avoided and insetCollapsable can be open in one bufferview and be closed in the other in very special cases that the cursor end up in a closed inset.

Compare with the MathMacro::editing_ member. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28587 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 18:44:43 +00:00
Vincent van Ravesteijn
a9e9e03ce9 branch: Fix a crash when removing the label of an included Program Listing.
See also:
http://www.lyx.org/trac/changeset/28563

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-20 19:36:19 +00:00
Jürgen Spitzmüller
6dc0daf570 * tex2lyx/preamble.cpp:
- fix thinko that caused tex2lyx to silently drop custom preamble entries in non-LyX-generated tex files.
	  (bug 5788). Patch from Jean-Marc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-20 09:46:31 +00:00
Vincent van Ravesteijn
97f2db1754 branch: Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
Reference dialog update crash for read-only documents. 
Comments: 
* -1 is a valid return of bufferCO->currentIndex() so we need to test for it. 
* set the correct enabling of the button in case no call to updateContents follows. 
* remove unneeded call to setFocusProxy. The widget is either disabled or the focus proxy is set in updateRefs. 

See also:
http://www.lyx.org/trac/changeset/28547

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 21:49:37 +00:00
Vincent van Ravesteijn
32c16755f3 branch: Fix a crash on exit when the child documents are already unloaded (r28492).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28550 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 00:07:53 +00:00
Jürgen Spitzmüller
cd497efe68 Fix bug 5699 (crash when using outliner in child document while the master is not opened).
The problem was that, if the master is not opened, no respective guiDelegate exists, and the functions that update the toc do not trigger. The fix is to update the child's toc backend and toc items directly in such cases.

All credits (for both detecting and fixing the problem) go to Vincent, who is going to submit the (slightly different) fix to trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28527 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 15:18:47 +00:00
Jürgen Spitzmüller
acab294b87 cosmetics/file encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28508 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 08:19:40 +00:00
Uwe Stöhr
13d6f8a0f7 InsetTabular.cpp: fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5777 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28505 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-15 17:33:49 +00:00
Jürgen Spitzmüller
934891187f * Buffer.cpp:
- avoid wrong console message while loading a child from a master
	  that lead me on the wrong track when debugging bug 5699.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28490 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 14:00:06 +00:00
Jürgen Spitzmüller
e04941cc26 * Buffer.h: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28488 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 13:50:02 +00:00
Uwe Stöhr
bfa5b4bb49 InsetTabular.cpp: I removed this code accidentally in r28473 - this would have been a regression, therefore readding it.
(Sorry for all my mistakes in committing the last days.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28484 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 23:45:45 +00:00
Uwe Stöhr
ca42256a10 InsetTabular.cpp: I was over eager in r28443: there can only be one caption, but several header/footer rows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28475 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 03:17:05 +00:00
Uwe Stöhr
1248178b79 InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5772 and http://bugzilla.lyx.org/show_bug.cgi?id=5773 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28473 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 00:30:38 +00:00
Jean-Marc Lasgouttes
66ae46b359 compilation fix on openbsd (bug 5650)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28449 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 17:15:16 +00:00
Jean-Marc Lasgouttes
6278f205e6 when painting a row, do not try to read the x data from insets that are not in the coordcache (bug 5666)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28446 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 14:44:35 +00:00
Uwe Stöhr
b920bcd5a5 - InsetTabular.cpp: partly reverting r28441, because I was wrong: it is totally valid to have several rows to be the header and also several rows can have a caption, my own EmebeddedObjects manual has examples for this - stupid me!
Bug 5752 is nevertheless still fixed.

- status.16x: add entry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28443 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 03:21:12 +00:00
Uwe Stöhr
0360ab7ff0 GuiTabular, InsetTabular: fix http://bugzilla.lyx.org/show_bug.cgi?id=5752
also for branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28441 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 01:31:17 +00:00
Vincent van Ravesteijn
8dac774bd5 branch: Fix bug 5753: http://bugzilla.lyx.org/show_bug.cgi?id=5753.
Crash when setting caption on a row with a multicolumn. 
If there is already a multicolumn on the row, the number of cells is different from column_info.size(). 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28436 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 17:52:52 +00:00
Vincent van Ravesteijn
3b70e49fd1 branch: Fix bug 5711: http://bugzilla.lyx.org/show_bug.cgi?id=5711.
Add button in Citation dialog grayed out when key matches the start of an already selected key. 
One parameter of match() was forgotten, so the MatchFlags? were basically ignored, i.e. the standard flags were used always. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28435 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 17:47:56 +00:00
Vincent van Ravesteijn
396000e56f branch: Fix bug 5766: http://bugzilla.lyx.org/show_bug.cgi?id=5766.
Crash when selecting a row and doing "Delete column" in a table with multicolumns. 
The check "column + 1 < column_info.size()" checks whether there is at least one column after this one. However, this check is no longer valid if we remove the column from column_info first. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28434 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 17:44:10 +00:00
Pavel Sanda
25ac6ec204 Backport fix for 5082
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 16:31:17 +00:00
Jürgen Spitzmüller
da5c1995b1 * TocWidget.cpp:
- improve performance with Outliner open with Qt >= 4.3 by using native methods instead of home-brewn code.
	  This should especially pay off on the Mac, if the Outliner shows as a drawer (bug 4443).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28431 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 08:24:55 +00:00
Vincent van Ravesteijn
ea02d9aac2 branch: Fix bug 5750: http://bugzilla.lyx.org/show_bug.cgi?id=5750.
Wrong width display of multicolumn cells.

When changing a custom width cell into a multicolumn, the isFixedWidth bool should be set to false. Now, the function setFixedWidth could only set isFixedWidth to true when needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28415 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 18:12:39 +00:00
Vincent van Ravesteijn
cd81bb016e branch: Fix bug 5764: http://bugzilla.lyx.org/show_bug.cgi?id=5764.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28413 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 18:03:24 +00:00
Vincent van Ravesteijn
af485b4896 branch: Fix bug 5604: http://bugzilla.lyx.org/show_bug.cgi?id=5604.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28412 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 17:56:52 +00:00
Vincent van Ravesteijn
ade35c0625 branch: Prevent assertion when closing LyX with GuiTabular open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28411 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 17:47:43 +00:00
Pavel Sanda
8be06af03e Backport 5767 bugfix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 11:41:31 +00:00
Vincent van Ravesteijn
f58b2efff9 branch: Fix bug 5573: http://bugzilla.lyx.org/show_bug.cgi?id=5573.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28398 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 13:08:12 +00:00
Vincent van Ravesteijn
2a2cb7fc33 branch: Add *.lyx16 to the file-open dialog file filter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28386 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-07 17:27:01 +00:00
Jürgen Spitzmüller
531bb4e207 Bug 5562: Fix command line output of subfigure insets by introducing new OutputParams and LaTeXFeatures members that tell the insets whether they are in a (sub)float.
Later, this can be replaces by a backpointer approach, as proposed at bugzilla (note that there are already similar cases such as InComment or InTableCell, so a backpointer approach would need to adapt the OutputParams methos anyway).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28383 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-07 12:28:04 +00:00
Jean-Marc Lasgouttes
2bf11a0fb5 Text::read: when reading a text inset with 0 paragraphs in it, create a dummy paragraph to avoid a crash (bug 4859)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28348 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 14:58:34 +00:00
Vincent van Ravesteijn
f9d3662c92 branch: Fix bug 5731. http://bugzilla.lyx.org/show_bug.cgi?id=5731
Insert column after the current one, then copy the current one to the new one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28343 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 23:34:05 +00:00
Vincent van Ravesteijn
a24b258abb branch: Fix bug 5736: http://bugzilla.lyx.org/show_bug.cgi?id=5736.
If the current TextMetrics does not contain the paragraph the cursor is in, the screen is recentered. Now, the current TextMetrics should be updated to one that does contain the cursor (as we have just recentered)..

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28342 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 23:30:26 +00:00
Jürgen Spitzmüller
1a00ebbd90 * LyXFileDialog.cpp:
- limit workaround for Qt bug that was fixed in Qt 4.3.4 to previous Qt versions
	  (related to bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28337 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 16:29:27 +00:00
Jürgen Spitzmüller
8560523368 please Jean-Marc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 13:50:42 +00:00
Jean-Marc Lasgouttes
b1996016e0 disable math functions in places like ERT insets (bug 5703)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28321 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 13:42:07 +00:00
Jürgen Spitzmüller
a776656636 * InsetMathHull (numbered):
- prevent NULL pointer (bug 5688).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28320 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 13:37:36 +00:00
Pavel Sanda
2aad3a89c1 Backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28277 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 12:26:50 +00:00
Jürgen Spitzmüller
ded7151f8c * GuiViewSource.cpp:
- enable widget in read-only mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28271 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-24 12:40:15 +00:00
Pavel Sanda
34c48bc081 Missing parts of the patch.
Sorry for this mess, my terminals baffled me :)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28265 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-21 20:19:34 +00:00
Pavel Sanda
19839d8c82 Backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28257 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-20 14:51:18 +00:00
Pavel Sanda
a13b78cf3c Fix http://bugzilla.lyx.org/show_bug.cgi?id=5697 .
Backport trunk fix http://www.lyx.org/trac/changeset/27780 for
bug http://bugzilla.lyx.org/show_bug.cgi?id=5389 .



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-20 13:50:04 +00:00
Vincent van Ravesteijn
3e8ce1cd0b branch: Avoid crash due to an infinite recursive loop when inset is NULL. Backport of r28242
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28245 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 15:30:31 +00:00
Jürgen Spitzmüller
cf22a26d5d * LaTeXFeatures.cpp:
- make lyxarrow robust, since \@ifstar is fragile.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28236 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:01:12 +00:00
Richard Heck
596098c6e8 Localize a couple strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28220 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 18:13:22 +00:00
Pavel Sanda
6eb290160b Backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28217 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 16:33:59 +00:00
Richard Heck
d3f7b1fef6 Backport 28190, 28191.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28215 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 15:55:32 +00:00
Richard Heck
be42d0ed00 Partially revert r28128, which was causing problems. A better version
follows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28214 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 15:53:31 +00:00
Pavel Sanda
c38fe91fbe Backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28208 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:56:59 +00:00
Vincent van Ravesteijn
90cb9cc852 branch: "Copy as Reference" in the context menu of a label.
New feature from Stefan. See also http://www.lyx.org/trac/changeset/27575.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28206 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:54:26 +00:00
Jürgen Spitzmüller
ca9723c2da * improve graphics group UI.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28199 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 08:06:04 +00:00
Uwe Stöhr
9158749b08 InsetHyperlink.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5686 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28196 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 05:29:58 +00:00
Jürgen Spitzmüller
d44dc8f129 * environment.cpp:
- correct return value of setenv.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28183 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 14:46:35 +00:00
Pavel Sanda
8bc907d5ad Backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28180 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 22:52:18 +00:00
Jürgen Spitzmüller
e1240b8e0e * configure.ac:
- use ISO format for LYX_DATE
* GuiAbout.cpp:
	- make release date translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28174 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 14:01:37 +00:00
Jürgen Spitzmüller
d72c575b1f * GuiBox.cpp:
- remove the useless "none" special length from the combo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28157 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:40:36 +00:00
Jean-Marc Lasgouttes
9af89bbb3e Fix bug 4741: Pasting with middle mouse button into read only document works
http://bugzilla.lyx.org/show_bug.cgi?id=4741

Create a new LFUN selection-paste (to paste the internal selection), and bind
middle mouse button to
    command-alternatives selection-paste ; primary-selection-paste paragraph



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28156 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:32:59 +00:00
Jürgen Spitzmüller
7890255bf8 * GuiBox.cpp:
- fix enabling behaviour of height widgets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28155 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:25:52 +00:00
Pavel Sanda
0d8ca0d309 Backport LFUN_VC_COMMAND
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28151 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 10:41:20 +00:00
Jürgen Spitzmüller
ab7517af1a * LengthCombo.{cpp, h}:
- use model/view infrastructure to store reliable data
	- use real unit name, not i18n strings, for all comparision purposes
	- remove unit "mu" in default contruction (bug 5682)
	- add some helpers to add and remove units

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28147 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 10:21:14 +00:00
Jürgen Spitzmüller
8e509389eb * load CJKutf8 package, if available, for CJK documents in utf8 encoding
(first part of fix to bug 5386)

* also fix the mess in LaTeXConfig.lyx caused by rev. 28115. Sorry about that!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28143 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 09:28:05 +00:00
Richard Heck
54cd1dda02 Improve the rendering of BibTeX data in InsetCitation. This backports a handful
of commits from trunk.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28128 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 15:30:26 +00:00
Jürgen Spitzmüller
99b6211914 * lengthcommon.cpp:
- adjust line length.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28120 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 09:21:14 +00:00
Jürgen Spitzmüller
22395911d8 * use ulem instead of soul for change tracking
(fixes bugs 5091, 5480, 5647).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28115 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 08:03:06 +00:00
Jürgen Spitzmüller
b3141282ee * qt_helpers.cpp:
- fix function Length lengthFromWidgets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28113 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 06:48:49 +00:00
Uwe Stöhr
e8a81a1499 - lengthcommon.cpp: separate the translations for mu
- remerge po.files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28108 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 01:57:07 +00:00
Bo Peng
fd2a1fc368 Fix a LaTeX export error that prevents the inclusion of two program listings that differ only by file extension (bug 5681).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28101 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 19:53:48 +00:00
Enrico Forestieri
67bda0c384 Fix layout of the View Source window when using Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 12:13:54 +00:00
Jürgen Spitzmüller
07221b882b * LaTeXFeatures.cpp:
* InsetSpecialChar.cpp:
	- make the menu separator direction aware (in LaTeX output), bug 3560.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28086 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 08:37:11 +00:00
Jürgen Spitzmüller
361c958427 * InsetSpace.cpp: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28070 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-10 17:06:59 +00:00
Uwe Stöhr
3b7a5f26c4 \hspace support in math also for branch, fixes http://bugzilla.lyx.org/show_bug.cgi?id=2558
(Documentation follows later.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28064 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-10 15:54:18 +00:00
Enrico Forestieri
c9b7803f6e Fix bug 5665
http://bugzilla.lyx.org/show_bug.cgi?id=5665


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28061 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-10 14:28:10 +00:00
Pavel Sanda
7e8d24a53a Branch too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28053 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 08:47:35 +00:00
Pavel Sanda
d05f65c91a one minute late
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28049 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:47:37 +00:00
Jürgen Spitzmüller
b091d6911d * GuiView.cpp (insertPlaintextFile):
- set a proper file filter in the file dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28046 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:40:21 +00:00
Pavel Sanda
6f1c72bdc6 Backport 5648
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28044 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:33:51 +00:00
Jürgen Spitzmüller
f96a5217e8 * GuiDocument.cpp (dispatchParams):
- do not set master buffer and warn if the master does not include child
	- issue warning if the master could not be loaded.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28035 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 08:01:24 +00:00
Jürgen Spitzmüller
07dc0b8377 * TocWidget: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28025 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 14:50:10 +00:00
Jürgen Spitzmüller
84c36ca1a9 * Buffer.cpp:
- prevent potential null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28022 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 11:07:12 +00:00
Jürgen Spitzmüller
765adf1dd0 * Buffer.cpp:
- do not set master_file as master buffer if the document s no real child (bug 5653).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28021 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 07:58:16 +00:00
Vincent van Ravesteijn
86bd6550e1 branch: Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27997 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 14:37:52 +00:00
Vincent van Ravesteijn
7f77edbeac branch: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5560.
Allow users to paste text from e.g. MS Word. This text can be paste from clipboard both as text and as graphics. LyX should prefer to paste it as text.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27996 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 14:29:40 +00:00
Enrico Forestieri
f6ce0ddbdc * Encoding.cpp (fromLaTeXCommand): fix bug when the string passed
to the method does not match any of the known unicode symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27970 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 13:01:56 +00:00
Pavel Sanda
cf1205de05 Backport 5626 fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:53:13 +00:00
Jürgen Spitzmüller
07ad6b8d9d * GuiPrefs.cpp (apply):
- unbind existing shortcuts before binding new ones (bug 5444).
	  Patch submitted and tested by Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27949 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:47:50 +00:00
Jürgen Spitzmüller
74e1ca54c4 * Text3.cpp:
- enable LFUN_INSET_DISSOLVE for insets at cursor (bug 4985).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27946 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:03:49 +00:00
Pavel Sanda
46a6e652ed Backport.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 14:04:24 +00:00
Pavel Sanda
7ca73f03ef Backport for 5628.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:14:48 +00:00
Jürgen Spitzmüller
c2b4904a02 * LaTeXUI.ui:
* UserGuide:
	- Postscript driver -> graphics driver.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27921 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 10:04:05 +00:00
Jürgen Spitzmüller
79985fb512 * BufferParams.{cpp,h}:
- pass graphics driver to geometry (bug 5613)
        - put papersize options to package call, not in \geometry
          which broke compilation in some cases (bug 3838)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27918 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 09:33:50 +00:00
Jean-Marc Lasgouttes
188dc2e149 rename tex2lyx.man to tex2lyx.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27911 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:59:56 +00:00
Jean-Marc Lasgouttes
9ee1e3a051 remove stuff relevant only to reLyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27910 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:57:44 +00:00