]> git.lyx.org Git - lyx.git/log
lyx.git
14 years agogcc compil fix.
Abdelrazak Younes [Sun, 4 Oct 2009 22:40:00 +0000 (22:40 +0000)]
gcc compil fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31527 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agotypo
Pavel Sanda [Sun, 4 Oct 2009 21:29:56 +0000 (21:29 +0000)]
typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31524 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCode simplification.
Abdelrazak Younes [Sun, 4 Oct 2009 21:29:37 +0000 (21:29 +0000)]
Code simplification.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31523 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAvoid indirection.
Abdelrazak Younes [Sun, 4 Oct 2009 21:23:22 +0000 (21:23 +0000)]
Avoid indirection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31521 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoRemove dead code and associated comments. This encoded_last_key member was never...
Abdelrazak Younes [Sun, 4 Oct 2009 21:09:39 +0000 (21:09 +0000)]
Remove dead code and associated comments. This encoded_last_key member was never used.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31520 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agosmall LFUN status cleanups.
Abdelrazak Younes [Sun, 4 Oct 2009 21:03:37 +0000 (21:03 +0000)]
small LFUN status cleanups.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31519 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer all keyboard related code and actions from LyXFunc to GuiApplication. Part...
Abdelrazak Younes [Sun, 4 Oct 2009 20:58:20 +0000 (20:58 +0000)]
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

14 years agoTypo
Pavel Sanda [Sun, 4 Oct 2009 15:58:46 +0000 (15:58 +0000)]
Typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31516 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6258: LyX incorrectly interprets tetex warnings as errors.
Enrico Forestieri [Sun, 4 Oct 2009 15:23:17 +0000 (15:23 +0000)]
Fix bug #6258: LyX incorrectly interprets tetex warnings as errors.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31514 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* GuiView.cpp (reloadBuffer):
Jürgen Spitzmüller [Sun, 4 Oct 2009 14:35:12 +0000 (14:35 +0000)]
* GuiView.cpp (reloadBuffer):
- adjust r31510 to prevent null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31513 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* GuiView.cpp (reloadBuffer):
Jürgen Spitzmüller [Sun, 4 Oct 2009 14:21:51 +0000 (14:21 +0000)]
* GuiView.cpp (reloadBuffer):
- make sure a child is re-allocated to its master after reloading (bug 6233).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31510 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* New layout files for Inderscience journals, contributed by Koji Yokota.
Jürgen Spitzmüller [Sun, 4 Oct 2009 12:54:59 +0000 (12:54 +0000)]
* New layout files for Inderscience journals, contributed by Koji Yokota.
  The old layout file is marked deprecated.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31506 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agotypo
Pavel Sanda [Sat, 3 Oct 2009 23:53:47 +0000 (23:53 +0000)]
typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31498 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoNext patch for keystest from John McCabe-Dansted.
Pavel Sanda [Sat, 3 Oct 2009 23:07:44 +0000 (23:07 +0000)]
Next patch for keystest from John McCabe-Dansted.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg154502.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31495 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMove actOnUpdatedPrefs() to LyXRC.
Abdelrazak Younes [Sat, 3 Oct 2009 19:37:29 +0000 (19:37 +0000)]
Move actOnUpdatedPrefs() to LyXRC.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31494 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCleanups:
Abdelrazak Younes [Sat, 3 Oct 2009 19:30:48 +0000 (19:30 +0000)]
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

14 years agoMove Undo::beginUndoGroup() and Undo::endUndoGroup() calls to where they are used...
Abdelrazak Younes [Sat, 3 Oct 2009 19:12:21 +0000 (19:12 +0000)]
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

14 years agoWe cannot use a static int as there are usually multiple InsetText in a same document.
Abdelrazak Younes [Fri, 2 Oct 2009 23:13:19 +0000 (23:13 +0000)]
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

