Abdelrazak Younes
f47cfcf48b
Cleanups:
...
Remove dead code and make sendDispatchMessage() a local function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31493 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-03 19:30:48 +00:00
Abdelrazak Younes
d38ca04ff7
Move Undo::beginUndoGroup() and Undo::endUndoGroup() calls to where they are used and necessary, hopefully.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-03 19:12:21 +00:00
Abdelrazak Younes
116c7c34c3
We cannot use a static int as there are usually multiple InsetText in a same document.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-02 23:13:19 +00:00
Jean-Marc Lasgouttes
7a52f14bc0
fix bug #6249 : optional argument of \bibitem is not imported correctly by tex2lyx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31489 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-01 09:58:53 +00:00
Abdelrazak Younes
5c2dad7029
Fix crash noticed by Bennett:
...
Open new document; LyX > Preferences; change
anything; click on "Save" button --> Crash. Backtrace is below.
Once again, this does not happen when no document is open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31486 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-30 14:30:16 +00:00
Abdelrazak Younes
da47dc051e
Fix gcc4.4 warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-30 13:50:07 +00:00
Abdelrazak Younes
f8b8f20316
remove indirection from LyXView::viewStatusMessage().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31484 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-30 07:40:27 +00:00
Abdelrazak Younes
ab8e0596a9
Mac compil fix, sorry Bennett.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31481 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-28 19:19:02 +00:00
Enrico Forestieri
eb065995b1
Fix bug #6246 : InsetMathKern is broken
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31474 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-27 17:29:01 +00:00
Abdelrazak Younes
a74e1b096c
* Remove GuiView->BufferView->GuiView indirection.
...
* add a FIXME to LFUN_DIALOG_UPDATE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31473 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-27 10:36:24 +00:00
Abdelrazak Younes
401b223dfb
Transfer LFUN_INSET_APPLY from GuiView to BufferView.
...
The list of dialog edited inset is now stored in BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31472 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-27 10:29:13 +00:00
Abdelrazak Younes
dffe3ee218
LyXFunc::dispatch(): don't use a buffer pointer set at the beginning of the method as this one could change depending of the LFUN. Instead get the proper Buffer in all cases.
...
The side effect of this patch is that the undo/redo action are properly recorded only for document Buffers. But as this was a mess already with embedded work area. We might try to properly implement undo/redo for embedded work area later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31471 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-26 18:10:28 +00:00
Abdelrazak Younes
16c5138508
Get rid of some unneeded use of LyXView in LyXFunc::dispatch().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31470 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-26 17:39:19 +00:00
Abdelrazak Younes
e80a46ba4f
Transfer LFUN_CITATION_INSERT to BufferView
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31469 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-26 17:30:29 +00:00
Abdelrazak Younes
09f96833bf
Transfer LFUN_DIALOG_SHOW_NEW_INSET to BufferView and put InsetCommand related code to new function decodeInsetParam() in InsetCommand.cpp.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31468 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-26 17:19:18 +00:00
Enrico Forestieri
3f371011f9
Fix FindAndReplace dialog for Qt < 4.4.0.
...
For reasons unknown to me, this also fixes the scroll bar issue!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31463 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 14:28:14 +00:00
Richard Heck
fca8ba713f
Fix doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31462 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 11:58:09 +00:00
Abdelrazak Younes
966da4da13
Kornel's gcc compil fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31460 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 07:20:18 +00:00
Abdelrazak Younes
b20e92dd24
Header cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31459 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 19:53:37 +00:00
Abdelrazak Younes
bfa58b211f
LyXView: make it a pure virtual interface.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31458 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 19:51:55 +00:00
Abdelrazak Younes
783ba31467
LyXView: Remove unneeded interface.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31457 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 19:49:36 +00:00
Abdelrazak Younes
66dc054c6f
* Transfer LFUN_SERVER_GOTO_FILE_ROW to GuiView and clean it up a bit.
...
* Add a recenter() call to BufferView::setCursorFromRow() in order to get the screen centered around the found position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31455 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 13:45:58 +00:00
Jürgen Spitzmüller
94fb836258
* LaTeXFeatures.cpp: fix whitespace issue after Greek character.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31453 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 10:32:22 +00:00
Abdelrazak Younes
414571cf68
Get rid of LyXView::hasFocus().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31452 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 09:17:11 +00:00
Abdelrazak Younes
6e800efcaf
Transfer special getStatus() code from LyXFunc to BufferView, GuiView and GuiApplication.
...
I tested this on Windows and Linux/X11 but not on Mac so...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31451 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 09:07:24 +00:00
Abdelrazak Younes
1069dfa7a0
Fix crash when switching window when previous window had no BufferView.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 07:14:20 +00:00
Abdelrazak Younes
b379d68d21
Move LFUN_BUFFER_WRITE_ALL status to GuiView with a FIXME. I believe this LFUN should go to GuiApplication.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31447 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 21:46:16 +00:00
Abdelrazak Younes
cf5cd096e4
declaration cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31444 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 21:35:48 +00:00
Abdelrazak Younes
a3adb3a21b
Introduce Application::currentWindow() and get rid of lyx_view_ member in LyXFunc.
...
This commit also move the Selection saving to QEvent::WindowActivate in GuiView.cpp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31443 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 21:25:32 +00:00
Abdelrazak Younes
a6201e6d63
Transfer LFUN_HELP_OPEN to GuiApplication. There's some code factorization to do in there...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31441 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 19:55:15 +00:00
Jean-Marc Lasgouttes
d87a67d8dc
Fix a bug when the language passed as an option to babel is ignored.
...
This can be seen by trying out the document attached to ticket #6142 .
The problem was that handle_opt() is not used only to parse languages,
and thus setting a lang-related bool in there is asking for trouble.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31440 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 13:23:36 +00:00
Jean-Marc Lasgouttes
18b808e67c
add "ansinew" as a synonym of LaTeX encoding "cp1252" (second part of #6142 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31439 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 13:05:43 +00:00
Enrico Forestieri
db024c6c79
Fix FindAndReplace dialog for Qt 4.2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31438 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 00:16:02 +00:00
Abdelrazak Younes
b1910bbcf4
Pointer cleanup as suggested by Enrico who noticed a crash when closing a buffer on Cgwin.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31436 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 16:52:04 +00:00
Abdelrazak Younes
d5d3ccc0fa
Introduce a new LyXAction property 'NoInternal' to take care of LFUNs that should not be applied to internal Buffers and use that in BufferView.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 12:36:22 +00:00
Abdelrazak Younes
0edc2c8637
Fix crash with LFUN_PARAGRAPH_GOTO in embedded work area.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 08:21:37 +00:00
Abdelrazak Younes
57a531e970
Fix gcc warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 08:20:02 +00:00
Uwe Stöhr
cb71b8a8de
GuiPrefs:
...
- implement an UI to specify the size of InstantPreview images
- change the default size to 1.0 because we've got many complaints that the former default size of 0.9 was too low
Both changes fix #6176 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 00:44:43 +00:00
Enrico Forestieri
3f5c1bb73a
Correctly reinitialize ind when successive lines are to be indented.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 22:58:55 +00:00
Abdelrazak Younes
1e0f34182e
Stupid cut&paste error in previous revision. Sorry.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31420 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 21:58:35 +00:00
Abdelrazak Younes
53797b653a
Try to dispatch to document BufferView in case dispatch to current BufferView fails. This is needed for the LFUNs introduced in r31412
...
URL: http://www.lyx.org/trac/changeset/31412
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 21:41:21 +00:00
Abdelrazak Younes
f10a5043a9
Kornel's gcc compil fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31418 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 19:37:26 +00:00
Abdelrazak Younes
16a82d6f97
* Move LFUN_TEXTCLASS_* and LFUN_TEXTCLASS_* to BufferView. This is a bit problematic because we don't check is this is a document BufferView or not for these LFUNs. We probably have to dispatch both to currentBufferView() and, if that fails, to documentBufferView(); same as we do know for current Buffer and document Buffer. Ideally those LFUN should go to Buffer as they operate on the full Buffer and the cursor is only needed either for an Undo record or to restore a cursor position. But we don't know how to do that inside Buffer of course.
...
* I transferred local function loadLayoutFile() in LyXFunc.cpp to a LayoutFileList::load().
Richard, as I am not into this layout thing, please check that these LFUNs still operate correctly (except from an embedded work area of course).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31412 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 20:56:12 +00:00
Abdelrazak Younes
4d7ed2056b
move LFUN_BUFFER_PARAMS_APPLY to BufferView. I needed to make LyXFunc::updateLayout() public but this method is misplaced there.
...
LFUN_BUFFER_PARAMS_APPLY has now a status (disabled if read-only).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31411 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 17:56:53 +00:00
Abdelrazak Younes
1d5345289c
Move LFUN_KEYMAP_* to BufferView.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:59:36 +00:00
Abdelrazak Younes
c1696ccae3
* Move LFUN_BUFFER_CHILD_OPEN to GuiView.
...
* GuiView:openChildDocument(): New helper method, I removed the comment about bug 3970 because it doesn't apply anymore with this change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:49:31 +00:00
Enrico Forestieri
a55a0b8f2d
Fix bug #6215 (spotted by Vincent).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31408 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:15:09 +00:00
Abdelrazak Younes
3f15969746
LyXView: remove closeBuffer() and closeBufferAll() pure virtual interfaces
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31407 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:14:03 +00:00
Abdelrazak Younes
898dbc2699
Fix gcc compile bug... weird...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31401 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:42:07 +00:00
Abdelrazak Younes
37f71fba12
* Move LFUN_BUFFER_CLOSE and LFUN_BUFFER_CLOSE_ALL to GuiView.
...
* Create a status for LFUN_BUFFER_CLOSE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31400 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:34:46 +00:00