Commit Graph

29600 Commits

Author SHA1 Message Date
Georg Baum
8c45279696 Let lyx2lyx create a proper TOC inset
Now that \lstlistoflistings is supported by InsetTOC, we should use that
instead of ERT. I could have updated the file format and directly used an
InsetTOC instead, but I was too lazy.
2012-04-18 20:44:33 +02:00
Jean-Marc Lasgouttes
a117a51226 In replaceSelectionWithString, do not select the new string
This is a patch from Scott Kostyshak. The problem it solves is as follows:

1. enable continuous spell check.
2. type a misspelled word and press space so that it has a wavy red underline.
3. right-click and choose a suggested replacement word.
4. press the backspace button.

Result: nothing happens. If you press the backspace button again, then it works as normal.

The selection code was added for the benefit of the spellchecker, but the code has been rewritten since then.
2012-04-18 12:44:31 +02:00
Jean-Marc Lasgouttes
bd171efb8c Correctly ignore the pot file when one uses version-suffix 2012-04-18 12:34:01 +02:00
Richard Heck
12ba6a19d0 Add some comments to include_bib.py about how to set up the converter. 2012-04-17 16:58:28 -04:00
Jean-Marc Lasgouttes
9059843121 Simpler fix for undo support when entering \hline in an equation
* Avoid undo step when using backspace in macro mode
 * Use recordUndoInset when entering macro mode (if one enters something like \hline, the outer inset itself will be modified)
 * Use recordUndoInset when pasting in an INsetMathGrid (same reason as above)
2012-04-17 22:21:45 +02:00
Jean-Marc Lasgouttes
201dcc8ec3 Revert "Fix undo of entering \hline"
This reverts commit 1fa39e1f95.
2012-04-17 22:21:45 +02:00
Richard Heck
88d9fc574e Use InsetLayout instead of hardcoding forcePlainLayout and
allowParagraphCustomization.
2012-04-17 09:43:29 -04:00
Richard Heck
dbf6daf99e Re-organize and repair the InsetLayout for the script inset. 2012-04-17 09:43:21 -04:00
Richard Heck
33022ebb5a Use InsetLayout for LaTeX output. 2012-04-17 09:35:25 -04:00
Richard Heck
1c33d95adf Use InsetLayout to style the XHTML output.
Note that we have also changed the layout name to uppercase, but
this should be fine, since it was so far unused.
2012-04-17 09:16:34 -04:00
Richard Heck
ab873c14a5 Whitespace. 2012-04-17 09:14:53 -04:00
Kornel Benko
bcc6f7c34e * sk.po 2012-04-17 10:33:36 +02:00
Georg Baum
b8f58f8dc0 Document latest file format changes 2012-04-16 22:15:10 +02:00
Georg Baum
27733452f7 Native support for \lstlistoflistings 2012-04-16 21:40:59 +02:00
Uwe Stöhr
503bd6cf71 chkconfig.ltx: fix #8102 by installing all symbol packages we support when LyX is installed 2012-04-15 18:48:51 +02:00
Uwe Stöhr
106cdfea06 de.po: some translations 2012-04-15 18:30:49 +02:00
Uwe Stöhr
491284e59e German UserGuide.lyx: fix a typo spotted by a user 2012-04-15 05:42:32 +02:00
Enrico Forestieri
ea31541848 Fix bugs #6871 and #8119.
Both bugs above were due to a missing screen update. This patch
updates the current view after dispatching a lyxserver command
and thus solves both.

The patch is quite strightforward and the only difficulty was due
to the fact that the lyxserver needs the result of the dispatched
command. Now, GuiApplication::dispatch(FuncRequest const &) does
right this, but does not return the result, while
GuiApplication::dispatch(FuncRequest const &, DispatchResult &)
is called by the former but does not return the result. So, I
split the first one, isolating the code performing the update,
such that the second one can also update the current view when
the caller is the lyx server. When the action is initiated by
anything different from the lyx server, the behavior is unchanged.
2012-04-13 02:57:25 +02:00
Enrico Forestieri
d07f9eec20 Fix bug #8105: Crash when deleting math macro from the inside
It seems that parameterless macros are not wrapped into a MathAtom.
Rather than touching the macro code (which is tantamount to opening
a can of worms, IMHO), I prefer this solution.
2012-04-12 16:28:29 +02:00
Kornel Benko
53f8c46e8a * sk.po
Correct translations of "extension"
2012-04-12 15:49:12 +02:00
Enrico Forestieri
3285ce1d5c Use the right latex backend when a converter needs aux files.
If a converter specifies the needaux flag, latex (or xelatex) is
always run to produce the needed auxiliary files. This is wrong
because there are documents that can only be compiled with a specific
backend and thus the conversion may fail. On the other hand, even if
the document specifies the backend to be used, LyX ignores this info.

