Commit Graph

23189 Commits

Author SHA1 Message Date
Richard Heck
8c6b947eb5 Use scaling factor in XHTML output.
(cherry picked from commit 47c52db13e)
2016-07-30 22:02:48 -04:00
Richard Heck
e1bad06103 If we cannot find the input format for a graphic, we cannot convert it.
Also includes some minor code cleanup.

(cherry picked from commit e1f597e3da)
2016-07-30 21:58:59 -04:00
Richard Heck
0ab8ea6682 Fix bug #10154. 2016-07-30 20:18:03 -04:00
Richard Heck
c760707548 Fix thinko from earlier commit.
We need to output the deferred material AFTER the paragraph is closed.
2016-07-30 01:30:37 -04:00
Richard Heck
909fcb7fcc Fix problem with branch handling. The problem was that we were not
dealing properly with the paragraph separator tag.

We really need to use that tag as a kind of general marker for which
tags we're responsible for in a given paragraph and which tags we are
not. So the changes to InsetText.cpp use the tag as that kind of marker.

Note that, as of this commit, the User Guide again exports without any
kind of error. I haven't yet checked the other manuals.

This fixes bug #8022.

(cherry picked from commit 31e25c8ec6)
2016-07-29 23:50:13 -04:00
Richard Heck
275bdcd845 Fix display of colors in labels of arguments.
We need to handle this specially, just as we do the main font.

(cherry picked from commit 96a8156557)
2016-07-29 23:42:40 -04:00
Richard Heck
0dceac6288 orig_x can and so prsumably should be a double. 2016-07-26 13:33:41 -04:00
Richard Heck
68487d5197 Fix indentation. 2016-07-25 15:07:03 -04:00
Richard Heck
46a16b0ca7 Merge branch '2.2.x' into 2.2.2-staging 2016-07-25 14:55:16 -04:00
Jean-Marc Lasgouttes
cf6b30ae76 Recompute Paragraph::beginOfBody() earlier
In redoParagraph, this should be done before coping with the insets,
other wise some graphic gliches may occur. This is a better fix for

Fixes bug #10163.

(cherry picked from commit 71374b38c2)
2016-07-21 10:37:41 +02:00
Jean-Marc Lasgouttes
5f2023796a When painting only insets, paint also change and language marks
Fixes bug #10265.

(cherry picked from commit c73923c519)
2016-07-21 01:09:32 +02:00
Jean-Marc Lasgouttes
6633e7aa3e Add feedback in status bar when zooming
Moreover enforce better the lower limit of 10 and avoid overflow due
to unsigned int.

Fixes bug #10212.

(cherry picked from commit 8884c4044d)
2016-07-20 00:58:30 +02:00
Jean-Marc Lasgouttes
28e347b0a6 Realize inset argument label font before using it
Also fix a few typos in status.22x.

(cherry picked from commit e35110eab7)
2016-07-19 22:58:36 +02:00
Richard Heck
32b56ee8f7 Do not crash is release mode if we stumble across an unrealized font.
(cherry picked from commit 3203fb1c5f)
2016-07-18 13:03:47 -04:00
Richard Heck
4a75d358a1 The way this was previously, it had to fail if the GUI language
was not English: We return the the abbreviated author "One and Two",
but translated to the GUI language; then we search that for " and "
in order to pull the authors apart again.

I've just replaced the distinct routines with a single one that handles
both cases, depending upon whether a Buffer is provided as one argument.

(cherry picked from commit fb84ccd9fb)
2016-07-17 22:56:14 -04:00
Richard Heck
e98334098b Fix thinko that led 2-authors citations to be displayed with "et al."
(cherry picked from commit d5633f17e5)
2016-07-17 22:56:14 -04:00
Stephan Witt
ab1dd332e1 Remove special code for Qt5 to manage HiDPI. It's not needed anymore and leads to strange icon scaling problems in mixed resolution environment.
For reference see the screen shots in bug tracker ticket #10114.

