Commit Graph

338 Commits

Author SHA1 Message Date
André Pönitz
0d43ba149a the stuff from the sneak preview:
For one, it still contains a few things that are already in CVS (the
'brown paperbag' changes).

Secondly, this changes the ParagraphList to a std::vector but does not
yet take full advantage of it except removing LyXText::parOffset() and
similar.

I had an extensive talk with my profiler and we are happy nevertheless.

This also moves almost all Cut&Paste specific stuff from text.C to
CutAndPaste.C. Much smaller interface now... Namespace CutAndPaste is
now  lyx::cap::. Was inconsistent with the rest....

Make ParagraphList a proper class. We'll need this later for a
specialized erase/insert.

Remove some unneeded prototypes and function declarations

Use ParameterStruct directly instead of ShareContainer<ParameterStruct>

Inline a few accesses to CursorSlice members as suggested by the profiler.

Fix commandline conversion crash reported by Kayvan.

Replace PosIterator by DocumentIterator. The latter can also iterate
through math and nested text in math...

Remove math specific hack from Documentiterator

Derive InsetCollapsable from InsetText instead of using an InsetText
member. This give us the opportunity to get rid of the InsetOld::owner_
backpointer.

Cosmetics in CutAndPaste.C and cursor.C. Fix nasty crash (popping slices
off an empty selection anchor). Add a few asserts.

Remove all 'manual' update calls. We do now one per user interaction which
is completely sufficient.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8527 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-25 09:16:36 +00:00
André Pönitz
b634b3eb3b split LyXFunc::getStatus() into inset specific chunks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8500 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 13:57:20 +00:00
André Pönitz
9e78fe66de remove a few rarely neede LyXTExt member functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8499 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 13:28:49 +00:00
André Pönitz
5198e1d9a3 The Buffer::LyXText -> Buffer::InsetText patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8498 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 12:53:43 +00:00
André Pönitz
ec4ab8ce18 revert Buffer LyxText->InsetText commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8489 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-11 17:16:38 +00:00
André Pönitz
1b3f5ee46f the Buffer::text -> inset change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8488 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-11 16:09:42 +00:00
André Pönitz
4c8d536692 redo undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8481 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-08 21:14:45 +00:00
André Pönitz
fc52df8243 the DocIterator stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8472 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-01 17:12:09 +00:00
André Pönitz
2c535ef9e9 some de-mathed-ification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8459 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-25 14:39:14 +00:00
André Pönitz
e6b54c9fb6 * dispatchresult.h: rename 'FINISHED' to 'FINISHED_LEFT'
* cursor.[Ch]: prepare for localized getStatus()

	* lyxtext.h:
	* tabular.C:
	* text.C:
	* text2.C:
	* text3.C:  streamlines the LyXText cursor movement handlers a bit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8453 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-20 17:19:53 +00:00
