]> git.lyx.org Git - lyx.git/log
lyx.git
16 years agoThis should be the last of the commits refactoring the InsetLayout code.
Richard Heck [Fri, 22 Feb 2008 16:15:21 +0000 (16:15 +0000)]
This should be the last of the commits refactoring the InsetLayout code.

This one just moves the Decoration enum into InsetLayout, changing the names
to avoid possible conflicts now that it is in the lyx namespace.

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

16 years agoSort table.
Richard Heck [Fri, 22 Feb 2008 16:12:36 +0000 (16:12 +0000)]
Sort table.

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

16 years ago* cosmetic
Stefan Schimanski [Fri, 22 Feb 2008 15:38:26 +0000 (15:38 +0000)]
* cosmetic

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

16 years ago* cosmetic
Stefan Schimanski [Fri, 22 Feb 2008 15:26:52 +0000 (15:26 +0000)]
* cosmetic

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

16 years ago* first step to proper RTL support of the completion. The cursor is still wrong.
Stefan Schimanski [Fri, 22 Feb 2008 14:05:27 +0000 (14:05 +0000)]
* first step to proper RTL support of the completion. The cursor is still wrong.

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

16 years ago* once is enough
Stefan Schimanski [Fri, 22 Feb 2008 14:05:06 +0000 (14:05 +0000)]
* once is enough

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

16 years agoText::setCursor(): make sure an update is asked if the current cursor is not visible.
Abdelrazak Younes [Fri, 22 Feb 2008 12:27:56 +0000 (12:27 +0000)]
Text::setCursor(): make sure an update is asked if the current cursor is not visible.

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

16 years agoText::dispatch(): Make sure the cursor is visible before doing anything.
Abdelrazak Younes [Fri, 22 Feb 2008 12:22:28 +0000 (12:22 +0000)]
Text::dispatch(): Make sure the cursor is visible before doing anything.

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

16 years agoFix this bug:
Abdelrazak Younes [Fri, 22 Feb 2008 11:07:41 +0000 (11:07 +0000)]
Fix this bug:
1. scroll a bit so that the cursor is not visible anymore
2. hit the keyboard arrow keys to move the cursor or type something

The problem was that TextMetrics::parMetric() automatically creates a new parmetrics on const access. This was needed in the old architecture but I don't think anymore.

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

16 years agodisable annoying debug messages
Jean-Marc Lasgouttes [Fri, 22 Feb 2008 10:30:46 +0000 (10:30 +0000)]
disable annoying debug messages

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

16 years agosort lyxrc keywords table
Jean-Marc Lasgouttes [Fri, 22 Feb 2008 10:25:12 +0000 (10:25 +0000)]
sort lyxrc keywords table

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

16 years agocompilation fix for tex2lyx
Jean-Marc Lasgouttes [Fri, 22 Feb 2008 10:16:18 +0000 (10:16 +0000)]
compilation fix for tex2lyx

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

16 years ago* no need for QStyleOptionViewItemV3
Stefan Schimanski [Fri, 22 Feb 2008 10:15:28 +0000 (10:15 +0000)]
* no need for QStyleOptionViewItemV3

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

16 years agoFix tex2lyx compilation.
Abdelrazak Younes [Fri, 22 Feb 2008 09:23:47 +0000 (09:23 +0000)]
Fix tex2lyx compilation.

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

16 years ago* stdlib-debug out of range fix
Stefan Schimanski [Fri, 22 Feb 2008 09:00:22 +0000 (09:00 +0000)]
* stdlib-debug out of range fix

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

16 years agoMore headers.
Richard Heck [Fri, 22 Feb 2008 03:39:10 +0000 (03:39 +0000)]
More headers.

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

16 years agoHeaders.
Richard Heck [Fri, 22 Feb 2008 03:34:03 +0000 (03:34 +0000)]
Headers.

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

16 years agoThis is the second commit in the process of making InsetLayout a real class.
Richard Heck [Fri, 22 Feb 2008 03:27:42 +0000 (03:27 +0000)]
This is the second commit in the process of making InsetLayout a real class.

Here, we move TextClass::readInsetLayout() to InsetLayout::read().

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

