]> git.lyx.org Git - lyx.git/log
lyx.git
10 years agoFix make check.
Enrico Forestieri [Fri, 11 Jul 2014 09:14:02 +0000 (11:14 +0200)]
Fix make check.

10 years agoSupport new languages in tex2lyx
Georg Baum [Thu, 10 Jul 2014 20:15:34 +0000 (22:15 +0200)]
Support new languages in tex2lyx

I forgot that this was part of the file format update as well.
Also fix a mixup of "english" and "uppersorbian".

10 years agoMissing file format bis from 0c3b88e3
Georg Baum [Thu, 10 Jul 2014 19:59:17 +0000 (21:59 +0200)]
Missing file format bis from 0c3b88e3

10 years agoGet rid of rtl_support preference
Jean-Marc Lasgouttes [Wed, 9 Jul 2014 18:12:06 +0000 (20:12 +0200)]
Get rid of rtl_support preference

This variable was introduced to guard against any bad consequence of the then-new right-to-left
languages support. Let's be bold and get rid of it altogether!

Now right to left support is always enabled.

10 years agoRemove LyXRC option force_paint_single_char
Jean-Marc Lasgouttes [Tue, 8 Jul 2014 21:12:09 +0000 (23:12 +0200)]
Remove LyXRC option force_paint_single_char

It was not honored anymore.

10 years agoMove some text from the readme file to relevant source files
Jean-Marc Lasgouttes [Mon, 30 Jun 2014 13:55:30 +0000 (15:55 +0200)]
Move some text from the readme file to relevant source files

10 years agoReintroduce the code related to InsetEnvSeparator
Jean-Marc Lasgouttes [Mon, 30 Jun 2014 09:45:24 +0000 (11:45 +0200)]
Reintroduce the code related to InsetEnvSeparator

This commits (tries to) reintroduce properly the code that was reverted at the beginning of this branch. This had to be done because these patches interefered with the big refactoring of TextMetrics.cpp.

This commit reintroduces the changes to TextMetrics.cpp contained in c668ebf6c85dbfea9 and 061509bf.

10 years agoRemove obsolete code to handle Hebrew and Arabic characters
Jean-Marc Lasgouttes [Fri, 13 Jun 2014 14:33:58 +0000 (16:33 +0200)]
Remove obsolete code to handle Hebrew and Arabic characters

This is handled by Qt now.

Note that a small optimization (do not draw text that is to the left
of WorkArea) is removed because it cannot be guaranteed to be exact
anymore. It was probably not very useful anyway, and would become
useless once the RowPainter is rewritten to use Row information.

Update 00README_STR_METRICS_BRANCH.

10 years agoDo not split words at selection boundary
Jean-Marc Lasgouttes [Fri, 23 May 2014 16:59:53 +0000 (18:59 +0200)]
Do not split words at selection boundary

The display of partially-selected word is now done in a new Painter::text method
which displays the string twice with different clip settings. This allows to
catter for the case where Color_selectiontext is not black.

Morover, the code that uses unicode override characters to force the
direction of a string is moved to lstrings.h.

Fixes: #9116
10 years agoFix breaking of loooong word in RTL languages
Jean-Marc Lasgouttes [Mon, 19 May 2014 09:35:15 +0000 (11:35 +0200)]
Fix breaking of loooong word in RTL languages

Moreover, breaks row at insets when there is no suitable separator.

Also make the code of Row::shorten_if_needed somewhat simpler by using
iterators and factoring the code.

Fixes: #9120
10 years agoFix positionning of cursor
Jean-Marc Lasgouttes [Wed, 14 May 2014 15:46:43 +0000 (17:46 +0200)]
Fix positionning of cursor

The old implementation of Row::Element::pos2x and x2pos did not work
correctly with Arabic text, because characters can have shapes that
depend on context.

This new implementation leverages QTextLayout in a simplified way,
since only one word is added to the layout.

This allows to make Row::Element::x2pos more readable.

