Abdelrazak Younes
ff4460603e
Make Buffer argument mandatory in most of the InsetMath based class... boring work...
...
Math manual loads and save correctly it seems but expect some instability period.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31898 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-08 11:45:46 +00:00
Enrico Forestieri
a1a34443ef
Fix bug #5530 : LyX expansion in math-macro overwritten by default one.
...
This patch initializes the buffer_ member of a MathHull inset in most
(but not all) cases. The problems with buffer_ should be greatly
allievated now, but there still can be some corner case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31873 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-06 15:18:48 +00:00
Vincent van Ravesteijn
0152d08232
These shouldn't be there as they have nothing to do with the layout of the Inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31794 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-29 22:13:48 +00:00
Vincent van Ravesteijn
71d29d14b7
Text3.cpp: fix unintended fall-throughs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-29 22:08:05 +00:00
Vincent van Ravesteijn
6e8312d1a4
Move (part of) LFUN_DISSOLVE_INSET into InsetText.
...
- put the InsetFlex specific part into InsetFlex,
- honor the argument given to the LFUN also for normal Insets as the description already stated,
- fix bug #6285 : context menu action goes to the wrong inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-26 23:49:43 +00:00
Abdelrazak Younes
1cd45c2ae1
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
2009-10-04 20:58:20 +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
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
Abdelrazak Younes
1d7d54a4a7
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
2009-09-12 21:12:24 +00:00
Vincent van Ravesteijn
c11f031df6
Fix bug #5991 : Select function in environments.
...
C-M-a now selects the contents of an inset, if the whole inset is already selected, it will jump out the inset and selects everything in that inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:44:08 +00:00
Vincent van Ravesteijn
9bb61acfd5
Fix inset-begin and inset-end. Now, if the cursor was at the beginning of a paragraph in the middle of the inset, inset-begin would jump out of the inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31199 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:34:50 +00:00
Uwe Stöhr
f7aa1c1c5d
Text3.cpp: fix crash reported in #6133 , patch from Tommaso
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31070 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-15 22:53:15 +00:00
Abdelrazak Younes
cd8e483f3a
Text::dispatch(): the spellchecking code is now uneeded.
...
TextMetrics::drawParagraph(): really check the whole row and not only the first word.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30971 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-10 21:17:08 +00:00
Abdelrazak Younes
673ff83263
outline(): avoid paragraph copying by using RandomAccessList::splice().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30961 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 20:25:20 +00:00
Abdelrazak Younes
1a27aaca77
RandomAccessList: new swap() method for swapping two elements without any copy.
...
LFUN_PARAGRAPH_MOVE_UP and LFUN_PARAGRAPH_MOVE_DOWN: use that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 19:51:12 +00:00
Abdelrazak Younes
2b9e44cb01
Move contents of paragraph_funcs.* to Text.h and Text.cpp.
...
The goal is to simplify the code afterwards.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30955 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 17:30:41 +00:00
Abdelrazak Younes
2bf63aa652
Get rid of some Paragraph::inInset() access.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30953 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 17:01:04 +00:00
Abdelrazak Younes
f35561d055
Cleanup: Replace a bunch of Cursor arguments with DocIterators.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30951 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 16:49:41 +00:00
Abdelrazak Younes
5425c53fd1
Now that Text knows its owner, use the associated Buffer access.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30941 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 15:29:34 +00:00
Vincent van Ravesteijn
3114ce609c
Some small code simplications.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30866 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-04 23:01:06 +00:00
Vincent van Ravesteijn
690878bd4a
Fix #6045 : Possible to insert table floats to figure floats.
...
The lfuns, LFUN_FLOAT_INSERT and LFUN_WRAP_INSERT are now only enabled when they should be.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30740 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 20:04:52 +00:00
Vincent van Ravesteijn
77d67595fd
In r30560, the setLayout function was removed from InsetCollapsable. This function also set the buttonLabel for the inset. After removing the setLayout calls in this place, the button label is not initialized for Notes, Boxes and Phantoms.
...
This commit restores the behaviour as it was, such that the labels are initialized again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30677 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-18 19:35:27 +00:00
Pavel Sanda
091e3908b0
Kill LFUN_PARAGRAPH_SPACING in favour of LFUN_PARAGRAPH_PARAMS.
...
We don't want duplicit code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:55:23 +00:00
Richard Heck
0facb603fe
Give inset codes to all the math insets, so we get more information when
...
we run into assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30634 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 19:00:24 +00:00
Jean-Marc Lasgouttes
41003ea0eb
remove some explicit tests against ERT_CODE; more to come
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 10:08:13 +00:00
Jean-Marc Lasgouttes
0e8b1dc29a
define InsetText::insetAllowed properly and rely on it for inset insertion in Text::dispatchsvndiff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 21:56:22 +00:00
Jean-Marc Lasgouttes
bec171ed32
logic was reversed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30569 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 16:00:22 +00:00
Jean-Marc Lasgouttes
30360e1b19
move more functions from InsetCollapsable::getStatus to Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30566 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 15:27:48 +00:00
Jean-Marc Lasgouttes
7a0107f4df
move tab-insert/delete from InsetCollapsable to Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 14:52:11 +00:00
Jean-Marc Lasgouttes
e33095f10d
Move special handling of paste function from InsetCollapsable to InsetText
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 13:00:42 +00:00
Jean-Marc Lasgouttes
95bd716cdf
replace gratuitously complicated code by sane one, and make cursor leave inset after inserting an index
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 12:21:35 +00:00
Jean-Marc Lasgouttes
5bf8df4fbc
Remove the layout_ cache in InsetCollapsable.
...
Remove setLayout methods and all the calls to it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 12:07:51 +00:00
Jean-Marc Lasgouttes
4dbe411ba9
Remove all BufferParam arguments in InsetXXX methods (since insets know about their Buffer)
...
Add an assertion in Inset::dispatch that checks that buffer() == *cur.buffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30540 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 12:56:20 +00:00
Jean-Marc Lasgouttes
081fad9557
First step of InsetLayout cleanup.
...
Get rid of Inset::getLayout(BufferParams), since all insets have access to
their own buffer. Inset::getLayout() does the same now.
Get rid of InsetCollapsable::getLayout(BufferParams) too, and remove most references to InsetCollapsable::layout_. For now IC::getLayout() still returns layout_, but the idea is to change this (provided there is no performance problem).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30530 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-13 00:28:22 +00:00
Uwe Stöhr
802067ecdc
support for matrix decoration in the MathMatrix dialog;
...
introduces a new LFUN and fixes #4620
This can in principle also go to branch when new LFUNs are there allowed, Jürgen?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 21:39:21 +00:00
Vincent van Ravesteijn
c4feab5f13
Cosmetics, squeeze some warnings, remove unused code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 00:10:55 +00:00
Jürgen Spitzmüller
3a16b6dbf7
Implement LFUN_OUTLINE_DRAGMOVE.
...
Contribution by Rob Oakes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30278 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 08:40:34 +00:00
Jean-Marc Lasgouttes
7e5bdec673
fix assertion when inserting math inset
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 14:47:29 +00:00
Abdelrazak Younes
8a421dcd37
Really spellcheck continuously.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30241 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-23 09:17:39 +00:00
Jürgen Spitzmüller
e9cbe2f80f
A GUI for nomencl settings. Adds the possibility to enter a custom length.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 16:26:15 +00:00
Vincent van Ravesteijn
a7d545170b
Fix bug #5888 . Yes, I do shame.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29665 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 12:35:04 +00:00
Richard Heck
d6966dd5f5
Style.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29601 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 21:58:16 +00:00
Vincent van Ravesteijn
b946e2209a
Fix bug #5930 : Crash when undoing info-insert in math mode.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29598 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 21:02:14 +00:00
Vincent van Ravesteijn
ba37ec9813
Fix bug #5435 : DEPM is not executed when leaving an inset.
...
Now, it is fixed for char-forward and char-backward.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29585 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 16:56:49 +00:00
Jürgen Spitzmüller
74784942ed
* disable some invalid insets in description items (covers bug 5937).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 16:53:51 +00:00
Richard Heck
6537f7aca0
Fix outliner crash reported by Vincent.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29583 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 15:49:09 +00:00
Jürgen Spitzmüller
abc5debb42
Compile fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29574 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 15:12:28 +00:00
Jürgen Spitzmüller
9d9f14ed38
* also enable LFUN_BRANCH_INSERT if we have branches only in a child.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29569 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 12:38:58 +00:00
Pavel Sanda
6fde8f8067
Introduce double underline and wavy underline styles from ulem
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150803.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-05 09:26:28 +00:00
Vincent van Ravesteijn
0731078d5f
Fixing small bugs of r29518.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29526 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 23:32:16 +00:00