]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agodoc files: improve 3 PDFs
Uwe Stöhr [Sun, 16 Apr 2017 21:14:25 +0000 (23:14 +0200)]
doc files: improve 3 PDFs

7 years agoUpdate sk.po
Kornel Benko [Sun, 16 Apr 2017 19:15:35 +0000 (21:15 +0200)]
Update sk.po

7 years agoGerman EmbeddedObjects.lyx: correct an image path
Uwe Stöhr [Sun, 16 Apr 2017 18:06:28 +0000 (20:06 +0200)]
German EmbeddedObjects.lyx: correct an image path

7 years agostatus.22x: the image update deserves an entry
Uwe Stöhr [Sun, 16 Apr 2017 17:57:59 +0000 (19:57 +0200)]
status.22x: the image update deserves an entry

7 years agodoc files: update more images
Uwe Stöhr [Sun, 16 Apr 2017 17:54:51 +0000 (19:54 +0200)]
doc files: update more images

- the ERT example
- the Japanese screenshot images
- adapt the LyX files accordingly

7 years agoFrench Tutorial.lyx: some typographic fixes
Uwe Stöhr [Sun, 16 Apr 2017 17:09:48 +0000 (19:09 +0200)]
French Tutorial.lyx: some typographic fixes

- footnotes should be after the sentence dot

7 years agodoc files: update images
Uwe Stöhr [Sun, 16 Apr 2017 17:08:26 +0000 (19:08 +0200)]
doc files: update images

- as requested by a user we can use PostScript level 3 for EPS and PDF version 1.5
- he also requested to update the screenshot images
- rescale the SVG image to the CSS standard (96 dpi) as recommended by Inkscape
- update the docs files to the new screenshot image size

7 years agolyx2lyx/lyx_2_2.py: fix 2 issues with the reversion of boxes
Uwe Stöhr [Sun, 16 Apr 2017 14:37:05 +0000 (16:37 +0200)]
lyx2lyx/lyx_2_2.py: fix 2 issues with the reversion of boxes

7 years agode.po: use a more suitable translation
Uwe Stöhr [Sun, 16 Apr 2017 14:01:05 +0000 (16:01 +0200)]
de.po: use a more suitable translation

7 years agoFrench Math.lyx: a tiny correction
Uwe Stöhr [Sun, 16 Apr 2017 13:59:11 +0000 (15:59 +0200)]
French Math.lyx: a tiny correction

7 years agoFrench Math.lyx: revert [ade28912/lyxgit]
Uwe Stöhr [Sun, 16 Apr 2017 13:55:46 +0000 (15:55 +0200)]
French Math.lyx: revert [ade28912/lyxgit]

LyX 2.2.x can only handle the fileformat of LyX 2.2
(I kept the new translation)

7 years agoPDF-form.lyx: some corrections and updates
Uwe Stöhr [Sun, 16 Apr 2017 13:46:27 +0000 (15:46 +0200)]
PDF-form.lyx: some corrections and updates

7 years ago Translate a sentence
jpc [Sun, 16 Apr 2017 07:17:42 +0000 (09:17 +0200)]
   Translate a sentence

7 years agoPDF-form.lyx: New German translation
Uwe Stöhr [Sat, 15 Apr 2017 02:59:30 +0000 (04:59 +0200)]
PDF-form.lyx: New German translation

- also many fixes and updates of the English version
- also some according fixes in de.po

7 years agosv.po: updates from Jim
Uwe Stöhr [Fri, 14 Apr 2017 16:02:00 +0000 (18:02 +0200)]
sv.po: updates from Jim

7 years agoWin installer: add package that is nowadays necessary to compile the PDF-form example...
Uwe Stöhr [Thu, 13 Apr 2017 23:41:14 +0000 (01:41 +0200)]
Win installer: add package that is nowadays necessary to compile the PDF-form example file

7 years agopt_BR.po: update from Georger
Uwe Stöhr [Thu, 13 Apr 2017 23:05:35 +0000 (01:05 +0200)]
pt_BR.po: update from Georger

7 years agoMath.lyx: correct wrong info about \mathindent
Uwe Stöhr [Thu, 13 Apr 2017 22:58:54 +0000 (00:58 +0200)]
Math.lyx: correct wrong info about \mathindent

