]> git.lyx.org Git - lyx.git/log
lyx.git
3 years agoFix typos in filetools.cpp.
Thibaut Cuvelier [Mon, 12 Oct 2020 22:33:05 +0000 (00:33 +0200)]
Fix typos in filetools.cpp.

3 years agoDocBook: documents must have a title.
Thibaut Cuvelier [Mon, 12 Oct 2020 17:26:37 +0000 (19:26 +0200)]
DocBook: documents must have a title.

3 years agoFix compilation on Visual C++.
Thibaut Cuvelier [Mon, 12 Oct 2020 17:21:58 +0000 (19:21 +0200)]
Fix compilation on Visual C++.

Without this patch, there would be errors like these (warnings turned into errors):

D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(2413): error C4101: 'e': unreferenced local variable
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(4879): error C4101: 'ex': unreferenced local variable

3 years agoAdd `override` in VCBackend
Yuriy Skalko [Fri, 9 Oct 2020 20:27:50 +0000 (23:27 +0300)]
Add `override` in VCBackend

3 years agoRight exception rethrowing
Yuriy Skalko [Fri, 9 Oct 2020 17:42:51 +0000 (20:42 +0300)]
Right exception rethrowing

3 years agoConstify
Yuriy Skalko [Fri, 9 Oct 2020 15:50:24 +0000 (18:50 +0300)]
Constify

3 years agoConst
Richard Kimberly Heck [Sat, 10 Oct 2020 21:12:43 +0000 (17:12 -0400)]
Const

3 years agoFix warning
Richard Kimberly Heck [Sat, 10 Oct 2020 14:00:16 +0000 (10:00 -0400)]
Fix warning

3 years agoAmend 667c0647a564a18360f40299a2a1ddc0da0d2043
Thibaut Cuvelier [Sat, 10 Oct 2020 20:18:16 +0000 (22:18 +0200)]
Amend 667c0647a564a18360f40299a2a1ddc0da0d2043

Consistent indentation, use of the latest schema everywhere, typo.

3 years agoCmake docbook tests: Add jing.jar to test created docbook files
Kornel Benko [Sat, 10 Oct 2020 10:43:17 +0000 (12:43 +0200)]
Cmake docbook tests: Add jing.jar to test created docbook files

Usefull only if tested with data from repository.
This means: The file 'jing.jar' is not part of the distribution.

3 years agoUpdate Russian localization
Yuriy Skalko [Wed, 7 Oct 2020 08:04:01 +0000 (11:04 +0300)]
Update Russian localization

3 years agoLoop refactoring
Yuriy Skalko [Fri, 9 Oct 2020 06:04:20 +0000 (09:04 +0300)]
Loop refactoring

3 years agoBind new template dialog to template shortcut (bug 11996).
Richard Kimberly Heck [Fri, 9 Oct 2020 02:02:06 +0000 (22:02 -0400)]
Bind new template dialog to template shortcut (bug 11996).

From Daniel.

3 years agoUse 'delete' for unimplemented constructors.
Richard Kimberly Heck [Wed, 7 Oct 2020 15:05:54 +0000 (11:05 -0400)]
Use 'delete' for unimplemented constructors.

Thanks Yuriy!

3 years agodistribute db_*.inc files
Kornel Benko [Wed, 7 Oct 2020 10:44:20 +0000 (12:44 +0200)]
distribute db_*.inc files

Missed if using docbook5 export

3 years agoDocBook: add DocBookInnerTag and family.
Thibaut Cuvelier [Wed, 7 Oct 2020 04:05:22 +0000 (06:05 +0200)]
DocBook: add DocBookInnerTag and family.

This allows old DocBook documents to be valid when output.

3 years agoDocBook: restore the old DocBook support.
Thibaut Cuvelier [Wed, 7 Oct 2020 03:33:56 +0000 (05:33 +0200)]
DocBook: restore the old DocBook support.

3 years agoDocBook: update test cases.
Thibaut Cuvelier [Wed, 7 Oct 2020 03:03:24 +0000 (05:03 +0200)]
DocBook: update test cases.

