]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoMerge branch 'master' of git.lyx.org:lyx
Kornel Benko [Sun, 25 Oct 2015 15:29:11 +0000 (16:29 +0100)]
Merge branch 'master' of git.lyx.org:lyx

8 years agoMath.lyx: replace tables by formal ones - part 3
Uwe Stöhr [Sun, 25 Oct 2015 15:26:02 +0000 (16:26 +0100)]
Math.lyx: replace tables by formal ones - part 3

8 years agoCmake tests: Combine "text" field to extract translators name
Kornel Benko [Sun, 25 Oct 2015 15:23:59 +0000 (16:23 +0100)]
Cmake tests: Combine "text" field to extract translators name

While extracting names of a translator from the html page it can happen
that the perl's HTML::Parser module splits the "text".

8 years agoMath.lyx: replace tables by formal ones - part 2
Uwe Stöhr [Sun, 25 Oct 2015 14:48:45 +0000 (15:48 +0100)]
Math.lyx: replace tables by formal ones - part 2

8 years agoMath.lyx: correct images paths now correctly
Uwe Stöhr [Sun, 25 Oct 2015 13:32:27 +0000 (14:32 +0100)]
Math.lyx: correct images paths now correctly

8 years agoFix the partial patch for #9740 (XeTeX with TeX fonts).
Günter Milde [Sun, 25 Oct 2015 10:20:43 +0000 (11:20 +0100)]
Fix the partial patch for #9740 (XeTeX with TeX fonts).

8 years agoCmake test: Cmake tests: Check for consistency between po-files and lyx-trunk transla...
Kornel Benko [Sun, 25 Oct 2015 10:18:30 +0000 (11:18 +0100)]
Cmake test: Cmake tests: Check for consistency between po-files and lyx-trunk translations page.

This time with the correct CMakeLists.txt.

8 years agoRevert "Cmake tests: Check for consistency between po-files and lyx-trunk translation...
Kornel Benko [Sun, 25 Oct 2015 10:17:02 +0000 (11:17 +0100)]
Revert "Cmake tests: Check for consistency between po-files and lyx-trunk translations page."

This reverts commit 0a4fbe4836f6a34cb4b44e25b8b3ef097bb65126.

8 years agoCmake tests: Check for consistency between po-files and lyx-trunk translations page.
Kornel Benko [Sun, 25 Oct 2015 10:10:14 +0000 (11:10 +0100)]
Cmake tests: Check for consistency between po-files and lyx-trunk translations page.

8 years agoAdd toolbar icons for LyX documentation
Georg Baum [Sun, 25 Oct 2015 09:47:40 +0000 (10:47 +0100)]
Add toolbar icons for LyX documentation

These icons are for lfuns that are not very interesting for users, but quite
often used when working on the LyX documentation. Now we can create a special
LyX documentation toolbar.

8 years agoInvert some ctests that correctly fail
Scott Kostyshak [Sun, 25 Oct 2015 03:37:33 +0000 (23:37 -0400)]
Invert some ctests that correctly fail

These exports correctly fail now that we've switched to polyglossia.
Although they compiled without error with babel, the resulting PDFs
had gibberish.

8 years agoctests: uninvert tests that were fixed by updates
Scott Kostyshak [Sat, 24 Oct 2015 19:34:02 +0000 (15:34 -0400)]
ctests: uninvert tests that were fixed by updates

I believe these tests were fixed by TeX Live updates.

Comparing the log files for a system where the tests fail with a
system where the tests pass, below are some of the differences
between the "good" and "bad" logs:

bad:
LaTeX2e <2015/01/01>
Babel <3.9l>
Package: fontspec 2015/03/14 v2.4c
Package: expl3 2015/03/01 v5547 L3 programming layer

good:
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m>
Package: fontspec 2015/07/22 v2.4d
Package: expl3 2015/07/30 v5724 L3 programming layer

8 years agoFix polyglossia exports for docs with babel cmds
Scott Kostyshak [Fri, 23 Oct 2015 22:11:19 +0000 (18:11 -0400)]
Fix polyglossia exports for docs with babel cmds

