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