[LyX/master] FindAndReplaceOptions: initialize properly matchAtStart

2021-01-29 Thread Jean-Marc Lasgouttes
commit bbae2c8c2af8ab40637e4f69a706a35e14ca Author: Jean-Marc Lasgouttes Date: Fri Jan 29 18:35:38 2021 +0100 FindAndReplaceOptions: initialize properly matchAtStart Spotted by coverity. --- src/lyxfind.h | 26 +- 1 files changed, 13 insertions

[LyX/master] No need to set background color of a newly created branch.

2021-01-29 Thread Jean-Marc Lasgouttes
commit 5145694cd067e221a661e0d6c7dce4ed5ca22e37 Author: Jean-Marc Lasgouttes Date: Fri Jan 29 18:29:55 2021 +0100 No need to set background color of a newly created branch. Fixes a null pointer dereference spotted by coverity. --- src/Buffer.cpp |2 -- 1 files changed, 0

[LyX/master] LengthValidator: initialize properly positive_

2021-01-29 Thread Jean-Marc Lasgouttes
commit dca5646163853d4c202211e6612f6fd8d38db417 Author: Jean-Marc Lasgouttes Date: Fri Jan 29 18:17:16 2021 +0100 LengthValidator: initialize properly positive_ Spotted by coverity. --- src/frontends/qt/Validator.cpp |3 +-- src/frontends/qt/Validator.h | 16

[LyX/master] Initialise correctly branch_list_id_

2021-01-29 Thread Jean-Marc Lasgouttes
commit 90bceb65d30eaa7c240e3f0cd3d6cfcefbf48323 Author: Jean-Marc Lasgouttes Date: Fri Jan 29 18:01:08 2021 +0100 Initialise correctly branch_list_id_ Reported by coverity. --- src/BranchList.cpp |8 src/BranchList.h | 12 ++-- 2 files changed, 6

[LyX/master] Fixup f3a0e8ff: Reset needUpdate after buffer update

2021-01-29 Thread Jean-Marc Lasgouttes
commit 911b01a3cad5d969297ad52615b24827484c9335 Author: Jean-Marc Lasgouttes Date: Fri Jan 29 14:30:21 2021 +0100 Fixup f3a0e8ff: Reset needUpdate after buffer update --- src/Buffer.cpp |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/Buffer.cpp b/src

[LyX/master] Run updateBuffer when adding/merging changes

2021-01-28 Thread Jean-Marc Lasgouttes
commit f3a0e8ff9a9b914d40eb520bb31674d1ad4eb0d0 Author: Jean-Marc Lasgouttes Date: Thu Jan 28 10:10:18 2021 +0100 Run updateBuffer when adding/merging changes Following 4a4ded22, the enabling of some change-related functions is handled in updateBuffer. However, this method

[LyX/master] Remerge strings

2021-01-27 Thread Jean-Marc Lasgouttes
commit e2d2078275c51d14fed8876d53b8c21b352ee08e Author: Jean-Marc Lasgouttes Date: Tue Jan 26 19:29:37 2021 +0100 Remerge strings po/ar.gmo| Bin 439223 -> 438333 bytes po/ar.po | 2530 +--- po/bg.gmo| Bin 335705 ->

[LyX/master] Provide translation of caption label for fr and he.

2021-01-27 Thread Jean-Marc Lasgouttes
commit 15f3e6a10bb828ad5e457c449b990031015e86d5 Author: Jean-Marc Lasgouttes Date: Wed Jan 27 10:31:20 2021 +0100 Provide translation of caption label for fr and he. Part of bug #10531. --- po/fr.gmo | Bin 572181 -> 572258 bytes po/fr.po |2 +- po/he.gmo | Bin 240

[LyX/master] Make InsetCaption label localizable

2021-01-27 Thread Jean-Marc Lasgouttes
commit 48e7b1d01ea45a18d7919d5f6a895c99a978ec59 Author: Jean-Marc Lasgouttes Date: Tue Jan 26 19:26:36 2021 +0100 Make InsetCaption label localizable Part of bug #10531. --- src/insets/InsetCaption.cpp |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git

[LyX/master] Fix InsetCaption in RTL environment.

2021-01-26 Thread Jean-Marc Lasgouttes
commit bb8278e6ce1f0fbc90eb90d7357829ba3def17e1 Author: Jean-Marc Lasgouttes Date: Tue Jan 26 17:55:09 2021 +0100 Fix InsetCaption in RTL environment. This requires to add a new mutable member, rtl_, to remember this context. Part of bug #10531. --- src/insets

[LyX/master] InsetCaption: move intialization to declaration

2021-01-26 Thread Jean-Marc Lasgouttes
commit cb3db8b4cf8529b7cd1269d0cfe8d92820e68307 Author: Jean-Marc Lasgouttes Date: Tue Jan 26 10:17:25 2021 +0100 InsetCaption: move intialization to declaration --- src/insets/InsetCaption.cpp |3 +-- src/insets/InsetCaption.h |6 +++--- 2 files changed, 4 insertions(+), 5

[LyX/master] Disable respectOSkbd checkbox

2021-01-25 Thread Jean-Marc Lasgouttes
commit 6bf8a0ade8bd804f634a14cd9cd2ac61e7d3a153 Author: Jean-Marc Lasgouttes Date: Mon Jan 25 18:35:41 2021 +0100 Disable respectOSkbd checkbox This is not ready yet. See discussion in #6450. --- src/frontends/qt/GuiPrefs.cpp |3 +++ 1 files changed, 3 insertions(+), 0

