Commit Graph

150 Commits

Author SHA1 Message Date
Georg Baum
2bbe7e5b89 Make MathBigInset working
* src/cursor.C
        (LCursor::plainInsert): combine the previous math atom with the new
        one to a MathBigInset if possible

        * src/mathed/math_biginset.[Ch]
        (MathBigInset::name): implement
        (MathBigInset::isBigInsetDelim): new, test whether a given token is
        a valid MathBigInset delimiter

        * src/mathed/math_biginset.C
        (MathBigInset::size): handle Big, Bigg and Biggg
        (MathBigInset::increase): ditto
        (MathBigInset::draw): fix deco drawing
        (MathBigInset::write): append space if necessary

        * src/mathed/math_factory.C
        (createMathInset): handle l->inset == "big"

        * src/mathed/math_parser.C
        (Token::asInput): return a token as input, stolen from tex2lyx
        (void Parser::parse1): Create a MathBigInset when needed

	* src/mathed/math_support.C:
	(deco_table): add lbrace and rbrace

        * src/mathed/math_nestinset.C
        (MathNestInset::interpret): combine the previous math atom with the
        new character to a MathBigInset if possible

        * src/ParagraphParameters.C
        (findToken): move from here

        * src/support/lstrings.[Ch]
        (findToken): to here

        * lib/symbols: add MathBigInset symbols


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13700 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-20 09:55:45 +00:00
Lars Gullik Bjønnes
618ca28af6 * support/types.h: introduce the char_type type
* paragraph.h: make value_type point at char_type
* other files: change some bald 'char' to 'char_type'


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13609 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-09 02:30:40 +00:00
Lars Gullik Bjønnes
3b9338a3a8 Whitespace cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 23:56:29 +00:00
Jean-Marc Lasgouttes
e7141d6b86 * src/cursor.C
(bruteFind): only iterate over the paragraphs that are
	in the CoordCache (bug 2217)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13476 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-24 13:09:46 +00:00
Martin Vermeer
2c30e9b17a Get raising/lowering into super/subscripts of selection working (1.3
regression)

	* cursor.C: get rid of paste()

	* mathed/math_nestinset.C
	(MathNestInset::doDispatch):
	(MathNestInset::lfunMouseRelease): define safe_ (selection) in
	several places
	(MathNestInset::script): use data member safe_ to insert selection

	* mathed/math_nestinset.h: data member safe_



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13424 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 06:53:29 +00:00
Martin Vermeer
786c079b89 fix (properly) insertion of fonts/decorations around selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13280 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-28 19:16:38 +00:00
Martin Vermeer
26cae2254e Fix to 2249 (cursor mathed positioning)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10806 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-03 17:31:19 +00:00
Jürgen Spitzmüller
02127298e7 Implement a dociterator::forwardPos() variant that skips collapsed insets and use that in bruteFind() (fixes bug 2241 and bug 2094)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10782 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-28 09:46:58 +00:00
Jean-Marc Lasgouttes
2486c96b8d cleanup some debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10757 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-19 15:49:21 +00:00
Jean-Marc Lasgouttes
1b411d8e9c fix bug 2034
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10726 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-11 17:08:50 +00:00
Jean-Marc Lasgouttes
ba4529af10 bug 2034 (part 2): bad placement of cursor when entering math macro explicitely
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10675 a592a061-630c-0410-9148-cb99ea01b6c8
2005-12-20 16:24:17 +00:00
Martin Vermeer
4288e62d08 Fix bug 2115 (crash, selection begin and end different depths)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10594 a592a061-630c-0410-9148-cb99ea01b6c8
2005-11-07 15:02:08 +00:00
Georg Baum
d7055d0a8e implement missing bits of math cut and paste and fix bug 2059
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10548 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-12 18:44:53 +00:00
Jean-Marc Lasgouttes
609e7ae488 fix bug 2057: Delete key acting unexpectedly in MathEd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10515 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-03 12:22:19 +00:00
Jürgen Spitzmüller
5a704fe310 the autoopen patch (fixes bug 1921)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10495 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-28 15:02:47 +00:00
Jean-Marc Lasgouttes
eef740730e bug 2033: new math array uses clipboard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10469 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-21 09:56:54 +00:00
Jean-Marc Lasgouttes
81efcd9cf6 fix compiler warnings (bug 1927)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10465 a592a061-630c-0410-9148-cb99ea01b6c8
2005-09-20 08:31:37 +00:00
André Pönitz
f70191cc10 some (yet unfinished) up/down work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10333 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-18 17:12:28 +00:00
André Pönitz
af5acb6dc7 ~4% speedup by inlining a few one-line accessors
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10320 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-18 11:00:15 +00:00
André Pönitz
b11f5b1708 accept coordinates up to a million...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10278 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-17 12:28:02 +00:00
Jürgen Vigna
88d9527776 Handle cursor position after last char in row before a inset which uses a whole row
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10233 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-16 00:04:54 +00:00
André Pönitz
282f86fbb1 send UpdatableInset down the way of the Dodo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10228 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-15 22:10:25 +00:00
André Pönitz
41ecabf519 make boundary property an iterator property instead of a CursorSlice property
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10214 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-15 15:49:40 +00:00
André Pönitz
275f6172ac open insets when selection is set there
to avoid crashs with cold coord cache


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10188 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-14 17:30:24 +00:00
André Pönitz
3a3c1080ee make sure the 'setStatus(Collapsed)' crash won't occur otherwise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9917 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-06 20:00:31 +00:00
André Pönitz
56f0c42919 fix crash when collapsing ert with cursor inside
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9916 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-06 18:54:36 +00:00
Angus Leeming
fb70c52b05 Whitespace, only whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9877 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-26 11:12:20 +00:00
Jean-Marc Lasgouttes
1e7112db43 fix counters updating mechanism
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9682 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-25 11:55:36 +00:00
Georg Baum
03ea5d80b7 try to fix broken cursor (from Andr�)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9635 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-15 17:34:54 +00:00
Lars Gullik Bjønnes
aa491cdb98 dociterator dont inherit from std::vector and updates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9602 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-08 13:18:05 +00:00
Angus Leeming
e22c5f4d97 Asger's commentary, const-correct and bug-squashing little beauty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9558 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-31 16:29:48 +00:00
Asger Ottar Alstrup
282bf655ed - Add missing STL includes for correctness - gcc is too forgiving
- Add missing using statements
- Guard #warning statements


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9494 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-18 14:15:57 +00:00
André Pönitz
9a5b09b5e4 start fixing cursor size in math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9460 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-10 09:28:06 +00:00
Lars Gullik Bjønnes
46756fd9e4 the const patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9443 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-05 20:21:27 +00:00
Jean-Marc Lasgouttes
2aa786c652 fix some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9409 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-29 11:39:17 +00:00
Lars Gullik Bjønnes
94aa0bdda4 remove all trace if idxUpDown2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9335 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-03 16:39:59 +00:00
Alfredo Braunstein
a2cd656e25 CoordBranch merge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9325 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-30 01:59:49 +00:00
Alfredo Braunstein
ed064bdee6 par->pit renaming
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9300 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-24 21:53:46 +00:00
Lars Gullik Bjønnes
13c24dd556 * lyxfunctional.h: delete back_inserter_fun functions and helper
classes.
* lyx_gui.C (start): use for_each instead of explicit for loop
* cursor.C (insert): use for_each instead of explicit for loop

