]> git.lyx.org Git - lyx.git/log
lyx.git
3 years agoRevert "Enable to build with MinGW-W64"
Yuriy Skalko [Fri, 16 Oct 2020 05:17:12 +0000 (08:17 +0300)]
Revert "Enable to build with MinGW-W64"

This reverts commit ae5a8de6eaa0faf4b250b1ee99f7d5ac58197a0e.

3 years agoRevert "Enable optimizations"
Yuriy Skalko [Fri, 16 Oct 2020 05:17:04 +0000 (08:17 +0300)]
Revert "Enable optimizations"

This reverts commit b4cd7e9d320708187097ae701aaf1755b5a8b523.

3 years agoEnable optimizations
Yuriy Skalko [Fri, 5 Jun 2020 10:35:28 +0000 (13:35 +0300)]
Enable optimizations

3 years agoEnable to build with MinGW-W64
Yuriy Skalko [Wed, 27 May 2020 12:09:58 +0000 (15:09 +0300)]
Enable to build with MinGW-W64

3 years agoMove Author.h, Format.h from BufferParams.h
Yuriy Skalko [Thu, 15 Oct 2020 19:27:52 +0000 (22:27 +0300)]
Move Author.h, Format.h from BufferParams.h

3 years agoConst refactor
Yuriy Skalko [Thu, 15 Oct 2020 19:15:21 +0000 (22:15 +0300)]
Const refactor

3 years agoMove Cursor.h from TocWidget.h
Yuriy Skalko [Thu, 15 Oct 2020 18:09:21 +0000 (21:09 +0300)]
Move Cursor.h from TocWidget.h

3 years agoMove Cursor.h from Clipboard.h
Yuriy Skalko [Thu, 15 Oct 2020 06:59:01 +0000 (09:59 +0300)]
Move Cursor.h from Clipboard.h

3 years agoClean output_latex
Yuriy Skalko [Wed, 14 Oct 2020 21:51:07 +0000 (00:51 +0300)]
Clean output_latex

3 years agoClean Cursor and CursorSlice
Yuriy Skalko [Wed, 14 Oct 2020 21:45:04 +0000 (00:45 +0300)]
Clean Cursor and CursorSlice

3 years agoRemove CutAndPaste.h from Trans.cpp
Yuriy Skalko [Wed, 14 Oct 2020 21:25:55 +0000 (00:25 +0300)]
Remove CutAndPaste.h from Trans.cpp

3 years agoClean includes in TextMetrics.cpp
Yuriy Skalko [Wed, 14 Oct 2020 21:17:45 +0000 (00:17 +0300)]
Clean includes in TextMetrics.cpp

3 years agoClean includes in buffer_funcs.cpp
Yuriy Skalko [Wed, 14 Oct 2020 20:56:14 +0000 (23:56 +0300)]
Clean includes in buffer_funcs.cpp

3 years agoDocBook: MissingEndLayoutBetweenTables can't pass.
Thibaut Cuvelier [Fri, 16 Oct 2020 02:30:05 +0000 (04:30 +0200)]
DocBook: MissingEndLayoutBetweenTables can't pass.

3 years agoAmend 82ea3d6
Thibaut Cuvelier [Fri, 16 Oct 2020 02:29:50 +0000 (04:29 +0200)]
Amend 82ea3d6

Test was done on the wrong data structure: the title is almost the only element ending up in shouldBeInInfo, it is never inmustBeInInfo.

3 years agoMove Dimension.h from InsetIPA.h
Yuriy Skalko [Thu, 15 Oct 2020 07:04:32 +0000 (10:04 +0300)]
Move Dimension.h from InsetIPA.h

3 years agoMove BufferParams.h from Language.h
Yuriy Skalko [Wed, 14 Oct 2020 20:40:05 +0000 (23:40 +0300)]
Move BufferParams.h from Language.h

3 years agoRemove BufferParams.h from BiblioInfo.h
Yuriy Skalko [Wed, 14 Oct 2020 13:43:44 +0000 (16:43 +0300)]
Remove BufferParams.h from BiblioInfo.h

3 years agoAmend 0536193c: Remove requirement of revsymb4-1.sty.
Kornel Benko [Thu, 15 Oct 2020 10:16:30 +0000 (12:16 +0200)]
Amend 0536193c: Remove requirement of revsymb4-1.sty.

Fixes #12005, reported and indicated a fix by 'ert'

3 years agoCleanup CutAndPaste.cpp
Daniel Ramoeller [Sun, 11 Oct 2020 14:03:39 +0000 (16:03 +0200)]
Cleanup CutAndPaste.cpp

3 years agoFix linking problem by adding convert from string to unsigned long long.
Richard Kimberly Heck [Thu, 15 Oct 2020 02:28:10 +0000 (22:28 -0400)]
Fix linking problem by adding convert from string to unsigned long long.

3 years agoUG: add nopagebreak section
Pavel Sanda [Wed, 14 Oct 2020 20:24:13 +0000 (22:24 +0200)]
UG: add nopagebreak section

3 years agoMove <fstream> from support/gzstream.h
Pavel Sanda [Wed, 14 Oct 2020 13:12:48 +0000 (15:12 +0200)]
Move <fstream> from support/gzstream.h