[LyX/master] Do not disable DEPM paragraph deleting when FreeSpacing is true.

2021-01-25 Thread Jean-Marc Lasgouttes
commit ea0049aec828c085c5098328900dca5efe7fd763 Author: Jean-Marc Lasgouttes Date: Thu Jan 21 15:18:43 2021 +0100 Do not disable DEPM paragraph deleting when FreeSpacing is true. This is an old issue that never got fixed. Fixes bug #10413. --- src/Text2.cpp | 141

[LyX/master] Cleanup button handling in InsetInclude

2021-01-19 Thread Jean-Marc Lasgouttes
commit 5908bb3ea6e6962308c70bd05a7f61baa8f2e0ce Author: Jean-Marc Lasgouttes Date: Tue Jan 19 13:23:03 2021 +0100 Cleanup button handling in InsetInclude The include inset has its own button_ object, that hides the button_ object of the InsetCommand parent. Remove

[LyX/master] Fix off-by-one condition when right clicking over selection

2021-01-19 Thread Jean-Marc Lasgouttes
commit 566b4de5cd4d9ac2d12f3d7b8fa0af8e0f0702da Author: Jean-Marc Lasgouttes Date: Tue Jan 19 19:21:43 2021 +0100 Fix off-by-one condition when right clicking over selection Fixes bug #10429. --- src/Text3.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[LyX/master] Remove RenderButton::button_box_, which is unused.

2021-01-19 Thread Jean-Marc Lasgouttes
commit 4062cbd27876ca915062007299f3cec99ce85470 Author: Jean-Marc Lasgouttes Date: Tue Jan 19 11:27:54 2021 +0100 Remove RenderButton::button_box_, which is unused. --- src/insets/InsetInclude.cpp |2 -- src/insets/RenderButton.h |7 --- 2 files changed, 0 insertions(+), 9

[LyX/master] Record undo properly when inserting math script

2021-01-13 Thread Jean-Marc Lasgouttes
commit 86191314cba5f74af233e10af70cd80a06f03a78 Author: Jean-Marc Lasgouttes Date: Wed Jan 13 11:41:29 2021 +0100 Record undo properly when inserting math script The current code did not always record undo at the right level. Fixes bug #10843. --- src/mathed

[LyX/2.3.x] Fixup 20e1fe46: fix the StartupWMClass in desktop file

2021-01-11 Thread Jean-Marc Lasgouttes
commit 25b4920feffeae5fd86d5f2eae7f6f2ff45207de Author: Jean-Marc Lasgouttes Date: Fri Jan 8 10:11:23 2021 +0100 Fixup 20e1fe46: fix the StartupWMClass in desktop file (cherry picked from commit 20e1fe4674cdcd0164c74f76882d95ea3c88) --- lib/lyx.desktop.in |2 +- status

[LyX/2.3.x] Move handling of LFUN_COPY to BufferView

2021-01-11 Thread Jean-Marc Lasgouttes
commit 9886bf96c1b0ce3c035d8b7191b2c85c252cc426 Author: Jean-Marc Lasgouttes Date: Fri Jan 8 19:27:19 2021 +0100 Move handling of LFUN_COPY to BufferView It turns out that the code is the same in texted ans mathed and that whatever is done in InsetTabular is not useful

[LyX/master] Move handling of LFUN_COPY to BufferView

2021-01-08 Thread Jean-Marc Lasgouttes
commit 9e1db65932b895778525c48d524adfad2ae37739 Author: Jean-Marc Lasgouttes Date: Fri Jan 8 19:27:19 2021 +0100 Move handling of LFUN_COPY to BufferView It turns out that the code is the same in texted ans mathed and that whatever is done in InsetTabular is not useful

[LyX/master] Fixup 2a80b0ac01bed2: fix the StartupWMClass in desktop file

2021-01-08 Thread Jean-Marc Lasgouttes
commit 20e1fe4674cdcd0164c74f76882d95ea3c88 Author: Jean-Marc Lasgouttes Date: Fri Jan 8 10:11:23 2021 +0100 Fixup 2a80b0ac01bed2: fix the StartupWMClass in desktop file --- lib/lyx.desktop.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lyx.desktop.in

[LyX/master] typo

2021-01-07 Thread Jean-Marc Lasgouttes
commit c10aa3064fe9d4009a46ce51bbdd8d3d97c62d75 Author: Jean-Marc Lasgouttes Date: Thu Jan 7 12:36:36 2021 +0100 typo --- src/Cursor.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cursor.h b/src/Cursor.h index 6f4ac22..f549047 100644 --- a/src/Cursor.h

[LyX/master] fix Row::findElement when there is a Virtual element

2021-01-06 Thread Jean-Marc Lasgouttes
commit e1261817d29c4afbc36ce177cbea3114d8648ae6 Author: Jean-Marc Lasgouttes Date: Wed Jan 6 18:49:41 2021 +0100 fix Row::findElement when there is a Virtual element --- src/Row.cpp | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Row.cpp b

[LyX/master] Fix use of BookmarkSection::size()

2021-01-06 Thread Jean-Marc Lasgouttes
commit b64b1aa85e18a57878c96f697317340b7db1a169 Author: Jean-Marc Lasgouttes Date: Wed Jan 6 19:18:25 2021 +0100 Fix use of BookmarkSection::size() The value was 9 instead of 10, which forced its users to use unusual code. --- src/Session.cpp |2 +- src

[LyX/master] Display bookmarks in the workarea.

