]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoAdd tableaux to outliner
Juergen Spitzmueller [Tue, 21 Feb 2017 06:11:23 +0000 (07:11 +0100)]
Add tableaux to outliner

7 years agoMove comment
Jean-Marc Lasgouttes [Tue, 21 Feb 2017 05:50:48 +0000 (06:50 +0100)]
Move comment

It is slightly more useful here.

7 years agoFixup to 33b696c8: fix compilation with gcc 4.6
Jean-Marc Lasgouttes [Tue, 21 Feb 2017 05:21:49 +0000 (06:21 +0100)]
Fixup to 33b696c8: fix compilation with gcc 4.6

7 years agoRevert "Linearize macros in box edit mode too."
Jean-Marc Lasgouttes [Tue, 21 Feb 2017 04:42:15 +0000 (05:42 +0100)]
Revert "Linearize macros in box edit mode too."

Guillaume tells me that there are problems. We'll return to it later.

This reverts commit 014034811807b1015748fa8e97137a9c42c5c4aa.

7 years agoIntroduce support/Cache.h
Guillaume Munch [Mon, 20 Feb 2017 22:59:24 +0000 (23:59 +0100)]
Introduce support/Cache.h

Useful to cache copies of objects, including shared_ptrs. No risks of dangling
pointer, and avoid naked pointers in the source.

Fix memory leak when compiling with Qt5.

7 years agoBetter handling for negative position in pos2x
Jean-Marc Lasgouttes [Mon, 20 Feb 2017 14:39:28 +0000 (15:39 +0100)]
Better handling for negative position in pos2x

This code is already in stable actually. The old one does not work
well in RtL text.

7 years agoctests: it_Customization_pdf5_systemF now compiles
Scott Kostyshak [Sun, 19 Feb 2017 21:04:43 +0000 (16:04 -0500)]
ctests: it_Customization_pdf5_systemF now compiles

An update in TeX Live causes the test to pass (also for Kornel), so
now we uninvert the test.

I looked at the output file, and it seems fine to me (although it is
long, and I just checked briefly).

7 years agoAmend 71623b88
Guillaume Munch [Sun, 19 Feb 2017 13:54:44 +0000 (14:54 +0100)]
Amend 71623b88

Fix loop of word-delete-backward at the start of a paragraph.

7 years agoCompatibility fix for acmsiggraph.cls v0.93
Juergen Spitzmueller [Sun, 19 Feb 2017 11:25:23 +0000 (12:25 +0100)]
Compatibility fix for acmsiggraph.cls v0.93

Reported by Jean-Pierre Chrétien, fix suggested by Günter Milde.

Also add a note about obsolescence of the class, by Jean-Pierre.

7 years agoConvert clunky math formulas in ar/Intro.lyx
Kornel Benko [Sun, 19 Feb 2017 09:32:44 +0000 (10:32 +0100)]
Convert clunky math formulas in ar/Intro.lyx

