Commit Graph

631 Commits

Author SHA1 Message Date
Richard Heck
4492a4a0f1 Fix bug #8666. Parts should have toclevel -1.
A lot of this involves removing toclevel tags. They got introduced
by the automatic update of some layout files to format 19.

(cherry picked from commit b9f48eb945)

Conflicts:

	lib/layouts/beamer.layout
	lib/layouts/memoir.layout
	lib/layouts/scrartcl.layout
	lib/layouts/stdsections.inc
2013-05-10 13:27:47 -04:00
Jean-Marc Lasgouttes
4d267e4f79 Fix bug #8627: Command line switches to change branch do not appear to work
Move the handling of branch-(de)activate(master) to Buffer. This code was moved to Bufferview in [3a03e71c/lyxgit] because a cursor was necessary to call Undo::recordUndoFullDocument(). However, it turns out that the undo code is already prepared to handle an empty cursor (and do nothing in this case).

Therefore we do that and move the branch code to Buffer where it belongs.

Note that there was a bug in the previous code that broke undo support: recordUndo should always be called _before_ doing any change.
2013-05-08 12:56:21 +02:00
Jean-Marc Lasgouttes
0d4bc37fe6 Fix bug #3199: change-next may leave empty lines behind
Using Cursor::setCursor or even BufferView::setCursor is often a bad
idea since it does not run DEPM. In this case (and other cases in
f&replace code) it is better to use BufferView::mouseSetCursor (which
should maybe be renamed...).
2013-05-08 12:28:56 +02:00
Jean-Marc Lasgouttes
0c1eb71448 Some potential bugs spotted by llvm/clang
src/TextClass.h
src/insets/InsetTabular.h

  Overloaded virtual method missing the 'const' qualifier

src/insets/InsetCommandParams.h

  Missing constructor (breaks compilation with llvm/clang)

src/frontends/qt4/GuiWorkArea.cpp

  Missing parenthesis: `+' has priority over `?:' (I do not know
  whether this has a visible effect).

src/mathed/InsetMathFont.cpp

  Use of == instead of = in mathmlize()
