Commit Graph

16940 Commits

Author SHA1 Message Date
Peter Kümmel
b677e23c58 format is a std::string, bformat doesn't take a std::string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32596 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 20:23:18 +00:00
Peter Kümmel
48c5304c02 pass format as argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 19:50:19 +00:00
Enrico Forestieri
5ec9d5f956 Fix bug #4063: LyX cannot handle apostrophe characters ' in path names
when QProcess is disabled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32592 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 19:29:53 +00:00
Vincent van Ravesteijn
28dab69a0e Compare feature take two.
With this patch, we can recursively walk through the document. The document is split around a middle snake and each part is processed further. The snakes are added to the output document as well as the added and deleted parts.

Now, the only thing left is to commit the implementation of the find_middle_snake function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32591 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 18:15:20 +00:00
Enrico Forestieri
04580d2122 Improve the command-line parser meant to be used for QProcess.
Now, both single- and double-quotes posix-like quoting styles are implemented,
such that a command-line meant for the shell can also be used for QProcess.
However, only redirecting the output to a file is supported. Supporting piping
would require a (major?) rewrite of the Systemcall class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32590 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 17:26:09 +00:00
Vincent van Ravesteijn
45b0c6be47 Fix the threaded preview and reenable it.
Buffer::Impl::inset was set in the ctor Buffer::Impl::Impl to be a clone. However, in the Buffer::Buffer ctor the inset was set again, now to a new and empty InsetText.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32589 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 15:46:45 +00:00
Abdelrazak Younes
229a910e29 disable preview in thread for now as it doesn't work anymore...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 14:59:11 +00:00
Abdelrazak Younes
30a4203f4a GuiView: reconnect the QFutureWatcher each time the QFuture is changed. This enable to send the result properly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32586 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 12:24:44 +00:00
Abdelrazak Younes
bea0925f8c Converter: add a safe guard to Alerts because those cannot be called from another thread. The whole Alert system must be rethought I am afraid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32585 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 22:59:59 +00:00
Abdelrazak Younes
4ed0169064 Detach Buffer preview and update preview in a new thread. Only for Qt4.4 users. This new feature can be disabled by setting EXPORT_in_THREAD to 0 in GuiView.cpp.
Two things are missing (but are fixable):
- the lack of feedback of the background latex compilation
- the error list is not shown in case of compilation error.

* Buffer:
- create a "cloned buffer" type.
- Transfer LFUN_MASTER_BUFFER_UPDATE, LFUN_MASTER_BUFFER_VIEW, LFUN_BUFFER_UPDATE and LFUN_BUFFER_VIEW to GuiView. This is good itself as these LFUN are GUI oriented.

* GuiView: detach the above LFUNs to a new thread as was already done for autosave. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 22:51:06 +00:00
Enrico Forestieri
5ad8d44ce2 Allow double quotes in file names passed to converters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32583 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 22:15:46 +00:00
Peter Kümmel
21686c0bbf UNDO: single quotes in filenames are possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32582 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 19:35:32 +00:00
Vincent van Ravesteijn
3efb1572a2 Fix bug #6378: Word completion (in texted) should be language-sensitive.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32581 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 14:48:56 +00:00
Vincent van Ravesteijn
b3128dc63b Fix second part of bug #6400: After selecting a word by double-clicking it, extending the selection by a single mouse-click should also select only whole words.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32580 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 14:18:10 +00:00
Peter Kümmel
4d5c24e80d Ticket 6266 Quoting Problem with QProcess: don't think we need any quotes (at least on Linux)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32579 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 12:20:22 +00:00
Vincent van Ravesteijn
7e08a4376e Fix part of bug #6400: Shift+mouse click loses the existing selection instead of extending it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32578 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 12:08:32 +00:00
Richard Heck
67c03d202f With ContentAsLabel, we do not need this special code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32576 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 01:22:24 +00:00
Richard Heck
08b63ad3c6 Enhance LyX by fixing bug 5587. We add a new ContentAsLabel tag to
InsetLayout, per Jurgen's suggestion, so that insets can be told to
display an abbreviated form of their content when closed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32575 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 00:29:22 +00:00
Richard Heck
e1ed39f8b4 So this changes the way we handle sums and such. We just don't need to
handle them specially for MathML, and we don't need to split scripts
either.

