Richard Kimberly Heck
81f5fc80b5
Use buffer language
2024-12-05 17:21:40 -05:00
Richard Kimberly Heck
945251a6c5
Word count for references
2024-12-05 17:17:54 -05:00
Jean-Marc Lasgouttes
6701a5d55c
Get rid of TextMetrics::x2pos
...
Replace it with code that uses getPosNearX.
2024-11-25 17:34:43 +01:00
Jean-Marc Lasgouttes
ecac032a94
Improve cursor movement with boundaries
...
Introduce a new NoEndBoundary flag for insets like InsetNewline.
Indroduce Row::start_boundary() that is true when previous Row has
end_boundary() set.
Use this to improve cursor movement around row boundaries (both for
logical ad visible cursor movement). The new code remove some of the
newline/separator hardcoding.
2024-11-22 16:30:48 +01:00
Pavel Sanda
a8afca4de0
Header not needed anymore.
2024-10-30 20:29:54 +01:00
Pavel Sanda
26d27eda58
Requiring C+11 & purging boost includes makes bind.h useless.
2024-10-23 20:07:16 +02:00
Jean-Marc Lasgouttes
6ba2b5c5b9
Require at least Qt 5.12
...
Update the #if confitional accordingly everywhere excpt in frontends/qt.
Update INSTALL and README.
Cmake will need to be updated too.
2024-10-23 10:50:23 +02:00
Jean-Marc Lasgouttes
84b5fbe326
Get rid of boost/any, use <any> instead
...
We can do that now that we rely on c++17.
Take this occasion to upgrade boost to version 1.83.
The 3rdparty/boost directory weights now 1MB instead of 2.3MB.
2024-10-22 17:47:15 +02:00
Juergen Spitzmueller
1865738417
Escape standalone ampersands in xhtml InsetCitation
2024-10-16 12:55:11 +02:00
Jean-Marc Lasgouttes
65a014821e
Remove unused #include
2024-10-06 20:56:02 +02:00
Juergen Spitzmueller
1f7e8d3ffe
Adhere to semantic background color with default branches
...
This fixes color mismatched when "use system colors" is checked
See https://marc.info/?l=lyx-users&m=172797086718347
2024-10-05 14:15:19 +02:00
Pavel Sanda
9ccda98e6e
Remove strfwd.h.
...
Will break cygwin due to trivstring header.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg223056.html
2024-10-04 20:49:33 +02:00
Jean-Marc Lasgouttes
9fc19badab
Streamline use of map<col-type, bool>
...
Typically, to check whether an element is present and set to true, instead of
foo.find(c) != foo.end() && foo.find(c)->second
one uses
foo[c]
The map<> code creates elements automatically when they do not exist
and zero-initializes them.
This avoids puzzlement of Coverity scan when seeing that find() result
is dereferenced without checking that it is not equal to end().
Moreover, this makes the code much much clearer. I still do not
understand it, though ;)
2024-09-26 15:31:28 +02:00
Juergen Spitzmueller
d43e82a5a7
Only \protect labels in \thanks notes
...
See https://marc.info/?l=lyx-users&m=136394387505489
2024-09-21 11:30:08 +02:00
Juergen Spitzmueller
30f170ea26
Revert "use std::move() instead of copying when value is no longer used"
...
This reverts commit e685d31f5aadadd9c84c80a604818d49f5853dbf.
2024-09-14 10:59:13 +02:00
Juergen Spitzmueller
3a1c8897b1
Revert "Fix compiler warning"
...
This reverts commit 0a7585403832c114fd2d084363aee98c3234058e.
2024-09-14 10:59:08 +02:00
Jean-Marc Lasgouttes
3649cea9e5
Make two parameters const references
2024-09-13 11:27:00 +02:00
Jean-Marc Lasgouttes
7a99ef7fbb
Make docstring parameters const references
...
Spotted by Coverity scan.
2024-09-12 18:28:26 +02:00
Jean-Marc Lasgouttes
cc40330e00
Avoid a couple of copies
...
Spotted by Coverity scan.
2024-09-12 17:59:41 +02:00
Jean-Marc Lasgouttes
13b05102f2
Pass a docstring parameter by address
...
Spotted by Coverity scan.
2024-09-11 17:30:33 +02:00
Jean-Marc Lasgouttes
100075c890
Pass parameters of constructor by address
...
Spotted by Coverity scan.
2024-09-11 16:25:45 +02:00
Jean-Marc Lasgouttes
3f5b836aa9
Make some code that handle authors more readable
...
Create accssors authodmap() in BufferParams.
Use [] operator instead of find().
Hopefully this will avoid to confuse Coverity scan.
2024-09-10 15:32:49 +02:00
Jean-Marc Lasgouttes
6687b34c07
Do not handle special case where buffer == NULL
...
If it is so, we have already crashed in isBranchSelected() above.
(and hopefully, buffer_ is never null these days).
Spotted by Coverity scan.
2024-09-09 15:52:01 +02:00
Juergen Spitzmueller
0beb790a6a
Handle space issue with refstyle more downstream
...
It is not necessarily, and infers with some usages, to generally escape
spaces in labels and references
2024-09-08 19:07:44 +02:00
Juergen Spitzmueller
bfd855747a
Fix indentation
2024-09-08 16:00:36 +02:00
Scott Kostyshak
0a75854038
Fix compiler warning
...
Fixes the following warning:
warning unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]
2024-09-07 23:45:51 +02:00
Juergen Spitzmueller
e685d31f5a
use std::move() instead of copying when value is no longer used
...
This is mainly to shut down coverity which nowadays nags on this.
I am not sure whether we really gain something in these cases.
2024-09-07 12:50:27 +02:00
Juergen Spitzmueller
b73000a495
The InsetPrintNomenclature settings make no sense with nomentbl
2024-08-22 08:17:33 +02:00
Juergen Spitzmueller
0ca600b93b
\use_nomentbl -> \nomencl_opts
...
This allows for support of more options
As the param is only a few hours old, no lyx2lyx handling is needed
2024-08-22 05:35:47 +02:00
Juergen Spitzmueller
13ee0bc8cd
Add support for the nomentbl nomenclature option
...
file format change
2024-08-21 17:39:36 +02:00
Juergen Spitzmueller
fe43d03448
Assure widest nomencl label is encodable
2024-08-18 09:59:37 +02:00
Juergen Spitzmueller
712600dd6c
Consider known latex text macros (basically the logos) in convertaTeXCommands()
2024-08-16 11:23:57 +02:00
Juergen Spitzmueller
c993485782
Disable valign widget in tabularx tables
...
See https://marc.info/?l=lyx-users&m=172363857509065&w=2
2024-08-14 16:28:15 +02:00
Juergen Spitzmueller
6b0c243cda
Unbreak GuiTabular::fucEnabled()
...
I wonder how long this has been broken (if it ever worked)
2024-08-14 16:27:20 +02:00
Juergen Spitzmueller
0659af15fb
Add InsertCotext tag to InsetLayout
...
Avoids hardcoding of insets, and this behavior is possibly useful to
other insets than index and nomencl
We take this on yesterday's layout format change
2024-08-13 07:29:14 +02:00
Juergen Spitzmueller
6fa0532ed4
Escape special chars in indexes
...
We now have the functionality via sub-insets, and unexperienced users
are surprised when they don't get a literal !.
The unescaped chars can still be used via ERT.
2024-08-12 17:10:57 +02:00
Juergen Spitzmueller
99fcf9df0e
remove unused param
2024-08-12 13:15:02 +02:00
Juergen Spitzmueller
a5841b3312
Transform InsetNomenclature to a collapsible
...
Fixes : #10460 , #12595 , #6353
2024-08-12 12:33:16 +02:00
Juergen Spitzmueller
8847651623
Add EscapeChars layout tag
...
This allows to define chars to be escape and an escape character
Needed in index and nomenclature
2024-08-12 12:25:31 +02:00
Richard Kimberly Heck
b494286a9c
Fix bug with display of reference tooltips.
...
Previously, the tooltip was assigned during updateBuffer. But then
we could not determine the value for forward references.
2024-08-06 11:31:35 -04:00
Juergen Spitzmueller
8aeee03e3a
set toc_string_ before the label is being truncated
...
We do not want truncated items in the outliner.
2024-08-06 10:57:11 +02:00
Richard Kimberly Heck
1de4645286
Use the old-style sorts of label strings in the TOC.
...
There are several reasons to do it this way, among which is odd
behavior of the TOC filter if we put anything else there. This also
allows for filtering of the references themsevles in a natural way.
The change, I think, was really an unintended consequence of other
changes connected to showing formatted references in the work area.
2024-08-05 18:13:07 -04:00
Juergen Spitzmueller
d4f58c96b5
Add support for multiple indexes in Memoir
...
As with almost everything, this class bakes its own cake also with
multiple indexes. So we need to account for this to produce
compilable output.
Not very nice, but there you go!
2024-07-26 12:48:12 +02:00
Juergen Spitzmueller
823d290036
amend 9291fc465b0d
...
XHTML wants LaTeX math, nothing converted to unicode
2024-07-24 21:44:02 +02:00
Jean-Marc Lasgouttes
a042d6a9d2
fix warning
2024-07-24 21:10:22 +02:00
Pavel Sanda
307d59cdb9
Squash gcc warning.
2024-07-24 19:55:05 +02:00
Jean-Marc Lasgouttes
6e81f31722
Rewrite statistics code
...
The statistics code is known to be very slow, because it relies on
DocIterator to go through the buffer.
This commit introduces a new Statistics class that encapsulates the
main code, along a virtual method Inset::updateStatistics() that
allows to fine-tune how counting is done inset by inset.
This is a faithful bug-for-bug reimplementation.
The new code appears to be 3x faster than the old one.
See bug #12929 for a discussion about statistics update woes.
2024-07-24 18:07:04 +02:00
Juergen Spitzmueller
ae1e1cb069
Add possibility to manually specify longest label in nomenclature
...
File format change
2024-07-21 17:59:34 +02:00
Juergen Spitzmueller
d62f1723a5
Improve calculation of longest nomencl string
...
This tries o convert LaTeX macros before estimating the length
2024-07-20 17:39:58 +02:00
Juergen Spitzmueller
55d60ee24f
Rename function
2024-07-14 09:42:36 +02:00