]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoerror is always true at this point
Jean-Marc [Sat, 12 Sep 2015 16:14:28 +0000 (18:14 +0200)]
error is always true at this point

Coverity issue 23294.

8 years agoFix unreachable code
Jean-Marc [Sat, 12 Sep 2015 16:05:08 +0000 (18:05 +0200)]
Fix unreachable code

Coverity issues 23292 and 23297.

8 years agoDo not use -Wfloat-conversion with recent gcc versions
Jean-Marc [Thu, 10 Sep 2015 16:12:35 +0000 (18:12 +0200)]
Do not use -Wfloat-conversion with recent gcc versions

8 years agoCmake build: Adapt use of c++11 for cygwin too.
Kornel Benko [Wed, 9 Sep 2015 12:45:55 +0000 (14:45 +0200)]
Cmake build: Adapt use of c++11 for cygwin too.

Change done according to commit 864a4db26bfa7ec05de936e9446d29bf8e58fc58

8 years agoOn cygwin, use -std=gnu++11 instead of -std=c++11
Enrico Forestieri [Wed, 9 Sep 2015 00:34:18 +0000 (02:34 +0200)]
On cygwin, use -std=gnu++11 instead of -std=c++11

This allows compiling without monkeying with compiler guards.

8 years agoMake it compile on cygwin in c++11 mode
Enrico Forestieri [Tue, 8 Sep 2015 23:54:49 +0000 (01:54 +0200)]
Make it compile on cygwin in c++11 mode

When using -std=c++11, the cygwin compiler automatically defines
__STRICT_ANSI__ which is used as a guard for not declaring essential
unix standard calls such as setenv, popen, etc. As a result,
compilation stops with errors such as "xxxx has not been declared".
By undefining the guard, compilation succeeds and lyx works Ok.

8 years agoTake into account symbolic links
Enrico Forestieri [Tue, 8 Sep 2015 23:40:16 +0000 (01:40 +0200)]
Take into account symbolic links

In order to adjust the path of an included file, when deciding
whether the document was moved or not, it is not sufficient
comparing the paths because the document could have been accessed
through a symbolic link.

8 years agoUse QFontMetrics information for underlines (and friends) width and position
Jean-Marc Lasgouttes [Tue, 14 Apr 2015 13:22:11 +0000 (15:22 +0200)]
Use QFontMetrics information for underlines (and friends) width and position

The width of the line is now dependent on the font size.

This new computation is applied to: underline, strikeout, double underline.

8 years agoUse C++11 by default when possible
Jean-Marc Lasgouttes [Mon, 31 Aug 2015 16:17:35 +0000 (18:17 +0200)]
Use C++11 by default when possible

Compiler that are known to support C++11 (gcc >= 4.3 and clang) are
now used in this mode by default. It is still possible to override
this choice using --(en|dis)able-cxx11.

Moreover, c++11 mode is detected from the compiler itself, not from
the use of --enable-cxx11. This allows to support compilers other
than gcc or clang.

Update INSTALL file accordingly and clean it a little bit.

8 years agoWork around crash on command line export
Georg Baum [Fri, 4 Sep 2015 19:24:01 +0000 (21:24 +0200)]
Work around crash on command line export

This was a regression of 0c093a626472c7. The crash was found by the tex2lyx
test case test-insets.tex: Running lyx -f main -e pdflatex test-insets.lyx.lyx
did crash. This is not a real fix, but will do for now since previews are not
needed in command line mode (I wonder why they are generated at all?) In the
long term, we need theApp() to return a console application in commandline
mode to eliminate the existing sifferences between export from GUI and
commandline.

8 years agoRemove unneeded second slash
Georg Baum [Fri, 4 Sep 2015 18:51:08 +0000 (20:51 +0200)]
Remove unneeded second slash

docdir does always end with a slash, so the second one is not needed.
The first one is however mandatory.