Fixes: #9115.
10 years agoRemove support for LyXRC::force_paint_single_char
Jean-Marc Lasgouttes [Wed, 14 May 2014 13:36:44 +0000 (15:36 +0200)]
Remove support for LyXRC::force_paint_single_char

This workaround is not necessary anymore, and it complicates the code.

The variable itself will be removed after the landing of the branch on
master.

10 years agoUpdate description of what has been done in the branch.
Jean-Marc Lasgouttes [Mon, 12 May 2014 09:02:22 +0000 (11:02 +0200)]
Update description of what has been done in the branch.

10 years agoRemove debug code from TextMetrics
Jean-Marc Lasgouttes [Fri, 2 May 2014 13:55:10 +0000 (15:55 +0200)]
Remove debug code from TextMetrics

After this, it is possible to remove one parameter to getPosNearX.

10 years agoSpeed-up drawing when text is not justified.
Jean-Marc Lasgouttes [Fri, 2 May 2014 13:03:20 +0000 (15:03 +0200)]
Speed-up drawing when text is not justified.

Do not cut strings at separators in RowPainter when text is not
justified. This speeds-up painting by reducing the number of strings
to draw.

Do also a modest cleanup of paintChar (remove dubious optimization).

10 years agoImplement a better solution for painting of RTL text
Jean-Marc Lasgouttes [Wed, 30 Apr 2014 14:15:31 +0000 (16:15 +0200)]
Implement a better solution for painting of RTL text

Instead of relying on character range (Hebrew or Arabic) or character
direction, use RLO unicode character (Right-to-Left override) to force
painting in the direction indicated by the current font. This should
be as close as we can to the old LyX behavior (and requires less
code).

If this code works as intended, it will be possible to remove a lot of
code from Encodings.cpp.

10 years agoDraw right-to-left text string-wise using Qt
Jean-Marc Lasgouttes [Thu, 10 Apr 2014 14:37:21 +0000 (16:37 +0200)]
Draw right-to-left text string-wise using Qt

We rely on Qt built-in unicode support for handling Arabic and Hebrew
compose characters. This allows to avoid to use our homegrown
machinery.

This  should provide a nice speedup at a low cost and
will eventually allow us to get rid of:
 * most of our Arabic/Hebrew machinery in Encodings.cpp,
 * Paragraph::transformChar,
 * and probably more.

10 years agoFix various selection-related problems
Jean-Marc Lasgouttes [Fri, 21 Mar 2014 10:56:42 +0000 (11:56 +0100)]
Fix various selection-related problems

All these problems are related to what happens at the extreme points of rows

 * since VIRTUAL elements have a width but no contents, they have to
   be treated specially at some places. It would have been better to
   avoid testing for them explicitly, but I did not find a way.

 * Improve and cleanup the code in breakRow and fix in passing a crash
   when clicking on the right of an incomplete MARGIN_MANUAL
   paragraph.

 * improve the computation of row width in TextMetrics::computeRowMetrics.

 * handle properly the case where a position if not found on the row
   in both cursorX and getPosNearX (actually, this happens when
   selecting).

 * Some code cleanup and comments.

10 years agoFix bug #9040: In RtL documents end-of-paragraph marker shifts the row display
Jean-Marc Lasgouttes [Thu, 20 Mar 2014 10:00:14 +0000 (11:00 +0100)]
Fix bug #9040: In RtL documents end-of-paragraph marker shifts the row display

The fact that the bug was still present in the features/str-metrics
branch comes from a goof in the initial implementation of 'virtual'
row elements (completion and end-of-par markers). Now that this is
corrected, everything works as it should.

The fact that the bug is present in master is due to some other reason
that is not useful to investigate now.

10 years agoUpdate README and do a small code cleanup
Jean-Marc Lasgouttes [Mon, 3 Mar 2014 14:29:37 +0000 (15:29 +0100)]
Update README and do a small code cleanup

10 years agoChange getColumnNearX to getPosNearX
Jean-Marc Lasgouttes [Fri, 20 Dec 2013 13:02:31 +0000 (14:02 +0100)]
Change getColumnNearX to getPosNearX