7 years agoGuiDialog.cpp: remove question marks from Windows dialogs
Uwe Stöhr [Tue, 4 Apr 2017 21:54:31 +0000 (23:54 +0200)]
GuiDialog.cpp: remove question marks from Windows dialogs

backported from master, fixes bug #10098, patch from Guillaume

7 years agopt_BR.po: update by Georger
Uwe Stöhr [Tue, 4 Apr 2017 00:46:53 +0000 (02:46 +0200)]
pt_BR.po: update by Georger

7 years agouk.po: update from Yuri
Uwe Stöhr [Mon, 3 Apr 2017 22:22:17 +0000 (00:22 +0200)]
uk.po: update from Yuri

7 years agoUpdate it.po
Enrico Forestieri [Sun, 2 Apr 2017 22:15:47 +0000 (00:15 +0200)]
Update it.po

7 years agoFix bug #10554
Enrico Forestieri [Sun, 2 Apr 2017 22:07:53 +0000 (00:07 +0200)]
Fix bug #10554

The \lyxdeleted macro cannot cope with \newpage & co.

7 years agoRevert " Additions to record needed external applications and LaTeX packages"
jpc [Sat, 1 Apr 2017 09:13:43 +0000 (11:13 +0200)]
Revert "     Additions to record needed external applications and LaTeX packages"

This reverts commit fe17ad57004b3a2e7404e3f7e42941dba77cd5eb.

         Commit not appropriate after discussion on the list

7 years ago Update fr.po
jpc [Sat, 1 Apr 2017 08:47:35 +0000 (10:47 +0200)]
       Update fr.po

7 years ago Additions to record needed external applications and LaTeX packages
jpc [Tue, 14 Feb 2017 15:24:41 +0000 (16:24 +0100)]
 Additions to record needed external applications and LaTeX packages
     needed fot ctest standard exports to run without failures

7 years agode.po
Juergen Spitzmueller [Sat, 1 Apr 2017 06:24:21 +0000 (08:24 +0200)]
de.po

7 years agoUpdate sk.po
Kornel Benko [Fri, 31 Mar 2017 20:33:08 +0000 (22:33 +0200)]
Update sk.po

7 years agoRemerge strings.
Richard Heck [Fri, 31 Mar 2017 19:22:10 +0000 (15:22 -0400)]
Remerge strings.

7 years agoFix #9732: Inconsistent font properties for the preview and superscript insets
Enrico Forestieri [Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)]
Fix #9732: Inconsistent font properties for the preview and superscript insets

(cherry picked from commit b6f8a84a359d717a5d87f58a3403b3c6b64440e3)

7 years agoFix bug #10579
Enrico Forestieri [Fri, 3 Mar 2017 12:00:32 +0000 (13:00 +0100)]
Fix bug #10579

The \lyxdeleted macro cannot cope with empty lines.

(cherry picked from commit 5940dc53aab9fec6cd02f8be337f0e6c9b2e5fb1)

7 years agoConsider text-mode accents of the form {\v a} in BiblioInfo
Juergen Spitzmueller [Sun, 19 Mar 2017 15:15:03 +0000 (16:15 +0100)]
Consider text-mode accents of the form {\v a} in BiblioInfo

Fixes #9340.

7 years agoFix crash when adding newline at the end of a paragraph
Jean-Marc Lasgouttes [Fri, 10 Mar 2017 18:54:15 +0000 (19:54 +0100)]
Fix crash when adding newline at the end of a paragraph

This is a regression at b0673bd1. The code referred to row.pit(),
which was not correctly initialized in this case. The bug does not
exist in master, since the code in redoParagraph has been cleaned-up
and row.pit() is always correct.

Two corrective measures are taken, each of which would fix the bug:
- do not use row.pit() in breakRow, but directly the pit parameter.
- initialize row.pit() correctly in the faulty case.

7 years agoFix configuring for Qt 5.8
Enrico Forestieri [Sat, 4 Mar 2017 23:14:53 +0000 (00:14 +0100)]
Fix configuring for Qt 5.8

