Commit Graph

20519 Commits

Author SHA1 Message Date
Richard Heck
b0601b540e UI for writing CSS to file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40410 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 22:17:26 +00:00
Richard Heck
c3f0e21968 Activate ability to write CSS to a separate file. There is no UI
for this yet, however.

Includes elements of a patch by Rob Oakes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40409 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 22:17:22 +00:00
Richard Heck
986222a754 Collect CSS information in a string before writing it to the header.
This will make it easier to write it to a separate file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40408 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 22:17:18 +00:00
Richard Heck
38b9a4530e New methods in LaTeXFeatures specifically for collection of CSS
information on XHTML output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40407 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 22:17:13 +00:00
Richard Heck
e7877f6fee Math output flavor was not set when viewing source code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40406 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 22:17:06 +00:00
Peter Kümmel
c2ff9de084 timeout_min is platform independent
#7928

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40402 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 20:52:19 +00:00
Richard Heck
62dd071ce6 Improve output of XHTML comments.
(i)  Validate even for comments when outputting XHTML.
(ii) Output comments as divs hidden by default. Then people
     can display them other ways if they wish.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40400 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-06 20:44:37 +00:00
Pavel Sanda
4d541f8430 Don't hardcode /tmp in lyxclient, bug #7917.
Patch from Benjamin Piwowarski.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40380 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 19:09:24 +00:00
Vincent van Ravesteijn
7d98d770b1 Cleanup r40377
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40379 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 13:41:15 +00:00
Julien Rioux
467c955507 This is not limited to BibTeX. Missing citation keys can also happen for standard bibitem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40378 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 13:17:55 +00:00
Vincent van Ravesteijn
a35e512e90 Fix bug #7916: Undo warning message when inserting plaintext file
LFUN_INSERT_PLAINTEXT is handled in GuiView because it might need to ask for a filename. But if the filename is given as a paramater we can handle it in BufferView immediately. Also, when we've asked for the filename in GuiView we should dispatch the LFUN to BufferView in order to properly use the Undo mechanism.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40377 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 13:12:57 +00:00
Vincent van Ravesteijn
a0d8157891 Fix bug #7755: Unknown tabular feature "from-dialog"
"from-dialog" is added to the LFUN_INSET_MODIFY function when it is issued from the table settings dialog. This is done to prevent the checking of the individual parameters, because it has to consider all parameters alltogether. Besides, when issued from the dialog it is already guaranteed that the parameters are valid.

This parameter should not be passed onto tabularfeatures.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40376 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 12:40:22 +00:00
Vincent van Ravesteijn
0b790c05b8 CMake/Win32: Add an icon to the tex2lyx executable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40375 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 12:29:24 +00:00
Jean-Marc Lasgouttes
9928a67e32 Fix bug #7909: mark-on selection is lost during screen-down and screen-up
The trick is to rely on Cursor::selHandle instead of fiddling with the selection


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40372 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 08:35:55 +00:00
Uwe Stöhr
faaccd6605 tex2lyx: support for pdfpages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40368 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-05 00:57:42 +00:00
Georg Baum
169bc143cb fix parsing of \def macros (was broken with the spreadsheet template support)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40363 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 16:00:00 +00:00
Georg Baum
07b2ffa469 fix preamble output in case child docs are present
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40362 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 15:35:59 +00:00
Georg Baum
528c984a57 Improve longtable import (part of bug #7412).
A complete fix is currently impossible because LyX assumes that all longtable
captions are in the first head.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40361 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 09:35:16 +00:00
Richard Heck
93146dc614 Need to save a pointer to this list, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40360 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 03:05:08 +00:00
Richard Heck
66e633811e There's no need to separate this logic out if it's only called
from the one place.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40359 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 02:38:00 +00:00
Richard Heck
8e553c5671 We need to create the clone list here, even though the only thing
in it will be the one Buffer we are cloning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40358 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-04 02:35:38 +00:00
Richard Heck
1ae948e136 Fix #7923: Don't clone all the children on autosave.
We split Buffer::clone() into various routines that know whether
to clone the children.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40357 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 23:20:18 +00:00
Richard Heck
e5fea4dabb Comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40356 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 23:15:04 +00:00
Julien Rioux
e93092e72b Remove the .aux and .bbl files when we switch the citation engine or style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40355 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:58:38 +00:00
Richard Heck
210a440609 Attempt to fix #7673 in a more "interesting" way than in branch (where
we will be cautious, of course). The problem was that we were issuing
the Buffer::changed() signal before we did updateBuffer(), and this
caused an inconsistency. The idea here is to defer issuing this signal
until we call processUpdateFlags(). We know we need a redraw if we've
deleted a whole paragraph.