3 years agoAmend 249d899
Thibaut Cuvelier [Wed, 7 Oct 2020 02:43:31 +0000 (04:43 +0200)]
Amend 249d899

Non-ASCII characters make std::isspace crash, but not lyx::isSpace.

3 years agoUse explicit default syntax (C++11).
Richard Kimberly Heck [Wed, 7 Oct 2020 00:31:11 +0000 (20:31 -0400)]
Use explicit default syntax (C++11).

Thanks to Jos'e for noticing this option.

3 years agoFix some warnings
Richard Kimberly Heck [Tue, 6 Oct 2020 16:27:28 +0000 (12:27 -0400)]
Fix some warnings

3 years agoExplicit InsetTableCell copy constructor
Richard Kimberly Heck [Mon, 5 Oct 2020 17:11:48 +0000 (13:11 -0400)]
Explicit InsetTableCell copy constructor

3 years ago* ANNOUNCE
Pavel Sanda [Tue, 6 Oct 2020 14:11:00 +0000 (16:11 +0200)]
* ANNOUNCE

3 years agoUG: add lineno opt
Pavel Sanda [Tue, 6 Oct 2020 13:09:39 +0000 (15:09 +0200)]
UG: add lineno opt

3 years agoAdd few examples for lineno options.
Pavel Sanda [Tue, 6 Oct 2020 13:05:11 +0000 (15:05 +0200)]
Add few examples for lineno options.

It's actually pretty hard to get that from the manual.

3 years agoUse -Wno-deprecated-copy also with clang++ 11
Jean-Marc Lasgouttes [Mon, 5 Oct 2020 16:17:40 +0000 (18:17 +0200)]
Use -Wno-deprecated-copy also with clang++ 11

3 years agoDocBook: clean output when fonts span over text that ends with a space
Thibaut Cuvelier [Mon, 5 Oct 2020 14:22:58 +0000 (16:22 +0200)]
DocBook: clean output when fonts span over text that ends with a space

3 years agoremove unused variable
Jean-Marc Lasgouttes [Mon, 5 Oct 2020 13:11:51 +0000 (15:11 +0200)]
remove unused variable

3 years agoAmend efc0877f
Yuriy Skalko [Mon, 5 Oct 2020 10:22:55 +0000 (13:22 +0300)]
Amend efc0877f

Add the last `override`s.

3 years agoRefactoring
Yuriy Skalko [Mon, 5 Oct 2020 10:38:09 +0000 (13:38 +0300)]
Refactoring

3 years agoAmend efc0877f
Yuriy Skalko [Sun, 4 Oct 2020 14:56:53 +0000 (17:56 +0300)]
Amend efc0877f

Add more `override` specifiers. Replace `throw()` to `noexcept`.

3 years agoAmend 31d64c73: slipped in part removed.
Kornel Benko [Sat, 3 Oct 2020 23:59:23 +0000 (01:59 +0200)]
Amend 31d64c73: slipped in part removed.

3 years agoUpdate sk.po
Kornel Benko [Sat, 3 Oct 2020 23:55:02 +0000 (01:55 +0200)]
Update sk.po

3 years agoEnable handling of spreadsheets in export to docbook5 format.
Kornel Benko [Sat, 3 Oct 2020 23:43:44 +0000 (01:43 +0200)]
Enable handling of spreadsheets in export to docbook5 format.

In cooperation with Thibaut Cuvelier:
lib/scripts/spreadsheet_to_docbook.py: Strip the document header and convert some flags
lib/xtemplates/gnumeric.xtemplate: use this output to be inserted in docbook5
lib/configure.py: Add needed conversion entries

3 years agoAmend efc0877f
Yuriy Skalko [Sat, 3 Oct 2020 12:42:14 +0000 (15:42 +0300)]
Amend efc0877f

3 years agoDocBook: support for Labeling
Thibaut Cuvelier [Sat, 3 Oct 2020 14:17:22 +0000 (16:17 +0200)]
DocBook: support for Labeling

3 years agoAdd formats to be used by converting docbook5 -> pdf
Kornel Benko [Sat, 3 Oct 2020 12:44:10 +0000 (14:44 +0200)]
Add formats to be used by converting docbook5 -> pdf

