Commit Graph

146 Commits

Author SHA1 Message Date
André Pönitz
53cc89eed6 - parts of Lars' diff-6.diff
- move inline functions from buffer.h to buffer.C


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5038 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-20 17:18:21 +00:00
André Pönitz
c69f29dda7 move half of BufferView_pimpl::dispatch() to LyXText::dispatch()
which has its new home in text3.C


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5030 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-20 13:00:25 +00:00
Lars Gullik Bjønnes
51e4d793ed more from the diff-5.diff merged
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4983 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-14 22:15:18 +00:00
Angus Leeming
c10dfd15cd * LyXView: the accessor methods now return a reference to the member
variables, not a pointer.
* WordLangTuple: you can forward-declare a return type you know ;-)
* Qt: get it to compile again, having broken it yesterday.
* Everything else? See above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4957 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-13 14:40:38 +00:00
Jürgen Vigna
ddc06a6e29 Don't create undos for inserting Error insets. What is missing still is that
before actually doing any undo we should remove "AutoInsets".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4939 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-12 08:16:01 +00:00
Lars Gullik Bjønnes
5bd7f9d67b The ParagraphList stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4937 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-12 00:15:19 +00:00
Lars Gullik Bjønnes
260c7f3187 The InsetList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4933 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-11 15:03:52 +00:00
Lars Gullik Bjønnes
116dbc66eb a new paragraph function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4930 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-10 15:21:07 +00:00
John Levon
7d23c29dee small cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4910 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-08 21:08:02 +00:00
John Levon
6b5c9696b6 Remove LYX_LAYOUT_DEFAULT - it is very very old, even klyx doesn't use it.
Commit the multi-language spellcheck patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4882 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-06 22:38:44 +00:00
John Levon
7c98b3bd37 spellchecker cleanup - fscked knows why pspell is broken, I am TOTALLY
baffled by that one.