14 years agofix bug #6249: optional argument of \bibitem is not imported correctly by tex2lyx
Jean-Marc Lasgouttes [Thu, 1 Oct 2009 09:58:53 +0000 (09:58 +0000)]
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

14 years agoFix crash noticed by Bennett:
Abdelrazak Younes [Wed, 30 Sep 2009 14:30:16 +0000 (14:30 +0000)]
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

14 years agoFix gcc4.4 warnings.
Abdelrazak Younes [Wed, 30 Sep 2009 13:50:07 +0000 (13:50 +0000)]
Fix gcc4.4 warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31485 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoremove indirection from LyXView::viewStatusMessage().
Abdelrazak Younes [Wed, 30 Sep 2009 07:40:27 +0000 (07:40 +0000)]
remove indirection from LyXView::viewStatusMessage().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31484 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMac compil fix, sorry Bennett.
Abdelrazak Younes [Mon, 28 Sep 2009 19:19:02 +0000 (19:19 +0000)]
Mac compil fix, sorry Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31481 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* add modules to do equation/figure/table numbering sectionwise.
Jürgen Spitzmüller [Mon, 28 Sep 2009 11:06:53 +0000 (11:06 +0000)]
* add modules to do equation/figure/table numbering sectionwise.
  Use these modules in the AMS classes (instead of preamble hardcoding).

This is bug 6123.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31475 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6246: InsetMathKern is broken
Enrico Forestieri [Sun, 27 Sep 2009 17:29:01 +0000 (17:29 +0000)]
Fix bug #6246: InsetMathKern is broken

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31474 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Remove GuiView->BufferView->GuiView indirection.
Abdelrazak Younes [Sun, 27 Sep 2009 10:36:24 +0000 (10:36 +0000)]
* 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

14 years agoTransfer LFUN_INSET_APPLY from GuiView to BufferView.
Abdelrazak Younes [Sun, 27 Sep 2009 10:29:13 +0000 (10:29 +0000)]
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

14 years agoLyXFunc::dispatch(): don't use a buffer pointer set at the beginning of the method...
Abdelrazak Younes [Sat, 26 Sep 2009 18:10:28 +0000 (18:10 +0000)]
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

14 years agoGet rid of some unneeded use of LyXView in LyXFunc::dispatch().
Abdelrazak Younes [Sat, 26 Sep 2009 17:39:19 +0000 (17:39 +0000)]
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

14 years agoTransfer LFUN_CITATION_INSERT to BufferView
Abdelrazak Younes [Sat, 26 Sep 2009 17:30:29 +0000 (17:30 +0000)]
Transfer LFUN_CITATION_INSERT to BufferView

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31469 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer LFUN_DIALOG_SHOW_NEW_INSET to BufferView and put InsetCommand related code...
Abdelrazak Younes [Sat, 26 Sep 2009 17:19:18 +0000 (17:19 +0000)]
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

14 years agoFix FindAndReplace dialog for Qt < 4.4.0.
Enrico Forestieri [Thu, 24 Sep 2009 14:28:14 +0000 (14:28 +0000)]
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

14 years agoFix doxy.
Richard Heck [Thu, 24 Sep 2009 11:58:09 +0000 (11:58 +0000)]
Fix doxy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31462 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoKornel's gcc compil fix.
Abdelrazak Younes [Thu, 24 Sep 2009 07:20:18 +0000 (07:20 +0000)]
Kornel's gcc compil fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31460 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoHeader cleanup.
Abdelrazak Younes [Wed, 23 Sep 2009 19:53:37 +0000 (19:53 +0000)]
Header cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31459 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoLyXView: make it a pure virtual interface.
Abdelrazak Younes [Wed, 23 Sep 2009 19:51:55 +0000 (19:51 +0000)]
LyXView: make it a pure virtual interface.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31458 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoLyXView: Remove unneeded interface.
Abdelrazak Younes [Wed, 23 Sep 2009 19:49:36 +0000 (19:49 +0000)]
LyXView: Remove unneeded interface.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31457 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Transfer LFUN_SERVER_GOTO_FILE_ROW to GuiView and clean it up a bit.
Abdelrazak Younes [Wed, 23 Sep 2009 13:45:58 +0000 (13:45 +0000)]
* 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

