Commit Graph

10648 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
fa85ed8a45 Backport change 24937 to branch:
Note to self: `!' is not the complement-to-one operator...

  This allows me to revert a 3 years old commit from Juergen that I never
  managed to understand before.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24943 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 11:05:44 +00:00
Jean-Marc Lasgouttes
c3347b2311 * IconPalette.cpp: when we act on an event, make sure to accept it,
so that Qt knows we did something.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:08:35 +00:00
Jean-Marc Lasgouttes
1b7dad5c93 * insets/InsetQuotes.cpp (displayString): reenable quote display code
(but use a table-based solution instead of the old code).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 14:51:46 +00:00
Abdelrazak Younes
92bcd7b0ca Really, I mean *really* fix bug 4857.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24877 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 18:15:09 +00:00
Abdelrazak Younes
9118cc1800 Really fix bug 4857.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24876 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 12:39:40 +00:00
Jürgen Spitzmüller
00733ebe0e * src/frontends/qt4/QSendto.cpp:
- use translated formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24835 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 10:10:05 +00:00
Jürgen Spitzmüller
8896987c68 *** fix bug 2488 (make dynamic formats in menus translatable) ***
* po/lyx_pot.py:
	- new method formats_l10n that parses configure.py for file formats and shortcuts
* po/Makefile.in.in:
* development/scons/SConstruct:
	- call formats_l10n on po update

* src/MenuBackend.cpp:
	- handle translated formats
* src/LyXFunc.cpp:
	- use translated string for file filter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24831 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 09:05:59 +00:00
Abdelrazak Younes
a805a50fd9 Fix crash in bug 4857. Sorry Jürgen, I don't have the time to track this issue. The patch is very short so I take the liberty to commit it directly. This is similar to what we do now in trunk and I don't know why this was still not done in branch (my fault). This (now fixed) bug reveals another problem though, just look at the table of contents; I think this is related to the bibitem inside the caption.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 08:00:15 +00:00
Jürgen Spitzmüller
74943c8d6d * src/support/FileFilterList.cpp (parse_filter):
- fix regex so that brackets in the filter name itself
	  (such as in "LaTeX (plain)") are handled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 05:46:05 +00:00
Uwe Stöhr
d8c27b8174 tex2lyx/preamble.cpp: fix bug 4867 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24817 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 18:43:18 +00:00
Uwe Stöhr
bf9e1b9ec8 tex2lyx/preamble.cpp: support for the paper orientation also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 20:22:25 +00:00
Jürgen Spitzmüller
146316c0f2 * src/tex2lyx/text.cpp:
- forgot this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 16:48:21 +00:00
Jürgen Spitzmüller
e8dd05b38c * src/tex2lyx/text.cpp:
- whitespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 16:45:37 +00:00
Jürgen Spitzmüller
a6f4df8850 * src/tex2lyx/text.cpp:
- fix compilation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 16:42:57 +00:00
Uwe Stöhr
b6205e98bd tex2lyx/preamble.cpp, tex2lyx/text.cpp : fix bug 20 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 14:23:08 +00:00
Jürgen Spitzmüller
593ef2c773 * ControlAboutLyX:
- update copyright date. For 1.5.5, this change came too late (for i18n).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24724 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 10:20:06 +00:00
Jürgen Spitzmüller
562e961cf1 Fix bug 4806 (patch from JMarc)
* Context.cpp (begin_layout): make it a (private) method, and output
        the extra stuff here.
        (add_par_extra_stuff): this is used for stuff that is only for next 
        paragraph (like extra_stuff used to be); add_extra_stuff is now for 
        code that is output for all paragraphs in the context.

        * text.cpp: update to new Context methods. Every user of add_extra_stuff
        uses add_par_extra_stuff, except alignment (which has to be repeated
        to fix bug 4806).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24698 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 11:13:44 +00:00
Jürgen Spitzmüller
4ba07f11bd * InsetMathHull:
- fix rest of bug 518. Part of this fix was already (accidentally) committed by Uwe in r24667.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 07:50:12 +00:00
Uwe Stöhr
b341bbcbbf Minor French documentation updates by Jean-Pierre and Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 21:37:36 +00:00
Jean-Marc Lasgouttes
2e4c330f26 fix some compilation warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 13:20:07 +00:00
Jürgen Spitzmüller
43097f8952 * backport revision: 23665 from sts:
URL: http://www.lyx.org/trac/changeset/23665
Log:
* fix for http://bugzilla.lyx.org/show_bug.cgi?id=518

"wrong numbering of multline environment inside LyX"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 14:21:28 +00:00
Jürgen Spitzmüller
d2dc7bdff1 Correctly handle quotation marks in command preferences (bug 2016):
* src/LyXRC.cpp:
	- new helper function to escape commands
	- parse escaped commands

* src/Lexer.{cpp,h}:
	- whitespace/typos.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 13:54:23 +00:00
Uwe Stöhr
911105f298 - tex2lyx/text.cpp: correct font size handling also for branch, fixes bug 4807
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 22:39:55 +00:00
Uwe Stöhr
9f5ca02dc4 tex2lyx/text.cpp:
- fix an off by one error in the font size handling, fixes bug 4803
- support \lyxline, fixes bug 4795

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 11:03:26 +00:00
Jürgen Spitzmüller
25c1826386 * src/insets/InsetListingsParams.cpp:
- prevent invalid pointer (bug 4780).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24509 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-26 12:15:56 +00:00
Uwe Stöhr
b559a0c607 tex2lyx/preamble.cpp: remove the setspace handling.
I introduced this accidentally with the fix for bug 4773.
Not taking care of setspace doesn't harm. But at the moment setspace would be erased from the preamble and only readded by LyX when the user uses global line spacing settings. But when the user only uses paragraph spacing settings, it won't be readded and the document will become uncompilable. So this commit prevents a regression that can first be undone when bug 20 is fixed. (I have a fix for bug 20 in the pipe.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24508 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-26 11:01:36 +00:00
Abdelrazak Younes
3389804bf1 Fix bug 4791.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-25 12:54:25 +00:00
Uwe Stöhr
5fad0504fd Now also for branch:
- tex2lyx/preamble.cpp: fix the import of paragraph settings, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4773

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24426 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 22:26:29 +00:00
Uwe Stöhr
8d01107a96 Now also for branch:
- tex2lyx/preamble.cpp, text.cpp: add support for \textcolor fixes http://bugzilla.lyx.org/show_bug.cgi?id=2457

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24422 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 22:17:49 +00:00
Enrico Forestieri
aec651ca55 Allow using \binom without amsmath and add support for \brace and \brack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 22:03:18 +00:00
Enrico Forestieri
6bc6ca6c4d Only add \makeatletter and \makeatother to the preamble when actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24417 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 21:55:49 +00:00
Jürgen Spitzmüller
9af53d6fa7 * src/tex2lyx/tex2lyx.man:
- make the man page a bit less outdated (bug 2770).

note that the page isn't really up to date yet. I didn't check anything thoroughly (especially the "what's supported" and "what's not supported" part). Uwe, maybe a job for you, as you are most familiar with it nowadays.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 15:26:10 +00:00
Abdelrazak Younes
30eb0020ec Fix crash on startup with 4.4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24324 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-18 12:49:14 +00:00
Uwe Stöhr
6aaddd9e32 tex2lyx: text.cpp, Parser.h, Parser.cpp:
fix the import of \makebox, fixes http://bugzilla.lyx.org/show_bug.cgi?id=2504 also for branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 22:59:00 +00:00
Jürgen Spitzmüller
3d3c5ce6e5 * src/mathed/InsetMathNest.cpp:
- use niceInsert for single-cell insets (fix rest of bug 4720)
	  No status.15x entry needed (this was a new bug)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24251 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-13 09:42:06 +00:00
Uwe Stöhr
a96cf0bbd9 tex2lyx/preamble.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=4719 also for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24242 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-11 22:17:16 +00:00
Jürgen Spitzmüller
cd7a390281 * make windoze (users) happy (replace Vert.xpm by vert2.xpm due to case conflict).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24180 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 16:07:30 +00:00
Jürgen Spitzmüller
24d2d48b10 * src/support/filetools.cpp (unzippedFileName):
- Fix an assertion with compressed image files 
	   that do not have a zip-extension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24166 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 09:29:01 +00:00
Jürgen Spitzmüller
d1b369e564 * src/mathed/InsetMathNest.cpp:
- backport rev. 24158 (fix bug 4713)
	  No status.15x entry needed (this was a new bug)

	Author: poenitz
	Date: Mon Apr  7 21:19:03 2008
	New Revision: 24158

	URL: http://www.lyx.org/trac/changeset/24158
	Log:
	fix #4713

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-08 05:48:13 +00:00
Joost Verburg
21180f3b97 Use *.* to select all files in the file selection dialog on Windows. Using shortcuts for navigation is now possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24094 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-02 12:03:58 +00:00
Enrico Forestieri
31ce8f79de Fix bug 4665:
http://bugzilla.lyx.org/show_bug.cgi?id=4665


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 21:07:38 +00:00
Jürgen Spitzmüller
dc798a4b34 Backport of this and follow-up fixes of bug 4566 by sts:
URL: http://www.lyx.org/trac/changeset/23804
Log:
* another try on http://bugzilla.lyx.org/show_bug.cgi?id=4566:

  "Eqnarray multiple cells size change erases what they contain"

  We also apply LFUN_MATH_INSERT to every selected cell if a single math inset is inserted. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24085 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 13:59:13 +00:00
Enrico Forestieri
8634dbd811 Fix bug 4668
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24081 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 02:31:06 +00:00
Pavel Sanda
3a056add40 Branch: fix compilation problems with gcc 4.3.0 && --pch-disabled --without-included-boost
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg137863.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24069 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-31 08:50:41 +00:00
Richard Heck
f6d979f582 Revert stupid commit (thanks Andre) and also revert inadvertent commit. My bad.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24002 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 08:27:17 +00:00
Richard Heck
aff53a5a28 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@24000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 06:19:07 +00:00
Jürgen Spitzmüller
7255a701e8 * src/Text3.cpp:
- disallow non-Note notes inside commands (sections etc.)
	  This fixes bug 4180 partially (the change is still possible via the dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23919 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:24:44 +00:00
Bo Peng
090e6911d2 Move \label{} outside of listings option caption={} because the listings package prefers a separate label={} option.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23865 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 13:56:27 +00:00
Jean-Marc Lasgouttes
b53311572b - fix the 'make check' target in src/support; one of the checks still
fails (bug 4638)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23850 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 13:46:54 +00:00
Jürgen Spitzmüller
bee48063a0 backport rev. 23673 from sts, which partially fixes a major dataloss bug:
URL: http://www.lyx.org/trac/changeset/23673
Log:
* fix for http://bugzilla.lyx.org/show_bug.cgi?id=4566

  "Eqnarray multiple cells size change erases what they contain"

  We now loop over the selected cells and change the font in each of them.

Note that the bug still applies if a font change is done via the math panel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 11:49:12 +00:00
Jürgen Spitzmüller
1862af42e0 Backport rev. 23762
Author: sts
Date: Sat Mar 15 12:40:04 2008
New Revision: 23762

URL: http://www.lyx.org/trac/changeset/23762
Log:
* make forward deletion of formula labels/numbers more intuitive:
** We show (Eq:bla,#) for labeled formulas
** The first forward delete removes the label
** The second forward delete removes the number

Fixes http://bugzilla.lyx.org/show_bug.cgi?id=2556


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23765 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 17:23:15 +00:00
Richard Heck
ebed03d340 Fix crash noted by Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23755 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 03:08:59 +00:00
Jürgen Spitzmüller
0a93c2d586 backport rev. 23643 from sts:
URL: http://www.lyx.org/trac/changeset/23643
Log:
* also forward delete numbering in math hull

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 17:38:53 +00:00
Enrico Forestieri
decf7cf106 Add bm to chkconfig.ltx and LaTeXConfig.lyx.in. Also make sure that bm
is loaded after amsmath.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23702 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 01:00:55 +00:00
Enrico Forestieri
30deb83dcb Provide \boldsymbol through the bm package.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 22:07:50 +00:00
Pavel Sanda
68d16e9466 Backport for http://bugzilla.lyx.org/show_bug.cgi?id=4194
(focus of buttons in search dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23691 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 20:03:34 +00:00
Jürgen Spitzmüller
d6c3c06197 * src/mathed/InsetMathNest.cpp:
- do not output \color{ignore} (bug 4091).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 19:03:33 +00:00
Jürgen Spitzmüller
a965ea56a1 backport rev. 23610:
URL: http://www.lyx.org/trac/changeset/23610
Log:
* fix for http://bugzilla.lyx.org/show_bug.cgi?id=2556
  "not possible to delete a label of a formula":

  Press forward delete at the end of a row and the label is deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 15:06:07 +00:00
Jürgen Spitzmüller
113d65643c * src/insets/InsetNote.h:
- implement missing noFontChange.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 17:50:12 +00:00
Jürgen Spitzmüller
5cdfc7acea * src/Text3.cpp (doInsertInset):
- further improve the behaviour when inserting a collapsable inset 
	  over a multi-paragraph selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 11:51:24 +00:00
Jürgen Spitzmüller
ba956235d1 * src/Text3.cpp (doInsertInset):
- Improve the behaviour when inserting a collapsable inset 
	  over a multi-paragraph selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23511 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 13:34:42 +00:00
Jürgen Spitzmüller
5a918564ae * src/insets/InsetMathBox.{cpp,h}:
- add validate method and validate \tag[*] (bug 4586)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23482 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 18:52:30 +00:00
Pavel Sanda
f1e1afa308 Andre' comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23464 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 21:49:30 +00:00
Pavel Sanda
6bfbb310d2 ToC tree redrawing after resets.
http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:07:12 +00:00
Jean-Marc Lasgouttes
af3b63ac40 * src/CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that
is cut is completely erased, remove it regardless of its layout (fixes
	bug 3995).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23430 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 10:14:29 +00:00
Uwe Stöhr
c81532af72 fix http://bugzilla.lyx.org/show_bug.cgi?id=2461 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23367 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 14:18:57 +00:00
Uwe Stöhr
f7a0bff71f InsetMathNest.cpp: allow to enter starred commands (fixed bug 4585)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23297 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 23:33:03 +00:00
Bo Peng
94b2999e9e Load local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23199 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 21:25:11 +00:00
Uwe Stöhr
bfa4f6b0f4 insets/InsetTabular.cpp: fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4554
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23195 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:07:47 +00:00
Jürgen Spitzmüller
6c1b8c8422 forgot this in r23160.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 17:28:44 +00:00
Jürgen Spitzmüller
de263dca11 * src/Text3.cpp (cursorPrevious, cursorNext):
- Fix a crash when pressing "page up" while the cursor is in an empty
  	   paragraph (bug 4570); patch by Jean-Marc, slightly extended by advice of Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23160 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 17:21:33 +00:00
Jürgen Spitzmüller
2c45aab0ac * src/insets/InsetCharStyle.cpp (draw):
- the status bar message on mouse hovering triggered a crash
	  when a math inset was embedded in a char style inset (bug 4559)
	  Until a better solution is found, the message is disabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23055 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 11:12:01 +00:00
Jürgen Spitzmüller
6512b4a439 Fix a crash following the input of an invalid paragraph separation value in the document settings dialog (bug 4556), as discussed with Jean-Marc on bugzilla.
* src/frontends/qt4/QDocument.cpp:
	- disallow input of defskip length without actual length value.

* src/BufferParams.cpp (readToken):
	- there might be documents with the invalif "\defskip defskip" param. Reset this to "\defskip medskip".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23023 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:16:52 +00:00
Jürgen Spitzmüller
ecec859094 backport of revision 22979 (fix bug 4547)
Author: younes
	Date: Wed Feb 13 15:16:51 2008
	New Revision: 22979

	URL: http://www.lyx.org/trac/changeset/22979
	Log:
	Fix crash when deleting outlined insets while the outline panel is open.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23001 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 10:39:39 +00:00
Jürgen Spitzmüller
35a75c5119 * src/frontends/qt4/TocWidget.cpp (updateGui):
- set correct list (bug 4260).

Sorry to violate my own rule, but this bug is so annoying, and the fix is straightforward (and the freeze is still young ;-).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22962 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 13:57:38 +00:00
Jürgen Spitzmüller
81876c4aed Catch exceptions whenever filesystem::exists is called. Hopefully definitely fixes all those cases that have been reported (bug 4052, bug 4440, bug 4534)
* src/support/filetools.{cpp,h}:
	- new helper function doesFileExist which calls fs::exists and catches exceptions.

* src/Buffer.cpp:
* srcConverterCache.cpp:
* src/Exporter.cpp:
* src/Format.cpp:
* src/LaTeX.cpp:
* src/LyX.cpp:
* src/LyXFunc.cpp:
* src/Session.cpp:
* src/TextClass.cpp:
* src/TextClassList.cpp:
* src/buffer_funcs.cpp:
* src/callback.cpp:
* src/frontends/Controllers/ControlGraphics.cpp:
* src/insets/InsetInclude.cpp:
* src/support/FileMonitor.cpp:
* src/tex2lyx/text.cpp:
	- use doesFileExist instead of plain fs::exists

* src/client/client.cpp:
	- catch exception when calling fs::exists

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:23:28 +00:00
Jürgen Spitzmüller
5aa3af8ecc * src/frontends/qt4/ui/WrapUi.ui:
- use designer version 4.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 18:30:21 +00:00
Jürgen Spitzmüller
7b295e03f0 * src/frontends/qt4/LyXFileDialog.cpp:
- explicitely set ShowHidden for hidden UNIX directories
	  (workaround for Qt bug, bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 11:45:45 +00:00
Uwe Stöhr
bf5e1e5eeb wrap floats: switch from floatflt to wrapfig
(the manuals have already been updated two days ago)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 12:52:43 +00:00
Jürgen Spitzmüller
e99adb41bc * src/Text3.cpp (doInsertInset):
- update metrics before pasting selected content
	  (fix bug 4502).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22892 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:47:23 +00:00
Jürgen Spitzmüller
f0f398239a Backport rev. 22864:
URL: http://www.lyx.org/trac/changeset/22864
Log:
* clear selection when mutating a math inset into an eqnarray. This fixes #4452.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22865 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:40:41 +00:00
José Matox
c5a0460f3c Fix compilation with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22858 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 09:41:07 +00:00
Jürgen Spitzmüller
974c14c041 * src/LaTeXFeatures.cpp:
- add tipx to simplefeatures. Tipx is a subpackage of tipa.
* lib/unicodesymbols:
	- correct some glyphs, which are included in tipx, not tipa.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 17:33:05 +00:00
Bo Peng
c85c19cc41 Improve cursor movement around lines with ending line-breaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 16:57:34 +00:00
Jürgen Spitzmüller
b5fd550d07 whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 12:24:06 +00:00
Jürgen Spitzmüller
e3d8e0c460 compile fix. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22701 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 15:41:39 +00:00
Jean-Marc Lasgouttes
54b0ad5904 * src/Text.cpp (changeCase): do not set the selection if it was not
already set.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22700 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 13:20:44 +00:00
Richard Heck
84ebdcc766 It is the right fix. (Sorry!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:13:39 +00:00
Richard Heck
2671470085 Revert last commit. I am not sure that is the right fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:06:31 +00:00
Richard Heck
27a843bf0f Fix bug 4517. (Jurgen, since this is SO trivial, I just did it.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22682 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:03:59 +00:00
Jürgen Spitzmüller
85a10af54e ** Fix language switch issue introduced by the CJK patch **
(no status.15x entry needed, bug was introduced in the 1.5.4 cycle)

* src/output_latex.{cpp,h}:
	- (latexParagraphs, TeXEnvironment, TeXOnePar, TeXDeeper): pass Text element 
	   instead of ParagraphList. This is necessary to detect whether we are in the main text.
	- check if we are in the main text for language switches, if needed.
* src/Buffer.cpp:
* src/insets/InsetEnvironment.cpp:
* src/insets/InsetText.cpp:
* src/mathed/InsetMathMBox.cpp:
	- adapt to new latexParagraphs definition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 13:31:50 +00:00
Jürgen Spitzmüller
a4b56a4463 * src/BufferParams.{cpp,h}:
- (paperSizeName): add missing paper sizes. Add an argument to the function
	  that returns context-sensitive information (depending on the purpose)
	- (paperSizeName): Do not hardcode "letter" for default paper size (bug 2098).
	- (dvips_options): pass purpose DVIPS to paperSizeName
* src/Converter.cpp:
	- (dvipdfm_options): pass purpose DVIPDFM to paperSizeName.
* src/Format.cpp:
	- (view): pass purpose XDVI to paperSizeName (fix bug 4432).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 12:59:23 +00:00
Jean-Marc Lasgouttes
d9db666c89 fix wrong macro for line spacing with memoir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22645 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 11:44:13 +00:00
Pavel Sanda
aa658b2c63 Get rid of ugly strings in .po file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 10:53:58 +00:00
Jürgen Spitzmüller
43ef820375 * src/LaTeX.cpp:
- do a second latex run before bibtex if package clefval requests it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22613 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 10:07:04 +00:00
Jürgen Spitzmüller
6be0995fd7 * src/frontends/QDocument.{cpp,h}:
- do not update dialog when clicking in the main window without buffer change
	  (bug 4302).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22584 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 10:44:55 +00:00
Jean-Marc Lasgouttes
bf26b7172d * src/Spacing.cpp (writeBeginEnv, writeEndEnv): add a bool parameter
directing to use memoir's capitalized latex macros.
	* src/LaTeXFeatures.cpp (getPackages): act on feature "SetSpace".
	* src/output_latex.cpp (TeXOnePar): ditto

	* lib/layouts/memoir.layout: provide feature SetSpace, indicating that
	memoir provides the setspace functionality, but with a different syntax.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:59:11 +00:00
Jürgen Spitzmüller
afa16a3754 * src/LaTeXFeatures.cpp:
- the package "pdfcolmk" must be loaded after [x]color.sty
	  (see package documentation).
	- load xcolor.sty the same way than color.sty, and only load one of them
	  (xcolor, if requested, else color).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22549 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 10:11:44 +00:00
Enrico Forestieri
ec38b1d886 Use the currentItemChanged() signal instead of itemSelectionChanged()
because in Qt 4.2 the current item has not been updated yet when
itemSelectionChanged() is emitted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22547 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:34:56 +00:00
Uwe Stöhr
c4670157be InsetBox.cpp: fix the LaTeX-output, fixes bug 2492 http://bugzilla.lyx.org/show_bug.cgi?id=2492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 14:44:28 +00:00