8 years agoCmake build: Adapt detection of C++11 mode to automake
Kornel Benko [Thu, 3 Sep 2015 09:15:10 +0000 (11:15 +0200)]
Cmake build: Adapt detection of C++11 mode to automake

8 years agoImprove detection of C++11 mode
Jean-Marc Lasgouttes [Thu, 3 Sep 2015 08:22:56 +0000 (10:22 +0200)]
Improve detection of C++11 mode

This replaces commit 329eae56 with a better solution. Indeed, while
__cpluplus is useless with g++ 4.[3-6] because its value is always 1,
these compilers define __GXX_EXPERIMENTAL_CXX0X__ when "-std c++0x" is used.

Therefore the code now relies on both macros to detect C++11 mode
instead of setting it when --enable-cxx11 is used.

Also, use pure c++ mode instead of gnu++ extensions on gcc

8 years agoFix parsing of class and category declaration line in layout files
Juergen Spitzmueller [Wed, 2 Sep 2015 12:29:06 +0000 (14:29 +0200)]
Fix parsing of class and category declaration line in layout files

* Omit commented-out lines
* Properly escape backslash
* Do not allow non-space chars after delaration
* Allow blanks before # comment character

Fixes: #9746
8 years agoRevert "Typo."
Richard Heck [Tue, 1 Sep 2015 15:39:25 +0000 (11:39 -0400)]
Revert "Typo."

This reverts commit b833a32420921df529050f8301c6ca3938611ff0.

8 years agoTypo.
Richard Heck [Tue, 1 Sep 2015 15:04:54 +0000 (11:04 -0400)]
Typo.

8 years agoRemove problematic workaround for "exotic" problem
Günter Milde [Wed, 26 Aug 2015 22:04:19 +0000 (00:04 +0200)]
Remove problematic workaround for "exotic" problem