2021-01-06 Thread Jean-Marc Lasgouttes
commit 99e636ae7b83dacb5acc96ae3b60a96c28339c0e Author: Jean-Marc Lasgouttes Date: Wed Jan 6 19:21:26 2021 +0100 Display bookmarks in the workarea. The bookmarks are added as virtual elements in display Rows. Bookmarks are shown with circled numbers. A new color "book

[LyX/master] Style cleanup to bookmark code

2021-01-06 Thread Jean-Marc Lasgouttes
commit 9c37cb47594a5a6d57b77a313b5ddce03cf01aa1 Author: Jean-Marc Lasgouttes Date: Wed Jan 6 14:18:25 2021 +0100 Style cleanup to bookmark code --- src/Session.cpp |8 src/Session.h | 10 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src

[LyX/master] Remove some useless Row:: prefixes

2021-01-06 Thread Jean-Marc Lasgouttes
commit 51b37cd4d87200afcd5b51445a263070f72947b4 Author: Jean-Marc Lasgouttes Date: Wed Jan 6 18:14:49 2021 +0100 Remove some useless Row:: prefixes --- src/Row.cpp |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Row.cpp b/src/Row.cpp index 02923d1

[LyX/master] Remove extra spaces

2021-01-06 Thread Jean-Marc Lasgouttes
commit baae41bd05f2173ee87f3734e4bb29404ba478ee Author: Jean-Marc Lasgouttes Date: Wed Jan 6 11:09:38 2021 +0100 Remove extra spaces --- src/Text3.cpp |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 61b64ef..bd6c256 100644

[LyX/master] Fix unused paramaters warnings

2021-01-06 Thread Jean-Marc Lasgouttes
commit 28bca59dec39053254787acd8f6d6a5565eeb30f Author: Jean-Marc Lasgouttes Date: Wed Jan 6 11:57:22 2021 +0100 Fix unused paramaters warnings --- src/mathed/InsetMathEnsureMath.h | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mathed

[LyX/master] Re-implement display of MARGIN_RIGHT_ADDRESS_BOX

2021-01-05 Thread Jean-Marc Lasgouttes
commit bea482877e9c8774fad86b22bd065e213a80a3ba Author: Jean-Marc Lasgouttes Date: Tue Jan 5 14:53:15 2021 +0100 Re-implement display of MARGIN_RIGHT_ADDRESS_BOX The correct way of implementing this is at paragraph level. Once this is clear, the implementation

[LyX/master] Revert "Center correctly centered top labels (e.g. abstract)"

2021-01-05 Thread Jean-Marc Lasgouttes
commit b8188e54dd6e24fa92c3844458ed41ad37b50fb8 Author: Jean-Marc Lasgouttes Date: Tue Jan 5 15:14:41 2021 +0100 Revert "Center correctly centered top labels (e.g. abstract)" This reverts commit 6c1855313cef2fac19022ddc4c8eccaee66088e6. --- lib/layouts/stdstruct.

[LyX/master] Fixup 294e4884: center correctly Abstract label when paragraph is empty

2021-01-05 Thread Jean-Marc Lasgouttes
commit 824d1c993a138d051c79149fc4b27e1c002736a4 Author: Jean-Marc Lasgouttes Date: Tue Jan 5 14:53:15 2021 +0100 Fixup 294e4884: center correctly Abstract label when paragraph is empty When a paragraph is empty, it was not possible to query what the left margin would

[LyX/master] Center correctly centered top labels (e.g. abstract)

2021-01-05 Thread Jean-Marc Lasgouttes
commit 6c1855313cef2fac19022ddc4c8eccaee66088e6 Author: Jean-Marc Lasgouttes Date: Tue Jan 5 14:53:15 2021 +0100 Center correctly centered top labels (e.g. abstract) Since the first row may be indented, it is necessary to find out what the left margin would be on the next row

[LyX/master] Fixup 22f599250e9: missing wildcard

2021-01-04 Thread Jean-Marc Lasgouttes
commit 69eb262721b4454fe7af683adca502451098f7fb Author: Jean-Marc Lasgouttes Date: Mon Jan 4 17:58:11 2021 +0100 Fixup 22f599250e9: missing wildcard Now all the old gcc 4.x versions (x < 9) are correctly tagged as obsolete. --- config/lyxinclude.m4 |2 +- 1 files chan

[LyX/master] Update layouts to version 90

2020-12-22 Thread Jean-Marc Lasgouttes
commit af1ab2caa947c1ee6f2d95e4332b0aaeb35364c4 Author: Jean-Marc Lasgouttes Date: Mon Dec 21 19:35:34 2020 +0100 Update layouts to version 90 lib/citeengines/basic.citeengine |2 +- lib/citeengines/biblatex-natbib.citeengine |2 +- lib/citeengines

[LyX/master] Remove parsers in included hunspell

2020-12-20 Thread Jean-Marc Lasgouttes
commit d04a8cf58fee7162bfab3d57191f6059c46b8e42 Author: Jean-Marc Lasgouttes Date: Sun Dec 20 19:39:35 2020 +0100 Remove parsers in included hunspell 3rdparty/hunspell/1.7.0/src/parsers/Makefile.am| 18 -- .../hunspell/1.7.0/src/parsers/firstparser.cxx | 65

[LyX/master] Autoconf: use included boost when system boost is not available

2020-12-20 Thread Jean-Marc Lasgouttes
commit 8d0d3ea0905172b4a1fba7fbfadba83ff61671c6 Author: Jean-Marc Lasgouttes Date: Sun Dec 20 19:26:01 2020 +0100 Autoconf: use included boost when system boost is not available --- config/lyxinclude.m4 | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git

[LyX/master] some other stuff that should have been removed from boost

