]> git.lyx.org Git - lyx.git/log
lyx.git
9 years agoAdd forward search command for qpdfview.
Enrico Forestieri [Sun, 13 Jul 2014 18:08:43 +0000 (20:08 +0200)]
Add forward search command for qpdfview.

Also update docs explaining how to activate reverse search in qpdfview.

9 years agoAdd some postscript and pdf viewers for Unix and Windows.
Enrico Forestieri [Sun, 13 Jul 2014 17:59:31 +0000 (19:59 +0200)]
Add some postscript and pdf viewers for Unix and Windows.

For Windows: AcroRd32 and gsview (both 32 and 64 bit versions).
For Unix: qpdfview.

Qpdfview is a nice alternative to Okular for KDE users and a superior
alternative to Evince for Gnome users, due to its complete synctex
support. It only depends on Qt libraries for the graphical interface.

9 years agoUse getent instead of grepping /etc/passwd.
Enrico Forestieri [Sun, 13 Jul 2014 12:39:05 +0000 (14:39 +0200)]
Use getent instead of grepping /etc/passwd.

Forthcoming versions of cygwin will use a different mechanism for
obtaining passwd/group information based on /etc/nsswitch.conf.
Thus, it will not be guaranteed that the files /etc/passwd and
/etc/group even exist. The recommended way for obtaining those
info is by using the getent command, which already works in
current versions.

9 years agoRevert 6a5aa1ca
Enrico Forestieri [Sat, 12 Jul 2014 17:52:12 +0000 (19:52 +0200)]
Revert 6a5aa1ca

That commit is obsoleted by 5bd14af8.

9 years agoFix bug #9193: Spacing modification not exact
Enrico Forestieri [Sat, 12 Jul 2014 17:12:08 +0000 (19:12 +0200)]
Fix bug #9193: Spacing modification not exact

The conversion from floating point to string performed by
boost:lexical_cast does not allow specifying a precision and,
for example, values such as 0.9 are resturned as 0.899999976.
The standard C++ way for performing the conversion is using
std::ostringstream which is exempt from this problem, even if
less efficient. For the sake of accuracy, boost::lexical_cast
is ditched in favor of the ostrinsgstream implementation.
In C++11 another option would be using std::to_string, but I
think it is not as efficient as the boost way and not worth
implementing through #ifdef's.
Incidentally, this patch would have also fixed #9190 and all
similar cases involving the use of convert<string>(float|double).

9 years agoFix compatibility issue with 64-bit cygwin.
Enrico Forestieri [Fri, 11 Jul 2014 14:49:10 +0000 (16:49 +0200)]
Fix compatibility issue with 64-bit cygwin.

9 years agoFix scale parameter for fonts.
Enrico Forestieri [Fri, 11 Jul 2014 14:12:08 +0000 (16:12 +0200)]
Fix scale parameter for fonts.

When a font is scaled by a certain percentage in the document settings,
LyX was outputting a ridiculous parameter value. For example, if the
font is scaled 90%, the corresponding parameter was "scaled=0.899999976".
The patch avoids this and, in the previous case, one gets "scaled=0.9".
This is not only cosmetic, because in roundtrip conversions the parameter
would be continuosly changing.

This commit and b60b505f should be backported to the 2.1.x branch, where
reimporting with tex2lyx an exported document produces wrong results
(also in version 2.1.0).

9 years agoFix import of latex documents with scaled fonts.
Enrico Forestieri [Fri, 11 Jul 2014 09:21:45 +0000 (11:21 +0200)]
Fix import of latex documents with scaled fonts.

9 years agoFix make check.
Enrico Forestieri [Fri, 11 Jul 2014 09:14:02 +0000 (11:14 +0200)]
Fix make check.

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

9 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

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

10 years agoSet the default locale at startup.
Enrico Forestieri [Wed, 11 Jun 2014 16:23:44 +0000 (18:23 +0200)]
Set the default locale at startup.

On startup, the default locale is "C", meaning that all system
functions assume an ascii codeset. The environment's locale
settings should be selected by calling setlocale(LC_ALL,"").
This is done by Qt during the QCoreApplication initialization
but this inizialization is never performed for batch processing
and, as a result, LyX is not able to process files whose names
contain non-ascii characters. This is not an issue on Windows,
where the file names are always stored as UTF-16, so the call is
only performed for unix-like platforms (this also includes cygwin,
due to its own filenames management that allows using characters
which are forbidden to native programs).

10 years agoFix thinko in loop detection
Georg Baum [Mon, 9 Jun 2014 20:06:58 +0000 (22:06 +0200)]
Fix thinko in loop detection

