]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoLFUN to toggle branch inversion status, now available from the
Richard Heck [Tue, 12 Jul 2016 04:16:05 +0000 (00:16 -0400)]
LFUN to toggle branch inversion status, now available from the
context menu.

7 years agoIntroduce "inverted" branch insets: These are branches whose content
Richard Heck [Tue, 12 Jul 2016 03:56:32 +0000 (23:56 -0400)]
Introduce "inverted" branch insets: These are branches whose content
is output when a branch is NOT activated. Fixes bug #7698.

At the moment, inversion is controlled through the branch settings
dialog. There is no provision for inserting inverted insets directly,
or for changing them from the context menu. Both of these could be
done, of course. The latter would need LFUN_BRANCH_TOGGLE_INVERTED.

7 years agoWe do not need to enter the format numbers for 2.3 at this time.
Richard Heck [Tue, 12 Jul 2016 02:48:04 +0000 (22:48 -0400)]
We do not need to enter the format numbers for 2.3 at this time.
The code just below fills thiss automatically.

(cherry picked from commit 3d8082346e16770f3af4ee6d617c8fe91e9292e1)

7 years agoCmake build: Add needed libraries if using QT5_Extras
Kornel Benko [Mon, 11 Jul 2016 17:08:11 +0000 (19:08 +0200)]
Cmake build: Add needed libraries if using QT5_Extras

Commit cb0c881 does this already for automake.

7 years agoSimplify BufferParams::bufferFormat()
Juergen Spitzmueller [Mon, 11 Jul 2016 09:18:55 +0000 (11:18 +0200)]
Simplify BufferParams::bufferFormat()

