]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoWhitespace
Juergen Spitzmueller [Mon, 31 Oct 2016 17:47:16 +0000 (18:47 +0100)]
Whitespace

7 years agoUse Buffer::validate() when previewing single paragraph
Juergen Spitzmueller [Mon, 31 Oct 2016 17:46:06 +0000 (18:46 +0100)]
Use Buffer::validate() when previewing single paragraph

We used to use BufferParams::validate(), which does not validate the
paragraphs.

7 years agoDon't print useless messages while parsing math macros
Enrico Forestieri [Mon, 31 Oct 2016 14:23:20 +0000 (15:23 +0100)]
Don't print useless messages while parsing math macros

Math macros can be displayed on screen by providing a different
representation than the one used for latex output. This representation
is actually used by lyx even while it is being updated. This leads to
printing useless error messages on the terminal. For example, a macro
parameter has to be entered as \#1 and, if the macro is already used in
a math inset, lyx prints on terminal the error message "Math parse error:
missing token after \\" as soon as one hits the \ key, followed by
"MathMacroArgument::MathMacroArgument: wrong Argument id: -48" as soon as
one hits the # key. So, this is not a useful information and simply
clutters the terminal output. On the other hand, the input is sanitized
even if one stops input after hitting either \ or #, so that no further
messages are issued. Hence, those error messages are simply pointless.

7 years agoArabic doc files: port recent changes
Uwe Stöhr [Mon, 31 Oct 2016 11:24:19 +0000 (12:24 +0100)]
Arabic doc files: port recent changes

7 years agoEmbeddedObjects.lyx; remove unnecessary latexpar
Uwe Stöhr [Mon, 31 Oct 2016 10:49:57 +0000 (11:49 +0100)]
EmbeddedObjects.lyx; remove unnecessary latexpar

- this was the last issue to fix bug #10068

7 years agoShow symbol name and description in plaintext export of nomenclature entries.
Tommaso Cucinotta [Sat, 29 Oct 2016 10:32:51 +0000 (12:32 +0200)]
Show symbol name and description in plaintext export of nomenclature entries.

This addresses one of the issues highlighted in #10459.
See http://www.lyx.org/trac/ticket/10459

7 years agoDevelopment.lyx: update info how to update the tex2lyx test files
Uwe Stöhr [Thu, 27 Oct 2016 22:46:59 +0000 (00:46 +0200)]
Development.lyx: update info how to update the tex2lyx test files

7 years agotex2lyx test files: update them
Uwe Stöhr [Thu, 27 Oct 2016 22:45:33 +0000 (00:45 +0200)]
tex2lyx test files: update them

- update the test files after the last 3 fileformat changes
- this is now possible thanks to the patch for bug #10440

7 years agoadd support for Urdu and Syriac
Uwe Stöhr [Thu, 27 Oct 2016 22:21:58 +0000 (00:21 +0200)]
add support for Urdu and Syriac

- fileformat change
- I could not update the tex2lyx testfiles because of bug #10440 (there is now a probable fix)

7 years agoCopy bit of documentation from Georg's commit log
Guillaume Munch [Thu, 27 Oct 2016 19:28:49 +0000 (21:28 +0200)]
Copy bit of documentation from Georg's commit log

7 years agoCopy bit of documentation from MathFactory.cpp
Guillaume Munch [Thu, 27 Oct 2016 19:10:18 +0000 (21:10 +0200)]
Copy bit of documentation from MathFactory.cpp

7 years agoTypo.
Juergen Spitzmueller [Thu, 27 Oct 2016 17:58:01 +0000 (19:58 +0200)]
Typo.

7 years agoHandle | verbatim in index insets.
Juergen Spitzmueller [Thu, 27 Oct 2016 16:11:28 +0000 (18:11 +0200)]
Handle | verbatim in index insets.

7 years agode.po
Juergen Spitzmueller [Thu, 27 Oct 2016 12:47:12 +0000 (14:47 +0200)]
de.po

7 years agoUpdate sk.po
Kornel Benko [Thu, 27 Oct 2016 09:08:52 +0000 (11:08 +0200)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Thu, 27 Oct 2016 08:28:25 +0000 (10:28 +0200)]
de.po