Preparation to test docbook5 exports

'xhtml_table': Format used for inserting spreadsheet tables in docbook
'pdf9': Result format used by conversion docbook5 with pandoc to create a pdf

3 years agoCmake build: Install missed script listerrors
Kornel Benko [Sat, 3 Oct 2020 12:06:24 +0000 (14:06 +0200)]
Cmake build: Install missed script listerrors

3 years agoRefactoring based on cppcheck suggestions
Yuriy Skalko [Thu, 1 Oct 2020 10:34:15 +0000 (13:34 +0300)]
Refactoring based on cppcheck suggestions

3 years agoDo not use runparams.nice == true while exporting to docbook5
Kornel Benko [Sat, 3 Oct 2020 11:28:26 +0000 (13:28 +0200)]
Do not use runparams.nice == true while exporting to docbook5

The setting implies that the variable external_in_tmpdir is set to false.
If a lyx-file includes external material for spreadsheet,
the conversion results are in tmpdir.
The routine doSubstitution() (insets/ExternalSupport.cpp:188) therefore
does nothing for the entry $$Contents because it uses wrong path.

3 years agoAdd `override` specifiers to improve code maintainability
Yuriy Skalko [Thu, 1 Oct 2020 07:42:11 +0000 (10:42 +0300)]
Add `override` specifiers to improve code maintainability

3 years agoNever mark references in inactive insets broken
Juergen Spitzmueller [Sat, 3 Oct 2020 06:54:06 +0000 (08:54 +0200)]
Never mark references in inactive insets broken

This is the sledgehammer (and the only) way to omit broken refs if the
target is in an (or the same) inactive inset as well.

3 years agoWhitespace
Richard Kimberly Heck [Fri, 2 Oct 2020 17:11:28 +0000 (13:11 -0400)]
Whitespace

3 years agoPass parameters as const references when possible
Jean-Marc Lasgouttes [Fri, 2 Oct 2020 16:56:01 +0000 (18:56 +0200)]
Pass parameters as const references when possible

Fixes some cppcheck warnings.

3 years agoFixup f96b99dc: do not initialize cache too late
Jean-Marc Lasgouttes [Fri, 2 Oct 2020 10:17:57 +0000 (12:17 +0200)]
Fixup f96b99dc: do not initialize cache too late

3 years agoFixup f96b99dc: thinko
Jean-Marc Lasgouttes [Fri, 2 Oct 2020 10:06:32 +0000 (12:06 +0200)]
Fixup f96b99dc: thinko

Setting the res value and returning from the function at the same time
does not make sense. After reflection, it is the "return" that shall
go.

No idea what effect it had.

3 years agoRefactoring
Juergen Spitzmueller [Fri, 2 Oct 2020 06:30:31 +0000 (08:30 +0200)]
Refactoring

3 years agotex2lyx: properly set textclass if no class is given
Juergen Spitzmueller [Fri, 2 Oct 2020 06:17:45 +0000 (08:17 +0200)]
tex2lyx: properly set textclass if no class is given

(snippets without \documentclass and no forced class)

3 years agoRemove non-const version of ParagraphMetrics::getRow
Jean-Marc Lasgouttes [Thu, 1 Oct 2020 12:58:18 +0000 (14:58 +0200)]
Remove non-const version of ParagraphMetrics::getRow

Constify a bit TextMetrics::isRTLBoundary().

3 years agoFixup 7d965319: reset cursor font at a finer level
Jean-Marc Lasgouttes [Thu, 1 Oct 2020 12:19:09 +0000 (14:19 +0200)]
Fixup 7d965319: reset cursor font at a finer level

3 years agoCleanup the caret geometry code
Jean-Marc Lasgouttes [Thu, 1 Oct 2020 11:17:01 +0000 (13:17 +0200)]
Cleanup the caret geometry code

Intended changes:

* code is shorter and cleaner

* caret scales better with zoom when cursor_width=0: completion
  indicator, l-shaped cursor...

Details:

* Rename BufferView::getPosAndHeight to getPosAndDim because ascent is
  needed too and width could in the future be set depending on font.

