Commit Graph

147 Commits

Author SHA1 Message Date
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
Abdelrazak Younes
a774b2ce7a MSVC Compil fix: Finish JMarc's work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 14:53:25 +00:00
Jean-Marc Lasgouttes
90101f72b1 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26831 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 14:48:30 +00:00
Jean-Marc Lasgouttes
2759268092 X dependency cleanup (1/3)
Move the special handling of -geometry command option from LyX to GuiApplication, 
where it belongs


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26823 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:19:34 +00:00
Abdelrazak Younes
8085efd83a Some locale related cleanup. JMarc, please when you come back, review this. It is working fine in all my testings though.
* GuiApplication: delay locale loading until setGuiLanguage() is called.

* Messages: memorize default locale for current environment.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-28 11:26:46 +00:00
Abdelrazak Younes
7b1fec8e1e r25604: better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:49:08 +00:00
Abdelrazak Younes
a9ed4635be Fix Mac gcc warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 11:46:53 +00:00
Abdelrazak Younes
10c46e5db8 Fix potential crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 10:14:59 +00:00
Abdelrazak Younes
e8aa9311f4 potentially fix lyxrc.dist isssue with \gui_language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 09:57:37 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
647ac4a221 safeguards:
- move Previews singleton to LyX
- LyX.cpp: set singleton to zero at destruction.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25594 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 07:16:00 +00:00
Abdelrazak Younes
f04afc6585 reverting the safeguard in 25591. There is an awful lot of things to clean up before we can add this safeguard!!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:22:41 +00:00
Abdelrazak Younes
10c7f636a6 Add safeguard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 06:17:52 +00:00
Abdelrazak Younes
d748af0299 Add a preference combo box for the preferred user interface language. The rc variable gui_language now require a language name and not its code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 13:32:27 +00:00