Jean-Marc Lasgouttes
b4d20b81af
Handle properly script insets which nucleus has more than one
...
element (like {a'}^{2}). (froward port from 14802)
* src/mathed/math_nestinset.C (script): when creating a script
inset, handle specially previous atom if it is a MathBraceInset
(this is used in interactive input).
* src/mathed/math_parser.C (parse1): when creating a script inset,
handle specially previous atom if it is a MathBraceInset (this is
used in parsing phase).
* src/mathed/math_scriptinset.C (write): put nucleus into braces
if it contains more than one element or is itself a script inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14819 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:57:49 +00:00
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
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
Georg Baum
fad5cd6700
fix bug 2234
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13399 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 15:05:47 +00:00
Georg Baum
2535ea14bd
readd xymatrix inset (bug 2238)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-22 12:26:06 +00:00
Georg Baum
5be7e73fde
don't dereference invalid iterators
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10596 a592a061-630c-0410-9148-cb99ea01b6c8
2005-11-08 15:12:05 +00:00
Georg Baum
4341a88656
fix bug 2067
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10553 a592a061-630c-0410-9148-cb99ea01b6c8
2005-10-14 10:50:23 +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
Georg Baum
02ab1bf675
fix math color inset UI and parsing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10083 a592a061-630c-0410-9148-cb99ea01b6c8
2005-06-17 14:35:19 +00:00
Georg Baum
728c2da883
fix \| after \left or \right in mathed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9689 a592a061-630c-0410-9148-cb99ea01b6c8
2005-03-02 14:26:12 +00:00
Martin Vermeer
96cdf4a91a
Georg Baum's and my math array partition lines related stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9626 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-14 14:25:18 +00:00
Lars Gullik Bjønnes
342cdf4322
the convert patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9538 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-27 21:05:44 +00:00
Georg Baum
c94c85689a
fix bug 1459 (with help from Andre)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9459 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-10 08:38:28 +00:00
Lars Gullik Bjønnes
5843057992
add specialization for unsigned long, and clean up header file
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9454 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-07 13:32:26 +00:00
Georg Baum
54a21aa305
fix bug 1542 (crash wehn reading invalid equations)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9408 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-28 15:43:29 +00:00
Lars Gullik Bjønnes
47153f7c3d
Use lyx::support::atoi
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9198 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-07 13:27:20 +00:00
Lars Gullik Bjønnes
0ea0f3399a
c_str fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8986 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-16 20:37:34 +00:00
André Pönitz
02ebc072b0
remove per-inset position cahce, use new external map instead.
...
this allows us to bomb early on uninitialized cache values.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8923 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-14 14:03:42 +00:00
André Pönitz
b119fd180d
remove unused mathed parts
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8915 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 22:24:42 +00:00
André Pönitz
25b1956b2a
fix some fbox drawing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8903 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 15:06:46 +00:00
André Pönitz
5fc3d2b0af
fix bug #560
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8900 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 13:19:58 +00:00
André Pönitz
9efc77e4db
fix #928
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8889 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-12 21:29:21 +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
André Pönitz
0ea524145a
partial revert of macro stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8648 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-13 13:54:58 +00:00
André Pönitz
b447408de2
macro rework
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8644 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-13 06:27:29 +00:00
André Pönitz
82197e8dcf
fix reading subscripts/superscripts.
...
A true one-liner.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8619 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-07 12:10:19 +00:00
Lars Gullik Bjønnes
c38370d1c3
the exception safety patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8020 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-03 17:47:28 +00:00
André Pönitz
19198334bc
fix color handling
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7989 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 17:22:27 +00:00
Lars Gullik Bjønnes
44cd0fc9a1
The std::string mammoth path.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00
Martin Vermeer
f6b8ed1c32
Small fixes to allow building with STLport
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7858 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 09:35:38 +00:00
Lars Gullik Bjønnes
fcdb71906b
Change Assert to BOOST_ASSERT.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7722 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:25:35 +00:00
Angus Leeming
4c6e0fe422
Removed all redundant using directives from the source.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7704 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-08 00:33:41 +00:00
Angus Leeming
0705dae8a3
Finish the task of removing all cruft from the header files.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7703 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-07 21:25:37 +00:00
Angus Leeming
f239801ae3
Changes due to the removal of using directives from support/std_sstream.h.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7686 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 18:02:24 +00:00
Angus Leeming
236ea81bc5
Replace LString.h with support/std_string.h,
...
Lsstream.h with support/std_sstream.h,
support/LIstream.h with support/std_istream.h,
support/LOstream.h with support/std_ostream.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7685 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 17:23:11 +00:00
Angus Leeming
3b3c072df0
Strip out redundant #includes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7668 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 02:53:05 +00:00
Angus Leeming
1f9e9cf517
Standardise the header blurb in mathed.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7574 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-19 13:00:56 +00:00
Lars Gullik Bjønnes
f1ff990de7
Always use std::endl with lyxerr
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7481 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-02 11:30:30 +00:00
Lars Gullik Bjønnes
01b31c56c9
make lyx compile with gcc 3.4. remove some warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7314 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-18 08:46:00 +00:00
André Pönitz
a105cf94a9
'fix' stupid compiler warnings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7291 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-16 14:20:43 +00:00
André Pönitz
11cee62d35
allow 'renewcommand' and 'def' for math macros
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7241 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-04 15:55:18 +00:00
André Pönitz
285952e130
IU of drawing phase one without 'semantic changes' as requested by John
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7079 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-02 10:03:27 +00:00
André Pönitz
38fce2feac
Prepare mathed for unified two-stage drawing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7059 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-28 13:22:36 +00:00
Lars Gullik Bjønnes
d605c30d8c
iterators-2.diff + some whitespace changes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6995 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-21 21:20:50 +00:00
André Pönitz
0e9bd2e87d
STRCONV() all over the place
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6956 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-13 16:24:49 +00:00
André Pönitz
d31244b5e2
The 'bformat' introduction
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6953 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-13 09:48:57 +00:00
André Pönitz
8bfa794d28
Ling Li's makebox support
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6943 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-07 07:46:04 +00:00
André Pönitz
653eaace76
* paragraph.h: make operator= private unimplemented as long as it is
...
unusable
* ParagraphList.C: whitespace
* paragraph.[Ch]:
paragraph_pimpl.[Ch]:
paragraph_funcs.C:
CutAndPaste.C:
undo_funcs.C: whitespace + Paragraph * -> Paragraph (const) &
* text2.C:
undo_funcs.[Ch]: Paragraph * -> ParagraphList::iterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6881 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-29 14:05:54 +00:00
André Pönitz
defe8051ab
fix random crashes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6867 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-28 08:44:56 +00:00
André Pönitz
c7d0b70e7c
fix #1073
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6843 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-24 10:47:05 +00:00