Commit Graph

19211 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
3b316bc83f better fix to #7239. Actually the whole switch and kaboodle (see r37229) is needed (otherwise sweave is broken)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37322 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 11:22:47 +00:00
Enrico Forestieri
e0dfcdbdda Fix bug #7254 (LyX may insert a blank line when ending an environment)
The quick solution is to output a % sign before \n. The better one
would be doing as in mathed, but it is not so straightforward.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37320 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 23:58:58 +00:00
Peter Kümmel
9ca53c6af8 fix c&p bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37318 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 15:06:39 +00:00
Peter Kümmel
4a1a425213 remove obsolete code: we have now a animation to indicate that LyX is busy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37316 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 11:38:13 +00:00
Stephan Witt
dd2e73f365 #7149 correct current_view_ or add checks for it for: LFUN_WINDOW_CLOSE,LFUN_SET_COLOR,LFUN_SERVER_GET_FILENAME and LFUN_BOOKMARK_GOTO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37313 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 10:13:18 +00:00
Jürgen Spitzmüller
d469e5dd8b * LaTeX.cpp: recognize etaremune rerun request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37311 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 09:47:58 +00:00
Jean-Marc Lasgouttes
23e17774e1 Fix ticket #7260: Error when opening all floats, when a figure contains a \textcompwordmark command.
Actually, this was an oversight in r33226. There is no need to touch the physical cursor in this method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37310 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-24 09:40:57 +00:00
Georg Baum
d3c385de20 Next step towards a working roundtrip of files generated by LyX:
Try to recognize modules.
Again, this is needed because the complete LyX preamble is ignored.
It is not possible to recognize a module in all cases, but at least the simple
ones are handled now. As a prerequisite I also had to revive the filling of
known_environments. This has been removed (probably by accident) some time ago.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37306 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 21:10:20 +00:00
Edwin Leuven
edf0e85f4b add busy spinner to status bar when threads are running in the background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37304 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-23 09:17:52 +00:00
Georg Baum
87944eedc7 The roundtrip of the math manual produces a compilable document now:
- translate the arguments of \texorpdfstring, so that the floating footnote
  code gets enabled
- honor the ForcePlainLayout flag of insets like the Index inset
- remove hardcoded \url support, this is handled by the general Flex inset code


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37297 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 12:00:33 +00:00
Peter Kümmel
654b342e3f make a copy of Converters because this function is used by our export/preview threads
and the converters is also used by the main thread (getStatus).

