]> git.lyx.org Git - lyx.git/blob - src/insets/ChangeLog
Fixed setting cursor positions with mouse for TextInsets and CollapsableInsets.
[lyx.git] / src / insets / ChangeLog
1 2001-04-20  Juergen Vigna  <jug@sad.it>
2
3         * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
4
5 2001-04-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
6
7         * insetquotes.C (Latex): improve the guard against
8         unwanted !` and ?` ligatures. This should really be done in
9         another place (to catch all this ligatures at low-level).
10
11 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
12
13         * insettext.C (init): remvoe leftovers from cursor_visible change
14         (draw): use c++ cast
15         (LocalDispatch): dispatch LFUN_MESSAGE
16
17         * insettabular.C (InsetTabular): remove leftovers from
18         cursor_visible, and scoped_ptr changes
19         (draw): use c++ cast
20
21         * insetcollapsable.C (draw): use c++ cast
22
23         * ExternalTemplate.h: inherit privaely from noncopyable
24         * insetcommand.h: ditto
25         * insetinclude.h: ditto
26
27 2001-04-16  Allan Rae  <rae@lyx.org>
28
29         * insettoc.C (Ascii): 
30         * insettext.C (draw): 
31         * insettabular.C (setPos): 
32         * insetminipage.C (Read): 
33         * insetfloat.C (placement): 
34         * insetcaption.C (Ascii, DocBook): 
35         * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as
36         an unrecognised preprocessor directive.  So ensure they're wrapped. 
37
38 2001-04-13  Juergen Vigna  <jug@sad.it>
39
40         * insettext.C: tried to avoid unneeded redraws.
41         (doClearArea): return true also if I need a FULL|INIT redraw.
42
43         * insettabular.C: tried to avoid unneeded redraws. Still one
44         problem with scrolling remains (resetPos).
45         (doClearArea): return true also if I need a FULL|INIT redraw.
46
47         * lyxinset.h: changed the scroll() function behaviour a bit.
48         Added nodraw() function so that I can block unneeded redraws.
49         Implemented the above 2 functions correctly in InsetText,
50         InsetTabular and InsetCollapsable. Now only the topmost Inset
51         owner is scrolled (as it should be) if a child inset requests this!
52
53 2001-04-06  John Levon  <moz@compsoc.man.ac.uk>
54
55         * insetexternal.h:
56         * insetexternal.C: set view on Clone. Add _ to private members.
57
58 2001-04-06  Lars Gullik Bjønnes  <larsbj@birdstep.com>
59
60         * insettext.C (InsetText): fix new
61         (InsetText): reindent some, simplify deletion of par list 
62         (clear): simplify deletion of par list, fix new
63         (SetParagraphData): simplify deletion of par list
64
65         * insettabular.[Ch] (getLabelList): implement new method
66
67 2001-04-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
68
69         * lyxinset.h: do not include gettext.h...
70
71         * inset.C:
72         * insetcaption.C:
73         * insetexternal.C:
74         * insetgraphics.C:
75         * insetindex.C:
76         * insetlabel.C:
77         * insetlatexaccent.C:
78         * insetminipage.C:
79         * insetquotes.C:
80         * insettabular.C:
81         * inseturl.C: ... and do it here instead
82
83 2001-04-05  Lars Gullik Bjønnes  <larsbj@birdstep.com>
84
85         * insetcollapsable.[Ch] (getLabelList): add std:: on vector<string>
86
87         * insettext.[Ch] (getLabelList): add std:: on vector<string> 
88
89         * insetcollapsable.[Ch] (getLabelList): implement
90
91         * insettext.[Ch] (getLabelList): implement
92
93         * insettext.h: reindent
94
95         * insettabular.h: make tabular a scoped_ptr
96
97         * insettext.C (init): adjust for cursor_visible
98         (ToggleInsetCursor): constify asc and desc, font, adjust for
99         cursor_visible
100         (ShowInsetCursor): constify asc and desc, font, adjust for
101         cursor_visible
102         (HideInsetCursor): adjust for cursor_visible
103
104         * insettabular.C: reindent some
105         (InsetTabular): adjust for scoped_ptr and cursor_visible
106         (InsetTabular): ditto
107         (~InsetTabular): delete delete
108         (Clone): adjust for scoped_ptr
109         (Read): constify old_format, adjust for scoped_ptr, move init of
110         token
111         (draw): constify tx, localize loop vars.
112         some other localization of variables, remove double initilizatons.
113         
114         * insetfoot.C: remove using std::ostream, add ostream where needed
115
116 2001-04-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
117
118         * lyxinset.h: some reindentaion, use initializer list for
119         constructro.
120         UpdatableInset: make cursor_visible a private var add
121         public isCursorVisible(), add protected toggleCursorVisible() and
122         proctected setCursorVisible(bool), make scroll call the Inset::scroll
123
124         * insettoc.C: remvoe using decl
125         (getScreenLabel): make cmdname donst
126         (LyxCode): ditto
127         (Ascii): ditto
128         (Ascii): don't use endl
129
130         * insetfootlike.C: remove using decl at file scope and add std::
131         where needed
132         * insetmarginal.C: ditto
133
134         * insetfoot.C: some reformatting
135
136         * insetfloat.C (InsetButtonRelease): adjust the hit area
137
138         * insetert.C (SetFont): some reformatting
139
140         * insetcollapsable.C: some reformatting and constification
141         (Clone): comment out.
142         * insetcollapsable.h: some reformatting
143         (Clone): comment out.
144         
145         * inset.C: reindent
146         (scroll): simplify
147
148 2001-03-30  Juergen Vigna  <jug@sad.it>
149
150         * insetcollapsable.h: changen *inset to be a InsetText inset.
151         
152         * some files: changed to reflect the above change.
153
154 2001-03-29  Angus Leeming  <a.leeming@ic.ac.uk>
155
156         * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as
157         InsetExternal::Params.
158         Added operator==() and operator!=() for the Params struct.
159
160 2001-03-29  Juergen Vigna  <jug@sad.it>
161
162         * lyxinset.h: changed parameter of getMaxWidth from Painter & to
163         BufferView *.
164
165         * insetminipage.C: removed widthp_ and all it's functions and changed
166         to use new %-lengths of LyXLength.
167
168 2001-03-28  Angus Leeming  <a.leeming@ic.ac.uk>
169
170         * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h.
171
172 2001-03-27  Angus Leeming  <a.leeming@ic.ac.uk>
173
174         * insetgraphicsParams.C (operator!=): new function, needed by the
175         ControlGraphics class.
176
177 2001-03-28  Juergen Vigna  <jug@sad.it>
178
179         * insettext.C (InsetButtonPress): only enter !inset if button == 2
180         (checkAndActivateInset): don't use the values returned from
181         call to bv->checkInsetHit.
182
183         * insetminipage.C (Clone): set special minipage values.
184
185         * insetcollapsable.C (draw): changed to draw the button in the
186         upper left corner outside the textinset.
187         (ascent): changed because of different drawing 
188         (descent): ditto
189         (width): ditto
190         (Edit): ditto
191         (InsetButtonPress): ditto
192         (InsetButtonRelease): ditto
193         (InsetMotionNotify): ditto
194
195 2001-03-27  Dekel Tsur  <dekelts@tau.ac.il>
196
197         * figinset.C (GetPSSizes): Fix for the case when filename doesn't
198         contain a suffix.
199         (Clone): ditto
200
201 2001-03-26  Juergen Vigna  <jug@sad.it>
202
203         * lyxinset.h: added ShowInsetDialog() function in UpdatableInset.
204
205         * insettext.C (ShowInsetDialog): implemented above function.
206
207         * insettabular.C (ShowInsetDialog): ditto
208
209         * insetminipage.C (ShowInsetDialog): ditto
210
211 2001-03-23  Angus Leeming  <a.leeming@ic.ac.uk>
212
213         * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as
214         InsetInclude::Params. Don't store a buffer * in Params. Store the
215         master file name instead.
216
217 2001-03-23  Juergen Vigna  <jug@sad.it>
218
219         * insetcollapsable.C (InsetMotionNotify):
220         (InsetButtonRelease): 
221         (InsetButtonPress): fixed y-offset (minipages).
222
223         * insettext.C (draw): force a FULL update if cleared == true.
224
225         * insetcollapsable.C (draw): Lars forgotten entry for changing this
226         routine to draw the minipages on its position-flag.
227         (InsetInInsetY): give back the right y position, because of minipage
228         position-flag.
229
230 2001-03-23  José Abílio Matos  <jamatos@fep.up.pt>
231
232         * insetfloat.h
233         * insetfloat.C (DocBook): docbook export code.
234
235 2001-03-22  Juergen Vigna  <jug@sad.it>
236
237         * insetminipage.C (getMaxWidth): added function to set the drawing
238         width!
239         (Read): should work now!
240
241         * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed
242         if we create a new inset.
243
244 2001-03-20  Angus Leeming  <a.leeming@ic.ac.uk>
245
246         * figinset.C (fl_set_preemptive_callback): moved definition outside
247         of namespace anon.
248
249 2001-03-20  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
250
251         * insetminipage.C (Read): prepare for reading of minipage arguments.
252
253 2001-03-18  Baruch Even  <baruch@lyx.org>
254
255         * insetgraphics.C: Minor cleanups of the comments and code.
256
257 2001-03-17  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
258
259         * insetminipage.C (InsetMinipage): default to not collapsed
260
261 2001-03-16  Juergen Vigna  <jug@sad.it>
262
263         * insetminipage.C (width): modified with to be a string
264         (widthp): added widthp (for % width) support functions.
265         (InsetButtonRelease): added to open the options dialog on button==3.
266         (~InsetMinipage): added to hide the dialog.
267
268         * insetminipage.h: added hideDialog signal
269
270 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
271
272         * insetminipage.h: change the order or Position to match
273         LyXParagraph::MINIPAGE_ALIGNMENT
274
275         * several files: remvoe CXX_WORKING_NAMESPACES
276
277         * ExternalTemplate.h: noncopyable is in namespace boost
278         * insetinclude.h: ditto
279         * insetcommand.h: ditto
280
281 2001-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
282
283         * insettext.C (Edit): #else# -> #else.
284         * insettoc.C: added using directive.
285
286 2001-03-14  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
287
288         * insetminipage.h: add pos, inner_pos, width and height. + getters
289         and setters for all of them.
290
291 2001-03-13  Dekel Tsur  <dekelts@tau.ac.il>
292
293         * insetinclude.C (Latex): Do not exit when the textclass of the
294         included file differ from the textclass of the parent file.
295
296 2001-03-12  Angus Leeming  <a.leeming@ic.ac.uk>
297
298         * ExternalTemplate.C (read): the reading of external insets now checks
299         for \end_inset and removes it form the input stream.
300
301 2001-03-09  John Levon  <moz@compsoc.man.ac.uk>
302
303         * ExternalTemplate.h:
304         * ExternalTemplate.C:
305         * insetexternal.h:
306         * insetexternal.C: move form to GUII
307
308 2001-03-12  John Levon  <moz@compsoc.man.ac.uk>
309
310         * insetinclude.h:
311         * insetinclude.C: add InsetIncludeParams, use
312         composition rather than derivation of InsetCommand
313
314 2001-03-12  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
315
316         * insettoc.C (Ascii): use the Buffer typedefs
317
318 2001-03-11  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
319
320         * insettoc.C (Ascii): implement for dynamic number of lists
321
322         * insetcaption.[Ch]: update from new_insets branch
323         * insetfloat.[Ch]: ditto
324         
325 2001-03-06  John Levon  <moz@compsoc.man.ac.uk>
326
327         * insetexternal.C:
328         * figinset.C: use new File Dialog
329
330 2001-03-06  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
331
332         * insettext.C: changes becuase of ParagraphParameters.
333
334 2001-02-28  Baruch Even  <baruch@ev-en.org>
335
336         * insetgraphics.C (updateInset): Changed due to the change in
337         GraphicsCache.
338
339 2001-02-26  Juergen Vigna  <jug@sad.it>
340
341         * insettext.C (SetFont): Set Undo only if we have selection (as it is
342         handled in LyXText).
343
344 2001-02-23  Juergen Vigna  <jug@sad.it>
345
346         * insettext.C (draw): some small repainting fixes.
347         (LocalDispatch): put the sel_cursor stuff after the insert of chars.
348
349         * inset.C (LocalDispatch): changed action to be a kb_action (as it
350         should be) and not an int.
351         
352         * insettabular.C (LocalDispatch): ditto
353
354         * insettext.C (LocalDispatch): ditto
355
356         * insetcollapsable.C (LocalDispatch): ditto
357
358 2001-02-22  Juergen Vigna  <jug@sad.it>
359
360         * insettabular.C (LocalDispatch): return DISPATCHED if we cannot
361         DISPATCH it and we don't have a locking_inset.
362
363 2001-02-21  Baruch Even  <baruch@ev-en.org>
364
365         * insetgraphics.[Ch]: Changed to use boost::shared_ptr<GraphicsCacheItem>
366         instead of GraphicsCacheItem *.
367
368 2001-02-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
369
370         * insetcollapsable.C (getLyXText): add const qualifier to second
371         parameter. 
372
373 2001-02-22  Juergen Vigna  <jug@sad.it>
374
375         * insettext.C (getLyXText): honor the recursive parameter.
376         (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
377
378         * inset.C (getLyXText): added bool recursive parameter.
379
380         * insettext.C (SetUpdateStatus): or the update codes.
381         (draw): check need_update with &.
382         (InsetButtonPress): set no_selection to not put a selection when
383         entering an inset and it is redraws in another spot.
384
385         * insettext.h: made need_update an int.
386
387 2001-02-20  Baruch Even  <baruch@ev-en.org>
388
389         * insetgraphics.h:
390         * insetgraphisc.C: Changed to use better semantics when loading images
391         for inline view. Now it doesn't keep the pixmap itself but it's holder.
392
393 2001-02-19  Angus Leeming  <a.leeming@ic.ac.uk>
394
395         * insetcommand.h:
396         * inseterror.h:
397         * insetgraphics.C: change name of "hide" signal to "hideDialog",
398         consistent with InsetTabular.
399         
400 2001-02-19  Juergen Vigna  <jug@sad.it>
401
402         * insettabular.C (LocalDispatch): implement PAGE up/down.
403
404         * insettext.C (draw): clear all of it on need_update==INIT too!
405
406         * insettabular.C (InsetUnlock): always clear the selection.
407
408         * inset.C (scroll): normally we only want to scroll the inset until
409         it is fully visible so if top_x + offset > 20 then just set scx to 0.
410
411 2001-02-14  Juergen Vigna  <jug@sad.it>
412
413         * insettabular.C (LocalDispatch): remove x_fix as it is not used.
414         (resetPos): fixed scroll behaviour.
415         (LocalDispatch): do an update if moving cursor inside a table cell
416         requests a scroll of the tabular.
417
418 2001-02-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
419
420         * insettext.C (textWidth): constify local var
421
422         * insettabular.C: small cleanup.
423
424         * insetfoot.C (Latex): constify local var
425
426         * insetcollapsable.C: small cleanup.
427
428         * figinset.C (runqueue): use compare instead of strcmp
429
430 2001-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
431
432         * insettext.C:
433         * insetinfo.C: remove cruft
434
435 2001-02-14  Juergen Vigna  <jug@sad.it>
436
437         * insettext.C (SetUpdateStatus): added a BufferView * parameter.
438
439 2001-02-13  Juergen Vigna  <jug@sad.it>
440
441         * insettext.C (InsertInset): don't move left (is this right?)
442
443         * insettabular.C (LocalDispatch): use of the no_draw variable
444
445         * insettabular.h: new no_draw variable to stop redraw
446
447         * insettabular.C (TabularFeatures): fixed update for alignment change
448
449 2001-02-12  John Levon  <moz@compsoc.man.ac.uk>
450
451         * insetinclude.C:
452         * insetbib.h:
453         * insetbib.C: move dialogs to frontends/
454
455 2001-02-10  Dekel Tsur  <dekelts@tau.ac.il>
456
457         * insettext.C (LocalDispatch): Restore the language if the inset
458         becomes empty.
459
460 2001-02-09  Dekel Tsur  <dekelts@tau.ac.il>
461
462         * insettext.C (moveRightIntern): Update the selection cursor.
463         (moveLeftIntern): Ditto.
464
465 2001-02-09  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
466
467         * Makefile.am: remove BoundingBox.h
468
469         * BoundingBox.h: removed
470
471 2001-02-08  Dekel Tsur  <dekelts@tau.ac.il>
472         
473         * insettext.C (LocalDispatch): Update selection cursor when moving 
474         cursor to the right.
475         (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
476         (moveLeftIntern): Ditto.
477
478 2001-02-05  Baruch Even  <baruch.even@writeme.com>
479
480         * insetgraphics.C: Updated automatic image conversion, it now goes into
481         temporary directory instead of with the image itself.
482
483 2001-01-21  Baruch Even  <baruch@ev-en.org>
484
485         * insetgraphics.C: Added Docbook support. Added Automatic image conversion
486         to EPS or PNG when needed (support bitmap graphics).
487
488 2000-11-02  Baruch Even  <baruch@ev-en.org>
489
490         * insetgraphics.C:
491         * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n'
492         and removal of commented out code.
493
494 2001-01-31  Dekel Tsur  <dekelts@tau.ac.il>
495
496         * insetbib.C (callback): Update citations if the key has changed.
497
498 2001-01-31  Dekel Tsur  <dekelts@tau.ac.il>
499
500         * insetbib.C (InsetBibKey): Better computation of default key.
501         (getScreenLabel) Show both the key and the label.
502         (getBibLabel): New method.
503         (callback): Force a redraw if the inset have been changed.
504
505 2001-01-26  Dekel Tsur  <dekelts@tau.ac.il>
506
507         * insetref.C (getType, getName): Move methods from 
508         src/frontends/xforms/FormRef.C.
509
510 2001-01-12  Dekel Tsur  <dekelts@tau.ac.il>
511
512         * insettabular.C: Various improvements (use only one dummy position).
513
514 2001-01-25  Dekel Tsur  <dekelts@tau.ac.il>
515
516         * insetbib.C (bibitemWidest): Use lyxfont::width instead of
517         par->bibkey->width. This fixes the crashes when running without
518         gui or when having included documents.
519
520 2001-01-22  Dekel Tsur  <dekelts@tau.ac.il>
521
522         * insetcommand.C (getAsString, setFromString): Cleanup.
523
524 2001-01-21  Dekel Tsur  <dekelts@tau.ac.il>
525
526         * insetref.C: Add the array InsetRef::types that contains
527         information about all supported reference types.
528
529 2001-01-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
530
531         * lyxinset.h: remove trailing comma in enum.
532
533 2001-01-17  John Levon  <moz@compsoc.man.ac.uk>
534
535         * insettext.C: kill LyXBell.