Commit Graph

429 Commits

Author SHA1 Message Date
Angus Leeming
0be0fcfd59 If I ever see another licence blurb again, it'll be too soon...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-23 00:17:00 +00:00
André Pönitz
cb5af90a1b support for \overset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7594 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 16:01:13 +00:00
André Pönitz
95e822007d next try to single Inset::metrics() computation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7592 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 12:38:21 +00:00
André Pönitz
371e05fd3e hm... too eager I suppose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7591 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 12:00:58 +00:00
André Pönitz
359519bda4 remove the spurious metrics() (ex-update()) call from setRowHeight()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7590 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 11:54:02 +00:00
André Pönitz
0510f56da8 the lyxrow changes including accessors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7583 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 09:40:56 +00:00
André Pönitz
b7f49f9b42 * lyxrow.[Ch]: add end_ member
* lyxrow_funcs.C: use LyXRow::end_

	* lyxtext.h (singleWidth): add LyXFont parameter

	* rowpainter.C:
	* text2.C: adjust LyXText::singleWidth() calls

	* text.C (redoParagraph): simplify row breaking logic


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7580 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-22 07:49:57 +00:00
André Pönitz
017649d4a5 Alfredo's getRowNearY patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7564 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-18 08:35:25 +00:00
André Pönitz
d28b89ba80 add an additional full rebreak for 'resizeCurrentBuffer'.
remove some #if 0  code from singleWidth rebreaking


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7558 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-15 15:20:50 +00:00
André Pönitz
040a03e4a4 rowpainter.C: remove extra metrics calls
lyxtext.h: merge the two constructors into a single one,
 pass reference to owner's par list

 BufferView_pimpl.C:
 text.C:
 text2.C: adjust


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7557 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-15 14:54:19 +00:00
André Pönitz
43637efd25 better fix for anchorrow problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7555 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-15 13:12:24 +00:00
André Pönitz
09e0187997 split LyXText::rowlist_ into individual Paragraph::rows_ chunks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7551 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-15 08:03:54 +00:00
André Pönitz
55a3d84728 some infrastructure to prepare the rowlist split
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7544 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 14:10:13 +00:00
André Pönitz
29eb0e10ce more getPar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7541 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 11:56:04 +00:00
André Pönitz
648523b389 some more getPar removals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7539 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 11:16:31 +00:00
André Pönitz
b54607cb4f remove four getPar()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7537 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 09:59:05 +00:00
André Pönitz
003bb374a5 next try...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7536 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 08:34:13 +00:00
André Pönitz
a9d4d09715 grr.. revert. wrong patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7535 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 08:17:27 +00:00
André Pönitz
87cab819b4 remove Row::pit_ member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7534 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 07:43:57 +00:00
André Pönitz
566e084f63 weekend stuff less the chunk John "*strongly* disagrees with"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7527 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-11 09:09:01 +00:00
André Pönitz
87d49485e9 more not-so-useful stuff removed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7526 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-08 16:24:32 +00:00
André Pönitz
5dd43bfad1 * lyxtext.h:
* text.C (breakAgainOneRow): removed


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7524 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-08 15:54:23 +00:00
André Pönitz
aca0551def don't fiddle with rows when they will be recomputed soon...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7523 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-08 15:48:57 +00:00
André Pönitz
48514415e8 * text.C: replace rowlist fiddling with rebreak of full par
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7522 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-08 15:34:17 +00:00
André Pönitz
07bfd64255 replace "complicate" BufferView::update(...) calls with simpler ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7491 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-04 09:06:35 +00:00
André Pönitz
e275c5d811 remove need_update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7476 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-01 15:17:22 +00:00
André Pönitz
a848fced97 duplicate rowbreaking code in redoParagraph as starting point for later
consolidation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7474 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-01 14:12:04 +00:00
André Pönitz
5eb1059f50 make redoParagraph more independent of current cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7470 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-01 11:22:13 +00:00
André Pönitz
bd3f5d89f4 remove unneeded LyXText::workWidth(InsetOld const *)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7466 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-31 14:07:59 +00:00
André Pönitz
42e43ec73d remove broken operator==() for Paragraphs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7465 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-31 13:38:06 +00:00
André Pönitz
184b5dadaf - y - (-y) is pretty close to 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7440 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-29 10:00:51 +00:00
André Pönitz
6e844a0aed small stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7436 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-29 01:46:09 +00:00
André Pönitz
84518472df some cleanup (TEXT() gone, argumenst always == false etc)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7431 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-28 22:34:48 +00:00
Lars Gullik Bjønnes
8721e76079 more compress support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7419 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-28 14:40:29 +00:00
André Pönitz
ebab2dbbfa use doubles again for x-coordinates. They are needed after all...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7411 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-28 12:20:42 +00:00
André Pönitz
b6f6469040 remove Buffer * parameter from a bunch of get*Font functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7398 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 21:59:06 +00:00
André Pönitz
a4776de061 get rid of LyXText::need_break_row
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7389 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 15:41:46 +00:00
Asger Ottar Alstrup
60896529f0 Optimise rowBreakPoint and setHeightOfRow as well.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7378 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 11:16:25 +00:00
André Pönitz
330fdeda26 restrict scope of temporary variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7377 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 10:44:39 +00:00
Asger Ottar Alstrup
9ea1c79aa0 When calculating fill, exploit data structure to avoid superfluous calls to getFont.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7376 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 10:42:11 +00:00
Asger Ottar Alstrup
672ab42137 Work to improve performance a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7373 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 00:37:17 +00:00
Lars Gullik Bjønnes
2e57f2ff0a rename Inset to InsetOld
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7360 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-25 21:20:24 +00:00
Asger Ottar Alstrup
c3a34a64f1 Undo cleaned up. It seems to work pretty well now.
* undo_funcs.h: Removed setCursorParUndo to simplify things a bit.
	Renamed setUndo family to recordUndo. Renamed FINISH to ATOMIC
	which I think is a bit clearer. EDIT is gone, since it was
	premature optimisation, and broken for mathed anyway.
	* undo_funcs.C (performUndoOrRedo): Cleaned up and made it work
	with cursor positioning in insets as well (math insets still do not
	work, but that's a different story anyway.) It mysteriously
	crashes sometimes with undo in the first paragraph, but I'm fairly
	confident that this is a compiler bug.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7358 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-25 19:18:43 +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
a45815184b some more infrastructure...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7343 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-22 11:54:39 +00:00
André Pönitz
d16e9b926b LyXText::rebuild -> LyXText::metrics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7342 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-22 10:12:24 +00:00
André Pönitz
2eae49ac5a make textWidth access a bit simpler
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7315 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-18 12:05:50 +00:00
André Pönitz
99b64f351e two-phase-drawing for InsetText & InsetTabular
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7312 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-18 07:47:07 +00:00
André Pönitz
3a3d06a4fd remove some commented out code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7307 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-17 15:04:09 +00:00
André Pönitz
7b0b1cdaae remove twice unused variable 'tmpheight'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7304 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-17 11:34:48 +00:00