Greek and Times under MikTeX with auto-install may fail due to a half-installed
font package. However, the workaround in LyX stands in the way of
alternative approaches (see bug #6469).

8 years agoAdd LICR replacement for COMBINING MACRON BELOW.
Günter Milde [Wed, 26 Aug 2015 20:41:48 +0000 (22:41 +0200)]
Add LICR replacement for COMBINING MACRON BELOW.

8 years agoAdd note about missing characters now errors with Xe/LuaTeX.
Günter Milde [Wed, 26 Aug 2015 06:41:12 +0000 (08:41 +0200)]
Add note about missing characters now errors with Xe/LuaTeX.

(cf. ticket #9610)

8 years agoNew lfun "accent-perispomeni".
Günter Milde [Thu, 13 Aug 2015 09:15:19 +0000 (11:15 +0200)]
New lfun "accent-perispomeni".

This function inserts a COMBINING GREEK PERISPOMENI character that is
normalized to pre-composed characters for base characters where a
corresponding WITH PERISPOMENI character exists.

This is a partial solution for Ticket #6463.

8 years agoFix continuous spell checking
Jean-Marc Lasgouttes [Wed, 26 Aug 2015 11:54:35 +0000 (13:54 +0200)]
Fix continuous spell checking

The extra check became useless after 4796e6b3, but its presence only
broke continuous spell checking after f65f3adb.

8 years agoFix compilation with qt5 and c++11 combined.
Guillaume Munch [Mon, 24 Aug 2015 19:05:48 +0000 (21:05 +0200)]
Fix compilation with qt5 and c++11 combined.

8 years agoFix some row breaking problems with large insets
Jean-Marc Lasgouttes [Thu, 23 Jul 2015 09:59:51 +0000 (11:59 +0200)]
Fix some row breaking problems with large insets

When a row is too large due to a wide inset, it does not make sense to
break text before if the problem is the same in the next row.
Therefore give up breaking in this case.

Note that this was explicitely taken care of in the old-world
rowBreakPoint code.

Fixes bug #9691.

8 years agoFix bug #6466
Guillaume Munch [Sun, 23 Aug 2015 09:47:37 +0000 (11:47 +0200)]
Fix bug #6466

\{ and \% now correctly use the selection as their argument instead of
erasing it.

8 years agoAdd Guillaume Munch to credits
Georg Baum [Sun, 23 Aug 2015 09:33:34 +0000 (11:33 +0200)]
Add Guillaume Munch to credits

8 years agoImprove math-mode lfun for switching to text
Guillaume Munch [Sun, 23 Aug 2015 09:10:05 +0000 (11:10 +0200)]
Improve math-mode lfun for switching to text

math-mode inserts \text instead of \mbox when already in math mode,
since this supports accented characters.

8 years agoAdd \ensuremath to the list of math completions
Guillaume Munch [Sun, 23 Aug 2015 09:05:01 +0000 (11:05 +0200)]
Add \ensuremath to the list of math completions

8 years agoRefresh file cache before checking existence
Scott Kostyshak [Wed, 19 Aug 2015 01:55:59 +0000 (21:55 -0400)]
Refresh file cache before checking existence

This is done only inside LFUN_BUFFER_VIEW_CACHE so as to preserve
the benefits of caching in other places.

Without this commit, if a converter or a user (re)moves the preview
file and then calls buffer-view-cache LyX will launch the viewer for
a file that does not exist.

For a discussion and use case, see:
https://www.mail-archive.com/search?l=mid&q=55D393D7.6050403@lyx.org

8 years agoFix shortcuts for copy and paste.
Richard Heck [Mon, 17 Aug 2015 16:37:53 +0000 (12:37 -0400)]
Fix shortcuts for copy and paste.

8 years agoQuote argument of tag when necessary
Enrico Forestieri [Sat, 15 Aug 2015 16:32:41 +0000 (18:32 +0200)]
Quote argument of tag when necessary

Both \origin and \textclass tags may be paths and contain spaces.
In this case, enclose them in double quotes such that they can be
correctly read by the lexer.

8 years agounicodesymbols: "textgreek" must not be used together with "combining".
Günter Milde [Wed, 12 Aug 2015 20:00:08 +0000 (22:00 +0200)]
unicodesymbols: "textgreek" must not be used together with "combining".

With the current code, this leads to output like "\\\\textgreek{\\\\~}"
which results in a LaTeX error as the accent macro \\\\~ expects an argument.

8 years agoinstaller: fix 2 Python related bugs
Uwe Stöhr [Wed, 5 Aug 2015 00:29:43 +0000 (02:29 +0200)]
installer: fix 2 Python related bugs

see the changelog for the fixed bugs

8 years agode.po: resolve shortcut conflict
Juergen Spitzmueller [Mon, 3 Aug 2015 13:24:20 +0000 (15:24 +0200)]
de.po: resolve shortcut conflict

8 years agoCustomization: add a hint about PackageOptions at Requires.
Juergen Spitzmueller [Mon, 3 Aug 2015 11:39:18 +0000 (13:39 +0200)]
Customization: add a hint about PackageOptions at Requires.

8 years agoUpdate sk.po
Kornel Benko [Mon, 3 Aug 2015 08:33:32 +0000 (10:33 +0200)]
Update sk.po

8 years agoSet font in BufferView::setCursor (#9500)
Scott Kostyshak [Fri, 24 Jul 2015 03:27:47 +0000 (23:27 -0400)]
Set font in BufferView::setCursor (#9500)

This solves a few bugs related to the font not being set correctly.
For example, when putting a selection somewhere with
putSelectionAt(), the font was not reset so that before this commit
if the cursor was in an ERT, strange things could happen.
putSelectionAt() is notably used when highlighting the location
corresponding with a LaTeX error (GuiErrorList), when using find,
and when using the spellcheck. I could reproduce the bug using all
three of these.

Bug #9500 is an example of the type of bugs that this commit fixes.

8 years agode.po
Juergen Spitzmueller [Thu, 30 Jul 2015 08:49:11 +0000 (10:49 +0200)]
de.po

8 years agoDecrease height of citation dialog by using a QToolBox
Juergen Spitzmueller [Thu, 30 Jul 2015 08:09:21 +0000 (10:09 +0200)]
Decrease height of citation dialog by using a QToolBox

Fixes: #9618
8 years agolyxpak.py: Use `subprocess` for spawning scripts.
Guy Rutenberg [Sat, 11 Jul 2015 15:52:14 +0000 (18:52 +0300)]
lyxpak.py: Use `subprocess` for spawning scripts.

`os.popen` is deprecated since Python-2.6. Also, this fixes the handling
of files with quotes in their names. The patch requires Python >= 2.7.

Furthermore, the patch executes the lyx2lyx script with the same
interpreter used for it, to maintain compatibility.

I also removed some lines related to Python-2.4, as it is no longer
supported anyway.

8 years agonb layout translations reviewed by Helge.
Pavel Sanda [Sat, 25 Jul 2015 18:03:50 +0000 (11:03 -0700)]
nb layout translations reviewed by Helge.

8 years agoDo not attempt to select an empty cell before inserting a longtable caption
Juergen Spitzmueller [Sat, 25 Jul 2015 10:48:13 +0000 (12:48 +0200)]
Do not attempt to select an empty cell before inserting a longtable caption

Fixes: #9692
8 years agoResolve shortcut conflict
Juergen Spitzmueller [Sat, 25 Jul 2015 08:15:44 +0000 (10:15 +0200)]
Resolve shortcut conflict

8 years agocorrect symlink creation - make them relative instead of absolute
Stephan Witt [Fri, 24 Jul 2015 16:41:26 +0000 (18:41 +0200)]
correct symlink creation - make them relative instead of absolute
follow up of f45202acde6a98d9338f162f8ba917b2432580aa

8 years agoAvoid duplicates of dictionaries and thesauri in distributed package
Stephan Witt [Thu, 23 Jul 2015 10:55:02 +0000 (12:55 +0200)]
Avoid duplicates of dictionaries and thesauri in distributed package

8 years agoGerman genitive of LyX is LyX' (not LyXs)
Juergen Spitzmueller [Thu, 23 Jul 2015 07:26:29 +0000 (09:26 +0200)]
German genitive of LyX is LyX' (not LyXs)

(see Amtl. Regel. § 96 (1))

8 years agoRemove ugly and now redundant ERT-braces from the docs
Juergen Spitzmueller [Thu, 23 Jul 2015 07:12:26 +0000 (09:12 +0200)]
Remove ugly and now redundant ERT-braces from the docs

These were used to prevent the former auto-logoification of LyX etc.

Also fixed some spelling errors I passed by.

8 years agoAnother go at improving row shortening
Jean-Marc Lasgouttes [Wed, 22 Jul 2015 22:39:27 +0000 (00:39 +0200)]
Another go at improving row shortening

Instead of remembering the last breakable element in the row, search
backward in the row and consider all string elements one by one until
a correct place to break is found.

This fixes the case where the row ends with a string, but there is no
space soon enough in the string to break it here. In this case, we
need to consider the previous row.

8 years agoComment.
Richard Heck [Wed, 22 Jul 2015 16:08:20 +0000 (12:08 -0400)]
Comment.

8 years agoFix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading...
Richard Heck [Wed, 22 Jul 2015 15:04:35 +0000 (11:04 -0400)]
Fix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading for 2.1.x broke LyXHTML preview of math as images.

We have been here before. The png files are generated, but then by the time we preview the document, they are gone. This is because (a) when the PreviewLoader for a Buffer is deleted, it removes all its previews and (b) we export in a clone, so that Buffer gets deleted before the preview is actually shown. So we need to check whether we are a preview for a clone before we delete anything.

8 years agoRemove ugly and now redundant ERT-braces from the German docs
Juergen Spitzmueller [Wed, 22 Jul 2015 12:54:26 +0000 (14:54 +0200)]
Remove ugly and now redundant ERT-braces from the German docs

These were used to prevent the former auto-logoification of LyX etc.

Also fixed some spelling errors I passed by.

8 years agopreserve symlinks on copying of user directory from previous version
Stephan Witt [Wed, 22 Jul 2015 04:37:52 +0000 (06:37 +0200)]
preserve symlinks on copying of user directory from previous version

8 years agoDo not break row at inset boundary if possible
Jean-Marc Lasgouttes [Wed, 22 Jul 2015 09:05:02 +0000 (11:05 +0200)]
Do not break row at inset boundary if possible

The first change is to concentrate on the last ro elements that contain separators and try to break it a a width that is shorter than both
- its current width (we want to break it, after all)
- the amount of space available.

This simple heuristic seems to give good results.

8 years agoImproved symlink creation for Mac OS for first LyX start
Stephan Witt [Mon, 20 Jul 2015 23:06:36 +0000 (01:06 +0200)]
Improved symlink creation for Mac OS for first LyX start

8 years agoUse the safer addName helper function to add the configure lock name to user support...
Stephan Witt [Mon, 20 Jul 2015 23:05:04 +0000 (01:05 +0200)]
Use the safer addName helper function to add the configure lock name to user support directory path name

8 years agoFix bug #9684: Update previews after background color change
Enrico Forestieri [Tue, 21 Jul 2015 22:56:34 +0000 (00:56 +0200)]
Fix bug #9684: Update previews after background color change

8 years agoMerge branch 'rowpainter2'
Jean-Marc [Tue, 21 Jul 2015 21:47:12 +0000 (23:47 +0200)]
Merge branch 'rowpainter2'

8 years agoRemember the cursor before an undo group
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 12:13:13 +0000 (14:13 +0200)]
Remember the cursor before an undo group

With this patch, the cursor position before undo can be saved when
creating an undo group. Any such value will supercede parameters
passed to recordUndo. Only the first such cursor set by nested
beginUndoGoup takes effect.

Fixes bug #9663.

8 years agoReset properly the cursor font when leaving an inset to the left
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 09:50:36 +0000 (11:50 +0200)]
Reset properly the cursor font when leaving an inset to the left

There was a missing setCursorFont there.

Fixes bug #6032.

8 years agoInitialize correctly the default keymap
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 09:36:49 +0000 (11:36 +0200)]
Initialize correctly the default keymap

If keymaps are activated and there is a secondary keymap but no
primary one, then the pointer to the active keymap was 0x0. This can't
be good.

Fixes bug #9685.

8 years agoGet rid of SEPARATOR row element type
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 07:51:06 +0000 (09:51 +0200)]
Get rid of SEPARATOR row element type

It is not used anymore.

Also get rid of a comment made irrelevant by recent changes.

8 years agoReset cursor font when entring an inset with char-forward/backward
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 14:13:34 +0000 (16:13 +0200)]
Reset cursor font when entring an inset with char-forward/backward