Jürgen Spitzmüller
56a3e2e1c0 add lfun 'quote-insert' arguments single/double (ERT fixes not included)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8450 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-20 10:32:44 +00:00
Alfredo Braunstein
3d0d1e5a82 move some coords to absolute
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8438 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-16 17:26:09 +00:00
André Pönitz
357a3741c0 * insettabular.[Ch]: remove remains of the 'update' mechanism,
simplify cursor moving function,
	  re-enable horizontal scrolling for large tables

	* insetbase.C:
	* insetbase.[Ch]: remove explicit 'DispatchResult' return type and
	  implicitly assume 'DispatchResult(true, true) with exception of
	  InsetBase::priv_dispatch which does the equivalent of
	  'retrun DispatchResult(false)'

	* inset*.[Ch] (priv_dispatch): adjust


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8435 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-16 11:58:51 +00:00
André Pönitz
02291d14f1 some table work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8432 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-13 16:22:53 +00:00
André Pönitz
7a0b5603e5 more IU as advertised
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8431 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-13 13:51:12 +00:00
André Pönitz
2288d17247 more IU stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8430 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-13 11:05:29 +00:00
André Pönitz
4bcfc43c29 IU stuff + shuffling things from BV::dispatch to LyXText::dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8427 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-13 07:30:59 +00:00
André Pönitz
df974a3904 add LCursor & parameter to cursor moving functions
additional small stuff


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8424 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-12 16:36:01 +00:00
André Pönitz
2a5bc90633 bug + spped fixes + small stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8421 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-11 14:45:44 +00:00
André Pönitz
299b6e315a a bit of selection is back
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8415 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-06 16:50:29 +00:00
André Pönitz
3f01b19844 shift some text related stuff from BufferView::dispatch to LyXText
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8411 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-06 13:59:26 +00:00
Alfredo Braunstein
09e11f4d38 fix some coordinates (tabular and math missing)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8410 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-06 13:18:49 +00:00
André Pönitz
281047c2bf two bug fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8401 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-04 11:23:25 +00:00
André Pönitz
ccd12088c5 * BufferView.[Ch] (insertInset):
* BufferView_pimpl.[Ch] (insertInset): remove unneeded return value

	* text2.C:
	* text3.C: adjust


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8400 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-04 09:44:12 +00:00
André Pönitz
29ef6251e8 re-enable click on button insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8394 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-03 16:44:57 +00:00
André Pönitz
14d27fe324 fiix FIXMEs by moving message() from FuncRequest to the cursor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8390 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-03 11:49:05 +00:00
André Pönitz
22590a98b3 remove math cursor plus
* BufferView.C:
	* cursor.[Ch]: some additional asserts

	* undo.[Ch]: remove LyXText dependency in interface

	* lyxfunc.C: adjust

	* lyxtext.h (firstPar, lastPar): remove dead functions

	* text.C:
	* text2.C:
	* text3.C:
	* paragraph.[Ch]: adjust


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8386 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-03 08:56:28 +00:00
André Pönitz
a73da74db2 * cursor.[Ch]: remove direct access to anchor
* text.C: remove findText() hack


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8382 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-02 16:38:13 +00:00
André Pönitz
99aacdad5c more IU
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8376 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-30 11:41:12 +00:00
André Pönitz
1eaa3eb913 more IU
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8371 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-26 10:13:15 +00:00
André Pönitz
ccc5d55764 Part of IU.
####################################################################

          1.4.0cvs is now NOT fit for any serious use

####################################################################


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8363 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-20 14:25:24 +00:00
André Pönitz
70d0ba9001 the monster patch
mathed is completely broken, but it's difficult to imprevo with such a
big patch in the tree.

If things don't improve until tomorrow evening, I'll revert this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8357 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-15 17:34:44 +00:00
André Pönitz
691594432d more shuffling...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8347 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 17:21:39 +00:00
André Pönitz
6238e20d09 move selStart and selEnd from LyXText to BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8344 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 15:09:01 +00:00
André Pönitz
4eb75f09eb move the Selection structure from LyXText to BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8342 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 14:16:11 +00:00
Alfredo Braunstein
bc596c4af7 fix two lfuns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8341 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 09:33:14 +00:00
André Pönitz
25bafa2772 Anchor globalization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8340 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 18:08:13 +00:00
André Pönitz
d8f81752eb replace LyXCursor by CursorSlice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8338 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 14:13:51 +00:00
André Pönitz
97901b5d51 hide cursor and selection anchor behind accessor function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8333 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 10:37:38 +00:00
Jürgen Spitzmüller
038032fefd Michael's latest minipage cleanup patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8282 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-29 13:55:45 +00:00
Angus Leeming
e113eaeb70 Output useful info on receipt of LFUN_GETLAYOUT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8280 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-29 13:27:23 +00:00
Alfredo Braunstein
5513c27876 redocursor removal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8263 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-18 04:43:08 +00:00
André Pönitz
a97ed20502 merge CursorItem and MathPos
remove cached x and y values from Cursor
some tabular fixes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8251 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-15 11:36:19 +00:00
Alfredo Braunstein
7da68795a5 selection patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8243 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-12 15:19:35 +00:00
Angus Leeming
890bba60e4 Cruft removal, small clean-up, no functional changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8234 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-12 10:05:21 +00:00
André Pönitz
153ac7500c * inset.h:
* insetert.[Ch]:
	* insettabular.[Ch]:
	* insettext.[Ch]: remove unused insetInset()

	* insetert.C: disable some  LFUNs

	* insettoc.[Ch]: metrics() and draw() of InsetButton is enough.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8221 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-10 09:45:32 +00:00