16 years agoThis is the first of a series of commits that will make InsetLayout a real class.
Richard Heck [Fri, 22 Feb 2008 02:32:52 +0000 (02:32 +0000)]
This is the first of a series of commits that will make InsetLayout a real class.

In this commit, we do the minimal amount of work necessary to protect our data.

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

16 years ago* typo
Stefan Schimanski [Thu, 21 Feb 2008 23:38:46 +0000 (23:38 +0000)]
* typo

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

16 years ago* Reduce compilation time by removing the shared_ptr (which is not
Stefan Schimanski [Thu, 21 Feb 2008 23:36:02 +0000 (23:36 +0000)]
* Reduce compilation time by removing the shared_ptr (which is not
  really important because the ownership of the CompletionLists is
  easy enough) and by removing the deque for the half finished
  favorites implemention in InsetMathNest. I think this fits better
  into the GuiCompleter anyway.

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

16 years agocompile fix
Abdelrazak Younes [Thu, 21 Feb 2008 22:39:46 +0000 (22:39 +0000)]
compile fix

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

16 years agoCosmetics.
Pavel Sanda [Thu, 21 Feb 2008 22:19:22 +0000 (22:19 +0000)]
Cosmetics.

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

16 years ago* Doxy (people really want to stop the time).
Pavel Sanda [Thu, 21 Feb 2008 21:16:31 +0000 (21:16 +0000)]
* Doxy (people really want to stop the time).

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

16 years agoCosmetics. And silence some warnings.
Richard Heck [Thu, 21 Feb 2008 20:04:17 +0000 (20:04 +0000)]
Cosmetics. And silence some warnings.

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

16 years ago* a MathMacro is like a normal InsetMathNest in folded mode. Hence it should also...
Stefan Schimanski [Thu, 21 Feb 2008 19:45:36 +0000 (19:45 +0000)]
* a MathMacro is like a normal InsetMathNest in folded mode. Hence it should also behave like that concerning completion.

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

16 years ago* add some space between math inset and popup. This should really come from the font...
Stefan Schimanski [Thu, 21 Feb 2008 19:45:05 +0000 (19:45 +0000)]
* add some space between math inset and popup. This should really come from the font maximal descent in fact.

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

16 years ago* show popup without delay even when the inline completion is just activated by expli...
Stefan Schimanski [Thu, 21 Feb 2008 19:44:28 +0000 (19:44 +0000)]
* show popup without delay even when the inline completion is just activated by explicit tab

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

16 years ago* silence warnings with null QPixmap
Stefan Schimanski [Thu, 21 Feb 2008 19:43:53 +0000 (19:43 +0000)]
* silence warnings with null QPixmap

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

16 years ago* minimize redraws during completion
Stefan Schimanski [Thu, 21 Feb 2008 19:43:16 +0000 (19:43 +0000)]
* minimize redraws during completion

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

16 years ago* completion infrastructure
Stefan Schimanski [Thu, 21 Feb 2008 19:42:34 +0000 (19:42 +0000)]
* completion infrastructure
* completion support for mathed
* experimental completion support for text

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

16 years agoAdd empty InsetLayout for undefined cases. Should avoid possible bugs caused by empty...
Richard Heck [Thu, 21 Feb 2008 16:31:59 +0000 (16:31 +0000)]
Add empty InsetLayout for undefined cases. Should avoid possible bugs caused by empty layout_ pointer in InsetCollapsable.

NOTE: Some cleanup is needed here, and I'll do it shortly. Doing it properly, though, requires making InsetLayout a proper class. (At the moment, it's just a C-style struct.) That should be committed separately.

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

16 years ago* Doxy.
Pavel Sanda [Thu, 21 Feb 2008 15:15:36 +0000 (15:15 +0000)]
* Doxy.

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

16 years agoAdd hide tab icon.
Pavel Sanda [Thu, 21 Feb 2008 15:13:39 +0000 (15:13 +0000)]
Add hide tab icon.

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

16 years agoLFUN_CLOSE_TAB_GROUP: bug fixes.
Abdelrazak Younes [Thu, 21 Feb 2008 15:09:10 +0000 (15:09 +0000)]
LFUN_CLOSE_TAB_GROUP: bug fixes.

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

16 years agoAdd menu item for close-tab-group
Abdelrazak Younes [Thu, 21 Feb 2008 14:58:58 +0000 (14:58 +0000)]
Add menu item for close-tab-group

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