When entering an inset from the keyboard, setCurrentFont()
was not called and thus the cursor retained the font that was set
before. This could create strange behavior that could often go
unnoticed by the user.

It is easy to imagine many other situations similar to #9597 where
the user could trigger this bug.

Fixes bug #9597.

8 years agoOnly compute string length every 30 characters
Jean-Marc [Mon, 20 Jul 2015 22:14:39 +0000 (00:14 +0200)]
Only compute string length every 30 characters

This makes paragraph rebreaking muh much faster, at least on my ancient iMac Core 2 Duo.

8 years agoRe-implement text justification
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 23:22:10 +0000 (01:22 +0200)]
Re-implement text justification

* GuiFontMetrics::pos2x, x2pos: add support for inter-word spacing.
* GuiPainter::text: idem

* Row::Element::countSeparators:
  Row::countSeparators: new methods that count spaces in strings.
  Row::setSeparatorExtraWidth: new method (code lifted from TextMetrics.cpp).

* TextMetrics::computeRowMetrics: rely on the above methods.

* RowPainter::paintMispelledMarked: pass only a Row::Element object reference
  RowPainter::paintStringAndSel: idem; do not rely on values returned by
      Painter::text (trailing spaces do not honor wordspacing value).

8 years agoDo not break row elements at spaces
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 23:22:10 +0000 (01:22 +0200)]
Do not break row elements at spaces

