Jean-Marc Lasgouttes
e4f2484cb5
Implement LFUN_SPELLING_REMOVE (patch from switt)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:10:40 +00:00
Richard Heck
17166837d7
Revert last commit. I was confusing two things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:13:47 +00:00
Richard Heck
e611cc2d4a
Enhance LyX by fixing #6760 . New preference to set minimum length of
...
automatically spellchecked words.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34889 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:08:44 +00:00
Richard Heck
84a4ec80ab
Paragraph::latex() always returned false. So remove the return value.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34676 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-15 15:49:24 +00:00
Richard Heck
c952f9a7be
Fix InPreamble. I must have committed an incomplete patch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34675 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-15 15:37:39 +00:00
Richard Heck
8f54bac004
...this value. As the comment says, this is the value we need to expose
...
in the preferences to solve bug #6760 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34641 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-09 21:04:57 +00:00
Richard Heck
ae2f979947
More minor cleanup, while looking for...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34640 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-09 21:02:47 +00:00
Richard Heck
d205cd4b68
Minor cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34639 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-09 20:56:42 +00:00
Edwin Leuven
f403c0a601
get rid of some missing enum warnings after r34598
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34599 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-05 08:26:00 +00:00
Pavel Sanda
2b7c121614
Simplify texrow
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34169 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 17:22:25 +00:00
Jürgen Spitzmüller
947d3ffd80
Add the spellcheck tag also to paragraph styles.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33469 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-13 17:57:11 +00:00
Jürgen Spitzmüller
8168e27362
* new InsetLayout tag to disallow spell checking. This actually brings Inset::allowSpellCheck() to use.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33467 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-13 15:44:17 +00:00
Jürgen Spitzmüller
5f4c5c5da9
* support/lstring.{cpp,h}:
...
- new function hasDigit
* src/Paragraph.cpp (spellcheck):
- ignore words with digits, as in 1.6 (bug 6493).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33395 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 17:35:35 +00:00
Jürgen Spitzmüller
d5432aa11e
whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33390 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 16:24:01 +00:00
Jürgen Spitzmüller
a220c4ee4a
this was not intended to go in.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33388 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 14:34:58 +00:00
Jürgen Spitzmüller
0d7f4bc32b
* Paragraph.cpp (spellcheck):
...
- comment out code that makes aspell abort
if a word in an unknown language is being checked
(instead of just skipping this word)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33387 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 14:33:16 +00:00
Jürgen Spitzmüller
707935ab23
* store the full Language in WordLangTuple.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33378 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 11:26:49 +00:00
Jürgen Spitzmüller
a61eeb1fb2
Allow to switch buffer languages via the menu.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33366 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-08 17:15:00 +00:00
Jürgen Spitzmüller
c1e79cde53
revert r30112 ( #5988 ).
...
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg155843.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33191 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-24 10:32:22 +00:00
Richard Heck
b18bfcf3cc
Kill a (public) magic boolean.
...
The point of this will become clear shortly. I hope.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33133 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-21 18:46:20 +00:00
Richard Heck
4390d8e3ef
Don't show deleted stuff in output.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33124 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-20 22:42:27 +00:00
Richard Heck
3e654186d2
Move the StartTag, EndTag, and CompTag classes into the html namespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33099 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 22:08:04 +00:00
Richard Heck
1832a388c5
Collect the title for XHTML output, and use it.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33097 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 19:43:15 +00:00
Richard Heck
557c705cbb
Fix listings XHTML output: No paragraphs in there.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33096 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-19 19:11:12 +00:00
Jürgen Spitzmüller
4506ec88ab
* Add support for aspell language varieties.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33085 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-18 17:02:05 +00:00
Richard Heck
59c04f7096
The fortoc argument I introduced earlier should all along have gone into
...
OutputParams. So now it is there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33044 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-14 22:24:43 +00:00
Richard Heck
dc4e9f102a
Fix TOC output of math insets.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32998 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-12 20:24:53 +00:00
Abdelrazak Younes
5b70e2be8e
Revert part of r32766. This was a stupid change as newer paragraph
...
weren't taken into account. So the paragraph id management is now going
back to Paragraph.cpp.
Sorry for the trouble.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32788 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 09:12:49 +00:00
Abdelrazak Younes
744ee152fa
Cleanup a bit the pargraph ids generation in order to (trying to) fix
...
#6415
Enrico please verify that reverse dvi is fixed.
* Text and InsetText: create two private constructors and transfer some
initialisation code from InsetText.
* Paragraph: id generation is transfered to Text. May be transfered to
Buffer in the future, we'll see.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32766 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-05 13:16:55 +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
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
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
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
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
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
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
d305930f47
Forgot this. Now the insets at least show up again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32090 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 20:25:40 +00:00
Richard Heck
0b317145d7
Comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32087 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 18:28:36 +00:00
Richard Heck
ad132e2e99
Restore basic paragraph output for XHTML. The insets are all disabled still.
...
Much of the point of this is to allow us properly to handle what LyX does as:
<em>This is <strong>bold and italic</em> and now just bold.</strong>
We output:
<em>This is <strong>bold and italic</strong></em><strong> and now just bold.</strong>
which is valid.
Note how much easier this would have been if emphasis and boldness were insets
rather than ranges. ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32086 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-19 18:24:19 +00:00
Richard Heck
ff61f41d5b
Unnecessary argument.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32070 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-17 22:18:28 +00:00
Abdelrazak Younes
82c7e15e64
Uniformize Inset construction (passing Buffer * everywhere). Lots of cleanup to do still...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31901 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-08 15:53:21 +00:00
Richard Heck
5faa75408b
Try to deal with one of the big problems here, namely, that we
...
can't just output Standard as <p>, or anything else, because we
have structures like:
this is text <branch>and more text</branch> and more
which would then come out as:
<p>this is text <p>and more text</p> and more</p>
So we use the OutputParam html_in_par to try to signal when we
are already in a paragraph. It is expected that we will need to
do some bug fixing here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31753 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-26 20:53:46 +00:00
Jean-Marc Lasgouttes
b265203a84
Paragraph::write: buffer normal characters into a docstring, in order to reduce the number of calls to to_qstr().
...
THis leads to a big speedup of the buffer-write function (>60%). The goal is to make autosave less noticeable.
This patch should be safe as long as transforming a docstring to utf8 is equivalent to transforming the characters one by one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31695 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 16:48:55 +00:00
Jürgen Spitzmüller
3b6931719a
Assure the author is encoded correctly in the LaTeX output of change tracking markup (bug 6225).
...
Patch reviewed by Jean-Marc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31602 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-12 16:22:05 +00:00
Enrico Forestieri
2245f82f96
Properly reset the stream encoding after an environment. Fixes bug #6216 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-16 20:50:40 +00:00
Tommaso Cucinotta
14c27bcea6
OutputParams.linelen now controls line-width also for LaTeX exports, additionally to plaintext ones.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 23:46:04 +00:00
Abdelrazak Younes
0cc197d3c1
Move the inline spellchecking code from collectWords() to the row drawing routine. The text row is spell checked only if changed!
...
Now inline SpellChecker is faster than ever. Now, I honestly think that we blow out all the competitors (thunderbird, OO, MSWord, etc) :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30970 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 20:54:22 +00:00