Many of our documents have babel-specific preamble code. By putting
this code in a \@ifpackageloaded{babel}{}{} conditional, XeTeX and
LuaTeX compilation with polyglossia now works. This fixes some
LuaTeX tests that were broken by edd37de8 and also allows us to
uninvert some XeTeX tests.

Note that in some of the files although the preambles were fixed to
allow for polyglossia, they still do not compile without errors:
es/Math.lyx
es/Customization.lyx
de/Customization.lyx

Similar fixes might be desired in other manuals but these at least
fix regressions in the tests.

8 years agoctests: uninvert some tests
Scott Kostyshak [Sat, 24 Oct 2015 07:13:12 +0000 (03:13 -0400)]
ctests: uninvert some tests

These tests were accidentally removed from the inverted list at
b2e49892.

8 years agoctests: uninvert some XeTeX tests that are fixed
Scott Kostyshak [Sat, 24 Oct 2015 06:51:15 +0000 (02:51 -0400)]
ctests: uninvert some XeTeX tests that are fixed

These tests were probably fixed with the recent fixes regarding
polyglossia by Jürgen and Georg.

8 years agoCorrect PolyglossiaOpts for Serbian
Scott Kostyshak [Sat, 24 Oct 2015 06:30:03 +0000 (02:30 -0400)]
Correct PolyglossiaOpts for Serbian