2020-12-20 Thread Jean-Marc Lasgouttes
commit 37e759bc763e5ac0b7541f081ed4eacecafe Author: Jean-Marc Lasgouttes Date: Sun Dec 20 18:05:55 2020 +0100 some other stuff that should have been removed from boost Update extract.sh to remove more thoroughly old boost files (*.h, *.pl). .../boost/function/detail

[LyX/2.3.x] Do nothing if hunspell support is disabled

2020-12-19 Thread Jean-Marc Lasgouttes
commit 8e532435142be819a29877352648bc30df5defc1 Author: Jean-Marc Lasgouttes Date: Wed Nov 18 16:41:19 2020 +0100 Do nothing if hunspell support is disabled (cherry picked from commit 031720b66a40bd7b520b4b01d894a0244cdcc32a) --- config/spell.m4 | 13 ++--- 1 files

[LyX/2.3.x] Re-add win_api/config.h and somewhat update CMakeLists.txt

2020-12-19 Thread Jean-Marc Lasgouttes
commit 02e81304d700de7d4ca1a5ecf53eac3e485ce978 Author: Jean-Marc Lasgouttes Date: Mon Jun 17 12:17:40 2019 +0200 Re-add win_api/config.h and somewhat update CMakeLists.txt (cherry picked from commit 91c58d9a68ca2f4fc3114fd00cb49d6486420496) --- 3rdparty/hunspell/1.7.0/src

[LyX/2.3.x] Update the in-source hunspell to version 1.7.0

2020-12-19 Thread Jean-Marc Lasgouttes
commit f5ae00132aa9f2c8434aa8e25f66538ecd409809 Author: Jean-Marc Lasgouttes Date: Wed Jun 12 16:38:42 2019 +0200 Update the in-source hunspell to version 1.7.0 (cherry picked from commit c3484fa6c81e14bc2a4df92c4cf0bb043ac4b99a) 3rdparty/hunspell/1.6.2/AUTHORS

[LyX/2.3.x] Amend c3484fa6, adapt cmake-build to new hunspell-version

2020-12-19 Thread Jean-Marc Lasgouttes
commit 3e238b6c99afb81ea7d7f9c1df17891f4fc4b643 Author: Kornel Benko Date: Wed Jun 12 19:29:46 2019 +0200 Amend c3484fa6, adapt cmake-build to new hunspell-version (cherry picked from commit cf980435b12e697b90508924cf0c82dd3c1c0b36) --- 3rdparty/hunspell/CMakeLists.txt |2 +-

[LyX/master] Fixup 005f69de: code cleanup.

2020-12-19 Thread Jean-Marc Lasgouttes
commit 405b5c04a7f86171a6a883cea94600ebb9456cd7 Author: Jean-Marc Lasgouttes Date: Sat Dec 19 15:34:20 2020 +0100 Fixup 005f69de: code cleanup. Since we are not sure of where the cursor ends up after invoking Cursor::handleNest it is safer to reset the cursor at each cell

[LyX/master] Fix crash after b0937fb9.

2020-12-17 Thread Jean-Marc Lasgouttes
commit 005f69de2307712d20e42d2f84fb7aa1d78d38fb Author: Jean-Marc Lasgouttes Date: Thu Dec 17 20:32:06 2020 +0100 Fix crash after b0937fb9. Now the cursor is not left inside color inset, so it is not needed to pop_back. Fix bug #12035. --- src/mathed

[LyX/2.3.x] Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11

2020-12-17 Thread Jean-Marc Lasgouttes
commit f4314b6461ad4434c4c9dd294dfe62d1879ea6ea Author: Jean-Marc Lasgouttes Date: Sat Oct 24 19:29:34 2020 +0200 Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11 The method horizontalAdvance() replaces width() starting with Qt 5.11. To handle this, all dir

[LyX/2.3.x] Take right margin into account for text inset width

2020-12-17 Thread Jean-Marc Lasgouttes
commit 20c89597909ddf9bfc94d0972ce45b423a5c06bb Author: Jean-Marc Lasgouttes Date: Tue Nov 17 17:47:22 2020 +0100 Take right margin into account for text inset width This is particularly important for contents in RtL languages, where the right margin may contain the paragraph

[LyX/2.3.x] Take label width into account for SubLabel insets

2020-12-17 Thread Jean-Marc Lasgouttes
commit 326eab34088b7aaf48cb52eaec6268e547ced5a5 Author: Jean-Marc Lasgouttes Date: Tue Dec 15 15:25:07 2020 +0100 Take label width into account for SubLabel insets The drawing of the label should not go further than inset width. Fixes bug #12046. (cherry picked

[LyX/master] Take label width into account for SubLabel insets

2020-12-15 Thread Jean-Marc Lasgouttes
commit 3950f054977c60cdbf73c805cbd898003974aaee Author: Jean-Marc Lasgouttes Date: Tue Dec 15 15:25:07 2020 +0100 Take label width into account for SubLabel insets The drawing of the label should not go further than inset width. Fixes bug #12046. --- src/insets

[LyX/master] Dialog.h and DialogFactory.h are not moc-able

2020-12-15 Thread Jean-Marc Lasgouttes
commit 209a3ce618214ed4ecacf916c6d0055c69d28e5a Author: Jean-Marc Lasgouttes Date: Tue Dec 15 11:53:06 2020 +0100 Dialog.h and DialogFactory.h are not moc-able --- src/frontends/qt/Makefile.am |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt

[LyX/master] Tweak nod Makefile