* Get rid of rect_ in CaretWidget and record a Dimension (and y value) instead.
  Remove also caret_width_ and slant_, replace rtl_ with dir.

* Make CaretWidget members public and lose the trailing _.

* change CaretWidget::update to read its parameters from current bufferview.

3 years agoFix bug where cursor size is not reset correctly.
Jean-Marc Lasgouttes [Thu, 1 Oct 2020 10:44:38 +0000 (12:44 +0200)]
Fix bug where cursor size is not reset correctly.

A couple of calls to setCurrentFont fix the issue, but there has to be
more cases to catch. I am not sure why it used to work.

3 years agoUpdate it.po
Enrico Forestieri [Wed, 30 Sep 2020 20:16:07 +0000 (22:16 +0200)]
Update it.po

3 years agoGet rid of helper Text::previousWord(), used only once
Jean-Marc Lasgouttes [Tue, 29 Sep 2020 08:15:31 +0000 (10:15 +0200)]
Get rid of helper Text::previousWord(), used only once

3 years agoError message
Richard Kimberly Heck [Tue, 29 Sep 2020 02:45:44 +0000 (22:45 -0400)]
Error message

3 years agoFix bug #11986
Richard Kimberly Heck [Tue, 29 Sep 2020 02:34:52 +0000 (22:34 -0400)]
Fix bug #11986

3 years agoWe really do not want id to change
Richard Kimberly Heck [Tue, 29 Sep 2020 02:20:22 +0000 (22:20 -0400)]
We really do not want id to change

3 years agoFix minor annoyance with previous commit.
Richard Kimberly Heck [Tue, 29 Sep 2020 02:07:08 +0000 (22:07 -0400)]
Fix minor annoyance with previous commit.

When validating local layout, in particular, we create a dummy text TextClass
and so are not necessarily modifying previously declared material. Hence, we
get a spurious (but harmless) "Incomplete argument definition!" warning. This
suppresses it, but to do that we need to propogate the ReadType.

3 years agoAllow argument definitions in layout files to modify existing ones.
Richard Kimberly Heck [Tue, 29 Sep 2020 02:06:11 +0000 (22:06 -0400)]
Allow argument definitions in layout files to modify existing ones.

This is what layout re-definitions do in all other cases.

3 years agoMove defaults into struct definition
Richard Kimberly Heck [Tue, 29 Sep 2020 01:30:40 +0000 (21:30 -0400)]
Move defaults into struct definition

3 years agoUpdate layouts
Enrico Forestieri [Mon, 28 Sep 2020 20:32:30 +0000 (22:32 +0200)]
Update layouts

3 years agoFix the layout2layout script
Enrico Forestieri [Mon, 28 Sep 2020 20:29:28 +0000 (22:29 +0200)]
Fix the layout2layout script

It was not correctly updated at dab71087ad18c194, and 6998e764.

3 years agoamend 6d6fc761be
Pavel Sanda [Mon, 28 Sep 2020 14:44:12 +0000 (16:44 +0200)]
amend 6d6fc761be

3 years agoQt4 compilable again
Pavel Sanda [Mon, 28 Sep 2020 14:34:42 +0000 (16:34 +0200)]
Qt4 compilable again

3 years agoUse real italic slope for slanted caret
Yuriy Skalko [Wed, 23 Sep 2020 08:18:08 +0000 (11:18 +0300)]
Use real italic slope for slanted caret

3 years agoMake script compliant with python 3
José Matos [Mon, 28 Sep 2020 10:13:47 +0000 (11:13 +0100)]
Make script compliant with python 3

3 years agoRevert "Update layouts"
Scott Kostyshak [Sun, 27 Sep 2020 20:47:28 +0000 (16:47 -0400)]
Revert "Update layouts"

A fix to layout2layout is needed first. See:

  https://www.mail-archive.com/search?l=mid&q=20200927192424.GA1224%40GIOVE

This reverts commit 5d7efd2fa934b138933ffed5a1e19c9d52e8d933.

3 years agoUpdate layouts
Scott Kostyshak [Sun, 27 Sep 2020 15:44:59 +0000 (11:44 -0400)]
Update layouts