This commit rectifies this behavior by letting LyX run the same flavor
of the latex backend that shall be used for previewing the document
also for producing the auxiliary files.
2012-04-11 18:38:32 +02:00
Kornel Benko
829e1fbc4d * sk.po
Listings + ...
2012-04-11 12:20:09 +02:00
Georg Baum
a2e8cb758b Translations for listings insets
The listings inset and include inset of type listings use two english terms
that are not localized yet: "Listing" for the caption and "Listings" for the
list of listings (not supported natively by LyX yet). The existing layout
translation mechanism has been extended to translate these terms as well:

1) Support [[stuff]] context in lib/layouttranslations
2) Support BabelPreamble and LangPreamble in InsetLayout
3) Use a InsetLayout for InsetInclude of type listings
4) Define BabelPreamble and LangPreamble in the layouts for InsetInclude
   and InsetListings
2012-04-10 20:21:01 +02:00
Kornel Benko
8961be22ec * sk.po
'Index' traslation. Missed these
2012-04-09 22:54:09 +02:00
Kornel Benko
e190642edf * sk.po
clean translations of word 'index'
2012-04-09 22:27:15 +02:00
Kornel Benko
14e48b434c * sk.po 2012-04-09 13:24:40 +02:00
Kornel Benko
4a60f604c5 * sk.po
Reworked all dialogs.
"linguist" is your friend
2012-04-09 13:15:12 +02:00
Vincent van Ravesteijn
f0754582b8 Fix bug #8114: LyX does not retrieve negative bbox parameters
LyX fails to read the bounding box from an EPS file if it has
negative values. Adjusting the regex will overcome this problem.
Negative values do not pose big problems later on, but the GUI
doesn't handle it correctly yet (see bug #5718).
2012-04-08 23:20:01 +02:00
Vincent van Ravesteijn
91bc04946f Fix a copy-paste error introduced in b754fb02 2012-04-08 21:47:40 +02:00
Georg Baum
1fa39e1f95 Fix undo of entering \hline
It was broken with 6d75800f5d as noticed by Enrico. The fix is to use undo
groups (thanks Jean-Marc).
2012-04-08 19:15:49 +02:00
Richard Heck
7c5f28ad26 The logic of the endParagraph() routine is wrong. We should first
check if the parsep_tag is pending.
2012-04-08 10:05:44 -04:00
Richard Heck
8dd436b7dc We need to check, in closeFontTags(), for the case where we haven't
had any content.
2012-04-08 10:05:44 -04:00
Richard Heck
29cf7af6d3 The isTagOpen() routine can be const. 2012-04-08 10:05:44 -04:00
Richard Heck
313c9e0e5a Debugging code for the tag stack, disabled by default. 2012-04-08 10:05:43 -04:00
Uwe Stöhr
bdcb7ad91f Merge branch 'master' of git.lyx.org:lyx 2012-04-07 03:09:12 +02:00
Uwe Stöhr
a61f4978f5 uk.po: translation update by Yuri 2012-04-07 03:05:51 +02:00
Pavel Sanda
eef01321d5 fi.po - change date to prevent porting from branch 2012-04-07 02:04:50 +02:00
Pavel Sanda
1f5d505428 * fi.po - fix #8115 (Chapter, Part untranslated) 2012-04-07 01:30:30 +02:00
Pavel Sanda
014942d855 Finnish layouttranslations, checked by Hannu Vuolasaho.
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91879.html
2012-04-07 01:12:08 +02:00
Pavel Sanda
cee7b2d279 Remerge fi.po 2012-04-07 00:54:44 +02:00
Kornel Benko
b9d1d943e8 More shortcuts 2012-04-06 12:29:00 +02:00
Richard Heck
d78560832a Fix error output for XHTML a bit. 2012-04-03 18:13:59 -04:00
Richard Heck
7b6b4c4598 Make index comparisons for XHTML output case insensitive. 2012-04-03 17:54:50 -04:00
Richard Heck
5db793ff30 Merge branch 'master' of git.lyx.org:lyx 2012-04-03 15:54:54 -04:00
Richard Heck
33f34e8ffb Clear local layout before reading BufferParams. Otherwise, you can't
delete the local layout.
2012-04-03 15:53:56 -04:00
Richard Heck
ec5735b144 Fix bug #8107. Just an oversight: We need to invalidate the file
cache, not just the BibInfo cache, when we create a new BibTeX
inset.
2012-04-01 18:22:37 -04:00
Pavel Sanda
612109bb6e Merge branch 'master' of lyx:lyx 2012-03-31 01:09:21 +02:00
Pavel Sanda
8eea8cbf2f At least document QImage stuff. 2012-03-30 18:15:30 +02:00
Kornel Benko
fd597d27b3 * sk.po 2012-03-27 16:09:31 +02:00
Richard Heck
a71e831d23 Clean up the include_bib script a bit. 2012-03-26 12:06:04 -04:00