The goal of this commit is to make painting faster by reducing the
number of strings to paint. To this end, it is necessary to include
spaces in row elements.

Also importantly, this commit should fix existing problems with line
breaking in chinese text.

* TextMetrics::breakRow: do not do anything special for word separators.

* Row::add: when adding a character to a row element, keep the string
  width updated. If need be, it is possible to tweak this by updating
  every 10 characters, for example.

* GuiFontMetrics::breakAt (new): use QTextLayout to break text either
  at word boundary or at an arbitrary width.

* Row::Element::breakAt: use the above method.

* Row::shortenIfNeeded: simplify now that because there is no need for
  handling separator elements. This will be taken care of by the
  improved breakAt.

Two things remain to be done:

* remove all traces of separator row element

* re-implement text justification.

8 years agoSupport Photos in RasterImage template
Georg Baum [Mon, 20 Jul 2015 19:14:45 +0000 (21:14 +0200)]
Support Photos in RasterImage template

Actually photos (i.e. .jpg files) where supported previously, but for pdflatex
output an unneeded conversion to png was done. The RasterImage templates
behaves now exactly as InsetGraphics for these files: If the input format is
jpg, use that for pdflatex, else convert to png.

8 years agoReplace LaTeX logo with plain text
Georg Baum [Mon, 20 Jul 2015 19:05:34 +0000 (21:05 +0200)]
Replace LaTeX logo with plain text