LyX.exe!lyx::Buffer::doExport
LyX.exe!lyx::Buffer::preview(
LyX.exe!std::tr1::_Pmf_caller3<
LyX.exe!std::tr1::_Pmf_caller3<
LyX.exe!std::tr1::_Callable_pmf<
LyX.exe!std::tr1::_Bind3<
LyX.exe!std::tr1::_Bind_base<
LyX.exe!lyx::frontend::GuiView::GuiViewPrivate::runAndDestroy<
LyX.exe!lyx::frontend::GuiView::GuiViewPrivate::previewAndDestroy(
LyX.exe!QtConcurrent::StoredFunctorCall3<
LyX.exe!QtConcurrent::RunFunctionTask(
QtCored4.dll!QThreadPoolThread::run(
QtCored4.dll!QThreadPrivate::start(
msvcr100d.dll!_callthreadstartex() 
msvcr100d.dll!_threadstartex(void * ptd)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37292 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-22 09:30:03 +00:00
Georg Baum
85d2c53532 handle commands from xargs.sty correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37289 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 21:21:58 +00:00
Georg Baum
3d4f76cf2d Fix bug #7252
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37288 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 19:18:27 +00:00
Georg Baum
c0778a3d0e Translate all known box insets. This is needed since the super-clever preamble
parser discards all needed packages like calc.sty or framed.sty, so the
resulting document would be uncompilable with those boxes as ERT.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37287 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 18:29:10 +00:00
Pavel Sanda
1246a70abd Update years
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37284 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 13:24:23 +00:00
Pavel Sanda
2c2ec0bbf6 String cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37282 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-21 13:08:21 +00:00
Enrico Forestieri
46cb01a5e0 Fix bug #6720 (Better error handling of instant preview)
Patch from Ale revised by me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37274 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-20 23:39:08 +00:00
Richard Heck
e8bb66b8f4 Miniscule cleanup in Converters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37263 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 16:58:07 +00:00
Richard Heck
57a29ac9a6 Must be a vestige of some earlier code....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37262 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 14:58:20 +00:00
Richard Heck
0aee72871b Use the typedef.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37261 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 14:29:46 +00:00
Richard Heck
c71040e610 Simplify the new graph code just a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37260 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 14:09:44 +00:00
Jürgen Spitzmüller
172b915518 * InsetBox.cpp: framed boxes can have paragraph breaks and environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37258 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 11:18:52 +00:00
Peter Kümmel
2cd88f07b3 #7240
Make Graph more thread save by removing unneeded sharing of data between function calls:
1. Q_
When Q_ is used then it always has been cleared before usage in bfs_init 
(if bfs_init returns false Q_ is not used).
Therefore we could make Q_ local to the functions.

2. vertices_[].path
.path is only used in getPath, and the pathes are always cleared before usage,
so the pathes could also be local.

The locks are not needed here any more. When there will be errors due to 
race conditions, we could not solve them here. We have to lock at higher
places. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37257 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-19 09:03:41 +00:00
Stephan Witt
911961193f #7149 improve the comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37249 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:30:59 +00:00
Stephan Witt
1a1c9dba4c #7149 fix a crash on file-open with having some view but no current one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37248 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:22:10 +00:00
Richard Heck
9815078bab Format conversion for bind files. This completes the coding part of the
rc2rc project. (Was there a bug number for that? I can't find it, if
there was.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37247 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:09:43 +00:00
Richard Heck
718925cb5b Move bind file format tag to LyXAction.cpp, and rename it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37246 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:07:26 +00:00
Richard Heck
f7bfb018a7 Update error message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37244 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 21:49:28 +00:00
Richard Heck
0de73b8866 Don't try to convert any of the preference files except the user's own.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37243 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 15:54:51 +00:00
Richard Heck
eb353f1b58 Previous two commits did the wrong thing. This is right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37242 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 15:07:54 +00:00
Richard Heck
6ceaa728ec Forgot this part.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 15:02:54 +00:00
Richard Heck
9c00df4112 Thanks, Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37240 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 14:59:59 +00:00
Richard Heck
fb377c31df Remove extra return.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37236 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 20:43:19 +00:00
Richard Heck
00b35a8309 Factor out the code that actually does the reading of UI files. This is
preparatory to prefs2prefs conversion here, which will be the last piece
of that work.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37235 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 20:38:08 +00:00
Richard Heck
c8766b2e42 We don't want to write an empty string here. Keep it the default, unless
something else has been provided. (This is only an issue when no spell
checkers are detected.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37234 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 20:30:23 +00:00
Richard Heck
dfb67984f2 Conversion routines for preference files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37233 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 20:28:43 +00:00
Richard Heck
586d60af6a Remove debugging comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37232 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 19:55:03 +00:00
Richard Heck
f05e76c330 Conversion routines for bind files.
All the LFUNs listed in the release notes should be properly converted.
If not, then changes should be made to the file:
	lib/scripts/prefs2prefs-lfuns.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37231 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 19:53:36 +00:00
Richard Heck
0e2828917b Utility functions for converting preference files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37230 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 19:51:02 +00:00
Richard Heck
4f4a8203b3 Fix bug #7239, or at least try to do so. We need to output the command
here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37229 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 19:14:14 +00:00
Peter Kümmel
d9a4a443e7 return empty EdgePath() on error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37227 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 09:53:56 +00:00
Richard Heck
a26dd20159 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37226 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 04:02:59 +00:00
Peter Kümmel
726b602329 start the timer in the correct thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37224 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 22:39:46 +00:00
Peter Kümmel
b5216b25f7 update other build systems, use lyx::Mutex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37223 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 21:40:09 +00:00
Peter Kümmel
06f26e85df Fix crash on Windows:
1. open LYX
2. CRTL-N
3. CRTL-D hold D --> crash

Graph must be thread save to fix this.

And for sure, we need a mutex also later.

Mutex is a simple wrapper around QMutex, with
pseudo-value semantic.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37222 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 21:06:28 +00:00
Pavel Sanda
6aca54134f add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37218 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 20:06:13 +00:00
Peter Kümmel
e1f8907816 fix #7240 Random crashes: iconv() is not thread save
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37217 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 19:52:55 +00:00
Stephan Witt
fa632bfd7e make thesaurus usable for readonly documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37216 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-15 12:09:23 +00:00
Georg Baum
7a74bbf06b Ignore \protect if it is directly in front of \LyX{} (otherwise it would
accumulate for each round trip, since LyX  writes \protect if needed)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37214 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-14 20:06:15 +00:00
Georg Baum
cfd6767ec1 Import notefontcolor (one more step towards a working roundtrip for the LyX documentation)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37213 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-14 20:00:55 +00:00