Commit Graph

170 Commits

Author SHA1 Message Date
André Pönitz
430ba66080 cursor cosmetics for \underset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7596 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 16:14:26 +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
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
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
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
André Pönitz
a58158344d iu2: move localDispatch() to InsetBase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6194 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-18 11:47:16 +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
Lars Gullik Bjønnes
13349032cb ws changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5758 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-01 22:59:25 +00:00
André Pönitz
c22c2482f3 whitespace, unused code, unused convenience function for debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5589 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-06 11:13:56 +00:00
André Pönitz
f46dfd626e "Better" font handling. I've not found a cause for John's crash, but I'd
put in a safety belt which should produce error messages instead. So please
report any message saying "this schould not really happen".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5538 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-29 08:23:32 +00:00
André Pönitz
3c3a628e81 *** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5401 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-15 06:21:59 +00:00
André Pönitz
107ecefbad move some stuff from BufferView_pimpl.C to text3.C and lose a few lines...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5072 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-22 13:02:14 +00:00
André Pönitz
528a1a42d4 try to suppress unneeded spaces when writing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5069 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-22 10:04:11 +00:00
André Pönitz
1d2ac0e558 correct typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5065 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-22 07:06:02 +00:00
André Pönitz
11ffa04773 use the new mouse LFUNs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5021 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-19 10:11:13 +00:00
André Pönitz
ee259f68d5 small bugfix for pasting into non-gridded inset (I broke that yesterday)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4988 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-15 10:02:53 +00:00
André Pönitz
01080c9eda more cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4919 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-09 10:22:35 +00:00
André Pönitz
73b1ac43f4 a bit more const correctness
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4905 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-08 16:08:11 +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
2830796638 uses references instead of returning vectors
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4840 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-02 13:35:05 +00:00
Angus Leeming
984cbba504 * Mathed now caches the BufferView as a weak_ptr.
* PreviewedInset caches the LaTeX snippet.
* Further clean-up of mathed's preview code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4838 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-02 12:38:20 +00:00
Angus Leeming
d91ffd8d78 Previews for \input insets.
Refactor code common to InsetInclude and InsetFormula into a new
PreviewedInset class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4830 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-01 17:28:59 +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
a794a45949 the up/down stuff reworked
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4806 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-30 13:56:02 +00:00
Lars Gullik Bjønnes
e39935204d remove some unneeded version of functions from lstrings,
some gcc 3.2. minor compile fixes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4800 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-28 18:13:51 +00:00
André Pönitz
4d51fc96b4 move things around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4799 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-26 17:23:44 +00:00
André Pönitz
c6b1b59008 some \parbox improvements
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4796 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-26 13:13:20 +00:00
Angus Leeming
00c0baf022 Regenerate a preview only when leaving a math inset with depth 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4763 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-23 14:47:31 +00:00
André Pönitz
7c3cc29952 more work on \parbox support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4657 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-16 18:22:45 +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
d359dd8fca remove unneeded member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4600 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-11 10:20:31 +00:00
André Pönitz
6504da095b using previews might be a good alternative to hard coding such diagrams...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4595 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-10 15:51:28 +00:00
André Pönitz
884923f714 New support for \begin{...}...\end{...} style environments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4563 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-09 09:46:31 +00:00
André Pönitz
469946043f make a some members private
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4552 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-08 14:57:12 +00:00
Angus Leeming
f68a2bfb91 Preview code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4538 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-05 21:24:15 +00:00
André Pönitz
02b6d38f1a speed up preview a bit...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4499 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-27 18:12:50 +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
Lars Gullik Bjønnes
f1c24d1009 *duck*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4417 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-18 15:44:30 +00:00
José Matox
c788ba4d67 playing around with visual feedback for the new mathed font insets
now a font change gets small (and hopefully not too annoying) markers and no two "logical" positions end up in the same physical position on screen. Comments welcome.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4402 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-14 12:24:28 +00:00
José Matox
cfa1446531 fix the fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4399 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-14 10:48:27 +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
Lars Gullik Bjønnes
2b8ef58dc0 ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3804 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 17:42:56 +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
2c81992188 show the 'empty base dot' less frequently
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3522 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-11 15:55:13 +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
0c60793515 partial fix for #141
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3474 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-01 17:01:30 +00:00
André Pönitz
e71bea78ca brute force does not need much code...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3154 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 18:00:36 +00:00
André Pönitz
2c3f160f38 fine-tuning for mouse clicks on script insets;
a few more /// comments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3077 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-26 13:35:08 +00:00
André Pönitz
ef9cb74104 selection using the mouse should work now. Note: an x is not a y, nor is
a y an x. Even if x's and y's come in disguise as xo's or yo's. Then, an xo
is not a yo nor is a yo a x0.  Aaaargh...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3047 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-20 11:15:18 +00:00
André Pönitz
39924c351c simple search-and-replace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3037 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-16 09:55:37 +00:00
André Pönitz
af2a6c6512 introduce test for "equality"
remove a few unneeded declarations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3036 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-16 09:07:40 +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
Angus Leeming
68a3a474b7 Compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2939 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-24 18:10:21 +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
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
02ec9422d0 use 'size_type' at least for container-like stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2761 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-14 14:05:57 +00:00
André Pönitz
c800129f2b partial fix for the macro problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2727 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-11 15:46:51 +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
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
244d75e942 move width_/ascent_/descent_ cache into seperate ABC.
sizeof(MathInset) == 24 on IA32


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2414 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-03 17:55:10 +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