* bufferlist.C (getFileNames): use std::transform and
std::back_inserter instead of std::copy and lyx::back_inserter_fun.

* buffer_funcs.C (bufferErrors): use for_each instead of explicit
for loop

* buffer.C (changeLanguage): use for_each instead of explicit for
loop
(hasParWithID): implement using getParFromID

* LaTeXFeatures.C: ws change only

* CutAndPaste.C (replaceSelectionWithString): Use a temporary var
to cleanup a bit.

* BufferView_pimpl.C (trackChanges): use for_each instead of
expilicit for loop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9182 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-06 15:23:12 +00:00
Angus Leeming
eb00187fea Whitespace, nothing but whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9131 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-26 21:16:44 +00:00
André Pönitz
3f65d1489a fix tabular crash after cutting a selection (cursor position was not
corrected)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9108 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-23 08:50:30 +00:00
André Pönitz
edbef46cd7 move around stuff, remove unneeded declarations etc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8929 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-14 19:55:00 +00:00
Lars Gullik Bjønnes
d20f0af816 some nicer margins and some small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8925 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-14 15:55:22 +00:00
André Pönitz
94d27f8a11 move some stuff to anon namespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8909 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 19:19:53 +00:00
Jean-Marc Lasgouttes
6b89c145fd fix toggling of collapsable insets with the mouse (bug 1558)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8901 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 14:56:06 +00:00
André Pönitz
eec2d548eb fix #1654
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8898 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 12:05:27 +00:00
André Pönitz
46262e6298 fix #1589
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8892 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 09:31:48 +00:00
Lars Gullik Bjønnes
7c15014ec2 change "support/std_sstream.h" to <sstream>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8849 a592a061-630c-0410-9148-cb99ea01b6c8
2004-07-24 10:55:30 +00:00
Lars Gullik Bjønnes
fe87ad6b88 add Debug::DEBUG and add some saver coversions to qt
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8816 a592a061-630c-0410-9148-cb99ea01b6c8
2004-06-18 13:31:55 +00:00
Alfredo Braunstein
ff6706002f avoid to update when navigating
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8759 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-18 07:18:02 +00:00