Commit Graph

12525 Commits

Author SHA1 Message Date
Abdelrazak Younes
a19557baf7 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
2008-02-22 12:27:56 +00:00
Abdelrazak Younes
2ed1153c8c 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
2008-02-22 12:22:28 +00:00
Abdelrazak Younes
6564e9bb4e 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
2008-02-22 11:07:41 +00:00
Jean-Marc Lasgouttes
38a1df7cd4 disable annoying debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:30:46 +00:00
Jean-Marc Lasgouttes
e744d0e989 sort lyxrc keywords table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23124 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:25:12 +00:00
Jean-Marc Lasgouttes
8b342f0478 compilation fix for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23123 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:16:18 +00:00
Stefan Schimanski
4dc36f2380 * no need for QStyleOptionViewItemV3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 10:15:28 +00:00
Stefan Schimanski
ab6ec965fd * stdlib-debug out of range fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23120 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 09:00:22 +00:00
Richard Heck
7889ccc0eb More headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 03:39:10 +00:00
Richard Heck
b032a9d7ba Headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23118 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 03:34:03 +00:00
Richard Heck
20cf42b741 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
2008-02-22 03:27:42 +00:00
Richard Heck
a8317afc4b 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
2008-02-22 02:32:52 +00:00
Stefan Schimanski
7fd88683b9 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 23:38:46 +00:00
Stefan Schimanski
6eb72bd1f2 * 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
2008-02-21 23:36:02 +00:00
Abdelrazak Younes
45bcfce52d compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 22:39:46 +00:00
Pavel Sanda
0602a26c4d Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 22:19:22 +00:00
Pavel Sanda
900ba80030 * 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
2008-02-21 21:16:31 +00:00
Richard Heck
dde5b63fd5 Cosmetics. And silence some warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23110 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 20:04:17 +00:00
Stefan Schimanski
4c5c14ff62 * 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
2008-02-21 19:45:36 +00:00
Stefan Schimanski
7794f870f2 * 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
2008-02-21 19:45:05 +00:00
Stefan Schimanski
b1a754e388 * 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
2008-02-21 19:44:28 +00:00
Stefan Schimanski
c885205620 * silence warnings with null QPixmap
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:43:53 +00:00
Stefan Schimanski
833f0bab52 * minimize redraws during completion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:43:16 +00:00
Stefan Schimanski
1bf7b59d60 * 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
2008-02-21 19:42:34 +00:00
Richard Heck
a51525c416 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
2008-02-21 16:31:59 +00:00
Pavel Sanda
f9cb8309a3 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23102 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:15:36 +00:00
Pavel Sanda
b7922f4201 Add hide tab icon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:13:39 +00:00
Abdelrazak Younes
7794aeadf6 LFUN_CLOSE_TAB_GROUP: bug fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:09:10 +00:00
Abdelrazak Younes
2a725d7c23 Introduce LFUN_CLOSE_TAB_GROUP.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:53:09 +00:00
Pavel Sanda
3d87d2f724 Squash RC warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:34:41 +00:00
Abdelrazak Younes
7ba37ecf53 Be on the safe side WRT events.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23094 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 13:42:49 +00:00
Abdelrazak Younes
234fe61854 * LFUN_SPLIT_VIEW: document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 12:55:16 +00:00
Abdelrazak Younes
9ae75dddf6 * 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
2008-02-21 12:48:05 +00:00
Abdelrazak Younes
f9744033b3 * 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
2008-02-21 12:29:26 +00:00
Abdelrazak Younes
c607940f5b 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
2008-02-21 11:56:38 +00:00
Abdelrazak Younes
95b9cbb4c4 Fix buffer-switching in split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23086 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 11:48:31 +00:00
Abdelrazak Younes
f27c3fde43 * BufferView::resize() Remove showCursor() call when resizing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23085 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 09:23:01 +00:00
Abdelrazak Younes
9d40f89b58 Introducing LFUN_SPLIT_VIEW
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23084 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 21:46:49 +00:00
Abdelrazak Younes
f9963f83c8 small tweak for split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23083 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 20:05:01 +00:00
Richard Heck
0902821097 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
2008-02-20 16:56:33 +00:00
Abdelrazak Younes
6069c5ad16 Fix scrollbar/resizing interaction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23079 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 15:37:17 +00:00
Abdelrazak Younes
7d6ee1572e 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
2008-02-20 15:11:47 +00:00
Abdelrazak Younes
9bb7f03835 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
2008-02-20 15:07:36 +00:00
Abdelrazak Younes
2a42f56b4e 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
2008-02-20 14:53:19 +00:00
Abdelrazak Younes
42d707773d 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
2008-02-20 14:27:52 +00:00
Edwin Leuven
2a2f4ee163 more tooltip cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23074 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 14:12:19 +00:00
Edwin Leuven
91c8518416 cleanup tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23073 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 13:57:54 +00:00
Edwin Leuven
41bc70ae81 fix layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23072 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 13:50:35 +00:00
Abdelrazak Younes
3d3a55386d 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
2008-02-20 13:32:03 +00:00
Abdelrazak Younes
860547ef1c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23070 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 10:21:00 +00:00
Pavel Sanda
72b270ab4b 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
2008-02-19 21:51:55 +00:00
Pavel Sanda
1ab314f8e6 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
2008-02-19 21:27:18 +00:00
Abdelrazak Younes
7144d5b382 doc update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23066 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 12:42:49 +00:00
Abdelrazak Younes
00af9dcd30 rev 23064: forgot that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 09:13:58 +00:00
Abdelrazak Younes
f0b51ef8c9 Various small cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 09:10:59 +00:00
Abdelrazak Younes
c99062a27d 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
2008-02-19 07:31:02 +00:00
Richard Heck
bfe96fb61e Disable colsep box when single column.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23060 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 05:39:36 +00:00
Richard Heck
4ab6f265e9 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
2008-02-19 05:24:48 +00:00
Richard Heck
a97b6295c4 Clean up a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23058 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 03:46:11 +00:00
Richard Heck
7dcffe09f4 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
2008-02-19 02:35:07 +00:00
Jean-Marc Lasgouttes
85c0bf5e16 * 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
2008-02-18 10:16:43 +00:00
Jean-Marc Lasgouttes
c075a285a0 * 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
2008-02-18 10:03:30 +00:00
Jean-Marc Lasgouttes
6f5e86e065 more compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23052 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 09:55:14 +00:00
Abdelrazak Younes
d4e9968494 Compile fix by Kornel Benko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23051 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 09:44:02 +00:00
Abdelrazak Younes
b09542af9d cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23050 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:44:07 +00:00
Abdelrazak Younes
2bf1c09376 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:14:42 +00:00
Abdelrazak Younes
ba76bf5eb8 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23048 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:47:04 +00:00
Abdelrazak Younes
c38f62d71b header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23047 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:18:12 +00:00
Abdelrazak Younes
8d5bcad767 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23046 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:17:33 +00:00
Abdelrazak Younes
9f3c7cf1ea Factorize closeEvent() for GuiDialog based dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23045 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-17 20:16:14 +00:00
Dov Feldstern
deb86513df 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
2008-02-16 18:39:20 +00:00
Uwe Stöhr
f35ff8f60d 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
2008-02-15 23:38:16 +00:00
Abdelrazak Younes
cabae2b079 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23024 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:30:08 +00:00
Jürgen Spitzmüller
ebc4649508 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
2008-02-15 14:13:05 +00:00
Jürgen Spitzmüller
fa10443c54 * 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
2008-02-15 11:36:05 +00:00
Abdelrazak Younes
c3a8b3a566 * 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
2008-02-15 10:13:32 +00:00
Abdelrazak Younes
5b7eb343ec InsetFoot::updateLabels(): fix potentially dangerous bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23017 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 09:41:53 +00:00
Abdelrazak Younes
17efe15322 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
2008-02-15 08:50:35 +00:00
Abdelrazak Younes
d8ee26ec6c * InsetXXX::addToToc(): properly use passed ParConstIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23015 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:39:58 +00:00
Abdelrazak Younes
0a64dfa594 * 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
2008-02-15 08:32:27 +00:00
Abdelrazak Younes
f1c4a07544 Add list of numbered equations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23013 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 08:09:35 +00:00
Uwe Stöhr
82984ec711 InsetTabular.cpp: revert the \bottomline fix from the previous commit because it inly works for certain cases. (I'm running out of ideas to fix this for all case, see http://bugzilla.lyx.org/show_bug.cgi?id=4554#c6 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23012 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 01:28:46 +00:00
Uwe Stöhr
c9329d272b InsetTabular.cpp: check for top and bottom lines, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4554
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23011 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 00:28:42 +00:00
Richard Heck
85deaeb165 Get rid of GuiIndex since we no longer need it. Simplify the remaining code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 18:06:47 +00:00
Richard Heck
b1306a979a Code rules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23005 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 17:00:40 +00:00
Abdelrazak Younes
1a4891dec0 InsetNote::addToToc(): Stupid Bug fix causing crash on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23004 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 15:29:22 +00:00
Abdelrazak Younes
15ff669dd0 factorize code between GuiFontMetrics::rectText() and buttonText().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 09:44:12 +00:00
Abdelrazak Younes
9e4780ffd8 * buttonText(): painting tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 08:49:45 +00:00
Abdelrazak Younes
b0b7fbad8e InsetText::draw() Painting tweaks; reduce the frame by two pixels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 08:24:52 +00:00
Abdelrazak Younes
f30f4129e9 * InsetNote::addToToc(): Prefix toc entries with note type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22997 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 07:30:33 +00:00
Richard Heck
14d7b57487 Cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 07:10:12 +00:00
Richard Heck
10476b2264 Protect our data.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22995 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:28:59 +00:00
Richard Heck
71c1bd5b2e Do not inherit from std::map here either.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22994 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:14:22 +00:00
Richard Heck
485478e47c Do not inherit from std::map.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22993 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 05:00:54 +00:00
Martin Vermeer
f850b0b281 Improve flex-insert doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22992 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 04:38:01 +00:00
Richard Heck
369d21f4e2 Fix Layout::read() API.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22991 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 04:12:15 +00:00
Richard Heck
b9670d7209 Fix previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22990 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:49:12 +00:00
Richard Heck
3dc5bc09dd Make sure we write a valid file even if InsetFlex is undefined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22989 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:42:54 +00:00
Richard Heck
b76e95b942 Fix TextClass::read API. Also some cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22988 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:38:08 +00:00
Richard Heck
ada361baf8 Warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22987 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 03:35:03 +00:00