]> git.lyx.org Git - features.git/log
features.git
8 years agoNew helper method Row::Element::isRTL()
Jean-Marc Lasgouttes [Fri, 18 Sep 2015 14:42:24 +0000 (15:42 +0100)]
New helper method Row::Element::isRTL()

8 years agode.po
Juergen Spitzmueller [Mon, 21 Sep 2015 08:24:21 +0000 (10:24 +0200)]
de.po

8 years agoAdd assertions, just to be sure.
Richard Heck [Sun, 20 Sep 2015 16:32:24 +0000 (12:32 -0400)]
Add assertions, just to be sure.

Fixes coverity issue #111941.

8 years agoWin installer: preparations for a new build
Uwe Stöhr [Sun, 20 Sep 2015 23:53:15 +0000 (01:53 +0200)]
Win installer: preparations for a new build

- the long awaited MiKTeX installer is available, this fixes many installation errors in LyX is installed for the first time (I will provide a new installer build as soon as I find more time)

8 years agoRemove unused variables found by cppcheck
Georg Baum [Sun, 20 Sep 2015 19:39:59 +0000 (21:39 +0200)]
Remove unused variables found by cppcheck

There are still a few warnings of the kind
(style) Variable 'x' is assigned a value that is never used.
since I did not touch code where I was not sure whether there might be a real
bug, and I kept some for symmetry reasons as well.

8 years agoFix missing xhtml output found by cppcheck
Georg Baum [Sun, 20 Sep 2015 18:47:33 +0000 (20:47 +0200)]
Fix missing xhtml output found by cppcheck

Actually I don't know if this operator is used at all, but if it exists then
it must output something.

8 years agoFix wrong label found by cppcheck
Georg Baum [Sun, 20 Sep 2015 18:32:45 +0000 (20:32 +0200)]
Fix wrong label found by cppcheck

It was not intended to ignore the return value of expandParagraphLabel().

8 years agoForbid wrong compiler generated copy constructors
Georg Baum [Sun, 20 Sep 2015 17:43:06 +0000 (19:43 +0200)]
Forbid wrong compiler generated copy constructors

This fixes cppcheck warnings (style) 'class x' does not have a copy constructor
which is recommended since the class contains a pointer to allocated memory.

8 years agoUse Require instead of AddToPreamble
Georg Baum [Sun, 20 Sep 2015 17:33:43 +0000 (19:33 +0200)]
Use Require instead of AddToPreamble

This plays more nicely with other modules requiring enumitem as well.

8 years agoAmend 94e992c5
Guillaume Munch [Sun, 20 Sep 2015 17:24:45 +0000 (19:24 +0200)]
Amend 94e992c5

Fix compilation with --disable-cxx11

8 years agoAdd comment regarding fall through.
Richard Heck [Sun, 20 Sep 2015 16:34:49 +0000 (12:34 -0400)]
Add comment regarding fall through.

Coverity issue #111940.

8 years agoUpdate sk.po
Kornel Benko [Sun, 20 Sep 2015 12:59:45 +0000 (14:59 +0200)]
Update sk.po

8 years agoCreate module for paralist.sty
Georg Baum [Sun, 20 Sep 2015 11:05:30 +0000 (13:05 +0200)]
Create module for paralist.sty

paralist.sty extends the standard list environments by some more compact
versions. Support for this has already been requested 15 years ago, and
now I needed it myself.

8 years agoWork around encoding bug
Georg Baum [Sun, 20 Sep 2015 10:41:44 +0000 (12:41 +0200)]
Work around encoding bug

It looks like the author names are sometimes not encoded correctly.
We'll need to find out where this happens, but for now just fix the symptom.

8 years agoFix cppcheck variable scope warnings
Georg Baum [Sun, 20 Sep 2015 08:42:35 +0000 (10:42 +0200)]
Fix cppcheck variable scope warnings

These were all flagged by "(style) The scope of the variable 'x' can be reduced."
Narowing the scope improves readability, and if it is in a loop then the
compiler will be clever enough to produce efficient code, we do not need
manual optimization for POD types.

