]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoIgnore .dirstamp.
Richard Heck [Mon, 18 Jul 2016 17:02:56 +0000 (13:02 -0400)]
Ignore .dirstamp.

7 years agoThe way this was previously, it had to fail if the GUI language
Richard Heck [Mon, 18 Jul 2016 02:50:17 +0000 (22:50 -0400)]
The way this was previously, it had to fail if the GUI language
was not English: We return the the abbreviated author "One and Two",
but translated to the GUI language; then we search that for " and "
in order to pull the authors apart again.

I've just replaced the distinct routines with a single one that handles
both cases, depending upon whether a Buffer is provided as one argument.

(cherry picked from commit fb84ccd9fb8fbe1eeb764580964a333acb2e6c0d)

7 years agoFix thinko that led 2-authors citations to be displayed with "et al."
Richard Heck [Mon, 18 Jul 2016 02:31:54 +0000 (22:31 -0400)]
Fix thinko that led 2-authors citations to be displayed with "et al."

(cherry picked from commit d5633f17e56b73b308921a7c466bffa20e3e27b8)

7 years agoFix some comments about the enumitem module.
Richard Heck [Fri, 15 Jul 2016 17:35:49 +0000 (13:35 -0400)]
Fix some comments about the enumitem module.

7 years agoMerge branch '2.2.x' into 2.2.2-staging
Richard Heck [Fri, 15 Jul 2016 17:28:07 +0000 (13:28 -0400)]
Merge branch '2.2.x' into 2.2.2-staging