16 years agoIntroduce LFUN_CLOSE_TAB_GROUP.
Abdelrazak Younes [Thu, 21 Feb 2008 14:53:09 +0000 (14:53 +0000)]
Introduce LFUN_CLOSE_TAB_GROUP.

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

16 years agoSquash RC warnings.
Pavel Sanda [Thu, 21 Feb 2008 14:34:41 +0000 (14:34 +0000)]
Squash RC warnings.

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

16 years ago* lib/stdmenus.inc: Collision with HTML|H
Pavel Sanda [Thu, 21 Feb 2008 14:23:10 +0000 (14:23 +0000)]
* lib/stdmenus.inc: Collision with HTML|H

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

16 years agoBe on the safe side WRT events.
Abdelrazak Younes [Thu, 21 Feb 2008 13:42:49 +0000 (13:42 +0000)]
Be on the safe side WRT events.

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

16 years ago* lib/stdmenus.inc:
Jürgen Spitzmüller [Thu, 21 Feb 2008 13:20:29 +0000 (13:20 +0000)]
* lib/stdmenus.inc:
- fix shortcut casing.

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

16 years agoadd menu item for split-view
Abdelrazak Younes [Thu, 21 Feb 2008 13:09:27 +0000 (13:09 +0000)]
add menu item for split-view

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

16 years ago* LFUN_SPLIT_VIEW: document.
Abdelrazak Younes [Thu, 21 Feb 2008 12:55:16 +0000 (12:55 +0000)]
* LFUN_SPLIT_VIEW: document.

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

16 years ago* LFUN_SPLIT_VIEW: add support for vertical split view.
Abdelrazak Younes [Thu, 21 Feb 2008 12:48:05 +0000 (12:48 +0000)]
* LFUN_SPLIT_VIEW: add support for vertical split view.

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

16 years ago* TabWorkArea: rename 'close tab' button to 'close buffer' and add a 'close tab'...
Abdelrazak Younes [Thu, 21 Feb 2008 12:29:26 +0000 (12:29 +0000)]
* TabWorkArea: rename 'close tab' button to 'close buffer' and add a 'close tab' button.

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

16 years agoFix drawing of multiple views of a same buffer in the *same window* (aka split-view).
Abdelrazak Younes [Thu, 21 Feb 2008 11:56:38 +0000 (11:56 +0000)]
Fix drawing of multiple views of a same buffer in the *same window* (aka split-view).

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

16 years agoFix buffer-switching in split view.
Abdelrazak Younes [Thu, 21 Feb 2008 11:48:31 +0000 (11:48 +0000)]
Fix buffer-switching in split view.

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

16 years ago* BufferView::resize() Remove showCursor() call when resizing.
Abdelrazak Younes [Thu, 21 Feb 2008 09:23:01 +0000 (09:23 +0000)]
* BufferView::resize() Remove showCursor() call when resizing.

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

16 years agoIntroducing LFUN_SPLIT_VIEW
Abdelrazak Younes [Wed, 20 Feb 2008 21:46:49 +0000 (21:46 +0000)]
Introducing LFUN_SPLIT_VIEW

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

16 years agosmall tweak for split view.
Abdelrazak Younes [Wed, 20 Feb 2008 20:05:01 +0000 (20:05 +0000)]
small tweak for split view.

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

16 years agoFix crash by setting Layout before calling InsetText::read().
Richard Heck [Wed, 20 Feb 2008 16:56:33 +0000 (16:56 +0000)]
Fix crash by setting Layout before calling InsetText::read().

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

16 years agoMake postats.py independent of the environment locale (2nd try)
José Matox [Wed, 20 Feb 2008 16:31:50 +0000 (16:31 +0000)]
Make postats.py independent of the environment locale (2nd try)

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

16 years agoFix scrollbar/resizing interaction.
Abdelrazak Younes [Wed, 20 Feb 2008 15:37:17 +0000 (15:37 +0000)]
Fix scrollbar/resizing interaction.

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

16 years agoLFUN_UI_TOGGLE: make sure the keyboard focus stays in the work area. Should fix the...
Abdelrazak Younes [Wed, 20 Feb 2008 15:11:47 +0000 (15:11 +0000)]
LFUN_UI_TOGGLE: make sure the keyboard focus stays in the work area. Should fix the focus problems under MacOS.

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