2020-12-14 Thread Jean-Marc Lasgouttes
commit 425a846b1474cba1c6ffb3328b2d052048a5a30e Author: Jean-Marc Lasgouttes Date: Mon Dec 14 18:58:40 2020 +0100 Tweak nod Makefile There is no inner nod/ directory. We could, but it is probably not worth it. --- 3rdparty/nod/Makefile.am |2 +- 1 files changed, 1 insertions

[LyX/master] Remove signal2 from included boost

2020-12-14 Thread Jean-Marc Lasgouttes
commit dd21fae48c78f7691811141f4fa6deeaca727bb1 Author: Jean-Marc Lasgouttes Date: Mon Dec 14 18:40:58 2020 +0100 Remove signal2 from included boost This is not necessary now that we use the nod library. 3rdparty/boost/boost/aligned_storage.hpp | 18 - 3rdparty/boost

[LyX/master] Boost.lexical_cast is not needed anymore.

2020-12-11 Thread Jean-Marc Lasgouttes
commit d3036ca70518ba69435877a9e78457fc08f0b651 Author: Jean-Marc Lasgouttes Date: Fri Dec 11 10:11:08 2020 +0100 Boost.lexical_cast is not needed anymore. As of 9348c5c6, we use std::to_string() instead. This reduces the size of our boost copy by a couple of MB

[LyX/master] Preserve paragraph depth when dissolving.

2020-12-10 Thread Jean-Marc Lasgouttes
commit 69c46c56fe7c1f67ea89c3863fd19299fa335b65 Author: Jean-Marc Lasgouttes Date: Thu Dec 10 18:34:07 2020 +0100 Preserve paragraph depth when dissolving. It turns out that makeSameLayout() does more than we want. Fixes bug #11981. --- src/Text.cpp | 12

[LyX/master] Cleanup extract.sh

2020-12-10 Thread Jean-Marc Lasgouttes
commit 78359835606620bad2782a20ecb646c12d654282 Author: Jean-Marc Lasgouttes Date: Thu Dec 10 12:13:02 2020 +0100 Cleanup extract.sh Add new option --report to create an HTML report (shows dependencies at the end). --- 3rdparty/boost/extract.sh | 36

[LyX/master] Autotools: use C++17 mode when available

2020-12-10 Thread Jean-Marc Lasgouttes
commit bf28a2677c2ebfbaef9cffbb240aa886b9f8cbbc Author: Jean-Marc Lasgouttes Date: Thu Dec 10 10:55:09 2020 +0100 Autotools: use C++17 mode when available --- config/lyxinclude.m4 |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/lyxinclude.m4 b/config

[LyX/master] Reduce the amount of needed boost headers

2020-12-09 Thread Jean-Marc Lasgouttes
commit d9c39232ac123000fad5b8e8abb5f552104cd4ab Author: Jean-Marc Lasgouttes Date: Wed Dec 9 14:50:18 2020 +0100 Reduce the amount of needed boost headers boost/signals2.hpp is a convenience header, it seems that boost/signals2/signal.hpp is enough for our needs

[LyX/master] Overhaul (no)limits support

2020-12-09 Thread Jean-Marc Lasgouttes
commit 99fb1c7003395bf08d5523d2a8367729424de047 Author: Jean-Marc Lasgouttes Date: Wed Dec 9 09:39:49 2020 +0100 Overhaul (no)limits support - Add limits support to InsetMathScript - Add limits support to InsetMathClass - Fix bug where limits changing is disabled in inline

[LyX/master] Make spellchecker work in read-only document

2020-12-07 Thread Jean-Marc Lasgouttes
commit 1dcb08104cd11974111749257f955bbcb3daffa9 Author: Jean-Marc Lasgouttes Date: Mon Dec 7 17:53:40 2020 +0100 Make spellchecker work in read-only document Mistakes are visible but word replacement is disabled. Disable relevant widgets depending on the situation

[LyX/master] Update handling of read-only for Thesaurus

2020-12-05 Thread Jean-Marc Lasgouttes
commit 4f8cfca1170926df08f86b1cc6eccf4c9f2e3fd1 Author: Jean-Marc Lasgouttes Date: Sat Dec 5 20:27:46 2020 +0100 Update handling of read-only for Thesaurus Remove dummy calls to ButtonController::addReadOnly(). Properly disable stuff for read-only documents

[LyX/master] Make Merge Changes dialog work in read only.

2020-12-05 Thread Jean-Marc Lasgouttes
commit f02311241afde85253aa7ad1dc631bfda0b96ce1 Author: Jean-Marc Lasgouttes Date: Sat Dec 5 19:51:07 2020 +0100 Make Merge Changes dialog work in read only. Make LFUN_CHANGES_MERGE active in read-only documents. Remove dummy call to ButtonController::addReadonly

[LyX/master] Move stuff

2020-12-05 Thread Jean-Marc Lasgouttes
commit e561358be936615ffd51576682e429955c59330c Author: Jean-Marc Lasgouttes Date: Sat Dec 5 19:44:54 2020 +0100 Move stuff --- src/LyXRC.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LyXRC.h b/src/LyXRC.h index 8950ea5..530a781 100644 --- a/src/LyXRC.h

[LyX/master] Disable some Adv F widgets for read-only documents

2020-12-03 Thread Jean-Marc Lasgouttes
commit c30b0aac4bd5baabd430c3488aa97286a9ed5b41 Author: Jean-Marc Lasgouttes Date: Thu Dec 3 18:02:40 2020 +0100 Disable some Adv F widgets for read-only documents --- src/Buffer.cpp |5 + src/Buffer.h|2 ++ src/frontends/qt

