]>
git.lyx.org Git - features.git/log
Stephan Witt [Sat, 23 Oct 2021 11:34:18 +0000 (13:34 +0200)]
#12201 force open document in tabs on Mac when user preference is Always
Jean-Marc Lasgouttes [Thu, 21 Oct 2021 20:36:29 +0000 (22:36 +0200)]
Let Tab go out of inset when no cycling is possible
Adapted patch from Enrico by adding S-Tab handling.
Fixes bug #11085
Jean-Marc Lasgouttes [Thu, 21 Oct 2021 17:14:06 +0000 (19:14 +0200)]
Make sure that language is "latex" in InsetArgument when pass-thru.
The code that determine whether an InsetArgument is passThru is
complex and lives in updateBuffer.
This patch factors out the code in a new init method and calls it also
in doInsetInsert when inserting a InsetArgument.
Fixes bug #12143.
Juergen Spitzmueller [Thu, 21 Oct 2021 14:57:59 +0000 (16:57 +0200)]
de.po
Kornel Benko [Thu, 21 Oct 2021 14:43:07 +0000 (16:43 +0200)]
Update sk.po
Pavel Sanda [Thu, 21 Oct 2021 14:01:57 +0000 (16:01 +0200)]
* better wording
Pavel Sanda [Thu, 21 Oct 2021 13:20:28 +0000 (15:20 +0200)]
Improve error msg.
Juergen Spitzmueller [Thu, 21 Oct 2021 08:27:05 +0000 (10:27 +0200)]
Prevent unneeded cprotection in branches (#12378)
jpc [Tue, 19 Oct 2021 09:43:14 +0000 (11:43 +0200)]
Update fr.po
Thibaut Cuvelier [Tue, 19 Oct 2021 00:31:36 +0000 (02:31 +0200)]
DocBook: use the new refactorings in InsetText.
InsetText::docbookRenderAsImage directly used Qt to compute hashes, use the same code as support/FileName (now living in support/filetools).
Thibaut Cuvelier [Tue, 19 Oct 2021 00:30:47 +0000 (02:30 +0200)]
Refactor file-name sanitisation.
For now, this is only used in FileName, because it does not change the semantics of DocFileName::mangledFileName.
Thibaut Cuvelier [Tue, 19 Oct 2021 00:24:22 +0000 (02:24 +0200)]
Refactor computing hashes.
For now, this is only used in FileName, because it does not change the semantics of DocFileName::mangledFileName.
Jean-Marc Lasgouttes [Tue, 12 Oct 2021 13:45:04 +0000 (15:45 +0200)]
Reset inline completion after undo/redo
Fixes bug #12383.
Jean-Marc Lasgouttes [Mon, 18 Oct 2021 15:35:48 +0000 (17:35 +0200)]
Revert "Update correctly completion after undo"
This reverts commit
06acb7f806f99cd418781f9d0645b213f8241062 .
Kornel Benko [Sun, 17 Oct 2021 19:26:50 +0000 (21:26 +0200)]
Update sk.po
Enrico Forestieri [Sun, 17 Oct 2021 17:17:01 +0000 (19:17 +0200)]
Enrico Forestieri [Sun, 17 Oct 2021 16:31:52 +0000 (18:31 +0200)]
Amend
47f1fec9
Also account for cmake
Juergen Spitzmueller [Sun, 17 Oct 2021 15:34:03 +0000 (17:34 +0200)]
de.po
Juergen Spitzmueller [Sun, 17 Oct 2021 09:30:24 +0000 (11:30 +0200)]
Do not change bibliography processor to default if it is not found
Rather than that, keep it with a warning that it is not available.
Fallback procedure (which maintains security measures) is done in
the conversion step.
This prevents document properties being silently changed on sharing.
Juergen Spitzmueller [Sun, 17 Oct 2021 09:29:18 +0000 (11:29 +0200)]
Provide proper fallback if a bibliography processor is not found
Check for appropriate fallbacks and warn user if the requested
bibliography processor is unavailable.
Enrico Forestieri [Sun, 17 Oct 2021 13:54:28 +0000 (15:54 +0200)]
Enrico Forestieri [Sun, 17 Oct 2021 13:06:05 +0000 (15:06 +0200)]
Enable QWindowsMimeMetafile with Qt6
The QWinMime class has been removed in Qt6 but the functionality
is still present. However, one has to allow inclusion of private
headers and register the mime handling to the QWindowsApplication
native interface.
Thibaut Cuvelier [Sat, 16 Oct 2021 20:41:20 +0000 (22:41 +0200)]
DocBook: use a hash to determine the file names for generated images.
This way, the file names no more change without a reason.
Thibaut Cuvelier [Sat, 16 Oct 2021 19:12:18 +0000 (21:12 +0200)]
DocBook: export the preview images to the right format.
"docbook" is not the same as "docbook5", maybe it would be better to have an enumeration instead of strings.
Thibaut Cuvelier [Sat, 16 Oct 2021 11:55:52 +0000 (13:55 +0200)]
DocBook: wrong type of XML tag.
imagedata should have been a compound tag, because it should have no content, only its attributes are relevant (instead of a start-end pair of tags).
Enrico Forestieri [Sat, 16 Oct 2021 17:09:30 +0000 (19:09 +0200)]
Improve detection of Qt6 libs
We would miss the libraries specified by a full path when
also '-L' flags are present, as we would only take into
account those specified by '-l' flags.
Jean-Marc Lasgouttes [Fri, 15 Oct 2021 15:38:13 +0000 (17:38 +0200)]
Get rid of std::iterator
clang's libc++ 13 tells us that it is deprecated in C++17.
Fortunately, we do not need it after all.
Jean-Marc Lasgouttes [Fri, 15 Oct 2021 13:49:40 +0000 (15:49 +0200)]
Remove variable that is not used
Spotted by clang++ 13.
Jean-Marc Lasgouttes [Fri, 15 Oct 2021 09:10:44 +0000 (11:10 +0200)]
Improve display of META_INSET in status bar.
Scott Kostyshak [Fri, 15 Oct 2021 03:31:14 +0000 (23:31 -0400)]
Fix sign-compare warning
Fix warning comparing long int to long unsigned int.
Pavel Sanda [Thu, 14 Oct 2021 20:23:14 +0000 (22:23 +0200)]
Guard against possible referencing null.
Those checks might not be needed, but it's not self obvious from
the surrounding code. Because we already experienced crash from
similar change (cf
1c1c83eced96 ), let's be prudent here.
If you know that these pointers can't be null from broader context
feel free to remove the guards.
Introduced by
24926b2e2399 , fix
104fdcc9be40df1 not backported
but now fixed by
1c1c83eced96 in 2.3.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg216414.html
Jean-Marc Lasgouttes [Thu, 14 Oct 2021 14:39:33 +0000 (16:39 +0200)]
Update correctly completion after undo
This is take #2 after reverting
e59aee458 .
Request the completer to rebuild a completion after undo/redo.
Fixes #12383.
Jean-Marc Lasgouttes [Thu, 14 Oct 2021 14:26:21 +0000 (16:26 +0200)]
Revert "Reset inline completion after undo/redo"
Try a solution closer to other code instead.
This reverts commit
e59aee45801f6f61489a4be3162b4c43f6b8a658 .
Thibaut Cuvelier [Wed, 13 Oct 2021 01:02:19 +0000 (03:02 +0200)]
DocBook: generate images for layouts that request it.
Thibaut Cuvelier [Wed, 13 Oct 2021 01:01:54 +0000 (03:01 +0200)]
Factor out the generation of the code to create a preview.
This will be soon reused in InsetText to generate images for DocBook.
Thibaut Cuvelier [Wed, 13 Oct 2021 01:01:11 +0000 (03:01 +0200)]
Typos and comment improvements.
Thibaut Cuvelier [Fri, 8 Oct 2021 01:14:18 +0000 (03:14 +0200)]
Factor out the list of macro definitions for InsetPreview.
This will be soon reused in InsetText to generate images for DocBook.
Thibaut Cuvelier [Thu, 7 Oct 2021 00:34:07 +0000 (02:34 +0200)]
DocBook: add assertion to help debugging.
Thibaut Cuvelier [Thu, 7 Oct 2021 00:27:54 +0000 (02:27 +0200)]
DocBook: overall structure for rendered insets.
Thibaut Cuvelier [Wed, 6 Oct 2021 22:07:21 +0000 (00:07 +0200)]
DocBook: don't use a surrounding <para> for rendered insets.
Thibaut Cuvelier [Mon, 27 Sep 2021 01:30:45 +0000 (03:30 +0200)]
DocBook: add the DocBookRenderAsImage tag.
Stephan Witt [Wed, 13 Oct 2021 16:11:37 +0000 (18:11 +0200)]
#12368 correct spelling of toolbars visibility check function name
Thibaut Cuvelier [Mon, 27 Sep 2021 01:22:04 +0000 (03:22 +0200)]
DocBook: add test for the forest package.
Thibaut Cuvelier [Wed, 29 Sep 2021 00:26:29 +0000 (02:26 +0200)]
DocBook: update links to LilyPond bugs.
Also updates the test so that it matches the next version of LilyPond.
Thibaut Cuvelier [Mon, 27 Sep 2021 13:36:09 +0000 (15:36 +0200)]
DocBook: make copier compatible with Python 2.
Enrico Forestieri [Tue, 12 Oct 2021 18:23:27 +0000 (20:23 +0200)]
Fix build with Qt6
In Qt6 the Svg includes are split into two different subdirs,
namely QtSvg and QtSvgWidgets. So, after
0862042b , it is necessary
to also account for the last one. Nothing needs to be done for Qt5.
Jean-Marc Lasgouttes [Tue, 12 Oct 2021 13:45:04 +0000 (15:45 +0200)]
Reset inline completion after undo/redo
Fixes bug #12383.
Jean-Marc Lasgouttes [Fri, 16 Jul 2021 16:27:15 +0000 (18:27 +0200)]
Work around compilation warning
Clang 12 (at least) misses the fact that tag is always initialized,
because the if/else sequence does cover all cases.
Initialize the variable although it is not required. It does not hurt
at least.
Jean-Marc Lasgouttes [Mon, 11 Oct 2021 12:31:58 +0000 (14:31 +0200)]
Fixup
c52049bb83d : -Werror is needed to test for warning flags
At least on my old clang++, this is required.
Fixes bug #12391.
Jean-Marc Lasgouttes [Sat, 9 Oct 2021 10:25:29 +0000 (12:25 +0200)]
Make CoordCache assertions less annoying.
Jean-Marc Lasgouttes [Wed, 6 Oct 2021 11:06:45 +0000 (13:06 +0200)]
Avoid duplicate checks in CoordCache
The code is written in such a way that the elements are searched
several times. This can be expensive when there are a lots of insets
in the document.
Concerning the sanity checks, they are now conditionned on the
presence of assertion.
Related to bug #12297.
Jean-Marc Lasgouttes [Fri, 8 Oct 2021 15:38:25 +0000 (17:38 +0200)]
Reduce the number of accesses to coord cache when drawing a math row
Each of these accesses is somewhat costly when using large branches
with lots of maths
Related to bug #12297.
Jean-Marc Lasgouttes [Tue, 5 Oct 2021 14:58:49 +0000 (16:58 +0200)]
Use unordered maps to store inset and math rows geometry.
Simply using unordered_map instead of map makes a big difference for
documents with lots of math insets in one text inset.
Related to bug #12297.
Scott Kostyshak [Fri, 8 Oct 2021 00:37:48 +0000 (20:37 -0400)]
Minor refactor of previous commit
A bit easier to read and avoids unnecessary status.clear().
Daniel Ramoeller [Sun, 3 Oct 2021 04:22:48 +0000 (06:22 +0200)]
Disable LFUN for last column/row deletion
Fix for #12380.
Juergen Spitzmueller [Wed, 6 Oct 2021 16:05:23 +0000 (18:05 +0200)]
Check changed status after decimal sep has been edited
Richard Kimberly Heck [Wed, 6 Oct 2021 16:00:04 +0000 (12:00 -0400)]
New Brazillian Portuguese translation.
Yuriy Skalko [Thu, 30 Sep 2021 21:37:58 +0000 (00:37 +0300)]
Juergen Spitzmueller [Fri, 1 Oct 2021 10:42:06 +0000 (12:42 +0200)]
Fix \cline calculation when last column has decimal alignment
Scott Kostyshak [Thu, 30 Sep 2021 18:22:49 +0000 (14:22 -0400)]
Add regression test for font switch before comment
This is a tricky issue that was fixed at
9eab66eb .
Juergen Spitzmueller [Thu, 30 Sep 2021 10:53:41 +0000 (12:53 +0200)]
Close font switches before comments
Yuriy Skalko [Wed, 29 Sep 2021 09:49:21 +0000 (12:49 +0300)]
Remove useless casts reported by GCC with -Wuseless-cast option
Jean-Marc Lasgouttes [Wed, 29 Sep 2021 16:01:14 +0000 (18:01 +0200)]
Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag
(shamelessly stolen from
c26db650a1 , which was for cmake build)
The original test was always successfull, even if the flag was invalid.
But checking for '-Wdeprecated-copy' instead yields to error if the
warning does not exist. Existent warning for 'deprecated-copy' implies
that 'no-deprecated-copy' also exist.
Kornel Benko [Wed, 29 Sep 2021 15:53:50 +0000 (17:53 +0200)]
Cmake build: Fix the invalid test for '-Wno-deprecated-copy' flag
The original test was always successfull, even if the flag was invalid.
But checking for '-Wdeprecated-copy' instead yields to error if the warning does not exist.
Existent warning for 'deprecated-copy' implies that 'no-deprecated-copy' also exist.
Daniel Ramoeller [Wed, 29 Sep 2021 02:25:58 +0000 (04:25 +0200)]
SVG replacement of busy.gif
Fix for bug #10384.
Jean-Marc Lasgouttes [Wed, 17 Feb 2021 11:30:16 +0000 (12:30 +0100)]
Make paragraph-goto and friends set paragraph to the top
Add parameter 'force' to scrollToCursor(...) to avoid the case where the
cursor is not set to top because it is already visible on screen.
Change screen offset in this method so that the paragraph is really at
the top of the screen. This part may cause unforeseen issues and needs care.
gotoInset: use the new force flag and do not trigger a redraw.
Instead, return a boolean telling whether redraw is needed.
In the code that use it, set an update flag instead of the extra redraw.
In the handling of paragraph-goto, also set the update flag instead of
triggering a repaint.
Remove Bufferview::scrollToCursor(), which was equivalent to showCursor().
Fixes bug #10425.
Yuriy Skalko [Tue, 28 Sep 2021 17:20:57 +0000 (20:20 +0300)]
Remove redundant declarations reported by GCC with -Wredundant-decls option
Jean-Marc Lasgouttes [Tue, 28 Sep 2021 09:25:25 +0000 (11:25 +0200)]
typo
Kornel Benko [Tue, 28 Sep 2021 08:32:02 +0000 (10:32 +0200)]
Fix crash
Lyx crashes on export to pdf if used with sanitizer set to 'unspecified'.
Crash found by Scott.
Given that if we export without GUI, there is some weirdness here though.
1.) Why does lyx not crash if not using '-fsanitize' compile-option
2.) Why is export to pdf dependent on the screen-resolution
Yuriy Skalko [Tue, 28 Sep 2021 08:21:45 +0000 (11:21 +0300)]
Remove redundant semicolons reported by GCC with -Wextra-semi option
Pavel Sanda [Mon, 27 Sep 2021 20:07:07 +0000 (22:07 +0200)]
Include docbook_copy.py in released tarball.
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 15:46:38 +0000 (17:46 +0200)]
Make rectangles have pointy corners
This only makes a difference in HiDpi mode.
Adaptation of the patch proposed by Daniel.
Fix for bug #12336.
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 11:56:04 +0000 (13:56 +0200)]
Fixup
6bbd88ac : compilation fix for Qt4
Jean-Marc Lasgouttes [Mon, 27 Sep 2021 09:53:46 +0000 (11:53 +0200)]
Whitespace
Thibaut Cuvelier [Sun, 26 Sep 2021 23:46:01 +0000 (01:46 +0200)]
DocBook copy: add links to bug reports.
Thibaut Cuvelier [Sun, 26 Sep 2021 23:15:16 +0000 (01:15 +0200)]
DocBook copy: don't error if the file was already copied.
Thibaut Cuvelier [Sun, 26 Sep 2021 22:42:08 +0000 (00:42 +0200)]
DocBook copy: large refactoring to improve readability.
Thibaut Cuvelier [Sun, 26 Sep 2021 22:39:10 +0000 (00:39 +0200)]
DocBook: make LilyPond work more reliably.
Thibaut Cuvelier [Sun, 26 Sep 2021 19:13:17 +0000 (21:13 +0200)]
DocBook: redirect LilyPond output to main LyX output to ease debugging.
Thibaut Cuvelier [Sun, 26 Sep 2021 19:00:59 +0000 (21:00 +0200)]
DocBook: work around bug in LilyPond.
https://lists.gnu.org/archive/html/bug-lilypond/2021-09/msg00039.html
Thibaut Cuvelier [Sun, 26 Sep 2021 17:10:22 +0000 (19:10 +0200)]
DocBook: missing multicol test.
Thibaut Cuvelier [Sun, 26 Sep 2021 17:10:13 +0000 (19:10 +0200)]
DocBook: add the new script as DocBook copier.
Thibaut Cuvelier [Sun, 26 Sep 2021 16:15:09 +0000 (18:15 +0200)]
DocBook: add script to start LilyPond on the generated file.
Not yet used anywhere in the code for now (see next commit).
Thibaut Cuvelier [Sun, 26 Sep 2021 15:27:41 +0000 (17:27 +0200)]
Unused code.
Thibaut Cuvelier [Sun, 26 Sep 2021 15:25:28 +0000 (17:25 +0200)]
Typo.
Jean-Marc Lasgouttes [Fri, 24 Sep 2021 16:45:08 +0000 (18:45 +0200)]
Fix warning.
Jean-Marc Lasgouttes [Fri, 24 Sep 2021 14:57:05 +0000 (16:57 +0200)]
Improve (modestly) the performance of font metrics caches
This fixes two performance issues and improves the performance of
TextMetrics::redoParagraph by 15% in a workload that uses the cache a
lot. The difference will be much less when the cache is not used much.
1/ repetion of the hash code computation
The code
if (cache.contains(key))
result = cache[key]:
is not efficient, since qHash(key) has to be computed twice.
To fix this a new Cache::object_str() method is added, which allows
if (auto * obj = cache.object(key))
result = *obj;
2/ code of has code computation
Instead of using a verbose string that is complicated to build as
key, new key structs BreakAtKey and TextLayoutKey are introduced,
along with the relevant qHash() implementation.
Enrico Forestieri [Fri, 24 Sep 2021 08:15:58 +0000 (10:15 +0200)]
Fix bug #12373
Do not perform any autocorrection in the presence of a selection.
Kornel Benko [Fri, 24 Sep 2021 08:08:02 +0000 (10:08 +0200)]
Amend
dca39815 : Fix a few warnings in Floating.
Thibaut Cuvelier [Thu, 23 Sep 2021 23:19:28 +0000 (01:19 +0200)]
Fix a few warnings in Floating.
Thibaut Cuvelier [Thu, 23 Sep 2021 22:43:32 +0000 (00:43 +0200)]
DocBook: add a LilyPond test.
Thibaut Cuvelier [Thu, 23 Sep 2021 21:40:21 +0000 (23:40 +0200)]
Amend
4fd6edf3
Escape paths in the generated RC file.
Thibaut Cuvelier [Thu, 23 Sep 2021 00:59:39 +0000 (02:59 +0200)]
Find LilyPond on Windows too.
The main problem is that, while lilypond.exe exists, there is not lilypond-book.exe: the previous calls always failed, even though the file was there, just not called the right way.
Kornel Benko [Tue, 21 Sep 2021 09:27:13 +0000 (11:27 +0200)]
Cmake build: Unify use of sanitizer
The configuration variable is LYX_DEBUG_SANITIZE
which can have following values:
"NONE"
"ADDRESS" Use address sanitizer (previously used with the variable LYX_ASAN)
"UNSPECIFIED" Use unspecified sanitizer
Thibaut Cuvelier [Mon, 20 Sep 2021 23:21:13 +0000 (01:21 +0200)]
DocBook: add inner tags for layouts.
This makes it possible to implement LilyPond as prescribed in https://lilypond.org/doc/v2.22/Documentation/usage/docbook.
Thibaut Cuvelier [Mon, 20 Sep 2021 23:18:10 +0000 (01:18 +0200)]
XML: add a check for a typical case in the xml name space.
IGNORE is a typical placeholder for tags that should not be output, along with NONE. At some point, we should check if both are required, or if NONE is enough…
Thibaut Cuvelier [Mon, 20 Sep 2021 01:19:20 +0000 (03:19 +0200)]
DocBook: start implementing LilyPond.
All the changes that can be achieved without C++ code changes.
Kornel Benko [Mon, 20 Sep 2021 09:52:16 +0000 (11:52 +0200)]
Complete the FontTag typeinfo
Thibaut Cuvelier [Sun, 19 Sep 2021 22:06:20 +0000 (00:06 +0200)]
DocBook: add more flexibility for floats.
Intended to fix #12371.
Thibaut Cuvelier [Sun, 19 Sep 2021 18:10:51 +0000 (20:10 +0200)]
Kill warning for uncovered code path.