1 2001-08-10 Juergen Vigna <jug@sad.it>
3 * insettabular.C (selectNextWordInt): use the front using edit call.
5 * insetcollapsable.C (getMaxWidth): rename inset to in to not have
6 the parameter overwrite class variable inset.
8 * inset.C (getMaxWidth): fix the setting of the minwidth = 10.
10 * insettext.C (saveLyXTextState): check for invalid cursor-par.
11 (reinitLyXText): remove wrong_cursor bool as not needed anymore!
13 * insettabular.C (calculate_dimensions_of_cells): let's try to call
14 update only for fixed with cells.
15 (resetPos): try to fix the lockup on spellchecking or s&r.
17 * insettext.C (update): comment this out as it seems first wrong
18 and second not needed anymore!
19 (some functions): call reinitLyXText() only in update() in all other
20 positions set only need_update = INIT.
22 2001-08-08 Juergen Vigna <jug@sad.it>
24 * insettabular.C (setPos): fixed wrong actrow < rows() check.
26 * insettext.C (insetUnlock): remove double-space on inset unlock.
28 * insetcollapsable.C (draw): fix returned x when label > inset-width.
30 * insettabular.C (update): fixed cursor positon after an insert.
31 (insetAllowed): do not allow to insert insets when not inside the
33 (draw): clear below an inset too as it could have changed height.
35 * inset.C (getMaxWidth): fixed width for inset in inset.
37 * insettext.C (update): small fix.
39 * insettabular.C (tabularFeatures): added selection support to
40 DELETE_ROW/DELETE_COLUMN.
42 2001-08-07 Juergen Vigna <jug@sad.it>
44 * inset.C (getMaxWidth): recoded and all it's implementations!
46 * insettext.C (init,setParagraph+constructors): cleanups
47 (reinitLyXText): fixed problem with wrong cursor when all paragraphs
48 are new and I want do a save/restore of the cursor position which is
51 * insetcollapsable.C (searchBackward): recollapse inset if not found.
52 (searchBackward): ditto
53 (selectNextWord): ditto
55 2001-08-07 Angus Leeming <a.leeming@ic.ac.uk>
57 * insetlatexaccent.C (checkContents): Add some debug messages
59 2001-08-07 Juergen Vigna <jug@sad.it>
61 * insetert.C (read): don't use InsetCollapsable::read as we don't
62 write the collapsed status anymore only the status.
65 2001-08-06 Juergen Vigna <jug@sad.it>
67 * insetert.C (set_latex_font): use LyXText's setFont directly.
69 * insettext.C (drawFrame): fixed one time more the right position
70 and size of the frame!
72 * insetert.C (~InsetERT): hide the dialog.
73 (showInsetDialog): added implementation
76 (status): new function for the status of the ERT inset (3-state).
77 (write): output also the status of the inset for readback!
78 (read): readback the status if available otherwise use collapsed_.
80 * insettext.C (edit): small fix of setting the position, which could
83 * insetert.C (width): implement this function for inlined viewing.
84 Added minimum width of 10 pixels!
86 * insetminipage.C (InsetMinipage): just change the colors a bit so
87 that border/background is a bit more visible. We will remove this
90 * insettext.C (textWidth): add a 'bool fordraw' parameter and use this
91 function for getting the important widths for drawing in various
92 functions and in LyXText.
93 (draw): fixed up a bit (frame drawing/clearing)
95 2001-08-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
97 * inset.C (convertFont): delete method. not used.
99 2001-08-03 Juergen Vigna <jug@sad.it>
101 * insettext.C (setFont): don't call for a draw update if we're just
102 changing the cursor font!
104 2001-08-02 Juergen Vigna <jug@sad.it>
106 * insettext.C (draw): clear the background with the right color if
107 needed. Update myself if x&max-width changed and return without doing
108 anything. Let the update code handle the right stuff.
110 * insetminipage.C (getMaxWidth): fixed returning of maxwidth when
111 inside another inset.
113 2001-08-01 Juergen Vigna <jug@sad.it>
115 * insetcollapsable.C (update): added an in_update bool so we avoid
118 * insettabular.C (update): added an in_update bool so we avoid
121 * insettext.C (insetButtonPress): hopefully fixed setselection/clear
123 (update): added an in_update bool so we avoid reentering.
125 * insettabular.C (localDispatch): clear col/row selection when doing
126 something else inside an inset.
128 * insettext.C (getLyXText): fixed bug when requesting a recursive
131 2001-08-01 Angus Leeming <a.leeming@ic.ac.uk>
133 * insetcite.C (latex): Paranoia check. Make sure that there is no
134 whitespace between the citation keys.
136 2001-07-31 Juergen Vigna <jug@sad.it>
138 * inset.h (nodraw): make the set function also const so that this
139 can be called from inside other const functions.
141 * insetcollapsable.h: removed inline variable and moved it over
142 to the only user InsetERT.
144 * insetcollapsable.C (insetButtonRelease): fixed uncollpasing the
145 inset opening immediately therein lying insets dialogs!
147 * insetert.C (localDispatch): set the font also if we don't have any
148 chars in this paragraph, otherwise if we delete all of em and start
149 writing we have the wrong font.
151 (draw): implemented for inline support
152 (insetButtonRelease): ditto.
154 2001-07-30 Juergen Vigna <jug@sad.it>
156 * insettext.C (reinitLyXText): new function to reinit the insets
157 text after lot's of paragraph changes. Use this instead of the
158 cache.clear() which is VERY dangerous.
160 * insetfloat.C (insetButtonRelease): we should only show the dialog
161 if we press on the label otherwise we have problems to open mouse
162 button 3 dialogs inside this float (f.ex. of a tabular!)
164 2001-07-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
166 * insetert.C: change back to "ERT"
168 * insetfloat.C: handliign of RMB on label added.
170 2001-07-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
172 * insetgraphicsParams.C: #include LOstream.h here.
174 * insetfoot.h: remove InsetFoot:: qualifier.
176 2001-07-29 Baruch Even <baruch@lyx.org>
178 * ChangeLog: Hiding time travel evidence.
180 * insetgraphicsParams.h:
181 * insetgraphicsParams.C:
182 * insetgraphics.C: Added horizontal scale option, it actually scales both
183 directions since it keeps image proportions.
185 * insetgraphics.C: Fixed EPS detection to be non-hacky.
187 2001-07-29 Baruch Even <baruch@lyx.org>
189 * insetgraphics.C (decideOutputImageFormat): when doing postscript output
190 convert PNG/GIF/JPG to EPS, assume the rest are EPS already.
192 HACKY! Will need to add an EPS detection routine like old InsetFig does!
194 2001-07-29 Baruch Even <baruch@lyx.org>
196 * insetgraphics.C: Added EPSI to be an alias of EPS.
198 2001-07-29 Baruch Even <baruch@lyx.org>
200 * insetgraphics.C: Change GRAPHICS to Graphics.
201 Changed image conversion rules (documented at the beginning of file).
203 2001-07-28 Angus Leeming <a.leeming@ic.ac.uk>
205 * insetert.C (get_new_label): int -> Paragraph::size_type to get
208 * insetgraphics.C: added a using std::endl directive.
210 * insetcommand.h (getScreenLabel): removed pure virtual function,
211 as it duplicates that in InsetButton.
213 * insetbib.[Ch] (getScreenLabel):
214 * insetbutton.[Ch] (getScreenLabel):
215 * insetcite.[Ch] (getScreenLabel):
216 * insetert.[Ch] (getScreenLabel):
217 * insetexternal.[Ch] (getScreenLabel):
218 * insetfloatlist.[Ch] (getScreenLabel):
219 * insetinclude.[Ch] (getScreenLabel):
220 * insetindex.[Ch] (getScreenLabel):
221 * insetlabel.h (getScreenLabel):
222 * insetparent.[Ch] (getScreenLabel):
223 * insetref.[Ch] (getScreenLabel):
224 * insettoc.[Ch] (getScreenLabel):
225 * inseturl.[Ch] (getScreenLabel): passed a Buffer const * parameter.
227 * insetcite.C (getScreenLabel): use this Buffer parameter in creating
229 (validate): remove check on "cite" when using natbib.
231 2001-07-26 Baruch Even <baruch@lyx.org>
233 * insetgraphics.C (draw): changed casting to be in one place rather than
234 all over the function.
237 * insetgraphics.C (read): Added compatibility reads of InsetFig.
239 * insetgraphicsParams.h:
240 * insetgraphicsParams.C:
241 * insetgraphics.C: Removed inline option and changed rotateAngle to float.
243 2001-07-28 Kayvan A. Sylvan <kayvan@sylvan.com>
245 * insetfoot.C (validate): Added method to ensure that the
246 right bit of LaTeX is emitted.
248 * insetfoot.h: Added validate method to set the correct
249 LaTeXFeatures bit for the special footnote code.
251 2001-07-26 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
253 * insetquotes.C (dispString): display the right ISO8859-{1,9,15}
256 2001-07-27 Juergen Vigna <jug@sad.it>
258 * inset.h: remove not used font variable in parameter.
259 removed checkInsertChar in UpdatableInset as it was equal to
260 the one in Inset and so not needed.
262 * insetert.C (checkInsertChar): implementation of function
265 * inset.h: added new function checkInsertChar.
267 * various files: added c-tor and clone() function.
269 * insetcollapsable.h: removed clone function here as this should
270 be only realized in REAL insets and added it to all collapsable
271 insets! (with the copy-constructor).
273 2001-07-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
275 * insetminipage.C (read): handle missing parameters more gracefully
277 * insetcollapsable.C (read): handel missing collapsed more gracefully
279 2001-07-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
281 * insetfloat.C (read): handle missing parameters.
283 * insettext.C (read): handle old latex end_inset
285 * insetert.C (setButtonLabel): new method
286 (init): use it, to set the dynamic label correctly
289 * Makefile.am (EXTRA_DIST): add files that is not part or the
292 * insetcollapsable.h: remove autocollapsable (no users), remove
293 draw_label, change_label_with_text and companion code. Remove args
295 * insetert.[Ch]: move here instead (only user)
297 * inset.h: rename private variable name to name_, make
298 selectNextWord return a const string. make getInsetName return a
299 string const &. Remove bool from open, add close.
301 * Makefile.am: don't compile insetlist, insetsection
304 2001-07-24 Juergen Vigna <jug@sad.it>
306 * insetert.C (InsetERT): put init after the paragraph initialization,
307 as otherwise we don't set the draw_label right.
309 * insetcollapsable.C (insetMotionNotify): fixed opening/closing the
310 insets with the mouse without having strange selections.
311 (edit): if the inset was collapsed and we open it here then put the
312 cursor always at the beginning of the inset.
313 (get_new_label): 15 instead of 10 max chars in the label.
315 * insetert.C (localDispatch): added and handle various stuff we
316 need to handle here (font setting on paragraph break, not permitted
317 layout setting, etc.).
319 * inset.h: added default copy-consturctor and implemented this in
320 various insets with the change to use this in the clone function!
322 2001-07-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
324 * insetminipage.C (InsetMinipage): set background color to red :)
326 2001-07-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
328 * insettext.C (insetUnlock): only set update to CLEAR_FRAME if
329 draw frame mode is LOCKED.
331 * insetcollapsable.C (edit):
332 (insetButtonRelease): set update status to full when
335 * insettext.C (clearInset):
336 * insettabular.C (draw):
337 * insetlatexaccent.C (draw): honor background color.
339 * inset.h: new member background_color_, initialized to
342 * inset.C (backgroundColor): new method.
343 (setBackgroundColor): new method.
345 * insetert.C (init): new method, called by the ctors.
346 (InsetERT): when inserting contents, make sure the font is
349 * insetnote.C (InsetNote): when inserting content, remove trailing
351 (init): set background color to LColor::note
353 2001-07-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
355 * insetcollapsable.C: adjust
357 * insetbutton.C: adjust
359 2001-07-23 Juergen Vigna <jug@sad.it>
361 * insetcollapsable.h: removed widthCollapsed variable, LyXFont
362 parameter on the _collapsed function (was not needed) and call
363 always width_collapsed().
365 * insetert.C (InsetERT): use setLabel with "true" flag.
367 * insetcollapsable.C: modified various functions to set the draw_label
368 string right in any condition.
369 (setLabel): added a bool parameter to set change_label_with_text.
371 * insetcollapsable.h: added draw_label string which is set to the
372 actual drawn label-string, while label is the original static label
373 of this collapsable inset. Added bool change_label_with_text to set
374 if we want that the label changes to the start of the InsetText's
375 text when collabpsed. You can set this flag with the setLabel funciton.
376 Added bool inlined for inlined collapsable insets, but not handled
379 * insetcollapsable.C (get_new_label): added should get a new label
380 from the InsetText beginning (for now 10 chars).
382 2001-07-21 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
384 * insetquotes.C (latex): fix the handling of french double quotes
385 when not using the french pachage.
387 2001-07-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
389 * insetcollapsable.h: make WidthCollapsed mutable.
391 * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE,
392 InsetPrintIndex returns INDEX_PRINT_CODE.
394 * inset.h: add INDEX_PRINT_CODE
396 * insetcollapsable.C (draw): init widthCollapsed if necessary
399 * insetquotes.C (width): use the local language, not the document
402 (dispString): add additional spacing for all french languages,
404 (validate): make it work when there is no default language
406 * insetspecialchar.h: rename kind to kind_; add kind() accessor.
408 * insetnote.C (init): new method, called by the constructors
409 (InsetNote): new constructor with contents passed as a string
411 2001-07-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
413 * insetfootlike.C (insetAllowed): disallow float in footlike.
415 * insetert.C (InsetERT): add collapsed argument to the constrctor
418 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
420 * insetindex.h: shut off warning
422 2001-07-20 Juergen Vigna <jug@sad.it>
424 * insetcollapsable.C (update): recoded hopefully works now!
426 2001-07-19 Juergen Vigna <jug@sad.it>
428 * most files: implemented the below new introduced function.
430 * inset.h: added new edit(BufferView *, bool front) method to be able
431 to enter an inset from the front/back without knowing x/y positions
432 and baselines inside the inset. So I just can tell the inset activate
433 me and set the cursor on the front/back of yourself.
435 2001-07-18 Juergen Vigna <jug@sad.it>
437 * insetcollapsable.C (edit): fixed hopefully the y parameter which
438 is givven to the InsetText.
439 (insetButtonPress): ditto
440 (insetButtonRelease): ditto
441 (insetMotionNotify): ditto
443 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
445 * insetspecialchar.[Ch]: change HYPHENATION_BREAK to
446 LIGATURE_BREAK, since the name is so stupid.
448 2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
450 * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
451 the default InsetCollapsable methods. I.e., it can insert anything.
452 (write) output the name of the inset, not some silly hack for
453 compatability with the old InsetInfo.
455 * insetinfo.[Ch]: removed.
456 * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
457 now collapsable, but functionality is otherwise identical to InsetInfo.
459 * Makefile.am: removed insetinfo.[Ch]. Added insetnote.[Ch].
461 2001-07-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
463 * insetspecialchar.[Ch]: add support for HYPHENATION_BREAK. some
466 * insetquotes.C: general cleanup
467 (dispString): add spaces inside french double quotes.
468 (latex): ditto. Moreover, treat first the case where the frenchb
469 or french options have been given.
471 2001-07-19 Angus Leeming <a.leeming@ic.ac.uk>
473 * insetcite.[Ch] (latex, validate): new methods, required for natbib
476 2001-07-19 Dekel Tsur <dekelts@tau.ac.il>
478 * figinset.C (RegisterFigure): Print debug message only when
479 current_view is available.
481 2001-07-18 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
483 * many files: update to match the change below
485 * inset.h (insetAllowed): renamed from insertInsetAllowed;
486 implement the version which takes an inset here.
488 * insetcollapsable.[Ch]: implement open and isOpen
490 * inset.h: remove insertInsetAllowed from Inset
491 (open): new method, to open or close an inset
492 (isOpen): returns the status of an inset
493 (isCollapsable, colapse): removed
495 2001-07-13 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
497 * insetquotes.C (dispString): display french guillemets when using
500 2001-07-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
502 * insetcollapsable.h: remove bogus return statements
504 2001-07-18 Juergen Vigna <jug@sad.it>
506 * insettabular.C (selectNextWord): fixed spellchecking for the
507 first cell of a tabular (wasn't entered!)
508 (getLyXText): changed to enter automatically insettext and return
509 it's LyXText if we're locked.
511 2001-07-17 Juergen Vigna <jug@sad.it>
513 * various files: implemented the below functions.
515 * inset.h: added functions
516 - virtual string selectNextWord(BufferView *, float & value) const;
517 - virtual void selectSelectedWord(BufferView *) { return; }
518 - virtual void toggleSelection(BufferView *, bool /*kill_selection*/)
519 needed for spellchecking correctly!
521 2001-07-16 Lars Gullik Bjønnes <larsbj@birdstep.com>
523 * insetert.C (latex): write out all paragraphs.
525 2001-07-17 Baruch Even <baruch@lyx.org>
527 * insetgraphics.C (draw): Removed unneeded casts.
529 2001-07-16 Juergen Vigna <jug@sad.it>
531 * insettext.C (update): fixed small oversight (reset lt to 0).
533 2001-07-14 Baruch Even <baruch@lyx.org>
536 * insetgraphics.C: Added a copy c-tor and handled the same_id case.
538 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
540 Consistent use of Lsstream.h:
541 * figinset.C: removed using std::ostringstream directive.
543 * insetgraphics.C (createLatexOptions):
544 * insetinclude.C (unique_id):
545 std::ostringstream -> ostringstream.
546 * insettext.C (localDispatch): std::istringstream -> istringstream.
548 2001-07-13 Juergen Vigna <jug@sad.it>
550 * insetfloat.C (insertInsetAllowed): added missing const_cast.
552 * insetcollapsable.C (getLockingInset): ditto.
554 2001-07-12 Juergen Vigna <jug@sad.it>
556 * insetcollapsable.h: added implementation of new function for
559 * various files: added implementation of new insertInsetAllowed-func
560 and redone the function a bit more.
562 * inset.h: added isCollapsable(), bool collapsed(),
563 collapsed(BufferView *, bool) and insertInsetAllowed(Inset::Code).
565 * insetfloat.C (insertInsetAllowed): make a bit more checks.
567 * insettext.C (getLyXText): use 'lt' to assure we're not erasing the
568 LyXText which is marked for removal while we're using it!
570 * insettext.h: added private LyXText * lt to use it to assure we are
571 not deleting our LyXText while we're using it!
573 2001-07-11 Juergen Vigna <jug@sad.it>
575 * insettext.C (insertInset): check if we are before the inset after
576 inserting it! This check IS needed. Remove the Undo-Call as it is
577 called in LyXText::insertInset!
579 * insettext.h: added struct InnerCache.
581 * insettext.C (deleteLyXText): insert a new InnerCache mechanism so
582 that we ONLY delete the LyXText in the getLyXText() routine. So we
583 are sure we don't delete LyXText while someone is working with it!
585 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
587 * insetexternal.C: (*it). -> it->
590 2001-07-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
592 * insetcollapsable.C (edit): always open collapsed insets (even if
593 they are not autocollapsable)
595 * insetcommand.C (operator=): simplify.
597 2001-07-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
599 * insetert.C (latex): handle META_NEWLINE
601 2001-07-09 Juergen Vigna <jug@sad.it>
603 * insetert.h: a normal InsetText can insert insets, but we won't.
605 * inset.h: return default "false" on insertInsetAllowed and implement
606 this function where a returnvalue != "false" is needed.
608 2001-07-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
610 * insetert.C (InsetERT): new contructor
612 2001-07-06 Juergen Vigna <jug@sad.it>
614 * a lot of files: added implementation of the below new functions
615 and the change to clone(). Also the call of the new undo-functions
618 * inset.h: added an inset_id, added functions getParFromID,
619 getInsetFromID, firstParagraph, cursor and id functions, added
620 bool same_ids to clone function.
622 2001-07-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
624 * insettext.[hC]: make cached_text a shared_ptr, make Cache be a map
625 of BufferView * and shared_ptr<LyXText>
627 2001-07-05 Juergen Vigna <jug@sad.it>
629 * insettext.C (clear): deleted also the cache not only LyXText.
630 (setParagraphData): ditto.
632 2001-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
634 * insetfloat.C (latex): let the specific placement take presedence
635 if set, otherwise choose document placement if set, otherwise just
636 use float default placement.
638 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
640 * insettext.C (localDispatch): call CutAndPaste::'s static method
643 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
645 * insetbib.C: no meed to include forms.h here.
647 2001-07-03 Angus Leeming <a.leeming@ic.ac.uk>
649 * insettext.C: added using std::make_pair directive.
651 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
653 * insettext.C (getLyXText): avoid multiple lookups, and simplify
655 (deleteLyXText): ditto
656 (resizeLyXText): ditto
658 2001-07-02 Juergen Vigna <jug@sad.it>
660 * insettext.C (getLyXText): introduce a cache in getLyXText so that
661 following calls are only returned the right pointer without the over
662 head to search in the map.
663 (various funcs): reset the cached_bview variable as this signs that
664 the cache is not valid anymore.
666 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
668 * insettabular.C (clone): do not copy the LyXTabular twice
670 2001-06-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
672 * insettext.h (TEXT): delete method
674 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
676 * insetmarginal.C (latex):
677 * insetfoot.C (latex): fix spacing of notes in LaTeX
679 * insettext.C (localDispatch): use .c_str() on istringstream
680 constructor argument.
682 2001-06-29 John Levon <moz@compsoc.man.ac.uk>
687 * inseturl.C: fix method names in these to begin
688 with small char too, so they inherit
690 2001-06-28 Juergen Vigna <jug@sad.it>
692 * insettext.C (setFont): fixed font settings using toggleFree()
693 instead of setFont().
695 2001-06-28 Lars Gullik Bjønnes <larsbj@birdstep.com>
697 * Change a lot of method names to begin with a small char.
698 Changes to a lot of files because of this.
700 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
702 * insetfloatlist.C (Write): std:: qualify ostream
705 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
709 * insetgraphics.C: send debug output to Debug::INFO instead of
712 2001-06-26 The LyX Project <lyx@rose.home.sad.it>
715 * insettabular.C (getStatus): update to use func_status
717 2001-06-26 ben <nicolas.marsgui@libertysurf.fr>
719 * insetref.C (DocBook): added support for cross-references without
722 2001-06-26 The LyX Project <jug@sad.it>
727 * insetlabel.h: removed escape method and moved it to
730 2001-06-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
732 * insettabular.C (getMaxWidth): do the speedup in a different way,
735 2001-06-24 The LyX Project <Asger>
737 * insettabular.C (getMaxWidth): We cache a mapping from
738 inset to cell in order to speed this method up.
740 2001-06-24 The LyX Project <Asger>
742 * insettext.C: Optimized InsetText::draw or something.
744 2001-06-23 The LyX Project <lyx@rose.home.sad.it>
746 * insettext.C (LocalDispatch): fixed inserting of 'normal chars'
748 2001-06-23 Lars Gullik Bjønnes <larsbj@birdstep.com>
750 * inset.h: name change from lyxinset.h
752 2001-06-22 Dekel Tsur <dekelts@tau.ac.il>
754 * insetfloat.C (Validate): Add a call to InsetCollapsable::Validate
756 2001-06-14 Juergen Vigna <jug@sad.it>
758 * insettext.C (draw): removed warnings.
760 2001-06-13 Juergen Vigna <jug@sad.it>
762 * insettabular.C (nodraw): only go down the tree if we don't have
763 that flag set otherwise it's obvious that we don't want to draw.
764 (LocalDispatch): do also an update if we have an undispached result.
766 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
769 * insetgraphicsParams.C:
770 * insettext.C: removed // -*- C++ -*- as first line.
772 2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
774 * lyxinset.h (resizeLyXText): shut off warning about unused
777 2001-06-07 Juergen Vigna <jug@sad.it>
779 * insettext.C (resizeLyXText): honor the new force flag.
781 * lyxinset.h: add 'bool force' parameter to resizeLyXText(...)
783 * insettabular.C (deleteLyXText): new function
785 2001-06-02 John Levon <moz@compsoc.man.ac.uk>
793 * insetcollapsable.C:
794 * insetcaption.C: LColor tidy
796 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
798 * figinset.C: fix typo
800 2001-06-01 Juergen Vigna <jug@sad.it>
802 * insettabular.C (resetPos): small hack so that scroll is not set to
803 0 when we are in the last column of a tabular. This is a problem we
804 have because of constats 20 offset on both directions, so this can
805 cause on the limit an endless loop.
807 * insettext.C (SetFont): forgot that we can have locking insets ;)
809 2001-05-31 Juergen Vigna <jug@sad.it>
811 * insettabular.C (LocalDispatch): small fix for LFUN_TAB.
813 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
815 * figinset.C: add using std:: directive for the C functions which
818 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
820 * insetfloat.C (Write): write out wide info
821 (Read): read the wide info
822 (Latex): use the wide info when creating latex.
824 * insettext.C: adjust
826 * insetgraphics.[Ch] (statusMessage): change to return string
830 * figinset.C (runqueue): add std::
833 2001-05-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
835 * insetcite.C (Ascii): add std:: qualifier
837 2001-05-28 Juergen Vigna <jug@sad.it>
839 * insettext.C (resizeLyXText): clear LyXText ONLY if we don't have
840 a endless-width inset (maxWidth < 0).
841 (Edit): change language only if not equal.
843 * insettabular.C (resetPos): call UpdateLocal only on REAL scroll!
845 * insettext.C (draw): fixed draw/clear of InsetText-Frame
847 2001-05-16 Juergen Vigna <jug@sad.it>
849 * insettext.C (selectAll): added
850 (clearSelection): added
852 * insettabular.C (SetFont): now we may set a font on a whole selection!
853 (getSelection): added helper function.
855 2001-05-27 Dekel Tsur <dekelts@tau.ac.il>
857 * insetcite.C (Ascii): Add method.
859 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
862 * insetbib.C: fix path for OS/2 & Win32
864 2001-05-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
866 * insetfoot.C (Latex): don't use % after footnote.
868 2001-05-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
870 * insettext.C (Read): use clear
871 (SetParagraphData): use LyXParagraph copy constructor instead of clone
873 2001-05-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
875 * insetfloatlist.h: add a bunch of std:: qualifiers.
877 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
879 * lyxinset.h: remve LOF_CODE, LOT_CODE, LOA_CODE, add
880 FLOAT_LIST_CODE, renumber code list.
882 * insettoc.C (getScreenLabel): remove support for float lists
886 * insetfloatlist.[Ch]: new files
888 * Makefile.am (libinsets_la_SOURCES): add insetfloatlist.[Ch]
890 2001-04-27 Angus Leeming <a.leeming@ic.ac.uk>
892 * insettabular.C (LocalDispatch):
893 * insettext.C (LocalDispatch): getClipboard() is now a BufferView
896 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
898 * insettext.C: remvoe !NEW_INSETS cruft
900 * insettabular.C: remove !NEW_INSETS cruft
902 * insetcollapsable.h: remove !NEW_INSETS cruft
904 * insetbib.C: remove !NEW_INSETS cruft
906 2001-04-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
908 * insettoc.C: hack to make listof algorithm work
910 2001-04-20 Juergen Vigna <jug@sad.it>
912 * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
914 2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
916 * insetquotes.C (Latex): improve the guard against
917 unwanted !` and ?` ligatures. This should really be done in
918 another place (to catch all this ligatures at low-level).
920 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
922 * insettext.C (init): remvoe leftovers from cursor_visible change
924 (LocalDispatch): dispatch LFUN_MESSAGE
926 * insettabular.C (InsetTabular): remove leftovers from
927 cursor_visible, and scoped_ptr changes
930 * insetcollapsable.C (draw): use c++ cast
932 * ExternalTemplate.h: inherit privaely from noncopyable
933 * insetcommand.h: ditto
934 * insetinclude.h: ditto
936 2001-04-16 Allan Rae <rae@lyx.org>
938 * insettoc.C (Ascii):
939 * insettext.C (draw):
940 * insettabular.C (setPos):
941 * insetminipage.C (Read):
942 * insetfloat.C (placement):
943 * insetcaption.C (Ascii, DocBook):
944 * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as
945 an unrecognised preprocessor directive. So ensure they're wrapped.
947 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
950 * insetexternal.C: set view on Clone. Add _ to private members.
952 2001-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
954 * insettext.C (InsetText): fix new
955 (InsetText): reindent some, simplify deletion of par list
956 (clear): simplify deletion of par list, fix new
957 (SetParagraphData): simplify deletion of par list
959 * insettabular.[Ch] (getLabelList): implement new method
961 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
963 * lyxinset.h: do not include gettext.h...
971 * insetlatexaccent.C:
975 * inseturl.C: ... and do it here instead
977 2001-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
979 * insetcollapsable.[Ch] (getLabelList): add std:: on vector<string>
981 * insettext.[Ch] (getLabelList): add std:: on vector<string>
983 * insetcollapsable.[Ch] (getLabelList): implement
985 * insettext.[Ch] (getLabelList): implement
987 * insettext.h: reindent
989 * insettabular.h: make tabular a scoped_ptr
991 * insettext.C (init): adjust for cursor_visible
992 (ToggleInsetCursor): constify asc and desc, font, adjust for
994 (ShowInsetCursor): constify asc and desc, font, adjust for
996 (HideInsetCursor): adjust for cursor_visible
998 * insettabular.C: reindent some
999 (InsetTabular): adjust for scoped_ptr and cursor_visible
1000 (InsetTabular): ditto
1001 (~InsetTabular): delete delete
1002 (Clone): adjust for scoped_ptr
1003 (Read): constify old_format, adjust for scoped_ptr, move init of
1005 (draw): constify tx, localize loop vars.
1006 some other localization of variables, remove double initilizatons.
1008 * insetfoot.C: remove using std::ostream, add ostream where needed
1010 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
1012 * lyxinset.h: some reindentaion, use initializer list for
1014 UpdatableInset: make cursor_visible a private var add
1015 public isCursorVisible(), add protected toggleCursorVisible() and
1016 proctected setCursorVisible(bool), make scroll call the Inset::scroll
1018 * insettoc.C: remvoe using decl
1019 (getScreenLabel): make cmdname donst
1022 (Ascii): don't use endl
1024 * insetfootlike.C: remove using decl at file scope and add std::
1026 * insetmarginal.C: ditto
1028 * insetfoot.C: some reformatting
1030 * insetfloat.C (InsetButtonRelease): adjust the hit area
1032 * insetert.C (SetFont): some reformatting
1034 * insetcollapsable.C: some reformatting and constification
1035 (Clone): comment out.
1036 * insetcollapsable.h: some reformatting
1037 (Clone): comment out.
1042 2001-03-30 Juergen Vigna <jug@sad.it>
1044 * insetcollapsable.h: changen *inset to be a InsetText inset.
1046 * some files: changed to reflect the above change.
1048 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
1050 * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as
1051 InsetExternal::Params.
1052 Added operator==() and operator!=() for the Params struct.
1054 2001-03-29 Juergen Vigna <jug@sad.it>
1056 * lyxinset.h: changed parameter of getMaxWidth from Painter & to
1059 * insetminipage.C: removed widthp_ and all it's functions and changed
1060 to use new %-lengths of LyXLength.
1062 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
1064 * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h.
1066 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
1068 * insetgraphicsParams.C (operator!=): new function, needed by the
1069 ControlGraphics class.
1071 2001-03-28 Juergen Vigna <jug@sad.it>
1073 * insettext.C (InsetButtonPress): only enter !inset if button == 2
1074 (checkAndActivateInset): don't use the values returned from
1075 call to bv->checkInsetHit.
1077 * insetminipage.C (Clone): set special minipage values.
1079 * insetcollapsable.C (draw): changed to draw the button in the
1080 upper left corner outside the textinset.
1081 (ascent): changed because of different drawing
1085 (InsetButtonPress): ditto
1086 (InsetButtonRelease): ditto
1087 (InsetMotionNotify): ditto
1089 2001-03-27 Dekel Tsur <dekelts@tau.ac.il>
1091 * figinset.C (GetPSSizes): Fix for the case when filename doesn't
1095 2001-03-26 Juergen Vigna <jug@sad.it>
1097 * lyxinset.h: added ShowInsetDialog() function in UpdatableInset.
1099 * insettext.C (ShowInsetDialog): implemented above function.
1101 * insettabular.C (ShowInsetDialog): ditto
1103 * insetminipage.C (ShowInsetDialog): ditto
1105 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
1107 * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as
1108 InsetInclude::Params. Don't store a buffer * in Params. Store the
1109 master file name instead.
1111 2001-03-23 Juergen Vigna <jug@sad.it>
1113 * insetcollapsable.C (InsetMotionNotify):
1114 (InsetButtonRelease):
1115 (InsetButtonPress): fixed y-offset (minipages).
1117 * insettext.C (draw): force a FULL update if cleared == true.
1119 * insetcollapsable.C (draw): Lars forgotten entry for changing this
1120 routine to draw the minipages on its position-flag.
1121 (InsetInInsetY): give back the right y position, because of minipage
1124 2001-03-23 José Abílio Matos <jamatos@fep.up.pt>
1127 * insetfloat.C (DocBook): docbook export code.
1129 2001-03-22 Juergen Vigna <jug@sad.it>
1131 * insetminipage.C (getMaxWidth): added function to set the drawing
1133 (Read): should work now!
1135 * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed
1136 if we create a new inset.
1138 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
1140 * figinset.C (fl_set_preemptive_callback): moved definition outside
1143 2001-03-20 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1145 * insetminipage.C (Read): prepare for reading of minipage arguments.
1147 2001-03-18 Baruch Even <baruch@lyx.org>
1149 * insetgraphics.C: Minor cleanups of the comments and code.
1151 2001-03-17 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1153 * insetminipage.C (InsetMinipage): default to not collapsed
1155 2001-03-16 Juergen Vigna <jug@sad.it>
1157 * insetminipage.C (width): modified with to be a string
1158 (widthp): added widthp (for % width) support functions.
1159 (InsetButtonRelease): added to open the options dialog on button==3.
1160 (~InsetMinipage): added to hide the dialog.
1162 * insetminipage.h: added hideDialog signal
1164 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1166 * insetminipage.h: change the order or Position to match
1167 LyXParagraph::MINIPAGE_ALIGNMENT
1169 * several files: remvoe CXX_WORKING_NAMESPACES
1171 * ExternalTemplate.h: noncopyable is in namespace boost
1172 * insetinclude.h: ditto
1173 * insetcommand.h: ditto
1175 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1177 * insettext.C (Edit): #else# -> #else.
1178 * insettoc.C: added using directive.
1180 2001-03-14 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1182 * insetminipage.h: add pos, inner_pos, width and height. + getters
1183 and setters for all of them.
1185 2001-03-13 Dekel Tsur <dekelts@tau.ac.il>
1187 * insetinclude.C (Latex): Do not exit when the textclass of the
1188 included file differ from the textclass of the parent file.
1190 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
1192 * ExternalTemplate.C (read): the reading of external insets now checks
1193 for \end_inset and removes it form the input stream.
1195 2001-03-09 John Levon <moz@compsoc.man.ac.uk>
1197 * ExternalTemplate.h:
1198 * ExternalTemplate.C:
1200 * insetexternal.C: move form to GUII
1202 2001-03-12 John Levon <moz@compsoc.man.ac.uk>
1205 * insetinclude.C: add InsetIncludeParams, use
1206 composition rather than derivation of InsetCommand
1208 2001-03-12 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1210 * insettoc.C (Ascii): use the Buffer typedefs
1212 2001-03-11 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1214 * insettoc.C (Ascii): implement for dynamic number of lists
1216 * insetcaption.[Ch]: update from new_insets branch
1217 * insetfloat.[Ch]: ditto
1219 2001-03-06 John Levon <moz@compsoc.man.ac.uk>
1222 * figinset.C: use new File Dialog
1224 2001-03-06 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1226 * insettext.C: changes becuase of ParagraphParameters.
1228 2001-02-28 Baruch Even <baruch@ev-en.org>
1230 * insetgraphics.C (updateInset): Changed due to the change in
1233 2001-02-26 Juergen Vigna <jug@sad.it>
1235 * insettext.C (SetFont): Set Undo only if we have selection (as it is
1236 handled in LyXText).
1238 2001-02-23 Juergen Vigna <jug@sad.it>
1240 * insettext.C (draw): some small repainting fixes.
1241 (LocalDispatch): put the sel_cursor stuff after the insert of chars.
1243 * inset.C (LocalDispatch): changed action to be a kb_action (as it
1244 should be) and not an int.
1246 * insettabular.C (LocalDispatch): ditto
1248 * insettext.C (LocalDispatch): ditto
1250 * insetcollapsable.C (LocalDispatch): ditto
1252 2001-02-22 Juergen Vigna <jug@sad.it>
1254 * insettabular.C (LocalDispatch): return DISPATCHED if we cannot
1255 DISPATCH it and we don't have a locking_inset.
1257 2001-02-21 Baruch Even <baruch@ev-en.org>
1259 * insetgraphics.[Ch]: Changed to use boost::shared_ptr<GraphicsCacheItem>
1260 instead of GraphicsCacheItem *.
1262 2001-02-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1264 * insetcollapsable.C (getLyXText): add const qualifier to second
1267 2001-02-22 Juergen Vigna <jug@sad.it>
1269 * insettext.C (getLyXText): honor the recursive parameter.
1270 (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
1272 * inset.C (getLyXText): added bool recursive parameter.
1274 * insettext.C (SetUpdateStatus): or the update codes.
1275 (draw): check need_update with &.
1276 (InsetButtonPress): set no_selection to not put a selection when
1277 entering an inset and it is redraws in another spot.
1279 * insettext.h: made need_update an int.
1281 2001-02-20 Baruch Even <baruch@ev-en.org>
1284 * insetgraphisc.C: Changed to use better semantics when loading images
1285 for inline view. Now it doesn't keep the pixmap itself but it's holder.
1287 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1291 * insetgraphics.C: change name of "hide" signal to "hideDialog",
1292 consistent with InsetTabular.
1294 2001-02-19 Juergen Vigna <jug@sad.it>
1296 * insettabular.C (LocalDispatch): implement PAGE up/down.
1298 * insettext.C (draw): clear all of it on need_update==INIT too!
1300 * insettabular.C (InsetUnlock): always clear the selection.
1302 * inset.C (scroll): normally we only want to scroll the inset until
1303 it is fully visible so if top_x + offset > 20 then just set scx to 0.
1305 2001-02-14 Juergen Vigna <jug@sad.it>
1307 * insettabular.C (LocalDispatch): remove x_fix as it is not used.
1308 (resetPos): fixed scroll behaviour.
1309 (LocalDispatch): do an update if moving cursor inside a table cell
1310 requests a scroll of the tabular.
1312 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1314 * insettext.C (textWidth): constify local var
1316 * insettabular.C: small cleanup.
1318 * insetfoot.C (Latex): constify local var
1320 * insetcollapsable.C: small cleanup.
1322 * figinset.C (runqueue): use compare instead of strcmp
1324 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1327 * insetinfo.C: remove cruft
1329 2001-02-14 Juergen Vigna <jug@sad.it>
1331 * insettext.C (SetUpdateStatus): added a BufferView * parameter.
1333 2001-02-13 Juergen Vigna <jug@sad.it>
1335 * insettext.C (InsertInset): don't move left (is this right?)
1337 * insettabular.C (LocalDispatch): use of the no_draw variable
1339 * insettabular.h: new no_draw variable to stop redraw
1341 * insettabular.C (TabularFeatures): fixed update for alignment change
1343 2001-02-12 John Levon <moz@compsoc.man.ac.uk>
1347 * insetbib.C: move dialogs to frontends/
1349 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
1351 * insettext.C (LocalDispatch): Restore the language if the inset
1354 2001-02-09 Dekel Tsur <dekelts@tau.ac.il>
1356 * insettext.C (moveRightIntern): Update the selection cursor.
1357 (moveLeftIntern): Ditto.
1359 2001-02-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1361 * Makefile.am: remove BoundingBox.h
1363 * BoundingBox.h: removed
1365 2001-02-08 Dekel Tsur <dekelts@tau.ac.il>
1367 * insettext.C (LocalDispatch): Update selection cursor when moving
1368 cursor to the right.
1369 (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
1370 (moveLeftIntern): Ditto.
1372 2001-02-05 Baruch Even <baruch.even@writeme.com>
1374 * insetgraphics.C: Updated automatic image conversion, it now goes into
1375 temporary directory instead of with the image itself.
1377 2001-01-21 Baruch Even <baruch@ev-en.org>
1379 * insetgraphics.C: Added Docbook support. Added Automatic image conversion
1380 to EPS or PNG when needed (support bitmap graphics).
1382 2000-11-02 Baruch Even <baruch@ev-en.org>
1385 * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n'
1386 and removal of commented out code.
1388 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1390 * insetbib.C (callback): Update citations if the key has changed.
1392 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1394 * insetbib.C (InsetBibKey): Better computation of default key.
1395 (getScreenLabel) Show both the key and the label.
1396 (getBibLabel): New method.
1397 (callback): Force a redraw if the inset have been changed.
1399 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1401 * insetref.C (getType, getName): Move methods from
1402 src/frontends/xforms/FormRef.C.
1404 2001-01-12 Dekel Tsur <dekelts@tau.ac.il>
1406 * insettabular.C: Various improvements (use only one dummy position).
1408 2001-01-25 Dekel Tsur <dekelts@tau.ac.il>
1410 * insetbib.C (bibitemWidest): Use lyxfont::width instead of
1411 par->bibkey->width. This fixes the crashes when running without
1412 gui or when having included documents.
1414 2001-01-22 Dekel Tsur <dekelts@tau.ac.il>
1416 * insetcommand.C (getAsString, setFromString): Cleanup.
1418 2001-01-21 Dekel Tsur <dekelts@tau.ac.il>
1420 * insetref.C: Add the array InsetRef::types that contains
1421 information about all supported reference types.
1423 2001-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1425 * lyxinset.h: remove trailing comma in enum.
1427 2001-01-17 John Levon <moz@compsoc.man.ac.uk>
1429 * insettext.C: kill LyXBell.