The semantics was bad: the old implementation would return pos - row.pos(), and then all user of the function had to re-add row.pos().

10 years agoRemove unneeded swap() (thanks Jean-Marc)
Georg Baum [Mon, 7 Jul 2014 19:16:10 +0000 (21:16 +0200)]
Remove unneeded swap() (thanks Jean-Marc)

std::swap() does exactly the same thing, and avoiding code duplication is
always good.

10 years agoFix a bunch of small performance issues spotted by cppcheck
Jean-Marc [Sat, 5 Jul 2014 17:13:10 +0000 (19:13 +0200)]
Fix a bunch of small performance issues spotted by cppcheck

Most of these are about passing const strings parameters as references.

10 years agoFix possible bug spotted by cppcheck
Jean-Marc [Sat, 5 Jul 2014 17:12:09 +0000 (19:12 +0200)]
Fix possible bug spotted by cppcheck

I am not sure what this locking is really about, but the new code seems to be the right thing to do.

10 years agoFix typo spotted by cppcheck
Jean-Marc [Sat, 5 Jul 2014 16:01:19 +0000 (18:01 +0200)]
Fix typo spotted by cppcheck

10 years agoMark some singletons with FIXME THREAD
Georg Baum [Sat, 5 Jul 2014 13:20:54 +0000 (15:20 +0200)]
Mark some singletons with FIXME THREAD

10 years agoMake GraphicsConverter threadsafe
Georg Baum [Sat, 5 Jul 2014 13:11:24 +0000 (15:11 +0200)]
Make GraphicsConverter threadsafe

build_script() was already threadsafe, since it used a TempFile, and the
counter was basically not needed, but the new solution makes this obvious
and has the additional advantage that TempFile constructs the real output
file, not a dummy without extension which is not needed.

10 years agoFix uncodable author warning
Georg Baum [Sat, 5 Jul 2014 12:49:51 +0000 (14:49 +0200)]
Fix uncodable author warning

The old code was not threadsafe, and the restriction to one message box per
author name did not work if more than two authors were uncodable.

10 years agoFix LaTeXFeatures::useLayout() recursion test
Georg Baum [Sat, 5 Jul 2014 12:37:55 +0000 (14:37 +0200)]
Fix LaTeXFeatures::useLayout() recursion test

It was broken in two ways: It was not threadsafe, and it did never detect
any recursion, since the counter was decremented for each non-recursive call
and never incremented again.

10 years agoMake LaTeX export threadsafe.
Georg Baum [Sat, 5 Jul 2014 12:23:43 +0000 (14:23 +0200)]
Make LaTeX export threadsafe.

This is one of the more important threadsafety issues because of export in
thread and simultanous view source. The solution is ugly, but a better one
(see FIXME) would require major rework. These static variables should not
have been used in the first place IMHO.

10 years agoSupport for Swiss German (old spelling)
Juergen Spitzmueller [Sat, 5 Jul 2014 11:38:55 +0000 (13:38 +0200)]
Support for Swiss German (old spelling)

10 years agoMake newUnnamedFile() threadsafe
Georg Baum [Sat, 5 Jul 2014 10:58:22 +0000 (12:58 +0200)]
Make newUnnamedFile() threadsafe

10 years agoMake BufferList::fileNames() threadsafe
Georg Baum [Sat, 5 Jul 2014 10:51:40 +0000 (12:51 +0200)]
Make BufferList::fileNames() threadsafe

Using a static variable here was premature optimization: fileNames() is only
called from GuiRef (directly or indirectly), and since this is a dialog the
copying of a FileNameList is not noticeable at all.

10 years agoMake BufferParams::auto_packages() threadsafe
Georg Baum [Sat, 5 Jul 2014 10:39:59 +0000 (12:39 +0200)]
Make BufferParams::auto_packages() threadsafe

