Commit Graph

32775 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
3cf887f08e Fix various warnings issued by clang++.
* remove unused class TexStream.

* remove unused virtual method Inset::cellXOffset

* remove second argument of FileDialog constructor, which was actually
  not used

* remove some dead local code

* remove some unused private members of classes

* in InsetMathNest::updateBuffer, fix the logic of a test
2015-04-03 15:20:54 +02:00
Richard Heck
af11949934 Status for cherry picks. 2015-04-01 18:45:19 -04:00
Alfredo Braunstein
273893a38a Text2.cpp (checkAndActivateInset, checkAndActivateInsetVisual): activate insets on selection if the anchor is inside the inset.
insets/InsetText.cpp (InsetText::edit): do not reset the selection
Fixes #2346.

(cherry picked from commit 25cf12d650)
2015-04-01 18:41:46 -04:00
Alfredo Braunstein
e627e562a7 mathed/InsetMathHull.cpp (InsetMathHull::doDispatch): do not declare LFUN_FINISHED_* lfuns as undispatched after handling them
Fixes #9289, and an unreported cousin of #3900

(cherry picked from commit 866fc2afcc)
2015-04-01 18:40:07 -04:00
José Matos
5ed74b4446 Make lyx2lyx parser a bit more robust.
Ignore if the first line of a lyx file does not start with a #
Add such a line if it is missing..

Fixes bug #9279
2015-03-31 15:29:41 +01:00
Alfredo Braunstein
10b0fab02d insets/InsetTabular.cpp (doDispatch): fix to #9291. The problem was simply that the default status for the cursor in the call to *::doDispatch is "dispatched".
insets/InsetTabular.cpp (edit): do not reset the selection

(cherry picked from commit b2246c4ea2)
2015-03-30 20:42:30 -04:00
Alfredo Braunstein
d91035d89f Rewrite of change-related helpers
lyxfind.cpp(findNextChange, findPreviousChange, findChange, selectChange): factor the change-selection part out of the change-finding part
Text.cpp (acceptOrRejectChanges): call only selectChange

(cherry picked from commit 8f821dba70)

Conflicts:
	src/Text.cpp
2015-03-30 20:41:25 -04:00
Jean-Marc Lasgouttes
c966875ece Call DEPM properly when going somewhere with outliner.
LFUN_PARAGRAPH_GOTO used to do a plain setCursor, whereas the more elaborate mouseSetCursor is a much better version.

Fixes bug #9479.
2015-03-30 10:50:24 +02:00
Jean-Marc Lasgouttes
22a9e27895 Fix setting Interlingua as GUI language
The problem came from the fact that Qt associates Interlingua to locale C.
Now, we do not rely anymore on the Qt locale to set the language. I suspect that the problem will still exist if the system locale is ia_IA.

Fixes bug #9267.
2015-03-30 10:30:56 +02:00
Enrico Forestieri
a7970c1699 Use an info inset instead of a graphics one 2015-03-28 20:45:34 +01:00
Enrico Forestieri
5f3bb073bb Allow using icon names in InsetInfo
Currently, only lfun names are accepeted but there are cases in which
the lfun name does not map directly to an icon. For example, in the
outliner, the icon named "promote" is used for the lfun outline-out.
As a result, a graphics inset is used in the documentation for describing
the corresponding icon. Now one can also use an icon name. The argument
of "info-isert icon" is first looked up as an lfun. If no corresponding
icon is found, the argument is taken as the name of the icon. If no such
icon exists, the "unknown" icon is used.
2015-03-28 20:36:05 +01:00
Stephan Witt
2622c99dd5 #9477 improved argument handling for LFUN_SPELLING_ADD,LFUN_SPELLING_IGNORE and LFUN_SPELLING_REMOVE (backport) 2015-03-28 11:07:56 +01:00
Richard Heck
c56d72ffa3 Remerge strings. 2015-03-27 16:08:20 -04:00
Jean-Marc Lasgouttes
c271973b85 Fix consecutive merging of tabular cells
This is a bug reported and fixed by Edwin Leuven.

Here is how Edwin described it in his inimitable minimalist style:
  first i merge the top-left two cells in a small, say 3x3, table

  if i then merge this multicolumn cell with the remaining cell in the first row
  my table ends up all bonkers
2015-03-25 09:49:43 +01:00
Juergen Spitzmueller
d98618c7db Fix thinko in convert_corollary_args
Fixes: #9478
2015-03-25 09:21:42 +01:00
Jean-Marc Lasgouttes
a6bc4a2a34 Use isActive() instead of editable() in mathed.
Fixes crash introduced in [d5eeabcf/lyxgit].