8 years agoRefuse to run tex2lyx tests with in-source builds
Georg Baum [Thu, 17 Sep 2015 20:11:18 +0000 (22:11 +0200)]
Refuse to run tex2lyx tests with in-source builds

As Günter found out running the tex2lyx tests overwrites the test references
if the build directory is identical to the source directory. Therefore the
tests would always pass, but git diff would show a non-empty diff if the tests
should have failed. Since it is better anyway to build in a separate directory
we simply do not support srcdir = builddir for the tests and abort with an
error.

8 years agorestore crucial float information in note insets (bug #9760)
Juergen Spitzmueller [Tue, 15 Sep 2015 20:58:49 +0000 (22:58 +0200)]
restore crucial float information in note insets (bug #9760)

8 years agoNew class InsetCaptionable
Guillaume Munch [Wed, 2 Sep 2015 18:53:13 +0000 (19:53 +0100)]
New class InsetCaptionable

This generalises the new use of TocBuilder (97e8101) to listings and wraps and
removes some duplicate code.

Make sure that we will never write an empty float type again in the future
(#9760)

8 years agoBetter construction of the TOC for floats and captions
Guillaume Munch [Tue, 1 Sep 2015 16:08:35 +0000 (17:08 +0100)]
Better construction of the TOC for floats and captions

We introduce TocBuilder for building TOCs that take into account both float
insets and their captions.

* Floats without caption are shown with their content.

* Floats with a caption are shown with their caption, but clicking the entry now
  correctly moves to the float and not to the caption.

* Subsequent captions produce additional entries in the TOC.

* Figures and subfigures are correctly ordered in the outliner.

* New TOC "senseless" for captions appearing alone (a bit like broken references
are still displayed in the menu and outliner).

* Disable LFUN_CAPTION_INSERT if there is already a caption in a listing

Known issues:

* Inconsistent output for includes located inside floats

* We should record the end of the float in addition of the beginning for a more
  accurate cursor -> outliner entry conversion

8 years agoDo not show subfigures in the menu (bug #9759)
Guillaume Munch [Mon, 31 Aug 2015 02:43:30 +0000 (03:43 +0100)]
Do not show subfigures in the menu (bug #9759)

* More consistent behavour (no 30 elements limit)
* Subfloats are given depth 1
* Only show depth 0
* Always show "Open outliner..."

8 years agoSupport for (std|boost)::make_shared
Guillaume Munch [Tue, 1 Sep 2015 16:47:01 +0000 (17:47 +0100)]
Support for (std|boost)::make_shared

8 years agoCorrect commit 92b0886: true is not True in python.
Stephan Witt [Tue, 15 Sep 2015 05:18:16 +0000 (07:18 +0200)]
Correct commit 92b0886: true is not True in python.

8 years agoMath commands used in text mode now always use the current selection as contents
Guillaume Munch [Sat, 1 Aug 2015 07:05:33 +0000 (08:05 +0100)]
Math commands used in text mode now always use the current selection as contents
(#9762)

* fixes a bug where this was already the expected behaviour of
  math-subscript and math-superscript but failed.

* corrects the behaviour where if there is \newcommand in the
  selection, then a corresponding macro template is introduced
  instead of a math inset.

  * fixes a bug where math-display, math-subscript and math-supscript
    would also introduce such a macro template in a way unrelated to
    their function. Now it only happens with math-mode without
    arguments.

  * fixes a bug where a text that does not denote a macro definition,
    e.g. "aaa\newcommandaaa", would produce \invalidmacro.

8 years agoAdd some missing member variable initializations
Georg Baum [Sun, 13 Sep 2015 17:47:21 +0000 (19:47 +0200)]
Add some missing member variable initializations

These were all found by cppcheck. Even in constructors that are there "only
because of std containers" the class should be initialized correctly. You can
never know whether such an object does not get used, and then a nice crash
caused by dereferencing a NULL-pointer is better than undefined behaviour.

8 years agoReturn reference to this in operator=()
Georg Baum [Sun, 13 Sep 2015 17:43:44 +0000 (19:43 +0200)]
Return reference to this in operator=()

This is the recommendede signature of assignment operators and was found by
cppcheck.

8 years agoRemove dead code
Georg Baum [Sun, 13 Sep 2015 12:05:49 +0000 (14:05 +0200)]
Remove dead code

Thanks to Jean-Marc and coverity for finding it.

8 years agoWork around a gcc5 bug
Georg Baum [Sun, 13 Sep 2015 08:04:16 +0000 (10:04 +0200)]
Work around a gcc5 bug

The old code produced crashes with gcc5 caused by calling the copy
constructor (see https://bugzilla.redhat.com/show_bug.cgi?id=1260976).
This has been filed as gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557
It is currently being marked as invalid (they claim the code is not valid and
produces undefined behaviour), but I don't think that this is correct.
Fortunately i does not matter for us whether the old code was valid or not,
since the new version is easier to understand and works with all compilers.

8 years agoMake destructor virtual
Georg Baum [Fri, 11 Sep 2015 21:04:59 +0000 (23:04 +0200)]
Make destructor virtual

Base classes with virtual methods should have a virtual destructor.
See Scott Meyers, Effective C++ item 7: Declare destructors virtual in
polymorphic base classes.

8 years agoFix bug #1996
Guillaume Munch [Sat, 29 Aug 2015 02:38:54 +0000 (03:38 +0100)]
Fix bug #1996

\overrightarrow and related macros have a standard behaviour with respect to
sub/superscripts.

8 years agoImprovements to the display of the source.
Guillaume Munch [Tue, 4 Aug 2015 22:16:40 +0000 (23:16 +0100)]
Improvements to the display of the source.

Fix bugs #6501 and #7359.

* Selection highlighting has been broken since a conflict with
  reverse-search was repaired (at 00a62b7c), is now fixed.

* The selection highlighting was not accurate, for LaTeX formats (in
  full source view), and meaningless, for non LaTeX formats.

* fix regression at cc00b9aa: force_getcontent_ was always true
  therefore the code to detect changes in the generated source was
  dead. The consequence is that the source view would jump to the
  beginning at each updateView() even if no change occurred. Cc00b9aa
  was meant to fix #5600, which I cannot reproduce with the new
  implementation.

* Various improvements:
  *  When the position-to-line conversion is unavailable (LyXHTML, LyX
     source, etc.) we focus on the first difference instead.
  *  Get some space around the cursor
  *  Respect the scrollbars
  *  Highlight with QTextEdit::ExtraSelections instead of cursor
     selection (the latter used to break syntax highlighting of the
     TeX code... which was not so much of an issue before because the
     wrong part was selected)

Known issues:
  * The highlighting is off by one line in very last paragraph of a
    document. This appears to be a bug in TexRow.cpp.
  * The highlighting is off for any kind of inset. This could be
    solved by adapting TexRow so that it accepts CursorSlices as
    and argument for the conversion to line number. (this is bug
    #4725)

8 years agoBetter session management for the source panel.
Guillaume Munch [Fri, 31 Jul 2015 00:05:54 +0000 (01:05 +0100)]
Better session management for the source panel.

We now remember the previous GUI values across sessions.

8 years agoImprove the performance of the source panel by using a QTimer.
Guillaume Munch [Fri, 31 Jul 2015 00:05:54 +0000 (01:05 +0100)]
Improve the performance of the source panel by using a QTimer.

Fix bug #9493. The source panel was very slow with auto-update on. Now
we use a timer that ensures that the source is generated only at
rest. The delay is short or long depending on whether we show the
source of a paragraph or the whole source.

8 years agoFix bug #9754
Guillaume Munch [Fri, 4 Sep 2015 14:27:50 +0000 (15:27 +0100)]
Fix bug #9754

Don't delay the update of the TOC panel on switching documents

8 years agoIn fileLock, take in account the case where the file cannot be opened
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 21:49:32 +0000 (23:49 +0200)]
In fileLock, take in account the case where the file cannot be opened

overity issue 23352

8 years agoiInitialize a few variables in TextClass constructor
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 21:11:35 +0000 (23:11 +0200)]
iInitialize a few variables in TextClass constructor

Also use proper initializers and reorder members properly.

Coverity issue 23385

8 years agoInitialize properly two members of InsetTabular
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:54:35 +0000 (22:54 +0200)]
Initialize properly two members of InsetTabular

Also rename first_visible_cell to first_visible_cell_. I wonder though whether this variable is still useful.

Coverity issue 23383

8 years agoInitialize MathData members
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:47:09 +0000 (22:47 +0200)]
Initialize MathData members

Coverity issues 23381 and 23436

8 years agoInitialize pointer members
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:39:50 +0000 (22:39 +0200)]
Initialize pointer members

Coverity issue 23387

8 years agoAdd missing break in switch
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:29:25 +0000 (22:29 +0200)]
Add missing break in switch

Coverity issue 102058

8 years agoAnnotate missing breaks in switch for coverity
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:24:50 +0000 (22:24 +0200)]
Annotate missing breaks in switch for coverity

Coverity issues 102057 and 102060.

8 years agoAnnotate missing break in switch for coverity
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:19:59 +0000 (22:19 +0200)]
Annotate missing break in switch for coverity