10 years agoMake createBufferTmpDir() threadsafe
Georg Baum [Sat, 5 Jul 2014 10:31:12 +0000 (12:31 +0200)]
Make createBufferTmpDir() threadsafe

This must not use thread local storage, since the generated directories are
all in the same parent directory which is unique per running LyX instance.

10 years agoMake DocFileName::mangledFileName() threadsafe
Georg Baum [Sat, 5 Jul 2014 10:22:08 +0000 (12:22 +0200)]
Make DocFileName::mangledFileName() threadsafe

10 years agoMake include and bibitem insets threadsafe
Georg Baum [Sat, 5 Jul 2014 10:09:49 +0000 (12:09 +0200)]
Make include and bibitem insets threadsafe

Using a mutex to ensure that the generated filenames and ids are still unique.

10 years agoMake Formats::isZippedFile() threadsafe
Georg Baum [Sat, 5 Jul 2014 09:55:35 +0000 (11:55 +0200)]
Make Formats::isZippedFile() threadsafe

In this case I use a mutex, so the zip status of files is shared between
threads. This is possible because a deadlock can't happen, and it should give
better performance.

10 years agoFix Tabular::CellData::operator=()
Georg Baum [Sat, 5 Jul 2014 09:44:13 +0000 (11:44 +0200)]
Fix Tabular::CellData::operator=()

Don't create an intermediate copy (found by Jean-Marc).
I doubt that this has anything to do with the mystery crash, but it works, and
following the standard patterns is better anyway.

10 years agoMake preview filename generation threadsafe
Georg Baum [Sat, 5 Jul 2014 09:19:34 +0000 (11:19 +0200)]
Make preview filename generation threadsafe

Threadsafety is ensured by the atomic file name generation in TempFile.

10 years agoMake theWordList() thread safe.
Georg Baum [Fri, 4 Jul 2014 20:19:43 +0000 (22:19 +0200)]
Make theWordList() thread safe.

Without this, you get crashes in a few second when you set the autosave
interval to one second and edit quickly (typing new words etc). The reason
is that the cloned buffer wants to insert words into the word list and
remove them again, but it lives in a different thread.

10 years agoMake WordList noncopyable
Georg Baum [Fri, 4 Jul 2014 19:15:21 +0000 (21:15 +0200)]
Make WordList noncopyable

To avoid unwanted double deletion of d.

10 years agoDon't guess whether autosave succeeded
Georg Baum [Fri, 4 Jul 2014 19:06:49 +0000 (21:06 +0200)]
Don't guess whether autosave succeeded

writeFile() tells whether it could save the file, so use the return value
instead of guessing.

10 years agoFix bug #9162: Missing \use_indices
Georg Baum [Fri, 4 Jul 2014 17:55:44 +0000 (19:55 +0200)]
Fix bug #9162: Missing \use_indices

The lyx2lyx conversion for format 352 was incomplete: It should have been
added the \use_indices setting, but it relied on the fact that the default in
LyX for missing \use_indices is the same as the old format without that
setting used. However, the default might change in the future, and later
lyx2lyx conversions rely on that setting as well.

10 years ago* sk.po: New pdfcomment strings
Kornel Benko [Thu, 3 Jul 2014 15:30:02 +0000 (17:30 +0200)]
* sk.po: New pdfcomment strings

10 years agoCorrected tooltip search string.
Kornel Benko [Thu, 3 Jul 2014 11:52:52 +0000 (13:52 +0200)]
Corrected tooltip search string.

This worked wrong in case where the text contained the string 'tooltip' too.

10 years agoDocument pdfcomment in LaTeXConfig.lyx
Juergen Spitzmueller [Thu, 3 Jul 2014 09:32:53 +0000 (11:32 +0200)]
Document pdfcomment in LaTeXConfig.lyx

10 years agoAdd support for the pdfcomment package.
Juergen Spitzmueller [Thu, 3 Jul 2014 09:30:56 +0000 (11:30 +0200)]
Add support for the pdfcomment package.