3 years agoMove docstream.h from output_xhtml.h
Pavel Sanda [Wed, 14 Oct 2020 13:06:12 +0000 (15:06 +0200)]
Move docstream.h from output_xhtml.h

3 years agoMove MetricsInfo.h from InsetMathSize.h
Pavel Sanda [Wed, 14 Oct 2020 12:58:18 +0000 (14:58 +0200)]
Move MetricsInfo.h from InsetMathSize.h

3 years agoMove <QTimer> from TocWidget.h
Pavel Sanda [Wed, 14 Oct 2020 12:48:41 +0000 (14:48 +0200)]
Move <QTimer> from TocWidget.h

3 years agoMove <QTimer> from GuiViewSource.h
Pavel Sanda [Wed, 14 Oct 2020 12:37:38 +0000 (14:37 +0200)]
Move <QTimer> from GuiViewSource.h

3 years agoMove <QKeyEvent> from DockView.h
Pavel Sanda [Wed, 14 Oct 2020 12:35:29 +0000 (14:35 +0200)]
Move <QKeyEvent> from DockView.h

3 years agoMove GuiView.h from DockView.h
Pavel Sanda [Wed, 14 Oct 2020 12:28:47 +0000 (14:28 +0200)]
Move GuiView.h from DockView.h

3 years ago<QCloseEvent> DialogView.h -> DialogView.cpp
Pavel Sanda [Wed, 14 Oct 2020 11:57:30 +0000 (13:57 +0200)]
<QCloseEvent> DialogView.h -> DialogView.cpp

3 years agoinclude "GuiView.h": DialogView.h -> DialogView.cpp
Pavel Sanda [Wed, 14 Oct 2020 11:53:40 +0000 (13:53 +0200)]
include "GuiView.h": DialogView.h -> DialogView.cpp

3 years ago<map> ParagraphMetrics.h -> TextMetrics.h
Pavel Sanda [Wed, 14 Oct 2020 11:14:58 +0000 (13:14 +0200)]
<map> ParagraphMetrics.h -> TextMetrics.h

3 years agoMove <algorithm> from DocIterator.h
Pavel Sanda [Wed, 14 Oct 2020 11:01:30 +0000 (13:01 +0200)]
Move <algorithm> from DocIterator.h

3 years agoFix bug #12002.
Richard Kimberly Heck [Tue, 13 Oct 2020 23:51:10 +0000 (19:51 -0400)]
Fix bug #12002.

Patch from Daniel.

3 years agoWhitespace
Richard Kimberly Heck [Tue, 13 Oct 2020 22:26:13 +0000 (18:26 -0400)]
Whitespace

3 years agoFix signed-ness warnings
Richard Kimberly Heck [Tue, 13 Oct 2020 21:24:36 +0000 (17:24 -0400)]
Fix signed-ness warnings

3 years agoRemove obsolete script
Pavel Sanda [Tue, 13 Oct 2020 20:10:04 +0000 (22:10 +0200)]
Remove obsolete script

3 years agoFixed date
Richard Kimberly Heck [Tue, 13 Oct 2020 21:18:00 +0000 (17:18 -0400)]
Fixed date

3 years agoFix counter docs
Richard Kimberly Heck [Mon, 12 Oct 2020 22:14:40 +0000 (18:14 -0400)]
Fix counter docs

3 years agoFix filterXml4Sax.pl to work under Windows
Thibaut Cuvelier [Tue, 13 Oct 2020 01:20:24 +0000 (03:20 +0200)]
Fix filterXml4Sax.pl to work under Windows

3 years agoAdd inset for \nopagebreak.
Pavel Sanda [Tue, 13 Oct 2020 17:13:59 +0000 (19:13 +0200)]
Add inset for \nopagebreak.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg213388.html

3 years agoUse -Wno-deprecated-copy only when supported by compiler
Jean-Marc Lasgouttes [Tue, 13 Oct 2020 16:26:34 +0000 (18:26 +0200)]
Use -Wno-deprecated-copy only when supported by compiler

This is better than depending on compiler version. In particular,
Apple clang versions do not match regular clang versions.

Note that -Wno-deprecated-copy will always be used with g++, since
this compiler allows to suppress warnings it does not know about
(-Wno-zorg is valid, even though -Wzorg triggers an error).

3 years agoMake cursor width depend on current font
Jean-Marc Lasgouttes [Thu, 1 Oct 2020 12:24:21 +0000 (14:24 +0200)]
Make cursor width depend on current font

This makes the cursor more visible wrt current font.

Moreover make the cursor width scalable by default.

3 years agoFix display of caret completion indicator
Jean-Marc Lasgouttes [Tue, 13 Oct 2020 15:09:33 +0000 (17:09 +0200)]
Fix display of caret completion indicator

The zooming algorithm based on caret width was deeply flawed. It is
not replaced with a formula based on caret height.

Fixes bug #12000.

3 years agoCmake tests: Amend 667c0647: Use jing to test only docbook5 exports
Kornel Benko [Tue, 13 Oct 2020 13:42:29 +0000 (15:42 +0200)]
Cmake tests: Amend 667c0647: Use jing to test only docbook5 exports

3 years agoRemove unused forward declarations
Yuriy Skalko [Tue, 13 Oct 2020 06:40:24 +0000 (09:40 +0300)]
Remove unused forward declarations

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