The differentiation of "xetex" and "platex" is not needed here,
is ambiguous and confusing (see #10013). The code that relies on
it can/should get its information otherwise.

Furthermore, polyglossia-exclusive languages now also work with
LuaTeX, since we support LuaTeX + polyglossia.

7 years agobuild4-2010.bat: remove outdated script
Uwe Stöhr [Mon, 11 Jul 2016 00:12:36 +0000 (02:12 +0200)]
build4-2010.bat: remove outdated script

building with MSVC 2010 won't be possible with LyX 2.3

7 years agoUpdate sk.po
Kornel Benko [Sun, 10 Jul 2016 20:16:49 +0000 (22:16 +0200)]
Update sk.po

7 years agoAmend cb0c881
Kornel Benko [Sun, 10 Jul 2016 20:14:08 +0000 (22:14 +0200)]
Amend cb0c881

7 years agoMore fixes to MSVC compilation instructions
Georg Baum [Sun, 10 Jul 2016 18:31:18 +0000 (20:31 +0200)]
More fixes to MSVC compilation instructions

Many thanks to racoon for all the patience and feedback!

7 years agoFix paste of selection to (unfocused) external applications
Enrico Forestieri [Sun, 10 Jul 2016 17:31:32 +0000 (19:31 +0200)]
Fix paste of selection to (unfocused) external applications

With both Qt4 and Qt5, when using a click-to-focus policy, the first
attempt to paste a selection by middle mouse in an external application
which has no focus may fail. It is not clear why this succeeds for some
applications and fails for others, but refreshing the timestamp of the
selection request cures the issue. The cmake part is by Kornel.

See also this thread:
http://thread.gmane.org/gmane.editors.lyx.devel/162491

7 years agoGenerate a proper error dialog title for XeTeX/LuaTeX
Juergen Spitzmueller [Sun, 10 Jul 2016 09:14:03 +0000 (11:14 +0200)]
Generate a proper error dialog title for XeTeX/LuaTeX

(see bug #10013)

Candidate for stable

7 years agoClarify some comments wrt XeTeX/LuaTeX (see bug #10013)
Juergen Spitzmueller [Sun, 10 Jul 2016 09:13:13 +0000 (11:13 +0200)]
Clarify some comments wrt XeTeX/LuaTeX (see bug #10013)

7 years agoTestcase now OK after fixing #8022
Kornel Benko [Sun, 10 Jul 2016 09:06:01 +0000 (11:06 +0200)]
Testcase now OK after fixing #8022

7 years agoDelete obsolete comment: We no longer support Qt < 4.4.
Richard Heck [Sun, 10 Jul 2016 05:43:56 +0000 (01:43 -0400)]
Delete obsolete comment: We no longer support Qt < 4.4.

7 years agoSimplify logic a bit. (This was meant to be part of a previous
Richard Heck [Sun, 10 Jul 2016 05:43:19 +0000 (01:43 -0400)]
Simplify logic a bit. (This was meant to be part of a previous
commit.)

7 years agoFix thinko in Buffer::preview. It is possible for this routine to
Richard Heck [Sun, 10 Jul 2016 05:12:42 +0000 (01:12 -0400)]
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.

7 years agoOnly trim right end of lines in header. This allows us to preserve
Richard Heck [Fri, 24 Jun 2016 18:57:28 +0000 (14:57 -0400)]
Only trim right end of lines in header. This allows us to preserve
whitespace in local layout.

7 years agoRename some variables and routines.
Richard Heck [Sun, 10 Jul 2016 03:53:18 +0000 (23:53 -0400)]
Rename some variables and routines.

7 years agoFix problem with branch handling. The problem was that we were not
Richard Heck [Sun, 10 Jul 2016 03:12:32 +0000 (23:12 -0400)]
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.

7 years agoUpdate XHTML debugging code a bit.
Richard Heck [Sat, 9 Jul 2016 18:28:27 +0000 (14:28 -0400)]
Update XHTML debugging code a bit.

7 years agoWrite magic paragraph label to main paragraph tag.
Richard Heck [Fri, 8 Jul 2016 20:38:37 +0000 (16:38 -0400)]
Write magic paragraph label to main paragraph tag.

7 years agoFix for recent luatex versions.
Juergen Spitzmueller [Sat, 9 Jul 2016 14:45:27 +0000 (16:45 +0200)]
Fix for recent luatex versions.

7 years agoCorrect format
Juergen Spitzmueller [Sat, 9 Jul 2016 11:57:49 +0000 (13:57 +0200)]
Correct format

7 years agoFix bug #10273
José Matos [Fri, 8 Jul 2016 15:06:03 +0000 (16:06 +0100)]
Fix bug #10273

Although this a problem that only manifests itself on windows the change is general
and it works anywhere.

The major change is to change the file redirection > to -o the specifies the output file.

At the same time it makes the call to lyx2lyx less cryptic, e.g. to revert to the 1.3
format we have:

\converter lyx lyx13x "python -tt $$s/lyx2lyx/lyx2lyx -t 221 $$i > $$o"     ""

now instead of
python -tt $$s/lyx2lyx/lyx2lyx -t 221 $$i > $$o

we use a call where the version to revert is explicit
python -tt $$s/lyx2lyx/lyx2lyx -V 1.3 -o $$o $$i

or we could write a longer, but more understandable form:
python -tt $$s/lyx2lyx/lyx2lyx --final_version 1.3 --output $$o $$i

FWIW I shuffled the order of the arguments just for the sake of readability,
to let $$i be the last argument.

7 years agoAdd comment
Juergen Spitzmueller [Fri, 8 Jul 2016 14:48:56 +0000 (16:48 +0200)]
Add comment

7 years agolinguistics: minor doc tweaks
Juergen Spitzmueller [Fri, 8 Jul 2016 11:58:32 +0000 (13:58 +0200)]
linguistics: minor doc tweaks

7 years agoAccessibility of document class combo box (#10035)
Guillaume Munch [Fri, 8 Jul 2016 10:29:26 +0000 (12:29 +0200)]
Accessibility of document class combo box (#10035)

* Access it with tab

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

7 years agoCmake build: Mimic changes done in autoconf at f70dd65
Kornel Benko [Fri, 8 Jul 2016 08:58:32 +0000 (10:58 +0200)]
Cmake build: Mimic changes done in autoconf at f70dd65

7 years agoFix incompatibility of covington and beamer.
Juergen Spitzmueller [Fri, 8 Jul 2016 08:04:24 +0000 (10:04 +0200)]
Fix incompatibility of covington and beamer.

Candidate for stable.

7 years agoFix building on cygwin after 23dbcb59
Enrico Forestieri [Thu, 7 Jul 2016 21:37:14 +0000 (23:37 +0200)]
Fix building on cygwin after 23dbcb59

7 years agoAccount for the case in which Qt tools are not in PATH
Enrico Forestieri [Thu, 7 Jul 2016 21:12:07 +0000 (23:12 +0200)]
Account for the case in which Qt tools are not in PATH

If the Qt directory is specified by --with-qt-dir, the full path
of the tools is retained. Otherwise, if qtchooser is detected,
the generic names are attempted with proper arguments to select
the desired Qt version. Otherwise, the generic names with and without
proper suffixes (either -qt5 or -qt4) are checked in the PATH.

This means that --with-qt-dir=qtdir should be used only if the tools
are not in the PATH, or qtdir/bin/{moc,rcc,uic} are the right versions
for the desired Qt. In any case, it is later checked that the selected
tools are the right ones and a warning is issued if there is a mismatch.

7 years agoRevert "Skip all drawing with NoScreenUpdate strategy"
Jean-Marc Lasgouttes [Thu, 7 Jul 2016 12:21:55 +0000 (14:21 +0200)]
Revert "Skip all drawing with NoScreenUpdate strategy"

This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a.

It was commited by mistake and actually does not seem to improve
performance.

7 years agoAdd qt-dir bin directory value to PATH - matching Qt tools may not found at build...
Stephan Witt [Wed, 6 Jul 2016 23:04:09 +0000 (01:04 +0200)]
Add qt-dir bin directory value to PATH - matching Qt tools may not found at build time anymore if not in front of PATH

7 years agoUse a proper test for detecting usable std::regex
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 12:49:18 +0000 (14:49 +0200)]
Use a proper test for detecting usable std::regex

The test is stolen from cmake code.

Tested on:

* ubuntu 12.04 with g++ 4.6, clang 3.3 (with libstdc++)

* ubuntu 16.04 with g++ 5.3, clang 3.7 (with libstdc++) and clang 3.7
  (with libc++)

The last combination fails, but it seems to be related to real bugs
(reported for debian), so this is OK.

7 years agoNew test to determine correct -std option for CXX compiler
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 12:03:22 +0000 (14:03 +0200)]
New test to determine correct -std option for CXX compiler

The test file is stolen from cmake. The options tested are, from the
most desirable to the least desirable:
  -std=c++14 -std=c++11 "" -std=c++0x -std=gnu++14 -std=gnu++11 -std=gnu++0x

It is expected that the result will not be correct for cygwin, but
this is fixable.

7 years agoSkip all drawing with NoScreenUpdate strategy
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 09:32:54 +0000 (11:32 +0200)]
Skip all drawing with NoScreenUpdate strategy

It seems that it was needed in 0b0c27ef, but nowadays the metrics are
not touched when we set this strategy.

8 years agoRecord undo when deleting end of paragraph in change tracking mode
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 14:22:49 +0000 (16:22 +0200)]
Record undo when deleting end of paragraph in change tracking mode

Fixes bug #10253.

8 years agoCmake build: Split use of 3RDPARTY_BUILD to build individual libs
Kornel Benko [Tue, 5 Jul 2016 13:57:04 +0000 (15:57 +0200)]
Cmake build: Split use of 3RDPARTY_BUILD to build individual libs

The split is now analogous to automake. The individual libs are handled
analogously to already handled boost.
automake config setting cmake config settings
--with-included-iconv -DLYX_EXTERNAL_ICONV=OFF
--with-included-zlib -DLYX_EXTERNAL_Z=OFF
--with--included-hunspell -DLYX_EXTERNAL_HUNSPELL=OFF

8 years agoPoor man's profiler: add support for cache hit/miss
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 13:29:28 +0000 (15:29 +0200)]
Poor man's profiler: add support for cache hit/miss

This is still very basic profiling, but it seems to get the work done.

8 years agoRevert c6ce76c2 and fix 670efa8f
Guillaume Munch [Mon, 4 Jul 2016 22:18:21 +0000 (00:18 +0200)]
Revert c6ce76c2 and fix 670efa8f

Thanks Stephan

8 years agoAutoconf : Try to select the correct Qt tools by using the -qt option
Jean-Marc Lasgouttes [Mon, 4 Jul 2016 14:22:57 +0000 (16:22 +0200)]
Autoconf : Try to select the correct Qt tools by using the -qt option

With this change, it is now possible to configure with --enable-qt5
and have make use "moc -qt=qt5" automatically.

This is done when the command qtchooser is available nd the desired Qt
version (qt4/qt5) is available.

This means that it is now possible to have qt4 and qt5 builds easily
on a same linux system.

8 years agoGerman UserGuide.lyx: backport recent changes from branch
Uwe Stöhr [Tue, 5 Jul 2016 01:02:11 +0000 (03:02 +0200)]
German UserGuide.lyx: backport recent changes from branch

8 years agodoc files: backport recent changes
Uwe Stöhr [Tue, 5 Jul 2016 00:27:36 +0000 (02:27 +0200)]
doc files: backport recent changes

8 years agoBring window to front only for single-instance mode
Enrico Forestieri [Mon, 4 Jul 2016 23:01:02 +0000 (01:01 +0200)]
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.

8 years agofix make check.
Pavel Sanda [Mon, 4 Jul 2016 21:10:30 +0000 (14:10 -0700)]
fix make check.

8 years agoRessurect make distcheck.
Pavel Sanda [Mon, 4 Jul 2016 20:17:07 +0000 (13:17 -0700)]
Ressurect make distcheck.

8 years agoFix display of \leq, \geq, and \lnot in mathed
Enrico Forestieri [Mon, 4 Jul 2016 19:49:55 +0000 (21:49 +0200)]
Fix display of \leq, \geq, and \lnot in mathed

Commit 343a379b used a wrong syntax that was causing the display
of the above symbols as blanks.

8 years agoFix missing TexRow.h include after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a
Stephan Witt [Mon, 4 Jul 2016 18:37:06 +0000 (20:37 +0200)]
Fix missing TexRow.h include after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

8 years agoAdd missing include for abs(int)
Stephan Witt [Mon, 4 Jul 2016 18:36:16 +0000 (20:36 +0200)]
Add missing include for abs(int)

8 years agoGcc 6+ use C++14 as default, so there is no need to enforce C++11
Jean-Marc Lasgouttes [Thu, 30 Jun 2016 09:15:14 +0000 (11:15 +0200)]
Gcc 6+ use C++14 as default, so there is no need to enforce C++11

Also, use gnu++11 unconditionnally with gcc as we used to do before 67385e69.

8 years agoFix missing includes after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a
Stephan Witt [Mon, 4 Jul 2016 10:11:24 +0000 (12:11 +0200)]
Fix missing includes after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

8 years agoFix missing include for endl after header cleanup in change 670efa8f646218f2a378f0cc6...
Stephan Witt [Mon, 4 Jul 2016 09:04:53 +0000 (11:04 +0200)]
Fix missing include for endl after header cleanup in change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

8 years agoFix missing include for file i/o prototypes after header cleanup in change 489dca71cd...
Stephan Witt [Mon, 4 Jul 2016 08:30:19 +0000 (10:30 +0200)]
Fix missing include for file i/o prototypes after header cleanup in change 489dca71cd99bbc78780fa40311a2eb042c0320e

8 years agoFix missing include for malloc prototype after header cleanup in change 489dca71cd99b...
Stephan Witt [Mon, 4 Jul 2016 06:33:03 +0000 (08:33 +0200)]
Fix missing include for malloc prototype after header cleanup in change 489dca71cd99bbc78780fa40311a2eb042c0320e

8 years agoAmend 670efa8f
Guillaume Munch [Mon, 4 Jul 2016 02:43:22 +0000 (04:43 +0200)]
Amend 670efa8f

Lost in rebasing.

8 years agoRationalise includes
Guillaume Munch [Sun, 19 Jun 2016 02:39:38 +0000 (03:39 +0100)]
Rationalise includes

Modifying TexRow.h or texstream.h no longer triggers the recompilation of the
complete source tree.

8 years agoNot in tree anymore.
Pavel Sanda [Sun, 3 Jul 2016 23:39:57 +0000 (16:39 -0700)]
Not in tree anymore.

Uwe, watch your step.

8 years agoMatch code with comment
Guillaume Munch [Sun, 3 Jul 2016 23:03:36 +0000 (01:03 +0200)]
Match code with comment

The line felt too thin.

Note: I am still sceptical with the principle of an increase at the rate of
1/200% instead of 1/100%.

Also, I am sceptical with changing painting dimensions to int when Qt supports
doubles for everything (see e.g. 463bd17d). If the goal is to force
integer-width solid lines then one could try to disable antialiasing on Qt's
side.

I think the painter should move in the other direction, towards more doubles and
fewer ints. For instance, for Hi-DPI, Qt could probably take advantage of the
increased precision even without AA. (Then one would have to fix the problem
regarding uneven lines, mentioned in the above commit, in another fashion.)

8 years agoChange tracking cue: InsetText and InsetCollapsible
Guillaume Munch [Mon, 23 May 2016 09:01:29 +0000 (10:01 +0100)]
Change tracking cue: InsetText and InsetCollapsible

* Underline or strike through the label as if it was text (it is).

* Strike through deleted InsetText, but let RowPainter handle the case of
  non-MultiPar text insets.

* Change the colour of the frame as a cue, unless its colour is customised (not
  Color_foreground). (Essentially do the border of CharStyles like Tabular does
  it already.)

* The change info needs to be reset when entering InsetText. Otherwise labels
  are painted with the change of their n+1-th parent.

8 years agoBring window to front after loading a document
Enrico Forestieri [Sun, 3 Jul 2016 20:58:25 +0000 (22:58 +0200)]
Bring window to front after loading a document

Fixes #7875.

8 years agoFix regression of 6dfc25508
Georg Baum [Sun, 3 Jul 2016 17:41:04 +0000 (19:41 +0200)]
Fix regression of 6dfc25508

We need to remove the temp file now manually.

8 years agoFix linking with cmake and included iconv
Georg Baum [Sun, 3 Jul 2016 16:51:22 +0000 (18:51 +0200)]
Fix linking with cmake and included iconv

Previously, the GNU linker would complain about missing libcharset_relocate.
The MSVC linker did not complain, since the code that uses libcharset_relocate
does not seem to be sued, so it removed it.

8 years agoChange tracking cue: for Graphics
Guillaume Munch [Mon, 23 May 2016 16:01:48 +0000 (17:01 +0100)]
Change tracking cue: for Graphics

Strike through deleted graphics.

8 years agoChange tracking cue: for instant preview
Guillaume Munch [Mon, 23 May 2016 14:44:29 +0000 (15:44 +0100)]
Change tracking cue: for instant preview

Strike through deleted previews (expect for inline math where it is already taken care of by RowPainter).

8 years agoChange tracking cue: for display() math insets
Guillaume Munch [Mon, 23 May 2016 14:06:26 +0000 (15:06 +0100)]
Change tracking cue: for display() math insets

Strike through deleted display math insets.

8 years agoPainter: Add a line style to disable antialiasing
Guillaume Munch [Mon, 23 May 2016 10:38:48 +0000 (11:38 +0100)]
Painter: Add a line style to disable antialiasing

It is not possible to use opacity effects (such as drawing an antialiased line
to strike diagonally through an inset), until the painter is fixed so that it
does not redraw repeatedly over the same spot (otherwise, the usual aritfacs
appear).

For now, pixellated lines are OK.

8 years agoBeautify ToolTips in work area
Guillaume Munch [Sat, 11 Jun 2016 11:57:18 +0000 (12:57 +0100)]
Beautify ToolTips in work area

* Justification and nicer line breaks.

* Much nicer tooltip for lists of bibliographical references.

* Removed unnecessary iterated copies of the string buffer in
  InsetText::ToolTipText() which looked bad. This function used to be costly
  (cf64064), maybe it is quicker now.

8 years agoRemove tooltips from the data of Toc Items
Guillaume Munch [Mon, 6 Jun 2016 19:02:49 +0000 (20:02 +0100)]
Remove tooltips from the data of Toc Items

After the previous commit, tooltip in the outliner are formatted automatically,
along with the other tooltips. A previous commit had already removed the
expensive call to tooltipText() that, although it gave a better rendering, was
very expensive (cf64064). This patch finishes to remove the custom tooltip
from the model data in the outliner.

(It would be nice to reintroduce a tooltip based on tooltipText(), but there
seemed to be a consensus that in that case one would prefer a less expensive
approach that computes the tooltip on the fly.)

8 years agoGuiDocument: some polishing of the list of modules.
Guillaume Munch [Tue, 31 May 2016 17:47:29 +0000 (18:47 +0100)]
GuiDocument: some polishing of the list of modules.

* The tooltips in the list of modules now include the names of the modules.

* The tooltips of modules more consistent across the widgets.

* Sort the list of modules according to the locale (i.e. "É" comes before "F").

* Replace a hand-made sentence boundary finder by Qt's.

8 years agoRemove manual line breaks.
Guillaume Munch [Fri, 10 Jun 2016 23:11:42 +0000 (01:11 +0200)]
Remove manual line breaks.

Line breaks in tooltips are now done automatically, there is no more need to
break the strings explicitly.

8 years agoLine breaks in tooltips
Guillaume Munch [Sun, 5 Jun 2016 19:35:35 +0000 (21:35 +0200)]
Line breaks in tooltips

* New function formatToolTip(QString):

Format text for display as a ToolTip, breaking at lines of a certain
width. Note: this function is expensive. Better call it in a delayed manner,
i.e. not to fill in a model (see for instance the function
ToolTipFormatter::eventFilter).

* Install a global event filter that formats tooltips on-the-fly

Inspired from
https://github.com/bitcoin/bitcoin/pull/1090/commits/3793fa09ff920fc720dfad3738f105d2c9563662
but much improved.

When is formatToolTip called automatically? Whenever the tooltip is not already
rich text beginning with <html>, and is defined by the following functions:
 * QWidget::setToolTip(),
 * QAbstractItemModel::setData(..., Qt::ToolTipRole),
 * Inset::toolTip() (added in one of the subsequent patches)

In other words, tooltips can use Qt html and the tooltip will still be correctly
broken. Moreover, it is possible to specify an entirely custom tooltip (not
subject to automatic formatting) by giving it in its entirety, i.e. starting
with <html>.

8 years agoSimplifications, mainly removal of boost::function and useless std::bind
Guillaume Munch [Wed, 29 Jun 2016 09:22:13 +0000 (10:22 +0100)]
Simplifications, mainly removal of boost::function and useless std::bind

8 years agoSquash some warnings.
Richard Heck [Sat, 2 Jul 2016 18:12:34 +0000 (14:12 -0400)]
Squash some warnings.

8 years agoremove 2 outdated build scripts
Uwe Stöhr [Sat, 2 Jul 2016 17:40:18 +0000 (19:40 +0200)]
remove 2 outdated build scripts

LyX 2.3 cannot be compiled with MSVC 2010

8 years agoFix CAS input on windows (bug 10262)
Georg Baum [Sat, 2 Jul 2016 16:58:30 +0000 (18:58 +0200)]
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.

8 years agoFix MSVC C++11 detection
Georg Baum [Sat, 2 Jul 2016 16:26:08 +0000 (18:26 +0200)]
Fix MSVC C++11 detection

The old version with empty flag did not enter the loop at all, so we have to
use a workaround. Thanks Uwe for testing.

8 years agowhitespace
Georg Baum [Sat, 2 Jul 2016 12:52:46 +0000 (14:52 +0200)]
whitespace

8 years agoFix MathML for imaginary part
Georg Baum [Sat, 2 Jul 2016 12:37:05 +0000 (14:37 +0200)]
Fix MathML for imaginary part

image is the HTML image element

8 years agoDo not use --std=c++14 for MSVC
Georg Baum [Sat, 2 Jul 2016 10:42:04 +0000 (12:42 +0200)]
Do not use --std=c++14 for MSVC

MSVC does not need a special flag to specify the standard. Using --std=c++14
produces a warning, but compilation succeeds, so the old code did mistakenly
choose --std=c++14 for MSVC.

8 years agoFix std::regex detection for older gcc
Georg Baum [Sat, 2 Jul 2016 10:39:08 +0000 (12:39 +0200)]
Fix std::regex detection for older gcc

Older gcc versions (e.g. the first one which has usable std::regex: gcc 4.9)
require the --std=c++11 flag to be set. Otherwise std::regex is not made
available. Therefore we need to keep the flag in the loop.

8 years agoEnsure that iconv and zlib are always found
Georg Baum [Sat, 2 Jul 2016 09:09:26 +0000 (11:09 +0200)]
Ensure that iconv and zlib are always found

If the included thirdparty libs are requested, use them, even on unix. This is
consistent with autotools (but the recommended way is of course to use the
system libs). If the included thirdparty libs are not requested then try to find
libiconv and zlib also on windows. This will lead to an error unless the libs are
found via manually added include and link paths, but this is wanted since
libiconv and zlib are not optional.

8 years agoAdd Dima to CREDITS
Georg Baum [Sat, 2 Jul 2016 08:11:21 +0000 (10:11 +0200)]
Add Dima to CREDITS

8 years agoCompile fix after change 4b64aaf, replace missing constructor for C-string with docst...
Stephan Witt [Sat, 2 Jul 2016 06:29:39 +0000 (08:29 +0200)]
Compile fix after change 4b64aaf, replace missing constructor for C-string with docstring variant

8 years agoCorrect indentation
Stephan Witt [Sat, 2 Jul 2016 06:27:48 +0000 (08:27 +0200)]
Correct indentation

8 years agoMake LyX compiled by MSVC 2015 run on Vista again
Georg Baum [Fri, 1 Jul 2016 20:05:55 +0000 (22:05 +0200)]
Make LyX compiled by MSVC 2015 run on Vista again

Patch and tests from Dima Ruinskiy, comments by me. For details see discussion
in bug 10186.

8 years agoSquash warning.
Richard Heck [Fri, 1 Jul 2016 02:57:19 +0000 (22:57 -0400)]
Squash warning.

8 years agoCMAKE: update path to Qt 5.6.1
Uwe Stöhr [Thu, 30 Jun 2016 23:39:38 +0000 (01:39 +0200)]
CMAKE: update path to Qt 5.6.1

8 years agoAdd some symbols from fontmath.ltx
Georg Baum [Thu, 30 Jun 2016 20:25:56 +0000 (22:25 +0200)]
Add some symbols from fontmath.ltx

These are all in lib/symbols, but we did not yet know the corresponding unicode
numbers. unicodesymbols does still not contain all symbols from lib/symbols.

8 years agoThe previous commit was actually a fix for bug #9158.
Richard Heck [Thu, 30 Jun 2016 19:02:09 +0000 (15:02 -0400)]
The previous commit was actually a fix for bug #9158.

This adjusts the comment a bit.

8 years agoFix bug #8782.
Richard Heck [Thu, 30 Jun 2016 18:53:19 +0000 (14:53 -0400)]
Fix bug #8782.

We need to invalidate the BibTeX cache when undoing or redoing. I do
not like having to do it for every undo or redo. We should only have
to do it if we restored or deleted an InsetBibTeX. But there is no
way, so far as I can see, to do it that way. I tried.

8 years agoABOVE and CENTERED labels need special treatment.
Richard Heck [Thu, 30 Jun 2016 03:55:11 +0000 (23:55 -0400)]
ABOVE and CENTERED labels need special treatment.

Fixes bug #8843.

8 years agoMake sure we center displayed equations.
Richard Heck [Thu, 30 Jun 2016 03:18:57 +0000 (23:18 -0400)]
Make sure we center displayed equations.

8 years agoUse convertDelimToXMLEscape with matrix delimiters, too.
Richard Heck [Thu, 30 Jun 2016 02:52:27 +0000 (22:52 -0400)]
Use convertDelimToXMLEscape with matrix delimiters, too.

8 years agoAdd class attribute for \mathbb in XHTML output.
Richard Heck [Thu, 30 Jun 2016 02:47:21 +0000 (22:47 -0400)]
Add class attribute for \mathbb in XHTML output.

Patch from Josh.

8 years agoUse symbols file to lookup entities for delimiters. Fixes bug #8280.
Richard Heck [Thu, 30 Jun 2016 02:39:42 +0000 (22:39 -0400)]
Use symbols file to lookup entities for delimiters. Fixes bug #8280.

Based upon work by Josh Hieronymus.

8 years agoDon't be so cute with VSpace: We just output it inline now for
Richard Heck [Thu, 30 Jun 2016 01:57:35 +0000 (21:57 -0400)]
Don't be so cute with VSpace: We just output it inline now for
XHTML.

Fixes bug #8154.

8 years agoOutput column width info for XHTML.
Richard Heck [Thu, 30 Jun 2016 01:47:51 +0000 (21:47 -0400)]
Output column width info for XHTML.

8 years agoFix bug #8782: We need to query the cell, not just the inset.
Richard Heck [Thu, 30 Jun 2016 01:23:39 +0000 (21:23 -0400)]
Fix bug #8782: We need to query the cell, not just the inset.

8 years agoAdd John Hudson.
Richard Heck [Wed, 29 Jun 2016 20:02:27 +0000 (16:02 -0400)]
Add John Hudson.

8 years agoAdd missing buffer update after pasting unformatted text.
Richard Heck [Wed, 29 Jun 2016 17:32:30 +0000 (13:32 -0400)]
Add missing buffer update after pasting unformatted text.

Fixes bug #8735.