Various other cleanups, including a fixed version of lyxlex that doesn't
destroy the preamble ...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4854 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-04 23:11:50 +00:00
Jean-Marc Lasgouttes
1dc25c472f time to recompile everything: I removed #include directives from headers here and there... Not sure what the net effect is, but it cannot be worse
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4736 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-21 21:21:06 +00:00
John Levon
91bcdf564a Make showState be view_state_changed, and rename setState to something
more descriptive


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4671 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 04:13:41 +00:00
Lars Gullik Bjønnes
65d4b13616 layout as layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4471 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-24 20:28:12 +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
John Levon
ab5f0efdcb Some minor cleanup + use of scoped_ptr instead of raw pointer,
to reduce diff size


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4374 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-12 02:54:19 +00:00
John Levon
92e53dc01b Rename screen, and don't re-construct it on a buffer change (that is far too
nosy of the core), and use an accessor ...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4372 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-11 23:47:58 +00:00
John Levon
98b254c810 more guii moving around.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4192 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 15:43:25 +00:00
John Levon
435d527581 guii2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4190 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 12:08:47 +00:00
Lars Gullik Bjønnes
f15d44ccf4 pastesel.patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4171 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-15 23:49:08 +00:00
Jürgen Vigna
0dd2eb7edd Update paragraph dialog on an insetUnlock.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3981 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-12 09:22:18 +00:00
Jürgen Vigna
8f1a6ffaed Fix the cursor position to be on the end of the row before an inset which
needs a full row (#44).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3966 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-11 09:53:23 +00:00
Jürgen Vigna
5e3b849ce7 Some more fixes to selection, fitCursor calls for InsetText/Tabular.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3864 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-29 15:49:45 +00:00
Lars Gullik Bjønnes
8283e978f8 ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 17:27:08 +00:00
Jürgen Vigna
961b1a47ed Find selection inside InsetText and always leave pasted text selected.
(fix #100, #35)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3763 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-18 13:47:37 +00:00
Lars Gullik Bjønnes
bae36d14f7 2002-03-12 Lars Gullik Bj�nnes <larsbj@birdstep.com>
bufferlist.h: doxy changes

bufferlist.C: ws changes

DepTable.[Ch] (ext_exist): place const in the right spot.

BufferView_pimpl.C (resizeCurrentBuffer): further refine when to
resizeInsets.
call resizeInsets when the with BufferView changes.
adjust for protectedBlank removal
call updateInset if the insert went ok.

BufferView_pimpl.[Ch] (protectedBlank): remove func, use
instead.

BufferView2.C (ChangeInsets): remove warning add FIXME comment

BufferView.h: doxy change

Makefile.am (INCLUDES): remove @FRONTEND_INCLUDES@

lyxtextclass.C (operator[]): remove non-const version
out): remove non-const version


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3733 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-12 17:15:44 +00:00
Lars Gullik Bjønnes
dbd7a961fc layout as string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3640 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-02 16:39:54 +00:00
Allan Rae
028020876f variable name changes and comments to clarify what is happening. It really is quite simple.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3568 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-19 03:57:22 +00:00
Allan Rae
51b32d4984 the right fix for the invalid iterators (plural)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3567 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-19 03:16:10 +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
Jürgen Vigna
1e775a68c6 Fixed insetlocking-mechanism and PARAGRAPH_GOTO func.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3407 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-17 14:27:01 +00:00
Allan Rae
b06f4c5af2 final(?) tweaks for removeAutoInsets() and removed one redundant conditional clause elsewhere
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3382 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-15 11:44:16 +00:00
Angus Leeming
754d59b4a1 Create a new support function lyx::count to use in place of std::count.
Remove countChar as lyx::count superceeds it.
Use the new function.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3372 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-14 13:04:06 +00:00
Lars Gullik Bjønnes
bbb3412f1e bug 186
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3363 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-14 00:26:17 +00:00
Allan Rae
fde66f936a improved comments in removeAutoInsets()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3351 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-13 06:42:58 +00:00
Allan Rae
09b61de303 finished fixing removeAutoInsets()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3350 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-13 04:56:48 +00:00
Lars Gullik Bjønnes
33c5d408fa small stupid stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3348 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-13 00:33:21 +00:00
Allan Rae
17e8d4dfd8 Mostly fixed the 'empty paragraph deletion kills the cursor' problem; and initialise a few more vars in tabulars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3347 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-12 21:03:30 +00:00
Angus Leeming
44806c63f9 Fixes for a broken std::count.
A couple of white-space type changes in mathed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3341 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-11 17:57:02 +00:00
Jürgen Vigna
9ddd875c6f Fixed long standing bug in breaking rows correctly. Fixed redraws when
searching/spellchecking inside tabulars. Fixed wrong frame redraw and
wrong clearing of inset (visible when the inset has a background color).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3297 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-06 19:34:30 +00:00
Jürgen Vigna
de78a7b2d6 Another fix to Undo/Redo code I hope we get nearer to perfection ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3296 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-04 16:03:53 +00:00
Lars Gullik Bjønnes
b56204339c 2001-12-28 Lars Gullik Bj�nnes <larsbj@birdstep.com>
text2.C (setCursor): add a couple of asserts.

paragraph.h (inset_iterator): add -> operator

paragraph.[Ch] (autoDeleteInsets): remove member function

BufferView2.C (removeAutoInsets): rewrite to handle the old
pos correctly and handle inset deletion by itself.
sertErrors): move iterator declaration out of for expression


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3271 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-28 21:17:18 +00:00
Jürgen Vigna
7fdf62dd8e John's InsetTabular cursor patch and modifications/fixes to undo/redo code.
TODO: Still some problems in multiparagraph redo! And deleting of substituted
      paragraphs when undoing/redoing.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3209 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-14 11:55:58 +00:00
Lars Gullik Bjønnes
7aebbe6e10 include shuffling and a mathed compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3182 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-10 20:06:59 +00:00
Dekel Tsur
5702f22ef0 Use paragraph iterators in CutAndPaste::SwitchLayoutsBetweenClasses
and in BufferView::removeAutoInsets


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3166 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-07 18:40:24 +00:00
Lars Gullik Bjønnes
6b6d49b7df apply combo.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3163 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 23:16:13 +00:00
Jürgen Vigna
08b1fdacad Fixed various bugs + John's form paragraph bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3111 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-29 12:58:59 +00:00
Jean-Marc Lasgouttes
65a391b78f do not unselect after a copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3097 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-27 15:33:19 +00:00
Jean-Marc Lasgouttes
85e30074c2 new alert code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3074 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-26 10:19:58 +00:00
Jean-Marc Lasgouttes
02e190002b isInset patch from John
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3065 a592a061-630c-0410-9148-cb99ea01b6c8
2001-11-23 10:16:02 +00:00