]> git.lyx.org Git - features.git/blob - src/insets/ChangeLog
801707c1b52cc41350565f014238aa7ce41ab280
[features.git] / src / insets / ChangeLog
1 2001-07-27  Juergen Vigna  <jug@sad.it>
2
3         * insetert.C (checkInsertChar): implementation of function
4         checkInsertChar.
5
6         * inset.h: added new function checkInsertChar.
7
8         * various files: added c-tor and clone() function.
9         
10         * insetcollapsable.h: removed clone function here as this should
11         be only realized in REAL insets and added it to all collapsable
12         insets! (with the copy-constructor).
13
14 2001-07-26  Lars Gullik Bjønnes  <larsbj@birdstep.com>
15
16         * insetminipage.C (read): handle missing parameters more gracefully
17
18         * insetcollapsable.C (read): handel missing collapsed more gracefully
19
20 2001-07-25  Lars Gullik Bjønnes  <larsbj@birdstep.com>
21
22         * insetfloat.C (read): handle missing parameters.
23
24         * insettext.C (read): handle old latex end_inset
25
26         * insetert.C (setButtonLabel): new method
27         (init): use it, to set the dynamic label correctly
28         (read): use it
29
30         * Makefile.am (EXTRA_DIST): add files that is not part or the
31         binary here.
32
33         * insetcollapsable.h: remove autocollapsable (no users), remove
34         draw_label, change_label_with_text and companion code. Remove args
35         from some methods.
36         * insetert.[Ch]: move here instead (only user)
37
38         * inset.h: rename private variable name to name_, make
39         selectNextWord return a const string. make getInsetName return a
40         string const &. Remove bool from open, add close.
41
42         * Makefile.am: don't compile insetlist, insetsection
43         and insettheorem
44
45 2001-07-24  Juergen Vigna  <jug@sad.it>
46
47         * insetert.C (InsetERT): put init after the paragraph initialization,
48         as otherwise we don't set the draw_label right.
49
50         * insetcollapsable.C (insetMotionNotify): fixed opening/closing the
51         insets with the mouse without having strange selections.
52         (edit): if the inset was collapsed and we open it here then put the
53         cursor always at the beginning of the inset.
54         (get_new_label): 15 instead of 10 max chars in the label.
55
56         * insetert.C (localDispatch): added and handle various stuff we
57         need to handle here (font setting on paragraph break, not permitted
58         layout setting, etc.).
59
60         * inset.h: added default copy-consturctor and implemented this in
61         various insets with the change to use this in the clone function!
62
63 2001-07-24  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
64
65         * insetminipage.C (InsetMinipage): set background color to red :)
66
67 2001-07-23  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
68
69         * insettext.C (insetUnlock): only set update to CLEAR_FRAME if
70         draw frame mode is LOCKED.
71
72         * insetcollapsable.C (edit): 
73         (insetButtonRelease): set update status to full when
74         opening inset.
75
76         * insettext.C (clearInset): 
77         * insettabular.C (draw): 
78         * insetlatexaccent.C (draw): honor background color.
79
80         * inset.h: new member background_color_, initialized to
81         LColor::inherit.
82
83         * inset.C (backgroundColor): new method.
84         (setBackgroundColor): new method.
85
86         * insetert.C (init): new method, called by the ctors.
87         (InsetERT): when inserting contents, make sure the font is
88         ALL_INHERIT.
89
90         * insetnote.C (InsetNote): when inserting content, remove trailing
91         newline
92         (init): set background color to LColor::note
93
94 2001-07-24  Lars Gullik Bjønnes  <larsbj@birdstep.com>
95
96         * insetcollapsable.C: adjust
97
98         * insetbutton.C: adjust
99
100 2001-07-23  Juergen Vigna  <jug@sad.it>
101
102         * insetcollapsable.h: removed widthCollapsed variable, LyXFont
103         parameter on the _collapsed function (was not needed) and call
104         always width_collapsed().
105
106         * insetert.C (InsetERT): use setLabel with "true" flag.
107
108         * insetcollapsable.C: modified various functions to set the draw_label
109         string right in any condition.
110         (setLabel): added a bool parameter to set change_label_with_text.
111
112         * insetcollapsable.h: added draw_label string which is set to the
113         actual drawn label-string, while label is the original static label
114         of this collapsable inset. Added bool change_label_with_text to set
115         if we want that the label changes to the start of the InsetText's
116         text when collabpsed. You can set this flag with the setLabel funciton.
117         Added bool inlined for inlined collapsable insets, but not handled
118         yet.
119
120         * insetcollapsable.C (get_new_label): added should get a new label
121         from the InsetText beginning (for now 10 chars).
122
123 2001-07-21  Yves Bastide  <stid@libd-pc11.univ-bpclermont.fr>
124
125         * insetquotes.C (latex): fix the handling of french double quotes
126         when not using the french pachage.
127
128 2001-07-22  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
129
130         * insetcollapsable.h: make WidthCollapsed mutable.
131
132         * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE,
133         InsetPrintIndex returns INDEX_PRINT_CODE.
134
135         * inset.h: add INDEX_PRINT_CODE
136
137         * insetcollapsable.C (draw): init widthCollapsed if necessary
138         (width): ditto.
139
140         * insetquotes.C (width): use the local language, not the document
141         language.
142         (draw): ditto.
143         (dispString): add additional spacing for all french languages,
144         like fr_CA.
145         (validate): make it work when there is no default language
146
147         * insetspecialchar.h: rename kind to kind_; add kind() accessor.
148
149         * insetnote.C (init): new method, called by the constructors
150         (InsetNote): new constructor with contents passed as a string
151
152 2001-07-21  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
153
154         * insetfootlike.C (insetAllowed): disallow float in footlike.
155
156         * insetert.C (InsetERT): add collapsed argument to the constrctor
157         with contents.
158
159 2001-07-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
160
161         * insetindex.h: shut off warning
162
163 2001-07-20  Juergen Vigna  <jug@sad.it>
164
165         * insetcollapsable.C (update): recoded hopefully works now!
166
167 2001-07-19  Juergen Vigna  <jug@sad.it>
168
169         * most files: implemented the below new introduced function.
170         
171         * inset.h: added new edit(BufferView *, bool front) method to be able
172         to enter an inset from the front/back without knowing x/y positions
173         and baselines inside the inset. So I just can tell the inset activate
174         me and set the cursor on the front/back of yourself.
175
176 2001-07-18  Juergen Vigna  <jug@sad.it>
177
178         * insetcollapsable.C (edit): fixed hopefully the y parameter which
179         is givven to the InsetText.
180         (insetButtonPress): ditto
181         (insetButtonRelease): ditto
182         (insetMotionNotify): ditto
183
184 2001-07-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
185
186         * insetspecialchar.[Ch]: change HYPHENATION_BREAK to
187         LIGATURE_BREAK, since the name is so stupid.
188
189 2001-07-20  Angus Leeming  <a.leeming@ic.ac.uk>
190
191         * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
192         the default InsetCollapsable methods. I.e., it can insert anything.
193         (write) output the name of the inset, not some silly hack for
194         compatability with the old InsetInfo.
195         
196         * insetinfo.[Ch]: removed.
197         * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
198         now collapsable, but functionality is otherwise identical to InsetInfo.
199
200         * Makefile.am: removed insetinfo.[Ch]. Added insetnote.[Ch].
201
202 2001-07-19  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
203
204         * insetspecialchar.[Ch]: add support for HYPHENATION_BREAK. some
205         reformatting
206
207         * insetquotes.C: general cleanup
208         (dispString): add spaces inside french double quotes.
209         (latex): ditto. Moreover, treat first the case where the frenchb
210         or french options have been given.
211
212 2001-07-19  Angus Leeming  <a.leeming@ic.ac.uk>
213
214         * insetcite.[Ch] (latex, validate): new methods, required for natbib
215         support.
216
217 2001-07-19  Dekel Tsur  <dekelts@tau.ac.il>
218
219         * figinset.C (RegisterFigure): Print debug message only when
220         current_view is available.
221
222 2001-07-18  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
223
224         * many files: update to match the change below
225
226         * inset.h (insetAllowed): renamed from insertInsetAllowed;
227         implement the version which takes an inset here.
228
229         * insetcollapsable.[Ch]: implement open and isOpen
230
231         * inset.h: remove insertInsetAllowed from Inset
232         (open): new method, to open or close an inset
233         (isOpen): returns the status of an inset
234         (isCollapsable, colapse): removed
235
236 2001-07-13  Yves Bastide  <stid@libd-pc11.univ-bpclermont.fr>
237
238         * insetquotes.C (dispString): display french guillemets when using
239         ISO8859-15.
240
241 2001-07-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
242
243         * insetcollapsable.h: remove bogus return statements
244
245 2001-07-18  Juergen Vigna  <jug@sad.it>
246
247         * insettabular.C (selectNextWord): fixed spellchecking for the
248         first cell of a tabular (wasn't entered!)
249         (getLyXText): changed to enter automatically insettext and return
250         it's LyXText if we're locked.
251
252 2001-07-17  Juergen Vigna  <jug@sad.it>
253
254         * various files: implemented the below functions.
255         
256         * inset.h: added functions
257         - virtual string selectNextWord(BufferView *, float & value) const;
258         - virtual void selectSelectedWord(BufferView *) { return; }
259         - virtual void toggleSelection(BufferView *, bool /*kill_selection*/)
260         needed for spellchecking correctly!
261
262 2001-07-16  Lars Gullik Bjønnes  <larsbj@birdstep.com>
263
264         * insetert.C (latex): write out all paragraphs.
265
266 2001-07-17  Baruch Even  <baruch@lyx.org>
267
268         * insetgraphics.C (draw): Removed unneeded casts.
269
270 2001-07-16  Juergen Vigna  <jug@sad.it>
271
272         * insettext.C (update): fixed small oversight (reset lt to 0).
273
274 2001-07-14  Baruch Even  <baruch@lyx.org>
275
276         * insetgraphics.h:
277         * insetgraphics.C: Added a copy c-tor and handled the same_id case. 
278
279 2001-07-13  Angus Leeming  <a.leeming@ic.ac.uk>
280
281         Consistent use of Lsstream.h:
282         * figinset.C: removed using std::ostringstream directive.
283
284         * insetgraphics.C (createLatexOptions):
285         * insetinclude.C (unique_id):
286         std::ostringstream -> ostringstream.
287         * insettext.C (localDispatch): std::istringstream -> istringstream.
288
289 2001-07-13  Juergen Vigna  <jug@sad.it>
290
291         * insetfloat.C (insertInsetAllowed): added missing const_cast.
292
293         * insetcollapsable.C (getLockingInset): ditto.
294
295 2001-07-12  Juergen Vigna  <jug@sad.it>
296
297         * insetcollapsable.h: added implementation of new function for
298         collapsable status.
299
300         * various files: added implementation of new insertInsetAllowed-func
301         and redone the function a bit more.
302         
303         * inset.h: added isCollapsable(), bool collapsed(),
304         collapsed(BufferView *, bool) and insertInsetAllowed(Inset::Code).
305
306         * insetfloat.C (insertInsetAllowed): make a bit more checks.
307
308         * insettext.C (getLyXText): use 'lt' to assure we're not erasing the
309         LyXText which is marked for removal while we're using it!
310
311         * insettext.h: added private LyXText * lt to use it to assure we are
312         not deleting our LyXText while we're using it!
313
314 2001-07-11  Juergen Vigna  <jug@sad.it>
315
316         * insettext.C (insertInset): check if we are before the inset after
317         inserting it! This check IS needed. Remove the Undo-Call as it is
318         called in LyXText::insertInset!
319
320         * insettext.h: added struct InnerCache.
321
322         * insettext.C (deleteLyXText): insert a new InnerCache mechanism so
323         that we ONLY delete the LyXText in the getLyXText() routine. So we
324         are sure we don't delete LyXText while someone is working with it!
325
326 2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
327
328         * insetexternal.C: (*it). -> it->
329         * insettext.C: ditto
330
331 2001-07-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
332
333         * insetcollapsable.C (edit): always open collapsed insets (even if
334         they are not autocollapsable)
335
336         * insetcommand.C (operator=): simplify.
337
338 2001-07-10  Lars Gullik Bjønnes  <larsbj@birdstep.com>
339
340         * insetert.C (latex): handle META_NEWLINE
341
342 2001-07-09  Juergen Vigna  <jug@sad.it>
343
344         * insetert.h: a normal InsetText can insert insets, but we won't.
345
346         * inset.h: return default "false" on insertInsetAllowed and implement
347         this function where a returnvalue != "false" is needed.
348
349 2001-07-08  Lars Gullik Bjønnes  <larsbj@birdstep.com>
350
351         * insetert.C (InsetERT): new contructor
352
353 2001-07-06  Juergen Vigna  <jug@sad.it>
354
355         * a lot of files: added implementation of the below new functions
356         and the change to clone(). Also the call of the new undo-functions
357         where needed.
358         
359         * inset.h: added an inset_id, added functions getParFromID,
360         getInsetFromID, firstParagraph, cursor and id functions, added
361         bool same_ids to clone function.
362
363 2001-07-05  Lars Gullik Bjønnes  <larsbj@birdstep.com>
364
365         * insettext.[hC]: make cached_text a shared_ptr, make Cache be a map
366         of BufferView * and shared_ptr<LyXText>
367
368 2001-07-05  Juergen Vigna  <jug@sad.it>
369
370         * insettext.C (clear): deleted also the cache not only LyXText.
371         (setParagraphData): ditto.
372
373 2001-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
374
375         * insetfloat.C (latex): let the specific placement take presedence
376         if set, otherwise choose document placement if set, otherwise just
377         use float default placement.
378
379 2001-07-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
380
381         * insettext.C (localDispatch): call CutAndPaste::'s static method
382         directly. 
383
384 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
385
386         * insetbib.C: no meed to include forms.h here.
387
388 2001-07-03  Angus Leeming  <a.leeming@ic.ac.uk>
389
390         * insettext.C: added using std::make_pair directive.
391
392 2001-07-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
393
394         * insettext.C (getLyXText): avoid multiple lookups, and simplify
395         slightly
396         (deleteLyXText): ditto
397         (resizeLyXText): ditto
398
399 2001-07-02  Juergen Vigna  <jug@sad.it>
400
401         * insettext.C (getLyXText): introduce a cache in getLyXText so that
402         following calls are only returned the right pointer without the over
403         head to search in the map.
404         (various funcs): reset the cached_bview variable as this signs that
405         the cache is not valid anymore.
406
407 2001-06-29  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
408
409         * insettabular.C (clone): do not copy the LyXTabular twice
410
411 2001-06-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
412
413         * insettext.h (TEXT): delete method
414
415 2001-06-29  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
416
417         * insetmarginal.C (latex): 
418         * insetfoot.C (latex): fix spacing of notes in LaTeX
419
420         * insettext.C (localDispatch): use .c_str() on istringstream
421         constructor argument.
422
423 2001-06-29  John Levon  <moz@compsoc.man.ac.uk>
424
425         * insettoc.h:
426         * insettoc.C:
427         * inseturl.h:
428         * inseturl.C: fix method names in these to begin
429           with small char too, so they inherit
430  
431 2001-06-28  Juergen Vigna  <jug@sad.it>
432
433         * insettext.C (setFont): fixed font settings using toggleFree()
434         instead of setFont().
435
436 2001-06-28  Lars Gullik Bjønnes  <larsbj@birdstep.com>
437
438         * Change a lot of method names to begin with a small char.
439         Changes to a lot of files because of this.
440
441 2001-06-27  Lars Gullik Bjønnes  <larsbj@birdstep.com>
442
443         * insetfloatlist.C (Write): std:: qualify ostream
444         (Latex): ditto
445
446 2001-06-26  The LyX Project  <lyx@violet.home.sad.it>
447
448         * figinset.C:
449         * inset.C:
450         * insetgraphics.C: send debug output to Debug::INFO instead of
451         Debug::ANY.
452
453 2001-06-26  The LyX Project  <lyx@rose.home.sad.it>
454
455         * insettabular.h:
456         * insettabular.C (getStatus): update to use func_status
457
458 2001-06-26  ben <nicolas.marsgui@libertysurf.fr>
459
460         * insetref.C (DocBook): added support for cross-references without
461         a name.
462
463 2001-06-26  The LyX Project  <jug@sad.it>
464
465         * insetref.C:
466         * insetref.h:
467         * insetlabel.C:
468         * insetlabel.h: removed escape method and moved it to
469         support/lstrings.h.
470
471 2001-06-26  Lars Gullik Bjønnes  <larsbj@birdstep.com>
472
473         * insettabular.C (getMaxWidth): do the speedup in a different way,
474         remove dead code
475
476 2001-06-24  The LyX Project  <Asger>
477
478         * insettabular.C (getMaxWidth): We cache a mapping from
479         inset to cell in order to speed this method up.
480
481 2001-06-24  The LyX Project  <Asger>
482
483         * insettext.C: Optimized InsetText::draw or something.
484
485 2001-06-23  The LyX Project  <lyx@rose.home.sad.it>
486
487         * insettext.C (LocalDispatch): fixed inserting of 'normal chars'
488
489 2001-06-23  Lars Gullik Bjønnes  <larsbj@birdstep.com>
490
491         * inset.h: name change from lyxinset.h
492
493 2001-06-22  Dekel Tsur  <dekelts@tau.ac.il>
494
495         * insetfloat.C (Validate): Add a call to InsetCollapsable::Validate
496
497 2001-06-14  Juergen Vigna  <jug@sad.it>
498
499         * insettext.C (draw): removed warnings.
500
501 2001-06-13  Juergen Vigna  <jug@sad.it>
502
503         * insettabular.C (nodraw): only go down the tree if we don't have
504         that flag set otherwise it's obvious that we don't want to draw.
505         (LocalDispatch): do also an update if we have an undispached result.
506
507 2001-06-19  Angus Leeming  <a.leeming@ic.ac.uk>
508
509         * insetcite.C:
510         * insetgraphicsParams.C:
511         * insettext.C: removed // -*- C++ -*- as first line.
512
513 2001-06-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
514
515         * lyxinset.h (resizeLyXText): shut off warning about unused
516         parameter "force" 
517
518 2001-06-07  Juergen Vigna  <jug@sad.it>
519
520         * insettext.C (resizeLyXText): honor the new force flag.
521
522         * lyxinset.h: add 'bool force' parameter to resizeLyXText(...)
523
524         * insettabular.C (deleteLyXText): new function
525
526 2001-06-02  John Levon  <moz@compsoc.man.ac.uk>
527
528         * insettheorem.C:
529         * insetminipage.C:
530         * insetlist.C:
531         * insetfootlike.C:
532         * insetfloat.C:
533         * insetert.C:
534         * insetcollapsable.C:
535         * insetcaption.C: LColor tidy
536          
537 2001-06-01  Lars Gullik Bjønnes  <larsbj@birdstep.com>
538
539         * figinset.C: fix typo
540
541 2001-06-01  Juergen Vigna  <jug@sad.it>
542
543         * insettabular.C (resetPos): small hack so that scroll is not set to
544         0 when we are in the last column of a tabular. This is a problem we
545         have because of constats 20 offset on both directions, so this can
546         cause on the limit an endless loop.
547
548         * insettext.C (SetFont): forgot that we can have locking insets ;)
549
550 2001-05-31  Juergen Vigna  <jug@sad.it>
551
552         * insettabular.C (LocalDispatch): small fix for LFUN_TAB.
553
554 2001-05-31  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
555
556         * figinset.C: add using std:: directive for the C functions which
557         need that.
558
559 2001-05-31  Lars Gullik Bjønnes  <larsbj@birdstep.com>
560
561         * insetfloat.C (Write): write out wide info
562         (Read): read the wide info
563         (Latex): use the wide info when creating latex.
564
565         * insettext.C: adjust
566
567         * insetgraphics.[Ch] (statusMessage): change to return string
568         (width): adjust
569         (draw): adjust
570
571         * figinset.C (runqueue): add std::
572         (Recompute): ditto
573
574 2001-05-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
575
576         * insetcite.C (Ascii): add std:: qualifier
577
578 2001-05-28  Juergen Vigna  <jug@sad.it>
579
580         * insettext.C (resizeLyXText): clear LyXText ONLY if we don't have
581         a endless-width inset (maxWidth < 0).
582         (Edit): change language only if not equal.
583
584         * insettabular.C (resetPos): call UpdateLocal only on REAL scroll!
585
586         * insettext.C (draw): fixed draw/clear of InsetText-Frame
587
588 2001-05-16  Juergen Vigna  <jug@sad.it>
589
590         * insettext.C (selectAll): added
591         (clearSelection): added
592
593         * insettabular.C (SetFont): now we may set a font on a whole selection!
594         (getSelection): added helper function.
595
596 2001-05-27  Dekel Tsur  <dekelts@tau.ac.il>
597
598         * insetcite.C (Ascii): Add method.
599
600 2001-05-16  Ruurd Reitsma  <r.a.reitsma@wbmt.tudelft.nl>
601
602         * figinset.C:
603         * insetbib.C: fix path for OS/2 & Win32
604
605 2001-05-10  Lars Gullik Bjønnes  <larsbj@birdstep.com>
606
607         * insetfoot.C (Latex): don't use % after footnote.
608
609 2001-05-08  Lars Gullik Bjønnes  <larsbj@birdstep.com>
610
611         * insettext.C (Read): use clear
612         (SetParagraphData): use LyXParagraph copy constructor instead of clone
613
614 2001-05-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
615
616         * insetfloatlist.h: add a bunch of std:: qualifiers.
617
618 2001-05-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
619
620         * lyxinset.h: remve LOF_CODE, LOT_CODE, LOA_CODE, add
621         FLOAT_LIST_CODE, renumber code list.
622
623         * insettoc.C (getScreenLabel): remove support for float lists
624         (LyxCode): ditto
625         (Ascii): ditto
626
627         * insetfloatlist.[Ch]: new files
628
629         * Makefile.am (libinsets_la_SOURCES): add insetfloatlist.[Ch]
630
631 2001-04-27  Angus Leeming  <a.leeming@ic.ac.uk>
632
633         * insettabular.C (LocalDispatch):
634         * insettext.C (LocalDispatch): getClipboard() is now a BufferView
635         method 
636
637 2001-05-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
638
639         * insettext.C: remvoe !NEW_INSETS cruft
640
641         * insettabular.C: remove !NEW_INSETS cruft
642
643         * insetcollapsable.h: remove !NEW_INSETS cruft
644
645         * insetbib.C: remove !NEW_INSETS cruft
646
647 2001-04-27  Lars Gullik Bjønnes  <larsbj@birdstep.com>
648
649         * insettoc.C: hack to make listof algorithm work
650
651 2001-04-20  Juergen Vigna  <jug@sad.it>
652
653         * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
654
655 2001-04-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
656
657         * insetquotes.C (Latex): improve the guard against
658         unwanted !` and ?` ligatures. This should really be done in
659         another place (to catch all this ligatures at low-level).
660
661 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
662
663         * insettext.C (init): remvoe leftovers from cursor_visible change
664         (draw): use c++ cast
665         (LocalDispatch): dispatch LFUN_MESSAGE
666
667         * insettabular.C (InsetTabular): remove leftovers from
668         cursor_visible, and scoped_ptr changes
669         (draw): use c++ cast
670
671         * insetcollapsable.C (draw): use c++ cast
672
673         * ExternalTemplate.h: inherit privaely from noncopyable
674         * insetcommand.h: ditto
675         * insetinclude.h: ditto
676
677 2001-04-16  Allan Rae  <rae@lyx.org>
678
679         * insettoc.C (Ascii): 
680         * insettext.C (draw): 
681         * insettabular.C (setPos): 
682         * insetminipage.C (Read): 
683         * insetfloat.C (placement): 
684         * insetcaption.C (Ascii, DocBook): 
685         * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as
686         an unrecognised preprocessor directive.  So ensure they're wrapped. 
687
688 2001-04-06  John Levon  <moz@compsoc.man.ac.uk>
689
690         * insetexternal.h:
691         * insetexternal.C: set view on Clone. Add _ to private members.
692
693 2001-04-06  Lars Gullik Bjønnes  <larsbj@birdstep.com>
694
695         * insettext.C (InsetText): fix new
696         (InsetText): reindent some, simplify deletion of par list 
697         (clear): simplify deletion of par list, fix new
698         (SetParagraphData): simplify deletion of par list
699
700         * insettabular.[Ch] (getLabelList): implement new method
701
702 2001-04-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
703
704         * lyxinset.h: do not include gettext.h...
705
706         * inset.C:
707         * insetcaption.C:
708         * insetexternal.C:
709         * insetgraphics.C:
710         * insetindex.C:
711         * insetlabel.C:
712         * insetlatexaccent.C:
713         * insetminipage.C:
714         * insetquotes.C:
715         * insettabular.C:
716         * inseturl.C: ... and do it here instead
717
718 2001-04-05  Lars Gullik Bjønnes  <larsbj@birdstep.com>
719
720         * insetcollapsable.[Ch] (getLabelList): add std:: on vector<string>
721
722         * insettext.[Ch] (getLabelList): add std:: on vector<string> 
723
724         * insetcollapsable.[Ch] (getLabelList): implement
725
726         * insettext.[Ch] (getLabelList): implement
727
728         * insettext.h: reindent
729
730         * insettabular.h: make tabular a scoped_ptr
731
732         * insettext.C (init): adjust for cursor_visible
733         (ToggleInsetCursor): constify asc and desc, font, adjust for
734         cursor_visible
735         (ShowInsetCursor): constify asc and desc, font, adjust for
736         cursor_visible
737         (HideInsetCursor): adjust for cursor_visible
738
739         * insettabular.C: reindent some
740         (InsetTabular): adjust for scoped_ptr and cursor_visible
741         (InsetTabular): ditto
742         (~InsetTabular): delete delete
743         (Clone): adjust for scoped_ptr
744         (Read): constify old_format, adjust for scoped_ptr, move init of
745         token
746         (draw): constify tx, localize loop vars.
747         some other localization of variables, remove double initilizatons.
748         
749         * insetfoot.C: remove using std::ostream, add ostream where needed
750
751 2001-04-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
752
753         * lyxinset.h: some reindentaion, use initializer list for
754         constructro.
755         UpdatableInset: make cursor_visible a private var add
756         public isCursorVisible(), add protected toggleCursorVisible() and
757         proctected setCursorVisible(bool), make scroll call the Inset::scroll
758
759         * insettoc.C: remvoe using decl
760         (getScreenLabel): make cmdname donst
761         (LyxCode): ditto
762         (Ascii): ditto
763         (Ascii): don't use endl
764
765         * insetfootlike.C: remove using decl at file scope and add std::
766         where needed
767         * insetmarginal.C: ditto
768
769         * insetfoot.C: some reformatting
770
771         * insetfloat.C (InsetButtonRelease): adjust the hit area
772
773         * insetert.C (SetFont): some reformatting
774
775         * insetcollapsable.C: some reformatting and constification
776         (Clone): comment out.
777         * insetcollapsable.h: some reformatting
778         (Clone): comment out.
779         
780         * inset.C: reindent
781         (scroll): simplify
782
783 2001-03-30  Juergen Vigna  <jug@sad.it>
784
785         * insetcollapsable.h: changen *inset to be a InsetText inset.
786         
787         * some files: changed to reflect the above change.
788
789 2001-03-29  Angus Leeming  <a.leeming@ic.ac.uk>
790
791         * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as
792         InsetExternal::Params.
793         Added operator==() and operator!=() for the Params struct.
794
795 2001-03-29  Juergen Vigna  <jug@sad.it>
796
797         * lyxinset.h: changed parameter of getMaxWidth from Painter & to
798         BufferView *.
799
800         * insetminipage.C: removed widthp_ and all it's functions and changed
801         to use new %-lengths of LyXLength.
802
803 2001-03-28  Angus Leeming  <a.leeming@ic.ac.uk>
804
805         * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h.
806
807 2001-03-27  Angus Leeming  <a.leeming@ic.ac.uk>
808
809         * insetgraphicsParams.C (operator!=): new function, needed by the
810         ControlGraphics class.
811
812 2001-03-28  Juergen Vigna  <jug@sad.it>
813
814         * insettext.C (InsetButtonPress): only enter !inset if button == 2
815         (checkAndActivateInset): don't use the values returned from
816         call to bv->checkInsetHit.
817
818         * insetminipage.C (Clone): set special minipage values.
819
820         * insetcollapsable.C (draw): changed to draw the button in the
821         upper left corner outside the textinset.
822         (ascent): changed because of different drawing 
823         (descent): ditto
824         (width): ditto
825         (Edit): ditto
826         (InsetButtonPress): ditto
827         (InsetButtonRelease): ditto
828         (InsetMotionNotify): ditto
829
830 2001-03-27  Dekel Tsur  <dekelts@tau.ac.il>
831
832         * figinset.C (GetPSSizes): Fix for the case when filename doesn't
833         contain a suffix.
834         (Clone): ditto
835
836 2001-03-26  Juergen Vigna  <jug@sad.it>
837
838         * lyxinset.h: added ShowInsetDialog() function in UpdatableInset.
839
840         * insettext.C (ShowInsetDialog): implemented above function.
841
842         * insettabular.C (ShowInsetDialog): ditto
843
844         * insetminipage.C (ShowInsetDialog): ditto
845
846 2001-03-23  Angus Leeming  <a.leeming@ic.ac.uk>
847
848         * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as
849         InsetInclude::Params. Don't store a buffer * in Params. Store the
850         master file name instead.
851
852 2001-03-23  Juergen Vigna  <jug@sad.it>
853
854         * insetcollapsable.C (InsetMotionNotify):
855         (InsetButtonRelease): 
856         (InsetButtonPress): fixed y-offset (minipages).
857
858         * insettext.C (draw): force a FULL update if cleared == true.
859
860         * insetcollapsable.C (draw): Lars forgotten entry for changing this
861         routine to draw the minipages on its position-flag.
862         (InsetInInsetY): give back the right y position, because of minipage
863         position-flag.
864
865 2001-03-23  José Abílio Matos  <jamatos@fep.up.pt>
866
867         * insetfloat.h
868         * insetfloat.C (DocBook): docbook export code.
869
870 2001-03-22  Juergen Vigna  <jug@sad.it>
871
872         * insetminipage.C (getMaxWidth): added function to set the drawing
873         width!
874         (Read): should work now!
875
876         * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed
877         if we create a new inset.
878
879 2001-03-20  Angus Leeming  <a.leeming@ic.ac.uk>
880
881         * figinset.C (fl_set_preemptive_callback): moved definition outside
882         of namespace anon.
883
884 2001-03-20  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
885
886         * insetminipage.C (Read): prepare for reading of minipage arguments.
887
888 2001-03-18  Baruch Even  <baruch@lyx.org>
889
890         * insetgraphics.C: Minor cleanups of the comments and code.
891
892 2001-03-17  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
893
894         * insetminipage.C (InsetMinipage): default to not collapsed
895
896 2001-03-16  Juergen Vigna  <jug@sad.it>
897
898         * insetminipage.C (width): modified with to be a string
899         (widthp): added widthp (for % width) support functions.
900         (InsetButtonRelease): added to open the options dialog on button==3.
901         (~InsetMinipage): added to hide the dialog.
902
903         * insetminipage.h: added hideDialog signal
904
905 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
906
907         * insetminipage.h: change the order or Position to match
908         LyXParagraph::MINIPAGE_ALIGNMENT
909
910         * several files: remvoe CXX_WORKING_NAMESPACES
911
912         * ExternalTemplate.h: noncopyable is in namespace boost
913         * insetinclude.h: ditto
914         * insetcommand.h: ditto
915
916 2001-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
917
918         * insettext.C (Edit): #else# -> #else.
919         * insettoc.C: added using directive.
920
921 2001-03-14  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
922
923         * insetminipage.h: add pos, inner_pos, width and height. + getters
924         and setters for all of them.
925
926 2001-03-13  Dekel Tsur  <dekelts@tau.ac.il>
927
928         * insetinclude.C (Latex): Do not exit when the textclass of the
929         included file differ from the textclass of the parent file.
930
931 2001-03-12  Angus Leeming  <a.leeming@ic.ac.uk>
932
933         * ExternalTemplate.C (read): the reading of external insets now checks
934         for \end_inset and removes it form the input stream.
935
936 2001-03-09  John Levon  <moz@compsoc.man.ac.uk>
937
938         * ExternalTemplate.h:
939         * ExternalTemplate.C:
940         * insetexternal.h:
941         * insetexternal.C: move form to GUII
942
943 2001-03-12  John Levon  <moz@compsoc.man.ac.uk>
944
945         * insetinclude.h:
946         * insetinclude.C: add InsetIncludeParams, use
947         composition rather than derivation of InsetCommand
948
949 2001-03-12  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
950
951         * insettoc.C (Ascii): use the Buffer typedefs
952
953 2001-03-11  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
954
955         * insettoc.C (Ascii): implement for dynamic number of lists
956
957         * insetcaption.[Ch]: update from new_insets branch
958         * insetfloat.[Ch]: ditto
959         
960 2001-03-06  John Levon  <moz@compsoc.man.ac.uk>
961
962         * insetexternal.C:
963         * figinset.C: use new File Dialog
964
965 2001-03-06  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
966
967         * insettext.C: changes becuase of ParagraphParameters.
968
969 2001-02-28  Baruch Even  <baruch@ev-en.org>
970
971         * insetgraphics.C (updateInset): Changed due to the change in
972         GraphicsCache.
973
974 2001-02-26  Juergen Vigna  <jug@sad.it>
975
976         * insettext.C (SetFont): Set Undo only if we have selection (as it is
977         handled in LyXText).
978
979 2001-02-23  Juergen Vigna  <jug@sad.it>
980
981         * insettext.C (draw): some small repainting fixes.
982         (LocalDispatch): put the sel_cursor stuff after the insert of chars.
983
984         * inset.C (LocalDispatch): changed action to be a kb_action (as it
985         should be) and not an int.
986         
987         * insettabular.C (LocalDispatch): ditto
988
989         * insettext.C (LocalDispatch): ditto
990
991         * insetcollapsable.C (LocalDispatch): ditto
992
993 2001-02-22  Juergen Vigna  <jug@sad.it>
994
995         * insettabular.C (LocalDispatch): return DISPATCHED if we cannot
996         DISPATCH it and we don't have a locking_inset.
997
998 2001-02-21  Baruch Even  <baruch@ev-en.org>
999
1000         * insetgraphics.[Ch]: Changed to use boost::shared_ptr<GraphicsCacheItem>
1001         instead of GraphicsCacheItem *.
1002
1003 2001-02-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1004
1005         * insetcollapsable.C (getLyXText): add const qualifier to second
1006         parameter. 
1007
1008 2001-02-22  Juergen Vigna  <jug@sad.it>
1009
1010         * insettext.C (getLyXText): honor the recursive parameter.
1011         (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
1012
1013         * inset.C (getLyXText): added bool recursive parameter.
1014
1015         * insettext.C (SetUpdateStatus): or the update codes.
1016         (draw): check need_update with &.
1017         (InsetButtonPress): set no_selection to not put a selection when
1018         entering an inset and it is redraws in another spot.
1019
1020         * insettext.h: made need_update an int.
1021
1022 2001-02-20  Baruch Even  <baruch@ev-en.org>
1023
1024         * insetgraphics.h:
1025         * insetgraphisc.C: Changed to use better semantics when loading images
1026         for inline view. Now it doesn't keep the pixmap itself but it's holder.
1027
1028 2001-02-19  Angus Leeming  <a.leeming@ic.ac.uk>
1029
1030         * insetcommand.h:
1031         * inseterror.h:
1032         * insetgraphics.C: change name of "hide" signal to "hideDialog",
1033         consistent with InsetTabular.
1034         
1035 2001-02-19  Juergen Vigna  <jug@sad.it>
1036
1037         * insettabular.C (LocalDispatch): implement PAGE up/down.
1038
1039         * insettext.C (draw): clear all of it on need_update==INIT too!
1040
1041         * insettabular.C (InsetUnlock): always clear the selection.
1042
1043         * inset.C (scroll): normally we only want to scroll the inset until
1044         it is fully visible so if top_x + offset > 20 then just set scx to 0.
1045
1046 2001-02-14  Juergen Vigna  <jug@sad.it>
1047
1048         * insettabular.C (LocalDispatch): remove x_fix as it is not used.
1049         (resetPos): fixed scroll behaviour.
1050         (LocalDispatch): do an update if moving cursor inside a table cell
1051         requests a scroll of the tabular.
1052
1053 2001-02-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
1054
1055         * insettext.C (textWidth): constify local var
1056
1057         * insettabular.C: small cleanup.
1058
1059         * insetfoot.C (Latex): constify local var
1060
1061         * insetcollapsable.C: small cleanup.
1062
1063         * figinset.C (runqueue): use compare instead of strcmp
1064
1065 2001-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
1066
1067         * insettext.C:
1068         * insetinfo.C: remove cruft
1069
1070 2001-02-14  Juergen Vigna  <jug@sad.it>
1071
1072         * insettext.C (SetUpdateStatus): added a BufferView * parameter.
1073
1074 2001-02-13  Juergen Vigna  <jug@sad.it>
1075
1076         * insettext.C (InsertInset): don't move left (is this right?)
1077
1078         * insettabular.C (LocalDispatch): use of the no_draw variable
1079
1080         * insettabular.h: new no_draw variable to stop redraw
1081
1082         * insettabular.C (TabularFeatures): fixed update for alignment change
1083
1084 2001-02-12  John Levon  <moz@compsoc.man.ac.uk>
1085
1086         * insetinclude.C:
1087         * insetbib.h:
1088         * insetbib.C: move dialogs to frontends/
1089
1090 2001-02-10  Dekel Tsur  <dekelts@tau.ac.il>
1091
1092         * insettext.C (LocalDispatch): Restore the language if the inset
1093         becomes empty.
1094
1095 2001-02-09  Dekel Tsur  <dekelts@tau.ac.il>
1096
1097         * insettext.C (moveRightIntern): Update the selection cursor.
1098         (moveLeftIntern): Ditto.
1099
1100 2001-02-09  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1101
1102         * Makefile.am: remove BoundingBox.h
1103
1104         * BoundingBox.h: removed
1105
1106 2001-02-08  Dekel Tsur  <dekelts@tau.ac.il>
1107         
1108         * insettext.C (LocalDispatch): Update selection cursor when moving 
1109         cursor to the right.
1110         (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
1111         (moveLeftIntern): Ditto.
1112
1113 2001-02-05  Baruch Even  <baruch.even@writeme.com>
1114
1115         * insetgraphics.C: Updated automatic image conversion, it now goes into
1116         temporary directory instead of with the image itself.
1117
1118 2001-01-21  Baruch Even  <baruch@ev-en.org>
1119
1120         * insetgraphics.C: Added Docbook support. Added Automatic image conversion
1121         to EPS or PNG when needed (support bitmap graphics).
1122
1123 2000-11-02  Baruch Even  <baruch@ev-en.org>
1124
1125         * insetgraphics.C:
1126         * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n'
1127         and removal of commented out code.
1128
1129 2001-01-31  Dekel Tsur  <dekelts@tau.ac.il>
1130
1131         * insetbib.C (callback): Update citations if the key has changed.
1132
1133 2001-01-31  Dekel Tsur  <dekelts@tau.ac.il>
1134
1135         * insetbib.C (InsetBibKey): Better computation of default key.
1136         (getScreenLabel) Show both the key and the label.
1137         (getBibLabel): New method.
1138         (callback): Force a redraw if the inset have been changed.
1139
1140 2001-01-26  Dekel Tsur  <dekelts@tau.ac.il>
1141
1142         * insetref.C (getType, getName): Move methods from 
1143         src/frontends/xforms/FormRef.C.
1144
1145 2001-01-12  Dekel Tsur  <dekelts@tau.ac.il>
1146
1147         * insettabular.C: Various improvements (use only one dummy position).
1148
1149 2001-01-25  Dekel Tsur  <dekelts@tau.ac.il>
1150
1151         * insetbib.C (bibitemWidest): Use lyxfont::width instead of
1152         par->bibkey->width. This fixes the crashes when running without
1153         gui or when having included documents.
1154
1155 2001-01-22  Dekel Tsur  <dekelts@tau.ac.il>
1156
1157         * insetcommand.C (getAsString, setFromString): Cleanup.
1158
1159 2001-01-21  Dekel Tsur  <dekelts@tau.ac.il>
1160
1161         * insetref.C: Add the array InsetRef::types that contains
1162         information about all supported reference types.
1163
1164 2001-01-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1165
1166         * lyxinset.h: remove trailing comma in enum.
1167
1168 2001-01-17  John Levon  <moz@compsoc.man.ac.uk>
1169
1170         * insettext.C: kill LyXBell.