Commit Graph

73 Commits

Author SHA1 Message Date
Lars Gullik Bjønnes
c46b7d8955 Merge the unicode branch into trunk.
- src/support/unicode.[Ch]: new files with functions for converting
  to and fro ucs4, ucs2 and utf8.
- src/support/docstring.h: specialization of basic_string that
  holds a uint32_t internally.
- Several functions changed to use char_type instead of char or unsigned char.
- Qt3 and Qt4 sends ucs2 on to core
- Gtk sends ucs4 on to core
- Read and write utf-8 .lyx files.
- font_metrics and painter updated to handle ucs4 chars as input.
- Quite a bit of ugly compability code, conversion string->docstring, etc.
- Have fun...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 22:54:59 +00:00
Jean-Marc Lasgouttes
f687620a13 fix reading of math macros when they occur before any formula
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10770 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-24 11:04:30 +00:00
Lars Gullik Bjønnes
59413be9a0 clone NVI, other small stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9295 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-23 23:04:52 +00:00
José Matox
f17505a8fb Remove space at end of line, when superfluous.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8953 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-16 11:27:51 +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
75ba515b18 *** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8621 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-07 16:54:15 +00:00
André Pönitz
57501b9306 several small fixes for mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8614 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-06 19:25:39 +00:00
André Pönitz
52ed731842 rest of patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8544 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-27 12:46:30 +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
Angus Leeming
15dc5fa5d6 lyxfont.h no longer #includes LColor.h.
Change the LyXFont setXYZ member functions to return void, not LyXFont &.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7765 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-16 09:01:15 +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
4ba8a4d6f6 the clone auto_ptr patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7356 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-25 17:11:25 +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
2a5ab60ce8 IU of clone() and getLabelList()
Some mathed internal renamings to prepare further IU


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7173 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-16 11:49:38 +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
André Pönitz
a8e8e755fc rename the members of Dimension
* dimension.[Ch]: a -> asc, d -> des, w -> wid


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7053 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-27 13:55:03 +00:00
Angus Leeming
47003fdee1 Scrap LColor mathcursor. Use only logical colours in mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6801 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-14 16:00:42 +00:00
André Pönitz
1829cdef6a promote MathMetricsInfo to MetricsInfo, change mathed accordingly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6555 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-21 14:20:48 +00:00
Lars Gullik Bjønnes
99d1627a47 dont use pragma impementation and interface anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-13 16:53:15 +00:00
André Pönitz
00413a7841 merge MathArray and MathXArray classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4843 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-02 14:29:42 +00:00
André Pönitz
a92d23883e save inset lock state in the .lyx file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4828 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-01 15:53:46 +00:00
André Pönitz
22b1e8d33a macro handling cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4620 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 14:24:47 +00:00
André Pönitz
9b2be91bed replace (ascent, descent, width) triples by a structure 'dimension'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4601 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-11 11:27:24 +00:00
André Pönitz
3786644124 most of the so far unapplied stuff from porto including proper support for
\fbox and a few bugfixes (and quite probable lots of new bugs)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4466 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-24 15:37:14 +00:00
André Pönitz
fe87869cb7 fonts as insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-30 07:09:54 +00:00
John Levon
06f9f0ea08 OK I'll try guii1 again ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4186 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 09:21:32 +00:00
André Pönitz
4366ef931c - revive 1.1.6 eqnarray behaviour when pressing <Del> in the last position of a
cell.
- allow additional argument to math-macros for drawing purposes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3823 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-25 12:11:25 +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
49710a766f input support for \mathcal, \mathbb etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3186 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-11 11:33:43 +00:00
André Pönitz
491148bbd9 buglets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3044 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-20 08:27:13 +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
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
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
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
c5e13278e7 leave red backslash as visual clue in formula when typing macro names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2833 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-02 15:01:57 +00:00
André Pönitz
d2a9294e3f sanity check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2832 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-02 10:50:10 +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
André Pönitz
18a610d4d6 cloase a leak; remove a few casts; cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2410 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-03 09:54:48 +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
96a1cc78b2 support for \land and \vee, cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2292 a592a061-630c-0410-9148-cb99ea01b6c8
2001-07-20 10:57:22 +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