14 years ago* LaTeXFeatures.cpp: fix whitespace issue after Greek character.
Jürgen Spitzmüller [Wed, 23 Sep 2009 10:32:22 +0000 (10:32 +0000)]
* 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

14 years agoGet rid of LyXView::hasFocus().
Abdelrazak Younes [Wed, 23 Sep 2009 09:17:11 +0000 (09:17 +0000)]
Get rid of LyXView::hasFocus().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31452 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer special getStatus() code from LyXFunc to BufferView, GuiView and GuiApplication.
Abdelrazak Younes [Wed, 23 Sep 2009 09:07:24 +0000 (09:07 +0000)]
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

14 years agoFix crash when switching window when previous window had no BufferView.
Abdelrazak Younes [Wed, 23 Sep 2009 07:14:20 +0000 (07:14 +0000)]
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

14 years ago- elsarticle.layout: add the stdlayouts, fixes #6189
Uwe Stöhr [Tue, 22 Sep 2009 23:13:46 +0000 (23:13 +0000)]
- elsarticle.layout: add the stdlayouts, fixes #6189
- elsarticle.lyx: add two theorems as example

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31448 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMove LFUN_BUFFER_WRITE_ALL status to GuiView with a FIXME. I believe this LFUN should...
Abdelrazak Younes [Tue, 22 Sep 2009 21:46:16 +0000 (21:46 +0000)]
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

14 years agoUI interaction for advanced f&r.
Tommaso Cucinotta [Tue, 22 Sep 2009 21:39:48 +0000 (21:39 +0000)]
UI interaction for advanced f&r.
Menu voice shows only, does not toggle. This allows for highlighting the keyboard short-cut in the menu, where the user expects to find it.
Toggling of dialog is instead shown in a toggling button on the toolbar (advanced search button besides the standard one). Icon is just draft.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31445 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agodeclaration cleanup.
Abdelrazak Younes [Tue, 22 Sep 2009 21:35:48 +0000 (21:35 +0000)]
declaration cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31444 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIntroduce Application::currentWindow() and get rid of lyx_view_ member in LyXFunc.
Abdelrazak Younes [Tue, 22 Sep 2009 21:25:32 +0000 (21:25 +0000)]
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

14 years agoReverting to previous behaviour (c-S-f shows advanced search dialog). It is more...
Tommaso Cucinotta [Tue, 22 Sep 2009 21:17:29 +0000 (21:17 +0000)]
Reverting to previous behaviour (c-S-f shows advanced search dialog). It is more usable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31442 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer LFUN_HELP_OPEN to GuiApplication. There's some code factorization to do...
Abdelrazak Younes [Tue, 22 Sep 2009 19:55:15 +0000 (19:55 +0000)]
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

14 years agoFix a bug when the language passed as an option to babel is ignored.
Jean-Marc Lasgouttes [Tue, 22 Sep 2009 13:23:36 +0000 (13:23 +0000)]
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

