Commit Graph

29248 Commits

Author SHA1 Message Date
Juergen Spitzmueller
7a85b1b7ca Show full inset context-menu when clicking on text part of collapsible (#10370)
Re-fix this since #12907 has been resolved
2024-06-03 16:12:15 +02:00
Kornel Benko
a8a408223a Adv. F&R: strange dialog text
Fixes #12997
Added 'Scope' to better indicate the searched area.
2024-06-03 08:13:28 +02:00
Richard Kimberly Heck
0c70f340c0 Fix bug #13066
Patch from Lorenzo
2024-06-02 23:07:34 -04:00
Richard Kimberly Heck
3e796c680a Fix table crash reported on Windows. 2024-06-02 23:07:34 -04:00
Scott Kostyshak
2e227cceaf Whitespace 2024-06-02 22:52:18 -04:00
Juergen Spitzmueller
2a7ec054be Support half und full line parskip class options (#12946)
Currently only employed by the KOMA classes.

Layout format change.
2024-06-02 11:41:54 +02:00
Richard Kimberly Heck
40ae8644f9 Put new citation after selected item rather than at end of list.
Fixes bug #12940.

Patch from Daniel.
2024-06-01 20:26:06 -04:00
Daniel Ramoeller
a114f12868 Extend tab context menu features
Add

- Close Other Tabs
- Close Tabs to Left/Right
- Move Tab to Start/End
- Show Enclosing Folder

to the tabs context menus.

Fix for bug #11963
2024-06-01 19:25:14 +02:00
Richard Kimberly Heck
6484dce51b Fix bug #12934 2024-06-01 13:05:12 -04:00
Richard Kimberly Heck
42a8463aab Fix bug #11796.
Toolbars are now locked by default. Unlocked state should be saved
by Qt as a session variable.

Patch from Daniel.
2024-06-01 12:43:56 -04:00
Richard Kimberly Heck
2a1c3dce57 Fix bug #8856.
Show values of cross-references in tooltips.
2024-06-01 12:36:00 -04:00
Richard Kimberly Heck
66cfc6af3c Remove setBuffer call in Cursor::push.
This is potentially slow. It also should be unnecessary after
some of JMarc's recent commits. See bug #13050.
2024-06-01 12:06:39 -04:00
Richard Kimberly Heck
61181a3977 Fix bug #12981 2024-06-01 11:52:05 -04:00
Richard Kimberly Heck
20ea874c17 Fix bug #12981 2024-06-01 11:48:04 -04:00
Juergen Spitzmueller
2e1c800eb8 update tex2lyx tests 2024-06-01 13:50:41 +02:00
Juergen Spitzmueller
d2db74f9ee Add support for glue length in parskip (#12867) 2024-06-01 13:47:39 +02:00
Juergen Spitzmueller
e1cb15ee5d Reset require_fresh_start_ after buffer has been viewed/exported
The LFUN buffer-reset-export states to start afresh the export for the
next run, but in fact, the boolean was never reset, so that this was
done for all subsequent runs unless the buffer had been closed and
reopened.

Now the lfun does what it states and only acts on the next pass.
2024-06-01 09:06:44 +02:00
Kornel Benko
f248b003a9 Amend 6c3447c8: FindAdv: sometimes a space is added on some math symbols
Restrict the removing to math insets
2024-05-31 09:15:59 +02:00
Kornel Benko
6c3447c8a6 FindAdv: sometimes a space is added on some math symbols
For example '\int '.
Should fix regression #13070
Spotted  by Alexander Dunlap

(cherry picked from commit 4730ec78f5)
2024-05-29 14:21:03 +02:00
Juergen Spitzmueller
ae1ddcbda0 InsetNote: pass on inset-modify lfuns addressed at other insets (#13068) 2024-05-24 14:19:18 +02:00
Thibaut Cuvelier
ce5f84ff02 XHTML: in InsetGraphics, use the bounding box that LyX computes for each image instead of using the scale. 2024-05-20 17:00:15 +02:00
Juergen Spitzmueller
44633c7f72 Address Qt 6.7 deprecation warning 2024-05-20 09:49:10 +02:00
Juergen Spitzmueller
10b5f03d95 Initialize is_long_tabular before updateIndexes() (which employs it) 2024-05-20 08:50:39 +02:00
Juergen Spitzmueller
6ef18c3583 Limit the nopassthurchars case in beamer to URL
and also generally extend to classes that provide hyperref
2024-05-20 08:26:03 +02:00
Thibaut Cuvelier
2d86b88124 XHTML: export paragraph IDs also for list items, but not for the opening tag of the list.
The IDs are used to link to specific elements (for instance, the User's guide nomenclature).

The beginning of the list (<ul> or <ol>) has the same magic ID as the first item of the list.
2024-05-20 03:21:00 +02:00
Thibaut Cuvelier
a4f675a040 XHTML: fix typo in comment. 2024-05-20 03:11:41 +02:00
Thibaut Cuvelier
f2660d172c InsetGraphics: use the scale CSS property instead of width with percentages.
The effect is closer to what LyX offers. Previously, the percentage was of the HTML container (often, the whole page), meaning that images were oversized. Now, the scale is respected in the same way as LyX, but its bounding box is off. Overall, the result is better, but not what users expect.
2024-05-20 01:10:05 +02:00
Richard Kimberly Heck
de5f63eeb3 Return a reference, not a copy.
Stupid mistake from 2009. Thanks to Scott and JMarc for tracking
it down.
2024-05-19 16:55:48 -04:00
Thibaut Cuvelier
7cfe36e6aa InsetInfo: no need to output + explicitly in a shortcut, it is already contained in the sequence. 2024-05-18 19:41:44 +02:00
Thibaut Cuvelier
e3f2b10842 Make comment clearer. 2024-05-18 19:38:52 +02:00
Scott Kostyshak
05bb851adf Comment typo 2024-05-17 12:18:09 -04:00
Jean-Marc Lasgouttes
145af7c2ac Fix up a4d9315b: handle metrics of not visible paragraphs
The code is not ready for situations where some paragraphs that are
not visible have metrics available. This has been made visible by
a4d9315b, which removes a couple of full metrics updates: the screen
was not correctly scrolled after a scrollToCursor() call.

In PararagraphMetrics, some methods are added to be able to handle the
fact that paragraphs have or do not have a position.

In TextMetrics, a new method returns the first visible paragraph.

Finally, in BufferView::updateMetrics, the paragraphs' positions are
reset (in the case where everything is not cleared) and some care is
taken to skip the ones that are not relevant.

The assumption outside of this method is that all the paragraphs that
are in the TextMetrics are visible (we are talking about top-level
TextMetrics here). This could be changed (in order to avoid
recomputing paragraph metrics), but the cost is high in terms of
complexity and it is not clear that the gain in terms of performance
would be important.
2024-05-17 17:39:09 +02:00
Jean-Marc Lasgouttes
b469c142ad Fix display of math hull inset in RTL context
The inversion of margin was done in the wrong way for RTL support.
2024-05-16 14:56:28 +02:00
Juergen Spitzmueller
2d95f8fc16 Amend 207eaeee90
The upstream encoding needs to be updated after this routine
(see comment in OutputParams.h:183ff.)
2024-05-16 07:33:29 +02:00
Juergen Spitzmueller
9d43fd2ae1 # and % need to be escaped in hyperref URL as well
Also fix some lyx2lyx glitches

This hopefully fixes the test issues.
2024-05-15 13:15:08 +02:00
Scott Kostyshak
c18f02967d Update tex2lyx tests
Needed after the file format change.
2024-05-15 00:27:27 -04:00
Juergen Spitzmueller
af59551b1b Amend a716fb96b5 2024-05-14 13:54:00 +02:00
Juergen Spitzmueller
a716fb96b5 NeedCProtect -1 also for InsetLayouts 2024-05-14 13:37:29 +02:00
Juergen Spitzmueller
2306082787 Revert false chunk 2024-05-14 13:21:55 +02:00
Juergen Spitzmueller
9dae88a15a Whitespace 2024-05-14 13:18:05 +02:00
Juergen Spitzmueller
52d31155c1 Properly escape backslash in URLs with hyperref (#13012) 2024-05-13 09:17:30 +02:00
Juergen Spitzmueller
ed62816eb6 Handle URL escaping in beamer frames
File format change -- this introduces the first LyX 2.5 format and
hence sets up the lyx2lyx machinery
2024-05-13 07:26:41 +02:00
Juergen Spitzmueller
207eaeee90 Introduce NeedCProtect -1 layout option
It turns out beamer frame does not allow \cprotect and errors if it is
used. Hence we need to prevent it in this context entirely.
2024-05-12 07:52:16 +02:00
Juergen Spitzmueller
fe4f0dbf0b Consider CT in dash mechanism (#13062) 2024-05-11 13:07:32 +02:00
Jean-Marc Lasgouttes
6b3ced7c07 one less place where metrics have to be recomputed 2024-05-09 11:50:18 +02:00
Jean-Marc Lasgouttes
d4f3e87b14 typo 2024-05-09 11:45:55 +02:00
Jean-Marc Lasgouttes
ec9d0a9420 Fixup 527984ed: fix initial screen size when using backing store
When using a back store, it is obviously important to resize it
whenever the buffer view is resized. The new code path added in
527984ed skipped this part, so that the window was wrong when creating
a new window.
2024-05-07 12:01:34 +02:00
Jean-Marc Lasgouttes
9f33db8f53 Fix up 5577e877: remove logic error
Commit 5577e877 introduces forceUpdateBuffer() to delay actual
updatBuffer() calls to a central place.

In Cursor::upDownInText, the updateNeeded flag (which triggers
Update::Force update flag) is set to true when Cursor::checkDepm
returns true. This is fine, except that checkDepm also leads to a
forceBufferUpdate() call.

The logic in the method was such that, when updateNeeded is already
true when entering, forceBufferUpdate() will be called even though
checkDepm did not request it.

Fixes a slight delay with selecting in MergedManual (the manual of
manuals).
2024-05-03 14:38:32 +02:00
Jean-Marc Lasgouttes
f58957747a Fixup 2660df9b99: missing stuff after moving Lexer to support/ 2024-05-01 16:54:10 +02:00
Jean-Marc Lasgouttes
a4d9315bc4 Avoid full metrics computation with Update:FitCursor
The handling of Update::FitCursor traditionnally recomputes all
metrics once or twice. Now that updateMetrics(false) ensures that all
paragraphs that require it have a metrics, we might as well use that.

Take this occasion to move handling of Update::SinglePar earlier,
before the check for Update::ForceDraw.
2024-04-30 15:18:13 +02:00