Commit Graph

158 Commits

Author SHA1 Message Date
André Pönitz
277e305082 Make Angus' compiler happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3794 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 06:57:13 +00:00
André Pönitz
858355fb69 - reduce sizeof(MathCharInset) by 20 by better font caching
(lots of subsequent changes)
- ascii art drawing for \frac and \sqrt


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3780 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-19 16:55:58 +00:00
André Pönitz
4a5353cbbf allow deletion of a row of empty cells in an eqnarray even if we are in the
last row (was some off-by-one error)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3697 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-07 17:48:28 +00:00
Lars Gullik Bjønnes
7ea7dabed1 to much stuff for my liking...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3554 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-16 15:59:55 +00:00
André Pönitz
dd60fa8ccb fix parser bug;
some stuff for hadling xymatrix (not 'activated' yet)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3514 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-11 08:19:02 +00:00
André Pönitz
a64a948cea bugfix (too many \\ when writing gridded structures)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3498 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-07 08:25:55 +00:00
André Pönitz
00e2f3f631 small internal stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3497 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-07 08:19:47 +00:00
André Pönitz
b1d75ead87 Somewhat better behaviour for Umlauts in math
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3472 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-01 14:56:49 +00:00
André Pönitz
c0fc732905 allow cut&paste of rectangular "regions" of cells
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3218 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-15 16:13:11 +00:00
André Pönitz
6a53128822 enter gridded insets a bit higher
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3202 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-13 13:40:08 +00:00
André Pönitz
18f613448f re-enable automatic deletion of empty super/subscripts;
remove now unneeded pos() argument from idxUp/idxDown functions;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3197 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-12 13:11:28 +00:00
André Pönitz
e52ac5df2b more cursor up/down tuning...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3194 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-11 18:51:47 +00:00
André Pönitz
ebe6d25126 deep iterators for math insets;
use brute force for to determine "best" position when doing cursor up/down
(will be sped up a bit again soonish...)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3153 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 17:50:18 +00:00
Lars Gullik Bjønnes
33a28bdc9c Add string << operators for the other streams as well, and removes
c_str() all places where it is not needed anymore.
(I also add config.h to several files that was missing it)
+ added s string constructor to math_symbolinset

I also change some "while(" to "while ("

mmm ... yes ... I add a "zero()" function to LyXLength... an "empty()"
function did not seem appropriate. changed a couple of places that
checked on length.value() != 0.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3149 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 08:04:20 +00:00
André Pönitz
ef9efa6c0d do as Lars says
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3142 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-03 17:52:48 +00:00
André Pönitz
aed2b1804c make operator<<(*stream, ...) free functions;
make *stream 'class' instead of 'struct' (not finished);
use LCOlor::mathline only for boxes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3140 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-03 16:24:50 +00:00
Lars Gullik Bjønnes
b720d576c0 test add a string operator and comment out a couple of unused args
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3134 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-02 17:03:46 +00:00
André Pönitz
5049e123be better handling of up/down
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3123 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-30 14:40:38 +00:00
André Pönitz
8c3c804a4d fix drawing glitch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3118 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-30 09:16:16 +00:00
André Pönitz
d659612225 reduction of header dependencies, part II (use new types
lyx::layout_type and lyx::textclass_type all ovcer the place)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3117 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-29 17:12:21 +00:00
André Pönitz
9b0945a47f re-enable the mathcursor->normalize() safety belt.
This trades Asserts() against a console warning


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3103 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-28 13:09:40 +00:00
André Pönitz
62818cea01 fix crash discovered by Michael
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3085 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-27 09:44:32 +00:00
André Pönitz
c12d116ce7 support for \begin{cases}...\end{cases} (for interactive creation type M-x
math-insert cases <number_of_case_you_want>)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3011 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-12 16:45:09 +00:00
André Pönitz
4da1f8e66f simple MathML output for integrals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3000 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-09 18:02:20 +00:00
André Pönitz
c93e9dcbc5 some support for matrix operations with maple ('M-x math-extern maple evalm')
further cosmetics


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2991 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-09 08:35:57 +00:00
André Pönitz
0daba49b1d don't #include too much stuff in .h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2984 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-08 12:06:56 +00:00
André Pönitz
f105559752 more mathml stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2979 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-07 18:15:24 +00:00
André Pönitz
7cccd80619 change output to uses streams instead of strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2977 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-07 17:30:26 +00:00
André Pönitz
0f23028f4b some support for det and abs for math-extern
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2970 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-07 10:21:51 +00:00
André Pönitz
6e3fcdf812 start native C++ support for Octave, Maple and MathML
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2969 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-07 08:51:35 +00:00
André Pönitz
cde897f38b remove position cache from insets - these were the last data item stored in
each inset, so we are down to the absolute minimum here...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2929 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-24 09:16:06 +00:00
André Pönitz
4ca7022e52 - updated BUGS
- improved cursor movement in grids when pressing home/end


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2911 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-23 07:33:03 +00:00
André Pönitz
40b2b89d4d - remove MathStyles cache from those insets that don't need it
- fix math font sizes in headings etc
- remove unused static member int MathInset::workwidth


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2909 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-22 15:37:49 +00:00
André Pönitz
5507c1ad69 use stream-like syntax for LaTeX output
(instead of inset.write(stream) functions)