[LyX/master] Fix disabling of widgets for (simple) Search dialog

2020-12-03 Thread Jean-Marc Lasgouttes
commit 24b71d30d56752231fb8cb8f3dc65cc21f83d614 Author: Jean-Marc Lasgouttes Date: Thu Dec 3 15:31:35 2020 +0100 Fix disabling of widgets for (simple) Search dialog This allows to remove the calls to ButtonController::addReadonly, which are placebo since 78ade7e6. --- src

[LyX/master] Reduce top/bottom margin for Adv F workareas

2020-12-01 Thread Jean-Marc Lasgouttes
commit f41ca959fd531cd955bce778f2734f2a3ff1ee14 Author: Jean-Marc Lasgouttes Date: Tue Dec 1 12:01:20 2020 +0100 Reduce top/bottom margin for Adv F workareas --- src/BufferView.cpp |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BufferView.cpp b/src

[LyX/master] Simplify GuiWorkarea::Private constructor

2020-12-01 Thread Jean-Marc Lasgouttes
commit 26135330bc306d060e7915ddc1fed3e38347c582 Author: Jean-Marc Lasgouttes Date: Tue Dec 1 11:26:01 2020 +0100 Simplify GuiWorkarea::Private constructor Also use the newly introduced platformName() for Qt4. --- src/frontends/qt/GuiWorkArea.cpp | 23

[LyX/master] autotools: use system boost by default

2020-11-29 Thread Jean-Marc Lasgouttes
commit ca938c08d9d110226f2c0133e304914f9cc83533 Author: Jean-Marc Lasgouttes Date: Sun Nov 29 22:07:26 2020 +0100 autotools: use system boost by default What is missing is a test to use bundled boost automatically when system boost is missing. I am not sure this is required

[LyX/master] Small fixes to extract.sh

2020-11-29 Thread Jean-Marc Lasgouttes
commit 84412ff198c64c2b375a97b11ad702d2be5cd17e Author: Jean-Marc Lasgouttes Date: Sun Nov 29 21:40:22 2020 +0100 Small fixes to extract.sh The libs/ directory is not relevant anymore. --- 3rdparty/boost/extract.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[LyX/master] Revert "Remove boost traces from configure.ac"

2020-11-29 Thread Jean-Marc Lasgouttes
commit 6448500ee29ca880b2e5a07296dd7fa2d191c33e Author: Jean-Marc Lasgouttes Date: Sun Nov 29 19:20:58 2020 +0100 Revert "Remove boost traces from configure.ac" This reverts commit f899dee382712b67a30448a3a8334d3d9bcab411. --- configure.ac | 17

[LyX/master] remove some useless things from 3rdparty/boost

2020-11-29 Thread Jean-Marc Lasgouttes
commit 7dad35b0f8515532ff540a7a8895e278016e3d4c Author: Jean-Marc Lasgouttes Date: Sun Nov 29 19:20:55 2020 +0100 remove some useless things from 3rdparty/boost Remove 1/ the libs/ directory 2/ the CMakeList.txt file, since it only mentions this directory

[LyX/master] Revert "Amend 125ed160, removing 3rdparty/boost/Makefile.am"

2020-11-29 Thread Jean-Marc Lasgouttes
commit 4e3ecda3e5890af129f7cb5187672ffb39036673 Author: Jean-Marc Lasgouttes Date: Sun Nov 29 19:13:14 2020 +0100 Revert "Amend 125ed160, removing 3rdparty/boost/Makefile.am" This reverts commit 54ccd275f1c115da5ea279652421b018564f5c56. --- 3rdparty/Makefile.am |8 +

[LyX/master] Revert "Remove 3rdparty/boost/Makefile.am"

2020-11-29 Thread Jean-Marc Lasgouttes
commit f53a205720bce9b42236d43e7535e1974dd21fa9 Author: Jean-Marc Lasgouttes Date: Sun Nov 29 19:14:40 2020 +0100 Revert "Remove 3rdparty/boost/Makefile.am" This reverts commit 125ed160d625368520074f2898c0487d30d46b98. --- 3rdparty/boost/Makefile.am | 12 +++

[LyX/master] Fix make dist

2020-11-28 Thread Jean-Marc Lasgouttes
commit cede08451e604241d3af7a540ff3623abe3c0a9f Author: Jean-Marc Lasgouttes Date: Sat Nov 28 23:43:06 2020 +0100 Fix make dist --- 3rdparty/boost/Makefile.am |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/3rdparty/boost/Makefile.am b/3rdparty/boost

[LyX/master] remove most traces of boost::regex

2020-11-28 Thread Jean-Marc Lasgouttes
commit 3093789e8d285db909a98d733e19a28f48caa7b8 Author: Jean-Marc Lasgouttes Date: Sat Nov 28 18:26:56 2020 +0100 remove most traces of boost::regex 1/ remove boost regex code from 3rdparty/boost. Only the cmake stuff remains. 2/ remove traces of BOOST_LIB since

[LyX/master] Remove deprecated enum value with Qt5

2020-11-27 Thread Jean-Marc Lasgouttes
commit 4b15d64f5172f622ec9747f25635a822aef725d3 Author: Jean-Marc Lasgouttes Date: Thu Nov 26 20:17:57 2020 +0100 Remove deprecated enum value with Qt5 --- src/frontends/qt/GuiWorkArea.cpp |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/frontends/qt

Re: [LyX/master] Fix Clang warning about struct/class mismatch