7 years agoSimplify logic a bit. (This was meant to be part of a previous
Richard Heck [Sun, 10 Jul 2016 05:43:19 +0000 (01:43 -0400)]
Simplify logic a bit. (This was meant to be part of a previous
commit.)

(cherry picked from commit 2104d41f71ff39f5c3f9f5a485707633b1bfb25b)

7 years agoFix thinko in Buffer::preview. It is possible for this routine to
Richard Heck [Sun, 10 Jul 2016 05:12:42 +0000 (01:12 -0400)]
Fix thinko in Buffer::preview. It is possible for this routine to
be called when we do not have a cloned Buffer, namely, if we do not
have EXPORT_in_THREAD defined.

(cherry picked from commit d8aab4af9e6e72c835f78ba54a46687b870c25fa)

7 years agoDocument 35a78ae0e9 and 53425c7e99
Juergen Spitzmueller [Sat, 9 Jul 2016 13:13:46 +0000 (15:13 +0200)]
Document 35a78ae0e9 and 53425c7e99

7 years agoAdded missing oxygen icons to distribution
Kornel Benko [Sat, 9 Jul 2016 11:34:49 +0000 (13:34 +0200)]
Added missing oxygen icons to distribution

Like in master at 60a1827b659219a93bd1fe5dfe0490ab71d72b0e

7 years agoAdded missing ipa icons to distribution
Kornel Benko [Sat, 9 Jul 2016 11:25:33 +0000 (13:25 +0200)]
Added missing ipa icons to distribution

Like in master at 43d284e15ad6193da2508a57b5260cb85ff4cdb9

7 years agostatus.22x
Guillaume Munch [Fri, 8 Jul 2016 16:39:18 +0000 (17:39 +0100)]
status.22x

7 years agoAccessibility of document class combo box (#10035)
Guillaume Munch [Fri, 8 Jul 2016 10:29:26 +0000 (12:29 +0200)]
Accessibility of document class combo box (#10035)

* Access it with tab

* Access it with the accelerator from the title of the group

(cherry picked from commit 3e6df9796352dd8574b05934082faff0afe3f44c)

7 years agoDocument fix
Juergen Spitzmueller [Fri, 8 Jul 2016 15:41:27 +0000 (17:41 +0200)]
Document fix

7 years agoFix incompatibility of covington and beamer.
Juergen Spitzmueller [Fri, 8 Jul 2016 08:04:24 +0000 (10:04 +0200)]
Fix incompatibility of covington and beamer.

Candidate for stable.

7 years agoExport svg in xhtml, not svgz (bug 10160)
Georg Baum [Thu, 7 Jul 2016 19:45:12 +0000 (21:45 +0200)]
Export svg in xhtml, not svgz (bug 10160)

LyX did not distinguish compressed and uncompressed svg files previously.
Therefore XHTML export of vector graphics did use svgz images directly, which
is not supported by browsers. If svg and svgz are treated as two formats then
all works fine. This is also consistent with the loadable image formats
reported by qt: It reports both svg and svgz.
The gunzip dependency in converters is not new (it is already used internally),
but the gzip dependency is new, so it might not be available on windows.
This is not important at the moment, since we do not yet need to convert svg
to svgz, I only added the converter for completeness.

7 years agoBring window to front only for single-instance mode
Enrico Forestieri [Tue, 5 Jul 2016 21:19:59 +0000 (23:19 +0200)]
Bring window to front only for single-instance mode

A window manager could be configured such that to maintain a certain
stack order for the windows. It would be annoying that opening a new
file through menu brings up the window, so do this only if we are
loading a file through the lyx-server.

This commit amends f5f8c6fd, so no status line is needed.

8 years agoRecord undo when deleting end of paragraph in change tracking mode
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 14:22:49 +0000 (16:22 +0200)]
Record undo when deleting end of paragraph in change tracking mode

Fixes bug #10253.
(cherry picked from commit 86c33c96a0dd026148f79b7da96fee5a0bb705bc)

8 years agoGerman UserGuide.lyx: port some typographic changes from Günter
Uwe Stöhr [Tue, 5 Jul 2016 01:01:34 +0000 (03:01 +0200)]
German UserGuide.lyx: port some typographic changes from Günter

7 years agoJapanese Customization.lyx: fix a language issue
Uwe Stöhr [Wed, 6 Jul 2016 00:23:02 +0000 (02:23 +0200)]
Japanese Customization.lyx: fix a language issue

7 years agoCustomization.lyx: fix format number as reported by Andrew Parsloe
Uwe Stöhr [Tue, 5 Jul 2016 23:58:57 +0000 (01:58 +0200)]
Customization.lyx: fix format number as reported by Andrew Parsloe

- also fix some typos and typographic mistakes and remove outdated info

7 years agoCustomization.lyx: accept changes by Richard
Uwe Stöhr [Tue, 5 Jul 2016 23:43:32 +0000 (01:43 +0200)]
Customization.lyx: accept changes by Richard

- also fix a typo

8 years agoBring window to front after loading a document
Enrico Forestieri [Mon, 4 Jul 2016 18:44:13 +0000 (20:44 +0200)]
Bring window to front after loading a document

Fixes #7875.

8 years agoFix CAS input on windows (bug 10262)
Georg Baum [Sun, 3 Jul 2016 17:48:15 +0000 (19:48 +0200)]
Fix CAS input on windows (bug 10262)

This is the well known file locking problem: The TempFile class keeps the
created file locked for the own process, and this prevents the CAS to read it.

8 years agoMath.lyx: add info contributed by Pavel
Uwe Stöhr [Sat, 2 Jul 2016 18:10:22 +0000 (20:10 +0200)]
Math.lyx: add info contributed by Pavel

8 years agodoc files: move a forgotten changelog file
Uwe Stöhr [Sat, 2 Jul 2016 18:09:57 +0000 (20:09 +0200)]
doc files: move a forgotten changelog file

8 years agoUserGuide.lyx: some minor adjustments
Uwe Stöhr [Sat, 2 Jul 2016 17:34:14 +0000 (19:34 +0200)]
UserGuide.lyx: some minor adjustments

result of a patch sent by a user

8 years agobuild5-2015.bat: correct a path
Uwe Stöhr [Sat, 2 Jul 2016 16:16:38 +0000 (18:16 +0200)]
build5-2015.bat: correct a path

8 years agoInsetSeparator.cpp:backport a compiler warning fie
Uwe Stöhr [Sat, 2 Jul 2016 16:16:03 +0000 (18:16 +0200)]
InsetSeparator.cpp:backport a compiler warning fie

45e3a8f8/lyxgit)

8 years agoMake LyX compiled by MSVC 2015 run on Vista again
Georg Baum [Sat, 2 Jul 2016 08:16:48 +0000 (10:16 +0200)]
Make LyX compiled by MSVC 2015 run on Vista again

Patch and tests from Dima Ruinskiy, comments by me. For details see discussion
in bug 10186.

8 years agoCMAKE: update path to Qt 5.6.1 and add missing build script
Uwe Stöhr [Thu, 30 Jun 2016 23:39:12 +0000 (01:39 +0200)]
CMAKE: update path to Qt 5.6.1 and add missing build script

8 years agoABOVE and CENTERED labels need special treatment.
Richard Heck [Thu, 30 Jun 2016 03:55:11 +0000 (23:55 -0400)]
ABOVE and CENTERED labels need special treatment.

Fixes bug #8843.

(cherry picked from commit 08bf9781ee86ea7fe2c9f3a0d670cad92807a017)

8 years agoMake sure we center displayed equations.
Richard Heck [Thu, 30 Jun 2016 03:18:57 +0000 (23:18 -0400)]
Make sure we center displayed equations.

(cherry picked from commit a8aa7feb8936b751f088a10764b1f3623f143c77)

8 years agoAdd class attribute for \mathbb in XHTML output. Fixes part of 8251.
Richard Heck [Thu, 30 Jun 2016 02:47:21 +0000 (22:47 -0400)]
Add class attribute for \mathbb in XHTML output. Fixes part of 8251.

Patch from Josh.

(cherry picked from commit e3625b5b8052e75e8741152bdfd313b54969c675)

8 years agoUse symbols file to lookup entities for delimiters. Fixes bug #8280.
Richard Heck [Thu, 30 Jun 2016 02:39:42 +0000 (22:39 -0400)]
Use symbols file to lookup entities for delimiters. Fixes bug #8280.

Based upon work by Josh Hieronymus.

(cherry picked from commit 04b8f5cdc4b26105ea855fb9ec5b23227dfd55cb)

8 years agoDon't be so cute with VSpace: We just output it inline now for
Richard Heck [Thu, 30 Jun 2016 01:57:35 +0000 (21:57 -0400)]
Don't be so cute with VSpace: We just output it inline now for
XHTML.

Fixes bug #8154.

(cherry picked from commit 8ea3d1f130513eaf54e6a9ad49619059cd0052b9)

8 years agoOutput column width info for XHTML.
Richard Heck [Thu, 30 Jun 2016 01:47:51 +0000 (21:47 -0400)]
Output column width info for XHTML.

(cherry picked from commit ddc28f0374478355217f975a25e544af7dbc8ea9)

8 years agoFix bug #8782: We need to query the cell, not just the inset.
Richard Heck [Thu, 30 Jun 2016 01:23:39 +0000 (21:23 -0400)]
Fix bug #8782: We need to query the cell, not just the inset.

(cherry picked from commit f49556b3ed1c4adb610b00385e60cf695f4aa914)

8 years agoWin installer: prepare for next release
Uwe Stöhr [Thu, 30 Jun 2016 00:52:26 +0000 (02:52 +0200)]
Win installer: prepare for next release

- MiKTeX fixed some issues that might have caused the problems users had with 64bit MiKTeX
- the latest MSVC 2015 update fixed potential buffer overflows in compiled programs

8 years agoAdd missing buffer update after pasting unformatted text.
Richard Heck [Wed, 29 Jun 2016 17:32:30 +0000 (13:32 -0400)]
Add missing buffer update after pasting unformatted text.

Fixes bug #8735.

(cherry picked from commit 6ecb05e6eacf823b6d0e1ebfc42a3ddf96d50bed)

8 years agoFix right_boundary properly after a row is shortened
Jean-Marc Lasgouttes [Mon, 6 Jun 2016 12:01:02 +0000 (14:01 +0200)]
Fix right_boundary properly after a row is shortened

Instead of resetting it to false, do a proper test to see whether
there is a separator at the end of the row.

Fixes bug #10180.
(cherry picked from commit 5e5440f2f3c11e26084e541d45213fa62e88db99)

8 years agoPass through for filename characters of \ecvpicture command
Kornel Benko [Wed, 29 Jun 2016 08:54:19 +0000 (10:54 +0200)]
Pass through for filename characters of \ecvpicture command

For instance in case the path contains '_', it would otherwise
be converted to '\_', and so \ecvpicture cannot find the referenced
picture.

8 years agoJSS template should load math packages automatically.
Richard Heck [Wed, 29 Jun 2016 03:38:46 +0000 (23:38 -0400)]
JSS template should load math packages automatically.

Fixes bug 9242.

8 years agoRevert "JSS template should load math packages automatically."
Richard Heck [Wed, 29 Jun 2016 03:38:15 +0000 (23:38 -0400)]
Revert "JSS template should load math packages automatically."

This reverts commit 525e01ce297e737797b9bfcfe74bbc81dc3ebe43.

8 years agoJSS template should load math packages automatically.
Richard Heck [Wed, 29 Jun 2016 03:36:40 +0000 (23:36 -0400)]
JSS template should load math packages automatically.

Fixes bug 9242.

8 years agoConvert files to unix line ends in the repo
Georg Baum [Tue, 28 Jun 2016 19:25:18 +0000 (21:25 +0200)]
Convert files to unix line ends in the repo

These files were aded with windows line ends before we did set the text=auto
attribute for all files in .gitattributes, and this caused phantom changes on
linux workspaces after .gitattributes was introduced.
Now these files appear with linux line ends on linux workspaces and with
windows line ends on windows workspaces, like all source files.

8 years agoRemove unneeded MSVC 6 project file
Georg Baum [Tue, 28 Jun 2016 19:23:55 +0000 (21:23 +0200)]
Remove unneeded MSVC 6 project file

We use cmake or autotools to build hunspell, so we don't need this.

8 years agoMake command buffer icons same size as QLineEdit height
Enrico Forestieri [Sun, 26 Jun 2016 14:58:18 +0000 (16:58 +0200)]
Make command buffer icons same size as QLineEdit height

Part of bug #10125

(cherry picked from commit 458d2015dc311844a9533ac838a2f81b0a83069f)

8 years agoMake oultliner icons same size as the toolbar icons
Enrico Forestieri [Sun, 26 Jun 2016 14:53:00 +0000 (16:53 +0200)]
Make oultliner icons same size as the toolbar icons

Part of bug #10125

(cherry picked from commit f56ee1875c9bf2665ab7377fdc3ff3ec80d9268f)

8 years agoLet "provides [fontspec|listings|subfig] 1" work.
Richard Heck [Tue, 21 Jun 2016 14:50:42 +0000 (10:50 -0400)]
Let "provides [fontspec|listings|subfig] 1" work.

(cherry picked from commit f46a52d97ff5528445c8d68d70478379f55774d9)

8 years ago* Math.lyx : One more take on maxima output.
Pavel Sanda [Sat, 25 Jun 2016 18:16:42 +0000 (11:16 -0700)]
* Math.lyx : One more take on maxima output.

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

Reported the \it behaviour to maxima bugzilla.
https://sourceforge.net/p/maxima/bugs/3181/

8 years agoFix for previous commit: We come right back through here from
Richard Heck [Sat, 25 Jun 2016 04:41:23 +0000 (00:41 -0400)]
Fix for previous commit: We come right back through here from
exportBufferAs, so we need to make sure we haven't been given
an export location.

8 years agoFix bug #8814: Ask where to export file if it is not
Richard Heck [Sat, 25 Jun 2016 02:28:38 +0000 (03:28 +0100)]
Fix bug #8814: Ask where to export file if it is not
yet saved.

8 years agoia.po: updates from Giovanni
Uwe Stöhr [Fri, 24 Jun 2016 00:16:18 +0000 (02:16 +0200)]
ia.po: updates from Giovanni

8 years agoTocWidget: fix part of #9825
Guillaume Munch [Mon, 30 May 2016 21:11:27 +0000 (22:11 +0100)]
TocWidget: fix part of #9825

(cherry picked from commit 78a5c877812a522534a79ab81eb37fe9df9bf5e5)

8 years agoMinor updates to ANNOUNCE and status.
Richard Heck [Wed, 22 Jun 2016 18:15:18 +0000 (14:15 -0400)]
Minor updates to ANNOUNCE and status.

8 years agoFix version number in ANNOUNCE.
Richard Heck [Tue, 21 Jun 2016 21:17:19 +0000 (17:17 -0400)]
Fix version number in ANNOUNCE.

8 years agoDocument change to behavior of charstyles.
Richard Heck [Tue, 21 Jun 2016 19:55:15 +0000 (15:55 -0400)]
Document change to behavior of charstyles.

8 years agoBy default, charstyles should not permit layout changes internally.
Richard Heck [Mon, 20 Jun 2016 15:30:32 +0000 (11:30 -0400)]
By default, charstyles should not permit layout changes internally.

Fixes #10237.

(cherry picked from commit 152817576adaefaa1be8f124b9feecd5c2bfd7c2)

8 years agoFix bug #10213 as discussed there: We now display the same button
Richard Heck [Tue, 14 Jun 2016 17:55:18 +0000 (18:55 +0100)]
Fix bug #10213 as discussed there: We now display the same button
whether the branch is open or closed.

(cherry picked from commit 3573b7270c717b5715f507da47e4ce238dbb987c)

8 years agoFix bug #10195
Guillaume Munch [Mon, 13 Jun 2016 23:17:38 +0000 (00:17 +0100)]
Fix bug #10195

The computation of the index of the main text entry of a row did not take into
account the fact that the entry could be optimised away.

(cherry picked from commit 947c34364c7f6a5c12ddfa7286ff504c62a1038a)

8 years agoSkip paragraph parameters for dash conversion
Georg Baum [Mon, 20 Jun 2016 18:19:24 +0000 (20:19 +0200)]
Skip paragraph parameters for dash conversion

Some of them are directly passed to LaTeX, but for all of them a token
\twohyphens or \threehyphens is not valid. This fixes bug #10243.

8 years agoAdd new module:
Richard Heck [Mon, 20 Jun 2016 15:06:31 +0000 (11:06 -0400)]
Add new module:

Provides two new styles:

1. An "In Premable" style that puts whatever is entered into it into the preamble.
   This can be used, if one wishes, to include preamble code in the body of the
   LyX document.
2. An "In Title" style that will put its contents into the body of the LaTeX
   document, but before \maketitle is issued. This is useful for making branches
   and notes in title-related material. (If you put these in a Standard layout,
   this signals to LyX to output \maketitle, which may then come too early.)

The ForceLocal machinery allows the module to be added to stable.

(cherry picked from commit a9af5333b26d719d0b85dae2c374e32e1190e15d)

8 years agoFix bug #10153: There's a mechanism in XHTML output that defers the
Richard Heck [Mon, 20 Jun 2016 14:21:22 +0000 (10:21 -0400)]
Fix bug #10153: There's a mechanism in XHTML output that defers the
output of tags until we know they're needed. In the case of HTML
tables, empty cells should of course be output, so we need to force
the tags to be output.

(cherry picked from commit 35d449c5dae11bbff53e2a35697a4fc3f03318ba)

8 years agoFix typo, and also check, if string is null.
Richard Heck [Sat, 18 Jun 2016 22:34:30 +0000 (18:34 -0400)]
Fix typo, and also check, if string is null.

8 years agoBe a bit more careful about setting and restoring the last reference
Richard Heck [Sat, 18 Jun 2016 22:27:51 +0000 (18:27 -0400)]
Be a bit more careful about setting and restoring the last reference
when we go to and return from labels.

(cherry picked from commit 68b60ec529db2e7bfe642bd09902824ea69e2fb5)

8 years agoStatus for previous commit.
Richard Heck [Sat, 18 Jun 2016 17:02:29 +0000 (13:02 -0400)]
Status for previous commit.

8 years agoFix bug #10218, in a way less invasive than it has been fixed in
Richard Heck [Sat, 18 Jun 2016 16:59:02 +0000 (12:59 -0400)]
Fix bug #10218, in a way less invasive than it has been fixed in
master. Patch due to Enrico.

8 years agoTocWidget: fix an erroneous collapse and optimise updates based on profiling
Guillaume Munch [Sun, 8 May 2016 22:56:55 +0000 (23:56 +0100)]
TocWidget: fix an erroneous collapse and optimise updates based on profiling

TocModels::reset() in GuiView::structureChanged() collapses the TocWidget, and
therefore requires an update right after, which was missing.

In fact, profiling TocWidget::updateView() shows that delaying the update is
good only for fast keypresses (essentially movement). It costs 5% of a
char-forward operation in a document with approx. 100 table of contents
items. The update optimisation has been rewritten to take this data into
account.

This also fixes #9826: Outline disclosure of subsection content disappears one
second after doubleclicking content item.

8 years agoRestore last selected label when using the "go to label" feature
Richard Heck [Mon, 6 Jun 2016 23:36:27 +0000 (19:36 -0400)]
Restore last selected label when using the "go to label" feature
of the reference dialog.

(cherry picked from commit 9d5ffa8e752213379d0ff611bd16deec1ab21c0a)

8 years agoFix version number.
Richard Heck [Fri, 3 Jun 2016 21:45:42 +0000 (17:45 -0400)]
Fix version number.

8 years agoTake inset dimension into account in row signature
Jean-Marc Lasgouttes [Fri, 3 Jun 2016 09:21:09 +0000 (11:21 +0200)]
Take inset dimension into account in row signature

In some cases, the insets may change height or width without changing
the other apsects of the row.

Fixes bug #6991 and #10182.

(cherry picked from commit 508518ad95a7fd7581bd4affd389dbe7bd6d09f1)

8 years agoFix drawing of buttonText (enforce same left/right spacing)
Jean-Marc Lasgouttes [Mon, 23 May 2016 13:24:13 +0000 (15:24 +0200)]
Fix drawing of buttonText (enforce same left/right spacing)

The computation of the width of the button was wrong. If <--> stands
for TEXT_TO_INSET_OFFSET/2 spacing, and if `[]' marks the button's
limits, then the intent is
  <-->[<-->button text<-->]<-->

Therefore the physical grey rectangle width is
   width - Inset::TEXT_TO_INSET_OFFSET

With this change, the spacing on the right of the button is not larger
than the left one.

Fixes bug #10147.
(cherry picked from commit 516d5d29dce28deab4601ec6aa714ca7ff59e6cd)

8 years agoRemove extra spacing around InsetCommand buttons
Jean-Marc Lasgouttes [Mon, 23 May 2016 14:16:05 +0000 (16:16 +0200)]
Remove extra spacing around InsetCommand buttons

There is already a spacing of 2 pixels on each side of a button (e.g.
collapsed inset). There is no need to add one extra pixel for command
insets.

Fixes part of bug #10149.
(cherry picked from commit 68149e380daad42bac69de5984ef1e21508d9cb3)

8 years agoAdd forgotten fix to status
Juergen Spitzmueller [Tue, 31 May 2016 06:51:46 +0000 (08:51 +0200)]
Add forgotten fix to status

8 years agoImplement some forgotten context menu items for arguments
Juergen Spitzmueller [Sun, 29 May 2016 10:32:53 +0000 (12:32 +0200)]
Implement some forgotten context menu items for arguments

* Dissolve context menu
* Label toggle (for conglomerate-styled arguments)

Fixes: #10150
8 years ago\\pagebreak is a fragile command in general
Jean-Marc Lasgouttes [Fri, 22 Apr 2016 12:57:12 +0000 (14:57 +0200)]
\\pagebreak is a fragile command in general

As such, it shall be protected in moving arguments, such as sections.

Fixes bug #10092.
(cherry picked from commit 86ee2699c30b63e5b4de3ad725519756d17aec2c)

8 years agoFix getStatus for math-mutate and math-display
Jean-Marc Lasgouttes [Thu, 12 May 2016 07:24:55 +0000 (09:24 +0200)]
Fix getStatus for math-mutate and math-display

Those two functions used two different hackish and buggy
implementation to know when the function is disabled. Replace that by
asking the containing inset whether it accepts inserting display math
inset.

Fixes bug #10033.
(cherry picked from commit de5630a1562054cb969b106e35f84bfe1e99002a)

8 years agoDo not use 'u' flag for ar
Jean-Marc Lasgouttes [Wed, 11 May 2016 15:09:34 +0000 (17:09 +0200)]
Do not use 'u' flag for ar

The Reproducible Builds effort (https://wiki.debian.org/ReproducibleBuilds) in Debian (at least) means that 'ar' is built in deterministic mode as default: all timestamps are set to 0.

This is not compatible with the use of the 'u' flag, and therefore ARFLAGS has to be changed from 'cru' to 'cr'.

This gets rid of the harmless but annoying warning
  ar: `u' modifier ignored since `D' is the default (see `U')
(cherry picked from commit 987fc1d15d017c192a566fc922e3967d9d280668)

8 years agoDisable LFUN_INSET_DISSOLVE in tabulars
Jean-Marc Lasgouttes [Tue, 10 May 2016 09:17:43 +0000 (11:17 +0200)]
Disable LFUN_INSET_DISSOLVE in tabulars

When in a tabular cell, "this" is just a lone InsetText, while cur.inset() is the whole tabular. This makes a big difference, especially when one wants to count cells.

Fixes bug #9954.

(cherry picked from commit 4caf167dbd24722421ae8d94a2c103bf41a7667d)

8 years agoRename InsetMathHull::isTable to allowsTabularFeatures
Jean-Marc Lasgouttes [Fri, 22 Apr 2016 13:50:51 +0000 (15:50 +0200)]
Rename InsetMathHull::isTable to allowsTabularFeatures

The old name conflicted with the newly introduced Inset::isTable.

Now the meaning is as follows.
* Inset::isTable() is true when the inset is composed of lines and columns
* InsetMathHull::allowsTabularFeatures is true when the current type of hull allows for tabular-like functions.

(cherry picked from commit db39dc7ccd4c2dd14ef20547e6e3c056ba030d83)

8 years agoMake inset-select-all select all cells only in tables
Jean-Marc Lasgouttes [Mon, 14 Mar 2016 10:46:28 +0000 (11:46 +0100)]
Make inset-select-all select all cells only in tables

inset-select-all has 3 levels
1. select current cell
2. select all cells
3. select inset from outside.

The second level makes sense for tables (text and math), but not for things like a math fraction.

Introduce a new method Inset::isTable() that allows to detect this case properly and skip level 2.

(cherry picked from commit 5de28b9ac6736c791146a1a3ebe7f4826c22a9b7)

8 years agoShow review toolbar when outputting changes
Guillaume Munch [Thu, 5 May 2016 21:01:19 +0000 (22:01 +0100)]
Show review toolbar when outputting changes

"Output changes" alters the preamble even in the absence of tracked
changes. Therefore, not being able to notice when it is activated can possibly
yield hard-to-debug compilation failures.

8 years agostatus.22x
Guillaume Munch [Fri, 6 May 2016 00:35:42 +0000 (01:35 +0100)]
status.22x

8 years agoDisable certain change tracking commands when there are no changes
Guillaume Munch [Tue, 3 May 2016 21:15:21 +0000 (22:15 +0100)]
Disable certain change tracking commands when there are no changes

Fix TODO

8 years agoGuiChanges: provide feedback when there are no more changes
Guillaume Munch [Tue, 3 May 2016 19:40:28 +0000 (20:40 +0100)]
GuiChanges: provide feedback when there are no more changes

Remove FIXMEs: date and time localisation

8 years agoAutomatically show the review toolbar if the document has tracked changes
Guillaume Munch [Sat, 30 Jan 2016 23:14:36 +0000 (23:14 +0000)]
Automatically show the review toolbar if the document has tracked changes
(#8738)

For efficiency, we add a new flag to the buffer indicating when changes are
present. This flag is updated at each buffer update, and also when explicitly
requested via a dispatch result flag.

8 years agogetInnerText()
Guillaume Munch [Tue, 3 May 2016 20:09:15 +0000 (21:09 +0100)]
getInnerText()

8 years agoTocWidget: clean-up the timer logic
Guillaume Munch [Fri, 29 Apr 2016 21:48:53 +0000 (22:48 +0100)]
TocWidget: clean-up the timer logic

The timer logic introduced to solve bug #7138 was not entirely reliable; in
particular it resulted in spurious updates (noticeable by the treeview
collapsing just after one opens a branch, in particular).

This commit cleans up the timer logic. I followed the original design decision
of having an immediate update followed by a delayed update. Now the updates are
appropriately compressed and done after a delay of 2s (as can be noticed with
the treeview still collapsing, unfortunately, but after a more predictable
delay...).

8 years agoTocWidget: Fix perf regression
Guillaume Munch [Fri, 29 Apr 2016 23:25:46 +0000 (00:25 +0100)]
TocWidget: Fix perf regression

4d1ad336 fixed #9754 but caused perf issues by cancelling the gains of having a
timer (introduced after #7138). This introduces in GuiToc::enableView() a
lightweight check of whether the widget should be updated. The logic is inspired
from GuiViewSource::enableView().

8 years agoWhitespace
Guillaume Munch [Fri, 29 Apr 2016 21:29:27 +0000 (22:29 +0100)]
Whitespace

8 years agoLet getPosNearX take horizontal scrolling into account
Jean-Marc Lasgouttes [Sat, 30 Apr 2016 23:27:13 +0000 (01:27 +0200)]
Let getPosNearX take horizontal scrolling into account

If we do not do that, it is not possible to position the cursor after
a long inset with the mouse.

To do this, it is necessary to add the pit information to the Row
object. This is a good idea in any case, and will allow to simplify
some code later on.

Fixes bug #10094.
(cherry picked from commit 8851645799ef67015e49fd75b9dfeed65d685e85)

8 years agoAdd missing entry in status.22x
Jean-Marc Lasgouttes [Sat, 30 Apr 2016 22:15:56 +0000 (00:15 +0200)]
Add missing entry in status.22x

This was forgotten in fe5e1170.

8 years agostatus.22x
Guillaume Munch [Sat, 30 Apr 2016 15:07:51 +0000 (16:07 +0100)]
status.22x

8 years agoFix cursor position after redo
Jean-Marc Lasgouttes [Wed, 27 Apr 2016 19:16:34 +0000 (21:16 +0200)]
Fix cursor position after redo

When document settings are modified, a command
  inset-forall Branch inset-toggle asign
is run to open as needed all branches. At the end of the said loop,
the cursor is reset to where it was. However, the cur_after undo
element member is not set because it already had a value.

To make this work as expected, it is necessary in LFUN_INSET_FORALL to
reset the cursor before ending the undo group and to insert a dummy
recordUndo call.

Fixes bug #10097.

(cherry picked from commit 0036762f30def16ab8b2216f721f9e552893bc85)

8 years agoImprovements to the shortcuts preference dialog (#9174)
Guillaume Munch [Tue, 23 Feb 2016 20:46:19 +0000 (20:46 +0000)]
Improvements to the shortcuts preference dialog (#9174)

Ask the user for removing bindings when using the "restore" button (#9174).

Fix the already-bound-key detection logic.

Don't forget to trigger the search when initializing the search LineEdit with
its former value.

8 years agoFix horizontal scrolling in full-width collapsable insets
Jean-Marc Lasgouttes [Fri, 22 Apr 2016 10:11:00 +0000 (12:11 +0200)]
Fix horizontal scrolling in full-width collapsable insets

While a one paragraph large collapsable inset (containing for example a tabular) could be very wide and trigger horizontal scrolling, the code that makes collapsable insets wide when they contain several paragraphs would actually make them narrower in this case.

Typical example is a wide tabular and a caption in a table float, where horizontal scrolling would not trigger.

(cherry picked from commit 8c7ace4b on 2.3.0-staging)

8 years agoUpdates to splitting of consecutive environments.
Richard Heck [Thu, 21 Apr 2016 21:44:14 +0000 (17:44 -0400)]
Updates to splitting of consecutive environments.

From Enrico.

(cherry picked from commit ee82dd604010d4c1bf250640a3df6d790ea08380)

8 years agoHandle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDi...
Stephan Witt [Sat, 16 Apr 2016 20:30:33 +0000 (22:30 +0200)]
Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods.
This is a requirement on Mac to get the current buffer view topmost after buffer switch.

8 years agoChange mouse cursor on tabular selection zones
Jean-Marc Lasgouttes [Tue, 2 Feb 2016 16:07:29 +0000 (17:07 +0100)]
Change mouse cursor on tabular selection zones

This is done by implementing the clickable method. It is not possible yet to have the usual left and down arrows, because Qt does not implement them as far as I can see.

Factor the code that triggers row/column selection and fix the logic. Now it is possible to select also at the right of the tabular inset.

8 years agoFix display of InsetCollapsable with split views
Jean-Marc Lasgouttes [Wed, 3 Feb 2016 09:37:29 +0000 (10:37 +0100)]
Fix display of InsetCollapsable with split views

When several bufferviews exist for the same inset, the data that depends on the view width have to be BufferView-dependent. While this is the case for several mutable members of InsetCollapsable, some were missing.

This commit makes button_dim_ (renamed from button_dim) and openinlined_ bv-dependent.

Get rid of the hitButton function.

Remove the bv-independent geometry() method and implement editable() explicitely instead.

Fixes bug #9756.