7 years agoFix InsetMathRef mouse behaviour (#10568)
Guillaume Munch [Sat, 18 Feb 2017 21:24:25 +0000 (22:24 +0100)]
Fix InsetMathRef mouse behaviour (#10568)

Fix mouse-selection behaviour.

Don't open dialog when releasing if it was not a real click.

7 years agoWhen pressing math with the mouse, move to the closest edge (#9748)
Guillaume Munch [Sat, 18 Feb 2017 21:23:14 +0000 (22:23 +0100)]
When pressing math with the mouse, move to the closest edge (#9748)

Unless it has some dialog that we want to activate.

7 years agoImprove mouse selection over InsetCollapsable button.
Guillaume Munch [Sat, 18 Feb 2017 21:22:32 +0000 (22:22 +0100)]
Improve mouse selection over InsetCollapsable button.

7 years agoWhen selecting math with the mouse, selection happens in the middle (#9748)
Guillaume Munch [Sat, 18 Feb 2017 19:41:41 +0000 (20:41 +0100)]
When selecting math with the mouse, selection happens in the middle (#9748)

7 years agoWhen selecting text with the mouse, inset selection happens in the middle
Guillaume Munch [Sat, 18 Feb 2017 22:03:53 +0000 (23:03 +0100)]
When selecting text with the mouse, inset selection happens in the middle

7 years agoMove cursor in front of InsetMathSpace before opening the dialog (#7749)
Guillaume Munch [Sat, 18 Feb 2017 22:03:53 +0000 (23:03 +0100)]
Move cursor in front of InsetMathSpace before opening the dialog (#7749)

7 years agoGeneralise the deletion protection mechanism from math to text (#9540)
Guillaume Munch [Sat, 18 Feb 2017 18:12:55 +0000 (19:12 +0100)]
Generalise the deletion protection mechanism from math to text (#9540)

Now backspace and delete in text will select non-empty math and text insets
before deleting them. This is consistent with what happens in math already.

This is implemented for InsetText as well but can be disabled in case of
negative feedback.

This can be set for any sort of inset with the new virtual method
Inset::confirmDeletion.

New option "force" for the LFUN_*_DELETE_* commands, that bypasses the
confirmDeletion check.

7 years agoOutput Preamble code of InPreamble styles before the styles themselves.
Juergen Spitzmueller [Sat, 18 Feb 2017 09:40:42 +0000 (10:40 +0100)]
Output Preamble code of InPreamble styles before the styles themselves.

This assures that macros are defined.

Fixes: #10215
7 years agogmo files that have been forgotten to push.
Juergen Spitzmueller [Sat, 18 Feb 2017 09:38:32 +0000 (10:38 +0100)]
gmo files that have been forgotten to push.

7 years agoUse ASCII number in \char definition
Juergen Spitzmueller [Sat, 18 Feb 2017 09:18:36 +0000 (10:18 +0100)]
Use ASCII number in \char definition

The backtick version breaks in some cases (footnotes in sections)

7 years agoPass thru overlay argument content.
Juergen Spitzmueller [Sat, 18 Feb 2017 07:48:15 +0000 (08:48 +0100)]
Pass thru overlay argument content.

7 years agoWhitespace
Juergen Spitzmueller [Sat, 18 Feb 2017 07:48:00 +0000 (08:48 +0100)]
Whitespace

7 years agoUse \providecommand for logical markup macros
Juergen Spitzmueller [Fri, 17 Feb 2017 07:35:41 +0000 (08:35 +0100)]
Use \providecommand for logical markup macros

\strong is already defined by recent fontspec.

Also use non-long definition (starred version), since the insets
only contain one paragraph.

7 years agoKeep track of signatures stored on ftp server.
Pavel Sanda [Thu, 16 Feb 2017 20:53:07 +0000 (12:53 -0800)]
Keep track of signatures stored on ftp server.

7 years agoAdd depth-increment/decrement shortcuts to emacs bind
Kornel Benko [Thu, 16 Feb 2017 14:29:15 +0000 (15:29 +0100)]
Add depth-increment/decrement shortcuts to emacs bind

7 years agoUpdate sk.po
Kornel Benko [Thu, 16 Feb 2017 10:06:14 +0000 (11:06 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Thu, 16 Feb 2017 09:29:32 +0000 (10:29 +0100)]
de.po

7 years agoFix Fixme module description to make it translatable
Juergen Spitzmueller [Thu, 16 Feb 2017 09:28:42 +0000 (10:28 +0100)]
Fix Fixme module description to make it translatable

See #10058

7 years agoFix the fix of description parsing
Juergen Spitzmueller [Thu, 16 Feb 2017 09:28:11 +0000 (10:28 +0100)]
Fix the fix of description parsing

7 years agoUse typographical quotes in modernCV
Günter Milde [Wed, 15 Feb 2017 13:45:14 +0000 (14:45 +0100)]
Use typographical quotes in modernCV

The modernCV template contained literal straight quotes (probabely from
a copy/paste action).

7 years ago\\textquotedbl and \\textquotesingl are unknown in TU encoding.
Juergen Spitzmueller [Wed, 15 Feb 2017 07:37:02 +0000 (08:37 +0100)]
\\textquotedbl and \\textquotesingl are unknown in TU encoding.

Use \\char` instead.

7 years agoDon't assume T1 font encoding for XeTeX/LuaTeX
Juergen Spitzmueller [Wed, 15 Feb 2017 07:35:46 +0000 (08:35 +0100)]
Don't assume T1 font encoding for XeTeX/LuaTeX

They used OT1 internally, and the new TU encoding, which does not (yet?)
contain all macros of T1, as of the Jan 17 LaTeX release.

7 years agoctests: update inversion patterns.
Günter Milde [Tue, 14 Feb 2017 21:31:12 +0000 (22:31 +0100)]
ctests: update inversion patterns.

The new TeXLive uses font encoding TU for Unicode fonts with Xe- and LuaTeX.
The command \textquotedbl for straight quotes is no longer supported,
\textipa no longer supported with LuaTeX.
Problems with Spanish Babel and Xe/LuaTeX with 8-bit fonts lead to new errors
in some cases.

7 years agoLinearize macros in box edit mode too.
Jean-Marc Lasgouttes [Wed, 8 Feb 2017 15:42:14 +0000 (16:42 +0100)]
Linearize macros in box edit mode too.

The special mode used by macros where the macro name is displayed as
grey text in a box is now one of the possible marker types for any
inset. The new code puts the macro name below the text, which means
that only the text below the current line will be moved. This makes
edition much more comfortable.

The marker_type enum has been moved from Inset to InsetMath.

A new BOX_MARKER enum value has been added and is taken care of in
afterMetricsMarkers (renamed from metricsMarkerVertical) and
drawMarkers.

The InsetMath::marker() macro now takes a BufferView pointer as
argument, so that the marker type can depend on editing state.

MathRow::metrics now makes changes to the MathRow object when needed.

The specific metrics/draw code in MathMacro has been removed and
replaced by assertions. Code in addToMathRow and marker is adapted to
reflect the cases where linearization is possible.

7 years agozh_CN.po: port Zheru's translation updates from branch
Uwe Stöhr [Mon, 13 Feb 2017 23:22:21 +0000 (00:22 +0100)]
zh_CN.po: port Zheru's translation updates from branch

7 years agoMake openbtUnit raunparam mutable instead of using a copy of runparams
Juergen Spitzmueller [Sun, 12 Feb 2017 17:12:38 +0000 (18:12 +0100)]
Make openbtUnit raunparam mutable instead of using a copy of runparams
in latexParagraphs()

The latter results in output stream encoding errors.

7 years agoDisable InsetMathKern with invalid lengths (#10539)
Guillaume Munch [Sun, 5 Feb 2017 10:04:41 +0000 (11:04 +0100)]
Disable InsetMathKern with invalid lengths (#10539)

From now on \kern and \mkern remain as ERT as long as the length is invalid.

Fixes #10539 (regression at 10c8d51b).

The only way to produce an InsetMathKern now is via parsing (i.e. file opening
or copy-paste). This is because there has never been any sensible way to input a
valid InsetMathKern, but this is another issue.

7 years agoInsetHyperlink: Fix replacement of empty name with target
Juergen Spitzmueller [Wed, 8 Feb 2017 08:17:14 +0000 (09:17 +0100)]
InsetHyperlink: Fix replacement of empty name with target

7 years agoCompilation fix: missing header for std::max
Jean-Marc Lasgouttes [Tue, 7 Feb 2017 10:42:36 +0000 (11:42 +0100)]
Compilation fix: missing header for std::max

7 years agoFix configuring for Qt 5.8
Enrico Forestieri [Tue, 7 Feb 2017 10:29:30 +0000 (11:29 +0100)]
Fix configuring for Qt 5.8

They moved the QT_QPA_DEFAULT_PLATFORM_NAME definition to the newly
introduced qtgui-config.h header.
This fix is also necessary for cmake, but I don't know how to do it.
It would be simply a matter of using QtGui/qtgui-config.h instead
of QtCore/qconfig.h, if QtGui/qtgui-config.h exists.

7 years agoEnsure that QT_VERSION is defined
Enrico Forestieri [Tue, 7 Feb 2017 10:16:05 +0000 (11:16 +0100)]
Ensure that QT_VERSION is defined

Otherwise checks such as "#if QT_VERSION >= 0x050600" will fail silently.

7 years agoBetter fix for cursor in "blue box"
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 16:18:18 +0000 (17:18 +0100)]
Better fix for cursor in "blue box"

Since in InsetMathNest::cursorPos we do not know what is the value of
the row element before value of a given BOX, it does not make sense to
set the cursor at a given offset from the start of the MathData
object.

Therefore here we set the cursor in the middle of the MathData object,
which unfortunately may or may not be visually centered wrt the BOX.

The best solution would be to use the MathRow data here, but
unfortunately this is not completely trivial.

This patch replaces 7917ebcc4.

7 years agoSome clean-up to markers handling code.
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 13:11:07 +0000 (14:11 +0100)]
Some clean-up to markers handling code.

Horizontal space is now added for linearized macros too.

Vertical space handling is done in a separate method.

This is in preparation for handling of 'box' macro editing mode in
MathRow.

7 years agode.po: yet another update
Juergen Spitzmueller [Mon, 6 Feb 2017 12:21:07 +0000 (13:21 +0100)]
de.po: yet another update

7 years agoMention style-dependency of of features in the tooltips, part 2
Juergen Spitzmueller [Mon, 6 Feb 2017 12:16:11 +0000 (13:16 +0100)]
Mention style-dependency of of features in the tooltips, part 2

Some amendments to c7126dc4f9770.

7 years agoUpdate sk.po
Kornel Benko [Mon, 6 Feb 2017 12:10:59 +0000 (13:10 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Mon, 6 Feb 2017 11:36:42 +0000 (12:36 +0100)]
de.po

7 years agoMention style-dependency of some features in the tooltips.
Juergen Spitzmueller [Mon, 6 Feb 2017 11:21:53 +0000 (12:21 +0100)]
Mention style-dependency of some features in the tooltips.

7 years agoFix cursor positionning in empty math arrays (blue box)
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 10:59:39 +0000 (11:59 +0100)]
Fix cursor positionning in empty math arrays (blue box)

7 years agoFix monolithic build
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 10:38:13 +0000 (11:38 +0100)]
Fix monolithic build

I gave up understanding why operator==(docstring,char cont *) does not
work in this case.

7 years agoUse localized item when calculating the panel stack's tree widget width.
Juergen Spitzmueller [Sun, 5 Feb 2017 17:02:34 +0000 (18:02 +0100)]
Use localized item when calculating the panel stack's tree widget width.

The current version was wrong for non-English dialogs, and even for
the English one, due to the translator commands that were not removed
for calculation (as in "Formats[[output]]").

Candidate for stable.

7 years agoDisable literal cb if there is nothing to latexify.
Juergen Spitzmueller [Sun, 5 Feb 2017 14:43:01 +0000 (15:43 +0100)]
Disable literal cb if there is nothing to latexify.

7 years agoCorrectly enable/disable citation dialog widgets on initialization.
Juergen Spitzmueller [Sun, 5 Feb 2017 14:42:03 +0000 (15:42 +0100)]
Correctly enable/disable citation dialog widgets on initialization.

Thanks Guillaume for pointing this out.

(candidate for stable)

7 years agoUpdate sk.po
Kornel Benko [Sun, 5 Feb 2017 10:22:06 +0000 (11:22 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Sun, 5 Feb 2017 06:40:46 +0000 (07:40 +0100)]
de.po

7 years agoupdate tex2lyx tests
Juergen Spitzmueller [Sat, 4 Feb 2017 18:28:18 +0000 (19:28 +0100)]
update tex2lyx tests

7 years agoDocument chapterbib additions.
Juergen Spitzmueller [Sat, 4 Feb 2017 18:26:49 +0000 (19:26 +0100)]
Document chapterbib additions.

7 years agoSupport for multiple bibliographies setting "per child"
Juergen Spitzmueller [Sat, 4 Feb 2017 18:23:46 +0000 (19:23 +0100)]
Support for multiple bibliographies setting "per child"

This adds support for the chapterbib package, but also adds ways to
produce this sort of multibib with biblatex and bibtopic (which are
both incompatible with chapterbib).

File format change.

7 years agoOnly close btUnit at the end of the master.
Juergen Spitzmueller [Sat, 4 Feb 2017 15:07:58 +0000 (16:07 +0100)]
Only close btUnit at the end of the master.

7 years agoupdate tex2lyx tests
Juergen Spitzmueller [Sat, 4 Feb 2017 12:44:05 +0000 (13:44 +0100)]
update tex2lyx tests

7 years agoUpdate documentation for multiple bibliographies
Juergen Spitzmueller [Sat, 4 Feb 2017 11:08:20 +0000 (12:08 +0100)]
Update documentation for multiple bibliographies

7 years agoSupport for multiple bibliographies
Juergen Spitzmueller [Sat, 4 Feb 2017 11:02:00 +0000 (12:02 +0100)]
Support for multiple bibliographies

Using refsection=unit in biblatex, or bibtopic's btUnit environments
in BibTeX.

File format change.

7 years agoFixup 89662a68: remove markers that should not be there
Jean-Marc Lasgouttes [Fri, 3 Feb 2017 09:47:33 +0000 (10:47 +0100)]
Fixup 89662a68: remove markers that should not be there

InsetMathDelim does not need markers because the delimiters are
visually enough.

CommandInset (like InsetMathRef) does have cells, but they are hidden
(only for storage). Therefore the default InsetMath::markers() method
mistakenly added markers. In practice, the markers were never active
(since the cursor cannot go into the inset), but some space was
reserved for them.

7 years agode.po
Juergen Spitzmueller [Fri, 3 Feb 2017 09:31:34 +0000 (10:31 +0100)]
de.po

7 years agoUpdate sk.po
Kornel Benko [Thu, 2 Feb 2017 20:33:36 +0000 (21:33 +0100)]
Update sk.po

7 years agoSimplify TextMetrics::checkInsetHit
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 15:14:23 +0000 (16:14 +0100)]
Simplify TextMetrics::checkInsetHit

The main point is to use CoordCacheBase::covers to see whether a point
is inside a given isnet.

7 years agoMove TextMetrics::findRowElement to Row class
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 14:23:20 +0000 (15:23 +0100)]
Move TextMetrics::findRowElement to Row class

7 years agoAdd RtL information to Row
Jean-Marc Lasgouttes [Wed, 7 Dec 2016 11:16:41 +0000 (12:16 +0100)]
Add RtL information to Row

This allows to somewhat simplify the text and avoid some uses of
Paragraph (in the long term, RowPainter should not have to access
these things).

At the same time do a small cleanup to RowPainter: rename
text_metrics_ to tm_, remove pm_ and width_.

7 years agoFix drawing of rectangle in old-style macro editing mode
Jean-Marc Lasgouttes [Thu, 2 Feb 2017 13:33:38 +0000 (14:33 +0100)]
Fix drawing of rectangle in old-style macro editing mode

The width was a bit to short.

7 years agoMake MathRow tokens completely generic
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 16:46:53 +0000 (17:46 +0100)]
Make MathRow tokens completely generic

The enum values BEG_MACRO/END_MACRO and BEG_AR/END_AR are replaced by a
single BEGIN/END pair.

The MathRow code now only knows about insets and math arrays.

7 years agoIntroduce hooks to encapsulate macro code of MathRow
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 14:20:06 +0000 (15:20 +0100)]
Introduce hooks to encapsulate macro code of MathRow

New hooks (before|after)(Metrics|Draw) are run by the MathRow code
as needed. They are actually also used internally by the MathMacro
code.

The gain is that most traces of explicit macro handling (and
the MathRow::Element::macro member) have been removed from MathRw.cpp.

The next step will be to extend the tokenizing process to allow for
linearizing insets other than macros.

7 years agoLinearize macros also when editing them
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 10:53:23 +0000 (11:53 +0100)]
Linearize macros also when editing them

In the case of inline editing, this avoids unpleasant jumping issues.

This may requires to enter monochrome mode before painting the macro
elements.

7 years ago Update fr.po
jpc [Wed, 1 Feb 2017 10:00:16 +0000 (11:00 +0100)]
     Update fr.po

7 years agoMake sanitize more robust to dangling pointers.
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:36:06 +0000 (16:36 +0100)]
Make sanitize more robust to dangling pointers.

It is necessary to sanitize the new_word iterator too.

7 years agoRevert "Fix crash"
Jean-Marc Lasgouttes [Wed, 1 Feb 2017 09:11:20 +0000 (10:11 +0100)]
Revert "Fix crash"

A better fix is forthcoming.

This reverts commit 177ad3d4a4c6d9d96391a471630d6164170aca39.

7 years agoFix crash
Guillaume Munch [Tue, 31 Jan 2017 21:52:12 +0000 (22:52 +0100)]
Fix crash

Thanks Kornel for the report:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg198630.html

Apparently sanitize can crash. Use the safer fixIfBroken even though it
truncates the cursor.

7 years agoImplement rule 17
Guillaume Munch [Sun, 27 Nov 2016 21:45:51 +0000 (22:45 +0100)]
Implement rule 17

* Convert the kerning into a proper right margin for mathnormal, mathscr and
  mathcal (fonts with \fontdimen2 == 0 as per rule 17 from TeXBook).

* Simulate the fact that characters in mathnormal fonts have a 0-width left
  bearing.

* Implement subscript positioning in the case of rule 17 using negative italic
  correction (kerning_).

7 years agoAdd \math{rel,bin,op,ord} to the math toolbar
Guillaume Munch [Sun, 18 Dec 2016 21:53:41 +0000 (22:53 +0100)]
Add \math{rel,bin,op,ord} to the math toolbar

Styles becomes Styles & Classes.

Add 4 nice icons.

7 years agoNomencl.ui: minor layout improvement.
Juergen Spitzmueller [Mon, 30 Jan 2017 08:14:21 +0000 (09:14 +0100)]
Nomencl.ui: minor layout improvement.

7 years agode.po
Juergen Spitzmueller [Mon, 30 Jan 2017 08:02:12 +0000 (09:02 +0100)]
de.po

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Mon, 30 Jan 2017 07:29:16 +0000 (08:29 +0100)]
Update tex2lyx tests

7 years agoCheck if literal param exists before querying value.
Juergen Spitzmueller [Mon, 30 Jan 2017 07:27:53 +0000 (08:27 +0100)]
Check if literal param exists before querying value.

Otherwise LyX asserts.

7 years agoExtend LATEXIFY command param handling and add literal param.
Juergen Spitzmueller [Mon, 30 Jan 2017 06:44:55 +0000 (07:44 +0100)]
Extend LATEXIFY command param handling and add literal param.

File format change.

This allows for the relevant InsetCommand-based dialogs (such as
citation text before/after, Bibitem label, hyperlink name etc.)
to provide both the input of verbatim code or text that is transformed
to proper LaTeX code.

Some dialogs (Nomencl, Href) already had some methods (although they
could not be toggled), which are now centralized and streamlined.

The initial work of this patch has been done by Georg Baum (see
http://www.lyx.org/trac/attachment/ticket/2751/x.diff)

Fixes: #2751, #8227.
7 years agoUpdate Additional.lyx wrt Biblatex
Juergen Spitzmueller [Sun, 29 Jan 2017 14:05:36 +0000 (15:05 +0100)]
Update Additional.lyx wrt Biblatex

7 years agoMove protectArgument function to lstrings
Juergen Spitzmueller [Sun, 29 Jan 2017 11:08:29 +0000 (12:08 +0100)]
Move protectArgument function to lstrings

This will be useful to other insets as well.

7 years agoWhitespace
Juergen Spitzmueller [Sat, 28 Jan 2017 12:00:33 +0000 (13:00 +0100)]
Whitespace

7 years agoFix flushing of row that was cut after an hyphen
Jean-Marc Lasgouttes [Fri, 27 Jan 2017 15:09:03 +0000 (16:09 +0100)]
Fix flushing of row that was cut after an hyphen

When using Qt stuff in breakAt, it may happen that the row is broken
after an hyphen (whereas the old code would only consider spaces).

The fact that we abuse the Row::right_boundary() property to detect when
a row should be flushed broke justification when a row is cut at an
hyphen.

Fix this by introducing a new Row::flushed() property and set it as needed.

7 years agoHandle backslash in escape function.
Juergen Spitzmueller [Fri, 27 Jan 2017 08:15:47 +0000 (09:15 +0100)]
Handle backslash in escape function.

Fixes: #4595.
Candidate for stable

7 years agoFix wrong DocIterator argument
Guillaume Munch [Thu, 26 Jan 2017 23:39:45 +0000 (00:39 +0100)]
Fix wrong DocIterator argument

Regression at 3391fed3.

The child's InsetText is the root, so we start with an empty DocIterator.

Thanks Scott for the report.

7 years agoUpdate child's TocBackend as well
Guillaume Munch [Thu, 26 Jan 2017 23:38:22 +0000 (00:38 +0100)]
Update child's TocBackend as well

Before 3391fed3, this was done in InsetInclude::addToToc

7 years agoFix wrong splitting of text row
Jean-Marc Lasgouttes [Thu, 26 Jan 2017 13:10:23 +0000 (14:10 +0100)]
Fix wrong splitting of text row

The code that tries to decide whether it is worth splitting a given
text row element had a shortcoming: it did not take into account the
left margin of the new row that would be created.

The problem is that this left margin is not the same as the left
margin of the current row, because there can be for example
indentation effects.

To fix this problem, we pass the amount of available space on the
next row as a parameter of Row::shortenIfNeeded.

Note that there is no need to care about RtL row elements at this
point, since the bidi algorithm will be applied to the row
subsequently.

7 years agoWin installer: fix 2 bugs and update libraries
Uwe Stöhr [Thu, 26 Jan 2017 01:19:27 +0000 (02:19 +0100)]
Win installer: fix 2 bugs and update libraries

7 years agoIgnore QT_SCALE_FACTOR for Qt < 5.6
Enrico Forestieri [Wed, 25 Jan 2017 19:00:54 +0000 (20:00 +0100)]
Ignore QT_SCALE_FACTOR for Qt < 5.6

This environment variable was introduced in Qt 5.6.0

7 years agoRevert "Long time no use of the autotests machinery, needs an update."
Tommaso Cucinotta [Wed, 25 Jan 2017 02:13:14 +0000 (03:13 +0100)]
Revert "Long time no use of the autotests machinery, needs an update."
Pushed by mistake ... not finished yet ... apologies.

This reverts commit be79d2cda8a80787e0ac054cd32d672a1c0243b1.

7 years agoLong time no use of the autotests machinery, needs an update.
Tommaso Cucinotta [Wed, 25 Jan 2017 01:08:28 +0000 (02:08 +0100)]
Long time no use of the autotests machinery, needs an update.

7 years agoturned message about disabled converters from prefs from warning to error
Tommaso Cucinotta [Wed, 25 Jan 2017 02:09:41 +0000 (03:09 +0100)]
turned message about disabled converters from prefs from warning to error

7 years agoUse Paragraph::getAlign in TextMetrics
Jean-Marc Lasgouttes [Tue, 24 Jan 2017 18:33:03 +0000 (19:33 +0100)]
Use Paragraph::getAlign in TextMetrics

This avoids some duplicate code. Note that the return value of
Paragraph::getAlign had to be changed. I suspect it was set to char to
avoid reading one header file in Paragraph.h.

7 years agoAvoid markers for macros without arguments
Jean-Marc Lasgouttes [Mon, 23 Jan 2017 09:14:20 +0000 (10:14 +0100)]
Avoid markers for macros without arguments

An example was the \neq macro, which exhibited white markers when selecting.

7 years agoGeneralize the protection of brackets in citation arguments
Juergen Spitzmueller [Sun, 22 Jan 2017 09:27:06 +0000 (10:27 +0100)]
Generalize the protection of brackets in citation arguments

Whenever an argument delimiter is used inside the argument, the argument
needs to be grouped, that is

\cites({text (text) text})

or

\cite[{text [text] text}]

This fixes the original case reported in #2751 which is independent
from the general issue that the pre- and postnote field take literal
code.

7 years agoUpdate sk.po
Kornel Benko [Sun, 22 Jan 2017 08:08:21 +0000 (09:08 +0100)]
Update sk.po