Fixes: #6975.
10 years ago* sk.po: New poster strings
Kornel Benko [Wed, 2 Jul 2014 17:59:09 +0000 (19:59 +0200)]
* sk.po: New poster strings

10 years agoSome comments
Juergen Spitzmueller [Wed, 2 Jul 2014 12:44:38 +0000 (14:44 +0200)]
Some comments

10 years agoSupport for conference posters
Juergen Spitzmueller [Wed, 2 Jul 2014 12:01:28 +0000 (14:01 +0200)]
Support for conference posters

The following poster classes are now supported:

* a0poster
* beamerposter
* sciposter

10 years agoAdd support for the sectionbox and tcolorbox packages.
Juergen Spitzmueller [Wed, 2 Jul 2014 11:48:01 +0000 (13:48 +0200)]
Add support for the sectionbox and tcolorbox packages.

They will be used by the conference poster classes that will be supported in a minute.

10 years agoBabel now supports Swiss German
Juergen Spitzmueller [Wed, 2 Jul 2014 11:19:07 +0000 (13:19 +0200)]
Babel now supports Swiss German

10 years agoPolyglossia now supports Austrian German
Juergen Spitzmueller [Wed, 2 Jul 2014 11:14:11 +0000 (13:14 +0200)]
Polyglossia now supports Austrian German

10 years agoctests: un-invert some tests after updates
Scott Kostyshak [Wed, 2 Jul 2014 01:14:29 +0000 (21:14 -0400)]
ctests: un-invert some tests after updates

David Carlisle fixed some EuropeCV issues and other updates
on TeX Live 2014 fixed a few more exports.

10 years agoMake IconvProcessor::Impl noncopyable
Georg Baum [Tue, 1 Jul 2014 20:23:06 +0000 (22:23 +0200)]
Make IconvProcessor::Impl noncopyable

The compiler-generated copy-constructor and assigment operators would be wrong
for IconvProcessor::Impl, since cd would be copied, and iconv_close() could
thus be called twice on the same descriptor. The old code did work, but now
IconvProcessor::Impl cannot be copied by accident in the future.

10 years agoFix memory leak and assignment operator signature
Georg Baum [Tue, 1 Jul 2014 20:13:54 +0000 (22:13 +0200)]
Fix memory leak and assignment operator signature

The IconvProcessor assignment operator did not delete pimpl_ and used a
non-standard signature. If you want to know why the standard signature is
important, read "Effective C++" by Scott Meyers.

10 years agoThe flush should be done on either branch.
Richard Heck [Sun, 29 Jun 2014 19:40:17 +0000 (15:40 -0400)]
The flush should be done on either branch.

10 years agoUpdate it.po
Enrico Forestieri [Sat, 28 Jun 2014 17:19:35 +0000 (19:19 +0200)]
Update it.po

10 years agoRestore compilation of AEA template for TeX Live
Scott Kostyshak [Sat, 28 Jun 2014 02:38:48 +0000 (22:38 -0400)]
Restore compilation of AEA template for TeX Live

After the previous change this document failed to compile under
TeX Live 2013 and 2014. By using a different bib file, it
compiles. For more information, see
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg183786.html

10 years agoAEA.lyx: update format
Scott Kostyshak [Sat, 28 Jun 2014 02:34:46 +0000 (22:34 -0400)]
AEA.lyx: update format

10 years agoWork around MSVC warning
Georg Baum [Thu, 26 Jun 2014 19:05:40 +0000 (21:05 +0200)]
Work around MSVC warning

The statement
if (pos < from + lyxrc.completion_minlength)
triggers a signed vs. unsigned warning. I don't know why this happens, it
could be a MSVC bug, or related to LLP64 (windows) vs. LP64 (unix)
programming model, or the C++ standard might be ambigous in the section
defining the "usual arithmetic conversions". However, using a temporary
variable is safe and works on all compilers.

10 years agoSmall fixes to cursor positioning.
Jean-Marc Lasgouttes [Fri, 20 Dec 2013 11:12:27 +0000 (12:12 +0100)]
Small fixes to cursor positioning.