editable() is more related to Texted. It is false for closed collapsable insets
Eventually the two methods should be merged.
2015-03-23 21:46:15 +01:00
Juergen Spitzmueller
4a83c642f9 Load amsthm after amsmath.
This follows a strong advice in the amsthm manual and fixes #7233.
2015-03-22 15:34:55 +01:00
Georg Baum
20c15f45d9 Fix stmaryrd operators with limits (bug 9458)
LyX did not display the limits of the big math operators defined by
stmaryrd.sty correctly. The reason for this was a missing check in
InsetMathSymbol::metrics(), where it is hardcoded which symbols use display
style limits and which symbols use inline limits. In an ideal world this
information would be contained explicitly in lib/symbols.
2015-03-22 09:31:04 +01:00
Jean-Marc Lasgouttes
713d83bf34 Toggle properly toolbar icons that set layout of a paragraph.
Fixes bug #9463.
2015-03-19 18:24:39 +01:00
Juergen Spitzmueller
a1735d5f25 Add bug number 2015-03-19 10:36:24 +01:00
Juergen Spitzmueller
d67e1789a3 Properly handle the bicaption package (bug #9449) 2015-03-18 08:42:49 +01:00
Juergen Spitzmueller
c549f11b83 Make the missing class warning opt-out 2015-03-17 14:21:32 +01:00
Juergen Spitzmueller
c4ed79bba6 fixltx2e must be loaded as early as possible
Fixes: #9452, #9361

This reverts the 'fix' to #7233, which must be solved differently.
2015-03-17 14:16:50 +01:00
Jean-Marc Lasgouttes
f3c2bfd495 add "Keywords" to lyx.desktop file
Fixes bug #9414.
2015-03-17 10:20:51 +01:00
Enrico Forestieri
3d73bda0c0 Update it.po 2015-03-16 21:11:49 +01:00
Enrico Forestieri
1fb3f8b4e0 Fix bug #9453
This was due to a problem with the QProcess parser.
See #9453 for details.
2015-03-16 20:21:49 +01:00
Jean-Marc Lasgouttes
a50c0f7d13 Add proper importers for Sweave and knitr.
Fixes bug #8734.
2015-03-16 19:34:38 +01:00
Juergen Spitzmueller
b7d2169413 Phantom is fragile (#9456) 2015-03-16 17:25:15 +01:00
Juergen Spitzmueller
48774ed56f de.po 2015-03-16 14:34:30 +01:00
Juergen Spitzmueller
95e41332da Properly escape backslash in string
Richard, I took the liberty to just backport without further ado. This string is commented out anyway, but it constantly pops up as untranslated in the po files, which is a bit annoying
2015-03-16 14:33:11 +01:00
Juergen Spitzmueller
e715055373 Set the logic straight 2015-03-16 10:57:31 +01:00
Juergen Spitzmueller
69d10bd4c8 Allow to disable inputenc loading via 'Provides inputenc 1' 2015-03-16 10:55:47 +01:00
Juergen Spitzmueller
f790bb046e Properly define MultiPar status of caption in the layout definition.
Also remove hardcoded paragraph break disabling.
2015-03-12 09:54:01 +01:00
Georg Baum
141f13a9cc Remove unsupported macros from autocompletion
We have some math macros that exist only because LyX can display them easily,
but which require user preamble code. These commands should not appear in
autocompletion, they are only there to make the formulas of users who actually
need these symbols and know what to put into the preamble more beautiful.
2015-03-10 21:04:24 +01:00
Jean-Marc Lasgouttes
226c6f6b17 Take in account the parent's getStatus in macro templates
This avoids invoking the insert space dialog instead of the math version. Thereafter, spaces are correctly inserted inside macro templates.

This is the last part of the fix to #9432.
2015-03-10 17:23:10 +01:00
Jean-Marc Lasgouttes
d5eeabcfdd Check that DocIterator::sanitize only adds editable insets
This fixes the crash on ticket #9432, but the bug there has other causes.
2015-03-10 17:20:25 +01:00
Jean-Marc Lasgouttes
3c0f46fb33 Do not sanitize the anchor of cursor when selection is not set
Additionally, move the code to write to a stream from Cursor to CursorData (so that debugging undo is easier). We loose x_target, but I am not sure it is important.

This is the second part of bug #9432.
2015-03-10 17:20:10 +01:00
Jean-Marc Lasgouttes
f620de8036 Main argument of a subfloat is not a moving argument
Fixes bug: #9421
2015-03-09 17:53:03 +01:00
Uwe Stöhr
d7bf990dfd pdfcomment.module: fix dependencies 2015-03-08 03:40:38 +04:00
Uwe Stöhr
5e41f91b7c MultilingualCaptions.lyx: few more fixes 2015-03-08 03:37:23 +04:00
Uwe Stöhr
0c8f3a4cfb MultilingualCaptions.lyx: some fixes and improvements
- load nicer screen fonts
- fix some typos and sorting mistakes
2015-03-07 15:15:23 +04:00
Uwe Stöhr
d80672d459 French MultilingualCaptions.lyx: this time really the french version 2015-03-07 13:14:27 +04:00
Enrico Forestieri
0e274e06d8 Update cygwin script.
Recent versions of the cygwin X11 server come with a startup script
that explicitly uses '-nolisten tcp' for improved security. This means
that mentioning a host part in the DISPLAY variable precludes correct
operation. So, leave blank the host part such that only local connections
are attempted. Even if a user can override this setting in the own
~/.lyxprofile, novice users (and even experienced ones, at first) would be
probably confused by the "Error: Can't open display: localhost:0" message
and thus it is better to make this work out of the box.
2015-03-05 00:01:40 +01:00
Jean-Marc Lasgouttes
997cc6a774 Record undo properly when changing multiple paragraphs parameters
Fixes bug 9437.
2015-03-01 19:49:47 +01:00
Uwe Stöhr
907ef51e51 Installer: slovak.nsh: backport translation update for old installer 2015-02-27 01:11:36 +01:00
Uwe Stöhr
e920209131 fr.po: translations by Jean-Pierre 2015-02-27 00:42:21 +01:00
Uwe Stöhr
8e93f105ca English MultilingualCaptions.lyx: fix 2 mistakes
spotted by Jean-Pierre
2015-02-27 00:41:48 +01:00
Uwe Stöhr
76b1deaf88 French MultilingualCaptions.lyx: new translation by Jean-Pierre 2015-02-27 00:40:00 +01:00
Uwe Stöhr
d040a1bbe1 French Intro.lyx: some adjustments by Jean-Pierre 2015-02-27 00:21:10 +01:00
Juergen Spitzmueller
30efd4f636 Check for ugm font availability
Fixes: #9429
2015-02-24 16:08:55 +01:00