Pavel Sanda
8fa5778221
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36380 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 21:00:34 +00:00
Vincent van Ravesteijn
7222ce9e31
set eol-style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36379 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 19:50:29 +00:00
Vincent van Ravesteijn
cc84d35ed4
Buffer::saveCheckSum() can be private.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36377 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 18:37:17 +00:00
Vincent van Ravesteijn
b3d7a10410
Call Buffer::saveCheckSum() from Buffer::setFileName(). This fixes the bug that if the user wants to overwrite an already existing file, LyX asks whether he want to overwrite the existing file _and_ whether he wants to overwrite an externally modified file.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36376 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:56:00 +00:00
Vincent van Ravesteijn
1f38406536
Buffer::setFileName() can now be private. The only way to change the filename of a buffer is to save it as a different file using Buffer::saveAs().
...
Change its parameter type to support::FileName for convenience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36375 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:50:33 +00:00
Vincent van Ravesteijn
4e394eb9c5
Remove unnecessary call to Buffer::setFileName. The buffer already knows its name.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36374 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:35:49 +00:00
Stephan Witt
89f5c437a8
Fix for the spellchecker dialog on OS X and Linux too
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36373 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 17:08:17 +00:00
Enrico Forestieri
6e41d3006d
Output end of math environments at the beginning of a new line,
...
as now this should be blank line safe.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36372 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 14:20:19 +00:00
Enrico Forestieri
8cd4ef18c8
Make sure that no blank line can (unintentionally) slip in when exporting
...
math to latex. This also fixes bug #6733 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36371 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 14:05:50 +00:00
Stephan Witt
7eff534df7
Fix for the spellchecker dialog on OS X
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36369 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 10:41:37 +00:00
Enrico Forestieri
04fb3f0d06
Remove a MathStream and HtmlStream member which is used nowhere.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36368 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 09:58:35 +00:00
Enrico Forestieri
4c1d8f5f96
Possible fix for the spellchecker dialog on OS X.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36367 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 09:30:20 +00:00
Uwe Stöhr
ff77ea6a63
SpellcheckerUi.ui: set button policy to maximum because the Ignore buttons were much to large, depending on the size of LyX's main window
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36363 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-18 04:32:32 +00:00
Richard Heck
0940cd77d4
Better way of doing these checks, suggested by Enrico.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36356 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:17:53 +00:00
Richard Heck
d764a97cf4
Hadn't see this empty_docstring() thing before. Very useful.
...
Add a comment to strfwd.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36355 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:11:33 +00:00
Richard Heck
67a4b590aa
We don't generally use "static" this way in the LyX code any more. (Just
...
a bit of cleanup while studying other things....)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36354 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:00:42 +00:00
Richard Heck
e54afe6367
Remove redundant code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36353 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:41:23 +00:00
Richard Heck
01ec30ca86
One more isalpha issue. Original routine also removed too much, I think.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36352 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:36:03 +00:00
Richard Heck
4bf281106b
Be more careful here about isalpha and isalnum. Per Enrico's suggestion,
...
we first do a range test, then check the status. I think this is right
in both cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36351 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:19:01 +00:00
Richard Heck
897404e34d
Simplify more of the tooltips. There will be some speed improvements
...
here, but not very noticeable, I think, as these ones aren't called by
the addToToc stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36347 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 17:25:22 +00:00
Richard Heck
4133f627b2
Simplify some of the tooltip stuff now.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36346 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:55:58 +00:00
Richard Heck
7d0b98a858
Optimize InsetText::toolTipText() a bit. The old version was doing
...
plaintext() on the entire inset, even though the tooltip is only going
to show the first few lines. This could make things slow when you had a
lot of branches, because this is called by InsetBranch::addToToc().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36345 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:35:37 +00:00
Vincent van Ravesteijn
a7629d2bfc
Squeeze warnings on msvc express 2010.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36344 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:15:01 +00:00
Vincent van Ravesteijn
710b7549ea
Remove unneeded include.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36343 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:14:26 +00:00
Vincent van Ravesteijn
e1398a66d8
Author: more cosmetics. Forgot these in previous commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36342 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:13:59 +00:00
Vincent van Ravesteijn
74a3786dc5
Author: cosmetics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36341 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 16:12:43 +00:00
Richard Heck
13fa0dda1b
Fixed bug #7037 . Don't need these updateBuffer() calls.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36339 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 15:54:51 +00:00
Vincent van Ravesteijn
c1a728d8f1
Buffer::moveAutosaveFile can be private.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36330 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 03:47:14 +00:00
Vincent van Ravesteijn
7bf7fabb13
Correct bug number and typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36329 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 03:22:37 +00:00
Vincent van Ravesteijn
c701342593
Reset the autosave timers also for the threaded case. This fixes the bug that autosave doesn't work in beta-1.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36328 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:27:02 +00:00
Vincent van Ravesteijn
ce0304e6f4
Buffer::getAutosaveFileName() can now be private as it should.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36327 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:25:12 +00:00
Vincent van Ravesteijn
ae852848fa
Let GuiViewPrivate::autosaveAndDestroy use Buffer::autoSave() and remove the now unneeded parameter filename.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36326 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:23:39 +00:00
Vincent van Ravesteijn
208acbc728
Generalize Buffer::autoSave() for both the threaded as the forked process call. Also move out the resetAutosaveTimers as this is the task of the frontend as the core shouldn't know about any timer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36325 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:18:12 +00:00
Vincent van Ravesteijn
a0916d4fef
Rename GuiViewPrivate::saveAndDestroy to autosaveAndDestroy (because that's what it actually does according to the return string).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36324 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:07:54 +00:00
Pavel Sanda
630f72ed6c
UI naming synchro.
...
Actually, I wonder how is this dialog triggered.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36321 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:39:44 +00:00
Pavel Sanda
29849a143c
tooltip
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36320 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:20:28 +00:00
Richard Heck
b8d207901b
Fix crash reported by Enrico. Thinko or something in r35856.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36317 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 18:26:21 +00:00
Jürgen Spitzmüller
1aa5a0d1f1
Introduce PolyglossiaName and PolyglossiaOpts.
...
Not yet functional.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36312 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 11:07:43 +00:00
Pavel Sanda
13d63e5ce6
ui tooltip
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36305 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-15 15:50:30 +00:00
Pavel Sanda
058c815515
Fix order of return value
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 23:23:20 +00:00
Vincent van Ravesteijn
ff8ac45920
Compile fix for windows for r36278.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 16:27:08 +00:00
Jürgen Spitzmüller
cc5dd37a2a
Introduce a new Language option "AsBabelOptions" that specifies whether a language requires to be passed to babel itself (instead of globally to the class).
...
This allows us to remove some ugly hardcoding of languages in the source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 10:35:35 +00:00
Jürgen Spitzmüller
12c7e7dde3
* add PreBabelPreamble to Language definition ( fixes #4786 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 09:54:24 +00:00
Pavel Sanda
4c952c612b
Clash of accelerators
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:28:24 +00:00
Pavel Sanda
b197c99449
This should be fixed.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36288 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:01:30 +00:00
Jürgen Spitzmüller
148f2d648c
The languages file rewrite.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 17:25:03 +00:00
Jürgen Spitzmüller
a85ae19bf8
* GuiView: puzzle-constructions like this will make proper translations impossible (and it was not even correct English).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 15:47:42 +00:00
Tommaso Cucinotta
d5eb8c0968
(finishing patch -- question was restored, but there were still problems)
...
Restore the wrap-around question when no more hits found while searching with Advanced Search.
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36279 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 12:02:04 +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
Tommaso Cucinotta
112246ae9f
Restore the wrap-around question when no more hits found while searching with Advanced Search.
...
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36277 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:35:37 +00:00