André Pönitz
4b2c271e23 * buffer.[Ch]:
* lyxtext.h: move ParagraphList member to LyXText
	rename LyXText::ownerParagraphs to LyXText::paragraph

	* CutAndPaste.C:
	* bufferview_funcs.C:
	* iterators.[Ch]:
	* lyx_cb.C:
	* paragraph.C:
	* rowpainter.C:
	* tabular.C:
	* text.C:
	* text2.C:
	* text3.C: adjust

	* lyxfunc.C: move LFUN_INSET_TOGGLE handling to insets.

	* undo.C: fix cursor positioning
	* insetbase.h: whitespace

	* inset.[Ch]: remove latexTextWidth
	make setBackgroundColor virtual

	* insettext.[Ch]:  move ParagraphList member to LyXText

	* insetcollapsable.[Ch]: handle LFUN_INSET_TOGGLE

	* insetcharstyle.C:
	* insetenv.C:
	* insetert.[Ch]:
	* insetfloat.[Ch]:
	* insetminipage.[Ch]:
	* insettabular.C:
	* insetwrap.[Ch]: adjust paragraphs and background color handling,


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8166 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-01 13:35:49 +00:00
André Pönitz
7de76711b1 move space above/below from Paragraph into a separate vspace inset.
Gui interaction mailer stuff by Angus...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8149 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-28 15:53:34 +00:00
Alfredo Braunstein
2a6106ff5f updateCounters fix + changeDepth simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-26 09:48:21 +00:00
André Pönitz
ce686f1803 the 'lots of small stuff' patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8135 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-25 11:17:27 +00:00
Lars Gullik Bjønnes
6832f63f96 More debug mode work.
- some cursor movement
- selection


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8122 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-22 15:51:12 +00:00
Lars Gullik Bjønnes
7dd8cd705b A couple of changing resulting from gcc 3.4 debug mode testing.
Dont copy singular iterators.
Dont compare iterators from different containers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8121 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-22 14:44:59 +00:00
Alfredo Braunstein
34c34fc02e allow extending a double/triple click + whitespace + correct a comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8112 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-21 11:16:37 +00:00
Alfredo Braunstein
43198fcbda xy0_->xyo_ + two fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8111 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-21 08:35:15 +00:00
Alfredo Braunstein
614fbe566c cursor work + absolute coords for lyxtext
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8107 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-20 10:38:12 +00:00
Alfredo Braunstein
25b208aa25 fix to target_x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8103 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-18 11:39:30 +00:00
Alfredo Braunstein
025cb611e3 mouse selection patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8100 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-17 20:28:11 +00:00
André Pönitz
2ff4eaba84 handle most of InsetText::dispatch() to LyXText::dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8095 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-17 14:51:36 +00:00
Martin Vermeer
3bc54f0645 Fix insertion/modification of button-style insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8083 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-13 20:16:34 +00:00
André Pönitz
3159d1a52e no need for three calls to update() in a row...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8080 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-13 13:43:44 +00:00
Alfredo Braunstein
79ae54d4c0 fitCursor work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8079 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-13 08:50:26 +00:00
Martin Vermeer
59fefa0759 The Character Style and XML short element inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8078 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-12 14:38:26 +00:00
Martin Vermeer
b171a9b6fb Small step to solving 'impossible to insert some insets' problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8077 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-11 13:59:39 +00:00
André Pönitz
49cbe77634 * text.C: remove big comment on invalid Paragraph pointers as it is
not valid anymore

	* text_funcs.[Ch]: merge with ...

	* text.C: ... this

	* lyxtext.h:
	* text2.C:
	* text3.C: adjust

	* Makefile.am: remove text_funcs.[Ch]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8075 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-11 10:08:35 +00:00
André Pönitz
6789af0a32 Alfredo's patch.
Enough for today...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8073 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 18:15:55 +00:00
André Pönitz
de49e02934 the update/updateInset merge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8069 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 13:23:14 +00:00
André Pönitz
a145b1fd8d fix 'click on first footnote in UserGuide' crash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8068 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 11:26:33 +00:00
André Pönitz
b0cffd9fc0 The deed is done.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8064 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 09:06:48 +00:00
André Pönitz
2ad9bd1e7d more global cursor work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8059 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-06 16:43:12 +00:00
André Pönitz
db78dbfa04 cursor changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8035 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-04 12:36:59 +00:00
André Pönitz
49e5945ce4 LyXCursor::x_fix -> BufferView::x_target
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8026 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-04 07:43:03 +00:00
Lars Gullik Bjønnes
c1319d2c67 Change DispatchResult semantics a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8021 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-03 19:52:47 +00:00
Lars Gullik Bjønnes
cc719fe0ce more dispatchresult changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8013 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-01 15:45:19 +00:00
Lars Gullik Bjønnes
a7060da197 make dispatch_result_t ctor of DispatchResult explicit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8004 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-29 19:19:27 +00:00
Lars Gullik Bjønnes
b0eb70e869 dispatchresult -> DispatchResult
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7998 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-29 10:47:21 +00:00
André Pönitz
69fae0531d * lfuns.h: new LFUN_REPEAT, LFUN_INSERT_LINE, LFUN_INSERT_PAGEBREAK
* factory.C: handle new InsetPagebreak, InsetLine

	* ParagraphParameters.h: remove [line|pagebreak]_[above|below]
	and move handling into new InsetPagebreak, InsetLine

	* BufferView_pimpl.C:
	* LyXAction.C:
	* ParagraphParameters.C:
	* ParameterStruct.h:
	* lyxfunc.C:
	* lyxtext.h:
	* paragraph.C:
	* paragraph.h:
	* paragraph_funcs.C:
	* paragraph_pimpl.C:
	* rowpainter.C:
	* text.C:
	* text2.C:
	* text3.C: adjust