They moved the QT_QPA_DEFAULT_PLATFORM_NAME definition to the newly
introduced qtgui-config.h header.

7 years agoAllow Input of local includes from local layout files
Enrico Forestieri [Wed, 1 Mar 2017 08:19:18 +0000 (09:19 +0100)]
Allow Input of local includes from local layout files

When including files, LyX always searches the user and the system
directory, in that order. This means that when using local layout
files broken down into multiple includes, the various includes should
be specified with a path relative to the user layouts directory
(typically ~/.lyx/layouts), making this very impractical.
This commit allows including local files by specifying their path
as explicitly relative to the main layout file position, i.e., by
specifying their path with either "./" or "../". If the main layout
is not loaded from a local file, the usual search order is used,
even if the path are explicitly relative. So, for system layouts,
both "Input ./name.inc" and "Input name.inc" are equivalent.

(cherry picked from commit 17ab47b3e6acafae8f11e6363ee64252b26c81e7)

7 years agoFix compilation with Qt5.8dev
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
Fix compilation with Qt5.8dev

(cherry picked from commit 6d375ddeac49ac8c6340398c9797354edca3f5d1)

7 years agoAllow inserting consecutive dashes
Enrico Forestieri [Sat, 25 Feb 2017 20:00:25 +0000 (21:00 +0100)]
Allow inserting consecutive dashes

Because latex allows to do so, and there is no easy way to achieve this.
This was apparently implemented to allow cycling between the various dash
types, but it was a bad idea bringing no benefit and causing griefs.

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 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 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.

As part as the backport to stable, this code has been change to work
with C++98.

(cherry picked from commit 33b696c8acf2e64b44d449180781de6dbc203709)
(cherry picked from commit e04079aa528ecbf4a8e39ed2b19c3cb50174e151)
(cherry picked from commit 5211ca52cac2ad7a6669d15c39f2cee172d18323)
(cherry picked from commit 8353a53cc38fe364bee516e86a08251e4ae974fc)

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 agoFix crash when selecting muticolumn in math
Jean-Marc Lasgouttes [Wed, 22 Feb 2017 15:13:19 +0000 (16:13 +0100)]
Fix crash when selecting muticolumn in math

The cells that are part of the multicolumn are not in the cache, and
it is OK.

Fixes bug #10486.

7 years agode.po
Juergen Spitzmueller [Thu, 23 Feb 2017 09:44:59 +0000 (10:44 +0100)]
de.po

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

See #10058

7 years agoTheorem style: set NextNoIndent to 0
Scott Kostyshak [Fri, 11 Nov 2016 16:55:31 +0000 (11:55 -0500)]
Theorem style: set NextNoIndent to 0

After a Theorem environment, LaTeX does by default indent the
following paragraph.

I checked various classes and no ModifyStyle was needed. The
hollywood and broadway classes are strange cases where there is an
indent after the Theorem environment, but it is much smaller than
the normal indent. The indent is the same as the opening indent of
normal text, which we currently ignore. Further, I don't expect it
is common to use theorems in these classes.

(cherry picked from commit f9ee47dfa2706bed34431177723dfdc5c2d2a7db)

7 years agoFix ParIndent for various "Standard" styles
Scott Kostyshak [Sun, 19 Feb 2017 23:20:52 +0000 (18:20 -0500)]
Fix ParIndent for various "Standard" styles

(cherry picked from commit 2b1a99e57d7e44fe61ef152a18da0f3e98aefb97)

7 years agoRemove a \textipa that snuck into es/UserGuide.lyx
Scott Kostyshak [Wed, 22 Feb 2017 16:55:12 +0000 (11:55 -0500)]
Remove a \textipa that snuck into es/UserGuide.lyx

This empty inset caused problems with LuaTeX + system fonts (see
b863fb07). Although these problems seem to be resolved, this empty
inset is not supposed to be there.

7 years agozh_CN.po: updates from Zheru
Uwe Stöhr [Mon, 13 Feb 2017 23:17:51 +0000 (00:17 +0100)]
zh_CN.po: updates from Zheru

- also add Zheru to the CREDITS

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]]").

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.

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.
(cherry picked from commit 8e7d0c2002bdc69c95f3a43f7c78d13fe47ce5f3)

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.
(cherry picked from commit 8491962c6bc1c73df076fa4807cc6ee295ccce41)

