Richard Kimberly Heck
3b4b047576
Fix warning
2020-10-30 13:26:48 -04:00
Thibaut Cuvelier
6843bc5a38
DocBook: ensure to have paragraphs in <sidebar>.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
149e1ccc02
DocBook: add DocBookSection parameter for styles that define new sections and implement argument parameters; improve Springer support.
...
For elements that should behave like sections (for now, mostly prefaces).
A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement).
2020-10-30 01:59:34 +01:00
Yuriy Skalko
d8ead7debf
Use nullptr
2020-10-29 15:52:33 +02:00
Yuriy Skalko
10272e4747
Move include of own header to the top. Fix dependencies
2020-10-25 19:58:57 +02:00
Yuriy Skalko
69f838bbf3
Fix isSpace for docstring
2020-10-24 18:55:05 +03: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
af29f02dd8
Reduce includes in header files (2)
2020-10-19 18:01:17 +03:00
Yuriy Skalko
d25c10ed81
Remove duplicate and unused header includes in .cpp files
2020-10-19 18:01:11 +03:00
Yuriy Skalko
84365fc946
Move Author.h, Format.h from BufferParams.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
fbefdb10a5
Move Cursor.h from Clipboard.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
36c8e06cf1
Move Dimension.h from InsetIPA.h
2020-10-15 19:26:16 +03:00
Pavel Sanda
644c1d3453
Move docstream.h from output_xhtml.h
2020-10-14 15:06:12 +02:00
Richard Kimberly Heck
b7f632ca1c
Fix bug #12002 .
...
Patch from Daniel.
2020-10-13 19:51:27 -04:00
Richard Kimberly Heck
28ae543a2a
Fix signed-ness warnings
2020-10-13 18:24:03 -04:00
Pavel Sanda
0ea9df7467
Add inset for \nopagebreak.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg213388.html
2020-10-13 19:13:59 +02:00
Yuriy Skalko
2a594d3e90
Remove unused forward declarations
2020-10-13 09:57:36 +03:00
Yuriy Skalko
919a06718a
Constify
2020-10-12 15:06:16 +02:00
Yuriy Skalko
7d38a4d126
Loop refactoring
2020-10-09 09:04:20 +03:00
Richard Kimberly Heck
b511d8d93e
Use 'delete' for unimplemented constructors.
...
Thanks Yuriy!
2020-10-07 11:05:54 -04:00
Richard Kimberly Heck
3d46cc302b
Use explicit default syntax (C++11).
...
Thanks to Jos'e for noticing this option.
2020-10-06 20:31:11 -04:00
Richard Kimberly Heck
0f417f2a06
Fix some warnings
2020-10-06 12:27:28 -04:00
Richard Kimberly Heck
bff97ba76d
Explicit InsetTableCell copy constructor
2020-10-06 12:20:31 -04:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
d82adc625b
Amend efc0877f
...
Add more `override` specifiers. Replace `throw()` to `noexcept`.
2020-10-05 09:37:15 +02:00
Yuriy Skalko
14b0da28c2
Amend efc0877f
2020-10-03 21:17:17 +02:00
Yuriy Skalko
efc0877f8f
Add override
specifiers to improve code maintainability
2020-10-03 12:43:48 +02:00
Juergen Spitzmueller
2330b4ce9c
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.
2020-10-03 08:54:06 +02:00
Enrico Forestieri
f0807a604c
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
.
2020-09-25 20:58:40 +02:00
Enrico Forestieri
a8572c1358
Correct comment
2020-09-25 12:11:10 +02:00
Enrico Forestieri
9b1763cd42
Do not correct clipping bounding box for vector formats
...
This amends 380f34a1
that only took into account the postscript format.
2020-09-25 12:01:57 +02:00
Jean-Marc Lasgouttes
967f4d661e
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.
2020-09-23 17:33:17 +02:00
Thibaut Cuvelier
50f011e062
DocBook: implement InsetBox titles.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
1b818c448d
DocBook: work for more subfigure cases.
...
EmbeddedObjects hid quite a few gems :).
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
8758000641
DocBook: ensure xml:id is not output too many times.
...
This is mostly important for subfigures, but debugging this issue showed that InsetCaption could be slightly simplified and InsetLabel should be made a tad more robust.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
d0a5ba4859
DocBook: handle other cases of subfigures.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
2cd7a94f8b
DocBook: introduce Floating::docbookFloatType.
...
This ensures that all comparisons for DocBook are made on the same normalised version of the float type. This cased a strange bug where <table> was output within <informaltable> for Linguistics Tableaux.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
594a4763b7
Fix a few warnings.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
e3da8b65f6
DocBook: several missing features for Additional.lyx.
...
Includes: semantic markup (sorry about noun: Additional.lyx uses it to mark menus; there is something better in DocBook, but it looks like the LaTeX equivalent is really for person names), boxes, info layouts.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
8f3d0fd88f
DocBook: new-line behaviour in bibliographies.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
6d246bba69
DocBook: fix margin notes.
...
They were nested twice in <sidebar>. Also fixes a new line issue.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
654559feb8
DocBook: fix line issues around programlisting.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
c3aa843da8
DocBook: fixes in bibliography (missing new line at the end).
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
a8da31e5e0
DocBook: fix handling of index end-of-range.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
78a361778f
DocBook: fix float tags (was unduly overridden).
...
The output was not valid for floats without title.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
52b2d3f683
DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
...
Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
9393ca74ba
DocBook: new logic to handle the new lines, only used in output_docbook for now.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
87dae26e4a
Simplify code to generate only one paragraph at a time.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
9184ae14f0
A few more constants to avoid copies
2020-09-19 20:43:37 +02:00