Two small fixed to Row::Element::x2pos:
* fix position for elements that are not strings
* make rounding match the old code

10 years agoMore fixes to cursorX
Jean-Marc Lasgouttes [Fri, 18 Oct 2013 15:55:30 +0000 (17:55 +0200)]
More fixes to cursorX

In Row::Element::pos2x, handle the boundaries in a cleaner way.

10 years agoSome fixes related to RTL text
Jean-Marc Lasgouttes [Wed, 19 Mar 2014 13:44:53 +0000 (14:44 +0100)]
Some fixes related to RTL text

 * fix handling of boundary situations in Row::Elements::x2pos;

 * fix handling of boundary situations in TextMetrics::getColumnNearX;

 * make sure to always use Font::isVisibleRightToLeft instead of Font::isRightToLeft;

 * Improve debug messages.

10 years agoNew reverseRTL implementation
Jean-Marc Lasgouttes [Wed, 19 Mar 2014 13:44:31 +0000 (14:44 +0100)]
New reverseRTL implementation

The old version was a bit complicated and wrong for RtL paragraphs
containing LtR text. THe new one is clearer.

10 years agoFix getColumnNearX for nested insets
Jean-Marc Lasgouttes [Fri, 11 Oct 2013 14:12:20 +0000 (16:12 +0200)]
Fix getColumnNearX for nested insets

The horizontal position of the inset was not taken in account.
The rounding is not always the same as with the old code, but this
is not really important.

Additional changes:

 * improve debug output of rows

 * remove Bidi& argument of the RowPainter constructor, since it is always
   an empty Bifi that is passed. This means that the Bidi class is not
   used at all any more in TextMetrics.cpp. The only remaining user is
   RowPainter.

10 years agoFix line breaking algorithm
Jean-Marc Lasgouttes [Tue, 23 Jul 2013 14:24:01 +0000 (16:24 +0200)]
Fix line breaking algorithm

Break words longer than the screen width. The code is more complicated
than I would like, but I have no better idea right now.

Implement properly the notion of a row broken by a display inset. This is useful in different places.

Also fix a bug with last line of a paragraph spotted by Kornel.

10 years agoHandle boundary in getColumnNearX (and more)
Jean-Marc Lasgouttes [Sun, 21 Jul 2013 18:22:32 +0000 (20:22 +0200)]
Handle boundary in getColumnNearX (and more)

Use proper font everywhere for end-of-par marker

Fix getColumnNearX for RTL text and for centered/right-justified paragraphs.

Let computeRowMetrics update the row width.

10 years agoRe-implement getColumNearX using row elements
Jean-Marc Lasgouttes [Sun, 21 Jul 2013 18:22:32 +0000 (20:22 +0200)]
Re-implement getColumNearX using row elements

The code is now so much shorter that it is scary... Expect that
further changes will be necessary

Cursor boundary is not handled yet.

10 years agoGet rid of ugly font metrics workarounds.
Jean-Marc Lasgouttes [Sun, 21 Jul 2013 10:24:08 +0000 (12:24 +0200)]
Get rid of ugly font metrics workarounds.

Now we have proper ligatures and kerning on screen...

10 years agoConvert cursorX() and computeRowMetrics() to the new scheme
Jean-Marc Lasgouttes [Wed, 17 Jul 2013 22:25:08 +0000 (00:25 +0200)]
Convert cursorX() and computeRowMetrics() to the new scheme

* convert cursorX to new scheme; old computation is still there for the sake of comparison.

* use Row to compute separator width in computeRowMetrics; again, the old code is retained for now.

* Get rid of rowWidth()

10 years agoSmall Inset isXXX methods cleanup
Jean-Marc Lasgouttes [Thu, 18 Jul 2013 08:55:52 +0000 (10:55 +0200)]
Small Inset isXXX methods cleanup

 * rename isStretchableSpace to isHfill
 * inline a trivial method
 * remove InsetIPAMacro::isLineSeparator, which has the same value as default.

