Commit Graph

30533 Commits

Author SHA1 Message Date
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
Juergen Spitzmueller
49bb3de6c0 de.po: update 2012-03-26 12:52:43 +02:00
Juergen Spitzmueller
9e570cc90e Forgotten string change. 2012-03-26 12:41:44 +02:00
Juergen Spitzmueller
100036e6e8 Beamer supports \subsubsection. Add to layout.
OK for branch?
2012-03-26 12:12:14 +02:00
Georg Baum
d88f7727e9 Fix tex2lyx table output.
It is broken since the latest file format update (neither did Uwe run a test
after updating the file format, nor did I after undoing my accidental change).
The reason it was broken: the bool version of write_attribute() is chosen
for "0" instead of the string version, so each table used rotate="true".
2012-03-25 18:46:00 +02:00
Georg Baum
1a6c599917 Extend the notermination flag to math as well.
Math commands need it as well as text commands. At the same time, this
further unifies the checking for termination and fixes cases of wrong
output (e.g. for 0x2005).
2012-03-25 15:57:38 +02:00
Georg Baum
e63f561c42 Revert unwanted change.
I have no idea how this was created. I hadf changed this file, but reverted
it with git chekout before committing.
2012-03-25 11:25:14 +02:00
Georg Baum
6d75800f5d Fix bug #6936.
If \hline is entered, do not create an unknown inset, but increase the number
of hlines of the current row if that is allowed. The same idea is applied to
copy-paste (not part of the bug report).
This is also a test for committing via git.
2012-03-25 11:16:32 +02:00
Enrico Forestieri
b907a0dc7c Fix bug #8098
The Windows shell cannot have a UNC path as the current directory.
However, using pushd to change to the same directory automatically
maps the UNC path to a drive letter and thus it works.

Note that when calling cmd.exe from a UNC path there are still
warnings about the UNC path, but the command is then successfully
executed because the current directory is set to something digestible
by the shell.
2012-03-25 05:14:58 +02:00
Kornel Benko
d728575bf8 Punctuation + some shortcuts 2012-03-24 18:11:25 +01:00
Vincent van Ravesteijn
7fbf23d916 Fix monolithic build (bug #8079) 2012-03-24 15:25:30 +01:00
Vincent van Ravesteijn
e409eedc5b Fix more possible crashes due to asInsetRef()
InsetMathHull has no method asInsetRef() and returns therefore 0.

See also 447e0d03.
2012-03-23 23:01:35 +01:00
Richard Heck
447e0d0308 Fix 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:37:48 -04:00
Richard Heck
ef9f83d47e Add a few more things to ignore, mostly generated files. 2012-03-23 14:09:19 -04:00
Lars Gullik Bjønnes
c7bb190fd3 Setup .gitignore for generated files
Setting up .gitignore or .git/info/excludes is something that should
be done. Not doing it makes it a lot harder to see actual new files
that should be added.

Signed-off-by: Lars Gullik Bjønnes <larsbj@gullik.org>
2012-03-22 02:16:12 +01:00
Uwe Stöhr
138b615a3b again some things which cherry pick did not catch, sorry 2012-03-22 00:02:36 +01:00
Uwe Stöhr
34014336fa lyx2lyx/lyx_2_1.py: add missing things from previous commit (cherry pick seems to make mistakes or I used it not correctly) 2012-03-21 23:39:33 +01:00
Uwe Stöhr
ea54461d85 full support for table rotations; fileformat change 2012-03-21 23:04:45 +01:00