etc


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7985 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 12:41:26 +00:00
Alfredo Braunstein
5be51b4fb7 remove lastPos and use endpos instead
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7984 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 11:44:10 +00:00
André Pönitz
3e8ce5ac6c refrain from computing width in setHeightOfRow as this happens already
in rowBreakPoint before.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7976 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-24 09:45:07 +00:00
André Pönitz
70f983b97f set fill in fill(...) istead of returning it.
use isLastRow()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7974 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-24 07:59:04 +00:00
Alfredo Braunstein
fe1d419981 remove spurious rit = cursorRow()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7973 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 15:55:30 +00:00
André Pönitz
3b4253cf80 fix crash on 'page up' near the top of the UserGuide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7972 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 15:44:48 +00:00
Alfredo Braunstein
970e98f279 fix 2 dontlikes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7971 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 15:42:37 +00:00
André Pönitz
cf40d206dc Alfredo's cursroRow() fix;
directly set endpos in breakRowPos instead of returning it


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7970 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 15:38:48 +00:00
Martin Vermeer
b0650a1e5f Crash fix (wrong cursor def)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7935 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-18 14:43:54 +00:00
Lars Gullik Bjønnes
87ca6fbbeb the dispatch patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7931 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 18:01:15 +00:00
André Pönitz
7f3eb7cf70 RowList::iterator -> Row &, ParagraphList::iterator -> Paragraph &
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7929 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 10:31:47 +00:00
André Pönitz
9ed14b41fa make updateRowPositions() a bit faster.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7926 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-16 16:19:56 +00:00
André Pönitz
5c2f0c5c46 In insets:
2003-10-14  Andr� P�nitz  <poenitz@gmx.net>

  * insetcollapsable.[Ch]:
  * insettabular.[Ch]:
  * insettext.[Ch]:
  * inset.h: getText() as alternative to getParagraphs()

In src:

2003-10-14  Andr� P�nitz  <poenitz@gmx.net>

	* iterators.[Ch]: new direct access to innermost LyXText and Inset

	* undo.[Ch]: restoring part of 'undo in insets'

	* Makefile.am:
	* undo_funcs.[Ch]: merge with undo.[Ch]

	* tabular.C: small cleansing stuff


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7919 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-14 13:01:49 +00:00
André Pönitz
a316a54e60 * BufferView_pimpl.C:
* lyxtext.h:
	* text.C:
	* text2.C:
	* text3.C:
	* undo_funcs.[Ch]: use paroffset_type instead of
	  ParagraphList::iterators to prevent multiple conversion
	  (and get a more robust interface)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7909 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 10:59:31 +00:00
Lars Gullik Bjønnes
75b485d110 DISPATCH -> dispatch_result
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7900 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 01:35:47 +00:00
André Pönitz
839576adbc fix a few of the tabular crashes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7889 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-10 09:01:23 +00:00
André Pönitz
dcd8fb0428 replace ParagraphList::iterator by lyx::paroffset_type to prevent cursor
invalidation if the paragraphlist is changed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7883 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-09 10:52:12 +00:00
Martin Vermeer
800c0dfc38 The Box patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7865 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 07:42:15 +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
André Pönitz
b9a8b8f4b6 fix #1360
* lyxfunc.C:
	* text3.C: move handling of LFUN_DEPTH *;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7853 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-02 14:42:31 +00:00
