lyx_mirror/src
Jean-Marc Lasgouttes 907f020724 Improve handling of top and bottom margin
The 20px space on top and bottom of document have traditionally been
obtained by adding them to the ascent/descent of the first/last row.
This leads to annoyances like selections that are drawn in these
margins and issues with the nesting marker.

The change is to add the value to the ParagraphMetrics ascent/descent
only and to correct one place where the ascent of the first row may be
different from the ascent of the ParagraphMetrcs object. There may be
other places where this should be done.

Fixes bug #9545.
2020-07-13 02:42:39 +02:00
..
client Run codespell on tex2lyx/, client/, convert/ and graphics/ 2020-06-25 23:50:52 +02:00
convert Run codespell on tex2lyx/, client/, convert/ and graphics/ 2020-06-25 23:50:52 +02:00
frontends Revert "Improve handling of top and bottom margin" 2020-07-13 00:00:36 +02:00
graphics Run codespell on tex2lyx/, client/, convert/ and graphics/ 2020-06-25 23:50:52 +02:00
insets Revert "Improve handling of top and bottom margin" 2020-07-13 00:00:36 +02:00
mathed Improve drawing of macro template frame 2020-07-12 15:39:37 +02:00
support Use Common Number separator instead of European to detect numbers 2020-07-10 18:06:41 +02:00
tests Rename XHTMLStream to XMLStream, move it to another file, and prepare for DocBook adoption. 2020-06-15 13:01:56 +02:00
tex2lyx Update tex2lyx test after last file format change 2020-07-11 11:12:00 +02:00
.gitignore Ignore some more files when building in source tree 2020-04-23 19:17:15 +02:00
AppleSpellChecker.cpp
AppleSpellChecker.h
AspellChecker.cpp
AspellChecker.h
Author.cpp Use more ranges 2020-02-28 01:06:22 -05:00
Author.h Use ranges, fix warnings 2020-02-28 01:40:30 -05:00
BiblioInfo.cpp Whitespace 2020-07-08 12:38:05 -04:00
BiblioInfo.h New DocBook support 2020-07-08 08:42:16 +02:00
boost.cpp endl needs ostream header here. 2020-01-14 21:59:05 +01:00
Box.cpp
Box.h
BranchList.cpp Rename some routines 2020-05-05 11:19:21 -04:00
BranchList.h Use range and rename private variable 2020-02-28 01:08:28 -05:00
buffer_funcs.cpp Fix warnings 2020-02-28 01:09:45 -05:00
buffer_funcs.h
Buffer.cpp Whitespace 2020-07-08 12:38:05 -04:00
Buffer.h Whitespace 2020-07-08 12:38:05 -04:00
BufferEncodings.cpp Use range 2020-02-28 01:16:10 -05:00
BufferEncodings.h
BufferList.cpp Fix warnings 2020-02-28 01:16:21 -05:00
BufferList.h Use real path names for buffer lookup by name of temporary external files. 2020-02-22 12:11:42 +01:00
BufferParams.cpp Revert "Simplify code a bit. Should be equivalent, unless backs is empty!" 2020-07-09 22:25:09 -04:00
BufferParams.h Remove DOCBOOK enum values, no more used. 2020-07-08 13:15:05 +02:00
BufferView.cpp Improve handling of top and bottom margin 2020-07-13 02:42:39 +02:00
BufferView.h Improve handling of top and bottom margin 2020-07-13 02:42:39 +02:00
Bullet.cpp
Bullet.h
Changes.cpp return from switch 2020-05-17 13:57:31 +02:00
Changes.h Revert "Automatically show the review toolbar if the document has tracked changes" 2020-01-12 20:26:35 +01:00
Chktex.cpp
Chktex.h
Citation.h Allow for multiple use of same key in qualified citation lists 2019-08-07 13:00:29 +02:00
CiteEnginesList.cpp Use ranges, fix warnings 2020-02-28 01:25:30 -05:00
CiteEnginesList.h More requires --> required, for C++2a. 2020-02-28 00:36:55 -05:00
CMakeLists.txt Amend e501f2c4 2020-06-21 19:50:21 +02:00
CmdDef.cpp
CmdDef.h
Color.cpp Fix copy-paste error. 2020-05-17 20:52:18 -04:00
Color.h
ColorCode.h Color broken citations, xrefs, and includes 2020-03-14 14:17:30 +01:00
ColorSet.h
Compare.cpp Get rid of lyx::next uses for RandomAccessList 2020-05-14 10:35:49 +02:00
Compare.h
CompletionList.h
Converter.cpp New DocBook support 2020-07-08 08:42:16 +02:00
Converter.h New DocBook support 2020-07-08 08:42:16 +02:00
ConverterCache.cpp Fix nullptr warnings 2020-02-28 01:42:32 -05:00
ConverterCache.h
CoordCache.cpp Use range 2020-02-28 01:44:48 -05:00
CoordCache.h
Counters.cpp Initialize properly Counter::saved_value_ member 2020-06-18 11:23:26 +02:00
Counters.h GuiNames for float counters. 2020-05-02 23:17:17 -04:00
Cursor.cpp Use ranges, fix warning 2020-02-28 01:55:05 -05:00
Cursor.h Use ranges, fix warning 2020-02-28 01:55:05 -05:00
CursorSlice.cpp Use ranges, fix warning 2020-02-28 01:55:05 -05:00
CursorSlice.h
CutAndPaste.cpp Implement proper pasting from multiple table cells to non-table (#4447) 2020-06-29 15:13:45 +02:00
CutAndPaste.h
DepTable.cpp
DepTable.h
Dimension.cpp
Dimension.h
DispatchResult.h Revert "Automatically show the review toolbar if the document has tracked changes" 2020-01-12 20:26:35 +01:00
DocIterator.cpp Fix embarassing crash caused by debug message 2020-04-13 12:02:26 +02:00
DocIterator.h
DocumentClassPtr.h
EnchantChecker.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
EnchantChecker.h
Encoding.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
Encoding.h Fix some warnings. 2020-05-03 02:46:11 -04:00
ErrorList.cpp
ErrorList.h
Exporter.cpp
Exporter.h
factory.cpp New counter manipulation inset. 2020-04-30 23:09:36 -04:00
factory.h
Floating.cpp New DocBook support 2020-07-08 08:42:16 +02:00
Floating.h New DocBook support 2020-07-08 08:42:16 +02:00
FloatList.cpp
FloatList.h
Font.cpp Amend 5a80f7bb 2020-06-12 11:50:58 +02:00
Font.h Nullptr warnings 2020-03-16 02:09:39 -04:00
FontEnums.h Add support for the doublestroke package 2020-06-11 16:42:31 +02:00
FontInfo.cpp Amend 5a80f7bb 2020-06-12 11:50:58 +02:00
FontInfo.h Move the stateText code for FontInfo to FontInfo class. 2019-05-10 10:45:40 +02:00
FontList.cpp Remove unused function 2020-03-16 02:18:19 -04:00
FontList.h Remove unused function 2020-03-16 02:18:19 -04:00
Format.cpp Add required elements in the layouts to support DocBook. 2020-07-07 09:49:48 +02:00
Format.h Fix a number of issues that were stopping compilation with MSVC 19. 2020-05-04 19:45:58 -04:00
FuncCode.h Raise the window in single-instance mode 2020-04-21 21:55:20 +02:00
FuncRequest.cpp Fix warnings 2020-02-29 00:21:00 -05:00
FuncRequest.h
FuncStatus.cpp
FuncStatus.h
Graph.cpp
Graph.h
HunspellChecker.cpp Do not for copies in range-based for loops. 2020-04-28 13:27:50 +02:00
HunspellChecker.h
IndicesList.cpp Rename some routines 2020-05-05 11:19:21 -04:00
IndicesList.h
InsetIterator.cpp
InsetIterator.h
InsetList.cpp Fix warnings and use ranges. 2020-02-29 00:21:02 -05:00
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp Fix warnings 2020-02-29 00:21:00 -05:00
KeyMap.h Do not use GUI language for shortcut info inset if no translation is available 2019-03-09 12:00:40 +01:00
KeySequence.cpp Do not use GUI language for shortcut info inset if no translation is available 2019-03-09 12:00:40 +01:00
KeySequence.h Do not use GUI language for shortcut info inset if no translation is available 2019-03-09 12:00:40 +01:00
Language.cpp s/requires_/required_/ for code consistency 2020-05-04 14:05:44 -04:00
Language.h s/requires_/required_/ for code consistency 2020-05-04 14:05:44 -04:00
LaTeX.cpp Add support for the xindex index processor 2020-05-30 12:54:20 +02:00
LaTeX.h Do not break on undefined references that are part of the family. 2020-03-14 09:43:57 +01:00
LaTeXFeatures.cpp Add support for the doublestroke package 2020-06-11 16:42:31 +02:00
LaTeXFeatures.h Fix bug #11780. 2020-03-14 18:31:25 -04:00
LaTeXFonts.cpp LaTeXFonts: Add ScaleCommand 2020-07-09 11:41:21 +02:00
LaTeXFonts.h LaTeXFonts: Add ScaleCommand 2020-07-09 11:41:21 +02:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp Amend 3883b85f: Typo in "New DocBook support" 2020-07-09 00:19:34 +02:00
Layout.h New DocBook support 2020-07-08 08:42:16 +02:00
LayoutEnums.h Remove DOCBOOK enum values, no more used. 2020-07-08 13:15:05 +02:00
LayoutFile.cpp
LayoutFile.h
LayoutModuleList.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
LayoutModuleList.h
Length.cpp constification 2020-07-02 08:22:49 +02:00
Length.h
lengthcommon.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
Lexer.cpp Fix a number of issues that were stopping compilation with MSVC 19. 2020-05-04 19:45:58 -04:00
Lexer.h
lyx_commit_hash.h.in
LyX.cpp Fix some warnings 2020-04-18 14:52:08 -04:00
LyX.h
LyXAction.cpp GUI for new counter inset. 2020-04-30 23:11:59 -04:00
LyXAction.h
lyxfind.cpp FindAdv: Correct next test (keytest/findadv-16) 2020-05-29 20:04:57 +02:00
lyxfind.h Follow some of the performance advice from cppcheck 2019-09-13 16:23:49 +02:00
LyXRC.cpp Const-ness, and a missing Class declaration. I do not understand 2020-05-17 20:52:58 -04:00
LyXRC.h Add pref to keep ct markup on copy/paste 2020-01-13 15:20:48 +01:00
LyXVC.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
LyXVC.h git VCS: add support for short hashes in inset info ("Abbreviated revision"). 2019-07-28 22:01:17 +02:00
lyxwinres.rc Use the same icon as in the cmake build 2020-06-17 19:52:27 +02:00
main.cpp
Makefile.am Use the same icon as in the cmake build 2020-06-17 19:52:27 +02:00
MetricsInfo.cpp Fixup 74540c98: handle selection for label background 2020-06-05 22:32:58 +02:00
MetricsInfo.h Fixup 74540c98: handle selection for label background 2020-06-05 22:32:58 +02:00
ModuleList.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
ModuleList.h Fix remaining (I think) requires keyword issues. 2020-05-04 13:46:01 -04:00
Mover.cpp
Mover.h
output_docbook.cpp Fix Coverity false positive for null-pointer dereference 2020-07-09 09:24:35 +02:00
output_docbook.h New DocBook support 2020-07-08 08:42:16 +02:00
output_latex.cpp Prevent outputting \maketitle within an inset embedded in title. 2020-07-04 10:54:20 +02:00
output_latex.h
output_plaintext.cpp Correctly show merged paragraphs with ct in plain text output 2019-12-27 09:01:06 +01:00
output_plaintext.h
output_xhtml.cpp Add sections to HTML output. 2020-07-12 18:01:33 +02:00
output_xhtml.h Rename-XHTMLStream-to-XMLStream #2. 2020-06-15 23:37:27 +02:00
output.cpp
output.h
OutputEnums.h
OutputParams.cpp Fix compilation on platforms where sizeof(wchar_t) == 2. 2020-07-11 16:19:21 +02:00
OutputParams.h Fix compilation on platforms where sizeof(wchar_t) == 2. 2020-07-11 16:19:21 +02:00
paper.h
Paragraph.cpp Whitespace 2020-07-08 12:38:05 -04:00
Paragraph.h New DocBook support 2020-07-08 08:42:16 +02:00
ParagraphList.h
ParagraphMetrics.cpp Rename XHTMLStream to XMLStream, move it to another file, and prepare for DocBook adoption. 2020-06-15 13:01:56 +02:00
ParagraphMetrics.h
ParagraphParameters.cpp Debug output for paragraph params. 2020-04-08 17:21:43 -04:00
ParagraphParameters.h Remove unnecessary friendship. Thanks Scott! 2020-04-26 03:16:44 -04:00
ParIterator.cpp
ParIterator.h
PDFOptions.cpp Make Japanese documentation more robust. 2019-05-07 16:16:35 +02:00
PDFOptions.h
PersonalWordList.cpp
PersonalWordList.h Forgot to test aspell and hunspell support 2019-09-13 19:01:26 +02:00
Row.cpp Revert "Improve handling of top and bottom margin" 2020-07-13 00:00:36 +02:00
Row.h Revert "Improve handling of top and bottom margin" 2020-07-13 00:00:36 +02:00
RowPainter.cpp Revert last three commits. 2020-04-26 03:09:27 -04:00
RowPainter.h Streamline RowPainter a bit 2020-01-14 11:42:01 +01:00
Server.cpp Raise the window in single-instance mode 2020-04-21 21:55:20 +02:00
Server.h
ServerSocket.cpp
ServerSocket.h
Session.cpp Constify and un-constify 2019-11-06 10:36:21 +01:00
Session.h Keep last file positions in last-use ordering 2019-10-20 12:37:27 +02:00
Spacing.cpp
Spacing.h
SpellChecker.h
TexRow.cpp
TexRow.h Remove support for gcc 4.6 2019-06-12 15:03:18 +02:00
texstream.cpp Use HAVE_LONG_LONG_INT instead of LYX_USE_LONG_LONG 2019-03-21 14:18:17 +01:00
texstream.h
Text2.cpp Get rid of lyx::next uses for RandomAccessList 2020-05-14 10:35:49 +02:00
Text3.cpp Add required elements in the layouts to support DocBook. 2020-07-07 09:49:48 +02:00
Text.cpp Use Common Number separator instead of European to detect numbers 2020-07-10 18:06:41 +02:00
Text.h Follow some of the performance advice from cppcheck 2019-09-13 16:23:49 +02:00
TextClass.cpp Wrong order in constructor 2020-07-08 13:34:45 +02:00
TextClass.h New DocBook support 2020-07-08 08:42:16 +02:00
TextMetrics.cpp Improve handling of top and bottom margin 2020-07-13 02:42:39 +02:00
TextMetrics.h Revert "Improve handling of top and bottom margin" 2020-07-13 00:00:36 +02:00
Thesaurus.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
Thesaurus.h
Toc.h
TocBackend.cpp Add outliner section for broken refs and citations 2020-03-14 15:18:28 +01:00
TocBackend.h Revert unintended change 2020-02-27 14:36:46 -05:00
TocBuilder.cpp
TocBuilder.h
Trans.cpp Fix warning 2020-04-19 11:10:56 -04:00
Trans.h
Undo.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
Undo.h Allow to undo partly math autocorrect 2019-06-02 21:17:26 +02:00
update_flags.h
VCBackend.cpp Fix some warnings. 2020-05-03 02:46:11 -04:00
VCBackend.h git VCS: add support for short hashes in inset info ("Abbreviated revision"). 2019-07-28 22:01:17 +02:00
version.cpp
version.h Add support for the libertinus family of fonts (#11899) 2020-07-09 11:46:07 +02:00
VSpace.cpp use package parskip to separate paragraphs with vertical space (#4796) 2020-06-28 17:20:18 +02:00
VSpace.h use package parskip to separate paragraphs with vertical space (#4796) 2020-06-28 17:20:18 +02:00
WordLangTuple.h
WordList.cpp
WordList.h
xml.cpp New DocBook support 2020-07-08 08:42:16 +02:00
xml.h Whitespace 2020-07-08 12:38:05 -04:00