Commit Graph

179 Commits

Author SHA1 Message Date
Tommaso Cucinotta
79716cbcd0 Clean up word lists on exit. Not really a concrete issue, but just
get less "noise" when debugging for memory leaks.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39865 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:38:52 +00:00
Tommaso Cucinotta
eff76bd3ab Added -E option to specify export format and destination file-name (and export folder).
Addressing #4501.
See also http://comments.gmane.org/gmane.editors.lyx.devel/138329


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39678 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-15 01:07:49 +00:00
Abdelrazak Younes
850e4d80c0 Graphics cleanup: get rid of Previews.{h,cpp}
The PreviewLoader is created directly by Buffer on demand. The PreviewLoader cache was complex and unneeded because there is one and only one PreviewLoader per Buffer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39276 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 12:43:11 +00:00
Peter Kümmel
1af61e659c run in-place: don't speculate where the lyx binary is, search for it at the common places
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38753 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-14 12:26:11 +00:00
Kornel Benko
45b61c6ecf 1.) Corrected internal compilation for Libintl
2.) Changed cmake-files accordingly
Patch from Jean-Marc Lasgouttes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38606 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-06 19:24:54 +00:00
Peter Kümmel
97a5c0882d Messages::init(); needs Package. this fixes a crash on windows which presents parsing of the argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38139 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 22:18:21 +00:00
Peter Kümmel
b391929ece undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38136 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 21:38:52 +00:00
Peter Kümmel
774d215750 don't just crash when it couldn't find chkconfig.ltx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38134 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-29 20:53:53 +00:00
Pavel Sanda
f8d1586364 Glitch with new line breaking from Qt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37847 a592a061-630c-0410-9148-cb99ea01b6c8
2011-03-04 18:30:40 +00:00
Stephan Witt
9e16f14464 introduce the lyx_dir() of Package, automatically set LyXDir environment, correct the replaceEnvironmentPath() function (see #4177) and replace environment variables in path_prefix at runtime
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37326 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-25 21:10:49 +00:00
Richard Heck
0de73b8866 Don't try to convert any of the preference files except the user's own.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37243 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 15:54:51 +00:00
Richard Heck
eb353f1b58 Previous two commits did the wrong thing. This is right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37242 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 15:07:54 +00:00
Richard Heck
9c00df4112 Thanks, Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37240 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-17 14:59:59 +00:00
Pavel Sanda
3998065582 Follow Vincent's advice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 00:51:30 +00:00
Pavel Sanda
723160f7c0 String correction
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg164054.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36725 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-04 22:43:37 +00:00
Enrico Forestieri
22ffc93467 The "single instance" patch.
By default, if the lyxpipe is set up and working, loading of documents
is deferred to an already running instance. Note that an already running
instance is only used for loading, such that export from command line
still works as usual.

The default behavior can be changed through a preference setting, and,
whatever the default is, it can be overridden by command line options.
Unticking the "Single instance" check box in the preferences, LyX behaves
exactly as before the introduction of this feature.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:55:05 +00:00
Vincent van Ravesteijn
afa873dc5f Remove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFileNameFor and getEmergencyFileNamefor can be removed too. Last, the call to lyxvc.file_found_hook can now be centralized and can be given the correct parameter (d->filename instead of the name of the emergency/autosave file).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36145 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:21:01 +00:00
Vincent van Ravesteijn
75773f3c22 Use Buffer::ReadStatus as a return value for Buffer::loadLyXFile.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35818 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 10:18:42 +00:00
Richard Heck
2291614a6c Introduce a typedef for vector<Buffer *>. No change in behavior
anticipated.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35529 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 11:55:10 +00:00
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