Fixes a slight delay when cutting (#11988).

3 years agoAmend 448e5efab42
Juergen Spitzmueller [Sat, 26 Sep 2020 10:12:09 +0000 (12:12 +0200)]
Amend 448e5efab42

Only set langClosed to true if it really has been closed.

3 years agoctests: ignore Japanese dvi3 systemF tests
Scott Kostyshak [Fri, 25 Sep 2020 19:11:17 +0000 (15:11 -0400)]
ctests: ignore Japanese dvi3 systemF tests

These started to fail due to a "luatex" package update in the TL20
cycle. From an ML thread [1]:

  The LuaTeX-ja package, which is loaded by bxjs* class, is not
  designed to be used with dvilua(la)tex.

[1] https://www.mail-archive.com/search?l=mid&q=20200917155146.ec1bd9f9b5d5f5936513e5dd%40yahoo.co.jp

3 years agoTypo
Scott Kostyshak [Fri, 25 Sep 2020 19:11:03 +0000 (15:11 -0400)]
Typo

3 years agoUse correct bounding box when exporting from command line
Enrico Forestieri [Fri, 25 Sep 2020 18:58:40 +0000 (20:58 +0200)]
Use correct bounding box when exporting from command line

Without GUI an image is not available even if it is actually cached.
In this case we load the image for obtaining its dimensions in order
to correct the clipping bounding box.

This amends 380f34a1.

3 years agoCorrect comment
Enrico Forestieri [Fri, 25 Sep 2020 10:11:10 +0000 (12:11 +0200)]
Correct comment

3 years agoDo not correct clipping bounding box for vector formats
Enrico Forestieri [Fri, 25 Sep 2020 10:01:57 +0000 (12:01 +0200)]
Do not correct clipping bounding box for vector formats

This amends 380f34a1 that only took into account the postscript format.

3 years agoGnumeric conversions to html: Remove wrong closing </p> flag
Kornel Benko [Thu, 24 Sep 2020 08:14:35 +0000 (10:14 +0200)]
Gnumeric conversions to html: Remove wrong closing </p> flag

Now LyXHTML export for Spreadsheet.lyx is errorles, but stil we need a wrapper
to remove unneeded 'Ark' captions.

3 years agoRemove default parameter of UndoGroupHelper constructor
Jean-Marc Lasgouttes [Wed, 23 Sep 2020 15:28:36 +0000 (17:28 +0200)]
Remove default parameter of UndoGroupHelper constructor

This can lead to mistakes. If no buffer is required at the beginning,
it is better to pass 'nullptr' explicitly.

Fix a case of missing parameter in GuiCompleter (introduced at
f3656600). This avoids some spurious "There is no group open (creating
one)" messages.

3 years agoUpdate Russian localization
Yuriy Skalko [Wed, 23 Sep 2020 08:01:43 +0000 (11:01 +0300)]
Update Russian localization

3 years agoDo not use a fake row to compute completion dimension
Jean-Marc Lasgouttes [Tue, 22 Sep 2020 13:06:46 +0000 (15:06 +0200)]
Do not use a fake row to compute completion dimension

The code in TextMetrics::completionPosAndDim is needlessly complicated.

1/ It is easier to rely directly on Text::getWord() rather than on the
   helper previousWord().

2/ Using a fake row to compute completion height is overkill. A
   simpler solution is proposed here.

No intended effect. These changes prepare the fix to ticket #11818.

3 years agoSimplify reversion code (keeping the same output)
José Matos [Mon, 21 Sep 2020 13:36:52 +0000 (14:36 +0100)]
Simplify reversion code (keeping the same output)

3 years agoRemove the noun-flag from the separator in index entry
Kornel Benko [Mon, 21 Sep 2020 10:48:58 +0000 (12:48 +0200)]
Remove the noun-flag from the separator in index entry

3 years agoCmake tests: Remove docbook, xhtml, lyx2lyx tests from unreliableTests
Kornel Benko [Sun, 20 Sep 2020 12:25:04 +0000 (14:25 +0200)]
Cmake tests: Remove docbook, xhtml, lyx2lyx tests from unreliableTests

