]>
git.lyx.org Git - lyx.git/log
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:18:01 +0000 (15:18 +0200)]
Fixup
dd79338c : avoid hypothetical division by zero
Spotted by Coverity.
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:08:38 +0000 (15:08 +0200)]
Fixup
57dc8175 : initialize GuiCharacter::nospellcheck_
Spotted by coverity.
Jean-Marc Lasgouttes [Tue, 29 May 2018 13:00:04 +0000 (15:00 +0200)]
Fixup
4e9084b3e4
The reordering of the code was incorrect. The code calling Change::paintCue()
has to come last, since it depends on the change_drawn value.
Spotted by coverity.
Jean-Marc Lasgouttes [Mon, 28 May 2018 16:02:54 +0000 (18:02 +0200)]
Fixup
a8fd12d1
Remove unused variables.
Jean-Marc Lasgouttes [Mon, 28 May 2018 10:33:17 +0000 (12:33 +0200)]
Cosmetics
Use range-for in TextMetrics.cpp.
Rename InsetList::InsetTable to InsetList::Element.
Jean-Marc Lasgouttes [Mon, 28 May 2018 09:43:24 +0000 (11:43 +0200)]
Remove trailing _ to local variable
We reserve these to private members.
Jean-Marc Lasgouttes [Fri, 25 May 2018 15:08:45 +0000 (17:08 +0200)]
Draw frame last when drawing text insets
This avoid cases where the blinking cursor erases the frame.
Kornel Benko [Sun, 27 May 2018 12:31:35 +0000 (14:31 +0200)]
Adapt a testfile after commit
7a5184f and fix
5996b2e
Juergen Spitzmueller [Sun, 27 May 2018 09:54:07 +0000 (11:54 +0200)]
Fix encoding problems in \input@path
As of LaTeX2e 2018, characters are made active earlier, which results
in new expansion problems.
Following a suggestion of Markus Kohm (pc) and the TL mailing list [1],
we embrace non-ASCII input paths in \detokenize. This relies on e-tex,
but I think we can assume this is nowadays available everywhere.
[1] http://tug.org/pipermail/tex-live/2018-May/041691.html
Fixes: #11146
Juergen Spitzmueller [Sun, 27 May 2018 09:49:10 +0000 (11:49 +0200)]
Unbreak bibitem citations
ENGINE_TYPE_DEFAULT includes the other two types. Thus we need to check
for multiple engines in parallel (and reintroduce the binary operators)
Juergen Spitzmueller [Sun, 27 May 2018 07:56:45 +0000 (09:56 +0200)]
disambiguate function name
Kornel Benko [Sat, 26 May 2018 11:30:30 +0000 (13:30 +0200)]
Disable GUI for our batch tests if using QT5
Thanks to Enrico for this params
Kornel Benko [Fri, 25 May 2018 15:19:34 +0000 (17:19 +0200)]
Cmake batch tests: Generalize lists of files in test.
Each source file is to be copied to the test directory
Created files are to be compared to the corresponding expected file (if it is not set to "undef")
Kornel Benko [Fri, 25 May 2018 11:59:47 +0000 (13:59 +0200)]
Cmake batch tests: Check also if all expected files are created
Kornel Benko [Thu, 24 May 2018 18:49:11 +0000 (20:49 +0200)]
Added testcase for ticket #11156
The test is named "AMS-import", with defined test-labels 'tex2lyx' and 'batch'
Juergen Spitzmueller [Thu, 24 May 2018 15:38:10 +0000 (17:38 +0200)]
Consider required modules when checking for layout definitions in modules
Fixes: #11156.
Jean-Marc Lasgouttes [Thu, 24 May 2018 09:10:25 +0000 (11:10 +0200)]
Set caret height correctly for cells inside math rows
The code in
90cfe4ec3 only handled the cells which metrics are
computed directly, and missed those who were linearized inside a MathRow.
To fix this, we use the fact that all the positions in a math row have
the same height and make MathRow::metrics return a boolean indicating
whether it contains a caret for a given bufferview.
Fixes bug #11153.
Juergen Spitzmueller [Wed, 23 May 2018 10:34:41 +0000 (12:34 +0200)]
tex2lyx: extend titling support
Rather than checking for hardcoded title commands such as \maketitle,
use the titlename and titletype as defined in the layout.
This now also includes title environments.
Fixes part of #6461
Juergen Spitzmueller [Mon, 21 May 2018 11:45:31 +0000 (13:45 +0200)]
Fix wrong warning.
Juergen Spitzmueller [Mon, 21 May 2018 11:45:18 +0000 (13:45 +0200)]
Update tex2lyx tests
Juergen Spitzmueller [Mon, 21 May 2018 11:43:16 +0000 (13:43 +0200)]
Support \cite command in tufte classes
This is an extra command used for sidenote citations. Since we do not
provide \cite with natbib (which tufte uses) as a choice, we use the
new AddToCiteEngine feature to add it.
File format change.
Fixes: #11150
Jean-Marc Lasgouttes [Mon, 21 May 2018 11:24:27 +0000 (13:24 +0200)]
Reset dim width when computing MathRow metrics
This was dropped by mistake in
7bcb78a77 .
Fixes bug #11152.
Juergen Spitzmueller [Mon, 21 May 2018 10:46:53 +0000 (12:46 +0200)]
Allow for cite engine and format definitions/modifications in layouts
Now layout files and modules can extend the cite engines or completely
overwrite them, and modify the cite formats.
Any CiteEngine definition in a layout/module will completely overwrite
those by cite engine files.
AddToCiteEngine will extend them (add if they do not exist yet).
Any CiteFormat definition in a layout will be preferred to those in cite
engines. CiteFormat definitions that are not touched by the former are
still active, though (so, as opposed to CiteEngine, a CiteFormat does
not completely overwrite those by the engine files).
Layout format change.
Juergen Spitzmueller [Sun, 20 May 2018 10:27:03 +0000 (12:27 +0200)]
Simplify cite engines code
As opposed to modules (from which the framework was initially borrowed),
we only allow one cite engine per document. Thus, we don't need to fiddle
with lists.
Enrico Forestieri [Sat, 19 May 2018 19:33:29 +0000 (21:33 +0200)]
Fix bug #11151
Juergen Spitzmueller [Sat, 19 May 2018 08:28:50 +0000 (10:28 +0200)]
Remove insane list of requirements
Juergen Spitzmueller [Wed, 16 May 2018 06:35:21 +0000 (08:35 +0200)]
Do not start from a non-reveant parent in Buffer cloning.
Pavel Sanda [Tue, 15 May 2018 09:01:22 +0000 (11:01 +0200)]
cosmetics
Jean-Marc Lasgouttes [Mon, 14 May 2018 07:46:54 +0000 (09:46 +0200)]
Avoid black screen on macOS
When paintEvent is triggered on macOS, the least we can do is to copy
our backing store to the screen.
Jean-Marc Lasgouttes [Mon, 14 May 2018 21:58:42 +0000 (23:58 +0200)]
Implement layout-toggle lfun
This is like `layout', except that the layout is reset to default if
it was already correct. In the case of a selection, the layout is set
normally if some layouts in the selection are not at the required
layout; it is reset only if all the layouts of the selection already
have the required layout.
Part of ticket #9864.
Jean-Marc Lasgouttes [Mon, 14 May 2018 21:03:50 +0000 (23:03 +0200)]
Removed unused private variable
Spotted by clang++ 6.
Kornel Benko [Mon, 14 May 2018 15:29:45 +0000 (17:29 +0200)]
Cmake mingw build: Get rid of a cmake warning regarding policy CMP0020
For explanation see the output of 'cmake --help-policy CMP0020'
Jean-Marc Lasgouttes [Mon, 14 May 2018 14:33:52 +0000 (16:33 +0200)]
Clean up code of LFUN_LAYOUT
Factor out some code in helper functions. Improve getStatus so that
icon is selected only when the whole selection has the correct layout.
This work towards ticket #9864.
jpc [Mon, 14 May 2018 14:19:00 +0000 (16:19 +0200)]
Update fr.po
Stephan Witt [Sun, 13 May 2018 18:15:35 +0000 (20:15 +0200)]
#11142 correct list of previous version to check for user directory contents
LyX on Mac uses a user directory with version suffix. On change of the version suffix the existence of the directories with previous versions is checked and the latest one is used for a copy on first configure run. For 2.4 the candidate list starts with 2.3 now as it should.
Enrico Forestieri [Sat, 12 May 2018 16:07:42 +0000 (18:07 +0200)]
Update it.po
Kornel Benko [Fri, 11 May 2018 17:52:08 +0000 (19:52 +0200)]
Update sk.po
Juergen Spitzmueller [Fri, 11 May 2018 13:31:04 +0000 (15:31 +0200)]
Implement InsetFloat::contentAlignment()
Juergen Spitzmueller [Fri, 11 May 2018 13:11:06 +0000 (15:11 +0200)]
Fix InsetBox::contentAlignment()
Some cases where alignment is possible were missing.
Candidate for 2.3.x.
Juergen Spitzmueller [Fri, 11 May 2018 11:47:27 +0000 (13:47 +0200)]
Disallow paragraph customization in some single-par charstyle insets
Fixes: #9192
Juergen Spitzmueller [Fri, 11 May 2018 11:17:39 +0000 (13:17 +0200)]
Merge paragraphs when pasted into an inset that forbids multipars
Fixes: #8281
Juergen Spitzmueller [Fri, 11 May 2018 10:58:02 +0000 (12:58 +0200)]
de.po: update
Juergen Spitzmueller [Fri, 11 May 2018 10:57:43 +0000 (12:57 +0200)]
Document float alignment settings
Juergen Spitzmueller [Fri, 11 May 2018 10:57:28 +0000 (12:57 +0200)]
Align some strings
Jean-Marc Lasgouttes [Fri, 11 May 2018 09:27:26 +0000 (11:27 +0200)]
Avoid crash when trying to handle FitCursor
It is better to handle SinglePar before FitCursor, since the later
requires correct metrics at cursor position.
Fixes bug #11139 and probably #11125.
Juergen Spitzmueller [Fri, 11 May 2018 09:06:32 +0000 (11:06 +0200)]
de.po: update
Juergen Spitzmueller [Thu, 10 May 2018 18:16:56 +0000 (20:16 +0200)]
update tex2lyx tests after file format change
Juergen Spitzmueller [Thu, 10 May 2018 18:15:11 +0000 (20:15 +0200)]
Add support for global float alignment
It is now possible in the float settings (doc dialog) to specify a global
(inner) alignment for floats, and in the float settings, this can be
overridden (just as with float placement)
Fixes: #8665
File format change.
Scott Kostyshak [Thu, 10 May 2018 17:24:23 +0000 (13:24 -0400)]
Fix menu accelerator conflict
Scott Kostyshak [Fri, 4 May 2018 22:21:54 +0000 (18:21 -0400)]
Only show Accept/Reject Change options if relevant
In the context menu for a selection, we now only show the options
"Accept Change" and "Reject Change" if there is actually a change in
the selection. Similarly, in the toolbar, the buttons are only
enabled when there is a change in the selection.
This fixes #10338.
José Matos [Wed, 9 May 2018 07:53:28 +0000 (08:53 +0100)]
Simplify the backup names when using an older file format.
Currently if we have a 2.3 file and we open it with a more recent version
we get:
original file: file.lyx
backup file: file-lyxformat-544.lyx~
After this commit the backup file becomes
file-lyx23.lyx~
If the file is from a development version then we get the same result as before.
Scott Kostyshak [Tue, 8 May 2018 15:18:07 +0000 (11:18 -0400)]
Center longtable explicitly (#10690)
"Center" is the default of longtable, but some situations require it
to be centered explicitly, such as when using floatrow:
https://tex.stackexchange.com/questions/320592/floatrow-package-conflicting-with-centering-longtable
Enrico Forestieri [Tue, 8 May 2018 12:06:01 +0000 (14:06 +0200)]
Update it.po
Kornel Benko [Tue, 8 May 2018 07:00:11 +0000 (09:00 +0200)]
Update sk.po
Kornel Benko [Tue, 8 May 2018 06:42:36 +0000 (08:42 +0200)]
Update sk.po
Juergen Spitzmueller [Tue, 8 May 2018 06:36:47 +0000 (08:36 +0200)]
Correct German translation
"Benutzerdefiniert" means "user defined", which is not what "custom"
means here (custom insets/text styles are usually not user defined,
but provided by a class/module).
Richard Kimberly Heck [Tue, 8 May 2018 06:07:47 +0000 (02:07 -0400)]
Fix problem noted by Scott in bug #11125.
Need to set the Buffers for math insets, too.
Juergen Spitzmueller [Tue, 8 May 2018 05:57:00 +0000 (07:57 +0200)]
de.po: update
Juergen Spitzmueller [Tue, 8 May 2018 05:46:53 +0000 (07:46 +0200)]
Separate Text Styles and Text Properties
Juergen Spitzmueller [Mon, 7 May 2018 16:42:35 +0000 (18:42 +0200)]
Improved oxygen icons for dynamic menus
Enrico Forestieri [Mon, 7 May 2018 13:36:50 +0000 (15:36 +0200)]
Update it.po
Juergen Spitzmueller [Mon, 7 May 2018 12:48:32 +0000 (14:48 +0200)]
de.po
Kornel Benko [Mon, 7 May 2018 11:43:48 +0000 (13:43 +0200)]
Add missing handling of entry 'Dynamicmenu' to po/lyx_pot.py
Kornel Benko [Mon, 7 May 2018 11:29:57 +0000 (13:29 +0200)]
Cmake build: Recreate .pot files also if po/lyx_pot.py changes.
Enrico Forestieri [Mon, 7 May 2018 09:55:47 +0000 (11:55 +0200)]
New icons for dynamic inset and charstyle menus.
These icons are more in line with the default theme, IMHO.
jpc [Mon, 7 May 2018 09:52:52 +0000 (11:52 +0200)]
Update fr.po
Juergen Spitzmueller [Mon, 7 May 2018 08:15:23 +0000 (10:15 +0200)]
Fix cutnpaste error
Juergen Spitzmueller [Mon, 7 May 2018 07:28:55 +0000 (09:28 +0200)]
Document nospellcheck
Juergen Spitzmueller [Mon, 7 May 2018 07:27:08 +0000 (09:27 +0200)]
de.po: update
Kornel Benko [Mon, 7 May 2018 07:19:34 +0000 (09:19 +0200)]
Update sk.po
jpc [Mon, 7 May 2018 07:19:18 +0000 (09:19 +0200)]
Update fr.po (last step after character style review)
Juergen Spitzmueller [Mon, 7 May 2018 07:14:55 +0000 (09:14 +0200)]
UserGuide: Reset > Default
Juergen Spitzmueller [Mon, 7 May 2018 07:03:45 +0000 (09:03 +0200)]
GuiCharacter: Reset > Default
Juergen Spitzmueller [Mon, 7 May 2018 06:41:28 +0000 (08:41 +0200)]
Paint nospell mark lower than foeign mark, since these can appear both
Also, assure that misspelled mark is not shown when nospellcheck()
Juergen Spitzmueller [Sun, 6 May 2018 17:48:21 +0000 (19:48 +0200)]
Add \nospellcheck font property
This revives a ten year old idea (and patch) by Dov.
You can now mark in the character dialog text and exclude it from spell
checking.
Fixes: #1042
File format change
Remaining issue: The instant spell checking marks are not immediately
removed, but only after some editing.
Richard Kimberly Heck [Fri, 4 May 2018 01:28:09 +0000 (21:28 -0400)]
Try some new icons for new dynamic inset and charstyle menus.
Suggestions by Pavel. Also move menus on toolbars per his suggestions.
jpc [Sun, 6 May 2018 15:43:44 +0000 (17:43 +0200)]
Update fr.po (first step)
Kornel Benko [Sun, 6 May 2018 13:29:41 +0000 (15:29 +0200)]
Small corrections in slovak.nsh
Juergen Spitzmueller [Sun, 6 May 2018 12:17:28 +0000 (14:17 +0200)]
UserGuide: Adapt to new character dialog.
Also differentiate more between (semantic) Character Styles and (formal)
Text Properties.
Kornel Benko [Sat, 5 May 2018 17:23:20 +0000 (19:23 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 5 May 2018 16:57:26 +0000 (18:57 +0200)]
de.po: update
Juergen Spitzmueller [Sat, 5 May 2018 16:48:43 +0000 (18:48 +0200)]
More UI tuning following Scott's suggestions
Richard Kimberly Heck [Sat, 5 May 2018 16:02:10 +0000 (12:02 -0400)]
Remove unused function.
Juergen Spitzmueller [Sat, 5 May 2018 15:45:17 +0000 (17:45 +0200)]
Fine-tune character dialog UI
Juergen Spitzmueller [Sat, 5 May 2018 15:24:09 +0000 (17:24 +0200)]
Further BC fixes to GuiCharacter
Juergen Spitzmueller [Sat, 5 May 2018 14:04:54 +0000 (16:04 +0200)]
de.po: update
Juergen Spitzmueller [Sat, 5 May 2018 13:43:54 +0000 (15:43 +0200)]
Make textcommabelow feature conditional on encoding
Juergen Spitzmueller [Sat, 5 May 2018 13:26:58 +0000 (15:26 +0200)]
Use a copy of BufferParams
Juergen Spitzmueller [Sat, 5 May 2018 13:26:37 +0000 (15:26 +0200)]
Check script char fontenc from main language.
Juergen Spitzmueller [Sat, 5 May 2018 10:35:07 +0000 (12:35 +0200)]
Fix BC issue with autoapply
Juergen Spitzmueller [Sat, 5 May 2018 10:00:22 +0000 (12:00 +0200)]
de.po: update
Kornel Benko [Sat, 5 May 2018 09:55:38 +0000 (11:55 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 5 May 2018 09:33:45 +0000 (11:33 +0200)]
Have OK/Apply buttons initially disabled.
Juergen Spitzmueller [Sat, 5 May 2018 09:32:56 +0000 (11:32 +0200)]
Add missing transition to button controller
(needed by GuiCharacter, the only user of that specific policy)
Juergen Spitzmueller [Sat, 5 May 2018 09:28:54 +0000 (11:28 +0200)]
Remove unused code
Juergen Spitzmueller [Sat, 5 May 2018 08:29:26 +0000 (10:29 +0200)]
Fix signals
Juergen Spitzmueller [Sat, 5 May 2018 08:28:43 +0000 (10:28 +0200)]
Remove hack that's no longer needed
Juergen Spitzmueller [Sat, 5 May 2018 08:05:01 +0000 (10:05 +0200)]
Add and correct tooltips
Juergen Spitzmueller [Sat, 5 May 2018 08:04:46 +0000 (10:04 +0200)]
Add translator hints
Juergen Spitzmueller [Sat, 5 May 2018 08:00:20 +0000 (10:00 +0200)]
Remove connections
We have on_emphCB_clicked() and on_nounCB_cklicked() that call
change_adaptor at the end (after doing other things)