1 2001-08-10 Juergen Vigna <jug@sad.it>
3 * insettext.C (saveLyXTextState): check for invalid cursor-par.
4 (reinitLyXText): remove wrong_cursor bool as not needed anymore!
6 * insettabular.C (calculate_dimensions_of_cells): let's try to call
7 update only for fixed with cells.
8 (resetPos): try to fix the lockup on spellchecking or s&r.
10 * insettext.C (update): comment this out as it seems first wrong
11 and second not needed anymore!
12 (some functions): call reinitLyXText() only in update() in all other
13 positions set only need_update = INIT.
15 2001-08-08 Juergen Vigna <jug@sad.it>
17 * insettabular.C (setPos): fixed wrong actrow < rows() check.
19 * insettext.C (insetUnlock): remove double-space on inset unlock.
21 * insetcollapsable.C (draw): fix returned x when label > inset-width.
23 * insettabular.C (update): fixed cursor positon after an insert.
24 (insetAllowed): do not allow to insert insets when not inside the
26 (draw): clear below an inset too as it could have changed height.
28 * inset.C (getMaxWidth): fixed width for inset in inset.
30 * insettext.C (update): small fix.
32 * insettabular.C (tabularFeatures): added selection support to
33 DELETE_ROW/DELETE_COLUMN.
35 2001-08-07 Juergen Vigna <jug@sad.it>
37 * inset.C (getMaxWidth): recoded and all it's implementations!
39 * insettext.C (init,setParagraph+constructors): cleanups
40 (reinitLyXText): fixed problem with wrong cursor when all paragraphs
41 are new and I want do a save/restore of the cursor position which is
44 * insetcollapsable.C (searchBackward): recollapse inset if not found.
45 (searchBackward): ditto
46 (selectNextWord): ditto
48 2001-08-07 Angus Leeming <a.leeming@ic.ac.uk>
50 * insetlatexaccent.C (checkContents): Add some debug messages
52 2001-08-07 Juergen Vigna <jug@sad.it>
54 * insetert.C (read): don't use InsetCollapsable::read as we don't
55 write the collapsed status anymore only the status.
58 2001-08-06 Juergen Vigna <jug@sad.it>
60 * insetert.C (set_latex_font): use LyXText's setFont directly.
62 * insettext.C (drawFrame): fixed one time more the right position
63 and size of the frame!
65 * insetert.C (~InsetERT): hide the dialog.
66 (showInsetDialog): added implementation
69 (status): new function for the status of the ERT inset (3-state).
70 (write): output also the status of the inset for readback!
71 (read): readback the status if available otherwise use collapsed_.
73 * insettext.C (edit): small fix of setting the position, which could
76 * insetert.C (width): implement this function for inlined viewing.
77 Added minimum width of 10 pixels!
79 * insetminipage.C (InsetMinipage): just change the colors a bit so
80 that border/background is a bit more visible. We will remove this
83 * insettext.C (textWidth): add a 'bool fordraw' parameter and use this
84 function for getting the important widths for drawing in various
85 functions and in LyXText.
86 (draw): fixed up a bit (frame drawing/clearing)
88 2001-08-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
90 * inset.C (convertFont): delete method. not used.
92 2001-08-03 Juergen Vigna <jug@sad.it>
94 * insettext.C (setFont): don't call for a draw update if we're just
95 changing the cursor font!
97 2001-08-02 Juergen Vigna <jug@sad.it>
99 * insettext.C (draw): clear the background with the right color if
100 needed. Update myself if x&max-width changed and return without doing
101 anything. Let the update code handle the right stuff.
103 * insetminipage.C (getMaxWidth): fixed returning of maxwidth when
104 inside another inset.
106 2001-08-01 Juergen Vigna <jug@sad.it>
108 * insetcollapsable.C (update): added an in_update bool so we avoid
111 * insettabular.C (update): added an in_update bool so we avoid
114 * insettext.C (insetButtonPress): hopefully fixed setselection/clear
116 (update): added an in_update bool so we avoid reentering.
118 * insettabular.C (localDispatch): clear col/row selection when doing
119 something else inside an inset.
121 * insettext.C (getLyXText): fixed bug when requesting a recursive
124 2001-08-01 Angus Leeming <a.leeming@ic.ac.uk>
126 * insetcite.C (latex): Paranoia check. Make sure that there is no
127 whitespace between the citation keys.
129 2001-07-31 Juergen Vigna <jug@sad.it>
131 * inset.h (nodraw): make the set function also const so that this
132 can be called from inside other const functions.
134 * insetcollapsable.h: removed inline variable and moved it over
135 to the only user InsetERT.
137 * insetcollapsable.C (insetButtonRelease): fixed uncollpasing the
138 inset opening immediately therein lying insets dialogs!
140 * insetert.C (localDispatch): set the font also if we don't have any
141 chars in this paragraph, otherwise if we delete all of em and start
142 writing we have the wrong font.
144 (draw): implemented for inline support
145 (insetButtonRelease): ditto.
147 2001-07-30 Juergen Vigna <jug@sad.it>
149 * insettext.C (reinitLyXText): new function to reinit the insets
150 text after lot's of paragraph changes. Use this instead of the
151 cache.clear() which is VERY dangerous.
153 * insetfloat.C (insetButtonRelease): we should only show the dialog
154 if we press on the label otherwise we have problems to open mouse
155 button 3 dialogs inside this float (f.ex. of a tabular!)
157 2001-07-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
159 * insetert.C: change back to "ERT"
161 * insetfloat.C: handliign of RMB on label added.
163 2001-07-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
165 * insetgraphicsParams.C: #include LOstream.h here.
167 * insetfoot.h: remove InsetFoot:: qualifier.
169 2001-07-29 Baruch Even <baruch@lyx.org>
171 * ChangeLog: Hiding time travel evidence.
173 * insetgraphicsParams.h:
174 * insetgraphicsParams.C:
175 * insetgraphics.C: Added horizontal scale option, it actually scales both
176 directions since it keeps image proportions.
178 * insetgraphics.C: Fixed EPS detection to be non-hacky.
180 2001-07-29 Baruch Even <baruch@lyx.org>
182 * insetgraphics.C (decideOutputImageFormat): when doing postscript output
183 convert PNG/GIF/JPG to EPS, assume the rest are EPS already.
185 HACKY! Will need to add an EPS detection routine like old InsetFig does!
187 2001-07-29 Baruch Even <baruch@lyx.org>
189 * insetgraphics.C: Added EPSI to be an alias of EPS.
191 2001-07-29 Baruch Even <baruch@lyx.org>
193 * insetgraphics.C: Change GRAPHICS to Graphics.
194 Changed image conversion rules (documented at the beginning of file).
196 2001-07-28 Angus Leeming <a.leeming@ic.ac.uk>
198 * insetert.C (get_new_label): int -> Paragraph::size_type to get
201 * insetgraphics.C: added a using std::endl directive.
203 * insetcommand.h (getScreenLabel): removed pure virtual function,
204 as it duplicates that in InsetButton.
206 * insetbib.[Ch] (getScreenLabel):
207 * insetbutton.[Ch] (getScreenLabel):
208 * insetcite.[Ch] (getScreenLabel):
209 * insetert.[Ch] (getScreenLabel):
210 * insetexternal.[Ch] (getScreenLabel):
211 * insetfloatlist.[Ch] (getScreenLabel):
212 * insetinclude.[Ch] (getScreenLabel):
213 * insetindex.[Ch] (getScreenLabel):
214 * insetlabel.h (getScreenLabel):
215 * insetparent.[Ch] (getScreenLabel):
216 * insetref.[Ch] (getScreenLabel):
217 * insettoc.[Ch] (getScreenLabel):
218 * inseturl.[Ch] (getScreenLabel): passed a Buffer const * parameter.
220 * insetcite.C (getScreenLabel): use this Buffer parameter in creating
222 (validate): remove check on "cite" when using natbib.
224 2001-07-26 Baruch Even <baruch@lyx.org>
226 * insetgraphics.C (draw): changed casting to be in one place rather than
227 all over the function.
230 * insetgraphics.C (read): Added compatibility reads of InsetFig.
232 * insetgraphicsParams.h:
233 * insetgraphicsParams.C:
234 * insetgraphics.C: Removed inline option and changed rotateAngle to float.
236 2001-07-28 Kayvan A. Sylvan <kayvan@sylvan.com>
238 * insetfoot.C (validate): Added method to ensure that the
239 right bit of LaTeX is emitted.
241 * insetfoot.h: Added validate method to set the correct
242 LaTeXFeatures bit for the special footnote code.
244 2001-07-26 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
246 * insetquotes.C (dispString): display the right ISO8859-{1,9,15}
249 2001-07-27 Juergen Vigna <jug@sad.it>
251 * inset.h: remove not used font variable in parameter.
252 removed checkInsertChar in UpdatableInset as it was equal to
253 the one in Inset and so not needed.
255 * insetert.C (checkInsertChar): implementation of function
258 * inset.h: added new function checkInsertChar.
260 * various files: added c-tor and clone() function.
262 * insetcollapsable.h: removed clone function here as this should
263 be only realized in REAL insets and added it to all collapsable
264 insets! (with the copy-constructor).
266 2001-07-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
268 * insetminipage.C (read): handle missing parameters more gracefully
270 * insetcollapsable.C (read): handel missing collapsed more gracefully
272 2001-07-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
274 * insetfloat.C (read): handle missing parameters.
276 * insettext.C (read): handle old latex end_inset
278 * insetert.C (setButtonLabel): new method
279 (init): use it, to set the dynamic label correctly
282 * Makefile.am (EXTRA_DIST): add files that is not part or the
285 * insetcollapsable.h: remove autocollapsable (no users), remove
286 draw_label, change_label_with_text and companion code. Remove args
288 * insetert.[Ch]: move here instead (only user)
290 * inset.h: rename private variable name to name_, make
291 selectNextWord return a const string. make getInsetName return a
292 string const &. Remove bool from open, add close.
294 * Makefile.am: don't compile insetlist, insetsection
297 2001-07-24 Juergen Vigna <jug@sad.it>
299 * insetert.C (InsetERT): put init after the paragraph initialization,
300 as otherwise we don't set the draw_label right.
302 * insetcollapsable.C (insetMotionNotify): fixed opening/closing the
303 insets with the mouse without having strange selections.
304 (edit): if the inset was collapsed and we open it here then put the
305 cursor always at the beginning of the inset.
306 (get_new_label): 15 instead of 10 max chars in the label.
308 * insetert.C (localDispatch): added and handle various stuff we
309 need to handle here (font setting on paragraph break, not permitted
310 layout setting, etc.).
312 * inset.h: added default copy-consturctor and implemented this in
313 various insets with the change to use this in the clone function!
315 2001-07-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
317 * insetminipage.C (InsetMinipage): set background color to red :)
319 2001-07-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
321 * insettext.C (insetUnlock): only set update to CLEAR_FRAME if
322 draw frame mode is LOCKED.
324 * insetcollapsable.C (edit):
325 (insetButtonRelease): set update status to full when
328 * insettext.C (clearInset):
329 * insettabular.C (draw):
330 * insetlatexaccent.C (draw): honor background color.
332 * inset.h: new member background_color_, initialized to
335 * inset.C (backgroundColor): new method.
336 (setBackgroundColor): new method.
338 * insetert.C (init): new method, called by the ctors.
339 (InsetERT): when inserting contents, make sure the font is
342 * insetnote.C (InsetNote): when inserting content, remove trailing
344 (init): set background color to LColor::note
346 2001-07-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
348 * insetcollapsable.C: adjust
350 * insetbutton.C: adjust
352 2001-07-23 Juergen Vigna <jug@sad.it>
354 * insetcollapsable.h: removed widthCollapsed variable, LyXFont
355 parameter on the _collapsed function (was not needed) and call
356 always width_collapsed().
358 * insetert.C (InsetERT): use setLabel with "true" flag.
360 * insetcollapsable.C: modified various functions to set the draw_label
361 string right in any condition.
362 (setLabel): added a bool parameter to set change_label_with_text.
364 * insetcollapsable.h: added draw_label string which is set to the
365 actual drawn label-string, while label is the original static label
366 of this collapsable inset. Added bool change_label_with_text to set
367 if we want that the label changes to the start of the InsetText's
368 text when collabpsed. You can set this flag with the setLabel funciton.
369 Added bool inlined for inlined collapsable insets, but not handled
372 * insetcollapsable.C (get_new_label): added should get a new label
373 from the InsetText beginning (for now 10 chars).
375 2001-07-21 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
377 * insetquotes.C (latex): fix the handling of french double quotes
378 when not using the french pachage.
380 2001-07-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
382 * insetcollapsable.h: make WidthCollapsed mutable.
384 * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE,
385 InsetPrintIndex returns INDEX_PRINT_CODE.
387 * inset.h: add INDEX_PRINT_CODE
389 * insetcollapsable.C (draw): init widthCollapsed if necessary
392 * insetquotes.C (width): use the local language, not the document
395 (dispString): add additional spacing for all french languages,
397 (validate): make it work when there is no default language
399 * insetspecialchar.h: rename kind to kind_; add kind() accessor.
401 * insetnote.C (init): new method, called by the constructors
402 (InsetNote): new constructor with contents passed as a string
404 2001-07-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
406 * insetfootlike.C (insetAllowed): disallow float in footlike.
408 * insetert.C (InsetERT): add collapsed argument to the constrctor
411 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
413 * insetindex.h: shut off warning
415 2001-07-20 Juergen Vigna <jug@sad.it>
417 * insetcollapsable.C (update): recoded hopefully works now!
419 2001-07-19 Juergen Vigna <jug@sad.it>
421 * most files: implemented the below new introduced function.
423 * inset.h: added new edit(BufferView *, bool front) method to be able
424 to enter an inset from the front/back without knowing x/y positions
425 and baselines inside the inset. So I just can tell the inset activate
426 me and set the cursor on the front/back of yourself.
428 2001-07-18 Juergen Vigna <jug@sad.it>
430 * insetcollapsable.C (edit): fixed hopefully the y parameter which
431 is givven to the InsetText.
432 (insetButtonPress): ditto
433 (insetButtonRelease): ditto
434 (insetMotionNotify): ditto
436 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * insetspecialchar.[Ch]: change HYPHENATION_BREAK to
439 LIGATURE_BREAK, since the name is so stupid.
441 2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
443 * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
444 the default InsetCollapsable methods. I.e., it can insert anything.
445 (write) output the name of the inset, not some silly hack for
446 compatability with the old InsetInfo.
448 * insetinfo.[Ch]: removed.
449 * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
450 now collapsable, but functionality is otherwise identical to InsetInfo.
452 * Makefile.am: removed insetinfo.[Ch]. Added insetnote.[Ch].
454 2001-07-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
456 * insetspecialchar.[Ch]: add support for HYPHENATION_BREAK. some
459 * insetquotes.C: general cleanup
460 (dispString): add spaces inside french double quotes.
461 (latex): ditto. Moreover, treat first the case where the frenchb
462 or french options have been given.
464 2001-07-19 Angus Leeming <a.leeming@ic.ac.uk>
466 * insetcite.[Ch] (latex, validate): new methods, required for natbib
469 2001-07-19 Dekel Tsur <dekelts@tau.ac.il>
471 * figinset.C (RegisterFigure): Print debug message only when
472 current_view is available.
474 2001-07-18 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
476 * many files: update to match the change below
478 * inset.h (insetAllowed): renamed from insertInsetAllowed;
479 implement the version which takes an inset here.
481 * insetcollapsable.[Ch]: implement open and isOpen
483 * inset.h: remove insertInsetAllowed from Inset
484 (open): new method, to open or close an inset
485 (isOpen): returns the status of an inset
486 (isCollapsable, colapse): removed
488 2001-07-13 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
490 * insetquotes.C (dispString): display french guillemets when using
493 2001-07-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
495 * insetcollapsable.h: remove bogus return statements
497 2001-07-18 Juergen Vigna <jug@sad.it>
499 * insettabular.C (selectNextWord): fixed spellchecking for the
500 first cell of a tabular (wasn't entered!)
501 (getLyXText): changed to enter automatically insettext and return
502 it's LyXText if we're locked.
504 2001-07-17 Juergen Vigna <jug@sad.it>
506 * various files: implemented the below functions.
508 * inset.h: added functions
509 - virtual string selectNextWord(BufferView *, float & value) const;
510 - virtual void selectSelectedWord(BufferView *) { return; }
511 - virtual void toggleSelection(BufferView *, bool /*kill_selection*/)
512 needed for spellchecking correctly!
514 2001-07-16 Lars Gullik Bjønnes <larsbj@birdstep.com>
516 * insetert.C (latex): write out all paragraphs.
518 2001-07-17 Baruch Even <baruch@lyx.org>
520 * insetgraphics.C (draw): Removed unneeded casts.
522 2001-07-16 Juergen Vigna <jug@sad.it>
524 * insettext.C (update): fixed small oversight (reset lt to 0).
526 2001-07-14 Baruch Even <baruch@lyx.org>
529 * insetgraphics.C: Added a copy c-tor and handled the same_id case.
531 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
533 Consistent use of Lsstream.h:
534 * figinset.C: removed using std::ostringstream directive.
536 * insetgraphics.C (createLatexOptions):
537 * insetinclude.C (unique_id):
538 std::ostringstream -> ostringstream.
539 * insettext.C (localDispatch): std::istringstream -> istringstream.
541 2001-07-13 Juergen Vigna <jug@sad.it>
543 * insetfloat.C (insertInsetAllowed): added missing const_cast.
545 * insetcollapsable.C (getLockingInset): ditto.
547 2001-07-12 Juergen Vigna <jug@sad.it>
549 * insetcollapsable.h: added implementation of new function for
552 * various files: added implementation of new insertInsetAllowed-func
553 and redone the function a bit more.
555 * inset.h: added isCollapsable(), bool collapsed(),
556 collapsed(BufferView *, bool) and insertInsetAllowed(Inset::Code).
558 * insetfloat.C (insertInsetAllowed): make a bit more checks.
560 * insettext.C (getLyXText): use 'lt' to assure we're not erasing the
561 LyXText which is marked for removal while we're using it!
563 * insettext.h: added private LyXText * lt to use it to assure we are
564 not deleting our LyXText while we're using it!
566 2001-07-11 Juergen Vigna <jug@sad.it>
568 * insettext.C (insertInset): check if we are before the inset after
569 inserting it! This check IS needed. Remove the Undo-Call as it is
570 called in LyXText::insertInset!
572 * insettext.h: added struct InnerCache.
574 * insettext.C (deleteLyXText): insert a new InnerCache mechanism so
575 that we ONLY delete the LyXText in the getLyXText() routine. So we
576 are sure we don't delete LyXText while someone is working with it!
578 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
580 * insetexternal.C: (*it). -> it->
583 2001-07-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
585 * insetcollapsable.C (edit): always open collapsed insets (even if
586 they are not autocollapsable)
588 * insetcommand.C (operator=): simplify.
590 2001-07-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
592 * insetert.C (latex): handle META_NEWLINE
594 2001-07-09 Juergen Vigna <jug@sad.it>
596 * insetert.h: a normal InsetText can insert insets, but we won't.
598 * inset.h: return default "false" on insertInsetAllowed and implement
599 this function where a returnvalue != "false" is needed.
601 2001-07-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
603 * insetert.C (InsetERT): new contructor
605 2001-07-06 Juergen Vigna <jug@sad.it>
607 * a lot of files: added implementation of the below new functions
608 and the change to clone(). Also the call of the new undo-functions
611 * inset.h: added an inset_id, added functions getParFromID,
612 getInsetFromID, firstParagraph, cursor and id functions, added
613 bool same_ids to clone function.
615 2001-07-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
617 * insettext.[hC]: make cached_text a shared_ptr, make Cache be a map
618 of BufferView * and shared_ptr<LyXText>
620 2001-07-05 Juergen Vigna <jug@sad.it>
622 * insettext.C (clear): deleted also the cache not only LyXText.
623 (setParagraphData): ditto.
625 2001-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
627 * insetfloat.C (latex): let the specific placement take presedence
628 if set, otherwise choose document placement if set, otherwise just
629 use float default placement.
631 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
633 * insettext.C (localDispatch): call CutAndPaste::'s static method
636 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
638 * insetbib.C: no meed to include forms.h here.
640 2001-07-03 Angus Leeming <a.leeming@ic.ac.uk>
642 * insettext.C: added using std::make_pair directive.
644 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
646 * insettext.C (getLyXText): avoid multiple lookups, and simplify
648 (deleteLyXText): ditto
649 (resizeLyXText): ditto
651 2001-07-02 Juergen Vigna <jug@sad.it>
653 * insettext.C (getLyXText): introduce a cache in getLyXText so that
654 following calls are only returned the right pointer without the over
655 head to search in the map.
656 (various funcs): reset the cached_bview variable as this signs that
657 the cache is not valid anymore.
659 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
661 * insettabular.C (clone): do not copy the LyXTabular twice
663 2001-06-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
665 * insettext.h (TEXT): delete method
667 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
669 * insetmarginal.C (latex):
670 * insetfoot.C (latex): fix spacing of notes in LaTeX
672 * insettext.C (localDispatch): use .c_str() on istringstream
673 constructor argument.
675 2001-06-29 John Levon <moz@compsoc.man.ac.uk>
680 * inseturl.C: fix method names in these to begin
681 with small char too, so they inherit
683 2001-06-28 Juergen Vigna <jug@sad.it>
685 * insettext.C (setFont): fixed font settings using toggleFree()
686 instead of setFont().
688 2001-06-28 Lars Gullik Bjønnes <larsbj@birdstep.com>
690 * Change a lot of method names to begin with a small char.
691 Changes to a lot of files because of this.
693 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
695 * insetfloatlist.C (Write): std:: qualify ostream
698 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
702 * insetgraphics.C: send debug output to Debug::INFO instead of
705 2001-06-26 The LyX Project <lyx@rose.home.sad.it>
708 * insettabular.C (getStatus): update to use func_status
710 2001-06-26 ben <nicolas.marsgui@libertysurf.fr>
712 * insetref.C (DocBook): added support for cross-references without
715 2001-06-26 The LyX Project <jug@sad.it>
720 * insetlabel.h: removed escape method and moved it to
723 2001-06-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
725 * insettabular.C (getMaxWidth): do the speedup in a different way,
728 2001-06-24 The LyX Project <Asger>
730 * insettabular.C (getMaxWidth): We cache a mapping from
731 inset to cell in order to speed this method up.
733 2001-06-24 The LyX Project <Asger>
735 * insettext.C: Optimized InsetText::draw or something.
737 2001-06-23 The LyX Project <lyx@rose.home.sad.it>
739 * insettext.C (LocalDispatch): fixed inserting of 'normal chars'
741 2001-06-23 Lars Gullik Bjønnes <larsbj@birdstep.com>
743 * inset.h: name change from lyxinset.h
745 2001-06-22 Dekel Tsur <dekelts@tau.ac.il>
747 * insetfloat.C (Validate): Add a call to InsetCollapsable::Validate
749 2001-06-14 Juergen Vigna <jug@sad.it>
751 * insettext.C (draw): removed warnings.
753 2001-06-13 Juergen Vigna <jug@sad.it>
755 * insettabular.C (nodraw): only go down the tree if we don't have
756 that flag set otherwise it's obvious that we don't want to draw.
757 (LocalDispatch): do also an update if we have an undispached result.
759 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
762 * insetgraphicsParams.C:
763 * insettext.C: removed // -*- C++ -*- as first line.
765 2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
767 * lyxinset.h (resizeLyXText): shut off warning about unused
770 2001-06-07 Juergen Vigna <jug@sad.it>
772 * insettext.C (resizeLyXText): honor the new force flag.
774 * lyxinset.h: add 'bool force' parameter to resizeLyXText(...)
776 * insettabular.C (deleteLyXText): new function
778 2001-06-02 John Levon <moz@compsoc.man.ac.uk>
786 * insetcollapsable.C:
787 * insetcaption.C: LColor tidy
789 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
791 * figinset.C: fix typo
793 2001-06-01 Juergen Vigna <jug@sad.it>
795 * insettabular.C (resetPos): small hack so that scroll is not set to
796 0 when we are in the last column of a tabular. This is a problem we
797 have because of constats 20 offset on both directions, so this can
798 cause on the limit an endless loop.
800 * insettext.C (SetFont): forgot that we can have locking insets ;)
802 2001-05-31 Juergen Vigna <jug@sad.it>
804 * insettabular.C (LocalDispatch): small fix for LFUN_TAB.
806 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
808 * figinset.C: add using std:: directive for the C functions which
811 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
813 * insetfloat.C (Write): write out wide info
814 (Read): read the wide info
815 (Latex): use the wide info when creating latex.
817 * insettext.C: adjust
819 * insetgraphics.[Ch] (statusMessage): change to return string
823 * figinset.C (runqueue): add std::
826 2001-05-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
828 * insetcite.C (Ascii): add std:: qualifier
830 2001-05-28 Juergen Vigna <jug@sad.it>
832 * insettext.C (resizeLyXText): clear LyXText ONLY if we don't have
833 a endless-width inset (maxWidth < 0).
834 (Edit): change language only if not equal.
836 * insettabular.C (resetPos): call UpdateLocal only on REAL scroll!
838 * insettext.C (draw): fixed draw/clear of InsetText-Frame
840 2001-05-16 Juergen Vigna <jug@sad.it>
842 * insettext.C (selectAll): added
843 (clearSelection): added
845 * insettabular.C (SetFont): now we may set a font on a whole selection!
846 (getSelection): added helper function.
848 2001-05-27 Dekel Tsur <dekelts@tau.ac.il>
850 * insetcite.C (Ascii): Add method.
852 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
855 * insetbib.C: fix path for OS/2 & Win32
857 2001-05-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
859 * insetfoot.C (Latex): don't use % after footnote.
861 2001-05-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
863 * insettext.C (Read): use clear
864 (SetParagraphData): use LyXParagraph copy constructor instead of clone
866 2001-05-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
868 * insetfloatlist.h: add a bunch of std:: qualifiers.
870 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
872 * lyxinset.h: remve LOF_CODE, LOT_CODE, LOA_CODE, add
873 FLOAT_LIST_CODE, renumber code list.
875 * insettoc.C (getScreenLabel): remove support for float lists
879 * insetfloatlist.[Ch]: new files
881 * Makefile.am (libinsets_la_SOURCES): add insetfloatlist.[Ch]
883 2001-04-27 Angus Leeming <a.leeming@ic.ac.uk>
885 * insettabular.C (LocalDispatch):
886 * insettext.C (LocalDispatch): getClipboard() is now a BufferView
889 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
891 * insettext.C: remvoe !NEW_INSETS cruft
893 * insettabular.C: remove !NEW_INSETS cruft
895 * insetcollapsable.h: remove !NEW_INSETS cruft
897 * insetbib.C: remove !NEW_INSETS cruft
899 2001-04-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
901 * insettoc.C: hack to make listof algorithm work
903 2001-04-20 Juergen Vigna <jug@sad.it>
905 * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
907 2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
909 * insetquotes.C (Latex): improve the guard against
910 unwanted !` and ?` ligatures. This should really be done in
911 another place (to catch all this ligatures at low-level).
913 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
915 * insettext.C (init): remvoe leftovers from cursor_visible change
917 (LocalDispatch): dispatch LFUN_MESSAGE
919 * insettabular.C (InsetTabular): remove leftovers from
920 cursor_visible, and scoped_ptr changes
923 * insetcollapsable.C (draw): use c++ cast
925 * ExternalTemplate.h: inherit privaely from noncopyable
926 * insetcommand.h: ditto
927 * insetinclude.h: ditto
929 2001-04-16 Allan Rae <rae@lyx.org>
931 * insettoc.C (Ascii):
932 * insettext.C (draw):
933 * insettabular.C (setPos):
934 * insetminipage.C (Read):
935 * insetfloat.C (placement):
936 * insetcaption.C (Ascii, DocBook):
937 * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as
938 an unrecognised preprocessor directive. So ensure they're wrapped.
940 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
943 * insetexternal.C: set view on Clone. Add _ to private members.
945 2001-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
947 * insettext.C (InsetText): fix new
948 (InsetText): reindent some, simplify deletion of par list
949 (clear): simplify deletion of par list, fix new
950 (SetParagraphData): simplify deletion of par list
952 * insettabular.[Ch] (getLabelList): implement new method
954 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
956 * lyxinset.h: do not include gettext.h...
964 * insetlatexaccent.C:
968 * inseturl.C: ... and do it here instead
970 2001-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
972 * insetcollapsable.[Ch] (getLabelList): add std:: on vector<string>
974 * insettext.[Ch] (getLabelList): add std:: on vector<string>
976 * insetcollapsable.[Ch] (getLabelList): implement
978 * insettext.[Ch] (getLabelList): implement
980 * insettext.h: reindent
982 * insettabular.h: make tabular a scoped_ptr
984 * insettext.C (init): adjust for cursor_visible
985 (ToggleInsetCursor): constify asc and desc, font, adjust for
987 (ShowInsetCursor): constify asc and desc, font, adjust for
989 (HideInsetCursor): adjust for cursor_visible
991 * insettabular.C: reindent some
992 (InsetTabular): adjust for scoped_ptr and cursor_visible
993 (InsetTabular): ditto
994 (~InsetTabular): delete delete
995 (Clone): adjust for scoped_ptr
996 (Read): constify old_format, adjust for scoped_ptr, move init of
998 (draw): constify tx, localize loop vars.
999 some other localization of variables, remove double initilizatons.
1001 * insetfoot.C: remove using std::ostream, add ostream where needed
1003 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
1005 * lyxinset.h: some reindentaion, use initializer list for
1007 UpdatableInset: make cursor_visible a private var add
1008 public isCursorVisible(), add protected toggleCursorVisible() and
1009 proctected setCursorVisible(bool), make scroll call the Inset::scroll
1011 * insettoc.C: remvoe using decl
1012 (getScreenLabel): make cmdname donst
1015 (Ascii): don't use endl
1017 * insetfootlike.C: remove using decl at file scope and add std::
1019 * insetmarginal.C: ditto
1021 * insetfoot.C: some reformatting
1023 * insetfloat.C (InsetButtonRelease): adjust the hit area
1025 * insetert.C (SetFont): some reformatting
1027 * insetcollapsable.C: some reformatting and constification
1028 (Clone): comment out.
1029 * insetcollapsable.h: some reformatting
1030 (Clone): comment out.
1035 2001-03-30 Juergen Vigna <jug@sad.it>
1037 * insetcollapsable.h: changen *inset to be a InsetText inset.
1039 * some files: changed to reflect the above change.
1041 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
1043 * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as
1044 InsetExternal::Params.
1045 Added operator==() and operator!=() for the Params struct.
1047 2001-03-29 Juergen Vigna <jug@sad.it>
1049 * lyxinset.h: changed parameter of getMaxWidth from Painter & to
1052 * insetminipage.C: removed widthp_ and all it's functions and changed
1053 to use new %-lengths of LyXLength.
1055 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
1057 * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h.
1059 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
1061 * insetgraphicsParams.C (operator!=): new function, needed by the
1062 ControlGraphics class.
1064 2001-03-28 Juergen Vigna <jug@sad.it>
1066 * insettext.C (InsetButtonPress): only enter !inset if button == 2
1067 (checkAndActivateInset): don't use the values returned from
1068 call to bv->checkInsetHit.
1070 * insetminipage.C (Clone): set special minipage values.
1072 * insetcollapsable.C (draw): changed to draw the button in the
1073 upper left corner outside the textinset.
1074 (ascent): changed because of different drawing
1078 (InsetButtonPress): ditto
1079 (InsetButtonRelease): ditto
1080 (InsetMotionNotify): ditto
1082 2001-03-27 Dekel Tsur <dekelts@tau.ac.il>
1084 * figinset.C (GetPSSizes): Fix for the case when filename doesn't
1088 2001-03-26 Juergen Vigna <jug@sad.it>
1090 * lyxinset.h: added ShowInsetDialog() function in UpdatableInset.
1092 * insettext.C (ShowInsetDialog): implemented above function.
1094 * insettabular.C (ShowInsetDialog): ditto
1096 * insetminipage.C (ShowInsetDialog): ditto
1098 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
1100 * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as
1101 InsetInclude::Params. Don't store a buffer * in Params. Store the
1102 master file name instead.
1104 2001-03-23 Juergen Vigna <jug@sad.it>
1106 * insetcollapsable.C (InsetMotionNotify):
1107 (InsetButtonRelease):
1108 (InsetButtonPress): fixed y-offset (minipages).
1110 * insettext.C (draw): force a FULL update if cleared == true.
1112 * insetcollapsable.C (draw): Lars forgotten entry for changing this
1113 routine to draw the minipages on its position-flag.
1114 (InsetInInsetY): give back the right y position, because of minipage
1117 2001-03-23 José Abílio Matos <jamatos@fep.up.pt>
1120 * insetfloat.C (DocBook): docbook export code.
1122 2001-03-22 Juergen Vigna <jug@sad.it>
1124 * insetminipage.C (getMaxWidth): added function to set the drawing
1126 (Read): should work now!
1128 * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed
1129 if we create a new inset.
1131 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
1133 * figinset.C (fl_set_preemptive_callback): moved definition outside
1136 2001-03-20 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1138 * insetminipage.C (Read): prepare for reading of minipage arguments.
1140 2001-03-18 Baruch Even <baruch@lyx.org>
1142 * insetgraphics.C: Minor cleanups of the comments and code.
1144 2001-03-17 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1146 * insetminipage.C (InsetMinipage): default to not collapsed
1148 2001-03-16 Juergen Vigna <jug@sad.it>
1150 * insetminipage.C (width): modified with to be a string
1151 (widthp): added widthp (for % width) support functions.
1152 (InsetButtonRelease): added to open the options dialog on button==3.
1153 (~InsetMinipage): added to hide the dialog.
1155 * insetminipage.h: added hideDialog signal
1157 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1159 * insetminipage.h: change the order or Position to match
1160 LyXParagraph::MINIPAGE_ALIGNMENT
1162 * several files: remvoe CXX_WORKING_NAMESPACES
1164 * ExternalTemplate.h: noncopyable is in namespace boost
1165 * insetinclude.h: ditto
1166 * insetcommand.h: ditto
1168 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1170 * insettext.C (Edit): #else# -> #else.
1171 * insettoc.C: added using directive.
1173 2001-03-14 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1175 * insetminipage.h: add pos, inner_pos, width and height. + getters
1176 and setters for all of them.
1178 2001-03-13 Dekel Tsur <dekelts@tau.ac.il>
1180 * insetinclude.C (Latex): Do not exit when the textclass of the
1181 included file differ from the textclass of the parent file.
1183 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
1185 * ExternalTemplate.C (read): the reading of external insets now checks
1186 for \end_inset and removes it form the input stream.
1188 2001-03-09 John Levon <moz@compsoc.man.ac.uk>
1190 * ExternalTemplate.h:
1191 * ExternalTemplate.C:
1193 * insetexternal.C: move form to GUII
1195 2001-03-12 John Levon <moz@compsoc.man.ac.uk>
1198 * insetinclude.C: add InsetIncludeParams, use
1199 composition rather than derivation of InsetCommand
1201 2001-03-12 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1203 * insettoc.C (Ascii): use the Buffer typedefs
1205 2001-03-11 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1207 * insettoc.C (Ascii): implement for dynamic number of lists
1209 * insetcaption.[Ch]: update from new_insets branch
1210 * insetfloat.[Ch]: ditto
1212 2001-03-06 John Levon <moz@compsoc.man.ac.uk>
1215 * figinset.C: use new File Dialog
1217 2001-03-06 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1219 * insettext.C: changes becuase of ParagraphParameters.
1221 2001-02-28 Baruch Even <baruch@ev-en.org>
1223 * insetgraphics.C (updateInset): Changed due to the change in
1226 2001-02-26 Juergen Vigna <jug@sad.it>
1228 * insettext.C (SetFont): Set Undo only if we have selection (as it is
1229 handled in LyXText).
1231 2001-02-23 Juergen Vigna <jug@sad.it>
1233 * insettext.C (draw): some small repainting fixes.
1234 (LocalDispatch): put the sel_cursor stuff after the insert of chars.
1236 * inset.C (LocalDispatch): changed action to be a kb_action (as it
1237 should be) and not an int.
1239 * insettabular.C (LocalDispatch): ditto
1241 * insettext.C (LocalDispatch): ditto
1243 * insetcollapsable.C (LocalDispatch): ditto
1245 2001-02-22 Juergen Vigna <jug@sad.it>
1247 * insettabular.C (LocalDispatch): return DISPATCHED if we cannot
1248 DISPATCH it and we don't have a locking_inset.
1250 2001-02-21 Baruch Even <baruch@ev-en.org>
1252 * insetgraphics.[Ch]: Changed to use boost::shared_ptr<GraphicsCacheItem>
1253 instead of GraphicsCacheItem *.
1255 2001-02-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1257 * insetcollapsable.C (getLyXText): add const qualifier to second
1260 2001-02-22 Juergen Vigna <jug@sad.it>
1262 * insettext.C (getLyXText): honor the recursive parameter.
1263 (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
1265 * inset.C (getLyXText): added bool recursive parameter.
1267 * insettext.C (SetUpdateStatus): or the update codes.
1268 (draw): check need_update with &.
1269 (InsetButtonPress): set no_selection to not put a selection when
1270 entering an inset and it is redraws in another spot.
1272 * insettext.h: made need_update an int.
1274 2001-02-20 Baruch Even <baruch@ev-en.org>
1277 * insetgraphisc.C: Changed to use better semantics when loading images
1278 for inline view. Now it doesn't keep the pixmap itself but it's holder.
1280 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1284 * insetgraphics.C: change name of "hide" signal to "hideDialog",
1285 consistent with InsetTabular.
1287 2001-02-19 Juergen Vigna <jug@sad.it>
1289 * insettabular.C (LocalDispatch): implement PAGE up/down.
1291 * insettext.C (draw): clear all of it on need_update==INIT too!
1293 * insettabular.C (InsetUnlock): always clear the selection.
1295 * inset.C (scroll): normally we only want to scroll the inset until
1296 it is fully visible so if top_x + offset > 20 then just set scx to 0.
1298 2001-02-14 Juergen Vigna <jug@sad.it>
1300 * insettabular.C (LocalDispatch): remove x_fix as it is not used.
1301 (resetPos): fixed scroll behaviour.
1302 (LocalDispatch): do an update if moving cursor inside a table cell
1303 requests a scroll of the tabular.
1305 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1307 * insettext.C (textWidth): constify local var
1309 * insettabular.C: small cleanup.
1311 * insetfoot.C (Latex): constify local var
1313 * insetcollapsable.C: small cleanup.
1315 * figinset.C (runqueue): use compare instead of strcmp
1317 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1320 * insetinfo.C: remove cruft
1322 2001-02-14 Juergen Vigna <jug@sad.it>
1324 * insettext.C (SetUpdateStatus): added a BufferView * parameter.
1326 2001-02-13 Juergen Vigna <jug@sad.it>
1328 * insettext.C (InsertInset): don't move left (is this right?)
1330 * insettabular.C (LocalDispatch): use of the no_draw variable
1332 * insettabular.h: new no_draw variable to stop redraw
1334 * insettabular.C (TabularFeatures): fixed update for alignment change
1336 2001-02-12 John Levon <moz@compsoc.man.ac.uk>
1340 * insetbib.C: move dialogs to frontends/
1342 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
1344 * insettext.C (LocalDispatch): Restore the language if the inset
1347 2001-02-09 Dekel Tsur <dekelts@tau.ac.il>
1349 * insettext.C (moveRightIntern): Update the selection cursor.
1350 (moveLeftIntern): Ditto.
1352 2001-02-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1354 * Makefile.am: remove BoundingBox.h
1356 * BoundingBox.h: removed
1358 2001-02-08 Dekel Tsur <dekelts@tau.ac.il>
1360 * insettext.C (LocalDispatch): Update selection cursor when moving
1361 cursor to the right.
1362 (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
1363 (moveLeftIntern): Ditto.
1365 2001-02-05 Baruch Even <baruch.even@writeme.com>
1367 * insetgraphics.C: Updated automatic image conversion, it now goes into
1368 temporary directory instead of with the image itself.
1370 2001-01-21 Baruch Even <baruch@ev-en.org>
1372 * insetgraphics.C: Added Docbook support. Added Automatic image conversion
1373 to EPS or PNG when needed (support bitmap graphics).
1375 2000-11-02 Baruch Even <baruch@ev-en.org>
1378 * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n'
1379 and removal of commented out code.
1381 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1383 * insetbib.C (callback): Update citations if the key has changed.
1385 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1387 * insetbib.C (InsetBibKey): Better computation of default key.
1388 (getScreenLabel) Show both the key and the label.
1389 (getBibLabel): New method.
1390 (callback): Force a redraw if the inset have been changed.
1392 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1394 * insetref.C (getType, getName): Move methods from
1395 src/frontends/xforms/FormRef.C.
1397 2001-01-12 Dekel Tsur <dekelts@tau.ac.il>
1399 * insettabular.C: Various improvements (use only one dummy position).
1401 2001-01-25 Dekel Tsur <dekelts@tau.ac.il>
1403 * insetbib.C (bibitemWidest): Use lyxfont::width instead of
1404 par->bibkey->width. This fixes the crashes when running without
1405 gui or when having included documents.
1407 2001-01-22 Dekel Tsur <dekelts@tau.ac.il>
1409 * insetcommand.C (getAsString, setFromString): Cleanup.
1411 2001-01-21 Dekel Tsur <dekelts@tau.ac.il>
1413 * insetref.C: Add the array InsetRef::types that contains
1414 information about all supported reference types.
1416 2001-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1418 * lyxinset.h: remove trailing comma in enum.
1420 2001-01-17 John Levon <moz@compsoc.man.ac.uk>
1422 * insettext.C: kill LyXBell.