Commit Graph

134 Commits

Author SHA1 Message Date
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
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
970f0247f7 halfway through fixing size of math in non-standard sizesd paragraohs like
section headings...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2907 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-19 17:46:13 +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
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
df1613ed4a disable leaving the inset during selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2877 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-12 16:12:32 +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
e9baa06e51 remove public method;
add a static_cast<>


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2827 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-01 12:23:00 +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
207bc5e3f4 Angus' patch to comment out debug mode's coloured frames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2792 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-24 12:48:31 +00:00
André Pönitz
77dca4f3bc new parser
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2528 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-17 09:48:24 +00:00
André Pönitz
c9c3b9b447 move things around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2460 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-09 09:19:18 +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
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
61529b136e prepare re-enabling LaTeX feature validation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2240 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-13 14:54:56 +00:00
André Pönitz
4665fc9c30 remove unneeded #includes, cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2232 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-13 09:54:32 +00:00
André Pönitz
72f625da0e recompute macro metrics more often to catch changes to the template
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2224 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-12 11:55:57 +00:00
André Pönitz
0024f42724 split super/subscript handling in new base class MathUpDownInset and
MathScriptInset/MathBigOpInset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2220 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-12 07:18:29 +00:00
André Pönitz
b24b504cd2 Small bugfixes and cosmetic changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2208 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-09 10:19:50 +00:00
Lars Gullik Bjønnes
ec5d8718c5 mathed95.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2193 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-06 12:09:32 +00:00
Lars Gullik Bjønnes
85a5ea7bfc change a lot of methods to begin with small char
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2150 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-28 10:25:20 +00:00
Lars Gullik Bjønnes
ea853ed613 changeCase fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2149 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-27 18:29:18 +00:00
Jean-Marc Lasgouttes
9f42114d4d some fixes for compaq cxx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2147 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-27 15:57:57 +00:00
Lars Gullik Bjønnes
d1182f17da LyX Drinkers Union: patch 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2141 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-25 00:06:33 +00:00
Angus Leeming
31b56dac80 In for a penny, in for a pound. Consistent use of // -*- C++ -*-
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2123 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-14 08:20:41 +00:00
Lars Gullik Bjønnes
b9d25422e0 mathed67.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1968 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-27 12:35:55 +00:00
Lars Gullik Bjønnes
47b341b996 mathed65.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1954 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-25 15:43:57 +00:00
Lars Gullik Bjønnes
6b95441288 mathed64.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1950 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-24 16:13:38 +00:00
Lars Gullik Bjønnes
53cf203fb9 use LFUN_MESSAGE, inhritprivately from noncpopyable, remove warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1932 a592a061-630c-0410-9148-cb99ea01b6c8
2001-04-17 14:20:21 +00:00
Lars Gullik Bjønnes
37603745aa mathed40.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1665 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-05 10:52:39 +00:00
Lars Gullik Bjønnes
d96f7c829c small cleanup read ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1663 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-05 10:18:36 +00:00
Lars Gullik Bjønnes
b429849306 mathed37.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1652 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-01 15:33:22 +00:00
Lars Gullik Bjønnes
aae45c2088 more mathed changes, read the changelog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1649 a592a061-630c-0410-9148-cb99ea01b6c8
2001-03-01 14:07:43 +00:00
Lars Gullik Bjønnes
4203d759ad fix the matrix reading other small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1642 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-28 17:21:16 +00:00
Lars Gullik Bjønnes
7f6bd7f12d mathed cleanup, change mask for tmpdir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1641 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-28 11:56:36 +00:00
Lars Gullik Bjønnes
d559de976f small mathed change add the find_if
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1632 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-27 11:26:18 +00:00
Lars Gullik Bjønnes
f65b7ff4ab character2.diff.gz
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1625 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-26 15:17:19 +00:00
Lars Gullik Bjønnes
2be247f6ef fix macro, small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1623 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-26 12:53:35 +00:00
Lars Gullik Bjønnes
04a2d2ddb0 mathed33.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1577 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-20 16:00:22 +00:00
Lars Gullik Bjønnes
655e178549 mathed30.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1562 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-20 10:49:48 +00:00
Lars Gullik Bjønnes
9a3176581d small cleanup, doxygen, formatting changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1521 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-16 09:25:43 +00:00
Lars Gullik Bjønnes
d5905fabf6 get rid of several friends small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1519 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-15 12:22:01 +00:00
Lars Gullik Bjønnes
84b7ffa347 more mathed cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1500 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-13 19:10:18 +00:00
Lars Gullik Bjønnes
26428cdf19 more mathed cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1499 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-13 17:08:51 +00:00
Lars Gullik Bjønnes
ac7b713ef7 some inline fix + mathed16.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1496 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-13 15:27:03 +00:00
Lars Gullik Bjønnes
b906c06db6 first go at mathed file cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1495 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-13 13:28:32 +00:00
Lars Gullik Bjønnes
ac5b90b5d1 mathed13.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1489 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-12 15:55:40 +00:00
Lars Gullik Bjønnes
11e5e09d3b patch from Andre and more array changes by me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1483 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-12 08:55:14 +00:00
Jean-Marc Lasgouttes
360a1d7485 compilation fix for mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1465 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-08 15:59:42 +00:00
Lars Gullik Bjønnes
742ebe1f13 the remove reinterpret_cast patch from Andre Poenitz
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1463 a592a061-630c-0410-9148-cb99ea01b6c8
2001-02-08 15:09:15 +00:00
Jean-Marc Lasgouttes
0c5d898d43 Bibtex fix from Angus ; first try at fixing mathed crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1125 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-16 16:15:32 +00:00
Lars Gullik Bjønnes
5f1427b648 more type changes, some consts added
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1061 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-29 18:44:07 +00:00
Lars Gullik Bjønnes
d6665cba42 get rid of dead code, some new functions constify variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1041 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-26 13:54:57 +00:00
Lars Gullik Bjønnes
4c295014fe remove commented HAVE_SSTREAM code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1025 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-18 17:39:21 +00:00
Lars Gullik Bjønnes
45a03f4f67 use the new sstream return non-pods as const, use string instead of char * in a lot of places
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1019 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-14 17:53:12 +00:00
Jean-Marc Lasgouttes
66088f1487 Fix to formula macros from Dekel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1002 a592a061-630c-0410-9148-cb99ea01b6c8
2000-09-05 14:15:09 +00:00
Lars Gullik Bjønnes
d0950aceda read the Changelog, preparing for prerelease
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@680 a592a061-630c-0410-9148-cb99ea01b6c8
2000-04-19 01:42:55 +00:00
Jean-Marc Lasgouttes
c10a9001c8 Three patches from Angus (make LyXGUI::lyxViews private), Dekel (fix
fragile macros in math formulas) and Dekel (add a GUI for setting language).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@678 a592a061-630c-0410-9148-cb99ea01b6c8
2000-04-17 14:00:18 +00:00
Lars Gullik Bjønnes
77e706c441 fix the smallcaps drawing, move xfont metrics functions out from LyXFont, move non-inlineable functions out of line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@638 a592a061-630c-0410-9148-cb99ea01b6c8
2000-04-04 00:19:15 +00:00
Lars Gullik Bjønnes
85798535a1 some using changes small changes in lyxfont and some other things, read the Changelog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@632 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-28 02:18:55 +00:00
Lars Gullik Bjønnes
fa492d6bf0 fix lyxalgo.h, dra pagebreak with text on line, change the math_deco_search a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@597 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-09 23:58:55 +00:00
Jean-Marc Lasgouttes
8dbf9d296e A bit of cxx warniong hunting; update to rpm spec file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@596 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-09 16:13:43 +00:00
Lars Gullik Bjønnes
132fe5e132 the freespacing patch from Kayvan, draw the math empty delim with onoffdash, asure that the tables passed to lyxlex is sorted and sort them if not, use std::lower_bound to search in lyxlex tables, use binary search in stead of linear in math_delim::search_deco, we also sort the math_deco_table upon startup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@594 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-09 03:36:48 +00:00
Lars Gullik Bjønnes
d2b9849fff changes from sprintf to string stream. see comments at top of text.C. read the ChangeLog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@589 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-08 01:45:25 +00:00
Lars Gullik Bjønnes
abb623f787 apply the ostream changes to mathed, some other small related things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@588 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-07 01:14:37 +00:00
Lars Gullik Bjønnes
def72111a5 change to use ostreams instead of string when writing files. fiddling with insettext. font fix in formula.C.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@584 a592a061-630c-0410-9148-cb99ea01b6c8
2000-03-06 02:42:40 +00:00
Lars Gullik Bjønnes
a0cf758d5a remove the old painter, remove support for mono_video, reverse_video, fast selection, work in progress to make insetlaex accent better. editable insetcommand drawn as buttons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@560 a592a061-630c-0410-9148-cb99ea01b6c8
2000-02-17 19:59:08 +00:00
Lars Gullik Bjønnes
d6f638ea96 some small updates to Painter, and make the new painter the default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@555 a592a061-630c-0410-9148-cb99ea01b6c8
2000-02-14 22:14:48 +00:00
Lars Gullik Bjønnes
cfdd73ea94 new painter,workarea and lcolor. Read the diff/sources and ChangeLog...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@550 a592a061-630c-0410-9148-cb99ea01b6c8
2000-02-10 17:53:36 +00:00
Lars Gullik Bjønnes
d8b96c598c pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the crash in Delete, move to pre ind/dec instead of post inc/dec, try to use ostream_iterator in lastfiles.C, remove some debug output, change the rest of the .cdef files, make display of umlaut better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@443 a592a061-630c-0410-9148-cb99ea01b6c8
2000-01-24 18:34:46 +00:00
Lars Gullik Bjønnes
6130fe1aa5 read the ChangeLog, use the C++ style casts more, some changes to the debugbufs, some whitespace changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@366 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-13 00:05:34 +00:00
Lars Gullik Bjønnes
75c5c8c9e5 the fstream/iostream changes and some small other things
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@354 a592a061-630c-0410-9148-cb99ea01b6c8
1999-12-07 00:44:53 +00:00
Jean-Marc Lasgouttes
07febc9941 Cxx tweaks, fix display of \epsilon and more. Read changelog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@335 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-25 13:15:52 +00:00
Lars Gullik Bjønnes
4866387e32 some changes that perhaps will help cxx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@330 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-23 14:39:02 +00:00
Lars Gullik Bjønnes
d8a6abd63a white-space changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@313 a592a061-630c-0410-9148-cb99ea01b6c8
1999-11-15 11:06:41 +00:00
Jean-Marc Lasgouttes
ba452ec219 Fix math macro bug, caused by the evil string::operator+=(int)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@212 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-19 16:11:58 +00:00
Lars Gullik Bjønnes
35584afc11 the merge from branch debugstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@180 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-07 18:44:17 +00:00
Lars Gullik Bjønnes
0eccdd1c36 merge from the string-switch branch and ready for a prelease.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@162 a592a061-630c-0410-9148-cb99ea01b6c8
1999-10-02 16:21:10 +00:00
Lars Gullik Bjønnes
27de1486ca Initial revision
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@140 a592a061-630c-0410-9148-cb99ea01b6c8
1999-09-27 18:44:28 +00:00