Commit Graph

160 Commits

Author SHA1 Message Date
Stephan Witt
dec437fbac add cache of spell checker results to speed up native speller engine on macosx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35362 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 05:24:04 +00:00
Abdelrazak Younes
c3b1ff6229 revert r35282
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35290 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:38:48 +00:00
Abdelrazak Younes
857bc69012 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:37:40 +00:00
Abdelrazak Younes
22df620984 LyX::exec(): add an alert if sysdir not found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35282 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 09:08:49 +00:00
Peter Kümmel
ffec54c980 msvc stops on unused variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35254 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-01 14:18:32 +00:00
Stephan Witt
31dbbc43d9 #6848 correct load order of files to open on startup - author of patch: Punyashloka Biswal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35182 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-21 16:49:30 +00:00
Jean-Marc Lasgouttes
8a9d765739 Bug #6842, part II
Make sure that Package can be initialized several time.s
Make sure that Package is not used before being initialized.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35080 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 11:42:27 +00:00
Jean-Marc Lasgouttes
547773f0d0 set locale correctly before parsing command line (bug #6842)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35078 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 11:18:04 +00:00
Enrico Forestieri
161af56f4e By default, overwrite the main file on export, but allow changing default
behavior through the environment variable LYX_FORCE_OVERWRITE.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34946 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 17:55:46 +00:00
Stephan Witt
7b34b13b71 avoid LYX_PLATFORM_DARWIN10 macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34861 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-11 21:30:47 +00:00
Stephan Witt
f4aedbe672 correct ifdef+defined construct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 10:39:24 +00:00
Stephan Witt
0a326e90f7 provide native spell checker for Mac OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-07 17:40:50 +00:00
Uwe Stöhr
a0eea97e44 LyX.cpp: clarify comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34686 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-19 14:24:38 +00:00
Vincent van Ravesteijn
2ebf8cdc6c Fix bug #6685: Assertion when quitting LyX with a Reference List in the Advanced Find Dialog
During the deletion of pimpl_, one don't want the assert LASSERT(singleton_) to fire in one of the the***() functions. In this case it is theBufferList(), which is needed by the dtor of BibItem?.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-07 22:12:22 +00:00
Peter Kümmel
61b2bd5e7f Using "using namespace std" with msvc10 makes also std::tr1::bind visible and generates conflicts with boost::bind.
Solution: don't use boost::bind for msvc10 (could also be extended  to several GCC versions)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34257 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-22 11:16:58 +00:00
Pavel Sanda
62ca7f3ae5 Proper camel case for FileName.absFilename
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 01:19:09 +00:00
Enrico Forestieri
cb6208f8e5 Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34228 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-20 11:09:51 +00:00
Enrico Forestieri
b121ac47c6 Introduce a switch for overwriting files during a batch export.
Using "-f all", or simply "-f", all files are silently overwritten.
Using "-f main", only the main file is overwritten.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34224 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-19 23:53:23 +00:00
Richard Heck
f9fa189e02 Grant a long-standing wish of Lars's: LyX now functions even if we have
no text classes for some reason (e.g., a corrupt textclass.lst). We
still give the user a chance to reconfigure (Bo's idea).

I wonder if we still really need to "restart LyX to make use of any
updated document class specifications". What would happen if we just
reloaded?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34081 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 17:02:44 +00:00
Peter Kümmel
4b99d089cb fix typo, tabs for indentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:51:41 +00:00
Peter Kümmel
c98745c081 try to make a gui message when lyx crashes, don't crash again on windows (use exit()).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:44:41 +00:00
Pavel Sanda
543571fd03 Move command line arg --batch to -batch.
Things are still bit inconsistent due to the existence of
additional -- switches, but the correct fix is not so easy.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34005 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 15:18:38 +00:00
Richard Heck
29c93f87e6 Make these const, too. I mean, why not?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 21:31:17 +00:00
Enrico Forestieri
0f8929d5d1 Fix command line parsing and allow unicode arguments for tex2lyx on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33723 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 01:18:39 +00:00
Enrico Forestieri
3fce202517 On Windows, allow loading documents with non-ascii chars in their path
also from command line and from explorer windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33561 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-25 00:20:31 +00:00
Abdelrazak Younes
377cdd5f6c Transfer LyXfunc code to GuiApplication::dispatch() and getStatus(). Now
a lot of simplification is possible. Except some instability period...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 16:11:13 +00:00
Jean-Marc Lasgouttes
fe9a43f44b Add DispatchResult argument to BufferView::dispatch, and remove explicit updates in there.
Split LyXFunc::dispatch into a wrapper that does the actual screen updates and
a worker method that updates a DispatchResult object.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33226 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-25 15:14:41 +00:00
Jürgen Spitzmüller
7746747506 * add support for the enchant spell checker (bug 6226).
SCons might be broken.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33157 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-22 15:26:38 +00:00
Peter Kümmel
75f6ced64b no stl includes in debug.h
change Debug API

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32675 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 15:09:49 +00:00
Abdelrazak Younes
1cd45c2ae1 Transfer all keyboard related code and actions from LyXFunc to GuiApplication. Part of it should be transfered later to GuiView and BufferView. This code can probably be simplified a lot...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31518 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 20:58:20 +00:00
Richard Heck
ea0501025e s/moduleList/theModuleList/ for style purposes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31036 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 15:37:34 +00:00
Enrico Forestieri
50fa5f24d3 Move OS specific code to proper place. Also make sure that no other
handler functions are called after processing shutdown events.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 00:42:45 +00:00
Enrico Forestieri
945dad51bf Fix the dataloss problem when shutting down Windows (part of bug #5525).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31006 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-13 13:55:26 +00:00
Abdelrazak Younes
886e9dbfab Fix memory leak.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30932 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 14:07:44 +00:00
Abdelrazak Younes
1a61d10740 Delay Spellchecker intanciation until first use.
This also solve the problem of the rc entry that was not acknowledged.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30931 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 14:04:39 +00:00
Abdelrazak Younes
21daab357b Minimal support for hunspell. Spellchecking works but not suggestion, at least on Win/MSVC.
There are two new rc preference:

* spellchecker: can now be "aspell" or "hunspell", this is selectable in the SpellChecker preference dialog
* hunspelldir_path: needed for hunspell dictionaries which are defined to be in a fixed location. This can be modified in the path preference dialog.

The SpellChecker classes could be instanciated on the fly whenerver they are needed if we want that.

Please test and help me finish this hunspell integration...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30927 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-08 17:05:31 +00:00
Abdelrazak Younes
0d626b0008 * Rename HunspellSpellChecker to HunspellChecker and ASpell to AspellChecker for consistency.
* Cleanup a bit associated CMakefile 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30813 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-01 17:24:13 +00:00
Richard Heck
2d632d0c65 Forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30642 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 13:56:19 +00:00
Jürgen Spitzmüller
668b4d8fc1 * LyX.cpp: add missing line break; spotted by Jean-Pierre Chrétien.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30367 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-05 08:37:44 +00:00
Vincent van Ravesteijn
a52cac0476 Fix part 2 of bug #5758: Crash when closing the dosbox from which LyX was started.
A problem occurs when we write the ConverterCache index file. This action is instantiated in the destructor of the 'static ConverterCache' object. The use of QFileInfo at that point leads to a crash.

It is maybe not a good idea at all to put part of the functionality in a destructor, especially not when we do not delete the object ourselves and when this functionality uses external libraries etc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29602 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 00:03:14 +00:00
Richard Heck
2f7260d3b4 The --batch patch.
Introduces a "--batch" command line flag, so you can do this:
	lyx --batch -x "buffer-print printer default dvips" myfile.lyx
The "--batch" flag basically means: no gui.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29126 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 12:13:33 +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
Abdelrazak Younes
34bddccb13 * Singleton-ify the used SpellChecker object.
* Simplify Aspell construction as the object is capable of supporting multiple languages at the same time.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28974 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 21:18:16 +00:00
Pavel Sanda
17cb2e992b Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28617 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 00:13:47 +00:00
Pavel Sanda
5d2456ad90 Add dbg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28616 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 00:06:20 +00:00
Richard Heck
00f5adcfe3 Rename a routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 17:24:37 +00:00
André Pönitz
20d5148dca move ColorSet to a header of its own to reduce #include dependencies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 23:30:24 +00:00
André Pönitz
f1cba8ff64 more latin1..utf8 schanges. all of src/* should be utf8 now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
Stefan Schimanski
def9ca797c * style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27265 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 14:07:42 +00:00
André Pönitz
26fafc111d typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-11 16:08:42 +00:00