7 years agoCompilation fix in C++98 mode.
Jean-Marc Lasgouttes [Mon, 6 Feb 2017 09:28:47 +0000 (10:28 +0100)]
Compilation fix in C++98 mode.

7 years agoHandle properly unicode paragraph/line break
Jean-Marc Lasgouttes [Mon, 7 Nov 2016 09:14:39 +0000 (10:14 +0100)]
Handle properly unicode paragraph/line break

They are shown on screen by arrow or pilcrow symbol and cause a line break.

They are still not handled in LaTeX output, though.
(cherry picked from commit 6dfbab31245df074df4d1664321e2ff434f3ca6a)

7 years agoUpdate sk.po
Kornel Benko [Fri, 3 Feb 2017 11:25:32 +0000 (12:25 +0100)]
Update sk.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.
(cherry picked from commit 344f7f2e7dbfda5b24df2fa6b18846c3aa25cb40)

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 agoGeneralize the protection of brackets in citation arguments
Juergen Spitzmueller [Thu, 26 Jan 2017 17:32:26 +0000 (18:32 +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 agoWin installer: fix 2 bugs and update libraries
Uwe Stöhr [Thu, 26 Jan 2017 01:16:53 +0000 (02:16 +0100)]
Win installer: fix 2 bugs and update libraries

7 years agoFix compilation with --disable-cxx11
Guillaume Munch [Sun, 15 Jan 2017 00:40:23 +0000 (01:40 +0100)]
Fix compilation with --disable-cxx11

7 years agopt_BR.po: update from Georger
Uwe Stöhr [Mon, 23 Jan 2017 00:12:09 +0000 (01:12 +0100)]
pt_BR.po: update from Georger

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

7 years agoFix metrics of math characters with 0 width
Jean-Marc Lasgouttes [Fri, 20 Jan 2017 23:30:20 +0000 (00:30 +0100)]
Fix metrics of math characters with 0 width

It seems that QTextLayout does not handle properly a single character
with 0 width. This breaks drawing of things like \not.

No status line needed as this amends 24648404.

7 years agode.po
Juergen Spitzmueller [Fri, 20 Jan 2017 09:23:44 +0000 (10:23 +0100)]
de.po

7 years agoRegeneate CREDITS.
Richard Heck [Thu, 19 Jan 2017 20:41:46 +0000 (15:41 -0500)]
Regeneate CREDITS.

7 years agoAllow LyX to open empty files (created, e.g., via "touch").
Richard Heck [Thu, 19 Jan 2017 20:34:45 +0000 (15:34 -0500)]
Allow LyX to open empty files (created, e.g., via "touch").

Patch from new contributor Jan Niklas Hasse.

(cherry picked from commit 0d77a7e3251aa7a971a365e3fa698ce9f26e2b9d)

7 years agoAdd some remarks about defining formatted references.
Richard Heck [Thu, 19 Jan 2017 20:23:35 +0000 (15:23 -0500)]
Add some remarks about defining formatted references.

7 years agoDo not replace "--" with "\twohyphens" in formula macros.
Richard Heck [Thu, 19 Jan 2017 02:47:40 +0000 (21:47 -0500)]
Do not replace "--" with "\twohyphens" in formula macros.

(cherry picked from commit 5cb5d2cb5a5c369cabcb784899f4a00c7eaf6aa3)

7 years agoUpdate it.po
Enrico Forestieri [Tue, 17 Jan 2017 19:03:37 +0000 (20:03 +0100)]
Update it.po

7 years agoRemerge strings.
Richard Heck [Sun, 15 Jan 2017 16:40:17 +0000 (11:40 -0500)]
Remerge strings.

7 years ago Update fr.po
jpc [Sun, 15 Jan 2017 06:43:54 +0000 (07:43 +0100)]
  Update fr.po

7 years agoSection and Section* should have the same font size.
Richard Heck [Sat, 14 Jan 2017 21:12:58 +0000 (16:12 -0500)]
Section and Section* should have the same font size.

Going with normal corresponds better to how the PDF displays.

(cherry picked from commit cb6ea902566e064185fecf11c870b8df55939c9f)

7 years agoUpdate sk.po
Kornel Benko [Fri, 13 Jan 2017 12:27:42 +0000 (13:27 +0100)]
Update sk.po

7 years agode-po
Juergen Spitzmueller [Fri, 13 Jan 2017 11:48:36 +0000 (12:48 +0100)]
de-po

7 years agoWe don't have formatToolTip in stable. Use wrap instead.
Juergen Spitzmueller [Fri, 13 Jan 2017 10:32:36 +0000 (11:32 +0100)]
We don't have formatToolTip in stable. Use wrap instead.

Sorry for the hassle.

7 years agoAssure long tooltip is correctly formatted.
Juergen Spitzmueller [Fri, 13 Jan 2017 08:07:44 +0000 (09:07 +0100)]
Assure long tooltip is correctly formatted.

Amendment to ffb195b5e9fa

7 years agoClarify layout and add some tooltips
Juergen Spitzmueller [Mon, 9 Jan 2017 17:54:49 +0000 (18:54 +0100)]
Clarify layout and add some tooltips

Addresses: #9795

7 years agostatus.22x
Guillaume Munch [Mon, 9 Jan 2017 22:16:31 +0000 (23:16 +0100)]
status.22x

7 years ago Update status.22x
jpc [Mon, 9 Jan 2017 10:20:06 +0000 (10:20 +0000)]
Update status.22x

7 years ago Update fr.po
jpc [Mon, 9 Jan 2017 10:15:16 +0000 (10:15 +0000)]
  Update fr.po

7 years agofix last traces of bug #10068
Uwe Stöhr [Mon, 9 Jan 2017 00:25:22 +0000 (01:25 +0100)]
fix last traces of bug #10068

7 years agolinguistics.lyx: 2 minor style fixes
Uwe Stöhr [Mon, 9 Jan 2017 00:19:27 +0000 (01:19 +0100)]
linguistics.lyx: 2 minor style fixes

7 years agoAdditional.lyx: backport a change from master
Uwe Stöhr [Mon, 9 Jan 2017 00:18:51 +0000 (01:18 +0100)]
Additional.lyx: backport a change from master

PLEASE work in branch for the doc files. There is no reason not to release improved manuals with the next bugfix release. Only new features of LyX 2.3 are only for master.

7 years agoAvoid useless warning from Qt
Enrico Forestieri [Sun, 8 Jan 2017 22:11:04 +0000 (23:11 +0100)]
Avoid useless warning from Qt

When cloning InsetExternal, the tempname_ member of InsetExternalParams
has yet to be initialized. So, trying to remove it causes the warning
"QFile::remove: Empty or null file name".

(cherry picked from commit 25e6b5da39b2f9d5e1ce7c66baaf0ce968c8dc1a)

7 years agoEscape link name for DocBook.
Richard Heck [Sun, 8 Jan 2017 18:38:48 +0000 (13:38 -0500)]
Escape link name for DocBook.

Thanks to Martin Brown for pointing out the bug, and the obvious
solution.

(cherry picked from commit 06e2669b354561ebafcd69c24d0319d47ba1d279)

7 years agoFix DocBook DTD identifier for XML output.
Richard Heck [Sun, 8 Jan 2017 18:37:00 +0000 (13:37 -0500)]
Fix DocBook DTD identifier for XML output.

Thanks to Martin Brown for the correct one.

(cherry picked from commit b730419470061852e63ec0aaf5f2893605b03dde)

7 years ago Update French EmbeddedObjects manual
jpc [Sun, 8 Jan 2017 10:57:31 +0000 (10:57 +0000)]
  Update French EmbeddedObjects manual

7 years ago Update section 2.5.1
jpc [Sat, 7 Jan 2017 18:06:46 +0000 (18:06 +0000)]
 Update section 2.5.1

7 years agoAdd caching for the QTextLayout objects we use
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)]
Add caching for the QTextLayout objects we use