10 years agoImplement proper handling of RtL in Rows
Jean-Marc Lasgouttes [Tue, 16 Jul 2013 22:59:34 +0000 (00:59 +0200)]
Implement proper handling of RtL in Rows

Now the row elements are sorted according to RtL/LtR.

Some additional cleanup.

10 years agoStore in the Row object the list of elements it contains
Jean-Marc Lasgouttes [Tue, 25 Jun 2013 12:57:09 +0000 (14:57 +0200)]
Store in the Row object the list of elements it contains

* Row now contains a vector of Elements
* replace Row::dump by a proper << operator
* the width is updated as elements are added
* breakRow is reimplmented to use this infrastructure

10 years agoImplement real string width computation
Jean-Marc Lasgouttes [Tue, 25 Jun 2013 06:18:25 +0000 (08:18 +0200)]
Implement real string width computation

Important features:
* widths are cached in a map
* old behavior is still used when lyxrc.force_paint_single_char is true.

10 years agoAdd a readme file describing the state of the branch
Jean-Marc Lasgouttes [Tue, 18 Jun 2013 08:18:32 +0000 (10:18 +0200)]
Add a readme file describing the state of the branch

10 years agoChange TextMetrics::rowHeight to setRowHeight
Jean-Marc Lasgouttes [Fri, 14 Jun 2013 17:24:29 +0000 (19:24 +0200)]
Change TextMetrics::rowHeight to setRowHeight

This new function takes a row as parameter.

Also, add direct access to Row::dim_

10 years agoCleanup TextMetrics::rowBreakPoint.
Jean-Marc Lasgouttes [Thu, 13 Jun 2013 22:01:49 +0000 (00:01 +0200)]
Cleanup TextMetrics::rowBreakPoint.

Collect properly all strings to compute string metrics

Some changes with respect to existing code
 - end of paragraph font is now the one of the text
 - words longer than a line are not broken anymore. I think this is not useful  if we have horizontal scrollbar

Other than that, the code is still compatible with rowWidth and friends.

10 years agoRevert temporarily changes related to InsetSeparator
Jean-Marc Lasgouttes [Wed, 25 Jun 2014 10:39:58 +0000 (12:39 +0200)]
Revert temporarily changes related to InsetSeparator

This is to avoid many conflicts with the str-metrics branch.

10 years agoRemove an incorrect/expired FIXME
Scott Kostyshak [Mon, 23 Jun 2014 12:03:44 +0000 (08:03 -0400)]
Remove an incorrect/expired FIXME

Both Richard and JMarc think it is incorrect. See
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184758.html

10 years agoCMake: full path of an include needed for ver <3.0
Scott Kostyshak [Sun, 22 Jun 2014 00:43:06 +0000 (20:43 -0400)]
CMake: full path of an include needed for ver <3.0

10 years agoCmake tests: Optimizing the cmake configuration time
Kornel Benko [Sat, 21 Jun 2014 19:15:54 +0000 (21:15 +0200)]
Cmake tests: Optimizing the cmake configuration time

The configuration time suffers mostly on checking, which of the export tests
is to be reverted.
1.) There is a new configuration flag now, "LYX_ENABLE_EXOPRT_TESTS.
   If not set (default) no export tests are created.
2.) If set, then the optimization halves the time needed for creation of tests.

The effect on my side:
        a.) Until now the time was:        ~ 26 seconds
        b.) The optimized time is now:     ~ 16 seconds
        c.) With not enabled export tests: ~  5 seconds

10 years agoctests: Use regular expressions
Kornel Benko [Thu, 19 Jun 2014 19:04:18 +0000 (21:04 +0200)]
ctests: Use regular expressions

10 years agoUpdate ctests to reflect inputenc changes
Scott Kostyshak [Thu, 19 Jun 2014 14:26:15 +0000 (10:26 -0400)]
Update ctests to reflect inputenc changes

There were changes to inputenc and luainputenc that are now
released in Tex Live 2014 that affect several exports. Some
exports that produced good PDFs now fail. Others that produced
incorrect PDFs (with gibberish) now correctly fail. Several
IEEEtran-* exports failed before and now export correct PDFs.