Coverity issue 23362

8 years agoAnnotate missing breaks in switch for coverity
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 20:14:04 +0000 (22:14 +0200)]
Annotate missing breaks in switch for coverity

Coverity issues 23341, 23359, 32064 and 102056

8 years agoAnnotate missing breaks in switch for coverity
Jean-Marc Lasgouttes [Sat, 12 Sep 2015 18:11:26 +0000 (20:11 +0200)]
Annotate missing breaks in switch for coverity

Coverity issues 23344, 23354, 23371 and 102059

8 years agoAdd missing break statement
Jean-Marc [Sat, 12 Sep 2015 18:02:32 +0000 (20:02 +0200)]
Add missing break statement

Coverity issue 23338

8 years agoAdd missing breaks
Jean-Marc [Sat, 12 Sep 2015 17:58:15 +0000 (19:58 +0200)]
Add missing breaks

Coveity issues 23333, 23334 and 23348.

8 years agoRemove useless test
Jean-Marc [Sat, 12 Sep 2015 17:53:29 +0000 (19:53 +0200)]
Remove useless test

Coverity issue 23300.

8 years agoRestore lyxerr number format to decimal
Jean-Marc [Sat, 12 Sep 2015 17:38:38 +0000 (19:38 +0200)]
Restore lyxerr number format to decimal