(cherry picked from commit d5fb80ed87)
2016-07-15 07:20:50 +02:00
Guillaume Munch
030f4c6d1e Revert the change of "Output" into "Format"
(Partial revert of commit 141d9d34dfb5ee5b642438f76945ee51ab931800.)
2016-07-13 17:47:27 +01:00
Guillaume Munch
4089153770 Add line breaks
2.2 still requires those
2016-07-12 14:55:20 +01:00
Guillaume Munch
141d9d34df UI for save_transient_properties
Add a new checkbox "Save transient properties" to the "Output" panel in the
document properties dialog (now renamed as "Format").

This provides the front-end for the change at 5c2d04999.

(cherry picked from commit 5d292fce2d)
2016-07-12 14:50:51 +01:00
Juergen Spitzmueller
343c4c0af8 Polyglossia is no longer restricted to XeTeX.
Thus enable the use of LuaTeX for all polyglossia-supported languages.
2016-07-11 16:16:14 +02:00
Juergen Spitzmueller
cd68c6afdf Clarify some comments wrt XeTeX/LuaTeX (see bug #10013) 2016-07-11 10:16:56 +02:00
Juergen Spitzmueller
90e337c84d Generate a proper error dialog title for XeTeX/LuaTeX
(see bug #10013)

Candidate for stable
2016-07-10 16:04:24 +02:00
Günter Milde
5198fdfc0b fix #10199 Non-encodable characters with XeTeX and utf8-plain
XeTeX with TeX fonts is only safe with ASCII input encoding (see #9740)
and we therefore force "ascii" when exporting with XeTeX and 8-bit TeX-fonts.

However, "utf8-plain" is a "power-user" option, which allows to switch off LyX's
encoding of the LaTeX file:
keep this also for "XeTeX with TeX fonts".

The user is responsible to ensure all characters can be processed and are
correctly shown in the output. The provided test sample shows the problems
with this encoding without special measures (like loading fontspec in the
user-preamble or a document class).

(cherry picked from commit b170b6e40f

I just converted the test to format 508. Thanks Scott for running the
tests. -Guillaume)
2016-07-10 13:42:18 +01:00
Richard Heck
103bf05099 Simplify logic a bit. (This was meant to be part of a previous
commit.)

(cherry picked from commit 2104d41f71)
2016-07-10 01:45:05 -04:00
Richard Heck
b02a93d7e8 Fix thinko in Buffer::preview. It is possible for this routine to
be called when we do not have a cloned Buffer, namely, if we do not
have EXPORT_in_THREAD defined.

(cherry picked from commit d8aab4af9e)
2016-07-10 01:17:54 -04:00
Guillaume Munch
bca4965dd8 Accessibility of document class combo box (#10035)
* Access it with tab

* Access it with the accelerator from the title of the group

(cherry picked from commit 3e6df97963)
2016-07-08 17:36:32 +01:00
Enrico Forestieri
ebb1941143 Bring window to front only for single-instance mode
A window manager could be configured such that to maintain a certain
stack order for the windows. It would be annoying that opening a new
file through menu brings up the window, so do this only if we are
loading a file through the lyx-server.

This commit amends f5f8c6fd, so no status line is needed.
2016-07-05 23:19:59 +02:00
Jean-Marc Lasgouttes
39e8cbf4e5 Record undo when deleting end of paragraph in change tracking mode
Fixes bug #10253.
(cherry picked from commit 86c33c96a0)
2016-07-05 16:47:50 +02:00
Enrico Forestieri
f5f8c6fd38 Bring window to front after loading a document
Fixes #7875.
2016-07-04 20:44:13 +02:00
Georg Baum
3fb8d71869 Fix CAS input on windows (bug 10262)
This is the well known file locking problem: The TempFile class keeps the
created file locked for the own process, and this prevents the CAS to read it.
2016-07-03 19:48:15 +02:00
Uwe Stöhr
534137a517 InsetSeparator.cpp:backport a compiler warning fie
( 45e3a8f8/lyxgit)
2016-07-02 18:16:03 +02:00
Richard Heck
bfeee826b4 ABOVE and CENTERED labels need special treatment.
Fixes bug #8843.

(cherry picked from commit 08bf9781ee)
2016-06-29 23:56:54 -04:00
Richard Heck
c52f30f253 Make sure we center displayed equations.
(cherry picked from commit a8aa7feb89)
2016-06-29 23:20:56 -04:00
Richard Heck
24d8d880c1 Add class attribute for \mathbb in XHTML output. Fixes part of 8251.
Patch from Josh.

(cherry picked from commit e3625b5b80)
2016-06-29 23:02:28 -04:00
Richard Heck
f3fbfcfd05 Use symbols file to lookup entities for delimiters. Fixes bug #8280.
Based upon work by Josh Hieronymus.

(cherry picked from commit 04b8f5cdc4)
2016-06-29 22:42:03 -04:00
Richard Heck
98ba7cf49d Don't be so cute with VSpace: We just output it inline now for
XHTML.

Fixes bug #8154.

(cherry picked from commit 8ea3d1f130)
2016-06-29 21:59:44 -04:00
Richard Heck
63f6ee213c Output column width info for XHTML.
(cherry picked from commit ddc28f0374)
2016-06-29 21:49:28 -04:00
Richard Heck
88f6da78af Fix bug #8782: We need to query the cell, not just the inset.
(cherry picked from commit f49556b3ed)
2016-06-29 21:28:05 -04:00
Richard Heck
2417d9cb5d Add missing buffer update after pasting unformatted text.
Fixes bug #8735.

(cherry picked from commit 6ecb05e6ea)
2016-06-29 13:34:22 -04:00
Jean-Marc Lasgouttes
a097e0cf82 Fix right_boundary properly after a row is shortened
Instead of resetting it to false, do a proper test to see whether
there is a separator at the end of the row.

Fixes bug #10180.
(cherry picked from commit 5e5440f2f3)
2016-06-29 17:55:47 +02:00
Enrico Forestieri
7b423a4eb3 Make command buffer icons same size as QLineEdit height
Part of bug #10125

(cherry picked from commit 458d2015dc)
2016-06-27 18:44:50 -04:00
Enrico Forestieri
7d759dccbb Make oultliner icons same size as the toolbar icons
Part of bug #10125

(cherry picked from commit f56ee1875c)
2016-06-27 18:44:08 -04:00
Richard Heck
46133b26be Let "provides [fontspec|listings|subfig] 1" work.
(cherry picked from commit f46a52d97f)
2016-06-27 17:48:08 -04:00
Richard Heck
180f1d5497 Fix for previous commit: We come right back through here from
exportBufferAs, so we need to make sure we haven't been given
an export location.
2016-06-25 00:41:23 -04:00
Richard Heck
1207d93951 Fix bug #8814: Ask where to export file if it is not
yet saved.
2016-06-25 03:29:30 +01:00
Guillaume Munch
4668e6eceb TocWidget: fix part of #9825
(cherry picked from commit 78a5c87781)
2016-06-23 14:19:14 +01:00
Richard Heck
774c00c457 By default, charstyles should not permit layout changes internally.
Fixes #10237.

(cherry picked from commit 152817576a)
2016-06-21 15:55:12 -04:00
Richard Heck
d1c11283a3 Fix bug #10213 as discussed there: We now display the same button
whether the branch is open or closed.

(cherry picked from commit 3573b7270c)
2016-06-21 15:02:01 -04:00
Guillaume Munch
41f7f1d237 Fix bug #10195
The computation of the index of the main text entry of a row did not take into
account the fact that the entry could be optimised away.

(cherry picked from commit 947c34364c)
2016-06-21 01:51:42 +01:00