Lars Gullik Bjønnes
cd03e2b7db Get rid of lyxstring, remove usage of STRCONV.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7751 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-15 11:00:00 +00:00
Angus Leeming
57a24ea912 Replace 'using namespace abc;' with 'using abc::xyz;'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7725 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 22:13:45 +00:00
Lars Gullik Bjønnes
fcdb71906b Change Assert to BOOST_ASSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7722 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:25:35 +00:00
Angus Leeming
f9c1cafbe6 Pragmatic pimpl-ing of BufferParams.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7721 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:00:19 +00:00
Angus Leeming
e835c9477b Pimpl Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7719 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 11:24:33 +00:00
Angus Leeming
fd36f5ad76 Make buffer's member variables private; use accessor functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7717 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 09:47:59 +00:00
Angus Leeming
4c6e0fe422 Removed all redundant using directives from the source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7704 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-08 00:33:41 +00:00
Angus Leeming
462eca7d1a Remove a couple of #includes from buffer.h
Reorder #includes in lots of files into some semblence of a coherent order.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7695 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 18:38:02 +00:00
Angus Leeming
f3bff9d5d8 Move depth_type to support/types.h.
Remove paragraph.h from buffer.h, paragraph_funcs.h.
Add paragraph.h to a heap of .C files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7694 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 17:23:08 +00:00
Angus Leeming
2e1eeac0b9 Replace ParagraphList.h with ParagraphList_fwd.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7693 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 12:36:58 +00:00
Angus Leeming
b0a5773d95 Reduce 115 dependencies on RowList.h to just 10 dependencies on lyxrow.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7692 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 11:01:50 +00:00
Angus Leeming
cba1fa5848 Add missing headers. With thanks to Martin...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7688 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 22:17:02 +00:00
Angus Leeming
f239801ae3 Changes due to the removal of using directives from support/std_sstream.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7686 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 18:02:24 +00:00
Angus Leeming
236ea81bc5 Replace LString.h with support/std_string.h,
Lsstream.h with support/std_sstream.h,
support/LIstream.h with support/std_istream.h,
support/LOstream.h with support/std_ostream.h.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7685 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 17:23:11 +00:00
Angus Leeming
91de22ef34 Strip 320 #includes from the files in src.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7684 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 16:31:30 +00:00
Martin Vermeer
781e0ef62e The mouse box patch for button-style insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7662 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-04 14:02:05 +00:00
Angus Leeming
50d4d2bd7e s/contained/contains/ and end (?) the expenditure of hot air ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7641 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-02 20:42:28 +00:00
John Levon
0769f8d599 remove cursor.i[xy]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7640 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-02 17:08:54 +00:00
Lars Gullik Bjønnes
b881ed2d5a Use Buffer const reference in most placees possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7623 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-28 07:41:31 +00:00
Alfredo Braunstein
cf6549229d moves top_y from lyxtext to BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7616 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-27 14:55:20 +00:00
Alfredo Braunstein
7338f3b980 Add In nsetOld * argument to updateInset to rebreak the correct par.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7615 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-27 13:51:18 +00:00
Alfredo Braunstein
189b00a5c9 Rationalise the position of calls to updateRowPostitions, remove the returned (and computed) y position from getRow and getRowNearY (and solve a bug in this one).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7603 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-25 10:24:26 +00:00
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
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
08492c2703 shift rowpainter interface a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7575 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-19 16:46:47 +00:00
André Pönitz
7000451e00 drop a few fitCursor() and draw() calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7563 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-18 08:23:03 +00:00
Martin Vermeer
fd6cd728a3 The 'Branches' mega-patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7560 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-17 11:28:23 +00:00
André Pönitz
221f1be82d remove toggleSelection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7552 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-15 10:24:39 +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
0b491007e3 two more
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7540 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 11:30:11 +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
0a2ca7c7e0 remove unneeded LyXText::redoHeightOfParagraph
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7525 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-08 16:05:41 +00:00
André Pönitz
2b2d71d8e2 merge parts of InsetText and LyXText::dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7518 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-07 11:59:09 +00:00
André Pönitz
19f83569df small stuff:
- fix yesterday's selection regression
- remove a few update() calls
- remove unused  Selection::last_sel_cursor member
- ...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7504 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-05 10:54:19 +00:00
André Pönitz
340b7d232c remove "deep update"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7501 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-05 08:07:07 +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
f8070d27f2 merge BufferView::repaint() and BufferView::update()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7477 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-01 15:27:57 +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
c0d7037aba remove toggleSelection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7459 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-31 10:24:22 +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
André Pönitz
efff440e70 remove toggleToggle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7427 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-28 21:22:42 +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
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
Jean-Marc Lasgouttes
80d7f70dc3 move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7372 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-26 23:04:39 +00:00
André Pönitz
fcb82ea793 remove spurious extra drawing from cursorNext() and cursorPrevious()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7368 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-26 20:38:19 +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
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
cd12251e27 'full redraw' related stuff that's innocent for the upward-selection-in-tables bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7285 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-15 16:25:02 +00:00