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