This is another advantage of the new logo insets: We see in LyX where they are
inserted for the output. In these two cases, the text describes keywords of
the external template configuration file language, so these should not be
typeset as logos.

8 years agoUpdate sk.po
Kornel Benko [Sun, 19 Jul 2015 14:33:11 +0000 (16:33 +0200)]
Update sk.po

8 years agoChangelog-UserGuide-LyX_22x.txt: add a todo note
Uwe Stöhr [Sun, 19 Jul 2015 13:03:42 +0000 (15:03 +0200)]
Changelog-UserGuide-LyX_22x.txt: add a todo note

for new external template

Please also announce new features here:
http://wiki.lyx.org/LyX/NewInLyX22

8 years agoAdd template for vector graphics
Georg Baum [Sun, 19 Jul 2015 11:42:22 +0000 (13:42 +0200)]
Add template for vector graphics

The difference to bitmap graphics is that these will be included as PDF for
pdflatex, so the vector properties are retained if a suitable conversion path
exists.

8 years agoRewrite RowPainter::paintOnlyInsets to use row elements
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 18:37:53 +0000 (20:37 +0200)]
Rewrite RowPainter::paintOnlyInsets to use row elements

8 years agoStore InsetGraphics bounding box in parsed form
Georg Baum [Sat, 18 Jul 2015 15:02:54 +0000 (17:02 +0200)]
Store InsetGraphics bounding box in parsed form

This is like InsetExternal does it, avoids some string parsing, reduces the
amount of code and makes it more robust.

8 years agoRemove relative units from bounding box
Georg Baum [Sat, 18 Jul 2015 14:41:52 +0000 (16:41 +0200)]
Remove relative units from bounding box

When adding units to the external inset bounding box I overlooked that
InsetGraphics supports only bb, cm, mm and in. Therefore I added too many
units for the external insets. We are not as strict as the graphics inset
and allow all absolute units, but no relative ones.

8 years agoLengthCombo does not depend on VSpace
Georg Baum [Sat, 18 Jul 2015 14:29:04 +0000 (16:29 +0200)]
LengthCombo does not depend on VSpace

so use the right include

8 years agoDevirtualize some methods
Georg Baum [Sat, 18 Jul 2015 14:23:24 +0000 (16:23 +0200)]
Devirtualize some methods

These do not need to be virtual, since no class inherits from LengthCombo.h,
and they do not exist in the base class either.