16 years agoWork-around scrollbar bug when returning from fullscreen mode.
Abdelrazak Younes [Wed, 20 Feb 2008 15:07:36 +0000 (15:07 +0000)]
Work-around scrollbar bug when returning from fullscreen mode.

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

16 years agofollowing revert of 23068: Better fix for bug 4044
Abdelrazak Younes [Wed, 20 Feb 2008 14:53:19 +0000 (14:53 +0000)]
following revert of 23068: Better fix for bug 4044

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

16 years agoFullscreen support: Small cleanups. Still not sure why the scrollbar is not properly...
Abdelrazak Younes [Wed, 20 Feb 2008 14:27:52 +0000 (14:27 +0000)]
Fullscreen support: Small cleanups. Still not sure why the scrollbar is not properly updated...

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

16 years agomore tooltip cleanup
Edwin Leuven [Wed, 20 Feb 2008 14:12:19 +0000 (14:12 +0000)]
more tooltip cleanup

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

16 years agocleanup tooltip
Edwin Leuven [Wed, 20 Feb 2008 13:57:54 +0000 (13:57 +0000)]
cleanup tooltip

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

16 years agofix layout
Edwin Leuven [Wed, 20 Feb 2008 13:50:35 +0000 (13:50 +0000)]
fix layout

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

16 years agorevert 23068 as this was causing a recursive repaint.
Abdelrazak Younes [Wed, 20 Feb 2008 13:32:03 +0000 (13:32 +0000)]
revert 23068 as this was causing a recursive repaint.
Warning for the future: *no* painting activity should happen inside a paint event.

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

16 years agocosmetics
Abdelrazak Younes [Wed, 20 Feb 2008 10:21:00 +0000 (10:21 +0000)]
cosmetics

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

16 years agoImprove fullscreen mode (bug 4146).
Pavel Sanda [Tue, 19 Feb 2008 21:51:55 +0000 (21:51 +0000)]
Improve fullscreen mode (bug 4146).

- added toolbars/tabbar/scrollbar toggling
- added text width control
- added GUI preferences & menu & shortcut

Known problems:
- Outliner in Mac is seeking some Mac devie to fix (see hints here:
  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135382.html )
- Toolbars visibility is shared between windows (views)
  (needs toolbars overhaul).
- Adding new tab items does not reflect fullscreen mode
  (i.e. margins and tabbar get visible)

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

16 years agoUpdate cursor and scrollbar after resize.
Pavel Sanda [Tue, 19 Feb 2008 21:27:18 +0000 (21:27 +0000)]
Update cursor and scrollbar after resize.
Fixes bug 4044.

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

16 years agodoc update.
Abdelrazak Younes [Tue, 19 Feb 2008 12:42:49 +0000 (12:42 +0000)]
doc update.

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

16 years agorev 23064: forgot that.
Abdelrazak Younes [Tue, 19 Feb 2008 09:13:58 +0000 (09:13 +0000)]
rev 23064: forgot that.

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

16 years agoVarious small cleanup.
Abdelrazak Younes [Tue, 19 Feb 2008 09:10:59 +0000 (09:10 +0000)]
Various small cleanup.

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

16 years agoBuffer::resetChildDocuments() Check for Buffer emptiness before proceeding.
Abdelrazak Younes [Tue, 19 Feb 2008 07:31:02 +0000 (07:31 +0000)]
Buffer::resetChildDocuments() Check for Buffer emptiness before proceeding.

Abdel.

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

16 years ago* lib/symbols:
Jürgen Spitzmüller [Tue, 19 Feb 2008 07:14:05 +0000 (07:14 +0000)]
* lib/symbols:
- \implies requires amsmath (bug 4561).

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

16 years agoDisable colsep box when single column.
Richard Heck [Tue, 19 Feb 2008 05:39:36 +0000 (05:39 +0000)]
Disable colsep box when single column.

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

16 years agoAdd support for column separation in page margins. Fixes bug 3337.
Richard Heck [Tue, 19 Feb 2008 05:24:48 +0000 (05:24 +0000)]
Add support for column separation in page margins. Fixes bug 3337.

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

