Thibaut Cuvelier
6843bc5a38
DocBook: ensure to have paragraphs in <sidebar>.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
30572880ba
DocBook: fix an issue where parts of list in abstract were duplicated.
...
Excerpt from export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
661c5d256b
DocBook: support for <info> tags in inner sections.
...
Previously, this code only worked correctly for the root tag.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
4405f0164a
DocBook: implement algorithm floats.
...
Now that https://github.com/docbook/docbook/pull/185 has been merged into DocBook 5.2.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
f2b7f8a089
DocBook: generate chapter metadata in <info>, for Springer mono.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
b816cb0f3c
DocBook: don't consider sectioning items that shouldn't be in TOC for anything section-related.
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
Richard Kimberly Heck
cc1d3b78c9
Const
2020-10-29 18:25:33 -04:00
Yuriy Skalko
b8737e898c
Simplify DispatchResult ctors
2020-10-29 15:52:38 +02:00
Yuriy Skalko
d8ead7debf
Use nullptr
2020-10-29 15:52:33 +02:00
Yuriy Skalko
524073d09f
Move HullType functions declared in InsetMath.h into InsetMath.cpp
2020-10-29 15:52:28 +02:00
Yuriy Skalko
f1926251c0
Move Windows-specific stuff into os_win32.h
2020-10-25 19:59:03 +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
4ece87c324
Fix obsoleted Qt values
...
All new values exist in Qt 4.8.7.
2020-10-25 09:28:46 +02:00
Yuriy Skalko
1b508fff03
Small refactorings
2020-10-25 09:28:41 +02:00
Yuriy Skalko
a7018252b7
Constify
2020-10-25 09:28:34 +02:00
Jean-Marc Lasgouttes
21422dd652
Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
...
The method horizontalAdvance() replaces width() starting with Qt 5.11.
To handle this, all direct calls to QFontMetrics::width() are replaced
by calls to GuiFontMetrics::width(), and the code for
GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
versions.
2020-10-24 19:52:18 +02:00
Yuriy Skalko
69f838bbf3
Fix isSpace for docstring
2020-10-24 18:55:05 +03:00
Pavel Sanda
8af747c9d9
Revert da8b5de97
because of MSVC 2017.
...
In GCC `min` is defined via including <vector>.
2020-10-24 12:06:54 +02:00
Enrico Forestieri
d2d33a6a1f
Fix compilation on cygwin
2020-10-23 15:00:23 +02:00
Yuriy Skalko
c928714b0b
Unify naming of menu items
2020-10-23 10:23:01 +03:00
Jean-Marc Lasgouttes
2395522aa7
Revert "Do not set language from keyboard in passthru setting"
...
This reverts commit d94bd07264
.
2020-10-21 18:50:31 +02:00
Jean-Marc Lasgouttes
526b4b0d79
Revert "Fix compilation mess in d94bd0726"
...
This reverts commit abaf2e9bda
.
2020-10-21 18:50:10 +02:00
Jean-Marc Lasgouttes
abaf2e9bda
Fix compilation mess in d94bd0726
2020-10-21 18:37:22 +02:00
Jean-Marc Lasgouttes
d94bd07264
Do not set language from keyboard in passthru setting
2020-10-21 18:09:31 +02:00
Pavel Sanda
5d0b1b640b
Make master compilable again with older gcc.
2020-10-21 00:01:03 +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
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
fa6ac23e1c
Reduce includes in header files
2020-10-19 17:33:51 +03:00
Yuriy Skalko
65c88f0a0a
Remove redundant const &
for primitive types
2020-10-19 12:50:07 +03:00
Thibaut Cuvelier
7be7026386
DocBook: generalise detection of "special cases" to check all insets of a paragraph.
...
This will catch cases where there are multiple listings in a single paragraph, for instance.
The new code is also less brittle (checks on lyxCode instead of generated LaTeX or names).
2020-10-18 08:23:37 +02:00
Thibaut Cuvelier
739735ab73
DocBook: output inline equations in their own paragraph if they are the only inset of the paragraph.
...
It's invalid to have an <inlineequation> outside a paragraph. Another solution would have been to change InsetMathHull::docbook to generate an <informalequation>, but that function would have required more knowledge about its context than now.
Need more tests to determine if <inlineequation> should only be output for hullSimple or in more cases like:
const static std::set<HullType> inlineHulls = {
hullUnknown,
hullNone,
hullSimple,
hullEquation,
hullMultline,
hullGather,
hullRegexp
};
2020-10-18 08:23:36 +02:00
Jean-Marc Lasgouttes
c286cad565
Reset caret size when inserting text over a selection
2020-10-17 20:29:16 +02:00
Scott Kostyshak
1e3ef3c6e2
Update tex2lyx tests after the format change
...
The diff consists of only the format number, which is expected since
there is no instance of "\nopagebreak" in the .tex files.
2020-10-16 23:06:15 -04:00
Yuriy Skalko
b5cb23a92a
Remove unused headers in output_xhtml.h
2020-10-16 23:05:54 +03:00
Yuriy Skalko
a3eeb8a4b5
Clean math headers
2020-10-16 23:05:46 +03:00
Thibaut Cuvelier
0ba9b7c0c8
DocBook: fix an assertion/crash.
2020-10-16 17:02:24 +02:00
Yuriy Skalko
84365fc946
Move Author.h, Format.h from BufferParams.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
4c8d262996
Const refactor
2020-10-16 08:02:51 +03:00
Yuriy Skalko
ce0e192689
Move Cursor.h from TocWidget.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
7f40bb2b2d
Clean output_latex
2020-10-16 08:02:51 +03:00
Yuriy Skalko
65db7b31ad
Clean Cursor and CursorSlice
2020-10-16 08:02:51 +03:00
Yuriy Skalko
61bc850c27
Remove CutAndPaste.h from Trans.cpp
2020-10-16 08:02:51 +03:00
Yuriy Skalko
bea9d2f3f7
Clean includes in TextMetrics.cpp
2020-10-16 08:02:51 +03:00
Yuriy Skalko
da56091c2a
Clean includes in buffer_funcs.cpp
2020-10-16 08:02:51 +03:00
Thibaut Cuvelier
170866986c
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.
2020-10-16 04:30:41 +02:00
Yuriy Skalko
36c8e06cf1
Move Dimension.h from InsetIPA.h
2020-10-15 19:26:16 +03:00