8 years agoForgot that in 81e592603
Georg Baum [Sat, 18 Jul 2015 06:49:42 +0000 (08:49 +0200)]
Forgot that in 81e592603

8 years agoRewrite Cursor::posVisToRowExtremity without Bidi class
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 22:39:55 +0000 (00:39 +0200)]
Rewrite Cursor::posVisToRowExtremity without Bidi class

It is trivial to implement it using TextMetrics::getPosNearX.

8 years agoSome fixups to row margins
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 22:07:30 +0000 (00:07 +0200)]
Some fixups to row margins

In breakRow set left and right margin properly for RTL paragraphs.
Remove corresponding code from ComputeRowMetrics.

In row painter, check the use of left and right margin depending on
context. The problem in the original text is that the various
leftMargin() methods actually represent right margin for RTL
paragraphs. This should be fixed eventually.

8 years agoar.po: update from Hatim
Uwe Stöhr [Fri, 17 Jul 2015 20:16:00 +0000 (22:16 +0200)]
ar.po: update from Hatim

8 years agonew French translation of the PDF-comment example file
Uwe Stöhr [Fri, 17 Jul 2015 20:11:46 +0000 (22:11 +0200)]
new French translation of the PDF-comment example file

8 years agoFix logic error in on-screen font shape
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 10:07:52 +0000 (12:07 +0200)]
Fix logic error in on-screen font shape

This made text in smallcaps+emph display as upright instead of plain
emph. There is no latex font for smallcaps + emph, but it is not a
reason for displaying it wrong.

8 years agoChangelog-UserGuide-LyX_22x.txt: add a todo note
Uwe Stöhr [Thu, 16 Jul 2015 22:21:18 +0000 (00:21 +0200)]
Changelog-UserGuide-LyX_22x.txt: add a todo note

8 years agoEmbeddedObjects.lyx: update all language versions after [d16a95af/lyxgit]
Uwe Stöhr [Thu, 16 Jul 2015 22:19:27 +0000 (00:19 +0200)]
EmbeddedObjects.lyx: update all language versions after [d16a95af/lyxgit]

Please use change tracking when modifying the docs

8 years agoRemove old cruft
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:34:33 +0000 (23:34 +0200)]
Remove old cruft

There are many things that are not necessary anymore:

* remove methods paintText2, paintFromPos, leftMargin, paintInlineCompletion

* Remove use of Bidi class.

* add a Font and a Change parameter to paintInset.

Also remove a comment that describes what we have just done.

8 years agoRely on Row elements to draw rows.
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:18:55 +0000 (23:18 +0200)]
Rely on Row elements to draw rows.

The new version of paintText is quite short. Elements are treated one
by one. They are already in the right ordering.

The other changes are:

* a new paintChange method is added (using code lifted from old version)

* in paintLast, the support for end of paragraph markers is removed
  (this is already part of the Row object.

8 years agoCode cleanup in RowPainter
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:10:44 +0000 (23:10 +0200)]
Code cleanup in RowPainter

* move some code that handle selection to paintInset()

* change the arguments of paintSeparator()

8 years ago#9496 add a check for requested thesaurus files if thesaurusdir_path of lyxrc is...
Stephan Witt [Thu, 16 Jul 2015 20:06:23 +0000 (22:06 +0200)]
#9496 add a check for requested thesaurus files if thesaurusdir_path of lyxrc is empty
This path configuration variable is used for user defined location.
There are other possible places for the thesauri like mythes installers or bundled with LyX.

8 years agoSupport units in external inset bbox
Georg Baum [Thu, 16 Jul 2015 20:04:08 +0000 (22:04 +0200)]
Support units in external inset bbox

This brings the external inset on par with the graphics insets as far as the
clipping option is concerned. The graphicxs package supports both: A bounding
box without units (which means that bp ia assumed), and a bounding box with
units, so we can simply output the values including the units.