Wouldn't it have been nice if I'd realized that before?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32572 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 17:52:09 +00:00
Richard Heck
64c84ae883 Last commit didn't complete reversion, as I forgot to resolve the
conflicted state of this file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32571 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 17:50:46 +00:00
Vincent van Ravesteijn
87085fa2fd Set the current font when moving into a table or between two table cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32570 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 17:47:09 +00:00
Richard Heck
812616e100 Revert r32566 and r32568.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32569 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 17:42:21 +00:00
Richard Heck
46e1424678 Make InsetMathExInt handle products as well as sums.
We can do more here, but it's actually not clear to me whether we even
need to give these things special treatment for MathML. I may revert
this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32568 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 17:28:07 +00:00
Richard Heck
c3fc67ef54 Fix up MathML output of integrals.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32567 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 16:06:00 +00:00
Richard Heck
2ae6331072 Fix MathML output of sums.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32566 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:54:49 +00:00
Tommaso Cucinotta
019ffdd5f5 Removed unneeded commented code (fixing #6333).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:41:40 +00:00
Richard Heck
873c9ad4f8 Fix up math scripts. Everything needs to go into <mrow>. (This acts as a
general grouping mechanism, basically.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:39:18 +00:00
Vincent van Ravesteijn
e2d6ecff99 Compute the font_scaling_factor every time a preview is created (we can afford a few multiplications I guess). Now, the newly generated previews use the possibly updated zoom, dpi and preview_scale_factor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:25:55 +00:00
Vincent van Ravesteijn
5a530cca94 Do not hardcode the background color of the preview at two places.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:21:08 +00:00
Vincent van Ravesteijn
bf5a35a293 Remove unused include.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 15:16:27 +00:00
Vincent van Ravesteijn
6b96abd211 Correctly paint the background of the instant preview of a displayed equation.
For a displayed equation, the height is artificially increased by a displayMargin() in InsetMathHull::metrics if it is a displayed equation and there is a preview. 

This extra height is not covered by the preview image and what one can see is the background as drawn by the MathHull inset. The color of this background should be either Color_mathbg or Color_background depending on whether the preview is shown or not.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 14:09:37 +00:00
Tommaso Cucinotta
378d32bc06 indentation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 07:57:50 +00:00
Tommaso Cucinotta
ad0060454d Fix of bug ##6334 - now if you search for something not in the doc, it wraps around only once.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32558 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 07:53:20 +00:00
Tommaso Cucinotta
d5b329502b Fix of bug #6333 (main document WA was entirely selected and cursor position lost if F&R dialog was floating - does not happen anymore).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32557 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-17 07:48:29 +00:00
Richard Heck
48b09463dd Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32554 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 17:44:40 +00:00
Richard Heck
c271d0d8c1 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 17:22:56 +00:00
Richard Heck
96012a8859 Fix MathML for fractions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32551 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 17:22:42 +00:00
Richard Heck
1a74f3d103 Add a fixme, in effect, about dots.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32550 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 17:12:58 +00:00
Richard Heck
05f1f323de Detect appropriate delimiter for matrices.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32549 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 17:01:09 +00:00
Richard Heck
05336422a4 Fix matrix output, at least a bit. A little more work needs to be done
here, though.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32548 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 16:43:26 +00:00
Richard Heck
2635724b57 In a normal grid, we can just use <mrow>.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32547 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 15:50:31 +00:00
Richard Heck
ce2e071cdf This should do it for the delimiters.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32546 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 15:50:05 +00:00
Richard Heck
d4b3b61593 A bit more for math delim.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32545 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 15:35:25 +00:00
Richard Heck
7aeda251ce More Math ML fixes. Using <mfenced> seems to be a bad idea, and the <mo>
version is claimed to be completely equivalent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32543 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 15:12:34 +00:00
Richard Heck
9e149b8919 Fix a few MathML things: the default output and the output of limits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-16 14:53:23 +00:00
Richard Heck
512215606b Remove last vestiges of pre-XHTMLStream implementation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32541 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-15 13:22:38 +00:00
Richard Heck
5f27992e16 Restore the MathML output we had before. Still work to be done here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32540 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-15 13:14:57 +00:00
Richard Heck
47e591bbee Allow use of InsetLayout with InsetCaption.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32533 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 17:15:32 +00:00
Richard Heck
80ce542440 A little more CSS for tables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32532 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:57:54 +00:00
Richard Heck
814af09a69 Fix the height output for InsetBox.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32531 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:52:33 +00:00
Richard Heck
cbe28d9d7a Spacing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32530 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:50:17 +00:00
Richard Heck
673858b182 These add extra whitespace where we don't want it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:45:11 +00:00
Richard Heck
505cccfe7d Add some CSS for tables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32528 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:05:36 +00:00
Richard Heck
e71268a705 Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32527 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 16:04:33 +00:00
Richard Heck
5f04bedb1c Fix multicolumn output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32526 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 15:44:49 +00:00
Richard Heck
93c121cfaa Remove dead code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32525 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 15:40:54 +00:00
Richard Heck
dadda4cb44 Initial XHTML support for InsetTabular.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32524 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-14 15:39:13 +00:00
Vincent van Ravesteijn
c4701b2256 Fix bug #6341: Can't set equal spacing in xymatrix.
Now we also 'support' \xymatrix!C (columns), \xymatrix!R (rows), \xymatrix!0 (all equal and ignore entry sizes) and \xymatrix! (all equal).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32518 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 21:32:08 +00:00
Richard Heck
43207c17bc Restore XHTML output for InsetListings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32515 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 21:14:53 +00:00
Richard Heck
9f6c1b8ccb Fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32514 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 21:14:36 +00:00
Abdelrazak Younes
622e3b1e4d For Qt4.4 and up: Detach Buffer autosave into a new thread.
* Buffer: new clone() method. When this new autosave method is used the old autoSave() is not of course.

* GuiView: clone the current document buffer and save it in a new thread.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 21:00:46 +00:00
Jürgen Spitzmüller
e960a2bcd3 * BiblioInfo.cpp (convertLaTeXCommands):
- fix parsing of thin space (\,).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32504 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:50:30 +00:00
Peter Kümmel
62adbdd307 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:32:38 +00:00
Peter Kümmel
68957712dd cleanup error messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:30:28 +00:00
Uwe Stöhr
9c7b52dd3b preamble.cpp: extend a comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32496 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 21:23:54 +00:00
Uwe Stöhr
c5fc91ed51 InsetQuotes.cpp: correct a comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32493 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 20:29:47 +00:00
Vincent van Ravesteijn
2ab7e25b05 Fix bug #2948: Drag and drop support for all importable file types.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 15:25:45 +00:00
Vincent van Ravesteijn
472b09d735 Fix compilation without QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 14:04:21 +00:00
Vincent van Ravesteijn
8c8675e2ca Fix a crash when spellchecking when a Math inset is the last inset in the document. Make sure that the words between a math inset and the next inset are spellchecked. Also fix the count of the number of words when there are math insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32489 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 02:56:06 +00:00
Vincent van Ravesteijn
e89a267c71 Do not save an emergency file after choosing to revert the document to the version saved on disk.
Now also when the user tries to load the document when it's already loaded.

see r32170.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 01:18:18 +00:00
Uwe Stöhr
c7dfe186fb preamble.cpp: fix comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32482 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 23:14:36 +00:00
Uwe Stöhr
91ce0aa188 preamble.cpp:
- proper solution to determine the quotes language
- add Kazakh, that we already support in LyX for ages


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32476 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 04:11:44 +00:00
Enrico Forestieri
9e423f23fa Spare a few cpu cycles on average.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32474 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 01:46:57 +00:00
Enrico Forestieri
c2befc2b1e Fix bug #6382: Wrong cursor placement when inserting math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32473 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 01:30:33 +00:00
Uwe Stöhr
6b26b4abd1 preamble.cpp: tex2lyx creates fileformat 264 - the encoding "ascii" is known to LyX since fileformat 262 so that a special handling for this encoding is no longer necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32472 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 01:26:07 +00:00
Uwe Stöhr
96c6a139c4 preamble.cpp: simplify code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32471 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 01:22:48 +00:00
Uwe Stöhr
a01b8a1d1c InsetCaption.cpp: revert unintended commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32470 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 01:01:58 +00:00
Uwe Stöhr
83b1c48846 replace links to bugzilla with links to trac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32469 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 00:59:10 +00:00
Richard Heck
19bec6e8bc Generate the magic label always. We'll need it other times, when we do
the other TOCs, in particular.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 20:36:12 +00:00
Richard Heck
0d0a1c6457 Don't double-escape things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 20:19:41 +00:00
Richard Heck
f162067a61 Now how do you think that happened?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32463 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 20:11:46 +00:00
Richard Heck
e5afe8db66 This really gets the TOC working now. We auto-generate labels for the
paragraphs the TOC targets, and link to them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32461 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 20:03:35 +00:00
Richard Heck
46e70895a9 CSS for the TOC, and a couple small fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32460 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 19:28:00 +00:00
Richard Heck
ffe73b795b Initial work for InsetTOC. This does actually write a TOC, but without
any links. That is the next step.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 18:30:48 +00:00
Richard Heck
d2f85c7978 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32458 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 18:12:35 +00:00
Richard Heck
ad67f42b17 Removing debugging code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32457 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 16:44:33 +00:00
Richard Heck
69666056ca Cosmetic repairs to my updateLabels() changes, thanks to Andre's
comments. Added comments per Pavel's suggestion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32453 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 13:25:31 +00:00
Jürgen Spitzmüller
28ce123a18 Simplify the definition of multi-accented polytonic Greek, patch by Günter Milde.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 08:26:22 +00:00
Uwe Stöhr
a831919c0c preamble.cpp: simplify code and reintroduce code that was accidentally deleted in previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32449 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 03:07:36 +00:00
Uwe Stöhr
64ede202fa preamble.cpp: set correct quotes language (currently an Italian document gets the non-existing quotes language "italian")
- also to branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32448 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 02:41:33 +00:00
Uwe Stöhr
d04377a231 preamble.cpp: adjust comments for better clarity
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32447 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 02:29:49 +00:00
Uwe Stöhr
fea997f075 InsetCaption.cpp: add a comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32443 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-09 23:36:59 +00:00
Vincent van Ravesteijn
e3b26029cc Fix bug #6365: tex2lyx uses wrong encoding in the preamble.
Everything is ok while reading the file, but when the lyxfile is written, only the first byte of a double-byte character is written to the file. This is because t.character() is sort of defined as cs_[0] in which cs_ is a docstring. This thus seems to fail for multi-byte characters.

Compare with src\tex2lyx\text.cpp line: 1250.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32441 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-09 12:29:48 +00:00
Jean-Marc Lasgouttes
ccfcd71b36 Get rid of Token::asString(), which is equivalent to cs().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32439 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-09 11:53:16 +00:00
Jean-Marc Lasgouttes
52061b8313 Speedup updateMacroInstances. This has some effect on document loading time:
it was a significant part of this time


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32435 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-08 22:41:10 +00:00
Jean-Marc Lasgouttes
b2dd36916b fix compilation with qt 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-08 12:27:44 +00:00
Jürgen Spitzmüller
fa7b247485 indicate that we're opening a dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32430 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-08 08:37:08 +00:00
Pavel Sanda
01f46c0079 Change string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32420 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 23:27:24 +00:00
Vincent van Ravesteijn
99a9d3dd69 Simplify code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 19:06:15 +00:00
Jürgen Spitzmüller
123a589bf8 * Fix bug #2144: Merge the two identical classes g-brief-de and g-brief-en into one class g-brief.
The German layouts are replaced by the English ones.
German localization is now done as it is supposed to be: via gettext.

A file format change was needed to do this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 11:53:25 +00:00
Vincent van Ravesteijn
e6d1759340 CitationUI and InsetMathChar:
squeeze warnings

output_xhtml:
  fix whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 01:28:14 +00:00
Richard Heck
5280ae1609 Better citation dialog fixes from Edwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32379 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 23:35:07 +00:00
Richard Heck
025138f30c Minor XHTML fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32378 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:53:47 +00:00
Peter Kümmel
6fa6bcf1a9 just discovered qtcreators feature 'replace tabs on save' ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:43:38 +00:00
Peter Kümmel
f69ec61315 no timeout when starting up a process, cleanup error message when error code in not 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:40:16 +00:00
Pavel Sanda
782785ab5e Layout changes for Citation dialog from Richard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32375 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 16:27:04 +00:00
Pavel Sanda
89bdacdeec Typos, patch from Sven.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32371 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 23:18:21 +00:00
Vincent van Ravesteijn
61ceded4f2 Fix HunspellChecker when the path is specified with a trailing '/'. (and revert previous stupid commit).
see: http://thread.gmane.org/gmane.editors.lyx.devel/123324

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32357 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 03:55:03 +00:00
Vincent van Ravesteijn
3b520b9523 Fix HUnspellChecker when the path is specified with a trailing '/'.
see: http://thread.gmane.org/gmane.editors.lyx.devel/123324

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32356 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 03:37:05 +00:00
Vincent van Ravesteijn
03a0da1a49 Fix bug #6356: Reloading image does not work for compiling.
Refresh the file info, otherwise InsetGraphics::latex might still think that the file does not exist.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32355 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 02:56:19 +00:00
Vincent van Ravesteijn
0acff0aa75 Add a FileName::refresh function and replace one call to lastModified which was just meant to refresh the file info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32354 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 02:50:34 +00:00
Vincent van Ravesteijn
80ac638d42 Fix trunk after r32352.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32353 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 01:07:38 +00:00
Vincent van Ravesteijn
b56e4c5697 Do not start loading a preview each time one is added. This caused LyX to generate LaTeX code of the document over and over again for each math inset. As a consequence, the loading of the User's Guide took ages.
Fixes a bug introduced in r32157 while fixing bug #4360.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32352 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 00:43:28 +00:00
Richard Heck
ab267e0f81 Fix strange problem reported by Stefano Franchi.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32339 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 17:38:30 +00:00
Pavel Sanda
7814b9c857 Comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32336 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:40:40 +00:00
Pavel Sanda
061b55c5f4 VCS: do not allow to run VCS stuff in parallel with editation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32335 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:38:34 +00:00
Peter Kümmel
11020c50f1 add argument to suppress event processing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:28:30 +00:00
Peter Kümmel
eac9f84482 fix unused var warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32331 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:51:39 +00:00
Peter Kümmel
5dabc94547 fix init order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:48:38 +00:00
Peter Kümmel
0af92c85e9 Enable user input processing when an external process is busy.
If it breaks it anything just flip the bool to disable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32329 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:20:00 +00:00
Peter Kümmel
74e77476b5 also process user input, trigger more processEvents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:08:24 +00:00
Pavel Sanda
6598b9e2a4 gcc complains because of inicialization order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:06:29 +00:00
Peter Kümmel
248712bc64 coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:39:48 +00:00
Peter Kümmel
1eb72710eb also delete process on errors, use RAII therefore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:35:32 +00:00
Peter Kümmel
314b79576e more cleanup without behavior changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:11:06 +00:00
Peter Kümmel
a0bdf5e666 Move some code from the process branch into trunk.
Don't incorporated any progess stuff.
Behavior when starting a process is UNTOUCHED, but could simply changed by setting progessEvents to true.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 09:51:13 +00:00
Richard Heck
996505c2ae This patch introduces an optional argument to Buffer::updateLabels(), so
as to allow us to call the routine when we are preparing for output and
so to do certain things we might not want to do every time. 

This is an abuse of updateLabels(), in a way, but updateLabels() long
ago became the general recurse-through-the-Buffer routine, and to
implement the sort of thing I want to do here in validate(), say, much
of the code in updateLabels()---in particular, the counter-update
code---would have to be duplicated. So I believe this is the best, and
easiest, way to go.

Actual use of the new argument will follow.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32318 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 03:03:38 +00:00
Uwe Stöhr
55b61a0c9f Inset.h: fix whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 02:11:54 +00:00
Richard Heck
f3b5dacaeb Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32316 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 02:05:38 +00:00
Richard Heck
82cb512ebb Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32311 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 23:30:26 +00:00
Richard Heck
4843a76603 Get counter from InsetLayout, as elsewhere.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 23:22:45 +00:00
Richard Heck
d964e6bdb9 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32309 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 23:10:08 +00:00
Richard Heck
e70c04b350 CSS for InsetBibtex. We include this via the validate mechanism, and
borrow the LatexFeatures::addPremableSnippet() method to do it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32301 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 21:06:41 +00:00
Richard Heck
c2f39490a7 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32300 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 20:19:15 +00:00
Richard Heck
3b7fd0c806 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32299 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 20:19:06 +00:00
Richard Heck
95fedfe642 Remove obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32297 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:59:42 +00:00
Richard Heck
22452958f9 The BibTeX bibliography only includes BibTeX entries.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32296 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:54:12 +00:00
Richard Heck
451e926b84 Restore XHTML output for InsetGraphics.
To make this really good, we'd want to be able to rotate, crop, etc, the
images, as well as convert them to suitable output formats. This should
not be too difficult, since we do this sort of thing for display,
anyway. But I don't myself know how to do it. Anyone?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32295 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:52:46 +00:00
Richard Heck
879e5d3504 Revert previous commit. Wrong fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32294 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:46:24 +00:00
Richard Heck
ca6f5978c3 Fix bibitem bug for XHTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:43:00 +00:00
Richard Heck
5e440ef668 Only step counters we have.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-03 19:35:31 +00:00
Jean-Marc Lasgouttes
fc3de8c150 new method getLongArg that grabs all the remainder of the argument string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32283 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-02 09:39:39 +00:00
Jean-Marc Lasgouttes
d81c4751df add a new bformat version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32282 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-02 09:38:14 +00:00
Richard Heck
da47b99f39 Whoops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32278 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-01 14:36:48 +00:00
Richard Heck
9929f89856 Fix bug 5842: Add InPreamble tag for layouts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32277 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-01 14:34:05 +00:00
Richard Heck
84ccea777f Add a couple comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32267 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:31:21 +00:00
Richard Heck
8df174c446 I seem to have been testing for the same thing twice, more or less.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32266 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:26:10 +00:00
Richard Heck
4f51edea21 Remove obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32265 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:25:39 +00:00
Richard Heck
55bfa587c6 Don't escape these.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32264 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:13:06 +00:00
Richard Heck
a2de033405 Forgot that unique() doesn't actually erase anything.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-30 23:08:24 +00:00