16 years agoClean up a bit.
Richard Heck [Tue, 19 Feb 2008 03:46:11 +0000 (03:46 +0000)]
Clean up a bit.

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

16 years agoIt used to be that things like InsetFlex, InsetCaption, and the like used the default...
Richard Heck [Tue, 19 Feb 2008 02:35:07 +0000 (02:35 +0000)]
It used to be that things like InsetFlex, InsetCaption, and the like used the default layout, whatever that is---usually Standard. That gave rise to bug 2178, the solution to which is to define a new empty layout, which insets like these use instead of the default. See r22966.

So, when we have an older LyX file, it will look like this:
\begin_inset ERT
status open

\begin_layout Standard

this that
\end_layout

\end_inset
which is now invalid, because ERT uses only PlainLayout. So I had put some code into Text::readParToken, where the layout for a paragraph gets set as it is read:
       if (par.forceEmptyLayout()) {
           // in this case only the empty layout is allowed
           layoutname = tclass.emptyLayoutName();
       } else if (par.useEmptyLayout()) {
           // in this case, default layout maps to empty layout
           if (layoutname == tclass.defaultLayoutName())
               layoutname = tclass.emptyLayoutName();
       } else {
           // otherwise, the empty layout maps to the default
           if (layoutname == tclass.emptyLayoutName())
               layoutname = tclass.defaultLayoutName();
       }
This turns out not to work, because par.forceEmptyLayout() and par.useEmptyLayout() always return false here, because par.inInset() always returns a null pointer, because the paragraph's inset hasn't yet been set when Text::readParagraph() gets called from Text::read() gets called from InsetText::read(). The solution is to set the paragraph's inset when it is created, which means passing a pointer to the various read() routines along the way.

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

16 years ago * CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that
Jean-Marc Lasgouttes [Mon, 18 Feb 2008 10:16:43 +0000 (10:16 +0000)]
* CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that
is cut is completely erased, remove it regardless of its layout (fixes
bug 3995).

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

16 years ago * TextClass.cpp (read): do not use istrstream (which is deprecated),
Jean-Marc Lasgouttes [Mon, 18 Feb 2008 10:03:30 +0000 (10:03 +0000)]
* TextClass.cpp (read): do not use istrstream (which is deprecated),
but istringstream instead.

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

16 years agomore compile fixes
Jean-Marc Lasgouttes [Mon, 18 Feb 2008 09:55:14 +0000 (09:55 +0000)]
more compile fixes

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

16 years agoCompile fix by Kornel Benko.
Abdelrazak Younes [Mon, 18 Feb 2008 09:44:02 +0000 (09:44 +0000)]
Compile fix by Kornel Benko.

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

16 years agocosmetics.
Abdelrazak Younes [Mon, 18 Feb 2008 07:44:07 +0000 (07:44 +0000)]
cosmetics.

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

16 years agoheader cleanup
Abdelrazak Younes [Mon, 18 Feb 2008 07:14:42 +0000 (07:14 +0000)]
header cleanup

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

16 years agoheader cleanup
Abdelrazak Younes [Sun, 17 Feb 2008 20:47:04 +0000 (20:47 +0000)]
header cleanup

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

16 years agoheader cleanup
Abdelrazak Younes [Sun, 17 Feb 2008 20:18:12 +0000 (20:18 +0000)]
header cleanup

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

16 years agoheader cleanup
Abdelrazak Younes [Sun, 17 Feb 2008 20:17:33 +0000 (20:17 +0000)]
header cleanup

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

16 years agoFactorize closeEvent() for GuiDialog based dialogs.
Abdelrazak Younes [Sun, 17 Feb 2008 20:16:14 +0000 (20:16 +0000)]
Factorize closeEvent() for GuiDialog based dialogs.

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

16 years agode.po: more updates by Jürgen
Uwe Stöhr [Sun, 17 Feb 2008 14:09:20 +0000 (14:09 +0000)]
de.po: more updates by Jürgen

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

16 years agode.po: updates by Jürgen
Uwe Stöhr [Sat, 16 Feb 2008 21:00:21 +0000 (21:00 +0000)]
de.po: updates by Jürgen

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