For more information, see

  http://tug.org/pipermail/tex-live/2014-May/035338.html
  https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184435.html

10 years agoFix a comment
Scott Kostyshak [Thu, 19 Jun 2014 05:34:17 +0000 (01:34 -0400)]
Fix a comment

10 years agoGive more tips in beamer-article.lyx
Scott Kostyshak [Thu, 19 Jun 2014 05:44:15 +0000 (01:44 -0400)]
Give more tips in beamer-article.lyx

10 years ago* sk.po: spellcheck changes
Kornel Benko [Wed, 18 Jun 2014 13:51:27 +0000 (15:51 +0200)]
* sk.po: spellcheck changes

10 years agoFix license string according to http://spdx.org/licenses/.
Pavel Sanda [Tue, 17 Jun 2014 16:50:28 +0000 (09:50 -0700)]
Fix license string according to http://spdx.org/licenses/.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg184749.html

10 years agoOn Linux show in crash message box the backtrace
Peter Kümmel [Sat, 7 Jun 2014 09:12:31 +0000 (11:12 +0200)]
On Linux show in crash message box the backtrace

10 years agoSelect word on double click even when at boundary
Scott Kostyshak [Fri, 13 Jun 2014 13:43:26 +0000 (09:43 -0400)]
Select word on double click even when at boundary

Now when double clicking on a boundary of a word, the
word is selected. This also causes single-letter words
to now be selected (fixes #9159).

10 years agoFix checkmark on current entry for InsetSeparator context menu
Jean-Marc Lasgouttes [Fri, 13 Jun 2014 08:30:25 +0000 (10:30 +0200)]
Fix checkmark on current entry for InsetSeparator context menu

The code supposed to do that contained a typo and was not completely correct.

10 years agoFrench documentation files: port today's changes
Uwe Stöhr [Thu, 12 Jun 2014 23:27:19 +0000 (01:27 +0200)]
French documentation files: port today's changes

10 years agoAdd comment and fix a typo
Scott Kostyshak [Thu, 12 Jun 2014 21:34:04 +0000 (17:34 -0400)]
Add comment and fix a typo

10 years agoCmake build: Symplify use of linking optional libraries found via find_package
Kornel Benko [Thu, 12 Jun 2014 17:02:29 +0000 (19:02 +0200)]
Cmake build: Symplify use of linking optional libraries found via find_package

10 years agoApple has builtin native spell checker, no need to warn for missing Aspell, hunspell...
Stephan Witt [Thu, 12 Jun 2014 12:55:56 +0000 (14:55 +0200)]
Apple has builtin native spell checker, no need to warn for missing Aspell, hunspell or Enchant

10 years agoCmake tests: Added parser_tools test to the lyx2lyx group tests
Kornel Benko [Thu, 12 Jun 2014 07:07:57 +0000 (09:07 +0200)]
Cmake tests: Added parser_tools test to the lyx2lyx group tests

10 years agoCmake build: Use LYX_USE_QT to determine if QT uses X11
Kornel Benko [Thu, 12 Jun 2014 05:52:45 +0000 (07:52 +0200)]
Cmake build: Use LYX_USE_QT to determine if QT uses X11

10 years agoCmake build: Added magic library to some link commands.
Kornel Benko [Thu, 12 Jun 2014 05:49:17 +0000 (07:49 +0200)]
Cmake build: Added magic library to some link commands.

Needed due to the use of magic_(open|load|error|file|close) after recent changes.

10 years agoMake binary file detection more robust.
Enrico Forestieri [Wed, 11 Jun 2014 21:04:39 +0000 (23:04 +0200)]
Make binary file detection more robust.

The magic library can detect the charset used by a file. While this
detection is not full proof, actually the library seems to be infallible
as regards the binary nature of a file. So, use libmagic for the detection
and fallback to the previous method if the library is not installed or
its database cannot be loaded.