Richard Kimberly Heck
742348262e
Fix bug #12033 .
...
Silly mistake: Only considered the parent, not grandparents, etc.
2020-12-05 20:30:45 -05:00
Jean-Marc Lasgouttes
c30b0aac4b
Disable some Adv F&R widgets for read-only documents
2020-12-03 18:04:23 +01:00
Yuriy Skalko
9cb98136ce
Cleanup headers
2020-12-03 00:38:27 +02:00
Yuriy Skalko
c0a5987181
Better naming for enums
2020-12-01 00:46:21 +02:00
Yuriy Skalko
ecf62a8f21
Refactor OutputParams
...
Now all Inset hierarchy uses OutputParams.h included in Inset.h.
Forward declare some enums to reduce header dependencies.
2020-11-30 13:05:03 +02:00
Yuriy Skalko
ad7c5568cd
Make InsetIterator compatible with range-based loops
2020-11-29 00:25:19 +02:00
Yuriy Skalko
6a21ec854b
Move several common types to support/types.h
2020-11-27 12:16:22 +02:00
Richard Kimberly Heck
fdd0a6f849
Revert "Improve structure of updateMacros"
...
The problem here is that the check against TEXT_CODE only
catches InsetText, and not its subclasses. Same for the check
against MATH_HULL_CODE. So there is reason not to check codes
here.
This reverts commit 5a54ccfa87
.
2020-11-11 11:26:11 -05:00
Yuriy Skalko
01e673635b
MacroData refactoring
2020-11-06 21:33:56 +02:00
Yuriy Skalko
5a54ccfa87
Improve structure of updateMacros
2020-11-06 21:33:41 +02:00
Richard Kimberly Heck
97ecf71016
Remove dead comment
2020-11-06 11:30:07 -05:00
Richard Kimberly Heck
060c3de2f0
StepMasterCounter --> StepParentCounter
2020-11-02 17:36:58 -05:00
Richard Kimberly Heck
39f997048e
Remove 'slave' terminology from Counters.cpp.
...
And with it, 'master'. That is less problematic by itself (so I'm not
worried about 'master document'), but here it doesn't make a lot of
sense without 'slave'.
2020-11-02 17:09:59 -05:00
Yuriy Skalko
d38eddb397
Match header/source function argument naming
2020-11-01 22:23:44 +02:00
Yuriy Skalko
5061db891c
Use const references
2020-11-01 22:23:26 +02:00
Yuriy Skalko
dbe35af542
Simplify with std::map::insert
2020-11-01 22:22:27 +02:00
Yuriy Skalko
a7018252b7
Constify
2020-10-25 09:28:34 +02:00
Yuriy Skalko
196d9caeb0
Clean includes using the output of iwyu tool
2020-10-20 11:38:55 +03:00
Thibaut Cuvelier
d1b9af3b1d
DocBook: fix file inclusion.
...
Previously, nothing was output. Special care was needed for when new paragraphs should be open (this work is probably not finished yet).
2020-10-20 02:34:02 +02:00
Yuriy Skalko
7d38a4d126
Loop refactoring
2020-10-09 09:04:20 +03:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
715b8cda54
Refactoring based on cppcheck suggestions
2020-10-03 13:39:51 +02:00
Kornel Benko
a43d8501a2
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.
2020-10-03 13:28:26 +02:00
Thibaut Cuvelier
da67bde61a
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.
2020-09-20 01:35:14 +02:00
Thibaut Cuvelier
c8e2c17a58
XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
25f72d392c
DocBook: fine tuning of new lines.
2020-09-19 20:43:37 +02:00
Yuriy Skalko
fb7b7e5223
Refactor runCommand
2020-09-11 16:13:23 +02:00
Juergen Spitzmueller
6f476b960e
Localize format prettyName in some more places ( #11954 )
2020-08-29 11:50:43 +02:00
Stephan Witt
2dae4ab4f3
Improved character count statistics for letter based insets (e.g. the LyX logo).
2020-08-16 17:07:04 +02:00
Juergen Spitzmueller
7250aad280
Revert [9370135c3e/lyxgit] and fix #8499 properly
...
Fixes #11920
2020-08-04 16:52:58 +02:00
Thibaut Cuvelier
0c0613327c
Get rid of xmlize, bringing no advantage over escapeString.
2020-08-01 03:20:28 +02:00
Richard Kimberly Heck
8ae0841826
Whitespace
2020-07-08 12:38:05 -04:00
Thibaut Cuvelier
3883b85f49
New DocBook support
2020-07-08 08:42:16 +02:00
Pavel Sanda
28968b1f0d
Add required elements in the layouts to support DocBook.
...
Slightly modified patch from Thibaut Cuvelier.
2020-07-07 09:49:48 +02:00
Thibaut Cuvelier
a6b07608d8
Rename XHTMLStream to XMLStream, move it to another file, and prepare for DocBook adoption.
...
xml.cpp/h also merges functionalities from sgml.cpp/h.
2020-06-15 13:01:56 +02:00
Richard Kimberly Heck
97bbcf2b9b
Remove include no longer needed
2020-05-13 14:54:16 -04:00
Richard Kimberly Heck
1e904625b2
Remove functors in PreviewLoader.cpp.
...
Also fix some warnings.
2020-05-13 13:33:27 -04:00
Richard Kimberly Heck
7d36b9e4fa
Remove method that is now unneeded.
2020-04-25 22:27:09 -04:00
Richard Kimberly Heck
e4da314522
Try to fix bug #6505 .
...
Keep track of nested includes and just refuse to re-enter a file
we're already in the process of handling.
There's a question whether we should do this in updateBuffer and
validate, or whether we should do it separately. For now, this seems
to work.
2020-04-25 22:22:58 -04:00
Richard Kimberly Heck
9319144703
Buffer methods for dealing with recursive includes.
2020-04-25 22:17:46 -04:00
Juergen Spitzmueller
f9999039ac
Strip polyglossia options from pdf string
...
Fixes #11813
2020-04-05 15:23:22 +02:00
Richard Kimberly Heck
f044d3a359
Fix bug #11780 .
...
The preamble snippets are for LaTeX and do not need to be output
with HTML.
2020-03-14 18:31:25 -04:00
Juergen Spitzmueller
f4af191403
Introduce maintain unincluded children "mostly"
...
This is a mode for includeonly handling that is effective and still outputs
at least mostly correct counters and references. This is intended for non-
final editing work.
File format change.
2020-03-13 15:46:35 +01:00
Juergen Spitzmueller
6c889209a7
Improve performance of includeonly with "maintain counters and references"
...
First, we do not need to run bibtex/biber on the maintenance run, as
the necessary references will be generated on the includeonly run.
Second, exclude the master from DepTable in maintenance run, as the
master is re-checked in any case in the includeonly run, and as it will
always be detected as changed due to the \includeonly statement, which
will trigger a complete build.
More improvements to follow.
2020-03-13 11:49:07 +01:00
Juergen Spitzmueller
d94b708a0f
Tell updateBuffer whether an inset is deleted.
...
Fixes #11747
2020-03-06 13:23:01 +01:00
Richard Kimberly Heck
cf37ad8c80
Use ranges, fix warnings
2020-02-28 01:40:30 -05:00
Richard Kimberly Heck
81597aabdb
Polish
2020-02-28 00:39:50 -05:00
Richard Kimberly Heck
0dc9fca86e
Remove code that has not been used since 2010.
...
See 208acbc72
.
2020-02-28 00:21:48 -05:00
Richard Kimberly Heck
a9d9fdc9bf
Fix alignment warnings from clang.
2020-02-23 17:15:01 -05:00
Richard Kimberly Heck
34f9ea8275
Use C++11 construct.
2020-02-23 16:59:59 -05:00