10 years agoFix wrong "externally modified" message
Georg Baum [Mon, 9 Jun 2014 11:17:40 +0000 (13:17 +0200)]
Fix wrong "externally modified" message

This was a regression of 10364082c835.

10 years agoRemove unsafe method FileName::tempName()
Georg Baum [Mon, 9 Jun 2014 11:05:50 +0000 (13:05 +0200)]
Remove unsafe method FileName::tempName()

FileName::tempName() created a new temp file name by using qt to create a
temporary file with a unique name, and then deleting that file and returning
the name. This was unsafe, since other processes or even other threads of the
running LyX could create files with the same name between deletion and then
using the temp name.
This is fixed by using the TempFile class instead. As a side effect, a few
cases where the temp files were not deleted after usage were fixed as well.
The only place that is still unsafe is createTmpDir().

10 years agoDon't double delete by making TempFile noncopyable
Georg Baum [Mon, 9 Jun 2014 10:59:47 +0000 (12:59 +0200)]
Don't double delete by making TempFile noncopyable

The compiler generated copy constructor and assignment operator are wrong.
This could easily be fixed by implementing them manually, but a) they are
not needed, and b) the semantics would be unclear (should the copy point
to a new temp file or not?), so it is better to forbid them.

10 years agoImprove file saving strategy
Georg Baum [Mon, 9 Jun 2014 09:08:24 +0000 (11:08 +0200)]
Improve file saving strategy

- The TempFile class guarantees to generate a file name, we are not limited to
  100 tries of a predictable scheme anymore, which could break if LyX
  frequently crashes.
- The temp file name generation has no race condition against another LyX
  instance in the same directory anymore.
- Symlinks survive saving again (regression of 10364082c835).

10 years agoFix typo
Georg Baum [Sat, 7 Jun 2014 19:22:26 +0000 (21:22 +0200)]
Fix typo

10 years agoCmake build: Use LYX_COMBO() to select the qt-version to use.
Kornel Benko [Mon, 9 Jun 2014 08:08:32 +0000 (10:08 +0200)]
Cmake build: Use LYX_COMBO() to select the qt-version to use.

Collaboration with Scott Kostyshak

10 years agoCmake build: Early check for wrong combo values
Kornel Benko [Mon, 9 Jun 2014 08:03:56 +0000 (10:03 +0200)]
Cmake build: Early check for wrong combo values

10 years agoCombine OutlineIn and OutlineOut blocks
Scott Kostyshak [Sat, 7 Jun 2014 04:41:20 +0000 (00:41 -0400)]
Combine OutlineIn and OutlineOut blocks

They differ only by adding/subtracting 1.

10 years agoCmake build: Add combo-values to the list of displayed lyx options
Kornel Benko [Sat, 7 Jun 2014 19:00:46 +0000 (21:00 +0200)]
Cmake build: Add combo-values to the list of displayed lyx options

10 years agoExplain why the binary detection works
Georg Baum [Sat, 7 Jun 2014 15:48:23 +0000 (17:48 +0200)]
Explain why the binary detection works

Extracted from Enricos comment at bug 9146.

10 years agoDocument class file name rule
Georg Baum [Sat, 7 Jun 2014 09:32:15 +0000 (11:32 +0200)]
Document class file name rule

This rule was followed in practice, but not documented so far.

10 years agoCmake build: Select full path to library
Kornel Benko [Sat, 7 Jun 2014 08:49:49 +0000 (10:49 +0200)]
Cmake build: Select full path to library

Testing for QT_USES_X11 links ok now also if the the qt-libraries
are on some non-conform place. (Like self compiled but not installed).

10 years agoFix bug #7954 (now really)
Georg Baum [Sat, 7 Jun 2014 08:50:11 +0000 (10:50 +0200)]
Fix bug #7954 (now really)

Thanks to maciejr we know now what the remaining problem was with bug 7954:
My unicode symbol fallback works fine, the problem was that a font named
"Symbol" is available on OS X, but it does not use the font-specific encoding
we expect: Almost all glyphs are at their unicode code point.
Therefore the bug is fixed by re-enabling the unicode workaround and blocking
the Symbol font on OS X.

10 years agoCmake build: Added convenience macro LYX_COMBO
Kornel Benko [Sat, 7 Jun 2014 08:45:13 +0000 (10:45 +0200)]
Cmake build: Added convenience macro LYX_COMBO

Will be used later to allow selection between multiple alternatives.