prepare fix for proper font sizes in chapter heading etc...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2899 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-19 11:25:48 +00:00
André Pönitz
35d74b0e6f some visual support for \lefteqn
fix some writeNormal() issues


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2895 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-18 13:21:21 +00:00
André Pönitz
761fab540e support reading TeX's $$...$$ syntax
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2887 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-15 14:19:16 +00:00
André Pönitz
9295f8236e Use references instead of pointers where possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2867 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-12 12:02:49 +00:00
André Pönitz
0f5ff99bc1 Even more ugly changes and a new file dependency to shut up Jean-Marc's
compiler *sigh*


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2804 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-26 16:52:34 +00:00
André Pönitz
7435fca771 further code uglification to make Jean-Marc's compiler happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2803 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-26 15:20:45 +00:00
André Pönitz
4c973a6a7e fix bug discovered by Garst
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2729 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-12 07:48:48 +00:00
André Pönitz
e4c58b72be try to do with super- and subscripts what TeX does
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2722 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-11 10:58:17 +00:00
André Pönitz
3b2f6decf2 read/write support for the AMS split environment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2688 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-05 12:57:13 +00:00
André Pönitz
98e9f5f2b6 some support for the [x][x]alignat environments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2684 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-04 13:32:06 +00:00
André Pönitz
50a865b664 some support for TeX's \kern primitive in the parser.
use \kern instead of yesterday's home grown CheatInset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2569 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-21 14:20:50 +00:00
André Pönitz
d5eb253d6a fix for recent 'column shift' bug
perhaps fix for g++3.0 compile problem


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2486 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 13:50:42 +00:00
André Pönitz
6c12ac0526 fix bug due to recent typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2483 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 12:42:04 +00:00
André Pönitz
338fb721b8 some visual feedback for extra vertical space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2481 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 12:12:03 +00:00
André Pönitz
babee598f4 store optional eol arg and write it back if necessary
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2480 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 11:51:06 +00:00
André Pönitz
8de80cc1e7 move error message to a better place...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2478 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 11:04:23 +00:00
André Pönitz
431543cc20 improve end-of-line handling in the presence of optional args to \\
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2477 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 10:39:56 +00:00
André Pönitz
cbf29c8fdc new hierarchy for frac-like things
'native' \stackrel support
remove MathInset::name_ member (sizeof(MathInset) == 20 on IA32 now);


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2457 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-08 17:26:30 +00:00
André Pönitz
08c784de22 proper cursor up/down for centered and right aligned grid columns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2450 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-08 09:31:36 +00:00
André Pönitz
8b7b3a5895 - fix nasty bug due to missing InsetFormula copy c'tor
- make all cache variables mutable, remove const_casts


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2426 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-06 17:20:26 +00:00
André Pönitz
51e0c8bd1f everything is an inset. sizeof(MathInset) == 36 on IA32
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2413 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-03 17:10:22 +00:00
Jean-Marc Lasgouttes
a36dbaf607 Andre's mathinset shrink patch ; default .lyx extension when loading files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2399 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-01 13:28:45 +00:00
André Pönitz
fda98080cc cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2353 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-26 06:56:43 +00:00
André Pönitz
9ccefe810b mathed108.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2352 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-26 06:46:50 +00:00
André Pönitz
5c40a062b2 rename math_(root|grid).[Ch] to math_(root|grid)inset.[Ch]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2259 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-17 07:38:41 +00:00