Commit Graph

37685 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
c7647eb394 Make InsetInfo active agin (aka the vengeance of the neverending saga)
This is a fixup to fc7fb6a564. The fix in there seems perfectly
correct (up to now), but for some reason, I could not refrain from
making InsetInfo not active. "What could possibly go wrong?", I heard
myself think.

Now I know: this causes an assertion error in InsetText::updateBuffer
because DocIterator::forwardPos does not enter the inset anymore.
2017-07-20 23:56:45 +02:00
Jean-Marc Lasgouttes
fc7fb6a564 Try to end the neverending fixIfBroken saga
This is a fixup to the  series of commits 522516d9, d0acc3e5, 13c3c148.

Actually the right thing to consider in all situations is isActive(),
which really means `can a cursor be in there?'.

Improve the description of isActive() and editable() in Inset.h.

Set isActive() to false for InsetInfo, since no cursor should ever go there.

Again part of #10667.
2017-07-20 11:18:20 +02:00
Pavel Sanda
4d09650e93 Changes approved by Juergen. 2017-07-19 14:38:46 +02:00
Juergen Spitzmueller
59a6552bb3 de and de-alt reviewed. 2017-07-19 14:30:51 +02:00
Juergen Spitzmueller
943da868a4 de.po: review of 'list of listings' 2017-07-19 14:27:37 +02:00
Pavel Sanda
a69e3df7b2 layouttranslations.review: "it" was obviously checked by Enrico (coming from minted) 2017-07-19 13:53:57 +02:00
Pavel Sanda
cd7b22221d We have new translation which slipped through the cracks. 2017-07-19 13:36:06 +02:00
Pavel Sanda
2cfc970015 layouttranslations: new untracked movements for "List of listings".
Likely follow-up from ab47e48dcc.
2017-07-19 13:29:57 +02:00
Kornel Benko
57f6a95e90 Update some translation by Jari-Matti Mäkelä 2017-07-19 12:40:15 +02:00
Pavel Sanda
0dbfa04c15 Typo in lib/layouttranslations makefile machinery. 2017-07-19 12:38:13 +02:00
Kornel Benko
5fc1837e2d Update fi.po
Translations from Jari-Matti Mäkelä <jmjmak@utu.fi>
2017-07-19 12:02:01 +02:00
Juergen Spitzmueller
9bc47b83cb Some minor polishment and comments. 2017-07-19 10:22:13 +02:00
Juergen Spitzmueller
e79782c4cc Scripts for connecting LyX with evince for backward/forward search
The scripts have been initially developed by Benjamin Kellermann (2011)
as a derivation of gedit-synctex-plugin by José Aliste
(https://github.com/jaliste/gedit-synctex-plugin, 2010) and published on
https://ubuntuforums.org/showthread.php?t=1716268.

The work here is based on a further derivation of this work for Sublime
Text LaTeX Tools
(https://github.com/SublimeText/LaTeXTools/tree/master/evince).

Adaptations for the use with LyX as well as the initial translation of
the evince_sync bash script to python have been done by myself.

The python code (particularly evince_sync_lyx) needs audit!
2017-07-18 19:08:44 +02:00
Christian Ridderström
5078448111 Fix minor whitespace error.
Fix the whitespace in e.g. 'QString&' to 'QString &' as this
incorrect, but primarily to simplify a comparison related to
later possibly introducing the use of .clang-format.
2017-07-17 22:23:17 +02:00
Guillaume MM
47612b3839 Accept modifications in R examples 2017-07-17 22:15:12 +02:00
Guillaume MM
6b0381b386 Define theorem counter for acmart layout 2017-07-17 21:57:39 +02:00
Juergen Spitzmueller
272cb6b464 Add some notes on forward/reverse search with evince.
Evince is a special case, since it provides f/r search not via command
line switches and pref settings, but via DBUS. On Linux at least, this
can be used by LyX via some external scripts. The possibility is now
mentioned here, the details (and the scripts) are provided on the wiki.
2017-07-17 10:26:43 +02:00
Enrico Forestieri
aeead38d90 Update lib/Makefile.am 2017-07-16 11:22:05 +02:00
Jean-Marc Lasgouttes
a39a98f422 Fix comment 2017-07-15 18:41:56 +02:00
Enrico Forestieri
8ee2d74def Classic icon for toolbar-toggle-review 2017-07-15 16:43:18 +02:00
Jean-Marc Lasgouttes
ebb9d7b058 Avoid multiple execution of AddToPreamble and friends
When trying to read a textclass, read(Lexer, Readtype) parses and
executes the first token and only then verifies that its effect was to
set format properly. Otherwise it exits.

This is wrong, because if the first tag is "AddToPreamble", then it will
have modified the preamble by the time we notice it was not "Format" and
therefore exit.

The new code starts by requiring a correct "Format" tag.

Fixes bug #10725.
2017-07-15 16:34:48 +02:00
Enrico Forestieri
bebfa84d79 Oxygen icon for toolbar-toggle-review 2017-07-15 16:12:40 +02:00
Enrico Forestieri
2460d5904d Tweak some icons
- Move down the ERT icon
- Remove the transparent background from note icons as it turns out
  not to be transparent on some combinations of platform/Qt version
2017-07-15 15:27:36 +02:00
Enrico Forestieri
d0989c9a53 Better icon for toolbar-toggle-review 2017-07-15 15:04:00 +02:00
Scott Kostyshak
bc7aa4062b sv.po: translation update from Jim Rotmalm 2017-07-15 04:45:07 -04:00
Scott Kostyshak
8bde9e15c0 Update of Swedish splash.lyx from Jim Rotmalm 2017-07-15 04:22:33 -04:00
Scott Kostyshak
4d0c29d58a uk.gmo: update to match latest po
This amends ca0ba098 and f01ca45d.
2017-07-15 04:13:06 -04:00
Kornel Benko
12a2565b97 Cmake build: Use the same destination for lyx-tex-files as in automake 2017-07-14 11:24:20 +02:00
Juergen Spitzmueller
271cea8665 de.po: address shortcut clash 2017-07-14 09:23:22 +02:00
Jean-Marc Lasgouttes
04eef3480f Fix generation of lyx_commit_hash.h
The code in the Makefile was incorrect.
2017-07-13 18:14:03 +02:00
jpc
c9f398d7c5 Copy documentation of new features of Additional.lyx in de, es, fr and ja documentation files
as change tracking and remove chnage tracking in Additional.lyx
2017-07-12 22:31:30 +02:00
jpc
5cf91ca811 Translations of backports from 2.2 from Uwe 2017-07-12 21:44:05 +02:00
jpc
c5ea42efe5 Typo in fr.po 2017-07-12 18:20:52 +02:00
Jean-Marc Lasgouttes
f6e37a8ca0 TextMetrics::leftMargin does not need a max_width parameter
Additionally move it to private: section.
2017-07-12 10:29:27 +02:00
Jean-Marc Lasgouttes
0d565f7b35 When cleaning up before quitting, take care of exceptions
We do not want the cleanup work to be interrupted by a buffer exception.

Spotted by coverity. See bug #9979 for discussion.
2017-07-11 15:30:32 +02:00
Jean-Marc Lasgouttes
fc75cbd88f Remove copy-and-paste error 2017-07-11 13:43:32 +02:00
Jean-Marc Lasgouttes
cfd27dd219 Do not record undo when typing two spaces has been blocked
Move the code that forbids character insertion in its own helper function.

Call this function before doing a recordUndo. This avoids to mark the
document dirty in cases where nothing happens.

Part of bug #10721.
2017-07-11 12:15:29 +02:00
Juergen Spitzmueller
7945ba0cb0 Load color before polyglossia also in preview snippets
This fixes an error in the preview generation with polyglossia
and bidi that prevents snippet generation (and consequently also
"math as image" xhtml output).

Fixes: #10716.
2017-07-11 10:03:03 +02:00
Kornel Benko
e23e65a973 Cmake build: Install lyx-provided fonts to where GuiFontLoader.cpp expects them 2017-07-10 13:17:29 +02:00
jpc
56f11bf5fd Forgot 1 fuzzy in fr.po 2017-07-10 11:45:31 +02:00
jpc
cdb65e852c Update fr.po for beta 2017-07-10 11:10:06 +02:00
Enrico Forestieri
7c14ff94e3 Fix bug #10718
Due to the peculiarities of Windows, it may happen that
pdftocairo is built without png support when compiled on this
platform. Unless explicitly requested (maybe for some peculiar
application and certainly not for usual distros), this is
highly improbable to occur on other platforms.
2017-07-09 22:27:06 +02:00
Kornel Benko
ca0ba098da Amend f01ca45: uk.po: translation update from Yuri Chornoivan 2017-07-09 08:58:00 +02:00
Scott Kostyshak
f01ca45df2 uk.po: translation update from Yuri Chornoivan 2017-07-07 10:10:50 -04:00
Jean-Marc Lasgouttes
0ba385800e Rewrite stripName without regex
Using a regular expression to find /src/ or \src\ in a string is overkill,
and since regexes can throw exceptions, it makes coverity nervous.

The new code is simpler anyway.
2017-07-06 15:26:32 +02:00
Jean-Marc Lasgouttes
02c9d2e67c Fix uninitialized members outfd and infd
Also move initialization of some variables to initializers list.

Only the non-win32 part has been tested, but it should be OK.

Spotted by coverity.
2017-07-06 14:52:19 +02:00
Jean-Marc Lasgouttes
449b594a72 Fix unitialized member
Spotted by coverity.
2017-07-06 14:45:21 +02:00
Jean-Marc Lasgouttes
c2d182f59a Remove test that is not needed.
We know that buf is not null at this point.

Spotted by coverity.
2017-07-06 14:14:43 +02:00
Jean-Marc Lasgouttes
64667735f4 h_use_minted is a bool, not a string
We have a mix in this file of boolean stored as such or as strings.
This translates to values written as true/false or 1/0 in .lyx files.

In this case, the value of use_minted could only be true, since the
char * pointer is non null.

Also add some else clauses.

Spotted by coverity.
2017-07-06 14:11:30 +02:00
Jean-Marc Lasgouttes
29378af4cd Rename some macro-related insets
These classes should have names that start with "Inset". Renaming done:
MathMacro => InsetMathMacro
MathMacroTemplate => InsetMathMacroTemplate
MathMacroArgument => InsetMathMacroArgument
ArgumentProxy => InsetArgumentProxy
DisplayLabelBox => InsetDisplayLabelBox
CommandInset => InsetMathCommand
2017-07-05 14:46:34 +02:00