Commit Graph

390 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
17986e7509 Ease the pain with unknown branches:
* on paste, ask if unknown branches shall be added to the branch list
	  (entails new LFUN_BRANCH_ADD)
	* add a list of undefined branches to the buffer and the GUI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 09:48:34 +00:00
Abdelrazak Younes
b8c470d55f Spellchecker Bug fix: found word was not filled in.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30351 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-04 18:00:01 +00:00
Abdelrazak Younes
5e01b2dfa1 Buffer::Spellcheck(): Fix infinite loop when a math inset is met... stupid me!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30231 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:43:39 +00:00
Abdelrazak Younes
5b2ba34ac6 Buffer::spellCheck(): don't spellcheck math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30227 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 21:00:48 +00:00
Abdelrazak Younes
c75fb1f6e0 First fix the spellchecker. Now, it find the next misspellec word.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30223 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 17:30:57 +00:00
Abdelrazak Younes
694399b16c Simplify Buffer::spellCheck() by using Paragraph::spellCheck().
Paragrah::isMisspelled() is split in two.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30222 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-22 16:38:11 +00:00
Abdelrazak Younes
f4f5178d4f Revert previous to this file, stupid copy&paste bug fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30212 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 14:33:13 +00:00
Abdelrazak Younes
5387379c24 Introduce Paragraph::isWordSeparator() and use it instead of Paragraph::isLetter(). Note here a change in behavior WRT to word selection: a deleted character is not considered a word separator. This new behavior will impact word finding and spellchecking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30211 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 14:30:57 +00:00
Jürgen Spitzmüller
5a54d11157 * Pop up error dialog if issuing master-buffer-[view|update] and errors occured.
Navigating in such dialogs does not work yet, but at least the user is informed
  at all that LaTeX wasn't succesful.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30209 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 12:26:41 +00:00
Jürgen Spitzmüller
9388e76dc0 * Buffer.cpp:
- make LaTeX logfile dialog work for child documents and master-buffer-[view|update]:
	  if there's only a master file log or if the master file log is newer, it is displayed.
* Buffer.h: typo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30206 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-21 09:44:10 +00:00
Jean-Marc Lasgouttes
889fdbd39b get rid of the \use_alt_language pref, which was not used. Instead, we test whether \alt_language is empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30159 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-18 15:31:43 +00:00
Jürgen Spitzmüller
bd4c74b3b7 * add support for the applemac encoding. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30064 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-12 08:47:38 +00:00
Richard Heck
70899f0c15 Separate HTML preamble information. This could be used for javascript,
or anything else one would like to add to the header.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29967 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 19:42:56 +00:00
Richard Heck
397ebabfa4 Rename a couple routines in preparation for more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29966 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 19:30:42 +00:00
Richard Heck
92a69bb790 Basic output routines for HTML.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29950 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 17:44:35 +00:00
Richard Heck
f28c1a2cce Allow customization of enumerate counters.
This patch is from JMarc, except the docs, which are due to me.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29906 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-02 16:02:29 +00:00
Jean-Marc Lasgouttes
864773d7d9 Allow literate documents other than noweb to work out of the box. Currently
only sweave is supported (for building documentation, not programs).

Layout files allow a new OutputFormat tag 

Modules can be conditionned on a feature of the type from->to, indicating that
it should be possible to convert from format 'from' to format 'to'.

Layout format incremented to 15.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29874 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-28 08:59:25 +00:00
Jürgen Spitzmüller
1d494512fc empty file format change due to r29840.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29841 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 08:27:12 +00:00
Jürgen Spitzmüller
322eb96219 * Allow manual setting of bibliography indendation
that overrides bibitemWidest (bug 5960).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29840 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 08:13:56 +00:00
Enrico Forestieri
00a62b7c0a Fix reverse search when the View Source window is active.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29834 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-24 01:38:33 +00:00
Jürgen Spitzmüller
e9cbe2f80f A GUI for nomencl settings. Adds the possibility to enter a custom length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 16:26:15 +00:00
Jürgen Spitzmüller
18cfe15b64 file format change due to r29770.
No automatic width calculation is done for old documents, because these might rely on settings in
nomencl.cfg.

A GUI to alter this is needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29775 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 08:31:43 +00:00
Jürgen Spitzmüller
7ba2bfb81d * Per-document setting for bibtex and makeindex.
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29774 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 07:20:00 +00:00
Pavel Sanda
8e15c27a9c Next attack on the background color. Thanks Juergen.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151267.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29723 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-18 10:53:02 +00:00
Pavel Sanda
0920fd7b5e Introduce new format as a safety measure
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150868.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150895.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-06 16:58:15 +00:00
Pavel Sanda
6fde8f8067 Introduce double underline and wavy underline styles from ulem
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150803.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-05 09:26:28 +00:00
Pavel Sanda
381b86788d Introduce strikeout text style (strike-through)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150743.html