The QTextLayout handling is terribly slow on Qt 4.8.7, but some
caching has been added in Qt5 that makes it much faster. For some
reason, it is not that slow with Qt 4.8.1.

Caches are introduced for the three following methods

* width(doctring), controlled by CACHE_METRICS_WIDTH. This cache already
  existed, but the code has been cleaned up

* getTextLayout, controlled by CACHE_METRICS_QTEXTLAYOUT (disabled by
  default on Qt5, which does its own caching). This is used for pos2x
  and x2pos and now for drawing of text too. The previous code used a
  trivial caching scheme of the last used QTextLayout, but now they
  are properly kept in a QCache. Moreover, the cacheEnabled() property
  is enabled for these QTextLayout object (not sure what this does).

* breakAt, controlled by CACHE_METRICS_BREAKAT. This is the only user
  of QTextLayout which did not have some kind of caching already.

For some weird reasons related to Argument-dependent look-up, the
qHash(docstring) function has to be defined in std namespace, since
lyx::docstring is actually std::basic_string<wchar_t>.

(cherry picked from c5119c97fcf84e8)

7 years agoFix two hyperlink-insert problems
Juergen Spitzmueller [Thu, 29 Dec 2016 08:17:53 +0000 (09:17 +0100)]
Fix two hyperlink-insert problems