The relevant export-output is done by lyx and not dependent
on some external driver (like latex)
(Graphics conversions don't count here IMHO)

3 years agoCmake export xhtml tests: load dtd if checking ouput with xmllint
Kornel Benko [Sun, 20 Sep 2020 09:47:04 +0000 (11:47 +0200)]
Cmake export xhtml tests: load dtd if checking ouput with xmllint

3 years agoFix unnecessary cprotect
Juergen Spitzmueller [Sun, 20 Sep 2020 06:45:42 +0000 (08:45 +0200)]
Fix unnecessary cprotect

3 years agoRevert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
Thibaut Cuvelier [Sat, 19 Sep 2020 23:35:14 +0000 (01:35 +0200)]
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5."

This reverts commit c8e2c17a: this makes some browsers unable to understand basic HTML entities.

3 years agoDocBook: adapt code for older GCC.
Thibaut Cuvelier [Sat, 19 Sep 2020 21:55:07 +0000 (23:55 +0200)]
DocBook: adapt code for older GCC.

3 years agoMerge branch 'feature/docbook' into master
Thibaut Cuvelier [Sat, 19 Sep 2020 18:44:16 +0000 (20:44 +0200)]
Merge branch 'feature/docbook' into master

3 years agoXHTML: fix for encodings in attributes (patch by Kornel)
Thibaut Cuvelier [Sat, 19 Sep 2020 15:26:17 +0000 (17:26 +0200)]
XHTML: fix for encodings in attributes (patch by Kornel)

3 years agoXHTML sections: saner code to close the section.
Thibaut Cuvelier [Sat, 19 Sep 2020 02:26:06 +0000 (04:26 +0200)]
XHTML sections: saner code to close the section.

It only caused troubles in corner cases...

3 years agoXHTML sections: only filter out things that are not Sectioning, not based on the...
Thibaut Cuvelier [Sat, 19 Sep 2020 01:23:00 +0000 (03:23 +0200)]
XHTML sections: only filter out things that are not Sectioning, not based on the level.

3 years agoXHTML: restore sections.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:13:42 +0000 (04:13 +0200)]
XHTML: restore sections.

3 years agoConverters: always set version to something.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:12:26 +0000 (04:12 +0200)]
Converters: always set version to something.

Otherwise, it's common to compare "None >= (6,2,6)", which makes no sense. Set it to (0,0,0) so that any comparison fails (without an error message).

3 years agoConverters: slightly more pythonic code.
Thibaut Cuvelier [Wed, 16 Sep 2020 02:02:51 +0000 (04:02 +0200)]
Converters: slightly more pythonic code.

3 years agoRevert "XHTML: remove <section> support."
Thibaut Cuvelier [Wed, 16 Sep 2020 01:37:46 +0000 (03:37 +0200)]
Revert "XHTML: remove <section> support."

This reverts commit 52216b73

3 years agoXHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not...
Thibaut Cuvelier [Wed, 16 Sep 2020 01:22:38 +0000 (03:22 +0200)]
XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5.

3 years agoXHTML: remove <section> support.
Thibaut Cuvelier [Wed, 16 Sep 2020 01:18:32 +0000 (03:18 +0200)]
XHTML: remove <section> support.

3 years agoDocBook: slight code simplification.
Thibaut Cuvelier [Sat, 12 Sep 2020 23:50:11 +0000 (01:50 +0200)]
DocBook: slight code simplification.

3 years agoDocBook: fix output in Layout::write.
Thibaut Cuvelier [Sat, 12 Sep 2020 01:21:08 +0000 (03:21 +0200)]
DocBook: fix output in Layout::write.

3 years agoDocBook: implement InsetBox titles.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:52:58 +0000 (01:52 +0200)]
DocBook: implement InsetBox titles.

3 years agoDocBook: fix a crash in bibliography paragraphs.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:43:57 +0000 (01:43 +0200)]
DocBook: fix a crash in bibliography paragraphs.

3 years agolayout2layout: use name instead of pseudonym.
Thibaut Cuvelier [Fri, 11 Sep 2020 23:04:43 +0000 (01:04 +0200)]
layout2layout: use name instead of pseudonym.