Somewhat related to http://www.lyx.org/trac/ticket/4248 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 22:45:14 +00:00
Vincent van Ravesteijn
af39d35545 Adjust the location of the autosave file for unnamed docs.
If the document is unnamed try to save in the backup dir, else in the default document path, and as a last try in the filePath, which will most often be the temporary directory.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29508 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 10:24:12 +00:00
Vincent van Ravesteijn
aa4c7e7ef5 Fix bug #5879 (try 2): Move the autosave file of a buffer when the filename changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29507 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 10:21:21 +00:00
Vincent van Ravesteijn
11ecc24c0c Revert r29505. We forgot that we cannot retrieve the new autosavefile yet, because the buffer might still be marked as unnamed. So, we should first finish this administration, before we can get the location of the new autosave filename.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29506 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 10:16:49 +00:00
Vincent van Ravesteijn
dce037ed5a Fix bug #5879: Move the autosave file of a buffer when the filename changes (patch by Richard).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29505 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 09:09:33 +00:00
Jürgen Spitzmüller
dd930b4535 * final splitindex feature addition: support for \printindex* and \printsubindex*
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 06:10:25 +00:00
Jürgen Spitzmüller
0bd5c5fca8 * Add support for splitindex's \printsubindex command. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 11:24:38 +00:00
Jean-Marc Lasgouttes
26b1c55e03 whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29393 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 12:37:56 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Uwe Stöhr
4d30bc7579 support for \pagecolor, fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29220 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 21:40:11 +00:00
Jürgen Spitzmüller
60d2b3295a * new per-document default output format. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29181 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 11:06:53 +00:00
Uwe Stöhr
305ac4e923 Buffer.cpp: fix due to compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29170 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:58:51 +00:00
Jürgen Spitzmüller
cb0bfc9445 * Buffer.cpp (getDefaultOutputFormat):
- prevent crash if no formats are found (and return an empty string).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29141 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 11:54:02 +00:00
Jürgen Spitzmüller
25a14730ed * First step towards default view format.
The icons could be replaced by something nicer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29134 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 05:01:08 +00:00
Richard Heck
4daf7b5dfc The Buffer::dispatch() patch.
This patch enhances the Buffer::dispatch() method to make it a full-fledged
member of the dispatch sequence. The most immediate payoff is that LFUNs that
are handled in Buffer::dispatch() can be used from the command line.

We make better use of the DispatchResult object and return error information 
through it, rather than using return values. (This was JMarc's suggestion.) We 
also introduce a  corresponding Buffer::getStatus() method, and modify 
BufferView::getStatus() to return a flag indicating whether a decision has been 
made, as is already done in some other cases.

Finally, some LFUNs are moved to Buffer::dispatch(), including LFUN_BUFFER_PRINT.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29125 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 12:12:06 +00:00
Jürgen Spitzmüller
737e9b2c20 start XeTeX support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 06:58:30 +00:00
Abdelrazak Younes
193074b384 Spellchecker: More simplifications.
This change makes it possible (at long last!) to go to the work area, do some edition and then come back to the SpellChecker. We probably need a [Continue] button.

* Buffer::nextWord(): go back a bit to return the current word.

* SpellChecker and Dialog: get rid of the complicated, useless exitEarly() handling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 17:25:14 +00:00
Abdelrazak Younes
a4169da139 More SpellChecker cleanups.
* Buffer::spellCheck() new method constructed from mutiple bits of GuiSpellchecker.cpp.

* GuiSpellchecker: lots of simplifications.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29090 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 16:40:47 +00:00
Richard Heck
876dc0d54e Fix up a few little things after r29065. If we're calculating the autosave
filename in a different way, we need to make sure we always do it the same
way. Makes more sense to do this in Buffer anyway.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29073 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:13:46 +00:00
Vincent van Ravesteijn
4ec167330f Store the autosave file in the default document path as long as the document is 'unnamed'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29065 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 20:07:43 +00:00
Richard Heck
46c5596462 Add a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29056 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 16:04:45 +00:00
Jürgen Spitzmüller
49fdaa8507 Buffer.cpp:
- re-assign a master's children if a child was reloaded (bug 5873)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29046 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:07:53 +00:00
Richard Heck
c8d03a4d81 Fix bug 5859.
http://www.lyx.org/trac/ticket/5859



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29037 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 00:44:33 +00:00
Jean-Marc Lasgouttes
6c422712e1 Extend the branch-(de)activate functions to work without a parameter. In
this case, when the cursor is on a branch inset (using the AtPoint mechanism)
the branch to which the branch inset belongs will be (de)activated.

This functionality can now be used through the branch inset context menu



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 09:38:07 +00:00