Stephan Witt
1c5a2fc0ec
#11756 hide additional menu items in edit menu on Mac
...
Mac OS adds two extra menu entries to the edit menu.
These menu items are:
1. Start Dictation...
2. Emoji & Symbols
Both menu items don't work with LyX.
Therefore they shouldn't be present and the new code hides them.
2020-08-30 11:24:59 +02:00
Stephan Witt
784139da50
Remove unused leftover from Makefile.
2020-08-30 11:24:59 +02:00
Enrico Forestieri
80f94a9398
Use correct width for \fint
...
Both QTextLine::naturalTextWidth() and QTextLine::horizontalAdvance()
return the same value for \fint. However, examining esint10.ttf with
fontforge does not reveal any issue with the metrics. The fact that
\fint seems to be the only affected symbol might be due to its code
point, which corresponds to a space, so that maybe Qt makes some
assumptions on the metrics.
As QTextLine::naturalTextWidth() returns the width of the line that is
occupied by text, in the case of a single symbol we can obtain the
same value by using the width of the rectangle bounding the symbol.
2020-08-29 20:10:26 +02:00
Juergen Spitzmueller
6f476b960e
Localize format prettyName in some more places ( #11954 )
2020-08-29 11:50:43 +02:00
Juergen Spitzmueller
3fc095e3bc
Do not \protect label in subfloat caption ( #11950 )
2020-08-28 07:32:29 +02:00
Yuriy Skalko
3bd358a2f6
Prevent permanent disabling of comboboxes in Vertical/Horizontal space dialogs
2020-08-28 07:07:44 +02:00
Juergen Spitzmueller
4fdcf0e929
address deprecation warning
2020-08-27 14:43:23 +02:00
Pavel Sanda
28dd0e1f21
Fix Qt4 compilation.
2020-08-27 14:05:22 +02:00
Juergen Spitzmueller
bc76026da5
Disable citationSearchLE with citationSearchCB
2020-08-27 12:53:41 +02:00
Juergen Spitzmueller
39caa70100
Clear info_ cache if format changes
2020-08-27 12:41:40 +02:00
Juergen Spitzmueller
d44929ff81
Properly report back if showDirectory() doesn't succeed
2020-08-27 11:58:37 +02:00
Juergen Spitzmueller
ff14d0bd00
Report back if citation target could not be opened
2020-08-27 11:52:52 +02:00
Juergen Spitzmueller
5cc191ddee
Fix string subst
2020-08-27 11:52:23 +02:00
Juergen Spitzmueller
b4ca3e4fa4
Assure bibinfo is correctly processed
2020-08-27 11:42:03 +02:00
Juergen Spitzmueller
c5c3323f32
Properly disable function
2020-08-27 10:59:15 +02:00
Juergen Spitzmueller
8365eabd6f
Make paper search function accessible and customizable
2020-08-27 08:48:55 +02:00
Juergen Spitzmueller
d436a51024
About: Fix cutting of icon ( #11946 )
2020-08-26 10:01:53 +02:00
Jean-Marc Lasgouttes
cc349fd031
Add space before display math that starts a paragraph
...
This extra spacing was missing and is important for detecting extra
par breaks before equations (which are most of the times not wanted).
To do that, add a new member vmode to MetricsInfo which is equivalent
to LaTeX's \ifvmode (start of paragraph).
If in vmode, add the equivalent of an empty line before a display math inset.
At the same time, tweak value of \(above|below)displayskip, which was
12pt, whereas LaTeX uses 10pt in 10pt size (our reference).
Fixes bug #11891 .
2020-08-25 13:20:37 +02:00
Stephan Witt
3c1b4a5d7e
#6401 avoid use of lyxCode()
2020-08-25 10:54:49 +02:00
Jean-Marc Lasgouttes
294e4884ee
Center correctly top labels like Abstract.
...
They used to take the paragraph indentation into account.
Fixes bug #11939 .
2020-08-25 10:30:34 +02:00
Jean-Marc Lasgouttes
ee3a711316
Forgotten break in switch found by coverity scan.
2020-08-24 17:21:04 +02:00
Jean-Marc Lasgouttes
2a6f1d2b58
Fixup 907f0207
: another place where pm.ascent() is wrong
...
Fix bug where selecting in first paragraph gave an end of selection on
wrong row.
Since pm.ascent() may contain the top margin, it makes sense in
setCursorFromCoordinates() to use the ascent of the front row instead,
like was none in907f0207 for getPitAndRowNearY().
2020-08-24 17:14:08 +02:00
Pavel Sanda
44ede7ef4b
Do not hardcode launching of lyxpaperview script.
2020-08-24 15:11:53 +02:00
Yuriy Skalko
c160e21c48
Split some UI strings for translations
2020-08-24 07:23:40 +02:00
Pavel Sanda
894ad70eba
Enable Open Citation menu item iff citation contain locator information or external search script is available.
...
Per Juergen's request.
2020-08-23 22:19:34 +02:00
Juergen Spitzmueller
0fa93fe55a
Amend 76cdca6422
...
Use auto pointer in all loops over UsedLanguages_
2020-08-23 13:49:56 +02:00
Richard Kimberly Heck
17f9d6b192
Fix warnings
2020-08-23 05:48:15 -04:00
Juergen Spitzmueller
76cdca6422
range-based loops
2020-08-23 10:07:49 +02:00
Juergen Spitzmueller
c3cac2048b
Sort secondary babel languages alphabetically
2020-08-23 10:04:56 +02:00
Juergen Spitzmueller
448e5efab4
Do not attempt to close language twice
2020-08-21 11:07:22 +02:00
Scott Kostyshak
4c0073cd03
Whitespace
2020-08-20 21:51:29 -04:00
Juergen Spitzmueller
c71551fd9d
GuiAbout: some more polishment
2020-08-20 16:08:10 +02:00
Juergen Spitzmueller
1f92214d78
GuiAbout: use unformatted version info via Copy button
2020-08-20 15:50:31 +02:00
Pavel Sanda
e648202e7e
Allow LyX to find pdfs and urls of citation references and follow them from context menu.
...
Currently tested:
- url & doi fields for bibtex.
- all documented eprinttypes of biblatex
- absolute paths of first entry of 'file' field for jabref and kbibtex
- external script searching for author + year pdf
Additional polishing will follow.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg212505.html
2020-08-20 09:12:54 +02:00
Yuriy Skalko
679c418b03
Fix UI string
2020-08-19 10:15:45 +02:00
Juergen Spitzmueller
55f7b337cc
Simplification
2020-08-17 13:29:55 +02:00
Juergen Spitzmueller
3aefd7477c
Fix font and encoding switch problem with directionality change at inset
...
Also fixes #10110
2020-08-17 13:25:02 +02:00
Juergen Spitzmueller
4d1d07ea10
Amend 92f6e4806e
...
This was too general
2020-08-17 13:11:46 +02:00
Stephan Witt
c88f331a06
Avoid a type mismatch warning resp. error for signed vs unsigned typed values comparison
2020-08-17 12:25:35 +02:00
Juergen Spitzmueller
957b615b1f
Fix another crash with Grid pasting (follow-up to #11906 )
2020-08-16 17:24:13 +02:00
Stephan Witt
2dae4ab4f3
Improved character count statistics for letter based insets (e.g. the LyX logo).
2020-08-16 17:07:04 +02:00
Stephan Witt
7ec0bdbf28
#6401 For correct document traversal special logo chars should be treated like letters
2020-08-16 17:05:44 +02:00
Stephan Witt
ba21c946a1
#6401 improve doc iterator to allow easy backward navigation
2020-08-16 16:54:03 +02:00
Juergen Spitzmueller
d9f1f7e348
Remove now redundant string
2020-08-16 11:31:56 +02:00
Juergen Spitzmueller
812ff7de75
Take out inheritFont() condition
2020-08-16 11:18:49 +02:00
Juergen Spitzmueller
92f6e4806e
Fix language closing before inset
2020-08-16 10:47:46 +02:00
Juergen Spitzmueller
24af4ffcb3
Redo "Move some tests upstream, since we'll need it there" properly
2020-08-16 10:47:08 +02:00
Juergen Spitzmueller
6876a306b9
Consider encoding when re-setting language
2020-08-15 19:21:20 +02:00
Juergen Spitzmueller
3c5c41ddc2
Only exclude ERT from language switch doing
2020-08-15 16:46:18 +02:00
Juergen Spitzmueller
5490e7545b
Polish About dialog
...
(this might need adaptation with HiDPI)
2020-08-15 16:07:12 +02:00
Juergen Spitzmueller
cba24bb642
Fix deprecation warning
2020-08-15 16:06:56 +02:00
Juergen Spitzmueller
1c3ccc0ac2
Revert "Move some tests upstream, since we'll need it there"
...
This reverts commit 0a44c1687e
.
2020-08-15 15:32:15 +02:00
Juergen Spitzmueller
fb2077df11
Revert "Fix a lang edgecase"
...
This reverts commit dc4b11b0e9
.
2020-08-15 15:21:19 +02:00
Juergen Spitzmueller
6fd566fbec
Flag placeholder string nontranslatable
...
This is just wasted efforts for the translators, as this string never
appears in the GUI.
2020-08-15 13:18:19 +02:00
Juergen Spitzmueller
dc4b11b0e9
Fix a lang edgecase
2020-08-15 12:29:55 +02:00
Juergen Spitzmueller
0a2fce358d
Do not attempt to use switches around PassThur insets.
...
This is bound to break with ERT snippets f. ex.
2020-08-15 12:29:55 +02:00
Juergen Spitzmueller
0a44c1687e
Move some tests upstream, since we'll need it there
2020-08-15 12:29:55 +02:00
Juergen Spitzmueller
469bc1bbe4
Revert apparent accident introduced in fed71fa8c2
2020-08-15 09:26:51 +02:00
Juergen Spitzmueller
ea122aa8fa
Amend 89d9334e03
...
This needs to be default layout, not plain layout
2020-08-15 08:35:26 +02:00
Juergen Spitzmueller
89d9334e03
Maintain plain layout for separating paragraphs when switching layouts ( #11936 )
2020-08-15 08:14:17 +02:00
Yuriy Skalko
1cf86348dd
Enable search in "LaTeX Log" dialog by pressing Enter
2020-08-15 07:52:55 +02:00
Juergen Spitzmueller
04ba887e2c
Correctly re-set font before and after non-multipar inset
2020-08-15 07:06:20 +02:00
Stephan Witt
012c0f6bac
#6401 avoid unnecessary inset to string conversions in Paragraph::find while skipping invisible letters
2020-08-14 21:32:24 +02:00
Stephan Witt
5bce66b1a3
#6401 more robust processing on special char code insets when looking for spell checker ranges
2020-08-14 21:28:24 +02:00
Pavel Sanda
48b1e8a0ac
New attempt on #9906 : allow following hyperlinks via context menu.
...
Now safer version with the help of Qt.
2020-08-14 19:48:47 +02:00
Enrico Forestieri
836300cd33
Revert "Correctly set font decorations for multipar insets"
...
This reverts commit 5791b8bff8
.
2020-08-14 18:01:26 +02:00
Kornel Benko
9b7db11901
docbook exports: Omit crashing export on some files
...
Committed since Thibaut apparently has no time to react, and the crash is
really distracting.
2020-08-14 12:31:25 +02:00
Enrico Forestieri
5791b8bff8
Correctly set font decorations for multipar insets
...
Font decorations such as underline cannot be set for a whole inset
that allows paragraph breaks. This commit allows to still set the
font main properties for the whole inset but decorations are applied
to each paragraph inside the inset.
2020-08-14 12:04:23 +02:00
Yuriy Skalko
4c3139314b
Correct Right Arrow key processing in Modules list
2020-08-14 10:12:13 +02:00
Yuriy Skalko
e1dd91e10e
Disable editing of math package names in Document Settings
2020-08-14 10:05:11 +02:00
Juergen Spitzmueller
70eb8c37cb
Do not close language before PassThru insets
2020-08-14 09:50:40 +02:00
Juergen Spitzmueller
ef11fdc77d
Assure language is properly closed before non-inheriting inset.
2020-08-14 09:08:46 +02:00
Juergen Spitzmueller
8bc76ad9bb
\foreignlanguage does not play with \cprotect.
2020-08-14 09:00:48 +02:00
Daniel Ramoeller
c9bf179016
#10346 Amend change 01b2893f8b
switch directory buttons
2020-08-13 21:43:23 +02:00
Stephan Witt
63fcb7b8e1
#10346 Amend change 01b2893f8b
to make Qt4 compilable - again
2020-08-13 10:26:44 +02:00
Stephan Witt
4ddff8fe28
#10346 Amend change 01b2893f8b
to make Qt4 compilable
2020-08-13 08:12:56 +02:00
Daniel Ramoeller
01b2893f8b
Fix bug #10346 .
...
Allow to open user and library directories from About LyX.
2020-08-12 14:25:36 -04:00
Juergen Spitzmueller
13b928d534
No need for catcode change here
2020-08-12 18:08:49 +02:00
Juergen Spitzmueller
24c46cbd19
Remove obsolete FIXME
2020-08-12 17:38:57 +02:00
Juergen Spitzmueller
e3a72156f9
Fix too general application of \cprotect
2020-08-12 17:38:20 +02:00
Enrico Forestieri
001f5a4786
Fix bug #10263
2020-08-12 16:35:12 +02:00
Enrico Forestieri
f5672a4843
Switch font for multipar insets
...
Use font switches for insets that allow paragraph breaks rather
than insets that do not inherit outer font settings. No change of
behavior is intended with respect to the current status, but this
will allow a simple and effective fix for #10263 .
2020-08-12 16:25:35 +02:00
Juergen Spitzmueller
49e8e3567c
Font switches in \cprotect'ed context need to be \cprotect'ed themselves
2020-08-12 15:26:23 +02:00
Juergen Spitzmueller
008766fe4e
Pass proper font
2020-08-12 14:05:22 +02:00
Juergen Spitzmueller
88506f886b
update tex2lyx tests
2020-08-12 13:13:56 +02:00
Juergen Spitzmueller
1af67974ff
Properly close and reopen font before insets with inheritFont() false
2020-08-12 11:04:17 +02:00
Juergen Spitzmueller
075d220d6e
GuiLyXFiles: Fix crash and disabling with header selection
...
Fixes #11929
2020-08-11 19:26:23 +02:00
Juergen Spitzmueller
b57166f656
Nothing to translate here.
2020-08-10 10:03:42 +02:00
Richard Kimberly Heck
c9bb699457
Fix #10328 .
...
Change title of LyX's windows to conform to the usual pattern.
2020-08-09 13:00:41 -04:00
Daniel Ramoeller
d3a04c089b
Fix for bug #11926
...
Change comobox signal to user interaction only to avoid problems with "Apply changes immediately" aka "Immediate Apply". (See https://doc.qt.io/qt-5/qcombobox.html#currentIndexChanged and https://doc.qt.io/qt-5/qcombobox.html#activated .)
2020-08-09 12:51:45 +02:00
Juergen Spitzmueller
e417597597
Consider nesting when checking whether an inset is in a title
...
Amends 0bddf448ef
2020-08-09 12:01:49 +02:00
Yuriy Skalko
af7ffc7dfa
Correct UI strings
2020-08-08 16:12:50 +02:00
Stephan Witt
a436171b2c
#9376 prepare use of Length in lyxrc - amend commit 0fa4b7e736
- catch wrong include of Length.h
2020-08-07 22:53:19 +02:00
Stephan Witt
d0ca7a383d
Amend commit 3af8ff39fc
- make it work with Qt 4.x - don't activate it there
2020-08-07 12:27:27 +02:00
Stephan Witt
3af8ff39fc
Force a uniform style for group boxes, on Mac non-flat works better, on Linux flat is standard
2020-08-07 10:54:12 +02:00
Stephan Witt
0fa4b7e736
#9376 prepare use of Length in lyxrc - move the class Length to support
2020-08-07 09:24:31 +02:00
Enrico Forestieri
582296d79a
Correctly compute metrics for single-char non-math fonts
...
As evidenced by the comment, this corrects a thinko.
2020-08-06 15:34:54 +02:00
Juergen Spitzmueller
7250aad280
Revert [9370135c3e/lyxgit] and fix #8499 properly
...
Fixes #11920
2020-08-04 16:52:58 +02:00
Stephan Witt
6dcd4ca4f1
#10571 improved handling of WM's signal when switching from or to full-screen window
2020-08-04 15:24:09 +02:00
Pavel Sanda
bd5f6097fc
Does not compile on older gcc.
2020-08-04 14:55:22 +02:00