PolyglossiaOpts are case-sensitive so "latin" must be changed to
"Latin". Without this change, compiling examples/sr/Braille.lyx
with LuaTeX and system fonts gives the following error:

  Package Polyglossia Error: Unknown script `latin' for Serbian
  language

8 years agoctests: invert a test for a file recently added
Scott Kostyshak [Sat, 24 Oct 2015 06:00:12 +0000 (02:00 -0400)]
ctests: invert a test for a file recently added

The H-P-statements example was recently introduced (a610e29c) and
the LuaTeX test with system fonts has never passed.

8 years agoFix export with polyglossia and uninvert a manual
Scott Kostyshak [Sat, 24 Oct 2015 04:57:08 +0000 (00:57 -0400)]
Fix export with polyglossia and uninvert a manual

8 years agoUse "babel only" for some Spanish manuals
Scott Kostyshak [Sat, 24 Oct 2015 04:45:49 +0000 (00:45 -0400)]
Use "babel only" for some Spanish manuals

Many of our Spanish documents use babel-specific features in the
documents, e.g. to write "sin" in Spanish ("sen"). Because babel
seems to have good support for Spanish, I am setting the "Always
babel" for the manuals.

This fixes several LuaTeX tests with non-TeX fonts. A XeTeX test is
also reverted accordingly.

8 years agoctests: uninvert a XeTeX test that now passes
Scott Kostyshak [Sat, 24 Oct 2015 05:07:12 +0000 (01:07 -0400)]
ctests: uninvert a XeTeX test that now passes

This test was probably fixed with the recent fixes regarding
polyglossia by Jürgen and Georg.

8 years agoUpdate formats
Scott Kostyshak [Sat, 24 Oct 2015 00:28:15 +0000 (20:28 -0400)]
Update formats

Some of my following commits will make changes to these files
(mainly just changing the preambles). This commit simply updates the
format so the diffs of the following commits are easy to read.

8 years agoMath.lyx: repair broken paths
Uwe Stöhr [Sun, 25 Oct 2015 03:37:00 +0000 (04:37 +0100)]
Math.lyx: repair broken paths

this is caused by bug #9815

8 years agoMath.lyx: replace tables by formal ones - part 1
Uwe Stöhr [Sun, 25 Oct 2015 03:08:46 +0000 (04:08 +0100)]
Math.lyx: replace tables by formal ones - part 1

8 years agoWin installer: 2 fixes for the uninstaller
Uwe Stöhr [Sun, 25 Oct 2015 00:51:02 +0000 (02:51 +0200)]
Win installer: 2 fixes for the uninstaller

8 years agoFix a missing-braces warning for initialization of subobject
Stephan Witt [Sat, 24 Oct 2015 19:10:36 +0000 (21:10 +0200)]
Fix a missing-braces warning for initialization of subobject

8 years agoFor Mac OS: Additional check for Control and Meta modifier swap state.
Stephan Witt [Sat, 24 Oct 2015 19:03:01 +0000 (21:03 +0200)]
For Mac OS: Additional check for Control and Meta modifier swap state.
Starting with Qt 5 the modifiers aren't reported correctly for disabled swap.
Until this is fixed it is corrected by reverting the modifier mask to check for.

8 years agoNew configure options for Qt 5.6
Stephan Witt [Sat, 24 Oct 2015 18:48:08 +0000 (20:48 +0200)]
New configure options for Qt 5.6

8 years agoUpdate boost to version 1.59
Peter Kümmel [Sat, 24 Oct 2015 10:44:31 +0000 (12:44 +0200)]
Update boost to version 1.59

8 years agouse bash
Peter Kümmel [Sat, 24 Oct 2015 10:39:51 +0000 (12:39 +0200)]
use bash

8 years agoRevert the box alignment part of 8010b90c
Georg Baum [Fri, 23 Oct 2015 20:08:38 +0000 (22:08 +0200)]
Revert the box alignment part of 8010b90c

The horizontal alignment changes caused a regression for documents in older
formats. This could have been fixed by adding the following lines to the
format entry for 489 in development/FORMAT:

Previously, the horizontal position was ignored except for the
following parameter combinations:
- fixed width and type Boxed and without inner box
- fixed width and any type   and with    inner box and with makebox
Now, it is also used for the parameter combination below:
- makebox is not used and not (type Boxed and without inner box)

and a corresponding conversion to convert_BoxFeatures() in
lib/lyx2lyx/lyx_2_2.py. However, it was decided to revert the box alignment
changes instead: The box alignment can contradict the paragraph alignment. A
better way to avoid the additional space that can be created by paragraph
alignment (which was the motivation for implementing box alignment) is the
same as for table cells (see noTrivlistCentering() in src/Paragraph.cpp).
This would be a file format change and it is too late now for 2.2.0.

See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg188147.html for the
complete discussion (subject "Regression in lyx2lyx box alignment").

8 years agoSuppress CMake warning about qtmain
Peter Kümmel [Fri, 23 Oct 2015 14:59:31 +0000 (16:59 +0200)]
Suppress CMake warning about qtmain

8 years agoAlso cross compile with Qt5
Peter Kümmel [Fri, 23 Oct 2015 13:36:39 +0000 (15:36 +0200)]
Also cross compile with Qt5

Assume Ubuntu pathes for mingw.

8 years agoRemove linebreak after GCC version string
Peter Kümmel [Fri, 23 Oct 2015 13:20:32 +0000 (15:20 +0200)]
Remove linebreak after GCC version string

8 years agoRemove hard coded Qt selection when cross compiling for Windows
Peter Kümmel [Fri, 23 Oct 2015 13:14:09 +0000 (15:14 +0200)]
Remove hard coded Qt selection when cross compiling for Windows

8 years agoInsetMathNest.cpp: add \sideset to the autocomplete list
Uwe Stöhr [Fri, 23 Oct 2015 03:20:51 +0000 (05:20 +0200)]
InsetMathNest.cpp: add \sideset to the autocomplete list

fixes bug #9810

8 years agocolored-boxes.lyx: add info about shadows
Uwe Stöhr [Fri, 23 Oct 2015 03:17:24 +0000 (05:17 +0200)]
colored-boxes.lyx: add info about shadows

- also some fixes and improvements

8 years agocolored-boxes.lyx: 2 fixes
Uwe Stöhr [Fri, 23 Oct 2015 01:34:25 +0000 (03:34 +0200)]
colored-boxes.lyx: 2 fixes

8 years agojss.layout: update appearance of 2 styles in LyX
Uwe Stöhr [Fri, 23 Oct 2015 00:20:02 +0000 (02:20 +0200)]
jss.layout: update appearance of 2 styles in LyX

This was proposed by the co-author of the layout in bug#9516

8 years agoAdd suggestion for test cases by Günter
Georg Baum [Thu, 22 Oct 2015 20:21:25 +0000 (22:21 +0200)]
Add suggestion for test cases by Günter

8 years agoAmend bb344452
Guillaume Munch [Wed, 21 Oct 2015 14:02:12 +0000 (15:02 +0100)]
Amend bb344452

Repair the senseless truncation on long file names

8 years agomsvc: Proper fix for compilation of TexRow
Guillaume Munch [Tue, 20 Oct 2015 17:18:28 +0000 (19:18 +0200)]
msvc: Proper fix for compilation of TexRow

This bug in MSVC 10 was fixed at e948caf6, but the workaround belongs to
strfwd.h.

Thanks Vincent and Georg.

8 years agomsvc: Move implementation of numpunct<> functions to cpp file
Vincent van Ravesteijn [Tue, 20 Oct 2015 19:23:01 +0000 (21:23 +0200)]
msvc: Move implementation of numpunct<> functions to cpp file

These functions use lyx::from_ascii which means they need to include
docstring.h, but that results in a circular include.

8 years agoRevert "msvc: Fix compilation of TexRow"
Vincent van Ravesteijn [Tue, 20 Oct 2015 17:19:31 +0000 (19:19 +0200)]
Revert "msvc: Fix compilation of TexRow"

This reverts commit 10d7f6d479b05cf101173a8ab036676482b7c251.

8 years agoPartial fix for #9740 "XeTeX/LuaTeX with TeX fonts problems".
Günter Milde [Tue, 20 Oct 2015 17:14:39 +0000 (19:14 +0200)]
Partial fix for #9740 "XeTeX/LuaTeX with TeX fonts problems".

Fixes output for 3 of the 4 test lyx-files.

Includes "FIXME"s at places where further action is required to get the XeTeX
export right but I don't know how.

8 years agoAmend bb344452
Guillaume Munch [Tue, 20 Oct 2015 15:11:31 +0000 (16:11 +0100)]
Amend bb344452

8 years agoUpdate the fileformat number in the tex2lyx test's expected output.
Günter Milde [Tue, 20 Oct 2015 15:09:54 +0000 (17:09 +0200)]
Update the fileformat number in the tex2lyx test's expected output.

This needs to be done with every fileformat change!

8 years agoAssorted cppcheck fixes
Jean-Marc Lasgouttes [Mon, 14 Sep 2015 19:12:16 +0000 (21:12 +0200)]
Assorted cppcheck fixes

Remove member disp_ that is defined both in Cursor and CursorData classes

Pass parameter of convert<T>(docstring const) templates as const reference for performance.

8 years agoRELEASE-NOTES: Missing characters could be in pdf2
Scott Kostyshak [Tue, 20 Oct 2015 02:57:27 +0000 (22:57 -0400)]
RELEASE-NOTES: Missing characters could be in pdf2

The fix at 664ef2c4 is more general than XeTeX and LuaTeX. See, for
example, #9803 which shows an error that existed but was not
reported before.

8 years agoTexRow: fix return value on invalid row input.
Guillaume Munch [Mon, 19 Oct 2015 23:51:27 +0000 (00:51 +0100)]
TexRow: fix return value on invalid row input.

Caused loops with Sweave & Knittr compilation.

8 years agochkconfig.ltx: fix typos
Uwe Stöhr [Mon, 19 Oct 2015 23:10:14 +0000 (01:10 +0200)]
chkconfig.ltx: fix typos

thanks Vincent

8 years agoMath.lyx: fix bug #9803
Uwe Stöhr [Mon, 19 Oct 2015 21:57:34 +0000 (23:57 +0200)]
Math.lyx: fix bug #9803

\mathscr cannot contain small letters
thanks Günther

8 years agomsvc: Fix compilation of TexRow
Vincent van Ravesteijn [Mon, 19 Oct 2015 19:25:26 +0000 (21:25 +0200)]
msvc: Fix compilation of TexRow

The problem was that "odocstringstream << (const char *) ptr" did not
compile using msvc.

8 years agoFix language nesting regression
Georg Baum [Mon, 19 Oct 2015 19:08:01 +0000 (21:08 +0200)]
Fix language nesting regression

b1c68dccf8f and 46aed6d2b90 fixed some language nesting issues, but introduced
a regression for the case that there is a standard paragraph in a foreign
language, followed by a list (e.g. itemize) in the same language, followed
by the end of the document, as e.g. in lib/doc/de/Additional.lyx. The reason
for this was that not all language ending commands did reset
state->open_polyglossia_lang_ correctly.
I am sure that one can still construct broken corner cases, and I am also sure
that this was already possible before b1c68dccf8f and 46aed6d2b90. However,
this fix seems to fix the most important issues, and to get nesting completely
correct we would probably need some stack-like structure, for languages and
encodings, also for the CJK part (which is not touched at all by this commit).

8 years agoMath.lyx: update because bug #8566 was fixed long time ago
Uwe Stöhr [Mon, 19 Oct 2015 16:51:29 +0000 (18:51 +0200)]
Math.lyx: update because bug #8566 was fixed long time ago

- also adjust the scaling of 2 images

8 years agoFix #9764, combining diacritical characters for line below (part 2).
Günter Milde [Mon, 19 Oct 2015 16:30:27 +0000 (18:30 +0200)]
Fix #9764, combining diacritical characters for line below (part 2).

The correct mappings break the tex2lyx roundtrip tests because both,
the tests and tex2lyx use the wrong mapping (\b for "combining minus below").

Fix tex2lyx and the test files so that round-trip tests pass again.

8 years agoFix #9764, combining diacritical characters for line below (part 1).
Günter Milde [Mon, 19 Oct 2015 16:26:22 +0000 (18:26 +0200)]
Fix #9764, combining diacritical characters for line below (part 1).

Correct mappings in lib/unicodesymbols (see #9764 for details).

8 years agoFix #9792 cyrtext and textcyr in the preamble of every document.
Günter Milde [Mon, 19 Oct 2015 16:21:59 +0000 (18:21 +0200)]
Fix  #9792 cyrtext and textcyr in the preamble of every document.

Add the brackets missing in [468cedb923b/lyxgit].

8 years agocmake: Put updatetex2lyxtests in an appropriate folder
Vincent van Ravesteijn [Mon, 19 Oct 2015 15:50:59 +0000 (17:50 +0200)]
cmake: Put updatetex2lyxtests in an appropriate folder

8 years agoFix drawing with pixmap cache
Jean-Marc Lasgouttes [Mon, 19 Oct 2015 14:34:04 +0000 (16:34 +0200)]
Fix drawing with pixmap cache

The culprit was that the computation of textwidth did not take wordspacing in account.

Also fictor the code so that the pixmap path can use the special RTL handling.

It is not clear however that the handling of left and right bearing works correctly.

8 years agoGet rid of ParagraphMetrics::insetDimension
Jean-Marc Lasgouttes [Mon, 12 Oct 2015 14:11:58 +0000 (16:11 +0200)]
Get rid of ParagraphMetrics::insetDimension

We already have a CoordCache of insets dimensions. It is not necessary
to store the same information in two places.

Give a name to CoordCache tables types to improve code readability.

Remove ParagraphMetrics::singleWidth, which is not used anymore.

8 years agoctests: invert sys font tests of colored-boxes.lyx
Scott Kostyshak [Mon, 19 Oct 2015 05:55:36 +0000 (01:55 -0400)]
ctests: invert sys font tests of colored-boxes.lyx

This example file was just committed and the system font tests do
not pass because of the user preamble code.

8 years agoAdd cursor<->row correspondance tracking for tables and subcaptions.
Guillaume Munch [Tue, 13 Oct 2015 22:51:50 +0000 (23:51 +0100)]
Add cursor<->row correspondance tracking for tables and subcaptions.

Please use the new function otexstream.append(str, texrow) to append an
odocstringstream with texrow information to the output when outputing to a
string buffer (e.g. case of subcaptions).

8 years agoImprove the TexRow Cursor->Row algorithm for selections.
Guillaume Munch [Tue, 13 Oct 2015 19:26:21 +0000 (20:26 +0100)]
Improve the TexRow Cursor->Row algorithm for selections.

Selections were incorrect after the addition of math due to the invalidation of
an invariant.

8 years agoRemove a deep copy of MathData in lyx::write
Guillaume Munch [Mon, 12 Oct 2015 22:31:15 +0000 (23:31 +0100)]
Remove a deep copy of MathData in lyx::write

This deep copy used to mess with the unique identifier: what TexRow saw was
different from the original uid. There may also be performance improvements.

(Using Georg's suggestion)

8 years agoTexRow info in source panel and gotoCursor() for debugging
Guillaume Munch [Sun, 11 Oct 2015 13:50:32 +0000 (14:50 +0100)]
TexRow info in source panel and gotoCursor() for debugging

These features are active in DEVEL_VERSION when Debug is set to LATEX.

1. The TexRow information is prepended to the source panel.

2. Clicking on any line in the source triggers reverse search. (This would be an
interesting feature to implement on the user side, but we need a proper LFUN.)

8 years agoAdding TexRow information on math latex output (#4725)
Guillaume Munch [Wed, 7 Oct 2015 03:13:21 +0000 (04:13 +0100)]
Adding TexRow information on math latex output (#4725)

WriteStream is now built from an otexstream instead of an odocstream, and
therefore counts lines in a TexRow. Calls to TexRow are added in relevant places
in math insets.

This finishes adding line tracking for math in the source panel and for forward
search.

8 years agoAdd math cell positions to TexRow
Guillaume Munch [Tue, 13 Oct 2015 23:17:05 +0000 (00:17 +0100)]
Add math cell positions to TexRow

This is preliminary work for extending the cursor<->row tracking to math.

TexRow used to associate, to each row, a location id/pos where id determines a
paragraph and pos the position in the paragraph.

TexRow now associates to each row a list of entries, text or math. A math is a
pair uid/idx where uid will determine a math inset and idx is the number of the
cell.

The analogy id/pos<->inset/idx works better than the analogy id/pos<->idx/pos,
because what matters for the TexRow algorithm(TM) is the behaviour in terms of
line breaks.

This only improves the source view and the forward search, not the error report
and the reverse search (though this could be easily added now).

8 years agoAdd a unique id to math insets
Guillaume Munch [Tue, 13 Oct 2015 23:23:12 +0000 (00:23 +0100)]
Add a unique id to math insets

The id is just the memory address.

The status bar now spits out the math inset uid information when in a math cell
in DEVEL_VERSION, like it already does when in a paragraph.

This is preliminary work for extending the cursor<->row tracking to math.

8 years agoSplitting otexstream into otexrowstream and otexstream.
Guillaume Munch [Wed, 7 Oct 2015 03:02:40 +0000 (04:02 +0100)]
Splitting otexstream into otexrowstream and otexstream.

otexstream used to count lines to build a TexRow, and some other things. The new
class otexrowstream has the line counting feature of the previous otexstream
without other stuff. otexstream is now a subclass of otexrowstream that has the
same features as before.

This is preliminary work for extending the cursor<->row tracking to math.

8 years agoctests: invert a test that never passed
Scott Kostyshak [Mon, 19 Oct 2015 05:24:29 +0000 (01:24 -0400)]
ctests: invert a test that never passed

The H-P-statements example was recently introduced (a610e29c) and
the XeTeX test with system fonts has never passed.

8 years agoctests: invert a test that never passed
Scott Kostyshak [Mon, 19 Oct 2015 05:04:17 +0000 (01:04 -0400)]
ctests: invert a test that never passed

The ICUr template was recently introduced (5189d7be) and the XeTeX
test with system fonts has never passed.

8 years agotcolorbox.module: uniform whitespace
Uwe Stöhr [Mon, 19 Oct 2015 05:15:18 +0000 (07:15 +0200)]
tcolorbox.module: uniform whitespace

8 years agocolored-boxes.lyx: new example file for the tcolorbox.module
Uwe Stöhr [Mon, 19 Oct 2015 05:10:09 +0000 (07:10 +0200)]
colored-boxes.lyx: new example file for the tcolorbox.module

- also improve the tcolorbox.module

This is a fileformat change - only to be able to revert the new styles defined in the module.

8 years agoFix language end command
Georg Baum [Sun, 18 Oct 2015 18:55:53 +0000 (20:55 +0200)]
Fix language end command

The code that sets open_polyglossia_lang_ is not only executed for polyglossia,
but also for babel, so we have to use the correct language end command.

8 years agoUserGuide.lyx: port changes from branch
Uwe Stöhr [Sun, 18 Oct 2015 17:22:39 +0000 (19:22 +0200)]
UserGuide.lyx: port changes from branch

8 years agoEmbeddedObjects.lyx: revert unintended part of previous commit are commit correct...
Uwe Stöhr [Sun, 18 Oct 2015 17:05:41 +0000 (19:05 +0200)]
EmbeddedObjects.lyx: revert unintended part of previous commit are commit correct stuff

- sorry, after some moths without LyXing I forgot most of the complicated git branch handling stuff

8 years agoEmbeddedObjects.lyx: update appendix A
Uwe Stöhr [Sun, 18 Oct 2015 16:57:15 +0000 (18:57 +0200)]
EmbeddedObjects.lyx: update appendix A

Since a while now we can translate the unit descriptions. For some special applications it is also necessary that the users know the LaTeX command of the relative units.

- also fix a typo in Customization.lyx

8 years agosk.po: Use '…' instead of '...' where appropriate
Kornel Benko [Sun, 18 Oct 2015 13:52:54 +0000 (15:52 +0200)]
sk.po: Use '…' instead of '...' where appropriate

8 years agoRemove unneeded whitespace
Georg Baum [Sat, 17 Oct 2015 18:01:22 +0000 (20:01 +0200)]
Remove unneeded whitespace

8 years agoRemove confusing parentheses
Georg Baum [Sat, 17 Oct 2015 17:53:59 +0000 (19:53 +0200)]
Remove confusing parentheses

8 years agoFix regression of 359aef92f87
Georg Baum [Sat, 17 Oct 2015 16:13:18 +0000 (18:13 +0200)]
Fix regression of 359aef92f87

The context menu did no longer work for some insets, since it requires the
cursor to be in front, and editXY() is also used to determine the inset for
the context menu. Now the cursor is corrected if needed.

8 years agochkconfig.ltx: add packages supported by LyX
Uwe Stöhr [Sun, 18 Oct 2015 13:21:50 +0000 (15:21 +0200)]
chkconfig.ltx: add packages supported by LyX

- also update Win installer package list (trimspaces is required by tcolorbox but not listed as required in the tcolorbox manual)

8 years agoRELEASE-NOTES: LyX should work with Qt >= 4.5
Scott Kostyshak [Thu, 15 Oct 2015 23:52:45 +0000 (19:52 -0400)]
RELEASE-NOTES: LyX should work with Qt >= 4.5

8 years agoFix std::string docstream output error
Georg Baum [Thu, 15 Oct 2015 18:52:28 +0000 (20:52 +0200)]
Fix std::string docstream output error

This was made visible by aab1b145a57c, since xhtml export for
lib/doc/Additional.lyx caused an exception. However, the cause for this was
already present earlier: All attempts to output a std::string to an
odocstream resulted in trying to change the encoding of the stream instead,
since there is no operator<<(odocstream &, std::string) defined, and an
implicit conversion to SetEnc happened instead.
This is fixed by making the SetEnc constructor explicit and adjusting all
code parts that did not compile anymore after that. The parts of the code
that did use the wrong output operator were the std::string version of
htmlize() from output_xhtml.cpp and all changed parts in the other .cpp files.
I also removed the std::string versions of html::htmlize() and
html::cleanAttr(), since it was difficult to see which encodings were used
with these. Now we are always explcit when using html::cleanAttr() and
html::htmlize().

8 years agoUpdate RELEASE-NOTES for Qt advice and policy
Scott Kostyshak [Wed, 14 Oct 2015 23:14:01 +0000 (19:14 -0400)]
Update RELEASE-NOTES for Qt advice and policy

8 years agoRemove variable y_top that was computed but not used.
Jean-Marc Lasgouttes [Mon, 12 Oct 2015 09:55:38 +0000 (11:55 +0200)]
Remove variable y_top that was computed but not used.

8 years agoCorrect early return position for if use_pixmap_cache_ check
Stephan Witt [Mon, 12 Oct 2015 06:00:24 +0000 (08:00 +0200)]
Correct early return position for if use_pixmap_cache_ check

8 years agoinstaller: update the packages list
Uwe Stöhr [Mon, 12 Oct 2015 00:50:07 +0000 (02:50 +0200)]
installer: update the packages list

- there are some new packages required by LyX's supported document classes and example files
(this list is only used when LyX is installed the first time on a PC together with MiKTeX to shorten the installation time)

8 years agoinstaller: new release because of bug #9733
Uwe Stöhr [Sun, 11 Oct 2015 23:01:30 +0000 (01:01 +0200)]
installer: new release because of bug #9733

8 years agoFix languages in math docs.
Georg Baum [Sun, 11 Oct 2015 17:00:21 +0000 (19:00 +0200)]
Fix languages in math docs.

These were either unneeded or used the old german spelling.

8 years agoFix cursor movement for large logos (#9628)
Georg Baum [Sun, 11 Oct 2015 12:21:45 +0000 (14:21 +0200)]
Fix cursor movement for large logos (#9628)

Previously, if one clicked onto a large non-editable inset like the new LyX
logo inset, the cursor was always positioned in front of the inset, even if
the click was almost at the back edge. Now the cursor is positioned at the
correct edge. I tested this also with RTL contents, where from means right
and back means left, but the inset anchor position anchor point is still
at the left, and the right edge is dim.wid pixels to the right of it.

8 years agoDisable assigment operator
Georg Baum [Sun, 11 Oct 2015 10:04:43 +0000 (12:04 +0200)]
Disable assigment operator

Forgot that in cea2d71e641

8 years agoComply with rule-of-three
Georg Baum [Sun, 11 Oct 2015 09:16:09 +0000 (11:16 +0200)]
Comply with rule-of-three

The rule-of-three says that if any of virtual destructor, copy constructor
or assignment operator needs to be manually implemented, then all three
should be implemented. Otherwise you can get subtle bugs which can be
difficult to find. In the changed classes, changing a copy-construction to
an assignment would have had surprising effects. Now they all behave
consistently.

8 years agoMove comment where it belongs
Georg Baum [Sun, 11 Oct 2015 08:27:16 +0000 (10:27 +0200)]
Move comment where it belongs

8 years agoRemove C-style casts found by cppcheck
Georg Baum [Sat, 10 Oct 2015 19:44:08 +0000 (21:44 +0200)]
Remove C-style casts found by cppcheck

8 years agoFix LASSERT correction
Georg Baum [Sat, 10 Oct 2015 19:38:17 +0000 (21:38 +0200)]
Fix LASSERT correction

Found bx cppcheck:
(style) Assignment of function parameter has no effect outside the function.

8 years agoRemove unused variables
Georg Baum [Sat, 10 Oct 2015 19:28:28 +0000 (21:28 +0200)]
Remove unused variables

Found by cppcheck: (style) Unused variable: x

8 years agoFix duplicated pointer check
Georg Baum [Sat, 10 Oct 2015 19:23:52 +0000 (21:23 +0200)]
Fix duplicated pointer check

Found by cppcheck: (style) Same expression on both sides of '&&'.

8 years agoFix copy-paste leftover
Georg Baum [Sat, 10 Oct 2015 19:15:55 +0000 (21:15 +0200)]
Fix copy-paste leftover

Found by cppcheck: (style) Same expression on both sides of '&&'.
I deduced the correct if-condition from the other places where theLaTeXFonts()
is called.

8 years agoAdd missing intializations
Georg Baum [Sat, 10 Oct 2015 19:04:28 +0000 (21:04 +0200)]
Add missing intializations

These were found by cppcheck:
Member variable 'x' is not initialized in the constructor.
The crash #9788 would not have happened if this had been done earlier.