10 years agostd::min/max are defined in <algorithm>
Peter Kümmel [Sat, 7 Jun 2014 06:17:20 +0000 (08:17 +0200)]
std::min/max are defined in <algorithm>

handle error in msvc12 when linking against msvc10 libs

10 years agobuild with mingw on Windows and Linux
Peter Kümmel [Sat, 7 Jun 2014 05:59:52 +0000 (07:59 +0200)]
build with mingw on Windows and Linux

10 years agoExpand module names instead of buttons in settings
Scott Kostyshak [Tue, 27 May 2014 21:37:58 +0000 (17:37 -0400)]
Expand module names instead of buttons in settings

Maximizing the document settings window when on the modules pane,
the horizontal space is now given to the module names and so no
scrollbar is needed. Before, even when maximized, a scrollbar was
sometimes needed because the horizontal space was given to the
buttons in the middle, which did not provide an extra benefit.

The default sizeType was "Expanding" and is now changed to "Minimum"
for the horizontal spacer above the middle buttons.

10 years agoFix bug #9153 (Using mathpanel to insert matrix creates extra space on top)
Enrico Forestieri [Fri, 6 Jun 2014 14:14:24 +0000 (16:14 +0200)]
Fix bug #9153 (Using mathpanel to insert matrix creates extra space on top)

The code was setting the current index before filling the
combo box items.

10 years agoRefine fix for bug #9151.
Enrico Forestieri [Fri, 6 Jun 2014 13:35:24 +0000 (15:35 +0200)]
Refine fix for bug #9151.

Now the cursor in LyX jumps to the right spot instead of simply the
beginning of the paragraph. This is most useful for branch insets,
for example, which may contain long paragraphs.

10 years agoFix bug #9151 (Wrong reverse search for images and tables).
Enrico Forestieri [Thu, 5 Jun 2014 21:46:18 +0000 (23:46 +0200)]
Fix bug #9151 (Wrong reverse search for images and tables).

If the reverse position corresponds to an inset, its paragraph id
does not follow the main text numbering. Typically, an inset has
only a few paragraph, so that we would jump near the beginning of
the document. In this way we at least jump at the beginning of the
inset.

10 years agoFix bug #9146.
Enrico Forestieri [Thu, 5 Jun 2014 15:33:25 +0000 (17:33 +0200)]
Fix bug #9146.

If LyX does not know about a given file format, it may easily
happen that the format is recognized as "latex" and this causes
bug #9146. This patch limits the check for a latex format to
non-binary files. The strategy for deciding that a file has
binary content is the same as that adopted by the "less" program.

10 years agosk.po: erroneous formats in strings
Kornel Benko [Thu, 5 Jun 2014 11:30:00 +0000 (13:30 +0200)]
sk.po: erroneous formats in strings

10 years agoFix crash when accepting change
Jean-Marc Lasgouttes [Thu, 5 Jun 2014 10:18:09 +0000 (12:18 +0200)]
Fix crash when accepting change

The problem is the use of cursor movement methods to update cursor.
Cursor::forwardPos() steps into insets, which is not always what we
want. The problem here is that there is a math inset just after the
accepted change, and that the cursor steps into it for some reason.

This code is a nightmare anyway.

Fixes: bug #9145
10 years agoFix a regression reported at #9146
Scott Kostyshak [Wed, 4 Jun 2014 17:52:42 +0000 (13:52 -0400)]
Fix a regression reported at #9146

This regression was introduced by me at 8b66f9ce. I did not take
into account that a call to a python script containing $$s is embedded
within a separate python script. Thus, when commandPrep() is called it
only sees the call to the outer python script, and does not see the
$$s contained in that python script. It therefore did not substitute
for it. This fix simply calls commandPrep() directly before writing
the embedded command.

10 years agoDetect binary EPS files correctly (bug #9146)
Georg Baum [Wed, 4 Jun 2014 19:52:45 +0000 (21:52 +0200)]
Detect binary EPS files correctly (bug #9146)

The Adobe EPS file format specification (TN-5002, currently available at
http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf) specifies
a binary version of EPS files with integrated preview, sometimes also called
DOS EPS binary files. LyX 2.0 did recognize these files unreliably by
extension, but since f4eae12d they are misdetected as latex (bug #9146).
This change adds proper detection for these files using the officially
documented binary header.

10 years agoUse a different naming scheme, per Enrico's suggestion.
Richard Heck [Wed, 4 Jun 2014 16:46:42 +0000 (12:46 -0400)]
Use a different naming scheme, per Enrico's suggestion.