Commit Graph

1980 Commits

Author SHA1 Message Date
Uwe Stöhr
97aa558cac support for \pagebreak:
- rename former "pagebreak" to "newpage" since it produces a \newpage
- new LFUN
- menu entry
- tex2lyx support
- fileformat change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:10:00 +00:00
André Pönitz
d5fc2425a9 consolidate showDialog() incarnations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21662 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 00:39:15 +00:00
André Pönitz
e1ce2f92db reduce line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 20:04:51 +00:00
André Pönitz
f0fee538c2 more strfwd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21618 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 21:57:43 +00:00
Stefan Schimanski
41ebe5e752 * added forgotton undo call for LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21614 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:59:58 +00:00
Stefan Schimanski
240e59ae0d * fixed bug #4357 when pasting a macro with script index
* fixed some other unreported bug when the cursor is not inside or near the macro during fold/unfold
 * fixed the bug that the cursor jumped into the first parameter when pasting a macro. This should only happen when the macro was entered interactively


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21611 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:33:49 +00:00
Stefan Schimanski
066de606d2 cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21574 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 07:58:52 +00:00
Stefan Schimanski
963470c60e * fix crash due to a missing test whether thisSlice is -1 or a valid slice number
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21556 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:12:39 +00:00
Stefan Schimanski
d51c3cd2f8 * added comment to describe why we are in monochrome mode at this point.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21517 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 10:14:18 +00:00
André Pönitz
688c186614 we assume (more or less) conforming compilers nowadays.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21482 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:45:24 +00:00
André Pönitz
f6fd9f1172 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21480 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:00:00 +00:00
André Pönitz
8995e86584 some consolidation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21478 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 20:57:29 +00:00
André Pönitz
f09222007f cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21477 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 20:38:35 +00:00
Abdelrazak Younes
216775d3c7 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21476 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 19:24:05 +00:00
Abdelrazak Younes
0b0c27ef59 * BufferView: Make use of ScreenUpdateStrategy::NoScreenUpdate, avoid a screen redraw when it is not really needed.
* Painter.h: move isDrawingEnabled() to public Area.

* TextMetrics::drawParagraph(): backup and restore original drawing state of the Painter.

* InsetTabular::draw(): ditto.