This should work properly, so long as checkDepm is called from within
the dispatch mechanism. There may, however, be other paths, and I've
noted one explicitly with a FIXME in Text2.cpp. I've tested a few
different variations, however, and I haven't seen any problems. But if
we do run into problems, we can go ahead and do the update there that we
were previously doing in checkDepm itself.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40352 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:42:09 +00:00
Julien Rioux
43c09d7234 Also display the info about BibTeX databases in the TeX info panel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40351 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:24:58 +00:00
Julien Rioux
0c4e88b8a0 Minor improvements to the citation GUI: some dimensions and tab ordering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40350 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:24:51 +00:00
Julien Rioux
7aee04217d Give a visual feedback that the BibTeX key could not be found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40349 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:24:44 +00:00
Julien Rioux
66b51a0a44 Show insets as text in the formatted bibliography entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40348 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:24:38 +00:00
Julien Rioux
a0f6d3db9e Update a bibitem label also when it is emptied.
It is valid for a label to be empty, but up to now the bibliography
information was not updated when a label was emptied.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40347 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:24:30 +00:00
Julien Rioux
dfdcc56cba Remove extra whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40346 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-03 22:15:11 +00:00
Richard Heck
8cabbae616 The Cursor argument here was not being used, so there is no need
for the indirection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40339 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 22:44:38 +00:00
Richard Heck
8c69aca339 Add constness in several places.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40338 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 22:41:33 +00:00
Richard Heck
8b6d6eecfd Remove unused optional argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40337 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 22:27:14 +00:00
Richard Heck
ef4fb9b324 Cosmetics or style or something.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40336 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 22:27:09 +00:00
Richard Heck
a9cd8ff5a9 Deal with the part of #7872 involving changing branch activation
from the context menu. As mentioned in the FIXME, we cannot now
handle the case where the branches are held in a master buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40334 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 21:21:37 +00:00
Richard Heck
3a03e71c3e Deal with the part of #7872 involving changes of branch activation
from Document>Settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40333 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-02 21:21:30 +00:00
Stephan Witt
42e7089a61 correct capitalization of AppKit framework - for case sensitive Mac OS X filesystems
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40316 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 20:41:08 +00:00
Georg Baum
5a525d932f Move some more packages from unconditionally swallowing to the package
registration mechanism, so that they are only swallowed if LyX will load them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40315 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-29 20:09:40 +00:00
Georg Baum
4925de1097 Do not output parameters twice if the file was not found (part of bug #6127).
In this case, the inset parameters win in case there is any conflict. The only
exception is "type=eps", since I was too lazy to make the full keyval parser
of tex2lyx available to InsetGraphics in order to parse the special parameter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40298 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-27 20:12:32 +00:00
Georg Baum
529a018bc3 Fix parsing of stuff with ] in \item arguments (part of bug #6127)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40295 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-27 13:29:56 +00:00
Georg Baum
76c5902b40 Parse the picture variant of \framebox correctly (part of bug #6449)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40294 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-27 11:57:47 +00:00
Uwe Stöhr
2906a35663 tex2lyx: support for Spreadsheet and chess external templates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40270 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-25 01:01:45 +00:00
Richard Heck
8656d7fda3 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40246 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 18:23:11 +00:00
Richard Heck
6e6f036f03 Fix bug #7709. Seems we need to reset the source model here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40245 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:52:46 +00:00
Richard Heck
05194fa79b Simplify code a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40244 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:49:34 +00:00
Richard Heck
66af29735c Fix bug #7906. Check the widgets after creating the dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40243 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:44:31 +00:00
Richard Heck
01dc4e4b83 Didn't mean to include this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-22 18:49:16 +00:00
Richard Heck
d38d332d9f Fix bug #7905. We don't want to move out of the inset unless
we've put something into it. (We also don't need to copy an
empty string into it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40240 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-22 18:40:01 +00:00
Georg Baum
76e90badc0 Beautify documents created by writer2latex (see bug #5187).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40235 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 20:30:12 +00:00
Georg Baum
3f8a615477 Fix bug in paragraph detection (can be seen in test case of bug #5187):
If we want to look at the token after the next token, it may be needed
to call tokenize_one() twice and not only once as done in good().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40234 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 20:28:55 +00:00
Peter Kümmel
8abb5429b9 prepare switch to switch-case in when parsing tex files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40232 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 19:44:08 +00:00
Richard Heck
74ee5c0e69 Add assertion to check for memory leaks and remove the list when
we are done.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40228 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 18:49:12 +00:00
Richard Heck
7e42cfd690 New attempt to fix Pavel's crash, this modifies r40205 and r40207.
The global list of cloned buffers was a bad idea. We don't have multiple
export threads, but we can have multiple autosave threads. So now we keep
more than one of these lists at the same time, and each cloned buffer has
a pointer to the relevant list. Note that this would make multiple export
possible, if we wanted to do that at some time.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40227 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 18:49:05 +00:00
Georg Baum
0d28af3fba make a bit room for more ifs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40225 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-20 17:03:00 +00:00
Richard Heck
6be38da1ff This commented-out line has been there since r13692! I think we can
get rid of it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40217 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 23:32:58 +00:00
Richard Heck
eef5148a49 Fix bug #7873. Patch is sufficiently explanatory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40212 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 21:34:40 +00:00
Richard Heck
14c10e40a8 Fix bug #7872: Mark Buffer dirty after changing branch activation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40211 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 20:48:54 +00:00
Richard Heck
eecb001e95 Make sure we aren't trying to reuse the global variable, and make
sure we aren't leaking any cloned buffers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40208 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 18:26:42 +00:00
Richard Heck
a8d12fdd66 Fix crash reported by Pavel. Multiply included children would crash
the destructor since we could, in some cases, end up deleting them
multiple times. So we need to keep a list of the Buffers we need to
delete, kind of like the BufferList.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40205 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 17:58:22 +00:00
Richard Heck
6e15590764 Revert previous patch to get a decent log message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40204 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 17:58:18 +00:00
Richard Heck
75dc38ca74 Merge branch 'PavelCrash2'
Conflicts:
	src/Buffer.cpp

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40203 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 17:54:20 +00:00
Richard Heck
de3148c7c3 Simplify code slightly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40202 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 17:29:38 +00:00
Richard Heck
94f0968e92 Minor cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40201 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-17 17:24:11 +00:00
Richard Heck
2b4fb23941 Clarify by renaming some arguments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40200 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-16 00:38:06 +00:00
Richard Heck
bfad09a073 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40199 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-15 18:24:42 +00:00
Georg Baum
76731046f0 Fix bug #7895: Do not output lines with only a single space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40193 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-14 21:00:47 +00:00
Uwe Stöhr
966d76f86b tex2lyx/test/test-insets.tex: add a booktabs test table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40192 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-14 00:13:09 +00:00
Georg Baum
f077658248 Fix bug #4553: booktabs for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40189 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 19:49:50 +00:00
Georg Baum
a1cef2d55a Fix bug #3036: font changes inside \markright do not escape outside their scope
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40186 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 16:11:45 +00:00
Georg Baum
36f7ae1207 Do not swallow geometry settings if they are given as package options and
replace home made keyval parsing with the more robust process_keyval_opt().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40185 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 12:23:27 +00:00
Georg Baum
8d707723b7 Fix bug #7668 (cosmetic whitespace issues)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40184 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 11:29:48 +00:00
Georg Baum
2a216184c4 Fix bug #7663: Misparsing of description \item with spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40182 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-13 10:40:07 +00:00
Georg Baum
c8a715d855 Fix "stray '}' in text" warnings: When parsing with FLAG_ITEM the braces need
to occur in pairs.
If you change something in tex2lyx please don't commit without running the
tests and ensuring that no warnings or errors are written on stderr.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40177 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-12 18:41:44 +00:00
Georg Baum
f441663600 tabular*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40176 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-12 17:54:50 +00:00
Peter Kümmel
a1ce213291 add header guard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40165 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-10 20:16:22 +00:00
Julien Rioux
7ffc54f70e File format bump after r39982 (renaming of the japanese encodings for pLaTeX).
LyX file format incremented to 417.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40155 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-07 18:36:56 +00:00
Uwe Stöhr
ec0458ba01 tex2lyx/text.cpp: add a comment and fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40152 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 22:46:30 +00:00
Uwe Stöhr
605e660d50 tex2lyx/test/box-color-size-space-align.tex: translation and a further testcase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40151 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 22:42:51 +00:00
Uwe Stöhr
0fb02b561c tex2lyx:
- support for \makebox
- fix import of boxes without an inner box (the on-screen display was broken because of wrong default width setting)
- fix parsing of \framebox{content}, which LyX does not support yet - we have to use ERT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40150 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 22:42:05 +00:00
Jean-Marc Lasgouttes
d7320ad89b Fix shortenng of file names in MakeDisplayPath: it is not a good idea to slice an utf8 string at arbitrary offsets, we have to work on a docstring instead. We need unfortunately to switch back and orth between utf8 and docstring.
This is a candidate for branch too, although the bug is minor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40149 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 22:36:14 +00:00
Georg Baum
a3360ac3c6 Import optional argument of tabular (vertical alignment)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40147 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 18:54:15 +00:00
Georg Baum
eb882b2666 and another one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40146 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 18:17:33 +00:00
Georg Baum
b4c6c95ad9 Forgot this in r40139.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40145 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 18:17:04 +00:00
Georg Baum
491bad7b00 Distinguish between empty argument and no argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40141 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 17:32:15 +00:00
Georg Baum
93d6ce915f Must not output anything between p.pushPosition() and p.popPosition().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40140 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 17:16:54 +00:00
Georg Baum
0dee3eff18 Fix bug #4213: Change tracking support for tex2lyx.
Of course this will only work if output_changes was true when creating the
.tex file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40139 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 17:03:59 +00:00
Uwe Stöhr
713c14b71d tex2lyx/text.cpp: fix remaining part of bug #7843
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40136 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 15:06:19 +00:00
Georg Baum
7185c39fb1 \color may have an optional argument (part of bug #6567).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40134 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-04 21:24:05 +00:00
Georg Baum
292d4e3d5d Fix bug #7843: Recognize a shaded box inside a minipage correctly.
Also a warning "\end{foo} does not match \begin{bar}" is gone.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40133 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-04 21:03:51 +00:00
Richard Heck
d1802a5234 Fix bug reported on user list: <title> not escaped.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40131 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-02 18:42:10 +00:00
Georg Baum
13241e5e56 Fix bug #7846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40116 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 21:31:32 +00:00
Georg Baum
07fc1c3abc Replace a half-baked attempt to remove \lyxdot from the directory part of
file names with a proper one: Only replace dots in the base name, and only
request the lyxdot feature if it is needed. This is a partial fix of bug #7650.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40115 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 20:27:21 +00:00
Enrico Forestieri
c58f009c9b Properly account for output redirection with QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40110 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 02:02:27 +00:00
Uwe Stöhr
0e49fd22ad tex2lyx/Preamble.cpp: fix some comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40108 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-31 01:51:46 +00:00
Vincent van Ravesteijn
e9df4d552c Fix the messaging after an autosave
We need to have a special callback for when the autosave thread is finished
such that we can process the return values properly (and different as in
case of export or preview).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40103 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 21:34:12 +00:00
Richard Heck
256e16d0c2 Fix the outstanding part of #7764, which involves sorting the file lists
under Document>Settings>Output.

It turns out that we always want this list to be sorted when we get it,
so we can sort it in BufferParams rather than in three different places.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40101 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 20:02:14 +00:00
Vincent van Ravesteijn
05eff0e344 Use the format's pretty name in the statusmessages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40100 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 19:52:33 +00:00
Vincent van Ravesteijn
5cdcc4f7ef Correctly message that the export is cancelled
Uptil now, it was said that the export was succesful.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40099 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 19:52:27 +00:00
Georg Baum
b436f71b33 Only the packages subscript and ulem if they are automatically loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40097 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 18:51:41 +00:00
Georg Baum
f8cc30a1f2 Create mechanism to handle packages for which we only know after parsing
the complete document whether LyX will load them or not.
Use the mechanism for the color package (fixes the color part of bug #7845).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40095 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 18:12:49 +00:00
Georg Baum
3d3e1e58b1 Fix bug #7700 partially: The \maketitle command is not swallowed anymore,
but the title commands in the preamble are still not recognized.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40093 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 13:57:49 +00:00
Georg Baum
0d10ca7e6e get rid of the modules_placeholder hack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40092 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 13:44:00 +00:00
Georg Baum
c93c44bf64 Fix bug #7844: \date{} in main text is recognized
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40091 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 13:21:06 +00:00
Georg Baum
18d18f1b8c First step towards proper handling of partially supported packages:
Convert the preamble code into a class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40090 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 12:47:45 +00:00
Vincent van Ravesteijn
db3aadf424 Merge remote-tracking branch 'lyxit/vfr/docbook-fix-7004'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40089 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 11:44:22 +00:00
Vincent van Ravesteijn
098184ba6a Buffer: Make setExportStatus a private member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40088 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 11:43:45 +00:00
Abdelrazak Younes
47b28d4511 Code cleanup: split out RowPainter::paintFirst() in three and de-indent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40087 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 09:16:30 +00:00
Vincent van Ravesteijn
a32c12834b Fix the warning about the unused msg parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40086 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 08:53:22 +00:00
Vincent van Ravesteijn
f6246e974f Let all doExport calls have the same behaviour
- Let all doExport calls honor maintain_unincluded_children
- Also don't let the behaviour depend on supplying the result_file parameter

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40085 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 08:53:20 +00:00
Tommaso Cucinotta
0efccc0d22 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40080 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 22:15:29 +00:00
Uwe Stöhr
73d292be90 tex2lyx/preamble.cpp: add a note
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40074 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 21:20:09 +00:00
Richard Heck
9eaa64b2cb Initial work for view source improvements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40073 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 21:00:23 +00:00
Richard Heck
f25e7c340b Improve argument handling for the source generation routines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40069 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:14:48 +00:00
Richard Heck
34d5863776 Fix crash when outputting XHTML. Not resetting the paragraphs
was an oversight here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40068 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:14:43 +00:00
Richard Heck
b66e3c6e0f Fix bug #7777. We need a loader when exporting no matter what.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40067 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:14:36 +00:00
Uwe Stöhr
5666b903ba tex2lyx/preamble.cpp: sorting and add a comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40066 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:11:21 +00:00
Uwe Stöhr
a493847599 tex2lyx/preamble.cpp: fix bug #7863
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40065 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 20:03:09 +00:00
Uwe Stöhr
709e428fad tex2lyx: fix for documents using Latvian, Lithuanian, Mongolian, Turkmen and/or Vietnamese fixes bug #7862
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40064 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 19:32:09 +00:00
Tommaso Cucinotta
824d640227 Adding the capability to paste as simple unformatted text.
Documentation (and perhaps menu items) need still to be a bit
clarified in order to distinguish the various paste options
for the average user.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40060 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 15:42:01 +00:00
Vincent van Ravesteijn
37c4b71a3e Header file cleanups
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40059 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 15:34:06 +00:00
Vincent van Ravesteijn
7287a259c5 Change the type of the context menu name to string
There is no need for GUI-elements to use docstring.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40058 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 14:48:55 +00:00
Vincent van Ravesteijn
3ec0733fce Remove unneeded includes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40057 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 11:22:17 +00:00
Vincent van Ravesteijn
ab8a290040 Fix the synchronous export functionality
- Handle the return value in a special helper function

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40056 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 11:14:47 +00:00
Enrico Forestieri
ef4f08daef Compile fix for *nix...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40053 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 14:58:27 +00:00
Uwe Stöhr
2bf4494dc4 tex2lyx/preamble.cpp: correct a whitespace mistake I just introduced
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40052 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 12:49:12 +00:00
Uwe Stöhr
b8a8d5052f tex2lyx/preamble.cpp: fix bug #7861 and #7858
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40050 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 12:37:59 +00:00
Enrico Forestieri
775466100f Detect the correct version of python at runtime and store the result
for later calls. The check is only performed on the major version
number, such as to avoid using python 3.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40049 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-28 11:51:48 +00:00
Vincent van Ravesteijn
e02df14faa Return ExportStatus from Buffer to GuiView
Now GuiView composes the message string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40045 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 20:00:11 +00:00
Vincent van Ravesteijn
e74468b4be Let Buffer::preview return an error value
TODO:
 - Also let the public function return an error value,
 - Move all user interaction (Alerts etc.) out of Buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40044 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 20:00:08 +00:00
Vincent van Ravesteijn
bf3871933a Let Buffer::doExport return an error value
TODO:
 - Also let the public function return an error value,
 - Move all user interaction (Alerts etc.) out of Buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40043 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 20:00:06 +00:00
Vincent van Ravesteijn
ade7e12192 Remove result_file from debug output because it is empty
The result_file parameter is an output variable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40042 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 20:00:02 +00:00
Vincent van Ravesteijn
a7eb3c4c6e Simplify the public interface of Buffer::doExport
All calls to doExport from outside of Buffer have the same algorithm to
determine whether the included children parameter should be true. Moreover,
this decision is only based on information from the Buffer itself.

Now, Buffer only has 1 public function doExport and preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40041 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 15:50:50 +00:00
Vincent van Ravesteijn
cf06a12e00 Remove the unused default parameter of Buffer::doExport().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40040 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 15:50:46 +00:00
Uwe Stöhr
a3e5f3cd47 - tex2lyx/text.cpp: a fix for subfloat support
- tex2lyx: some testfile tweaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40035 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 13:00:09 +00:00
Vincent van Ravesteijn
b787d0090b Remove unused functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40034 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 12:54:14 +00:00
Vincent van Ravesteijn
5014b38cb7 Add a preference option to specify the default length unit (cm or in).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40030 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:52:11 +00:00
Vincent van Ravesteijn
a5a5757b3e Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40029 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:49:15 +00:00
Vincent van Ravesteijn
269695aa5f Remove the prefence default_papersize
- This preference was used for specifying the papersize to xdvi, dvipdfm,
  dvips. However, I can't seem to see any effect on the result.

- The papersize should instead be defined in the document settings.

- The global papersize default was misused to also change the tex
  output by specifying the papersize as if it was specified in the
  document settings. This caused the same lyx document to be outputted
  differently on different pcs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40028 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:48:16 +00:00
Vincent van Ravesteijn
2a9f282cc4 Fix a crash in adv F&R when the a manual could not be loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40027 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 09:31:17 +00:00
Uwe Stöhr
51790e6321 tex2lyx: support for subfloats
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40025 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 02:29:03 +00:00
Uwe Stöhr
be3e3a3b22 tex2lyx/test/test-structure.tex:
- update preamble to the features used in the file
- add some floats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40024 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 02:27:42 +00:00
Uwe Stöhr
e9bf232397 tex2lyx/TODO.txt: this feature is also covered by r40020
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40023 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 02:24:24 +00:00
Uwe Stöhr
3d1cace2bc tex2lyx: support for wrapped floats and all their possible options
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40020 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 20:53:18 +00:00
Uwe Stöhr
f397989137 tex2lyx/preamble.cpp: revert r39962 (the string initialization was already reverted)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40019 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 19:53:29 +00:00
Vincent van Ravesteijn
042d0118ae Constify some variables in tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40013 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 14:04:22 +00:00
Uwe Stöhr
dc7a53aeb4 tex2lyx/text.cpp: fix 2 typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40012 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 13:37:32 +00:00
Vincent van Ravesteijn
61dda8035d Fix bug #7793: LyX leaves behind autosave files
The LyX buffer is cloned before autosaving, but the unnamed_ member was not
copied. This causes the autosave files to end up in the wrong location and
consequently they were never removed afterwards.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40008 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 13:15:42 +00:00
Pavel Sanda
dd4379f40f typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40007 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 10:10:01 +00:00
Uwe Stöhr
e8c0344791 tex2lyx: support for hyperlinks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40005 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 05:02:37 +00:00
Uwe Stöhr
f68b287be6 tex2lyx/text.cpp: code simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40004 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 04:14:45 +00:00
Uwe Stöhr
df95c6273d tex2lyx: support for sideway floats including their starred (wide) counterparts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40003 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 03:23:31 +00:00
Uwe Stöhr
c55326048a tex2lyx: add strike-outs etc. to the TeX testfile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40002 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 02:46:26 +00:00
Uwe Stöhr
6dccac85ce tex2lyx: fix problem that non-empty \date in the preamble would be lost
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39994 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 01:29:24 +00:00
Uwe Stöhr
0cd0f955fb tex2lyx: addendum to r39989; support for basic (predefined) colors; useful for things like \color{green}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39991 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 01:18:27 +00:00
Uwe Stöhr
7be5a98e1d tex2lyx: testfiles: the spaces are already in box-color-size-space-align.tex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39990 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 01:16:19 +00:00
Uwe Stöhr
e9d2c866b4 tex2lyx: addendum to r39949; handle the case that LyX's defined colors are defined but not used, now it is assures that only the color is used that is actually used for \color and \pagecolor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39989 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-26 00:31:02 +00:00
Uwe Stöhr
fc75fcafbd tex2lyx: fix a typo and a whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39987 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:34:59 +00:00
Julien Rioux
665405da0a Unify the handling of converters that specify the resultfile= flag.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39985 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:31:36 +00:00
Uwe Stöhr
5ddd2174d5 InsetLine.cpp: fix bug #7851
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39984 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:22:55 +00:00
Uwe Stöhr
e2d9adadaa tex2lyx: fix bug #7856
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39983 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:17:24 +00:00
Julien Rioux
0bff66b8a5 Pass the encoding to the japanese pLaTeX processor (#4697).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39982 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 23:10:19 +00:00
Uwe Stöhr
d1d597d9cf tex2lyx: support for beraserif.sty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39979 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 22:37:16 +00:00
Uwe Stöhr
2de511d90c TODO.txt: restore an entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39978 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 22:24:06 +00:00
Georg Baum
2736d09656 Adjust comment (thanks Jose)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39976 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 20:02:59 +00:00
Richard Heck
be793db531 Fix display of section headings, etc, that include math in the TOC
and menus. The newline we were writing previously caused all kinds
of problems. Writing a whole array in some cases would also cause
problems. So we do less.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39971 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 18:43:51 +00:00
Richard Heck
acc709a600 Fix some indentation issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39970 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 18:43:47 +00:00
Uwe Stöhr
01f9794b50 tex2lyx: addendum to r39964, although utopia.sty is outdated and even listed in l2tabu, users might use it anyway and supporting it doesn't harm
(info I missed in r39965: beraserif.sty does not exist on CTAN, Bera's sansserif is named "berasans" and is already supported by tex2lyx)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39968 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 17:44:55 +00:00
Uwe Stöhr
05a59595e8 tex2lyx: support for different language packages: none, babel or a custom one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39967 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 17:30:27 +00:00
Uwe Stöhr
c5f5d559fb tex2lyx: nothing to do for the new math spaces as shown by the updated TeX testfile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39966 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 16:47:31 +00:00
Uwe Stöhr
bd42b9f25a tex2lyx: support for chancery and ccfonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39965 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 16:25:37 +00:00
Uwe Stöhr
999222b0c2 tex2lyx: fix handling of fourier: Utopia as roman font can be combined with any other tt font, not only with tt-fourier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39964 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 15:54:53 +00:00
Uwe Stöhr
ad8c0df251 tex2lyx/preamble.cpp: correct a mistake from previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39963 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 15:43:11 +00:00
Uwe Stöhr
80523bbe07 tex2lyx: adapt handling of \fontencoding to LyX 2.x's syntax
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39962 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 15:39:50 +00:00
Uwe Stöhr
ff9deb53f1 tex2lyx/TODO.txt: columnsep is already supported
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39961 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 15:23:28 +00:00
Uwe Stöhr
8f2791ed20 tex2lyx: support width setting of \printnomenclature
(the tex2lyx support in branch for \printnomenclature is currently broken so this must be backported to branch for 2.0.2, OK Richard?)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39960 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-25 00:11:02 +00:00
Uwe Stöhr
981e958b9d GuiPrintNomencl.cpp: fix bug #7853
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 23:35:01 +00:00
Uwe Stöhr
46e4463066 tex2lyx: support for phantom insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 22:39:54 +00:00
Uwe Stöhr
8ed06703aa tex2lyx: support for the LaTeX command \rule
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39957 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 21:07:00 +00:00
Uwe Stöhr
a517afc28e InsetBox.cpp: fix bug #7849 (with help from Jürgen)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39956 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 17:32:29 +00:00
Uwe Stöhr
ffa373d27b InsetBox.cpp: add important note
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39955 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 03:42:39 +00:00
Uwe Stöhr
5e38d7ff26 tex2lyx: fix bug #7845
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39954 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 02:22:35 +00:00
Uwe Stöhr
3b6c927814 tex2lyx/TODO.txt: add a note
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39953 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 02:21:47 +00:00
Uwe Stöhr
45bdfb2fe8 test-structure.tex: forgot this testcase in last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39952 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 02:14:43 +00:00
Uwe Stöhr
483891b7cf tex2lyx: support the case that \date{} is used in the preamble to suppress the date
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39951 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 02:06:05 +00:00
Uwe Stöhr
0c1c13bbd0 tex2lyx: roundtrip support for the suppress_date option, for the remaining part I opened bug #7844
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39950 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 01:17:30 +00:00
Uwe Stöhr
2a8dcf2b10 tex2lyx:
- support for box background color, document fontcolor and background color (note_fontcolor was already supported)
- add colors and a nested box to the testfile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39949 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 00:29:59 +00:00
Abdelrazak Younes
5c5850e28f First step towards a little bit more independence of GuiWorkArea (WRT GuiView). Ideally, GuiWorkArea should not at all about GuiView. GuiWorkArea now uses a new signal busy() to inform its container (GuiView) about its status.
I also added 2 FIXME where we should not call GuiView directly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39948 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 20:21:01 +00:00
Georg Baum
8e8c214bef Fix some bugs related to spaces in math:
- Interpret argument of LFUN_SPACE_INSERT correctly
- Use InsetMathSpace instead of InsetMathSpecialChar for "\ " (bug # 7728)
- Use InsetMathSpace instead of InsetMathChar for ~ (bug # 7728).
  This fixes also the display in LyX (previously a literal ~ was displayed).
Using InsetMathSpace enables also the "Insert Formatting" menu entries.
No file format change is needed, since the LaTeX export is unchanged.
Note that there are still some bugs related to spaces in math:
#7746, #7747, #7749, #7842


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39947 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 20:19:49 +00:00
Enrico Forestieri
8a4b25875a Thinking about it, it is better to always convert to docstrings all
utf8 strings, and not only if they contain encoding changes. This is
because if the output encoding was previously changed and an utf8
string is inserted in the stream, the encoding changes cannot occur.
This was not a problem until now because normal strings could not be
inserted in a odocstream, as them would have been exchanged with encoding
changes. Indeed, the SetEnc struct has only a std::string member and
outputting a std::string would be interpreted by the compiler the same
as inserting setEncoding(std::string). However, a std::string can be
inserted in an otexstream and it is better to account for this.
I wonder whether trying "os << std::string", where os is an odocstream,
should produce an error instead of actually trying to change the stream
output encoding, but this has not been a problem until now...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39944 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 14:24:17 +00:00
Georg Baum
5247de506c Import \textvisiblespace, \negmedspace and \negthickspace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39942 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 11:16:11 +00:00
Georg Baum
3d373d9135 Was already supported
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39940 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 11:08:37 +00:00
Georg Baum
c697b2ee2c All encodings of lib/encodings are already supported if they are supported by inputenc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39938 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 11:02:50 +00:00
Georg Baum
c5c04954f3 Import \uuline, \uwave and \sout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39937 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 10:58:05 +00:00
Georg Baum
b62d8f2c6a Tie file formats of LyX and tex2lyx, since there are implicit depencies anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39936 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 10:29:21 +00:00
Georg Baum
34a033b20a Increase tex2lyx output format to 416 (current trunk format).
414: Nothing to do (empty lyx2lyx conversion)
415: Added \use_undertilde preamble parameter
416: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39935 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 10:11:39 +00:00
Abdelrazak Younes
383b31a868 Introduce new USE_QIMAGE macro to optionally use a QImage drawing backend instead of a QPixmap. This may help when running locally under X11 with some graphics cards (there were some complain about that in the user list).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39932 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 06:52:03 +00:00
Enrico Forestieri
7fec736162 As stated in r39928, conversion on the fly only works for docstrings
and not for utf8 ones. But the simple solution is to convert to a
docstring before outputting to the underlying docstream.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39930 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 03:04:09 +00:00
Enrico Forestieri
bbca759363 Restore r39921, as a simple solution exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39929 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 03:02:02 +00:00
Enrico Forestieri
936ae8020f Revert r39921. This would not work because proper facets for converting
on the fly are only available for ucs4 encoded strings and not for utf8
ones. So, it does only work with docstrings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39928 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 02:33:38 +00:00
Georg Baum
5fc072a079 Support fontenc options in tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39926 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 19:54:31 +00:00
Georg Baum
9ce23fd5c2 More paper sizes for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39925 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 19:37:10 +00:00
Georg Baum
f7cfdc48a5 Increase tex2lyx output format to 413 (LyX 2.0.x).
411: Added \language_package preamble parameter
412: Nothing to do (empty lyx2lyx conversion)
413: Added \html_css_as_file preamble parameter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39924 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 19:27:46 +00:00
Georg Baum
436a0c13a5 Increase tex2lyx output format to 410.
406: Convert noweb layouts to new syntax (untested, see bug #7838)
407: Nothing to do (empty lyx2lyx conversion)
408: Activated the already existing script inset code
409: Nothing to do (tex2lyx does not support XeTeX)
410: Nothing to do (the old code already used the new layouts)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39923 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 19:09:56 +00:00
Enrico Forestieri
5a69c96ccd Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39922 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 18:29:11 +00:00
Enrico Forestieri
0cac034d10 Also account for possible encoding changes embedded in utf8 strings
other than docstrings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39921 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 18:27:56 +00:00
Georg Baum
544f5033bf Increase tex2lyx output format to 405.
402: Nothing to do (tex2lyx does not support bibtotoc)
403: Nothing to do (the old code already used the new layouts, bug #7780)
404: Nothing to do (write new prettyref syntax)
405: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39920 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 17:25:34 +00:00
Georg Baum
5bfba3e564 Increase tex2lyx output format to 401.
400: Convert \lyxline to new InsetLine syntax
401: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39919 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 16:58:32 +00:00
Enrico Forestieri
d703d90574 Fix bug #7835 (Relative paths are not supported by the TEXINPUTS prefix)
This restores \input@path handling, which turns out to be necessary, as
the TEXINPUTS mechanism is not used with relative paths. It turns out
that both methods must be used, because \input@path does not work in all
cases (most notably with tikz).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39918 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 15:10:43 +00:00
Georg Baum
997ca078bf Increase tex2lyx output format to 399.
399: Added \use_mathdots preamble parameter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39917 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 11:17:57 +00:00
Georg Baum
ce4c8e64ee Increase tex2lyx output format to 398.
394: Added use_makebox parameter to InsetBox
395: Nothing to do (empty lyx2lyx conversion)
396: Nothing to do (empty lyx2lyx conversion)
397: Nothing to do (tex2lyx does not support nameref)
398: Nothing to do (empty lyx2lyx conversion)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39916 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 11:11:50 +00:00
Georg Baum
16935917de Increase tex2lyx output format to 393.
389: Nothing to do (html output changes)
390: Nothing to do (empty lyx2lyx conversion)
391: Nothing to do (empty lyx2lyx conversion)
392: Activated already prepared required arguments code
393: Renamed OptArg inset to Argument


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39915 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-22 10:59:39 +00:00
Georg Baum
a1030cc599 Increase tex2lyx output format to 388.
379: Nothing to do (html output changes)
380: Nothing to do (empty lyx2lyx conversion)
381: Nothing to do (empty lyx2lyx conversion)
382: Activated already prepared notefontcolor code
383: Nothing to do (empty lyx2lyx conversion)
384: Nothing to do (empty lyx2lyx conversion)
385: Nothing to do (empty lyx2lyx conversion)
386: Nothing to do (empty lyx2lyx conversion)
387: Nothing to do (empty lyx2lyx conversion)
388: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39912 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 21:11:37 +00:00
Georg Baum
81505cc5a3 Increase tex2lyx output format to 378.
369: Nothing to do (empty lyx2lyx conversion)
370: Nothing to do (empty lyx2lyx conversion)
371: Added \use_mhchem parameter
372: Nothing to do (empty lyx2lyx conversion)
373: Nothing to do (the old version was wrong since it used the new g-brief
     layout files with the old file format)
374: Nothing to do (html output changes)
375: Nothing to do (empty lyx2lyx conversion)
376: Nothing to do (empty lyx2lyx conversion)
377: Nothing to do (empty lyx2lyx conversion)
378: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39911 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 20:18:49 +00:00
Georg Baum
081fb1c4d8 Increase tex2lyx output format to 368.
357: Added comment about \underbar and \ulem
358: Nothing to do (empty lyx2lyx conversion)
359: Nothing to do (empty lyx2lyx conversion)
360: Nothing to do (empty lyx2lyx conversion)
361: Nothing to do (empty lyx2lyx conversion)
362: Nothing to do (empty lyx2lyx conversion)
363: Nothing to do (empty lyx2lyx conversion)
364: Nothing to do (empty lyx2lyx conversion)
365: Nothing to do (empty lyx2lyx conversion)
366: Nothing to do (empty lyx2lyx conversion)
367: Nothing to do (empty lyx2lyx conversion)
368: Nothing to do (empty lyx2lyx conversion)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39910 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 19:57:03 +00:00
Pavel Sanda
e1416341fd Discrimination of "New" string per Jean-Pierre's request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39902 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 12:59:30 +00:00
Jürgen Spitzmüller
4bddda4bd1 Fix #7816: Edit->Table incorrectly activated inside index entries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39899 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 07:27:11 +00:00
Georg Baum
beb87874e9 that was wrong
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39898 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 20:55:25 +00:00
Georg Baum
024bd206af Increase tex2lyx output format to 356.
352: New syntax for InsetIndex and printindex command inset
353: Nothing to do (empty lyx2lyx conversion)
354: Nothing to do (empty lyx2lyx conversion)
355: Nothing to do (empty lyx2lyx conversion)
356: Nothing to do (empty lyx2lyx conversion)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39897 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 20:52:19 +00:00
Georg Baum
ac166e196d Increase tex2lyx output format to 351.
346: Nothing to do (swiss german is not supported by babel/polyglossia)
347: Nothing to do (empty lyx2lyx conversion)
348: Nothing to do (empty lyx2lyx conversion)
349: Nothing to do (empty lyx2lyx conversion)
350: Nothing to do (empty lyx2lyx conversion)
351: Nothing to do (empty lyx2lyx conversion)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39896 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 20:16:37 +00:00
Georg Baum
85003ec85d More unicode math symbols
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39895 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 19:55:13 +00:00
Georg Baum
b62ed6ad83 Do not load txfonts from unicodesymbols, since that has side effects
(next part of bug #7811)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39894 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-20 17:30:04 +00:00
Julien Rioux
6c96473ac8 Revert "Don't allow newline characters in the command buffer."
This reverts commit r39809. Some LFUNs require newline characters,
and while at the moment we don't have a proper interface for such
LFUNs, copy-pasting newlines has been a long-time workaround.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39893 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-19 22:52:34 +00:00
Tommaso Cucinotta
ec0fce7d44 Fixing ASSERT on re-opening of Advanced F&R with cursor on a text style non-existing in the currently opened document.
Addressing #7812.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39886 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 22:04:42 +00:00
Georg Baum
6954c542fb Generalize the esintoramsmath requirement:
Now you can also require a|b|c, and if any of the features is already used,
no other one will be loaded. The first feature wins if none is already used.
This is required for a part of bug #7811.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 19:32:02 +00:00
Georg Baum
a74153da0b cur.inTexted() != !cur.inMathed()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39883 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 18:57:42 +00:00
Georg Baum
76962d5515 Fix on-screen alignment of multline equations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39882 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 18:46:57 +00:00
Enrico Forestieri
1b6f5014ae Accomodate MSVC idiosyncrasies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39881 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 00:21:04 +00:00
Abdelrazak Younes
e621339aae get rid of GuiWorkArea::Private::setReadOnly(). Calling updateWindowTitle() is cheap compared to redraw and GuiView::updateDialogs() will be called anyway (with restartCursor() among others).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39880 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 21:19:00 +00:00
Georg Baum
5816e0107d remove a FIXME: unsigned int is better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39878 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 20:13:12 +00:00
Georg Baum
6304d72255 more work on spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39876 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 18:54:13 +00:00
Georg Baum
97de79f412 Improve InsetSpace plaintext and docbook output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39875 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 17:01:02 +00:00
Jean-Marc Lasgouttes
69a993312d compilation fix; a couple of warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39873 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 08:57:28 +00:00
Abdelrazak Younes
52ef90c2cf GuiWorkArea: Move private stuff to GuiWorkArea_Private.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39872 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-16 22:48:26 +00:00
Georg Baum
d267511d42 Fix bug #7468 (at least for standard environments).
List environments (as the one in the bug report) can't
be handled correctly in tex2lyx as long as LyX does not allow contents
after the environment start but before the first \item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39871 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-16 19:57:10 +00:00
Abdelrazak Younes
27f3327fa1 tex2lyx: disambiguate duplicate trim() function by reusing trim() from src/support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39870 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-16 08:22:20 +00:00
Tommaso Cucinotta
f134fcd153 Make trunk compile again after recent switch to QString * for selectedFilter param in FileDialog::save().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39866 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:41:15 +00:00
Tommaso Cucinotta
79716cbcd0 Clean up word lists on exit. Not really a concrete issue, but just
get less "noise" when debugging for memory leaks.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39865 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:38:52 +00:00
Tommaso Cucinotta
f4400845af Cleanup private part of Layout Box on destructor (probably not really an
issue, but brings less noise about memory leaks when using valgrind).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39864 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:34:14 +00:00
Tommaso Cucinotta
cb9e09f29e Take Vincent's advice: using a pointer for selectedFilter
avoids a useless object creation, as Qt tolerates the
pointer to be null as well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39863 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:32:14 +00:00
Jürgen Spitzmüller
d965079386 oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39852 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-14 12:12:52 +00:00
Jürgen Spitzmüller
4b3bea7054 Fix parsing of branch names with spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39851 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-14 12:11:20 +00:00
Uwe Stöhr
1db7ad00fe PrefLanguageUi.ui: this string was forgotten in r39449
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39848 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-14 04:18:28 +00:00
Enrico Forestieri
37ba87cfb1 Avoid unnecessary spaces with the Windows shell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39824 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-09 21:53:35 +00:00
Enrico Forestieri
8edfef001d Refine fix for bug #7800. Also allow setting the document encoding to
an encoding different from the automatically chosen one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39823 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-09 14:45:51 +00:00
Enrico Forestieri
6c85f8338f No need for the more expensive to_utf8() here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39821 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-08 22:21:01 +00:00
Enrico Forestieri
33c5f6d628 Fix bug #7800 (Lyx cannot create dvi with Russian)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39820 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-08 22:13:38 +00:00
Tommaso Cucinotta
dfd8a97bff Presenting prettyname of formats in filedialog filter dropdown box (instead of shortnames), sorted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39816 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 08:21:31 +00:00
Stephan Witt
d29f1f6930 avoid compiler warning regarding operator precedence
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39815 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 07:59:50 +00:00
Jürgen Spitzmüller
ece9228f90 Fix biber execution om MikTeX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39814 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 07:09:13 +00:00
Lars Gullik Bjønnes
4e3239dc98 Fixup for bug removal in GCC 4.7
A long standing bug has been fixed in GCC 4.7, the bug was a non-
sactioned extra lookup. This caused some code to work that really
shouldn't.

The fixes are: add this->, Class::, or move functions about
as required to fullfill the rules.

In this case some template instantiations
where move to after what they reference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39813 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 03:09:55 +00:00
Tommaso Cucinotta
da087e6fc1 Fixed bug when exporting to custom location under non-latex format, requiring intermediate latex step.
Keeping some debugging output about these filename mangling, in case additional debugging is needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39812 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 23:23:45 +00:00
Tommaso Cucinotta
b87cf553c4 Removing meaningless assignment (mostly a typo).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39811 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 22:53:22 +00:00
Tommaso Cucinotta
61f2924b9f Fixing compilation on some Qt version (?!?).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39810 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 22:20:50 +00:00
Julien Rioux
bb4f6360c3 Don't allow newline characters in the command buffer.
I actually got it by this bug while copy-pasting LFUNs into the toolbar.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39809 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 16:30:37 +00:00
Julien Rioux
24cd735153 Correction: The inset name is citation, not cite
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39808 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 16:30:28 +00:00
Julien Rioux
23ab7f0819 tex2lyx : Also allow -h and -v command-line options, manpage update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39807 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 16:21:58 +00:00
Tommaso Cucinotta
e79b461f9e Fixed typo in comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39806 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 13:51:45 +00:00
Tommaso Cucinotta
164ae1584a Added Export As... dialog, exploiting the new destination path that can
be specified when exporting.
This fixes #3402.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39805 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 13:47:42 +00:00
Stephan Witt
bae12f7328 #2511 implementation of spell check of the current text selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39802 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 10:28:34 +00:00
Richard Heck
08f21701cf Clean up a bit. These comments are no help here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39801 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-05 21:08:42 +00:00
Julien Rioux
18f79eeddc tex2lyx : More descriptive --help message and implement --version (#6827).
The init_package before easyParse is necessary to initiate the default
values for userdir and sysdir, which are now part of the help message.
This step would be necessary anyway if we ever internationalize tex2lyx.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39799 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 17:47:37 +00:00
Kornel Benko
3004722131 Add framework AppKit to cmake as in the automake case (MAC only)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39798 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:49:06 +00:00
Julien Rioux
35b580fb30 lyxpreview: Simplify the color handling.
Let's have this in trunk for testing. The real difference maker
when it comes to color is whether we use dvipng or ghostscript.

For dvipng:

  - The color info is passed as command-line arguments.

  - The tightpage option is not necessary, and since it adds
    ps specials to the output, we shouldn't use it.

For ghostscript:

  - The color info needs to be in the latex file.

  - The foreground color is set for each preview inset.

  - The background color is set by \pagecolor in the preamble,
    which is understood by pdflatex, but ignored in dvips mode.
    Thus dvips is handled with a ps special.

  - The tightpage option is necessary to crop the images.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39797 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:43:33 +00:00
Julien Rioux
13b1277cd2 lyxpreview: Handle bibtex-generated references and bibliography.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39795 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-03 16:35:27 +00:00
Stephan Witt
3c846d98ac to succesfully link lyx on mac the AppKit framework is needed only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39791 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-30 16:05:46 +00:00
Stephan Witt
3971728bde close floating dock widgets (not currently docked) with escape keypress event
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39787 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-29 18:52:36 +00:00
Uwe Stöhr
91156e8e0f InsetTabular.cpp: whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39785 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-29 13:39:48 +00:00
Tommaso Cucinotta
ab73c741c2 With the move from \regexp{...} to \regexp{...\endregexp{}}, now I'd need
a special method to find \endregexp{}}, not merely the closing brace.
This is now obsolete, so ok to remove this dead code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39780 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-27 23:09:31 +00:00
Enrico Forestieri
715f005d6c Fix bug #7796 (LyX creates file on startup that cannot be deleted)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39779 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-27 20:07:41 +00:00
Julien Rioux
772325ff70 Allow \nocite again with the basic citation engine.
Fix a bug introduced in r26547. Also reorders the entries for
natbib-numerical into a more natural, visually pleasing order.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39777 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-27 17:13:07 +00:00
Jean-Marc Lasgouttes
9e53e98b05 Link against Cocoa and/or Carbon for Mac OS X. This is needed for autoOpen and Linkback.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39772 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-27 07:27:19 +00:00
Enrico Forestieri
3bcfee0627 Make sure to check command for emptiness, instead of prefix+command.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39762 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 20:49:53 +00:00
Enrico Forestieri
9c365e841e Apparently, the env program does not strip quotes around the values of the
environment variables. So, replace single quotes by double ones, such that
the QProcess parser will strip them, and strip them by ourselves in ForkedCall.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39761 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 20:33:06 +00:00
Enrico Forestieri
a749b73d95 The second argument of Systemcall::startscript is supposed to be encoded
in the filesystem encoding, i.e., the local 8 bit encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39760 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 16:38:51 +00:00
Enrico Forestieri
b53445e6cd Adjust the simple parser in ForkedCalls.cpp to also account for quotes
don't delimiting an entire word and adapt the quoting such that it works
for Systemcall, ForkedCall, and also for the case when QProcess in not used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39759 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 16:32:31 +00:00
Enrico Forestieri
e5cc5ac2e8 Manage the setting of the latex environment for Systemcall and ForkedCall
in a central place.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39758 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 13:35:42 +00:00
Jürgen Spitzmüller
7cea4a8507 * Fix merging of cells (multicolumn, multirow) when the first cell in the selection is already a multi-cell (bug #7792).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39757 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 07:13:56 +00:00
Jürgen Spitzmüller
2511714940 As for setMultiRow, check border status _before_ merging, thus fixing border allocation problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39756 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-25 06:50:03 +00:00
Enrico Forestieri
7a15d8b232 Do not change, even if temporarily, the environment of the main process
but only that of the launched QProcess.
This will help changing the code in order to manage in a central place
the LaTeX environment, thus avoiding the current code duplication in
Systemcall and ForkedCalls.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39754 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 20:53:28 +00:00
Richard Heck
d57f507f51 Fix bug #7764 by ordering the formats according to translated strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39753 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 18:35:44 +00:00
Richard Heck
e1b2466faf Fix bug #3821 by allowing insertStringAs* to reset the cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39752 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 18:21:41 +00:00
Enrico Forestieri
5a63cba12a Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39749 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 18:08:19 +00:00
Julien Rioux
660d2e9814 Fix the tab ordering of GuiDocument components.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39747 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:29 +00:00
Julien Rioux
39d569661a Fix the tab ordering of PanelStack and PrefsUi.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39746 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:26 +00:00
Julien Rioux
c48091f33a Don't allow newline characters in document settings.
Set a validator on QLineEdit widgets. The validator removes any
\n and \r characters, thus preventing users from copy-pasting
newline characters into these fields, and subsequently saving
them, inadvertantly, to their lyx file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39745 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:23 +00:00
Julien Rioux
f24b24464a Rename QLineEdit widgets to have a LE suffix (consistent within GuiDocument).
bibtexOptionsED   -> bibtexOptionsLE
  indexOptionsED    -> indexOptionsLE
  languagePackageED -> languagePackageLE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39744 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:20 +00:00
Julien Rioux
566d1f1b00 Move the NoNewLineValidator to Validator.cpp where it fits better.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39743 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:17 +00:00
Enrico Forestieri
5c17ce4195 Also set TEXINPUTS when launching ForkedCall processes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39742 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 01:32:35 +00:00
Richard Heck
144a69f4eb Comment out unused function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39740 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:52:20 +00:00
Richard Heck
ca31c55029 Yet another unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39739 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:52:16 +00:00
Richard Heck
4ad010e3a1 Another unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39738 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:52:11 +00:00
Richard Heck
ea50cd71f9 Fix a couple unused variable warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39737 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:51:39 +00:00
Jürgen Spitzmüller
a0a4ac91af Fix bottom border allocation when setting a multirow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39736 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:12:20 +00:00
Stephan Witt
d14f5a75af #7778 avoid toggle of languages when LFUN_LANGUAGE is executed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39735 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 16:50:18 +00:00
Jürgen Spitzmüller
a5e152fdf7 * InsetTabular.cpp: fix logic of multirow top/bottom line output (bug #7578)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39733 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 12:36:37 +00:00
Richard Heck
90635e8caf Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39732 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-22 16:03:48 +00:00
Tommaso Cucinotta
b095996dda Fix bug introduced in r39705 (was making .eps.gz not work anymore).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39720 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-20 19:45:31 +00:00
Julien Rioux
b31f0cfc4d Fixes to Format.{h,cpp} following advices from Richard and Vincent.
Caching the string value of extensions is not necessary. It
was a nice textbook exercise in getter/setter methods but it
is cause for confusion and prone to mistakes in maintenance.

Also, extension_list_ doesn't need to be mutable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39714 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-20 17:25:07 +00:00
Tommaso Cucinotta
2823eed291 Moving the zipped file info cache to Formats.cpp saves the inclusion of <map> and <ctime> from Format.h
They were implementation-specific and do not impact on the interface anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39709 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-19 10:08:33 +00:00
Tommaso Cucinotta
b4f97b61cf Added support for natively zipped file formats that do not need decompression for being handled by converters
(e.g., compressed dia, odg, sxd, ...). These need to be marked via the "zipped=native" flag in the RC file.
The old 'dia' configuration is automatically updated (it used to be hardcoded in the code, now it is handled
via the flag).
See also http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg170974.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39705 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-19 00:12:09 +00:00
Enrico Forestieri
21185402cb When changing the document language, also change the language of the
text which is not explicitly marked in a different language, irrespective
of the multilingual status, except for LTR<=>RTL changes.
See discussion in this thread:
http://thread.gmane.org/gmane.editors.lyx.devel/138380


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39702 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 21:18:57 +00:00
Enrico Forestieri
a18bf3f274 Fix bug #7621 (Images are not displayed if path of temp folder contains accented characters)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39700 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 15:19:49 +00:00
Vincent van Ravesteijn
56c59cf4eb Make the scrolling for large insets more naturally (bug #7662)
The patch fixes a case that I had forgotten. Namely, the case that when the height of a row was larger than the height of the screen and that the cursor is already visible. That's why I added a new if case to catch all situations in which the row height is larger than the height of the screen. If we then need scrolling we scroll to height/4 and 3*height/4. In the end, the height_/4 and 3*height_/4 should be replaced by the rowheights in the inset, but we need some extra infrastructure for that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39697 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-18 09:35:06 +00:00
Jürgen Spitzmüller
5118d369e1 finally commit the fix for #7607.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39696 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-17 15:25:14 +00:00
Vincent van Ravesteijn
a44b40c604 Revert unintended part of r39694.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39695 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-17 11:04:55 +00:00
Vincent van Ravesteijn
08f909ef05 Update the toolbars when the GuiView is shown
This will disable the layout box if no document is open, and it will set the correct state of the toolbar toggling buttons.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39694 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-17 10:58:01 +00:00
Richard Heck
dcf7d30b4d Better label for index list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39682 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-15 21:48:45 +00:00
Richard Heck
c239ac6590 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39681 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-15 21:48:23 +00:00
Richard Heck
3788b960f8 Get default font color and background color working for XHTML export.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39679 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-15 21:22:56 +00:00
Tommaso Cucinotta
eff76bd3ab Added -E option to specify export format and destination file-name (and export folder).
Addressing #4501.
See also http://comments.gmane.org/gmane.editors.lyx.devel/138329


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39678 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-15 01:07:49 +00:00
Julien Rioux
a5f72061d1 Fix the guiName of external insets.
- Remove hack with $$AbsOrRelPath substitution in the guiName.
    Instead, let LyX display the filename automatically in the gui,
    consistent with InsetInclude.

  - Use the guiName in the drop-down menu in the dialog instead of the
    internal lyxName. These guiNames ought to be more descriptive.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39675 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 21:50:07 +00:00
Julien Rioux
b794fc078a File filters for InsetExternal were also missing a description.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39674 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 21:49:52 +00:00
Julien Rioux
26568ce1e2 Fix the file filters for InsetInclude.
Add an empty filter for listings and verbatim includes. This will
display as the standard string "All files (*)".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39673 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:43:06 +00:00
Julien Rioux
78c80996cd Fix the display of file filters in the import file dialog.
- Correctly interpret whether a file description is available.
    This description is later displayed in the file filters in the
    import dialog (and other dialogs using this qt helper).

  - Fix the regex so that "LaTeX (plain) (*.tex)" is correctly parsed
    into a description "LaTeX (plain) " and its corresponding filter.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39672 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:42:55 +00:00
Julien Rioux
d57f66022c Show .htm files in HTML import file dialog (#6340).
- Add "htm" as a known extension for HTML.

  - Use all the extensions of a format as file filter,
    instead of using only the default extension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39671 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:42:38 +00:00
Julien Rioux
a55ef8346a Allow to assign several extension to a given file format (#4798).
Additionnal extensions are separated by commas (,) in lyxrc
preference files, while spaces are ignored, e.g. "jpg, jpeg".

Preference lyxrc file format incremented to 2.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39670 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 20:42:23 +00:00
Richard Heck
9ffc42d216 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39669 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-13 12:39:43 +00:00
Julien Rioux
82edf5907a Don't allow newline characters in preference (#5840).
Set a validator on QLineEdit widgets. The validator removes any
    \n and \r characters, thus preventing users from copy-pasting
    newline characters into these fields, and subsequently saving
    them, inadvertantly, to the preference file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39664 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 14:22:05 +00:00
Julien Rioux
bab818a784 Mark settings as changed when the Nomenclature line is edited.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39663 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 14:22:01 +00:00
Julien Rioux
1fd9e5c991 Fix the tab ordering of GuiPrefs components.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39662 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 14:19:57 +00:00
Julien Rioux
81420e405f Merge the preview mechanism for japanese with the standard one.
- Japanese is now handled by passing the option --latex=platex
    to the standard lyxpreview script. This is done in PreviewLoader.
  - Remove obsoleted file lyxpreview-platex2bitmap.py and the
    corresponding lines in the configure script.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39659 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:23:15 +00:00
Julien Rioux
10868c31ac Merge the preview mechanism for lilypond-book with the standard one.
- Handle the preprocessing in the main lyxpreview script with the
    command-line arguments --lilypond and --lilypond-book=exe.
  - Remove the obsoleted file lyxpreview-lytex2bitmap.py and the
    corresponding lines in configure.py.

Fix for the japanese preview still to come.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39658 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:59 +00:00
Julien Rioux
2bd747fad4 Add command-line arguments to lyxpreview2bitmap.py
Add command-line arguments in a standard unix fashion, using getopt.

    Usage: ./lyxpreview2bitmap.py <options> <input file>

    Options:
      -h, --help:    Show this help screen and exit
      --dpi=<res>:   Resolution per inch (default: 128)
      --png, --ppm:  Select the output format (default: png)
      --fg=<color>:  Foreground color (default: black, ie '000000')
      --bg=<color>:  Background color (default: white, ie 'ffffff')
      --latex=<exe>: Specify the executable for latex (default: latex)

    The colors are hexadecimal strings, eg 'faf0e6'.

The changes to PreviewLoader.cpp break the preview of lilypond-book
and japanese files, but they will be handled in the next commits.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39657 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 18:22:43 +00:00
Richard Heck
796bcb8c25 Implement GuiNomenclature::initialiseParams(), thus restoring the
ability to take the symbol from an explicit or implicit selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39651 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-11 14:14:04 +00:00
Richard Heck
c2d8526437 Fix bug #7721. We don't need to do anything here other than output
our paragraphs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39634 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 22:25:25 +00:00
Richard Heck
6269145281 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39632 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 21:47:36 +00:00
Enrico Forestieri
3fd8b88154 Make InsetInfo output a path matching the LaTeX compiler.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39629 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 08:14:10 +00:00
Enrico Forestieri
93b6b6fc04 Leave alone the header and add the include where it is needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39628 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-07 08:05:44 +00:00
Enrico Forestieri
cfad46ed5d Fix compile error with gcc 4.5.3 when using the included mythes library:
../../src/support/mythes/mythes.hxx:25:9: error: ‘FILE’ does not name a type
../../src/support/mythes/mythes.hxx:55:22: error: ‘FILE’ has not been declared


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39580 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-03 16:10:07 +00:00
Richard Heck
e2f6bd6d45 Fix bug #7751: Sort the modules and formats by translated string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39579 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-02 18:40:06 +00:00
Stephan Witt
3a33672980 #7681 adjust the cursor language after document language change had changed the text language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39564 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 17:25:44 +00:00
Enrico Forestieri
7c17e970b1 Fix bug #6170 (Latex Compiler error when lyx file is located in a path which contains a "#")
This removes \input@path handling.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39563 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 17:02:27 +00:00
Uwe Stöhr
f5a03ab601 InsetSpace support for
- \negmedspace and \negthickspace outside of math
- \enspace, \hspace*, \hspace*{\fill} and \hfill inside math
(fileformat change)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39557 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-29 14:07:30 +00:00
Enrico Forestieri
6eabcc2dd3 Protect against autorun commands on Windows (see also bug #7718).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39550 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 16:53:38 +00:00
Enrico Forestieri
d3c96214f3 Allow batch files with QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39548 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-28 16:45:46 +00:00
Jürgen Spitzmüller
70390b0283 Disable space tyes that are not supported in mathed (for these, a thinspace was inserted as a fallback).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39537 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-27 10:58:48 +00:00
Jürgen Spitzmüller
6a3ff009db Issue the math space dialog (not the text one) when in math (bug 7746).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39536 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-27 10:45:59 +00:00
Tommaso Cucinotta
1bc43396fe Fix recursive repaint problem.
See also: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg170468.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39535 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-27 10:21:59 +00:00
Tommaso Cucinotta
ef7a142f3f Fixed longstanding bug in Advanced Find&Replace, when dealing with documents containing braces.
Corresponding test-case needed a fix as well and now it is passed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39518 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-25 19:16:14 +00:00
Vincent van Ravesteijn
3bd87e5a64 Make the Buffer class non-copyable, otherwise LyX crashes when 'Impl * const d' is deleted while deleting a copy of the Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39515 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-24 19:10:40 +00:00
Enrico Forestieri
d68309ee17 On Windows, also fix call to octave (related to bug #7715).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39513 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 18:45:46 +00:00
Stephan Witt
1a0b35288d #7740 Add undo for change of text language with LFUN_BUFFER_LANGUAGE
When a document is not multi-lingual the text contents is changed
to the new language. This should be recorded for Undo.
Because Undo wants a cursor the implemantation has to be
moved to the BufferView class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39508 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-23 10:22:14 +00:00
Enrico Forestieri
f3f38f492b Fix #7715 (Lyx 2.0.0 doesn't work with Mathematica 8: call to 'math' problem?)
The fix also allows to execute again batch files when using runCommand.
Unfortunately, this is still not possible with QProcess as that code is not
under our control.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39504 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-22 01:39:49 +00:00
Stephan Witt
2aca5e10f2 correct spell check request for Paragraph::changeLanguage()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39503 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-20 13:54:02 +00:00
Stephan Witt
5098c71730 add missing spell check requests for Paragraph::appendChar() and Paragraph::appendString()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39502 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-20 13:51:38 +00:00
Stephan Witt
e92c786618 correct implementation of "mark whole paragraph" for spell check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39501 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-20 13:48:19 +00:00
Vincent van Ravesteijn
d631fe0001 Fix bug #7662: Incorrect scrolling for rows with larger ascent.
- After introducing the displayed vertical alignment for tables, we met for the first time situations in which row.ascent is very large. To make sure the scrolling still works, we have to do the same as we did for rows with a large descent.
- change row.ascent into defaultRowHeight. Before the above mentioned change, row.ascent usually was approximately the same as defaultRowHeight (by chance). However, it is now clear we don't really want row.ascent here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39486 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-17 10:44:50 +00:00
Pavel Sanda
b19410d232 Fix #7720: plain text export of branches should contain only content of the inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39474 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-11 21:39:04 +00:00
Uwe Stöhr
30de1c744e - UI support for the LaTeX-package undertilde, fileformat change, fixed the remaining part of bug #6622, Georg already implemented the non-UI support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39464 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 03:37:33 +00:00
Uwe Stöhr
a95e0ee47b BufferParams.h: revert unintended changes from previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39458 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 02:26:41 +00:00
Uwe Stöhr
cc5cc067a0 new export flavor "DVILUATEX", fixes bug #7713, patch from Jürgen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-10 02:23:44 +00:00
Uwe Stöhr
a9f2c3e0fe LanguageUi.ui: clarify tooltip, fixes #7717
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39449 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-09 14:02:40 +00:00
Richard Heck
799cf1a913 Fix bug #7708. When we reload the outliner, we have to make sure the Buffer is up to date. So we have to do a complete updateBuffer() here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39443 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-08 18:29:52 +00:00
Richard Heck
e0fe63f31c Apparently, we are not supposed to be using QComboBox::textChanged
anymore, but instead QComboBox::editTextChanged.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39442 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-08 17:21:13 +00:00
Richard Heck
8fee557d6d Fix bug #7714 by sorting the formats.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39436 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-08 14:20:38 +00:00
Richard Heck
6ea4b032fb Fix bug #7535 by adding a bounds check. There is still a problem here,
though, which will surface somewhere. See the bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39421 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-05 16:06:41 +00:00
Enrico Forestieri
2de1163efc Fix bug #253 (Incorrect protection of closing quotation marks)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39420 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-05 11:23:00 +00:00
Stephan Witt
569815e79d correct mac specific menu code for Cocoa based Qt build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39411 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-02 16:57:13 +00:00
Enrico Forestieri
56e1cbbdff When previewing a format, change to the directory of the previewed file
and invoke the previewer with only its filename without the path.
This solves the problem about forward search on Windows reported here:
http://thread.gmane.org/gmane.editors.lyx.general/71130


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39410 a592a061-630c-0410-9148-cb99ea01b6c8
2011-08-02 03:43:09 +00:00
Tommaso Cucinotta
4b1a671190 Size tab now enables and disables correctly depending on the capabilities configured for the current external template (selected via the combo).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39399 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-31 18:39:51 +00:00
Stephan Witt
e309590df8 #7660 with aspell backend split words on hard hyphens to check parts separately because hyphen is not allowed to be part of a word - neither in regular nor in personal dictionary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39395 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-31 13:27:39 +00:00
Pavel Sanda
5005facace Add visible space. After long discussion the solution is part of InsetSpace.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169847.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39367 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-23 18:40:21 +00:00
Stephan Witt
1ffc210d0d care for a change of accept_compound and reconfigure the aspell backend accordingly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39363 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-22 09:01:08 +00:00
Stephan Witt
9b7b6ded7c #7660 report failures on add-to-session with LYXERR
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39362 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-21 19:55:10 +00:00
Stephan Witt
925ae3dd10 only aspell is using spellchecker_accept_compound rc variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39361 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-21 15:33:56 +00:00
Stephan Witt
d0debb73cf move spellchecker backend change action to actOnUpdatedPrefs where it belongs to, add missing action for change of spellchecker_accept_compound preference
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39360 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-21 08:47:20 +00:00
Richard Heck
f49cdf3420 Fix recursive include check.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39339 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-18 13:57:15 +00:00
Enrico Forestieri
6159350368 Limit fix for bug #6063 to math insets and only when inline completion
is disabled in math.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39337 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-18 08:10:20 +00:00
John C. McCabe-Dansted
2885ea3921 Fix bug #7467: build failure on GNU/Hurd, which doesn't define PATH_MAX.
(Patch from Pino, adapted for trunk by Sven)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39333 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-17 12:32:00 +00:00
Richard Heck
1f820d11a2 Add check for recursive includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39328 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-16 13:40:20 +00:00
Richard Heck
d89d60c5a7 Fix bug #7682. Problem was that we were finding the children using the
BufferList, which knows nothing about clones.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39327 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-16 13:30:17 +00:00
Abdelrazak Younes
6056db3212 Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39300 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-14 17:00:35 +00:00
Abdelrazak Younes
144f59abdd Fix memory leak: submenus were never deleted because QMenu::clear() only deletes the QActions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39299 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-14 11:10:13 +00:00
Abdelrazak Younes
b9f6712d77 Languages::readLayoutTranslations() clarify and un-indent loop.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39298 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-14 09:57:59 +00:00
Abdelrazak Younes
fcb2cce53f Language: Get rid of ignore_lang and latex_lang global variables and add a check against multiple definitions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39297 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-14 08:51:49 +00:00
Abdelrazak Younes
dba4f28b62 - Coding style
- Move local functions closer to where they are used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39296 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-14 08:47:56 +00:00
Richard Heck
e47d0dfb0d Fix bug with output of prettyref chapter references.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39288 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-13 15:18:29 +00:00
Jean-Marc Lasgouttes
975174d0cc reorder initializers to avoid warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39281 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 15:56:21 +00:00
Abdelrazak Younes
c57dc64116 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39277 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 13:41:42 +00:00
Abdelrazak Younes
850e4d80c0 Graphics cleanup: get rid of Previews.{h,cpp}
The PreviewLoader is created directly by Buffer on demand. The PreviewLoader cache was complex and unneeded because there is one and only one PreviewLoader per Buffer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39276 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 12:43:11 +00:00
Tommaso Cucinotta
bc9e5607fb After replacing with multi-cell contents, now advanced find and replace leaves the cursor after the inserted material.
Addressing http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169981.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39266 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-10 00:19:11 +00:00
Richard Heck
2514bb04c1 Fix bug #7656.
I don't think we need to record anything yet, since we are not changing
anything here. The dialog will call a new LFUN to do the change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39253 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-07 19:48:50 +00:00
Abdelrazak Younes
2a01208cae addendum to r39250: I forgot about math labels. This fixes it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39251 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-06 18:52:56 +00:00
Abdelrazak Younes
f9e9956169 Split InsetLabel::updateCommand() into:
* uniqueLabel(docstring & label) to enforce label unicity
 * updateLabel() to update only the label.
 * InsetLabel::updateLabelAndRefs() to update label & refs
 * InsetLabel::updateReferences() to update the references

This fixes bug #7655


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39250 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-06 17:40:51 +00:00
Richard Heck
6875550973 Fix bug #7664. Forgot to deal with included files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39242 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-03 20:59:03 +00:00
Pavel Sanda
d958d89b35 VCS: RCS implementation for date and author insetinfo was missing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39231 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 13:08:36 +00:00
Pavel Sanda
c5220d3945 VCS: copy-paste error, these functions return bool.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39228 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 11:43:51 +00:00
Stephan Witt
7252ebbb34 #7661 check buffer of cursors before using compare operator to avoid a crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39227 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 10:41:36 +00:00
Richard Heck
07ca26fa27 Clarify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39220 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-30 02:17:49 +00:00
Richard Heck
dfc2a2792e Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39219 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-30 02:16:34 +00:00
Richard Heck
485cfe2b72 Add a sanity check to prevent the crash noted in #7654.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39212 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-29 14:22:04 +00:00
Richard Heck
6e68683dbf Easy fix for mark dirty part of #7655. Also adds a simple check to
see if the label has changed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39211 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-29 13:42:55 +00:00
Enrico Forestieri
5e534a7d84 Fix bug #7645 (stream encoding not properly reset after a float)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39193 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-22 16:21:03 +00:00
Jean-Marc Lasgouttes
79fb39058c Fix bug #7640: Importing underlined text fails in LyX 2.0
Just recognize \uline as a synonym or \underbar.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39182 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-21 13:24:26 +00:00
Richard Heck
c53971b07e Remove unused optional variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39157 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-20 21:08:56 +00:00
Richard Heck
f14970eacd Cosmetic improvements to tabular dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39156 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-20 21:08:51 +00:00
Richard Heck
b3475e9fac Fix bug #7634. Make sure we clear the tag deque if we are keeping
empty paragraphs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39152 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-20 15:55:41 +00:00
Richard Heck
51149d8490 Fix problem with bibliography indentation reported on user list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39149 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-20 15:19:16 +00:00
Tommaso Cucinotta
a48baee56f Now Adv. F&R correctly interprets escape sequences within regexp insets, e.g., \\ or \(, for finding characters with a special meaning in regular expression context (\^()[]).
Added corresponding regression tests findadv-re-01 and -02 for finding these special characters.
Unfortunately, braces {} are a little bit special and don't work yet. Added findadv-re-03 regression test to not forget about this case.
This goes along the line of fixing issues reported by Andrew Parsloe and summarised as #7638.
Last note: Still there will be cases when the Advanced F&R won't work, especially if the text to be found and/or the search pattern is preceded by backslashes or others.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39135 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-19 16:41:23 +00:00
Enrico Forestieri
0eedbdee03 Don't rely on Qt for setting an environment variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39049 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-14 18:06:57 +00:00
Pavel Sanda
9359d73dde Using pkgconfig to configure hunspell.
(hunspell 1.3 is not correctly recognized otherwise).

Patch from Rex Dieter, posted by Jose.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39040 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-14 14:32:42 +00:00
Richard Heck
5c264ebdf3 Modify r38980 in response to Vincent's comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39021 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 18:03:32 +00:00
Tommaso Cucinotta
f67834bb22 Disabled possibility to type macros in regexp-mode. Now typing \ inserts a \ (no need to type twice) while in regexp mode.
Addressing issue 4. at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39017 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 01:19:07 +00:00
Tommaso Cucinotta
c7e609135a Now backslash-prefixed regexps like "\s", "\d", etc., are all understood by Advanced F&R.
Fixing issue 4 reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39016 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-12 00:12:26 +00:00
Tommaso Cucinotta
5a4f151fb8 Now a regexp inset with a \backslash compiles.
This is needed when instant preview is on,
so we avoid the empty preview due to latex compilation error.
Fixing issue 1. reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39015 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-11 23:21:14 +00:00
Tommaso Cucinotta
314f995cf2 Now the cursor is visible while at the rightmost part of a regexp inset.
Fixing issue 2. reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39013 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-11 22:06:06 +00:00
Enrico Forestieri
c29440131a Compile fix for Qt 4.5 and earlier. The other build systems should update
the moc invocation to add the proper define for QT_VERSION.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38995 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-08 19:45:52 +00:00
Richard Heck
390990af6d Fix bug #7622. We have to show the error list after we set the buffer,
because that is what creates the GuiDelegate.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38985 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-08 13:04:30 +00:00
Richard Heck
4201a465f0 Fix stupid duplicate from r38981.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38984 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-08 12:51:24 +00:00
Richard Heck
b436d85783 Fix bug #7517. This restores some code removed when we started adding basic layouts we didn't recognize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38981 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-08 00:12:57 +00:00
Richard Heck
6efabf807e Fix problem with static error list.
It's amazing we haven't seen problems with this before. The basic problem is that buf.errorList("whatever") would always return the same global, static error list, if it did not already exist. So, to a significant extent, there was only one global error list!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38980 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-08 00:12:52 +00:00
Richard Heck
60b1a06ac8 Revert previous commit, which committed too much.
This reverts commit 4369e725b17fede013eb26bfd797e917eaf6f4ea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38979 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 23:52:22 +00:00
Richard Heck
cd2e50a275 Fix problem with static error list.
It's amazing we haven't seen problems with this before. The basic problem is that buf.errorList("whatever") would always return the same global, static error list, if it did not already exist. So, to a significant extent, there was only one global error list!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38978 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 23:45:33 +00:00
Richard Heck
bbe40d71d6 Cleanup in expandFormats().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38977 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-07 17:14:38 +00:00
Vincent van Ravesteijn
8968000e16 Move the #if up, because older Qt's can't include QtCore/QPropertyAnimation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38970 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 18:14:07 +00:00
Jean-Marc Lasgouttes
1f81d78814 Revert r38963. Compilation is now broken with qt 4.5, but I do not know Qt moc business and do not have time to investigate.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38969 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 15:53:43 +00:00
Jean-Marc Lasgouttes
19478f3efa compilation fix for Qt 4.5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38963 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 10:29:30 +00:00
Vincent van Ravesteijn
7559973969 Compile fix for qt versions below 4.6.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38961 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 23:24:56 +00:00
Vincent van Ravesteijn
519f74ab61 Add a search box to the Document Settings and Preferences dialog.
Patch from venmo00.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:54:27 +00:00
Vincent van Ravesteijn
1744b6f9ed Set svn:eol-style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38958 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:52:15 +00:00
Vincent van Ravesteijn
cc81d48b18 Add a FancyLineEdit class. This code was taken from QtCreator and modified a little.
Patch from venom00.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38957 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-05 17:51:02 +00:00
Richard Heck
327d2cd5c5 Update status when bullet size is changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38945 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-04 12:50:39 +00:00
Stephan Witt
af92f60df9 Cocoa based Qt-4.6 needs to paint every character separately to match metrics computation, there is no Qt version dependency
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38934 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 20:46:25 +00:00
Richard Heck
f76d28c118 Just a bit of cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38933 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 19:55:08 +00:00
Richard Heck
7305ddb6bf Fix some typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38932 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 19:39:44 +00:00
Richard Heck
15cfbae75b Decimal point --> Decimal separator. As noted by one of our translators,
that is the language we use elsewhere.

Also took the opportunity to fix some shortcuts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38930 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-02 15:43:21 +00:00
Richard Heck
82d6524298 Fix bug #7540. Patch based upon one added to bug report by Max Funk.
Basically, patch adds routine that calcuates relative paths to parent
rather than child directories.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38915 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-01 13:18:08 +00:00
Pavel Sanda
8bbe99f100 Another glitch ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38906 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 20:23:06 +00:00
Richard Heck
78fa6abc08 Fix for bug #7360. Patch from Nemah, posted to bug report.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38901 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 15:30:22 +00:00
Richard Heck
5f23164e86 Remove XML lines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38897 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-31 13:44:51 +00:00
Pavel Sanda
325e2575e3 Fix #7598, do not buffer movement keys.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38890 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 14:49:58 +00:00
Tommaso Cucinotta
69ab1306a8 Avoid extra ' ' in text-only export of consecutive macros in math mode, for Advanced F&R matching, with ignore-format off.
For example, this wasn't allowing to match '\beta\alpha' in the sequence '\alpha\beta\alpha', as
in the accompanying regression test-case (added case for ignore-format off).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38888 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 14:08:29 +00:00
Richard Heck
46498f9f4b Fix string format to match others in this file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38884 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 13:43:04 +00:00
Tommaso Cucinotta
2d8108cf4c Avoid extra ' ' in text-only export of consecutive macros in math mode, for Advanced F&R matching.
For example, this wasn't allowing to match '\beta\alpha' in the sequence '\alpha\beta\alpha', as
in the accompanying regression test-case.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38883 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 13:40:34 +00:00
Enrico Forestieri
3dfe917a4e Avoid too much verbosity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38878 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-29 10:29:05 +00:00
Richard Heck
318719f001 Potential fix for #7591.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38875 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-28 14:34:19 +00:00
Tommaso Cucinotta
e410730dd9 We use the main document's buffer() instead of the current buffer(), so as to catch the citations
defined there, also while using the dialog from the Adv F&R WAs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38866 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:54:23 +00:00
Tommaso Cucinotta
5ce93e724e Added method for easy reach of main document buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38865 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:53:23 +00:00
Richard Heck
35361d7af4 Reinsert newlines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38864 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:37:58 +00:00
Tommaso Cucinotta
ec46b98d8c Fixed bug in matching at borders within *-environments with ignore-format off.
(related to #7596)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38863 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 21:14:36 +00:00
Richard Heck
73b81b7986 Fix oddly phrased string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38862 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 20:49:44 +00:00
Tommaso Cucinotta
386c8291ed Fixed Advanced F&R issue in matching things at environment borders with ignore-format off.
Added accompanying regression tests for displayed math and numbered equations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38860 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 20:39:58 +00:00
Richard Heck
3f8ae08390 Fix for bug #7572. The basic problem here is that we are trusting the
viewer to give us sensible information, but that information may be out-
generated. So we need to check and make sure the values we get are
valid.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38859 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 20:37:29 +00:00
Richard Heck
80cb1f7674 Some cleanup and a fix for a potential crash while investigating #7572.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38858 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-27 19:47:10 +00:00
Tommaso Cucinotta
492d837e62 Use the main document's buffer(), when scanning for citations from within the citation dialog.
This allows to pick and search for citations present in the main document.

This was started to be discussed in a relatively unrelated bug #7581, then the patch
was proposed here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg169277.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38847 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 17:33:36 +00:00
Tommaso Cucinotta
f1965e9ff1 Bugfix in how the search buffer was exported for the Advanced Find & Replace.
For example, before this footnotes were not correctly found.
Added also accompanying regression test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38846 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 17:08:48 +00:00
Richard Heck
6432010065 Fix bug #7576 as suggested there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38844 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 16:01:16 +00:00
Richard Heck
176123afcf Fix tab order for crossref dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38843 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 15:50:12 +00:00
Richard Heck
3883cca61b Fix bug reported on user list. Children included more than once in
the same document could not be rendered.

Problem was that we were using children_positions to deal with the
included documents. That structure only includes each child once.
We need to use position_to_children, instead.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38842 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-26 14:16:52 +00:00