7 years agoIssue an error message if conflicting languages are used
Juergen Spitzmueller [Thu, 27 Oct 2016 07:59:01 +0000 (09:59 +0200)]
Issue an error message if conflicting languages are used

Some languages are only supported by Babel, some only by Polyglossia.

If these are combined, we issue an error message now.

Fixes: #10456
7 years agoRemove assert on advanced find with knitr module (#10444).
Tommaso Cucinotta [Sun, 23 Oct 2016 11:16:19 +0000 (13:16 +0200)]
Remove assert on advanced find with knitr module (#10444).

7 years agoSome tweaks to selection painting
Jean-Marc Lasgouttes [Wed, 26 Oct 2016 12:23:59 +0000 (14:23 +0200)]
Some tweaks to selection painting

1/ simplify logic that triggers margin selection painting

2/ fix logic for end of paragraph markers. They are now selected when
   there is an end row margin selection.

3/ avoid rounding problems due to int/double conversions.

7 years agoFix compiler warnings spotted by Uwe
Jean-Marc Lasgouttes [Wed, 26 Oct 2016 08:52:55 +0000 (10:52 +0200)]
Fix compiler warnings spotted by Uwe

7 years agoArabic Shortcuts.lyx: new translation by Hatim
Uwe Stöhr [Tue, 25 Oct 2016 21:33:25 +0000 (23:33 +0200)]
Arabic Shortcuts.lyx: new translation by Hatim

7 years agoFixup a700d657 : holes in right margin selection
Jean-Marc Lasgouttes [Tue, 25 Oct 2016 14:14:35 +0000 (16:14 +0200)]
Fixup a700d657 : holes in right margin selection

7 years agoShow on screen font changes for text-in-math
Enrico Forestieri [Tue, 25 Oct 2016 14:03:34 +0000 (16:03 +0200)]
Show on screen font changes for text-in-math

7 years agoWhen selecting special logos, set their color correctly
Jean-Marc Lasgouttes [Tue, 25 Oct 2016 13:13:23 +0000 (15:13 +0200)]
When selecting special logos, set their color correctly

It is not nice when they are the only thinkg in the text that does not
change color.

7 years agoOne item less on todo list
Jean-Marc Lasgouttes [Tue, 25 Oct 2016 08:14:35 +0000 (10:14 +0200)]
One item less on todo list

7 years agoReimplement RowPainter::paintSelection() using row elements
Jean-Marc Lasgouttes [Tue, 25 Oct 2016 07:28:14 +0000 (09:28 +0200)]
Reimplement RowPainter::paintSelection() using row elements

The code is much simpler now and can be actually understood.

As a byproduct, fix bug #10424.

7 years agoWin installer: more translations by Hatim
Uwe Stöhr [Mon, 24 Oct 2016 23:21:53 +0000 (01:21 +0200)]
Win installer: more translations by Hatim

7 years agoFactor out common code used to underline/strike out math
Enrico Forestieri [Mon, 24 Oct 2016 22:49:26 +0000 (00:49 +0200)]
Factor out common code used to underline/strike out math

Also use the exact amount of vertical space TeX adds after a
math display (instead of 1ex) for vertically shifting the box.
We have to use \belowdisplayshortskip here, instead of
\belowdisplayskip, because the math formula is typeset by alone
in a box, and thus there is no following line.

7 years agoWork around issues with Qt5 and Arabic text
Jean-Marc Lasgouttes [Sun, 23 Oct 2016 18:52:01 +0000 (20:52 +0200)]
Work around issues with Qt5 and Arabic text

This fixes two particular problems

* with Qt5, it seems that QFontMetrics::width does not return the
  correct value for some Arabic text; this patch uses QTextLayout
  instead to compute a string width

* Likewise, the undocumented layout flags TextForceRightToLeft and
  TextForceLeftToRight do not work with Arabic text; this patch uses
  unicode override characters instead.

It might be that the two issues are related. In any case, they do not
happen with latin text where right-to-left direction is enforced. And
they do not happen with Qt4.

Additionally, remove some dead code in GuiFontMetrics::pos2x().

Fixes bug #10436.

7 years agoFix bug in replacement of "$$s/" in converter commands, introduced in 8b66f9ce.
Tommaso Cucinotta [Sun, 23 Oct 2016 19:35:56 +0000 (21:35 +0200)]
Fix bug in replacement of "$$s/" in converter commands, introduced in 8b66f9ce.

7 years agoCorrectly track ulem commands with change tracking
Enrico Forestieri [Sun, 23 Oct 2016 16:23:41 +0000 (18:23 +0200)]
Correctly track ulem commands with change tracking

LyX assumes that everything in \lyxdeleted is struck out by ulem
and increases the corresponding counter. However, deleted display
math material is struck out using tikz. As we also take into
account the deletion of underlined display math (in order to
properly position such material vertically), we have to take
care that the count is correct.

7 years agoOn export, mark the start of the first paragraph
Enrico Forestieri [Sun, 23 Oct 2016 16:04:13 +0000 (18:04 +0200)]
On export, mark the start of the first paragraph

No newline is written after \begin{document}, such that
the afterParbreak method would return false. This misleads
the code that outputs a display math in an ulem command
to emit a newline command instead of \noindent, causing
latex errors. This occurs only if the math is at the very
start of a document, without anything before it.

7 years agoRevert "Fix Ticket #9741 misleading name for font-encoding setting "default"."
Juergen Spitzmueller [Sun, 23 Oct 2016 15:20:58 +0000 (17:20 +0200)]
Revert "Fix Ticket #9741 misleading name for font-encoding setting "default"."

This reverts commit e37e4f537c70d75835441d84bc327c56805ecc3e.

The issue still needs discussion.

7 years agoWin installer: correct Arabic translation by Hatim
Uwe Stöhr [Sun, 23 Oct 2016 14:28:53 +0000 (16:28 +0200)]
Win installer: correct Arabic translation by Hatim

7 years agoMark a signal invokation as such
Jean-Marc Lasgouttes [Sun, 23 Oct 2016 11:48:18 +0000 (13:48 +0200)]
Mark a signal invokation as such

7 years agoFORMAT: fix date
Uwe Stöhr [Sun, 23 Oct 2016 01:41:45 +0000 (03:41 +0200)]
FORMAT: fix date

7 years agoFix compilation on cygwin & others
Guillaume Munch [Sat, 22 Oct 2016 22:25:05 +0000 (00:25 +0200)]
Fix compilation on cygwin & others

7 years agoImprovement to the reverse-search algorithm
Guillaume Munch [Tue, 11 Oct 2016 12:52:10 +0000 (14:52 +0200)]
Improvement to the reverse-search algorithm

7 years agoTexRow: enable new RowEntry types
Guillaume Munch [Tue, 11 Oct 2016 12:14:48 +0000 (14:14 +0200)]
TexRow: enable new RowEntry types

7 years agoMove class definitions inside main class
Guillaume Munch [Tue, 11 Oct 2016 10:09:38 +0000 (12:09 +0200)]
Move class definitions inside main class

Prepare for following commits.

This prevent's forward-declaration, but including the TexRow header should be
inexpensive.

7 years agoSimplify and add debug message
Guillaume Munch [Tue, 11 Oct 2016 09:22:20 +0000 (11:22 +0200)]
Simplify and add debug message

7 years agoUse the new infrastructure to select rows during error reporting
Guillaume Munch [Sun, 9 Oct 2016 19:34:12 +0000 (21:34 +0200)]
Use the new infrastructure to select rows during error reporting

7 years agoAdd safe line breaks to improve TexRow precision in subfloat & caption
Guillaume Munch [Mon, 10 Oct 2016 15:14:39 +0000 (17:14 +0200)]
Add safe line breaks to improve TexRow precision in subfloat & caption

7 years agoSafe line break to increase precision of error reporting in Listings caption
Guillaume Munch [Mon, 10 Oct 2016 14:52:32 +0000 (16:52 +0200)]
Safe line break to increase precision of error reporting in Listings caption

7 years agosupport for Amharic, Asturian, Kannada and Khmer
Uwe Stöhr [Sat, 22 Oct 2016 13:33:59 +0000 (15:33 +0200)]
support for Amharic, Asturian, Kannada and Khmer

- fileformat change
- I could not update the tex2lyx test files because of bug #10440
- maybe the lyx2lyx routine could be improved but since a document can also begin with another layout than "Standard" I could not use the lyx2lyx function put_cmd_in_ert

7 years agoFix LaTeX output of fixed-width cells with decimal separator
Juergen Spitzmueller [Sat, 22 Oct 2016 10:13:36 +0000 (12:13 +0200)]
Fix LaTeX output of fixed-width cells with decimal separator

This follows Uwe's suggestions (and discharges my own).

The result is not ideal, but there is currently no ideal solution.

Fixes: #9568
7 years agoBump layout formats
Juergen Spitzmueller [Sat, 22 Oct 2016 07:25:01 +0000 (09:25 +0200)]
Bump layout formats

7 years agoAdditional.lyx: accept some changes
Uwe Stöhr [Sat, 22 Oct 2016 01:04:10 +0000 (03:04 +0200)]
Additional.lyx: accept some changes

7 years agolayouts/modules: use the new PassThru tag
Uwe Stöhr [Sat, 22 Oct 2016 01:01:44 +0000 (03:01 +0200)]
layouts/modules: use the new PassThru tag

This fixes problems like bug #10434

7 years agoDo not output bidi direction macros in passthru context
Juergen Spitzmueller [Fri, 21 Oct 2016 08:40:19 +0000 (10:40 +0200)]
Do not output bidi direction macros in passthru context

Part of #10434.

7 years agoImplement PassThru option to arguments.
Juergen Spitzmueller [Fri, 21 Oct 2016 08:39:55 +0000 (10:39 +0200)]
Implement PassThru option to arguments.

7 years agoFix Ticket #9741 misleading name for font-encoding setting "default".
Günter Milde [Fri, 21 Oct 2016 07:10:46 +0000 (09:10 +0200)]
Fix Ticket #9741 misleading name for font-encoding setting "default".

It would be nice, if the tooltip showed the value of
lyxrc.fontenc, but too complicated for my simple patch.

7 years agoThese two routines are now redundant.
Richard Heck [Fri, 21 Oct 2016 02:56:40 +0000 (22:56 -0400)]
These two routines are now redundant.

7 years agoWe can now use the cached information instead of tracing the graph.
Richard Heck [Fri, 21 Oct 2016 02:52:54 +0000 (22:52 -0400)]
We can now use the cached information instead of tracing the graph.

7 years agoUse a typedef for vector<Format const *>, which is what gets used
Richard Heck [Wed, 19 Oct 2016 22:11:58 +0000 (18:11 -0400)]
Use a typedef for vector<Format const *>, which is what gets used
for lists of exportable and importable formats.

7 years agoThere is no need now to cache format information in the SendTo
Richard Heck [Wed, 19 Oct 2016 21:30:48 +0000 (17:30 -0400)]
There is no need now to cache format information in the SendTo
dialog.

7 years agoSince we're now caching this, we can sort it once, rather than
Richard Heck [Wed, 19 Oct 2016 21:28:51 +0000 (17:28 -0400)]
Since we're now caching this, we can sort it once, rather than
lots of times.

7 years agoSimple cache for information on exportable formats, since we seem
Richard Heck [Wed, 19 Oct 2016 21:22:58 +0000 (17:22 -0400)]
Simple cache for information on exportable formats, since we seem
to access this information a lot.

7 years agoFix indentation
Enrico Forestieri [Thu, 20 Oct 2016 23:58:45 +0000 (01:58 +0200)]
Fix indentation

7 years agoFortify math insets against ulem commands
Enrico Forestieri [Thu, 20 Oct 2016 23:35:39 +0000 (01:35 +0200)]
Fortify math insets against ulem commands

It should be now possible underlining or striking out any kind
of math inset containing any math construct indigestible to ulem.
While this was already possible for inline math insets, they could
have break if an aligned environment was used, for example.
This is now possible also for diplay math. Even if this can be
nonsensical and not visually perfect, at least no latex errors
should be generated if one tries to.

7 years agotex2lyx/Preamble.cpp: forgot this in r[f179173e/lyxgit]
Uwe Stöhr [Thu, 20 Oct 2016 22:20:27 +0000 (00:20 +0200)]
tex2lyx/Preamble.cpp: forgot this in r[f179173e/lyxgit]

- polyglossia supports Romansh, Piedmontese and Friulian

7 years agotex2lyx/Preamble.cpp: sort alphabetically to keep overview
Uwe Stöhr [Thu, 20 Oct 2016 22:14:09 +0000 (00:14 +0200)]
tex2lyx/Preamble.cpp: sort alphabetically to keep overview

- also comment out the unsupported languages

7 years agoFrench splash.lyx: restore \origin
Uwe Stöhr [Thu, 20 Oct 2016 20:35:00 +0000 (22:35 +0200)]
French splash.lyx: restore \origin

7 years agoseminar.lyx: accept change from Günter
Uwe Stöhr [Thu, 20 Oct 2016 20:31:30 +0000 (22:31 +0200)]
seminar.lyx: accept change from Günter

- French seminar.lyx: few beautifications

7 years agoWhen breaking an empty paragraph reduces depth, set layout too
Jean-Marc Lasgouttes [Thu, 13 Oct 2016 18:33:57 +0000 (20:33 +0200)]
When breaking an empty paragraph reduces depth, set layout too

This requires an adaptation of the Separator inset insertion code,
which has been duly provided by Enrico.

7 years agoFix compiler warning from clang 3.9
Jean-Marc Lasgouttes [Thu, 20 Oct 2016 07:27:12 +0000 (09:27 +0200)]
Fix compiler warning from clang 3.9

7 years agoAdd shell wrapper for Maxima on MacOSX
Stephan Witt [Thu, 20 Oct 2016 04:35:13 +0000 (06:35 +0200)]
Add shell wrapper for Maxima on MacOSX
The command line utility of Maxima is inside the Maxima.app bundle and isn't named "maxima"

7 years agosv.po: updates from Jim for master
Uwe Stöhr [Wed, 19 Oct 2016 23:02:58 +0000 (01:02 +0200)]
sv.po: updates from Jim for master

7 years agoIntroduce the InsetMathHull::outerDisplay method and use it
Enrico Forestieri [Wed, 19 Oct 2016 22:06:42 +0000 (00:06 +0200)]
Introduce the InsetMathHull::outerDisplay method and use it

7 years agoRemove unused methods in anononymous namespace
Jean-Marc Lasgouttes [Wed, 19 Oct 2016 15:51:32 +0000 (17:51 +0200)]
Remove unused methods in anononymous namespace

These have been flagged by gcc 6.

7 years agoUpdate local boost version to version 1.62
Jean-Marc Lasgouttes [Wed, 19 Oct 2016 15:31:54 +0000 (17:31 +0200)]
Update local boost version to version 1.62

This avoids some warnings with gcc6.

7 years agoRestore alphabetic order
Juergen Spitzmueller [Wed, 19 Oct 2016 12:21:24 +0000 (14:21 +0200)]
Restore alphabetic order

7 years agoFix indentation
Jean-Marc Lasgouttes [Wed, 19 Oct 2016 12:10:47 +0000 (14:10 +0200)]
Fix indentation

Thanks to Juergen and gcc 6.2.

7 years agoDo some caching of window title and related UI
Jean-Marc Lasgouttes [Wed, 19 Oct 2016 09:55:08 +0000 (11:55 +0200)]
Do some caching of window title and related UI

This should avoid performance problems related to the window update machinery.
Moreover this fixes a crash introduced by 82808fea when closing a file.

Note that GuiWorkArea::Private already had a read_only_ member, but it
was unused.

Also rename LyXVC::vcname() to LyXVC::vcstatus() since it now contains
directly the UI string to be shown.

7 years agoTypo
Jean-Marc Lasgouttes [Wed, 19 Oct 2016 09:21:02 +0000 (11:21 +0200)]
Typo

7 years agoRemove a now unnecessary \mbox
Enrico Forestieri [Tue, 18 Oct 2016 23:32:29 +0000 (01:32 +0200)]
Remove a now unnecessary \mbox

7 years agoAvoid introducing a spurious space in \lyxmathsout
Enrico Forestieri [Tue, 18 Oct 2016 02:35:02 +0000 (04:35 +0200)]
Avoid introducing a spurious space in \lyxmathsout

7 years agoTake into account font changes when striking out display math formulas
Enrico Forestieri [Tue, 18 Oct 2016 01:29:53 +0000 (03:29 +0200)]
Take into account font changes when striking out display math formulas

Font changes are brought inside the \lyxdeleted macro, just before
outputting the latex code for the math inset. The inset writes a
signature before itself and this is checked by \lyxsout for recognizing
a display math. So, the font changes confuse \lyxsout, which also
swallows the first macro at the very start of \lyxdeleted. The result
is that the font changing command is not seen by latex and \sout is also
used to further strike out the formula already striked out by tikz.
This commit makes sure that the expected signature actually appears
just after the opening brace of \lyxdeleted. It also accounts for a
paragraph break occurring just before the math inset, in order to not
introduce too much vertical space, which is noticeable when using
larger font sizes.

7 years agoChange tracking cue for InsetCaption
Guillaume Munch [Mon, 17 Oct 2016 23:06:03 +0000 (01:06 +0200)]
Change tracking cue for InsetCaption

7 years agoSome compilers are worried that a struct is not the same as a class
Guillaume Munch [Mon, 17 Oct 2016 22:54:37 +0000 (00:54 +0200)]
Some compilers are worried that a struct is not the same as a class

7 years agode.po: update
Juergen Spitzmueller [Mon, 17 Oct 2016 19:21:23 +0000 (21:21 +0200)]
de.po: update

7 years agoUpdate sk.po
Kornel Benko [Mon, 17 Oct 2016 18:54:53 +0000 (20:54 +0200)]
Update sk.po

7 years agoFix latex error when change-tracked deleted display math starts a new paragraph
Enrico Forestieri [Mon, 17 Oct 2016 17:35:04 +0000 (19:35 +0200)]
Fix latex error when change-tracked deleted display math starts a new paragraph

LaTeX refuses to break a line when it is empty. But we have to start
a new line here, otherwise the whole displayed equation would be
typeset as it were inline with previous content. The solution is to
put a zero-length space just before the line break. Moreover, this
is the right thing to do, as it simulates the extra space that is
normally added in this circumstance.

7 years agoctests: explore export failure of Math.lyx with Unicode fonts.
Günter Milde [Mon, 17 Oct 2016 08:36:45 +0000 (10:36 +0200)]
ctests: explore export failure of Math.lyx with Unicode fonts.

7 years agoDo not convert \\\\textbackslash to 0x29f5.
Günter Milde [Mon, 17 Oct 2016 07:04:56 +0000 (09:04 +0200)]
Do not convert \\\\textbackslash to 0x29f5.

Do not use REVERSE SOLIDUS OPERATOR for backwards conversion of
\\\\textbackslash in LyX and tex2lyx.

Both, \\\\ (005C REVERSE SOLIDUS = backslash) and 0x29f5 map to
\\\\textbackslash but 005c is the preferred back-transformation.

Otherwise, using \\\\ in "mathematical text" leads to literal 0x29f5 in the LyX
source which leads to "missing character" errors with non-TeX fonts.

7 years agoStrike out (in the output) deleted display math with track-changes
Enrico Forestieri [Mon, 17 Oct 2016 01:25:35 +0000 (03:25 +0200)]
Strike out (in the output) deleted display math with track-changes

Showing deleted display math by enabling "Show Changes in Output" was
only possible with dvi (through dvipost). Although LyX strikes out
such formulas on screen, it was impossible obtaining an output
directly using pdflatex (or other engines producing pdf) because
ulem cannot cope with display math material and gives errors.
The solution is to strike out by ourselves such deleted formulas.
I took into account several options. One of them would produce
an output similar to dvipost (which strikes out each element), but
would have required much more changes in the output routines.
Eventually, I opted for using tikz, which gives a more clean
output (as it requires to simply adding a preamble and a postamble
to the latex code of any displayed math, instead of a mark up
tailored to each particular math construct). The look of the pdf
output is similar to the way LyX strikes out the equations on screen.

7 years agoGet rid of dirty BufferView pointer
Guillaume Munch [Sun, 9 Oct 2016 22:36:26 +0000 (00:36 +0200)]
Get rid of dirty BufferView pointer

Now that there is a signal to inform the controller when the buffer view has
changed, it is no longer necessary to store a perishable pointer to a buffer
view in the dialog view. (Indeed, it was only really useful for checking whether
the new buffer view pointer was different from the old one.)

TODO: other dialogs should be audited for similar hazards.

7 years agoTake advantage of new bufferViewChanged signal
Guillaume Munch [Sun, 9 Oct 2016 22:35:35 +0000 (00:35 +0200)]
Take advantage of new bufferViewChanged signal

7 years agoFactor code after buffer change
Guillaume Munch [Sun, 9 Oct 2016 22:14:57 +0000 (00:14 +0200)]
Factor code after buffer change

7 years agoNew virtual method frontend::Dialog::on_BufferViewChanged()
Guillaume Munch [Wed, 28 Sep 2016 19:33:44 +0000 (21:33 +0200)]
New virtual method frontend::Dialog::on_BufferViewChanged()

This is called anytime the buffer view attached to the GuiView changes.

7 years agoFit cursor and update screen after reverse-search
Guillaume Munch [Tue, 11 Oct 2016 09:21:40 +0000 (11:21 +0200)]
Fit cursor and update screen after reverse-search

7 years agoFixes to reverse search
Guillaume Munch [Mon, 10 Oct 2016 16:07:01 +0000 (18:07 +0200)]
Fixes to reverse search

* In doubt, select up to the end of the paragraph

* Correct offset after artificial new lines

7 years agoImplement reverse-search in the source panel
Guillaume Munch [Wed, 7 Sep 2016 00:36:55 +0000 (01:36 +0100)]
Implement reverse-search in the source panel

Double-clicking on a line in the source panel triggers the selection of the
corresponding line in the Buffer View.

7 years agoNew LFUN paragraph-goto id_start pos_start id_end pos_end
Guillaume Munch [Mon, 5 Sep 2016 02:23:24 +0000 (03:23 +0100)]
New LFUN paragraph-goto id_start pos_start id_end pos_end

This selects from start to end.

id_end must be in the same buffer as id_start.

7 years agoFix probable omission
Guillaume Munch [Tue, 27 Sep 2016 01:37:02 +0000 (03:37 +0200)]
Fix probable omission

Upon close inspection I do not think that this twist was necessary.

7 years agoTexRow for InPreamble
Guillaume Munch [Sun, 25 Sep 2016 10:38:53 +0000 (12:38 +0200)]
TexRow for InPreamble

This enables error reporting for the preamble, provided the preamble is written
using the new InPreamble layouts.

In the future, I find it preferable to deprecate the usual preamble in favour of
InPreamble layouts rather than implementing error reporting for the usual
preamble. This requires some improvements to code editing in the buffer view
first (line breaking behaviour, syntax highlighting).

7 years agoStreamify a docstring
Guillaume Munch [Tue, 27 Sep 2016 01:22:35 +0000 (03:22 +0200)]
Streamify a docstring

prepare ground for TexRow InPreamble

7 years agoDocstringify getLongString in general and preamble snippets in particular
Guillaume Munch [Sun, 25 Sep 2016 10:37:40 +0000 (12:37 +0200)]
Docstringify getLongString in general and preamble snippets in particular

Prepare ground for TexRow InPreamble

7 years agoTexRow for InsetArgument
Guillaume Munch [Fri, 23 Sep 2016 23:12:38 +0000 (01:12 +0200)]
TexRow for InsetArgument

7 years agoUse otexstringstream for the captions of InsetCaptionables
Guillaume Munch [Fri, 23 Sep 2016 22:49:00 +0000 (00:49 +0200)]
Use otexstringstream for the captions of InsetCaptionables

* Enable TexRow for InsetListings caption.

* Move getCaption* from InsetText to InsetCaptionable.

* Clean-up caption generation for InsetFloat.