2020-11-26 Thread Jean-Marc Lasgouttes
Le 26/11/2020 à 19:21, Scott Kostyshak a écrit : commit 9649e80c44f501d3ec758343c2eb0fd53a47d10f Author: Scott Kostyshak Date: Thu Nov 26 13:48:42 2020 -0500 Fix Clang warning about struct/class mismatch CaretGeometry is defined as a struct, but was forward-declared as a

[LyX/master] Improve some debug messages

2020-11-26 Thread Jean-Marc Lasgouttes
commit c68be9a9be4b397825bf2b9844d25ad79f03dc96 Author: Jean-Marc Lasgouttes Date: Thu Nov 26 11:04:33 2020 +0100 Improve some debug messages The current code did not give much information. I am not sure why the <http://lists.lyx.org/mailman/listinfo/lyx-cvs

[LyX/master] Forgot this.

2020-11-24 Thread Jean-Marc Lasgouttes
commit 8673c5ac28028c39328ae1c08c16dbc2f8089a4a Author: Jean-Marc Lasgouttes Date: Tue Nov 24 21:20:25 2020 +0100 Forgot this. --- src/frontends/CaretGeometry.h | 52 + 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/src/frontends

[LyX/master] Rewrite (again!) the code for caret drawing

2020-11-24 Thread Jean-Marc Lasgouttes
commit 1b3ffa6627992edeb5b2f3be0cd47003e17a690d Author: Jean-Marc Lasgouttes Date: Tue Nov 24 18:35:25 2020 +0100 Rewrite (again!) the code for caret drawing The caret geometry is now computed in BufferView as a list of shapes (caret, horizontal l-shape if needed, completion

[LyX/master] (almost) Proper fix for caret droppings

2020-11-21 Thread Jean-Marc Lasgouttes
commit 7a28258d320db0e389de8255b442d06e47d820dd Author: Jean-Marc Lasgouttes Date: Sat Nov 21 20:00:26 2020 +0100 (almost) Proper fix for caret droppings Try to find the most inner row that is overwritten by the caret. This allows to replace the hack in TextMetrics::draw

[LyX/master] Compilation fix

2020-11-21 Thread Jean-Marc Lasgouttes
commit d53b44273ce139dd0140dc215cc1e26d75453f60 Author: Jean-Marc Lasgouttes Date: Sat Nov 21 19:42:23 2020 +0100 Compilation fix --- src/Lexer.cpp |1 + src/support/any.h | 22 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/Lexer.cpp

[LyX/master] Correct caret position from the start

2020-11-21 Thread Jean-Marc Lasgouttes
commit ba8ca0e38468c75ece9d19ca91b871acdbca55b3 Author: Jean-Marc Lasgouttes Date: Sat Nov 21 19:37:22 2020 +0100 Correct caret position from the start --- src/BufferView.cpp |2 ++ src/frontends/qt/GuiWorkArea.cpp |5 ++--- 2 files changed, 4 insertions(+), 3

[LyX/master] Typo and reformatting

2020-11-21 Thread Jean-Marc Lasgouttes
commit 2d27d033a668d8729817298de1109df250d4b328 Author: Jean-Marc Lasgouttes Date: Sat Nov 21 19:13:29 2020 +0100 Typo and reformatting --- src/TextMetrics.h |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/TextMetrics.h b/src/TextMetrics.h index 096f92a

[LyX/master] Use range-based loops in GuiView

2020-11-20 Thread Jean-Marc Lasgouttes
commit d8e8a93a582a6dc4bcee1112e7fe7e4f1ace5542 Author: Jean-Marc Lasgouttes Date: Fri Nov 20 15:04:59 2020 +0100 Use range-based loops in GuiView --- src/frontends/qt/GuiView.cpp | 102 +++-- 1 files changed, 37 insertions(+), 65 deletions(-) diff

[LyX/master] Revert "Limit the -Wall flag to C++ compiler"

2020-11-20 Thread Jean-Marc Lasgouttes
commit ff1ab048f10895c5106469c6b63fe78a290402d8 Author: Jean-Marc Lasgouttes Date: Fri Nov 20 14:38:06 2020 +0100 Revert "Limit the -Wall flag to C++ compiler" Something is fishy, it breaks compilation. This reverts commit cbc9a901afd1783a30b4d76663208b

[LyX/master] Do not set language from keyboard in passthru setting

2020-11-20 Thread Jean-Marc Lasgouttes
commit a877cdb1963f01d27b4bd0d194de928223cb5ae5 Author: Jean-Marc Lasgouttes Date: Wed Oct 21 18:08:39 2020 +0200 Do not set language from keyboard in passthru setting --- src/Cursor.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/Cursor.cpp b/src

[LyX/master] Limit the -Wall flag to C++ compiler

2020-11-20 Thread Jean-Marc Lasgouttes
commit cbc9a901afd1783a30b4d76663208b0c13530a30 Author: Jean-Marc Lasgouttes Date: Fri Nov 20 13:41:45 2020 +0100 Limit the -Wall flag to C++ compiler This avoids tons of warning when compiling code, like libiconv, which is not prepared to this kind of scrutiny of its code

[LyX/master] Do nothing if hunspell support is disabled

2020-11-19 Thread Jean-Marc Lasgouttes
commit 031720b66a40bd7b520b4b01d894a0244cdcc32a Author: Jean-Marc Lasgouttes Date: Wed Nov 18 16:41:19 2020 +0100 Do nothing if hunspell support is disabled --- config/spell.m4 | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config/spell.m4 b/config

[LyX/master] Fix compilation of included libiconv with autoconf

2020-11-19 Thread Jean-Marc Lasgouttes
commit b5d1f2f3002c22db64fda4eb40220a1dc0b43903 Author: Jean-Marc Lasgouttes Date: Thu Nov 19 13:40:26 2020 +0100 Fix compilation of included libiconv with autoconf --- 3rdparty/libiconv/Makefile.am |2 +- config/lyxinclude.m4 |3 +++ 2 files changed, 4 insertions(+), 1

[LyX/master] Fix screen display of parts and chapters in default classes

2020-11-18 Thread Jean-Marc Lasgouttes
commit 0b9c27222a69f0ec657f008345ea812030596702 Author: Jean-Marc Lasgouttes Date: Wed Nov 18 10:15:05 2020 +0100 Fix screen display of parts and chapters in default classes This has been done by reading the LaTeX sources (classes.dtx) to try to get things right * fix

[LyX/master] Take right margin into account for text inset width

2020-11-17 Thread Jean-Marc Lasgouttes
commit 875b1def4fde82ff06089bd84fc9b3157878c011 Author: Jean-Marc Lasgouttes Date: Tue Nov 17 17:47:22 2020 +0100 Take right margin into account for text inset width This is particularly important for contents in RtL languages, where the right margin may contain the paragraph

[LyX/master] Store correctly the window position with Wayland

2020-11-14 Thread Jean-Marc Lasgouttes
commit 222a317dd243fb18f01bfa6e994902fee06ae3db Author: Jean-Marc Lasgouttes Date: Thu Nov 12 12:09:36 2020 +0100 Store correctly the window position with Wayland To do this, hard-coded test for xcb had to be replaced with a call to platformName(). Since this method does

Re: [LyX/master] Revert "Improve structure of updateMacros"

2020-11-11 Thread Jean-Marc Lasgouttes
Le 11/11/2020 à 17:13, Richard Kimberly Heck a écrit : commit fdd0a6f84923f1d4a1f82457a3e256a2ee706f6b Author: Richard Kimberly Heck Date: Wed Nov 11 11:24:59 2020 -0500 Revert "Improve structure of updateMacros" The problem here is that the check against TEXT_CODE only

[LyX/master] Fixup aeb51be9: set current font correctly when editing inset

2020-11-10 Thread Jean-Marc Lasgouttes
commit 63300c3ba89ba1f196b8d436f09a2279d6780de0 Author: Jean-Marc Lasgouttes Date: Tue Nov 10 15:39:47 2020 +0100 Fixup aeb51be9: set current font correctly when editing inset When using InsetText::edit(), invoke Cursor::setCurrentFont (note that editXY does it already

[LyX/master] Make sure that Cursor::setCurrentFont sets LaTeX language in ERT

2020-11-10 Thread Jean-Marc Lasgouttes
commit 411333fa956c8980fee672364eabacf9f3b57d9d Author: Jean-Marc Lasgouttes Date: Tue Nov 10 13:47:53 2020 +0100 Make sure that Cursor::setCurrentFont sets LaTeX language in ERT Fix issue when language is set to document language instead of latex_language in ERT and pass thru

[LyX/master] Fixup ce526607 again: last-minute blunder

2020-11-03 Thread Jean-Marc Lasgouttes
commit acce7a9ce87f9d5ebfd05a4d788e97991597a1a7 Author: Jean-Marc Lasgouttes Date: Tue Nov 3 16:22:20 2020 +0100 Fixup ce526607 again: last-minute blunder --- config/lyxinclude.m4 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/config/lyxinclude.m4 b/config

[LyX/master] Fixup 6394dd89: small cleanups

2020-11-03 Thread Jean-Marc Lasgouttes
commit c872cbb8cc7e72cf7f90653a58112fd926b264db Author: Jean-Marc Lasgouttes Date: Tue Nov 3 15:11:06 2020 +0100 Fixup 6394dd89: small cleanups --- config/lyxinclude.m4 |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/lyxinclude.m4 b/config

[LyX/master] Indentation

2020-11-03 Thread Jean-Marc Lasgouttes
commit 4094afaf2e7093a0edc7fa3846e8804f5295a666 Author: Jean-Marc Lasgouttes Date: Tue Nov 3 15:10:19 2020 +0100 Indentation --- src/Layout.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Layout.h b/src/Layout.h index 102bab6..cb8f537 100644 --- a/src

[LyX/master] Make it possible to select C++ standard with autoconf

2020-11-03 Thread Jean-Marc Lasgouttes
commit ce526607ff4ae33834dabe64e0072530eca16183 Author: Jean-Marc Lasgouttes Date: Mon Nov 2 17:40:29 2020 +0100 Make it possible to select C++ standard with autoconf Introduce new configure option --enable-cxx-mode=MODE, which allows to force a C++ version. The default

[LyX/master] Do not honor stdlib-debug when c++library is not gcc's libstdc++

2020-10-25 Thread Jean-Marc Lasgouttes
commit f6921d9161a03c6905c21d71d53f7499a4e7b6e2 Author: Jean-Marc Lasgouttes Date: Sat Oct 24 18:00:55 2020 +0200 Do not honor stdlib-debug when c++library is not gcc's libstdc++ Actually the real difference is that it does not complain about system boost any more when LLVM's

[LyX/master] Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11

2020-10-24 Thread Jean-Marc Lasgouttes
commit 21422dd6527754d8b7876a6e11b686cd726321ed Author: Jean-Marc Lasgouttes Date: Sat Oct 24 19:29:34 2020 +0200 Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11 The method horizontalAdvance() replaces width() starting with Qt 5.11. To handle this, all dir

<    2   3   4   5   6   7   8   9   10   11   >