2013-05-08 12:08:56 +02:00
Uwe Stöhr
d44f22688b nn.po: updates from Ingar 2013-05-08 03:04:26 +02:00
Uwe Stöhr
01a5c9533d ia.po: updates from Giovanni 2013-05-08 02:57:10 +02:00
Richard Heck
594dcd885a Default font for an InsetLayout should be to inherit everything.
Fixes bug #8610.
(cherry picked from commit 6e25ae3272)
2013-05-07 11:49:56 -04:00
Richard Heck
e3875398c7 Don't try to show the status message if we are busy.
Intended to fix #8523.
(cherry picked from commit 6dac777dbc)
2013-05-07 11:32:04 -04:00
Richard Heck
da52958a3e Restore ANNOUNCE and status.20x. 2013-05-07 11:29:57 -04:00
Richard Heck
8d6573d130 Properly quote command line arguments. Patch from JMarc. Fixes
bug #8648.
2013-04-29 10:00:27 -04:00
Jean-Marc Lasgouttes
36e4d210d1 Fix bug #8633: change tracking: paragraph break is restored by undo
A recordUndo call was missing in this case.
2013-04-28 20:57:18 +02:00
Tommaso Cucinotta
1129eb0342 Fixed issue #8543 also for advanced search (cursor moved at proper end of selection before starting Find Advanced operation). 2013-04-21 22:39:28 +01:00
Uwe Stöhr
884e0171b1 sv.po: updates for LyX 2.0.6 from Jim 2013-04-21 21:22:25 +02:00
Uwe Stöhr
9043932ce2 es.po: updates for LyX 2.0.6 from Ignacio 2013-04-21 20:57:16 +02:00
Scott Kostyshak
602fd0bb72 hu/Tutorial.lyx: change default output to pdf2
(cherry picked from commit 18f5500af0)
2013-04-20 01:45:10 -04:00
Uwe Stöhr
16a31c29d5 uk.po: update from Yuri 2013-04-13 13:33:17 +02:00
Uwe Stöhr
b1b96edd2f status.20x: add entry for previous commit 2013-04-09 23:14:29 +02:00
Jean-Marc Lasgouttes
d4b960c5f4 Fix bug #8370: crash when searching for next change
Cursor::backwardPos() may enter in a nested inset, while CursorSlice::backwardPos() will not.
2013-04-08 09:44:16 +02:00
Juergen Spitzmueller
ab5306803e Split the overcrowded and chaotic UI pref pane into two (#7524) 2013-03-29 10:08:25 +01:00
Uwe Stöhr
3266415217 status.20x: add a bug number 2013-03-29 01:10:50 +01:00
Richard Heck
36bec04a13 Create a new DocumentClass for any cloned Buffer.
Uwe says that this fixes #8425.

This has been in trunk for two weeks without problems. Hopefully,
that means it is safe.

(cherry picked from commit e2155d3d58)

Conflicts:
	src/Buffer.cpp
2013-03-27 16:21:50 -04:00
Juergen Spitzmueller
340529920e Make \lyxadded and \lyxdeleted robust (#8435).
(cherry picked from commit 39ec866f68)
2013-03-27 16:14:52 -04:00
Richard Heck
00e3711c05 Clean id attributes for citations before outputting them.
For some reason, this was done in trunk but never got to
branch.
2013-03-27 16:05:09 -04:00
Richard Heck
40da79fe73 Use master buffer's setting for math output type.
(cherry picked from commit c56d524cd6)
2013-03-27 14:55:52 -04:00
Richard Heck
a3c0431b43 Add CSS styling for memoir epigraphs. 2013-03-27 14:05:55 -04:00
Richard Heck
912382e2be Disable extractFunctions() for MathML and HTML output.
Fixes bug #8609.
(cherry picked from commit dd7d76cc6c)
2013-03-27 12:11:31 -04:00
Richard Heck
5d792ae0fd Fix bug #8604: Forgot not to escape the caption string in listings.
(cherry picked from commit 7dac3a2715)
2013-03-23 10:08:10 -04:00
Jean-Marc Lasgouttes
2093b90fb7 Implement inset-select-all in mathed 2013-03-22 15:57:11 +01:00
Juergen Spitzmueller
13d6d2e2c7 Revert "Fix the zombie toolbar problem (bug #8520)"
This reverts commit c72c6f8732.
2013-03-21 09:42:32 +01:00
Uwe Stöhr
25b8ddf407 status.20x: typos 2013-03-21 02:10:35 +01:00
Uwe Stöhr
b2670c995e status.20x: entry for previous commit 2013-03-21 02:05:15 +01:00
Juergen Spitzmueller
c72c6f8732 Fix the zombie toolbar problem (bug #8520) 2013-03-20 16:19:53 +01:00
Richard Heck
7c5caaff24 Fix bug #8587 properly, by using local language for translation.
(cherry picked from commit 3057bce3f2)
2013-03-19 11:36:58 -04:00
Richard Heck
4be96ee78a Make things a little better with respect to bug #8587.
(cherry picked from commit fbe9e96b5e)
2013-03-18 19:49:18 -04:00
Richard Heck
dd10053a6e Fix bug #8598. We need to use the masterBuffer's counters in the
XHTML output routines.
(cherry picked from commit b3ceb89efc)
2013-03-18 18:47:27 -04:00
Uwe Stöhr
4aeeeb6b33 languages: fix compilation of Belarusian (bug #8593) 2013-03-16 21:16:18 +01:00
Jean-Marc Lasgouttes
1570604063 Work around annoying boost-related compiler warning 2013-02-28 15:41:56 +01:00
Georg Baum
2a7971eb6e status for last commit 2013-02-23 14:56:53 +01:00
Jean-Marc Lasgouttes
46aa8f32ec Fix confusing behavior in search when changing directions (bug 8543) 2013-02-22 18:16:04 +01:00
Uwe Stöhr
1b9150e673 status.20x: mention a fixed bug 2013-02-22 01:51:39 +01:00
Richard Heck
0735ac84e2 Don't convert --- and -- to entities in XHTML listings output.
Fixes bug #8561.
(cherry picked from commit c4bed8dbe8)
2013-02-21 18:14:06 -05:00
Richard Heck
f6f4a8ddf8 Do not try to load or copy included files when we are in a comment
or doing a dryrun. We skipped some of this before, but not all of it,
which led to bug #8557.
2013-02-21 11:54:59 -05:00
Uwe Stöhr
a67cd78556 xypic.lyx: update description of spacings
- also update all web links and squash all LaTeX warnings
2013-02-16 21:48:12 +01:00
Uwe Stöhr
186d955e86 status.20x: add missing entry for fix of bug #8391
(fixedinbranch: http://www.lyx.org/trac/changeset/fcb49729/lyxgit)
- also some formatting fixes
2013-02-16 02:05:04 +01:00
Uwe Stöhr
5619574000 status.20x: add missing entry for fix of bug #6389
(fixedinbranch: http://www.lyx.org/trac/changeset/51cc0a9b8/lyxgit)
2013-02-16 02:00:18 +01:00
Uwe Stöhr
cae6397b69 GuiTabular.cpp: fix bug #8285 for branch
fixes:
- LyX uses for a decimal alignment a multicolumn and having for a cell a multicolumn _and_ a multirow is invalid LaTeX. Therefore do not allow to set table cells to this in the dialog.
- It was impossible to unset a decimal alignment via the context menu or toolbar button.
2013-02-16 01:44:02 +01:00
Jean-Marc Lasgouttes
d2ea4aaebb Fix bug #8537: LyX creates the environment variable LC_ALL
The current code is not able to unset an environment variable, only to set it to an empty value. This patch refactors a bit the Message class and uses a new EnvChanger helper class that allows to change temporarily an environment variable and that is able to unset variables if needed.

The patch also adds new functions hasEnv and unsetEnv in environment.cpp.

Open issues:
 * there may be systems where unsetenv is not available and putenv("name=") does not do the right thing;
 * unsetenv may lead to leaks on some platforms.
 * when using unsetenv, we may need to remove strings from the internal map that setEnv uses.
2013-02-15 18:23:48 +01:00
Scott Kostyshak
688d280da6 status.20x: add fix for editor combo boxes (#8237) 2013-02-12 03:42:22 -05:00
Richard Heck
5e9ea6f315 Fix really silly logic error. This should make prettyref-based
files work better when converted to refstyle.
(cherry picked from commit 1b7d812e51)
2013-02-07 09:33:41 -05:00
Jean-Marc Lasgouttes
720784b811 Make sure that inset-forall does not skip insets
This could happen with
  inset-forall Note:Note char-delete-forward
when there where consecutive note insets.
2013-02-06 10:35:41 +01:00