Commit Graph

15256 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
85419bb6cb branch: Fix bug #5131: Remember last file active.
A bool is added to the entry of a last opened file in the Session file. This bool, indicates whether the file was the last one being edited.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:47:32 +00:00
Vincent van Ravesteijn
391a16e42f Close the tabs in reverse order, which is aesthetically better after r29530. Consequently, we have to open the files (read from the session file) also in reverse order.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29590 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:35:34 +00:00
Vincent van Ravesteijn
1233a0a00e Fix some outliner ui glitches:
- reduce flickering, 
- improved disabling and enabling of controls.

see also r29477.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 18:27:08 +00:00
Jürgen Spitzmüller
a7c3fa14fd * disable some invalid insets in description items (covers bug 5937).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29586 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 16:56:58 +00:00
Jürgen Spitzmüller
e2d2eae554 * also enable LFUN_BRANCH_INSERT if we have branches only in a child.
(no status entry needed. This is due to a new feature)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 12:40:23 +00:00
Enrico Forestieri
919f0537ff Fix bug 5705 by speeding up FileName operator== (Georg's solution).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 16:22:49 +00:00
Vincent van Ravesteijn
bcf361f389 branch: Fix bug #5001: Tab order not preserved when starting lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29533 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 19:20:20 +00:00
Pavel Sanda
ee2bad7dc7 Backport r29527
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 08:01:09 +00:00
Enrico Forestieri
081b58b672 When performing a reverse DVI search and the tmpdir is a symlink, the
DVI viewer passes back the resolved path, such that the search fails,
as internally LyX uses the unresolved path.
This patch fixes this bug by using the new method FileName::realPath
which resolves a path by getting rid of any '.', '..', or symlink
path components.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29504 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 21:51:06 +00:00
Pavel Sanda
9d07a6ca61 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29495 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 13:32:20 +00:00
Pavel Sanda
d308eb6906 Backport
http://www.lyx.org/trac/changeset/29491
http://www.lyx.org/trac/changeset/29492



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29494 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 13:21:56 +00:00
Pavel Sanda
7057ee58f8 Backport http://www.lyx.org/trac/changeset/29473
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29475 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 13:55:56 +00:00
Enrico Forestieri
22794313af Don't try to load a nonexisting file when executing server-goto-file-row
as this leads to a crash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 22:35:53 +00:00
Pavel Sanda
29cc2c79f9 backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 11:56:31 +00:00
Pavel Sanda
9ddb40238c backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 08:44:40 +00:00
Jean-Marc Lasgouttes
f087798732 backport r29392
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-25 11:20:59 +00:00
Jürgen Spitzmüller
64d320c255 backport r29394:
Author: younes
Date: Fri Apr 24 23:04:51 2009
New Revision: 29394
URL: http://www.lyx.org/trac/changeset/29394

Log:
Simple fix for bug 4464
http://www.lyx.org/trac/ticket/4464

Thanks to Vincent for showing the way.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29396 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-25 09:48:16 +00:00
Jean-Marc Lasgouttes
2b677bdc06 fix bug #5912
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29388 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-23 13:50:00 +00:00
Uwe Stöhr
93b6399c77 InsetHyperlink.cpp: - fix #5908 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:32:21 +00:00
Jean-Marc Lasgouttes
e0fc18d2b0 backport r29346
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29359 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 12:50:44 +00:00
Vincent van Ravesteijn
e1df748c11 branch: Fix bug 5894: Inserting tabs with inline selections.
see r29245.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:18:19 +00:00
Vincent van Ravesteijn
9eabb73fa5 branch: Fix bug #5758: Crash when closing the dosbox from which LyX was started
The wmf_mime_ object was deleted both when deleting GuiApplication::Private as from 
QWindowsMimeList::~QWindowsMimeList().

see r29326.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:03:39 +00:00
Vincent van Ravesteijn
0dd017f0fc branch: Revert fix for bug #5435.
Revert r29002 and r29003. This fix introduced a regression. The new fix will be postponed to 1.6.4.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 14:00:59 +00:00
Uwe Stöhr
3cbf60249a BiblioInfo.cpp: make it compilable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29313 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 15:43:19 +00:00
Richard Heck
12fbbcc175 Backport r27635, r28193, r28194, r28220, r29094, and r29095. The point
of these, taken together, is to improve the display of information in 
InsetCitation and GuiCitation, by gathering missing data from the 
crossref, if one is defined, basically as BibTeX does.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29312 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 15:29:36 +00:00
Uwe Stöhr
aa6c45c1cc - support for \cfrac also for branch
- add missing mathmlize routine for \binom (we already support mathml for \tbinom and \dbinom)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 21:00:08 +00:00
Jean-Marc Lasgouttes
273832e21f fix a few compilation warnings with gcc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29242 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-14 10:37:49 +00:00
Vincent van Ravesteijn
7503ba017e branch: Enable dialogs that can apply for read-only documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29226 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:00:29 +00:00
Jürgen Spitzmüller
bb3e18b211 * InsetBranch.cpp:
- indicate branch status in the tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 07:17:41 +00:00
Richard Heck
ab34290690 Now, JMarc's check-cross branch patch for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29194 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:59:03 +00:00
Richard Heck
d40a7651f2 Revert 29191. I didn't meant to commit all that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29193 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:57:25 +00:00
Richard Heck
896f580ed0 Backport JMarc's check-cross patch for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29191 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 21:51:50 +00:00
Vincent van Ravesteijn
c0771e3c07 branch: Fix bug #4510: GuiInclude->Edit marks master as changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29151 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 16:01:59 +00:00
Enrico Forestieri
b59d7f44d6 Introduce a helper function and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29145 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 17:41:25 +00:00
Pavel Sanda
5baae858a8 Backport http://www.lyx.org/trac/changeset/29140
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29142 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 12:04:24 +00:00
Enrico Forestieri
9761a302d6 Don't create nested text-in-math environments and don't wrap characters
marked as mathalpha in the unicodesymbols file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29122 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 09:07:52 +00:00
Vincent van Ravesteijn
0b00107aaf branch: Fix bug #3038: wish for lfuns for zoom-in and zoom-out
see:
http://www.lyx.org/trac/changeset/29077
http://www.lyx.org/trac/changeset/29080
http://www.lyx.org/trac/changeset/29081

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29107 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 17:23:57 +00:00
Enrico Forestieri
e6632d97c8 Tweaks for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 15:21:55 +00:00
Enrico Forestieri
c290f2d6c4 The \text macro does not require the full AMS package. Also load amstext
when a text-in-math environment is used, such that super and subscripts
are typeset in the correct size.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29103 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 13:56:08 +00:00
Enrico Forestieri
403e3a3f28 Unicode symbols entered or pasted in math are wrapped in \text{} by default.
Unwrapped symbols can be obtained either by dissolving the text inset or by
verbatim paste (Ctrl+Shift+V). In such a case, the symbols are wrapped in
\lyxmathsym when exporting to latex, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29102 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 13:46:37 +00:00
Richard Heck
132466f6f7 Backport fixes for 5787. Patches from Bo and Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29089 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:35:53 +00:00
Richard Heck
feee22e674 Backport fix for bug 5859.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29087 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:11:03 +00:00
Richard Heck
790376adbc Backport r28544, fixing 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29086 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 14:06:08 +00:00
Pavel Sanda
81c8021ab1 Backport http://www.lyx.org/trac/changeset/29057
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg149683.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29079 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 09:49:57 +00:00
Vincent van Ravesteijn
16d1b8d701 branch: Fix bug 4733 and partly bug 4174
- Auto popup of math toolbar hides the math editor
  www.lyx.org/trac/ticket/4733
- Do not scroll to the cursor without a reason
  www.lyx.org/trac/ticket/4174

* GuiWorkArea?: This adds "buffer_view_->scrollToCursor();" to GuiWorkArea::resizeBufferView() to make sure that the cursor remains visible. 

* BufferView?: Make sure that we can call the scrollToCursor function without causing a new repaint.

* BufferView?: Make sure that we only scroll when the cursor was in the view (bug 4174: www.lyx.org/trac/ticket/4174).

see:
http://www.lyx.org/trac/changeset/28946
http://www.lyx.org/trac/changeset/29066

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29076 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 08:55:07 +00:00
Vincent van Ravesteijn
42c3b63c36 branch: Fix bug 4067: Incorrect indentation in Description environment
http://www.lyx.org/trac/ticket/4067


If we are in the first pos, we are never in the body and always in the label.

see:
http://www.lyx.org/trac/changeset/29033




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29064 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 19:56:30 +00:00
Richard Heck
c76b28d1a0 Backport r29017.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29049 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:46:44 +00:00
Jürgen Spitzmüller
ba26d715cd Buffer.cpp:
- re-assign a master's children if a child was reloaded (bug 5873)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29047 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:09:21 +00:00
Jürgen Spitzmüller
9ee1ec0b62 backport r28934.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29045 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 10:59:39 +00:00
Pavel Sanda
cfcec856ef Compilation fix
(Vincent have you tested r28754 works correctly in branch?)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29032 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:51:53 +00:00
Vincent van Ravesteijn
776e608bad branch: Fix bug 4673: Case-insensitive sorting of colors in GuiPrefs?.
see:
http://www.lyx.org/trac/changeset/27995




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:19:46 +00:00
Vincent van Ravesteijn
b10cf08974 branch: Remove black box around GuiWorkarea? which is visible with Qt4.5.
see:
http://www.lyx.org/trac/changeset/28747

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29028 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:15:36 +00:00
Vincent van Ravesteijn
dbeddbac57 branch: Improved UI for version control:
* the menu-item should also be enabled when the buffer is still unnamed (it will be saved anyway), and
* no buffer-reload after user cancel.

see:
http://www.lyx.org/trac/changeset/28028

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:13:26 +00:00
Vincent van Ravesteijn
4dd1fed397 branch: Fix disabling of submenus that are empty.
see:
http://www.lyx.org/trac/changeset/28027

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29026 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:08:25 +00:00
Vincent van Ravesteijn
4b76c8267f branch: Fix disabling of submenus that have only disabled items.
see:
http://www.lyx.org/trac/changeset/28026

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29025 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 20:07:08 +00:00
Vincent van Ravesteijn
2e0b91e170 branch: Fix bug 5526: screen-recenter LFUN doesn't work
http://bugzilla.lyx.org/show_bug.cgi?id=5526

see:
http://www.lyx.org/trac/changeset/28916

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:56:26 +00:00
Vincent van Ravesteijn
1f3ac11ea2 branch: Prevent assertion with command 'buffer-switch xxx' in which xxx is not the name of a loaded buffer.
see:
http://www.lyx.org/trac/changeset/28966


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29022 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:50:52 +00:00
Vincent van Ravesteijn
f1b242b62a branch: Fix a few peculiarities wrt graphics. E.g., an InsetGraphic? with a non-existing image showed the message that the image was loaded, instead of "No file found!".
* CacheItem::Impl::tryDisplayFormat


- Enhance description of the return value.
- Negate the return values to match the description.


* CacheItem::tryDisplayFormat


- Impl::tryDisplayFormat returns whether a conversion is needed, not whether the try was successful. Therefore, we should check the status as well.

see: http://www.lyx.org/trac/changeset/28754.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29021 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 19:41:00 +00:00
Vincent van Ravesteijn
264455562c branch: Preferences dialog fixes:
* accelerator clashes,
* missing accelerators, and
* strings (capitalization). 

see:
http://www.lyx.org/trac/changeset/28960

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29004 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:25:06 +00:00
Vincent van Ravesteijn
0f290b2783 branch: Fix bug 5435: DEPM doesn't function when leaving an inset
http://bugzilla.lyx.org/show_bug.cgi?id=5435
The code for this was already present, but was never reached.

see:
http://www.lyx.org/trac/changeset/28910

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29003 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:15:28 +00:00
Vincent van Ravesteijn
2bb22bd940 branch: Fix bug 5434: DEPM not executed for PgUp/PgDown?
http://bugzilla.lyx.org/show_bug.cgi?id=5434

see
http://www.lyx.org/trac/changeset/28909
http://www.lyx.org/trac/changeset/28927

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29001 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 21:05:15 +00:00
Vincent van Ravesteijn
7d78cc8d72 branch: Fix the bug that the view source window remained disabled forever when window got disabled while the autoUpdate checkbox was unchecked. Also, update the window when the autoUpdate checkbox was toggled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29000 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 20:49:46 +00:00
Pavel Sanda
d7cd83046b typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28997 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 21:57:58 +00:00
Pavel Sanda
36fa2dc1e7 Fix monolithic build.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28994 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 21:19:43 +00:00
Jürgen Spitzmüller
257b765df8 * ExternalUi.ui: layout fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28990 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 12:36:49 +00:00
Enrico Forestieri
4f2d5f39ee New simplified definition of \lyxmathsym and better re-import from latex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28989 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 11:29:31 +00:00
Jürgen Spitzmüller
d4a2f681b8 Fix bug 5863:
* beamer.layout:
* powerdot.layout:
	- those provide geometry

* BufferParams.cpp:
* GuiDocument.cpp:
	- implement provides("geometry")

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 10:51:43 +00:00
Uwe Stöhr
3f1963ea40 LyXAction.cpp: fix documentation bug: add-vline-left/right is not allowed for the cases environments and we already correctly check this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28951 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 01:35:24 +00:00
Vincent van Ravesteijn
7e48a5cf5c branch: Fix bug 4441. GuiRef: Ok button must be default.
See also:
http://www.lyx.org/trac/changeset/28784
http://www.lyx.org/trac/changeset/28726
http://bugzilla.lyx.org/show_bug.cgi?id=5695


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28944 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:04:51 +00:00
Jürgen Spitzmüller
a26a9f6592 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28937 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 12:39:17 +00:00
Richard Heck
1cf1e65b63 Tooltips for InsetCitation (backported).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28935 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 12:17:25 +00:00
Jürgen Spitzmüller
b4a08eb307 Fix bug 5827 (validate date-insert argument):
* src/support/os*.{cpp,h}:
	- new function is_valid_strftime that validates strftime arguments, 
	  OS dependant (win32 differs here)

* src/Text3.cpp:
	- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
	- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28933 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:25:23 +00:00
Jürgen Spitzmüller
f3a89dad1a * PrefLanguage.ui:
* PrefPaths.ui:
	- fix some "buddies" (accelerators).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28929 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 10:14:59 +00:00
Richard Heck
f106307c47 Backport the fixes for bug 5872.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28923 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 17:39:11 +00:00
Jean-Marc Lasgouttes
be88703ad1 make the man pages autogenerated; update the tex2lyx man page
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28893 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 09:52:05 +00:00
Enrico Forestieri
82e5e90864 Fix a handful of dialog layouts for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28885 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 22:27:23 +00:00
Jürgen Spitzmüller
41de4ebc11 * GuiView.cpp (closeEvent):
- store child documents in session.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28873 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:19:14 +00:00
Jürgen Spitzmüller
4fb5e44811 Backport rev. 28280:
Author: spitz
Date: Sun Jan 25 18:04:57 2009
New Revision: 28280

URL: http://www.lyx.org/trac/changeset/28280
Log:
* GuiApplication.cpp:
        - use the first command in sequence as icon name for command-alternatives.
* lib/ui/stdtoolbars.inc:
        - use command-alternatives for the alignment buttons in the tabular toolbar (bug 5709).
* lib/images/tabular-feature_align-*.png:
* lib/images/tabular-feature_valign-*.png:
        - rename to tabular-feature_m-[v]align-*.png:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28872 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:08:22 +00:00
Enrico Forestieri
fb47d709ee Fix display of release date with Qt 4.2.
In Qt 4.2, QLocale::toString(QDate, ...) returns an invalid but not empty date
when QDate is invalid. So, check whether QDate is valid before conversion.
(status.16x is already updated)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28864 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-19 08:57:09 +00:00
Jean-Marc Lasgouttes
77a4103668 fix "make check" with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28861 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 23:09:29 +00:00
Jean-Marc Lasgouttes
f9a4e1cc95 backport the tex2lyx unicode stuff from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28858 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:40:08 +00:00
Jean-Marc Lasgouttes
6dec0f3e0d read correctly InsetFlex which name contains a space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28857 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:21:25 +00:00
Jean-Marc Lasgouttes
dd658e6f84 remove useless checkbox for some tabular-feature functions in math arrays
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28855 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:39:17 +00:00
Jean-Marc Lasgouttes
9aa0e78047 do not compare char* strings directly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28852 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:14:49 +00:00
Enrico Forestieri
c23a63478a Fixes for gcc4 on cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28848 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 11:52:26 +00:00
Vincent van Ravesteijn
f72455413f branch: move ColorSet to a header of its own to reduce #include dependencies. Patch by Andre.
see:
http://www.lyx.org/trac/changeset/28426.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28841 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 13:23:54 +00:00
Jürgen Spitzmüller
73709670e1 * VCBackend.cpp:
- some spelling and grammar fixes (a native EN speaker will have to double-check).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28838 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 11:07:17 +00:00
Vincent van Ravesteijn
1d8b2b595f branch: Disable the Edit->Math menu when not in math (bug 4218).
Introduce new LFUN_MATH_FONT_STYLE which takes one of the font styles as an argument. A dispatch is being redirected to math-insert.

see:
http://www.lyx.org/trac/changeset/28181.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28836 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:51:39 +00:00
Jürgen Spitzmüller
8d238def28 * InsetMathCases.cpp:
- fix string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28834 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:46:21 +00:00
Vincent van Ravesteijn
b79355e6a3 branch: Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28833 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:23:06 +00:00
Jürgen Spitzmüller
3229618c20 * Fix encoding problem following a Listing (bug 5783).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28831 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 09:26:37 +00:00
Jürgen Spitzmüller
67af233115 * LaTeX.cpp:
- perform extra LaTeX run when requested by lettre.cls (bug 5818).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28829 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 05:11:24 +00:00
Uwe Stöhr
7b12d8bbb6 - InsetMathCases.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=4141 for branch
- status.16x: some updates and whitespace fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28827 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 00:38:23 +00:00
Richard Heck
36e72cd094 Fix bug 5782 in branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28824 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 20:19:51 +00:00
Pavel Sanda
42de81d76f * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28822 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:50:50 +00:00
Richard Heck
a84580306e Backport r28340.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28820 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:31:12 +00:00
Pavel Sanda
f6ad811535 Backport jump-back button
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147979.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28819 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:14:38 +00:00
Pavel Sanda
d735335c88 Backport r28752
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28818 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 18:44:51 +00:00
Pavel Sanda
e211a71471 Backport svn locking
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147723.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28817 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 18:30:53 +00:00
Richard Heck
a540263da9 Backport r28366-7, approved a long time ago and since held.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28809 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 21:26:14 +00:00
Richard Heck
5b185f8683 Squash a warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28808 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 21:25:35 +00:00
Vincent van Ravesteijn
21d90e18d1 branch: Fix bug 5819: Close button of tabbar closes wrong document
http://bugzilla.lyx.org/show_bug.cgi?id=5819.

If no call to setCurrentIndex is made, we should make sure ourselves that the currentWorkArea switches to the clicked TabWorkArea.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28806 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:26:48 +00:00
Vincent van Ravesteijn
a5381101e3 branch: Fix bug 5848: Do not create a new file after 'new from template..' and cancel.
see:
http://www.lyx.org/trac/changeset/28029


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28805 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:15:57 +00:00
Vincent van Ravesteijn
d8c3c6519d branch: Fix bug 5695: Default button must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695

Fix for GuiHyperlink and GuiInclude.

see:
http://www.lyx.org/trac/changeset/28726
http://www.lyx.org/trac/changeset/28784

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28804 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 17:05:11 +00:00
Uwe Stöhr
5c9e3284e9 preamble.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5846 for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28801 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 16:44:07 +00:00
Jürgen Spitzmüller
5e387ecdb5 please Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28798 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 15:50:40 +00:00
Enrico Forestieri
64aa11b124 Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
Japanese char between math insets becomes wrong in TeX output


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28797 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 14:08:09 +00:00
Vincent van Ravesteijn
0f93daf6a3 branch: UI Command Buffer improvements.
* the history is stored in the session file and restored in the next LyX session,
* the lists now disappear when the mouse is released in stead of pressed,
* correct enabling/disabling of the up/down button,
* hide the lists when clicked outside the list. Now using the function event() and check for a mouseButtonPressEvent instead of using mouseReleaseEvent(). The latter is only called when the mouse button is released inside the widget, but we want to use this event to detect a mouseclick outside the list.

see:
http://www.lyx.org/trac/changeset/28250
http://www.lyx.org/trac/changeset/28794

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28796 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:31:37 +00:00
Jürgen Spitzmüller
838b3e9193 * GuiDelimiter.cpp:
- do not auto-apply if "match" is not chosen (bug 5789).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:16:10 +00:00
Vincent van Ravesteijn
a58e160745 branch: Fix bug 5629: Hard to distinguish between added and deleted text.
http://bugzilla.lyx.org/show_bug.cgi?id=5629. 

Backport of:
- (r28420) Add a new Color class. This class makes it possible to specify a color as a merging of two other colors.
- (r28421) Use the new Color class in the Painter code. 
- (r28422) Add a new member to FontInfo? denoting the color to be used when painting. 
- (r28423) Add a new customizable color that indicates the merge color for deletion.

See also: 
http://thread.gmane.org/gmane.editors.lyx.devel/114189 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28785 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 20:41:04 +00:00
Vincent van Ravesteijn
3f6dae8123 branch: Fix bug 5769: http://bugzilla.lyx.org/show_bug.cgi?id=5769.
Copy content vanishes on Quit.

The work-around to clear the clipboard was needed to work around bug 4846. This bug has been resolved by the fix for bug 5472, so the work-around isn't needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28783 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 18:32:31 +00:00
Vincent van Ravesteijn
5bbf48b743 branch: Fix bug 5799. Warning when opening the document settings and preferences dialogs: http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28782 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 18:24:09 +00:00
Vincent van Ravesteijn
9a912afd42 branch: Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28781 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:56:26 +00:00
Vincent van Ravesteijn
e007ee91da branch: Fix bug 5088: Incorrect cursor movement
http://bugzilla.lyx.org/show_bug.cgi?id=5088

After executing DEPM to remove a double space, the position of the cursor was only 'fixed' if the cursor remained in the same par. This patch corrects this
to fix the position of the cursor also when the cursor is in a nested inset which is in the same par. This is needed because otherwise the cursor would not
point to the inset but one pos after it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28780 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:41:19 +00:00
Vincent van Ravesteijn
73db05c0bb branch: Fix bug 1802: http://bugzilla.lyx.org/show_bug.cgi?id=1802.
* allows the selection of a whole cell with shift+key
* shift-movement between empty cells with a single keystroke 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 17:31:11 +00:00
Vincent van Ravesteijn
9ad1428486 Fix an infinite loop with Qt4.5 when creating two unnamed files.
In Qt4.5, QFileInfo::operator==() always returns true when comparing two non-existing files. Therefore, an extra check is needed. 

see 
http://www.lyx.org/trac/changeset/28748


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28768 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 10:47:29 +00:00
Vincent van Ravesteijn
7238dc91e8 branch: change the use of QString::indexOf(RegExp) into RegExp::indexIn(QString) to avoid crashes and infinite loops with Qt4.5.
See:
http://www.lyx.org/trac/changeset/28746

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28767 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 10:39:27 +00:00
Jürgen Spitzmüller
a37fe91e51 * buffer_funcs.cpp:
- fix another dataloss crash when undoing a resolved branch in a child
	  (patch by rgheck).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28759 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-13 12:08:20 +00:00
Jürgen Spitzmüller
1d9ee4e901 Backport r28730.
Author: vfr
Date: Sun Mar  8 22:23:31 2009
New Revision: 28730

URL: http://www.lyx.org/trac/changeset/28730
Log:
Fix scrolling regression (http://www.lyx.org/trac/changeset/28397).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28733 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 07:49:21 +00:00
Jürgen Spitzmüller
a0e0bd3311 * tex2lyx/Makefile.am:
- add tex2lyx.1 to the distribution.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 08:29:23 +00:00
Jürgen Spitzmüller
22a49ee863 fix bug 5833
* Buffer.{cpp, h}:
	- new method getChildren() that returns included (and sub-included) files

* GuiView.cpp (closeEvent):
	- do not just close dirty child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28713 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 16:35:25 +00:00
Jürgen Spitzmüller
3e5a87d6d7 * CutAndPaste.cpp:
- correctly set buffer on paste. This fixes a crash on pasting branches 
	   within child documents (bug 5813)

(patch by rgheck)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28709 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 11:37:51 +00:00
Vincent van Ravesteijn
06f2013ab8 branch: InsetTabular.cpp: Make sure the caption is inserted in the correct cell. This means we first have to reset the cursor to point to the new multicolumn, and then insert the caption.
See:
http://www.lyx.org/trac/changeset/28441

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-01 16:06:04 +00:00
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
Jean-Marc Lasgouttes
d1281bcec7 put tex2lyx test files in their own directory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27909 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:53:26 +00:00
Jean-Marc Lasgouttes
58aa53ee10 remove unused method Parser::pop_back()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27908 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:47:46 +00:00
Jean-Marc Lasgouttes
c087c43dd7 add support for changing encoding on idocstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:34:47 +00:00
Jean-Marc Lasgouttes
d68a7867a4 cosmetic: rename [io]docfstream to [io]fdocstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-17 14:31:10 +00:00
Richard Heck
e695760740 Currently, a second InsetLayout declaration of a given inset completely
overwrites the existing definition, instead of updating it, as our Style
declarations do. This patch fixes this behavior, so that e.g.:

#\DeclareLyXModule{ERT}
#DescriptionBegin
#Make ERT Classic
#DescriptionEnd

Format 11

InsetLayout ERT
	Decoration classic
End

will do as advertised.

Also includes changes to minimalistic.module that are then made possible.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:39:27 +00:00
Richard Heck
d762d867b9 Cleanup (r27897) now for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:17:19 +00:00
Richard Heck
9823a8c4ef The trivial r27894 for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:04:59 +00:00
Jürgen Spitzmüller
b2ee876447 Let InsetWrap find its InsetLayout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 15:36:27 +00:00
Jürgen Spitzmüller
e836235dcb * BufferView.cpp:
- record undo for LFUN_NEXT_INSET_MODIFY.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 09:03:47 +00:00
Jürgen Spitzmüller
97675f03a0 * LyXAction.cpp:
- LFUN_NEXT_INSET_MODIFY: ReadOnly -> Noop.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27889 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 07:45:46 +00:00
Jean-Marc Lasgouttes
03ebfe5a14 better output for "-dbg action"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-15 16:38:18 +00:00
Jean-Marc Lasgouttes
4d82d73233 * TextMetrics.cpp (rowHeight): do not compute inset dimensions unless
they are in the row -- major spedup (bug 4443).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27884 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-15 15:44:27 +00:00
Jean-Marc Lasgouttes
56099b0d89 make help-open search in examples too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-12 15:56:39 +00:00
Jürgen Spitzmüller
201cfa6052 * LyXFunc.cpp: prevent potential assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-11 09:26:41 +00:00
Jürgen Spitzmüller
3f7b191c65 * Paragraph.cpp: embrace ']' (fix bug 5610)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27839 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-10 19:53:39 +00:00
Jürgen Spitzmüller
709186f727 * LyXFunc.cpp (reload):
- do not release buffer, but simply re-read Document (fix bug 5389).

Patch reviewed by Abdel.

Alas, this doesn't work in trunk (triggers another crash). I suspect this is due to the updateLabels change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27780 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-06 14:07:53 +00:00
Jürgen Spitzmüller
54303a271d * src/buffer_funcs.{cpp,h}:
- add optional bool "acceptDirty" to checkAndLoadLyXFiles. 
	   If true, the method doesn't care for buffer dirtiness
* src/Buffer.cpp:
	- when checking for master buffer, do not care if it's dirty
	  (fix bug 5514)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 15:55:10 +00:00
Jürgen Spitzmüller
b75dc1a800 * GuiToolbar.cpp (set):
- honour obsoleted styles (part of bug 2607).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27773 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 14:05:31 +00:00
Jürgen Spitzmüller
b3a336fbdf * GuiSpellchecker:
- prevent invalid pointer access (spellchecker crash reported by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27771 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 10:22:38 +00:00
Jürgen Spitzmüller
aa0c7c58b4 * Buffer.cpp (readFile):
- set params().compressed (bug 5589).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27769 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-04 09:14:53 +00:00
Jürgen Spitzmüller
073c645bc1 Add button to rescan the list of bib/bst files from within the dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-02 16:59:28 +00:00
Vincent van Ravesteijn
703df4dc45 branch: Fix bug 5507: Full screen hangs LyX when no file is opened
http://bugzilla.lyx.org/show_bug.cgi?id=5507

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27745 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 17:58:44 +00:00
Jürgen Spitzmüller
f6e2942f05 * LaTeX.cpp (run):
- perform an additional bibtex cycle if requested
	  (e.g. by Biblatex)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 14:28:15 +00:00
Vincent van Ravesteijn
6c2388a9c9 branch: Fix bug 5472: Crash while switching to Word
http://bugzilla.lyx.org/show_bug.cgi?id=5472

In GuiApplication.cpp the function cfFromMime returns an invalid FORMATETC struct with uninitialized members when the mimeType is not emf or wmf. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 14:16:00 +00:00
Uwe Stöhr
f936464eba Paragraph.cpp: revert r27720 because this breaks every document that uses a note or comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27733 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 00:22:09 +00:00
Jean-Marc Lasgouttes
4c339de71c when validating a paragraph, skip insets that do not produce output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27720 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-27 08:47:25 +00:00
Enrico Forestieri
bb34a8b8a4 Fix bug 641 (Detect stale lyxpipes after crash)
http://bugzilla.lyx.org/show_bug.cgi?id=641


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27714 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 19:10:42 +00:00
Richard Heck
caebfcf96a - Make the character style and custom inset menus quote the arguments
to flex-insert so that CharStyles, etc, with spaces in their names 
  will work properly.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 23:42:42 +00:00
Vincent van Ravesteijn
691d2cce97 branch: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5567: Enable up button in command buffer widget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27704 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 15:38:54 +00:00
Richard Heck
76144c7942 Backport fix for 5539.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27702 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 13:37:49 +00:00
Stephan Witt
fc9fd779b9 convert string arguments for bformat with proper encoding
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 21:11:03 +00:00
Vincent van Ravesteijn
5204a42c85 branch: Some fixes for the buttons of the Document and Preferences dialog:
http://bugzilla.lyx.org/show_bug.cgi?id=5295
- set the bc status to INITIAL when the dialog is initialized, and
- enable the restore button in the Document dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 15:09:22 +00:00
Jürgen Spitzmüller
87788aa8e3 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:47:02 +00:00
Jürgen Spitzmüller
b67ec0464e * GuiErrorList.cpp (showEvent):
- add missing dialog update to fix a problem reported on the users list
	  and here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506183
	  (missing package error not shown).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 10:57:01 +00:00
Vincent van Ravesteijn
ff23cca6e1 branch: Fix tabular cursor movement.
- allow repeated shift-up in a multi-line column,
- finish r27581: we have to call cur.selHandle ourselves now,
- do not dispatch to the cell in multicell selection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 20:24:30 +00:00
Vincent van Ravesteijn
f1e76e81af branch: Do not paint an invisible cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 20:08:37 +00:00
Vincent van Ravesteijn
fc95647f75 branch: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5536.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 20:05:17 +00:00
Vincent van Ravesteijn
6de47766b9 branch: Correct painting of a fully selected tabular cell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27672 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 20:00:21 +00:00
Dov Feldstern
2bf895b493 get rid of code duplication between overloaded versions of isRTLBoundary
This is in preparation of some changes to be made in this function, now the change will only have to be done once... 

(backport of http://www.lyx.org/trac/changeset/27656)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:55:48 +00:00
Jürgen Spitzmüller
78129d4511 * output_latex:cpp:
- fix some CJK nesting issues.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 16:43:06 +00:00
Enrico Forestieri
5364085bfe After a better understanding of the problem, restrict the fix for
bugs 5216, 5280, and 5489 to the ISO-2022-JP encoding.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-21 23:04:44 +00:00
Jürgen Spitzmüller
69839e1ae6 * src/Language{.cpp,h}:
- new member internalFontEncoding() that indicates if a language
	  switches the font encoding internally.

* src/Paragraph.cpp (latexSpecialChar):
	- don't call latexSpecialT1 if the internal font encoding isn't T1.

This fixes the output of straight quotation marks in Hebrew and Greek.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-21 14:53:47 +00:00
Richard Heck
a8042a63a9 Fix 5538, now in branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27641 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 16:39:16 +00:00
Enrico Forestieri
3ebf6c0868 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5489 and at the same time
properly fix bugs 5216 and 5280. The best thing to do would be recognizing
at configure time a buggy iconv and #defining WORKAROUND_ICONV_BUG in
config.h, but I don't know how that could be done.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 13:31:44 +00:00
Vincent van Ravesteijn
31839fa04e branch: Fix some small Tabular UI glitches
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27613 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 19:16:17 +00:00
Pavel Sanda
0502dfcc34 backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:52:02 +00:00
Jean-Marc Lasgouttes
c450c436a8 implement undo grouping for command sequences (part of bug 5531)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:42:53 +00:00
Pavel Sanda
16dfab5c63 backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27607 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:31:43 +00:00
Pavel Sanda
78c4dc3a1e backport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 23:25:29 +00:00
Vincent van Ravesteijn
eb3f74eeac branch: Make sure the selection painting is updated after LFUN_UP or LFUN_DOWN. See http://thread.gmane.org/gmane.editors.lyx.devel/113428
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27581 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 19:54:09 +00:00
Richard Heck
c3b31fda27 Backport r27481. From JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 22:53:34 +00:00
Uwe Stöhr
e1a046c07b backport r27493: fix http://bugzilla.lyx.org/show_bug.cgi?id=4430
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27497 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 22:13:54 +00:00
Stefan Schimanski
59b8a01515 * save one redraw on each change of the scrollbar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27475 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 18:58:03 +00:00
Pavel Sanda
4c973bb8d4 backport bugfix for 5274
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27464 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 17:10:35 +00:00
Abdelrazak Younes
4ece71f68d backport r27459
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 16:43:08 +00:00
Jürgen Spitzmüller
6de80cd8ff * InsetMathHull (eolString):
- revert rev. 27412. This is more complicated.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 11:02:24 +00:00
Jürgen Spitzmüller
c8ecd8d24a * InsetMathHull (eolString):
- Properly escape non-ASCII characters in equation labels (bug 5512).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27412 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 10:05:07 +00:00
Jürgen Spitzmüller
233d7958a3 * Paragraph.cpp: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27404 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-12 20:24:08 +00:00
Jürgen Spitzmüller
3cc2dda65e * InsetLabel.cpp:
- no duplicate check for unchanged parameters (bug 5496).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27403 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-12 18:51:36 +00:00
Abdelrazak Younes
7e6af45b0d Fix http://bugzilla.lyx.org/show_bug.cgi?id=5491 without reintroducing http://bugzilla.lyx.org/show_bug.cgi?id=5409 . The first part of r27162 was enough for fixing it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 14:28:44 +00:00
Abdelrazak Younes
c8c3487036 MSVC/Cmake compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27382 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-11 14:22:42 +00:00
Richard Heck
b83564d82c Inset::textString --> Inset::tocString
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27378 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-10 22:45:14 +00:00
Enrico Forestieri
3fe8463ddf Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5467
(too much C++, I presume :)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27352 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-08 23:44:43 +00:00
José Matox
bd64e75489 Fix bug 5411
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-07 19:17:35 +00:00
Jean-Marc Lasgouttes
4804b60f1c do not show Index contents in ToC (note that Inset::textString is only for this use)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-07 13:06:20 +00:00
Richard Heck
c573ab4976 Fix final default-module-related bug reported by Philippe. The comments
in the code should explain what the problem was.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-06 14:59:14 +00:00
Richard Heck
3ac4460c07 Forgot to change this line.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27282 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:46:22 +00:00
Richard Heck
362d6e468f This patch fixes a set of bugs reported by Philippe relating to excluded
and default modules. The lesson, in the end, is that we need to do all the
removal of modules that no longer `fit', for whatever reason, before we
do anything else. So the patch basically just moves the `removal' code
into a new routine that gets called before the routines that add default
modules and then check consistency.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:42:16 +00:00
Richard Heck
5e45cd4c44 Revert the last few patches. I'll commit a more general fix all at once.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:32:37 +00:00
Richard Heck
3a9a0fc3e6 Comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27279 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:15:09 +00:00
Richard Heck
c94d0da408 More fixes for bugs noticed by Philippe.
We want to do all the excluding before we do any of the adding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27278 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:13:25 +00:00
Richard Heck
df475c2002 Add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27277 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:07:52 +00:00
Richard Heck
b0035f07b1 Fix bug reported by Philippe relating to excluded modules: Excluded
modules need to be removed before anything else is done.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27276 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 19:01:59 +00:00
Jürgen Spitzmüller
b65ef30b34 * GuiDocument.cpp (formatStrVec):
- module names can have non-ASCII chars.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27274 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 18:37:47 +00:00
Enrico Forestieri
5ec13cc15b Correct include dir.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27273 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 18:25:24 +00:00
Jean-Marc Lasgouttes
4e2c8c4f9b Make sure that the contents of the inset uses the buffer language (in order to
avoid the ugly blue line).

Fixes part of http://bugzilla.lyx.org/show_bug.cgi?id=5348


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27267 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 16:40:18 +00:00
Jean-Marc Lasgouttes
0e2ded8161 Fix bug 5407
http://bugzilla.lyx.org/show_bug.cgi?id=5407

This patch makes insetfloat search its styles using "Float:<floatname>" (or
"Float" if this fails). This allows to define a default behaviour for new
floats that makes sense.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 15:35:02 +00:00