8 years agoUpdate default path prefix for Mac OS to include the texbin folder inside the TeX...
Stephan Witt [Thu, 16 Jul 2015 19:52:55 +0000 (21:52 +0200)]
Update default path prefix for Mac OS to include the texbin folder inside the TeX Library path and remove old powerpc path entries.
The upcoming Mac OS version 10.11 (El Capitan) will not allow TeX the installation of links inside the /usr directory anymore.

8 years ago#9496 factor out getting language from LFUN args or cursor position in speller LFUNs
Stephan Witt [Thu, 16 Jul 2015 19:26:41 +0000 (21:26 +0200)]
#9496 factor out getting language from LFUN args or cursor position in speller LFUNs

8 years agoVCBackend.cpp: addendum to [f51d7fdd/lyxgit]
Uwe Stöhr [Thu, 16 Jul 2015 19:10:50 +0000 (21:10 +0200)]
VCBackend.cpp: addendum to [f51d7fdd/lyxgit]

8 years agoRemove InsetGraphics noUnzip parameter
Georg Baum [Thu, 16 Jul 2015 18:44:47 +0000 (20:44 +0200)]
Remove InsetGraphics noUnzip parameter

Being able to compile document with zipped .eps files was a useful feature of
the graphicxs package 20 years ago, but the LyX support is no longer relevant:
- The flag is ignored if preview is on
- If pdflatex is used then uncompressing happens during the compilation anyway
- If set, the flag prevents LyX from issuing proper error messages if
something with the image is wrong
- For hard disk capacities from 20 years ago not uncompressing is a useful
feature, but for current hard disk capacities it does not matter
- The external inset does not have it, and if we want to merge both insets
one day we would need to implement it there, which is even more difficult
than in InsetGraphics

8 years agoUpdate comment.
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 14:29:55 +0000 (16:29 +0200)]
Update comment.

8 years agoEnd all Undo::Private members names with an underscore
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 12:48:23 +0000 (14:48 +0200)]
End all Undo::Private members names with an underscore

8 years agoMove some functions out of Bidi.*
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 09:55:45 +0000 (11:55 +0200)]
Move some functions out of Bidi.*

The functions reverseDirectionNeeded() and reverseDirectionNeeded() do
not rely on the Bidi class. The first one is changed into a Cursor
method, and the second one is replaced with explicit code.

8 years agoCompilation fix for windows
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 07:45:45 +0000 (09:45 +0200)]
Compilation fix for windows

Since commit 7ac70092, lyx::dispatch returns a DispatchResult const &,
which is ignored in the cases below. Nevertheless, the windows
compiler complains that it does not know this type. Gcc and clang can
deal with it without problem.

8 years agoRemove extra row painting added by horizontal scroll branch
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:48:49 +0000 (22:48 +0200)]
Remove extra row painting added by horizontal scroll branch

The bug workaround added an extra repaint, which can be very bad when
editing large tables.

It turns out that the bug this is trying to fix is due to the handling
of LFUN_LINE_END in InsetMathGrid. Adding the same code as in
InsetMathNest fixes the problem.

The workaround can therefore be removed.

8 years agoRename paintTextAndSel to paintStringAndSel
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:47:47 +0000 (22:47 +0200)]
Rename paintTextAndSel to paintStringAndSel

8 years agoWhen adding completion to a row, add also the unique part
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 19:38:55 +0000 (21:38 +0200)]
When adding completion to a row, add also the unique part

The unique and non-unique parts of the completion are show in different colors.

8 years agoAvoid crash when inserting space in the middle of misspelled character
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 18:36:51 +0000 (20:36 +0200)]
Avoid crash when inserting space in the middle of misspelled character

This is a fixup to commit 4796e6b3.

8 years agoAdd "TODO-comments" with link to textcyr/textgreek tickets.
Günter Milde [Wed, 15 Jul 2015 16:55:30 +0000 (18:55 +0200)]
Add "TODO-comments" with link to textcyr/textgreek tickets.

Add links to tickets #9637 and  #9681 at places that require
changes in the code and/or comments.