16 years agoFix typing of digits in RTL text, which was broken way back during the Font/Language...
Dov Feldstern [Sat, 16 Feb 2008 18:39:20 +0000 (18:39 +0000)]
Fix typing of digits in RTL text, which was broken way back during the Font/Language separation (r21240).
The problem was that when typing a digit in RTL text, the language was being
switched to LTR, which is wrong.

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

16 years agode.po: some updates by Jürgen and me
Uwe Stöhr [Sat, 16 Feb 2008 17:23:07 +0000 (17:23 +0000)]
de.po: some updates by Jürgen and me

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

16 years ago* lib/examples/addressExample.adr:
Jürgen Spitzmüller [Sat, 16 Feb 2008 09:23:35 +0000 (09:23 +0000)]
* lib/examples/addressExample.adr:
- don't use German abbreviations (such as "w") and expressions.
- add some documentation.
* lib/examples/de/serienbrief[1-3]:
- fix spelling

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

16 years agoColor.cpp, ColorCode.h: define new colors for inset labels and insets text
Uwe Stöhr [Fri, 15 Feb 2008 23:38:16 +0000 (23:38 +0000)]
Color.cpp, ColorCode.h: define new colors for inset labels and insets text
stdinsets: use the new colors to allow the users to customize them

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

16 years agoDefine algorithm.
Richard Heck [Fri, 15 Feb 2008 17:03:07 +0000 (17:03 +0000)]
Define algorithm.

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

16 years agocosmetics
Abdelrazak Younes [Fri, 15 Feb 2008 14:30:08 +0000 (14:30 +0000)]
cosmetics

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

16 years agoFix a crash following the input of an invalid paragraph separation value in the docum...
Jürgen Spitzmüller [Fri, 15 Feb 2008 14:13:05 +0000 (14:13 +0000)]
Fix a crash following the input of an invalid paragraph separation value in the document settings dialog (bug 4556).

* src/frontends/qt4/GuiDocument.cpp:
- disallow input of defskip length without actual length value.

* src/BufferParams.cpp (readToken):
- there might be documents with the invalif "\defskip defskip" param. Reset this to "\defskip medskip".

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

16 years ago* src/insets/InsetTabular.cpp:
Jürgen Spitzmüller [Fri, 15 Feb 2008 11:36:05 +0000 (11:36 +0000)]
* src/insets/InsetTabular.cpp:
- fix check for top- and bottomlines (rev. 23011).
  topLine and bottomLine take a cell argument, not a row.

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

16 years agoDocument flex-insert
Martin Vermeer [Fri, 15 Feb 2008 10:13:50 +0000 (10:13 +0000)]
Document flex-insert

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

16 years ago* Inset: Prepare for an eventual merge of updateLabels() and addToToc()
Abdelrazak Younes [Fri, 15 Feb 2008 10:13:32 +0000 (10:13 +0000)]
* Inset: Prepare for an eventual merge of updateLabels() and addToToc()

* TocBackend: add non const toc() and tocs() access methods.

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

16 years agoInsetFoot::updateLabels(): fix potentially dangerous bug.
Abdelrazak Younes [Fri, 15 Feb 2008 09:41:53 +0000 (09:41 +0000)]
InsetFoot::updateLabels(): fix potentially dangerous bug.

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

16 years agoOutliner: Fix synchronous navigation for all types.
Abdelrazak Younes [Fri, 15 Feb 2008 08:50:35 +0000 (08:50 +0000)]
Outliner: Fix synchronous navigation for all types.

* GuiToc::currentIndex(): remove FIXME

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

16 years ago* InsetXXX::addToToc(): properly use passed ParConstIterator.
Abdelrazak Younes [Fri, 15 Feb 2008 08:39:58 +0000 (08:39 +0000)]
* InsetXXX::addToToc(): properly use passed ParConstIterator.

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

16 years ago* ParConstIterator::push_back(): new method for easier iterative construction.
Abdelrazak Younes [Fri, 15 Feb 2008 08:32:27 +0000 (08:32 +0000)]
* ParConstIterator::push_back(): new method for easier iterative construction.

* InsetCaption::addToToc(): use that.

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

16 years agoAdd list of numbered equations.
Abdelrazak Younes [Fri, 15 Feb 2008 08:09:35 +0000 (08:09 +0000)]
Add list of numbered equations.

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