1. Do not prematurely cut selection (#10306); patch proposed by Daniel Ramöller
2. Obey lfun argument, even if there is a selection

7 years agoUpdate sk.po
Kornel Benko [Thu, 29 Dec 2016 08:42:02 +0000 (09:42 +0100)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Thu, 29 Dec 2016 08:01:52 +0000 (09:01 +0100)]
de.po

7 years agoAdd Joel Kulesza to the credits
Juergen Spitzmueller [Wed, 28 Dec 2016 15:50:25 +0000 (16:50 +0100)]
Add Joel Kulesza to the credits

7 years agoFixup c49cd699: QString::toStdString is not always available
Jean-Marc Lasgouttes [Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)]
Fixup c49cd699: QString::toStdString is not always available

This method requires STL support in Qt. Fortunately, it is not needed
here.

7 years agoFrom c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
Juergen Spitzmueller [Wed, 28 Dec 2016 15:34:44 +0000 (16:34 +0100)]
From c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
From: "Joel A. Kulesza" <jkulesza@gmail.com>
Date: Mon, 24 Oct 2016 17:37:58 -0600
Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog

When "Keep matched" is unchecked, a button becomes enabled to "Swap &
Reverse" the left and right delimiters.  This is expected to be of use
with line-wrapped equations featuring one or more set of delimiters that
break across the lines.  When "Keep matched" is checked, the button is
visible but disabled.

The most common use case is expected to be the user entering a pair of
unmatched delimiters on the first line of an equation (e.g., "(" and
"(None)"), entering the inner text, going to the next line, and
inserting the opposite set of delimiters (e.g., "(None)" and ")").
This button will negate the need to find the correct corresponding
combination.  However, it relies on the dialog's memory of the previous
unmatched set.

This change addresses Ticket #10457

-----------

Modifications by spitz to the original patch:

* Only enable the button if an unmatched pair is selected
* Consider l7n when locating the string "(None)"
* Add an accelerator and a tooltip to the dialog
* Simplify the code a bit

7 years agoDo not rely on toolTip() to generate LaTeX code
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Do not rely on toolTip() to generate LaTeX code

7 years agoFix regression of 88603655
Georg Baum [Sun, 21 Aug 2016 18:34:40 +0000 (20:34 +0200)]
Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

(cherry-pick of commit 338cef2a)

7 years agoEmbeddedObjects.lyx: backport recent changes
Uwe Stöhr [Wed, 21 Dec 2016 01:22:53 +0000 (02:22 +0100)]
EmbeddedObjects.lyx: backport recent changes

7 years agoUserGuide.lyx: fix 2 typos spotted by a user
Uwe Stöhr [Mon, 19 Dec 2016 22:50:29 +0000 (23:50 +0100)]
UserGuide.lyx: fix 2 typos spotted by a user

7 years agoLimit ligature protection to quote ligature chars
Juergen Spitzmueller [Wed, 14 Dec 2016 08:07:43 +0000 (09:07 +0100)]
Limit ligature protection to quote ligature chars

No status entry necessary (this is and emendment to an existing fix)