14 years agoadd "ansinew" as a synonym of LaTeX encoding "cp1252" (second part of #6142)
Jean-Marc Lasgouttes [Tue, 22 Sep 2009 13:05:43 +0000 (13:05 +0000)]
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

14 years agoFix FindAndReplace dialog for Qt 4.2
Enrico Forestieri [Tue, 22 Sep 2009 00:16:02 +0000 (00:16 +0000)]
Fix FindAndReplace dialog for Qt 4.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31438 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoPointer cleanup as suggested by Enrico who noticed a crash when closing a buffer...
Abdelrazak Younes [Mon, 21 Sep 2009 16:52:04 +0000 (16:52 +0000)]
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

14 years agoIntroduce a new LyXAction property 'NoInternal' to take care of LFUNs that should...
Abdelrazak Younes [Mon, 21 Sep 2009 12:36:22 +0000 (12:36 +0000)]
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

14 years agosmall cleanup, now that we require automake 1.8
Jean-Marc Lasgouttes [Mon, 21 Sep 2009 12:16:42 +0000 (12:16 +0000)]
small cleanup, now that we require automake 1.8

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31431 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix crash with LFUN_PARAGRAPH_GOTO in embedded work area.
Abdelrazak Younes [Mon, 21 Sep 2009 08:21:37 +0000 (08:21 +0000)]
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

14 years agoFix gcc warning.
Abdelrazak Younes [Mon, 21 Sep 2009 08:20:02 +0000 (08:20 +0000)]
Fix gcc warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31426 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoGuiPrefs:
Uwe Stöhr [Mon, 21 Sep 2009 00:44:43 +0000 (00:44 +0000)]
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

14 years agoinstaller: fix a bug
Uwe Stöhr [Mon, 21 Sep 2009 00:38:05 +0000 (00:38 +0000)]
installer: fix a bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31424 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCorrectly reinitialize ind when successive lines are to be indented.
Enrico Forestieri [Sun, 20 Sep 2009 22:58:55 +0000 (22:58 +0000)]
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

14 years agoStupid cut&paste error in previous revision. Sorry.
Abdelrazak Younes [Sun, 20 Sep 2009 21:58:35 +0000 (21:58 +0000)]
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

14 years agoTry to dispatch to document BufferView in case dispatch to current BufferView fails...
Abdelrazak Younes [Sun, 20 Sep 2009 21:41:21 +0000 (21:41 +0000)]
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

14 years agoKornel's gcc compil fix.
Abdelrazak Younes [Sun, 20 Sep 2009 19:37:26 +0000 (19:37 +0000)]
Kornel's gcc compil fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31418 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agosvglobal3.layout:
Uwe Stöhr [Sun, 20 Sep 2009 18:12:53 +0000 (18:12 +0000)]
svglobal3.layout:
 - major overhaul for version 3.2 that has to be used since 2007
 - remove wrong document class option, fixes first part of #6198
svjour.inc:
 - remove style "subparagraph" that doesn't exist, fixes second part of #6198
 - simplifications
svjour3.lyx: new template file for articles in journals published by Springer (It is the LyX implementation of the  template.tex file provided by svjour version 3.2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31417 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agorecipebook.layout: remove wrong definitions of the side number and remove doubled...
Uwe Stöhr [Sun, 20 Sep 2009 14:14:15 +0000 (14:14 +0000)]
recipebook.layout: remove wrong definitions of the side number and remove doubled statement about tocdepth and secnumdepth
Jürgen, OK for branch too?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31413 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Move LFUN_TEXTCLASS_* and LFUN_TEXTCLASS_* to BufferView. This is a bit problematic...
Abdelrazak Younes [Sat, 19 Sep 2009 20:56:12 +0000 (20:56 +0000)]
* 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

14 years agomove LFUN_BUFFER_PARAMS_APPLY to BufferView. I needed to make LyXFunc::updateLayout...
Abdelrazak Younes [Sat, 19 Sep 2009 17:56:53 +0000 (17:56 +0000)]
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

14 years agoMove LFUN_KEYMAP_* to BufferView.
Abdelrazak Younes [Sat, 19 Sep 2009 16:59:36 +0000 (16:59 +0000)]
Move LFUN_KEYMAP_* to BufferView.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31410 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Move LFUN_BUFFER_CHILD_OPEN to GuiView.
Abdelrazak Younes [Sat, 19 Sep 2009 16:49:31 +0000 (16:49 +0000)]
* 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

14 years agoFix bug #6215 (spotted by Vincent).
Enrico Forestieri [Sat, 19 Sep 2009 16:15:09 +0000 (16:15 +0000)]
Fix bug #6215 (spotted by Vincent).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31408 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoLyXView: remove closeBuffer() and closeBufferAll() pure virtual interfaces
Abdelrazak Younes [Sat, 19 Sep 2009 16:14:03 +0000 (16:14 +0000)]
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

14 years agode.po: resolve some shortcut clashes
Uwe Stöhr [Sat, 19 Sep 2009 15:26:11 +0000 (15:26 +0000)]
de.po: resolve some shortcut clashes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31405 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoSpanish Math.lyx: translation updates by Ignacio
Uwe Stöhr [Sat, 19 Sep 2009 15:14:37 +0000 (15:14 +0000)]
Spanish Math.lyx: translation updates by Ignacio

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31403 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agode.po: some translations by Hartmut and me
Uwe Stöhr [Sat, 19 Sep 2009 15:02:30 +0000 (15:02 +0000)]
de.po: some translations by Hartmut and me

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31402 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix gcc compile bug... weird...
Abdelrazak Younes [Sat, 19 Sep 2009 14:42:07 +0000 (14:42 +0000)]
Fix gcc compile bug...  weird...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31401 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Move LFUN_BUFFER_CLOSE and LFUN_BUFFER_CLOSE_ALL to GuiView.
Abdelrazak Younes [Sat, 19 Sep 2009 14:34:46 +0000 (14:34 +0000)]
* 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

14 years agoMove LFUN_BUFFER_LANGUAGE to Buffer and enables it only when the document is not...
Abdelrazak Younes [Sat, 19 Sep 2009 14:20:05 +0000 (14:20 +0000)]
Move LFUN_BUFFER_LANGUAGE to Buffer and enables it only when the document is not read-only.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31399 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* Move Buffer specific LFUNs to Buffer::dispatch() and Buffer::getStatus().
Abdelrazak Younes [Sat, 19 Sep 2009 14:05:52 +0000 (14:05 +0000)]
* Move Buffer specific LFUNs to Buffer::dispatch() and Buffer::getStatus().
There is a FIXME in there that says that if some LFUN need to be dispatched even if the Buffer is internal then we should add some code. But I couldn't find any for now.
* Move LFUN_BUFFER_IMPORT status to GuiView where it belongs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31398 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer LFUN_BUFFER_TOGGLE_READ_ONLY to Buffer.
Abdelrazak Younes [Sat, 19 Sep 2009 11:59:39 +0000 (11:59 +0000)]
Transfer LFUN_BUFFER_TOGGLE_READ_ONLY to Buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31397 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTransfer completely LFUN_COMMAND_EXECUTE and LFUN_MESSAGE to GuiView.
Abdelrazak Younes [Sat, 19 Sep 2009 11:54:23 +0000 (11:54 +0000)]
Transfer completely LFUN_COMMAND_EXECUTE and LFUN_MESSAGE to GuiView.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31396 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIt appears that somewhere along the way, backing up originals when saving
Richard Heck [Fri, 18 Sep 2009 16:44:20 +0000 (16:44 +0000)]
It appears that somewhere along the way, backing up originals when saving
got conflated with autosaving, with the result that it became impossible to
disable autosaving, as reported on the user list. This patch disentangles
the two again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31395 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMath.lyx: revision of appendix A, symbol for the Fourier translation added
Uwe Stöhr [Thu, 17 Sep 2009 02:06:13 +0000 (02:06 +0000)]
Math.lyx: revision of appendix A, symbol for the Fourier translation added

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31394 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoProperly reset the stream encoding after an environment. Fixes bug #6216.
Enrico Forestieri [Wed, 16 Sep 2009 20:50:40 +0000 (20:50 +0000)]
Properly reset the stream encoding after an environment. Fixes bug #6216.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31392 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoConstify.
Enrico Forestieri [Sun, 13 Sep 2009 18:12:11 +0000 (18:12 +0000)]
Constify.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31388 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix display of toolbar icons after r31255.
Enrico Forestieri [Sun, 13 Sep 2009 18:09:40 +0000 (18:09 +0000)]
Fix display of toolbar icons after r31255.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31387 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTake into account that Qt doesn't allow GUI operations outside the main thread.
Enrico Forestieri [Sun, 13 Sep 2009 15:07:28 +0000 (15:07 +0000)]
Take into account that Qt doesn't allow GUI operations outside the main thread.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31386 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6188: Assertion with multiple views of same document.
Vincent van Ravesteijn [Sat, 12 Sep 2009 23:50:03 +0000 (23:50 +0000)]
Fix bug #6188: Assertion with multiple views of same document.

We have to prevent that two views share the same ID, also when an id was supplied (because we can open the same document twice).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31381 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAdd a server_monitor.pro file.
Enrico Forestieri [Sat, 12 Sep 2009 21:50:46 +0000 (21:50 +0000)]
Add a server_monitor.pro file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31380 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix a crash when the modified uncompleted macro is a font changing command.
Enrico Forestieri [Sat, 12 Sep 2009 21:20:51 +0000 (21:20 +0000)]
Fix a crash when the modified uncompleted macro is a font changing command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31379 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMove LFUN status check to where they belong.
Abdelrazak Younes [Sat, 12 Sep 2009 21:12:24 +0000 (21:12 +0000)]
Move LFUN status check to where they belong.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31378 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agosome more buffer -> document buffer fixes.
Abdelrazak Younes [Sat, 12 Sep 2009 20:55:35 +0000 (20:55 +0000)]
some more buffer -> document buffer fixes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31377 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMove LFUN_BUFFER_RELOAD and LFUN_VC_* to GuiView. Try to use the document buffer...
Abdelrazak Younes [Sat, 12 Sep 2009 20:41:24 +0000 (20:41 +0000)]
Move LFUN_BUFFER_RELOAD and LFUN_VC_* to GuiView. Try to use  the document buffer correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31376 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoserver_monitor.h must be included last for msvc sake.
Enrico Forestieri [Sat, 12 Sep 2009 17:40:54 +0000 (17:40 +0000)]
server_monitor.h must be included last for msvc sake.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31375 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoSome more coding style fixes
Enrico Forestieri [Sat, 12 Sep 2009 16:20:37 +0000 (16:20 +0000)]
Some more coding style fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31374 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCoding style fixes
André Pönitz [Sat, 12 Sep 2009 09:38:26 +0000 (09:38 +0000)]
Coding style fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31373 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAdd a Qt version of the LyX server monitor program.
Enrico Forestieri [Sat, 12 Sep 2009 00:15:00 +0000 (00:15 +0000)]
Add a Qt version of the LyX server monitor program.
I tried to account for msvc based on the MS docs, but I cannot test it.
Apologies if it does not compile out of the box. It works with mingw.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31372 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoProperly reinitialise the OVERLAPPED structure (thanks Vincent!)
Enrico Forestieri [Fri, 11 Sep 2009 18:19:59 +0000 (18:19 +0000)]
Properly reinitialise the OVERLAPPED structure (thanks Vincent!)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31371 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAdded scrollbar that shows up when dialog too small, so all buttons are accessible.
Tommaso Cucinotta [Fri, 11 Sep 2009 17:54:21 +0000 (17:54 +0000)]
Added scrollbar that shows up when dialog too small, so all buttons are accessible.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31370 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFor some reason our shortcut ui is ignore-case while bind settings
Pavel Sanda [Fri, 11 Sep 2009 12:23:29 +0000 (12:23 +0000)]
For some reason our shortcut ui is ignore-case while bind settings
are case sensitive as far as BackTab is concerned.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31369 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agopowerdot-example.lyx: remove obsolete option to be able to compile the document with...
Uwe Stöhr [Thu, 10 Sep 2009 23:30:00 +0000 (23:30 +0000)]
powerdot-example.lyx: remove obsolete option to be able to compile the document with recent versions of powerdot

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31368 a592a061-630c-0410-9148-cb99ea01b6c8