Commit Graph

500 Commits

Author SHA1 Message Date
Pavel Sanda
a31a9d9ba5 Fix #8203: remove window updating optimization leading to various crashes.
This is already fixed in trunk.
2012-06-28 21:03:14 +02:00
Juergen Spitzmueller
065f247ccb do not output empty language switch commands (bug #8216) 2012-06-28 16:49:45 +02:00
Juergen Spitzmueller
d0df873ebb linguistics manual: document shortcomings (and workarounds) of glosses 2012-06-23 19:30:06 +02:00
Richard Heck
a11f385797 Updates to Basque translation. 2012-06-23 09:20:58 -04:00
Uwe Stöhr
b835e6e03b tex2lyx/table.cpp: fix bug #8204 also for branch (prevent crash if TeX files define wrong table column numbers) 2012-06-23 01:13:43 +02:00
Uwe Stöhr
940fbe965e status.20x: revert last change (sorry, this should not go in) 2012-06-22 14:33:34 +02:00
Uwe Stöhr
0f3d7f0234 - status.20x: add entry for the table cell rotation support added in [cd691081b4/lyxgit] 2012-06-22 14:31:26 +02:00
Jean-Marc Lasgouttes
fb80ce20ca Handle sending a FuncRequest object to lyxerr
* Implement the corresponding operator<<

  * Use it in a couple new places
2012-06-22 10:45:46 +02:00
Uwe Stöhr
00a8ccdd07 sv.po: translation updates by Jim 2012-06-21 03:21:48 +02:00
Pavel Sanda
ef173f22a5 Backport 35e4c1c9a6. 2012-06-14 15:57:44 +02:00
Juergen Spitzmueller
d84eea891e Add DefaultStyle to siamltex.layout (bug #8194) 2012-06-10 11:45:41 +02:00
Juergen Spitzmueller
54ac0bb970 Restore default output format after tex fonts switch (#8191) 2012-06-08 20:24:09 +02:00
Jean-Marc Lasgouttes
a97d858145 Typo 2012-06-05 12:17:33 +02:00
Jean-Marc Lasgouttes
18c887f2db Fix bug #7956: Assertion When Trying to Paste Into Table
For some unknown reason, the paste code likes to call Cursor::setSelection(), which is not appropriate here since we are not trying to set a selection at this point.
2012-06-05 11:36:45 +02:00
Uwe Stöhr
dffb1ab6c3 - fr.po: updates from Jean-Pierre
- nn.po: updates from Ingar
- status.20x: register also other languages which have been updated for LyX 2.0.4
2012-06-04 23:11:42 +02:00
Uwe Stöhr
5ec8f5a5b6 languages: also for trunk: add missing language codes, fixes bug #8183 2012-06-04 22:33:05 +02:00
Juergen Spitzmueller
9df0a930d4 Add missing undo recording.
This adds a change of the printindex type (with multiple indices) to the undo stack and marks the buffer dirty on that action (bug #8182)
2012-06-04 19:13:31 +02:00
Pavel Sanda
99ada23d97 Backport f6921819. 2012-05-31 14:02:40 +02:00
Juergen Spitzmueller
026f53f41c Fix crash when removing last converter (bug 8178) 2012-05-29 15:40:07 +02:00
Juergen Spitzmueller
daf44909c0 Load bibtopic after hyperref (bug #8005) 2012-05-29 13:23:08 +02:00
Juergen Spitzmueller
044ef5dc4e add missing IPA glyph 2012-05-28 15:54:31 +02:00
Enrico Forestieri
5909fc467a Fix bug #8164: lyxpak.py fails to include filenames with spaces
People love embedding spaces in filenames, so account for that.

(cherry picked from commit fbcf2486d8)
2012-05-20 22:27:08 +02:00
Juergen Spitzmueller
993fa89009 If a file is saved as, reset its master if it has any, thus preventing a crash (bug 8161) 2012-05-19 14:03:50 +02:00
Uwe Stöhr
ab28040ca4 seminar.lyx: new example file from Günter Milde (forgot it in last commit) 2012-05-18 23:20:20 +02:00
Uwe Stöhr
b0c3dce84f seminar.layout: new version from Günter Milde (bug #7624) 2012-05-18 21:29:21 +02:00
Richard Heck
0cb1c96d01 Typo. 2012-05-17 07:28:11 -04:00
Jean-Marc Lasgouttes
db4cc27f4d Document a few commits I forgot. 2012-05-17 12:59:05 +02:00
Vincent van Ravesteijn
1ae4cdcd5c Update status.20x 2012-05-14 15:49:31 +02:00
Vincent van Ravesteijn
d475caf278 Fix bug #7641: Freeze when removing itemized first paragraph
Text::outerFont looks recursively for paragraphs before the current one
which has a lower depth. If such a paragraph cannot be found, depthHook
and outerHook return the current paragraph. As such, we end up in an
infinite loop. So, if we find a par_depth that was the same as the
previous one, we apparently can't find a suitable paragraph and we should
quit the loop.
(cherry picked from commit b17250d7eb)
2012-05-14 15:09:21 +02:00
Enrico Forestieri
3a3f6c838c Backport fix for bug #7982: LyX does not work if working directory a
hard disk drive like D:\.

In this case, the working dir has already a slash at the end.
Appending another one would result in a path ending with a double slash,
which has a special meaning when used in TEXINPUTS (all subdirs would
be recursively scanned). So, avoid doing that.

(cherry picked from commit 93ebb7a863)
2012-05-14 08:56:35 -04:00
Richard Heck
1e27b1d144 Updates to Customization manual from Scott. 2012-05-14 08:45:59 -04:00
Vincent van Ravesteijn
eaf059fd46 Windows installer: Update links in uninstaller 2012-05-13 21:00:30 +02:00
Vincent van Ravesteijn
38a8538194 Windows installer: Detect Inkscape when installing 2012-05-13 20:59:51 +02:00
Vincent van Ravesteijn
8c9da0c2d6 Fix bug #7870: Win installer: check for Gnumeric
Gnumeric is needed for the spreadsheet external inset template.
2012-05-13 20:59:15 +02:00
Vincent van Ravesteijn
4434df7bf0 status.20x for [86d8e5cf\lyxgit] 2012-05-13 20:56:25 +02:00
Georg Baum
0b60b468c4 forgot status as well 2012-05-13 20:48:43 +02:00
Richard Heck
c1e8933eb8 Status for previous commit. 2012-05-13 14:07:45 -04:00
Richard Heck
fc3ed37c50 Add LibreOffice converters for ODT. 2012-05-11 08:01:58 -04:00
Richard Heck
a223441391 Status for last commit. 2012-05-10 16:20:43 -04:00
Vincent van Ravesteijn
6541b6bd6c Fix bug #8153: Update to lib/unicodesymbols
Patch from Guenter Milde.
2012-05-10 17:58:38 +02:00
Pavel Sanda
9397d6217d Backport 17e8ea8a (#8018). 2012-05-10 17:34:11 +02:00
Pavel Sanda
9f51e76f8c Backport fb45a49d (#8021). 2012-05-10 17:28:53 +02:00
Vincent van Ravesteijn
cf27d693d8 Fix bug #953: Paint text decorations for spaces
(cherry picked from commit c671703f05)
2012-05-06 17:23:23 +02:00
Vincent van Ravesteijn
abce7966e6 Fix bug #5167: Correctly paint special characters in InsetMathFont
When using, e.g., a 'mathcal' inset in math, the inline completion and
other special characters like '\#', '{..}' are are painted in the
'mathcal' font as well. This is overcome by setting the mathnormal font
before painted these characters.

(cherry picked from commit 6377296492)
2012-05-06 17:23:21 +02:00
Vincent van Ravesteijn
58946a2996 Always require a mask to get a temporary filename
If no mask is supplied or the mask is attached to the end of the filename, we end up with unexpected names like
  <system-temp-dir>\lyx_tmpdir.qHp780.vcr780_<mask>
instead of a temporary file in the lyx temporary directory like
  <system-temp-dir>\lyx_tmpdir.qHp780\<mask>.vcr780.

(cherry picked from commit 5e4e4b674c)
2012-05-06 17:23:20 +02:00
Vincent van Ravesteijn
53cea14986 configure.py: Replace 'ltx' by 'log' case insensitively
On windows the temporary filename consists of uppercase characters. This
causes that the extension does not get replaced, and the logfile is left
behind.

Checking the extension case insensitively will correctly remove the
logfile.

(cherry picked from commit a02bfeebc5)
2012-05-06 17:23:18 +02:00
Vincent van Ravesteijn
9f25da8c12 Status.20x entry for [7d619f43/lyxgit] 2012-05-06 17:21:30 +02:00
Georg Baum
7a87c2f710 Forgot status.20x. 2012-05-06 13:06:01 +02:00
Richard Heck
773f2b365c Status for last commit. 2012-05-03 15:42:21 -04:00
Richard Heck
264948348e Fix bug 8124. We enable LFUN_INSET_MODIFY in InsetBox if it
is intended for us, i.e., if the first argument is "box". Maybe we
should also check to make sure that the rest of the arguments are
good, but we used just to return true no matter what the argument
was, so this is an improvement.

LFUN_INSET_MODIFY is really kind of a mess.
2012-05-02 17:43:18 -04:00
Vincent van Ravesteijn
3a53a52b1c Fix bug #7914: Freeze on docbook export of lists and bibliography
The LATEX_LIST_ENVIRONMENT and LATEX_BIB_ENVIRONMENT type paragraphs are
not yet implemented in DocBook export. However, we need to actively skip
these paragraphs in order not to end up in an endless loop.

(cherry picked from commit fa9bd04ea4)
2012-05-02 18:27:13 +02:00
Vincent van Ravesteijn
2e771bf78d Fix bug #8089: Handle spaces at the end of the stream
If the stream is good (i.e. there are still tokens) and we expect an
argument, we call getArg(). However, if there are only spaces, the stream
suddenly isn't good anymore after 'skipSpaces' and we would get an error
when calling 'getChar'. Therefore we have to check whether the stream is
still good.

MathParser: Do not rewind the stream if we can't read from it

If the stream is not good, we don't need to 'putback', because we didn't
read anything yet. If we now do rewind the stream, we are asking for
problems as in bug #8089.

This was introduced in [3cafb856\lyxgit] to fix bug #4318.

(cherry picked from commit 26dcfcd343)
(cherry picked from commit 1ef930c058)
2012-05-02 18:24:24 +02:00
Richard Heck
f79fd6013e More re-ordering, again mostly to test emails. 2012-05-02 11:28:15 -04:00
Richard Heck
f1c4a8fd03 Re-order status.20x, again. 2012-05-02 10:57:15 -04:00
Richard Heck
4b6ddefcaa Introduce LyXHTML section in status.20x 2012-05-02 10:54:22 -04:00
Vincent van Ravesteijn
39f06f37c3 Fix bug #7518: Assert when selecting in RTL text
If we are in rtl text, we *need* to check whether the first character is a
space. We can't use the rtl variable for this because this is only
computed on the last row.

This bug was introduced in [0a137e31/lyxgit] to fix the computation for
freespacing paragraphs. We better can just check whether the paragraph is
freespacing or not.

(cherry picked from commit d7f68078cf)
2012-05-01 11:45:58 +02:00
Vincent van Ravesteijn
0665673d03 Fix bug #8078: Assertions in xhtml output on Windows
(cherry picked from commit 3c0e3c16c8)
2012-05-01 11:42:52 +02:00
Enrico Forestieri
124bc762a7 Fix bug #8140: Crash with math macros and input completion
When clicking away in the same math inset after hitting '\', the
cursor may be broken and all of its instances have to be fixed.

(cherry picked from commit 9825621798)
2012-05-01 01:01:03 +02:00
Richard Heck
4296e47d28 Re-order status.20x a bit more. 2012-04-30 18:08:33 -04:00
Richard Heck
384ba91d5c OK, one more try here. Re-order a bit more. 2012-04-30 17:55:10 -04:00
Richard Heck
d831a451d1 OK, re-order a bit more. Last try with the email stuff for now. 2012-04-30 17:53:39 -04:00
Richard Heck
6cfbc51039 Re-order a bit. 2012-04-30 17:51:17 -04:00
Richard Heck
1b23d6ada8 Another small test. Sorry for all of these. I'm trying to get the
commits into the email, and there's only one good way to test it.
2012-04-30 17:45:49 -04:00
Richard Heck
5fc596ff09 Another silly test. 2012-04-30 17:25:35 -04:00
Richard Heck
cdd0b5c187 Another silly fix for testing. 2012-04-30 17:20:57 -04:00
Richard Heck
71f9611d70 Another fix for testing. 2012-04-30 17:19:07 -04:00
Richard Heck
d14646964a Re-order status.20x a bit. This is really just a test. 2012-04-30 16:51:49 -04:00
Vincent van Ravesteijn
013dc6cb3a Fix bug #7653: Quotation marks have wrong color
Quotation marks had the wrong color when using change tracking, or when
selecting.

(cherry picked from commit 14ef7d2b82)
2012-04-29 17:00:14 +02:00
Vincent van Ravesteijn
d4238397b9 Fix bug #7667: Pixmap cache and CT lead to random colors
The signature of the character in cache should take into account the
change tracking baseColor (author) and mergeColor (added/deleted). If not,
we will mixup different cached pixmaps.

(cherry picked from commit 6327993867)
2012-04-29 17:00:13 +02:00
Vincent van Ravesteijn
a102ba7564 Reset the (running) change in PainterInfo
When an InsetText is deleted, all lines in the inset are painted as
deleted. This status should be restored afterwards. If not, insets will be
painted in the wrong color afterwards (e.g. tables).

(cherry picked from commit af4e31ec28)
2012-04-29 17:00:12 +02:00
Vincent van Ravesteijn
76bff4cc04 BufferView::dispatch(): add a missing break
(cherry picked from commit 3a395ca0f5)
2012-04-29 17:00:11 +02:00
Vincent van Ravesteijn
921445239a Do not show deleted text in the html title
(cherry picked from commit 77c8c15947)
2012-04-29 17:00:10 +02:00
Vincent van Ravesteijn
507701261a Include the qt gif plugin in the Windows installer
Since LyX2.0 there was a busy icon in the status bar,
but it is not visible on Windows unless the gif plugin
is distributed along.
2012-04-29 17:00:09 +02:00
Pavel Sanda
7cea9372d5 Backport 217ef5bf3 (#81380 2012-04-26 14:19:05 +02:00
Richard Heck
ddee4f872b Don't output extra body tags with included files. 2012-04-23 14:14:01 -04:00
Uwe Stöhr
4e1bc622ca backport fix for #8102 2012-04-23 01:28:55 +02:00
Richard Heck
650ab1783a 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.

Conflicts:

	src/insets/InsetScript.cpp
2012-04-17 09:28:28 -04:00
Richard Heck
9b5da57623 Fix header of status.20x. 2012-04-15 22:43:21 -04:00
Enrico Forestieri
482355e7b4 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 update the view, but does not return any result, while
GuiApplication::dispatch(FuncRequest const &, DispatchResult &),
which is also called by the former, does not update the view.
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.

(cherry picked from commit ea31541848)
2012-04-16 00:19:22 +02:00
Enrico Forestieri
fe47997587 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.

(cherry picked from commit d07f9eec20)
2012-04-15 23:59:18 +02:00
Uwe Stöhr
fea4cfbbd7 status.20x: fix 2 typos; Richard, can you please revise the now invalid info about SVN in the header? 2012-04-15 04:22:02 +02:00
Enrico Forestieri
99fe8ef2ba 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.

(cherry picked from commit 3285ce1d5c)

Conflicts:

	src/Converter.cpp
2012-04-11 20:32:27 +02:00
Peter Kümmel
229fa2cd88 clang: std::string is used here, fwd is not enough
(cherry picked from commit f41057cae6)
2012-04-09 15:17:17 +02:00
Vincent van Ravesteijn
036e0c2abd 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).

(cherry picked from commit f0754582b8)
2012-04-09 15:17:07 +02:00
Richard Heck
25246819de Backport the following from trunk:
29cf7af6d3
		8dd436b7dc
		7c5f28ad26
This fixes issues with empty paragraphs in XHTML output.
2012-04-08 10:20:11 -04:00
Uwe Stöhr
4d9c273d02 uk.po: translation update by Yuri 2012-04-07 03:15:23 +02:00
Richard Heck
b82a856a32 Make index comparisons for XHTML output case insensitive. 2012-04-03 17:57:01 -04:00
Richard Heck
8558d84d4d Clear local layout before reading BufferParams. Otherwise, you can't
delete the local layout.
2012-04-03 15:58:06 -04:00
Richard Heck
858ccc413f Backport fix for bug #8107. We need to invalidate the file
cache, not just the BibInfo cache, when we create a new BibTeX
inset.

Conflicts:

	src/insets/InsetBibtex.cpp
2012-04-01 18:28:55 -04:00
Uwe Stöhr
3c2c0c182f Merge branch '2.0.x' of git.lyx.org:lyx into 2.0.x 2012-03-28 22:51:50 +02:00
Uwe Stöhr
44ee575562 beamer.layout: fix #8094 also for branch 2012-03-28 22:51:36 +02:00
Richard Heck
e5c8f33be7 Clean up the include_bib script a bit. 2012-03-26 12:07:46 -04:00
Jean-Marc Lasgouttes
f98bb89227 Better support for (Lua|Xe)TeX files in tex2lyx
When one of the packages specific to these engines are used in the TeX file:
* set default encoding to utf-8
* set \use_non_tex_fonts to true

This is a hand-made backport of svn commit r40765.
2012-03-26 16:10:31 +02:00
Juergen Spitzmueller
0ee5c1919a Beamer supports \subsubsection. Add to layout. 2012-03-26 12:33:37 +02:00
Enrico Forestieri
ae06825513 status.20x for last commit.
I first used cherry-pick, then tried to modify status.20x but there
was no way I found to proceed from there. So, to be able to come
out form this situation I reverted the changes to status.20x,
pushed the cherry-picked revision and then committed the changes
to status.20x.

Let me say that git is way too much complicated to be really useful.
2012-03-25 15:49:10 +02:00
Vincent van Ravesteijn
87d97322ef Fix more possible crashes due to asInsetRef()
InsetMathHull has no method asInsetRef() and returns therefore 0.

See also 5bd68605.
2012-03-24 11:12:42 +01:00
Richard Heck
5bd68605df Backport fix for bug #8095.
The crash was due to the otherwise innocent looking 07924ac300. The cast
Vincent replaced was already wrong---it seems to have been a thinko in
7bbd67eb2679---but it worked kind of by accident before. Now it crashes.
2012-03-23 14:43:41 -04:00
Uwe Stöhr
6f5ea2ae47 GuiTabular.cpp: fix bug #8092 also for branch 2012-03-21 21:50:34 +01:00
Vincent van Ravesteijn
3c78445234 Remove duplicated entry from status.20x 2012-03-19 19:29:38 +01:00
Vincent van Ravesteijn
cddd90dfdf Fix bug #8083: Fix the selection of cells below multirows
Multirows were introduced in 8bb69f24 (Uwe Stoehr, 11 Feb 2010). In the
computation of the nearest cell, it was forgotten to account for the
vertical offset. tabular.cellHeight is the full height of the cell, while
the point that comes from the coordCache is offsetted by VOffset.
Therefore, we have to subtract the VOffset from o.y_.
2012-03-19 19:29:37 +01:00