* InsetMathNest::drawSelection(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21471 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:07:49 +00:00
Abdelrazak Younes
d69115d9db Avoid unnecessary redraw.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21468 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:16:27 +00:00
Jürgen Spitzmüller
3c5ff007e0 * src/mathed/InsetMathBig.cpp:
- add missing include.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21466 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 09:30:33 +00:00
André Pönitz
9daf07588f #include cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21459 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:46:17 +00:00
Dov Feldstern
7bf4f48a4a Use forceLTR instead of inset codes in order to determine whether an inset
should be surrounded by external \L{} in bidi text.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21458 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:44:47 +00:00
André Pönitz
31617cf92a remove unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21457 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:01:18 +00:00
André Pönitz
9cca7a0c1a remove unneeded Cursor.h include;
use strfwd 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21456 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 22:54:53 +00:00
Martin Vermeer
1c05c37696 Revert 4323/2 fix addRow -> appendRow part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21451 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 20:54:28 +00:00
Dov Feldstern
cd95a4bae8 Getting rid of LTR bias --- part 4/4
This is the final patch (at least for now). This one deals with the idxFoo
methods in the math insets. The previous patches in the series are r21128, 
r21244 and r21448.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21449 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 19:44:03 +00:00
Dov Feldstern
ddd82f7aa4 Getting rid of LTR bias --- part 3/4
This is a continuation of r21128, r21244


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21448 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 19:41:16 +00:00
Bernhard Roider
e077f03643 more complete fix for bug 4318 and variants (see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg130765.html)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21444 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 16:52:34 +00:00
Jürgen Spitzmüller
33d8394fbb * src/mathed/InsetMathGrid.cpp:
- clear selection before deleting row/column (fix bug 4323/1).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21433 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 10:46:39 +00:00
Martin Vermeer
70c8d87745 Fix bug 4323/2, and more logical naming of addRow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21429 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 09:51:37 +00:00
Jürgen Spitzmüller
45399e1e7a * src/mathed/MathParser.cpp (getChar):
- return 0 instead of char_type(), which is unpredictable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21426 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:55:32 +00:00
Jürgen Spitzmüller
3cafb856d7 * src/mathed/MathParser.cpp (getChar):
- empty return if the char is not good() (fix bug 4318).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21425 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:15:57 +00:00
Stefan Schimanski
cc1b8dbe2b * change the fold/unfold behaviour a bit: if we are just in front of a macro with wrong state after we went one level up, we look further left. This feels more natural in cases nullary macros appear as parameters of other macros.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21361 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 00:11:51 +00:00
André Pönitz
a8cd9a4b8f cosmetics. mainly replace #include "dostring.h" by #include "strfwd.h"
in header files when possible. Adjust .cpp files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:17:22 +00:00
Stefan Schimanski
f8147509ac * 1 off error, leading to a crash with only one optional parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21357 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:15:00 +00:00
Stefan Schimanski
565475a439 * replace int type by the correct custom type for pos, idx and size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 15:36:27 +00:00
Stefan Schimanski
6aa5467320 * added non-greedy init mode for macros. If you enter a macro with the cursor, you don't want that it eats the insets on the right.
* split up the MathData::updateMacro method into the optional and normal parameter part


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:40:15 +00:00
Edwin Leuven
7e9ec4cdbd correct case
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:30:48 +00:00
Stefan Schimanski
95cb72f747 * removed MathMacro:: from declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:06:58 +00:00
Stefan Schimanski
0e201c8c22 * cosmetic: alphabetic order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:27:02 +00:00
Stefan Schimanski
dbbf47ab14 * LFUN handler for folding/unfolding of math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21329 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:14:14 +00:00
Stefan Schimanski
1231489798 * dynamic macros as described in http://1stein.org/download/dynmacro.pdf
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21328 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:13:07 +00:00
Stefan Schimanski
1315e5f026 * non-const coercion for math braces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:58:59 +00:00
Uwe Stöhr
e7768ff98e InsetMathDelim.cpp: remove doubled include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21282 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 01:19:21 +00:00
Uwe Stöhr
256638827a InsetMathFrac: add support for \tbinom and \dbinom, fixes bug 4305
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21247 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 21:48:51 +00:00
Dov Feldstern
b4372a37d9 Getting rid of LTR bias --- part 2/?
This is a continuation of r21128. This round fixes the "Word" movement
functions and LFUNS.

Behavior should remain unchanged by this fix.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 20:35:57 +00:00
Abdelrazak Younes
5ddc612b73 Splitup Font in saner bits:
* Font::FontBits -> FontInfo
* Font::FONT_XXX -> all enums transfered to FontEnums.h and renamed to FontXxx

I've replaced Font uses with FontInfo were the language() member was not needed, basically all draw() and metrics methods. There's one problematic cases with InsetQuotes which I solved by taking the Buffer main language.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21240 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 18:51:54 +00:00
Uwe Stöhr
9c20e03c76 InsetMathFrac.cpp: fix bug 4308 by using the metrics change method of the fraction inset also for the binom inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 13:15:35 +00:00
André Pönitz
ed7a07e007 put \frac style stuff into a single unit. -161477.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21208 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 21:53:06 +00:00
Abdelrazak Younes
eea79637c7 Move Color::color enum to ColorCode.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21198 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 12:41:02 +00:00
Dov Feldstern
662b58497e Getting rid of LTR bias --- part 1/?
This is the first patch in a series meant to remove LTR bias from the code.
Currently, there are many places in the code where "right" and "left" are used,
but where we actually mean "forward" and "backwards" --- which is the same 
thing in LTR text, but not in RTL/Bidi text.

See full details in http://permalink.gmane.org/gmane.editors.lyx.devel/97550.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 22:18:52 +00:00
Richard Heck
e158e07c29 InsetCommandParams() now takes an InsetCode rather than a string.
These changes are just adaptations to the new signature.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21072 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 17:22:55 +00:00
Abdelrazak Younes
55beda376a Refactor Undo/Redo framework into an Undo class owned by a Buffer. This reduces header dependencies from Undo.h which was including lots of stuff previously. This also solves the bug where undo/redo were reset upon buffer switching. Now, each buffer has a truly independant undo/redo architecture.
In the future, when Cursor has been fixed to work correctly with multiple views of the same Buffer, we could transfer the Undo owner from Buffer to Cursor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21031 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 11:51:17 +00:00