Coverity issue 23427

8 years agoDo not pass objects by value
Jean-Marc [Sat, 12 Sep 2015 17:22:51 +0000 (19:22 +0200)]
Do not pass objects by value

Coverity issue 23372.

8 years agoMake the while loop actually loop
Jean-Marc [Sat, 12 Sep 2015 17:14:27 +0000 (19:14 +0200)]
Make the while loop actually loop

Coverity issue 23513.

8 years agoFix logic of method
Jean-Marc [Sat, 12 Sep 2015 17:01:18 +0000 (19:01 +0200)]
Fix logic of method

The last return statement was unreachable

Coverity issue 102063.

8 years agoMark dead code as dead
Jean-Marc [Sat, 12 Sep 2015 16:49:22 +0000 (18:49 +0200)]
Mark dead code as dead

Coverity issue 23511.

8 years agoAdd missing braces
Jean-Marc [Sat, 12 Sep 2015 16:40:52 +0000 (18:40 +0200)]
Add missing braces

Coverity issue 23506.

8 years agoimage_ready is false at this point
Jean-Marc [Sat, 12 Sep 2015 16:33:17 +0000 (18:33 +0200)]
image_ready is false at this point

Coverity issue 23299.

8 years agoRemove dead code
Jean-Marc [Sat, 12 Sep 2015 16:29:02 +0000 (18:29 +0200)]
Remove dead code

first is always false at this point.

Coverity issue 23298.

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

c cannot be \\ at this point.

Coverity issue 23296.

8 years agoRemove unreachable code
Jean-Marc [Sat, 12 Sep 2015 16:22:31 +0000 (18:22 +0200)]
Remove unreachable code

Fixes coverity issue 23295.

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