1 2001-07-28 Angus Leeming <a.leeming@ic.ac.uk>
3 * insetert.C (get_new_label): int -> Paragraph::size_type to get
6 * insetgraphics.C: added a using std::endl directive.
8 * insetcommand.h (getScreenLabel): removed pure virtual function,
9 as it duplicates that in InsetButton.
11 * insetbib.[Ch] (getScreenLabel):
12 * insetbutton.[Ch] (getScreenLabel):
13 * insetcite.[Ch] (getScreenLabel):
14 * insetert.[Ch] (getScreenLabel):
15 * insetexternal.[Ch] (getScreenLabel):
16 * insetfloatlist.[Ch] (getScreenLabel):
17 * insetinclude.[Ch] (getScreenLabel):
18 * insetindex.[Ch] (getScreenLabel):
19 * insetlabel.h (getScreenLabel):
20 * insetparent.[Ch] (getScreenLabel):
21 * insetref.[Ch] (getScreenLabel):
22 * insettoc.[Ch] (getScreenLabel):
23 * inseturl.[Ch] (getScreenLabel): passed a Buffer const * parameter.
25 * insetcite.C (getScreenLabel): use this Buffer parameter in creating
27 (validate): remove check on "cite" when using natbib.
29 2001-07-26 Baruch Even <baruch@lyx.org>
31 * insetgraphics.C (draw): changed casting to be in one place rather than
32 all over the function.
35 * insetgraphics.C (read): Added compatibility reads of InsetFig.
37 * insetgraphicsParams.h:
38 * insetgraphicsParams.C:
39 * insetgraphics.C: Removed inline option and changed rotateAngle to float.
41 2001-07-28 Kayvan A. Sylvan <kayvan@sylvan.com>
43 * insetfoot.C (validate): Added method to ensure that the
44 right bit of LaTeX is emitted.
46 * insetfoot.h: Added validate method to set the correct
47 LaTeXFeatures bit for the special footnote code.
49 2001-07-26 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
51 * insetquotes.C (dispString): display the right ISO8859-{1,9,15}
54 2001-07-27 Juergen Vigna <jug@sad.it>
56 * inset.h: remove not used font variable in parameter.
57 removed checkInsertChar in UpdatableInset as it was equal to
58 the one in Inset and so not needed.
60 * insetert.C (checkInsertChar): implementation of function
63 * inset.h: added new function checkInsertChar.
65 * various files: added c-tor and clone() function.
67 * insetcollapsable.h: removed clone function here as this should
68 be only realized in REAL insets and added it to all collapsable
69 insets! (with the copy-constructor).
71 2001-07-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
73 * insetminipage.C (read): handle missing parameters more gracefully
75 * insetcollapsable.C (read): handel missing collapsed more gracefully
77 2001-07-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
79 * insetfloat.C (read): handle missing parameters.
81 * insettext.C (read): handle old latex end_inset
83 * insetert.C (setButtonLabel): new method
84 (init): use it, to set the dynamic label correctly
87 * Makefile.am (EXTRA_DIST): add files that is not part or the
90 * insetcollapsable.h: remove autocollapsable (no users), remove
91 draw_label, change_label_with_text and companion code. Remove args
93 * insetert.[Ch]: move here instead (only user)
95 * inset.h: rename private variable name to name_, make
96 selectNextWord return a const string. make getInsetName return a
97 string const &. Remove bool from open, add close.
99 * Makefile.am: don't compile insetlist, insetsection
102 2001-07-24 Juergen Vigna <jug@sad.it>
104 * insetert.C (InsetERT): put init after the paragraph initialization,
105 as otherwise we don't set the draw_label right.
107 * insetcollapsable.C (insetMotionNotify): fixed opening/closing the
108 insets with the mouse without having strange selections.
109 (edit): if the inset was collapsed and we open it here then put the
110 cursor always at the beginning of the inset.
111 (get_new_label): 15 instead of 10 max chars in the label.
113 * insetert.C (localDispatch): added and handle various stuff we
114 need to handle here (font setting on paragraph break, not permitted
115 layout setting, etc.).
117 * inset.h: added default copy-consturctor and implemented this in
118 various insets with the change to use this in the clone function!
120 2001-07-24 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
122 * insetminipage.C (InsetMinipage): set background color to red :)
124 2001-07-23 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
126 * insettext.C (insetUnlock): only set update to CLEAR_FRAME if
127 draw frame mode is LOCKED.
129 * insetcollapsable.C (edit):
130 (insetButtonRelease): set update status to full when
133 * insettext.C (clearInset):
134 * insettabular.C (draw):
135 * insetlatexaccent.C (draw): honor background color.
137 * inset.h: new member background_color_, initialized to
140 * inset.C (backgroundColor): new method.
141 (setBackgroundColor): new method.
143 * insetert.C (init): new method, called by the ctors.
144 (InsetERT): when inserting contents, make sure the font is
147 * insetnote.C (InsetNote): when inserting content, remove trailing
149 (init): set background color to LColor::note
151 2001-07-24 Lars Gullik Bjønnes <larsbj@birdstep.com>
153 * insetcollapsable.C: adjust
155 * insetbutton.C: adjust
157 2001-07-23 Juergen Vigna <jug@sad.it>
159 * insetcollapsable.h: removed widthCollapsed variable, LyXFont
160 parameter on the _collapsed function (was not needed) and call
161 always width_collapsed().
163 * insetert.C (InsetERT): use setLabel with "true" flag.
165 * insetcollapsable.C: modified various functions to set the draw_label
166 string right in any condition.
167 (setLabel): added a bool parameter to set change_label_with_text.
169 * insetcollapsable.h: added draw_label string which is set to the
170 actual drawn label-string, while label is the original static label
171 of this collapsable inset. Added bool change_label_with_text to set
172 if we want that the label changes to the start of the InsetText's
173 text when collabpsed. You can set this flag with the setLabel funciton.
174 Added bool inlined for inlined collapsable insets, but not handled
177 * insetcollapsable.C (get_new_label): added should get a new label
178 from the InsetText beginning (for now 10 chars).
180 2001-07-21 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
182 * insetquotes.C (latex): fix the handling of french double quotes
183 when not using the french pachage.
185 2001-07-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
187 * insetcollapsable.h: make WidthCollapsed mutable.
189 * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE,
190 InsetPrintIndex returns INDEX_PRINT_CODE.
192 * inset.h: add INDEX_PRINT_CODE
194 * insetcollapsable.C (draw): init widthCollapsed if necessary
197 * insetquotes.C (width): use the local language, not the document
200 (dispString): add additional spacing for all french languages,
202 (validate): make it work when there is no default language
204 * insetspecialchar.h: rename kind to kind_; add kind() accessor.
206 * insetnote.C (init): new method, called by the constructors
207 (InsetNote): new constructor with contents passed as a string
209 2001-07-21 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
211 * insetfootlike.C (insetAllowed): disallow float in footlike.
213 * insetert.C (InsetERT): add collapsed argument to the constrctor
216 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
218 * insetindex.h: shut off warning
220 2001-07-20 Juergen Vigna <jug@sad.it>
222 * insetcollapsable.C (update): recoded hopefully works now!
224 2001-07-19 Juergen Vigna <jug@sad.it>
226 * most files: implemented the below new introduced function.
228 * inset.h: added new edit(BufferView *, bool front) method to be able
229 to enter an inset from the front/back without knowing x/y positions
230 and baselines inside the inset. So I just can tell the inset activate
231 me and set the cursor on the front/back of yourself.
233 2001-07-18 Juergen Vigna <jug@sad.it>
235 * insetcollapsable.C (edit): fixed hopefully the y parameter which
236 is givven to the InsetText.
237 (insetButtonPress): ditto
238 (insetButtonRelease): ditto
239 (insetMotionNotify): ditto
241 2001-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
243 * insetspecialchar.[Ch]: change HYPHENATION_BREAK to
244 LIGATURE_BREAK, since the name is so stupid.
246 2001-07-20 Angus Leeming <a.leeming@ic.ac.uk>
248 * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
249 the default InsetCollapsable methods. I.e., it can insert anything.
250 (write) output the name of the inset, not some silly hack for
251 compatability with the old InsetInfo.
253 * insetinfo.[Ch]: removed.
254 * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
255 now collapsable, but functionality is otherwise identical to InsetInfo.
257 * Makefile.am: removed insetinfo.[Ch]. Added insetnote.[Ch].
259 2001-07-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
261 * insetspecialchar.[Ch]: add support for HYPHENATION_BREAK. some
264 * insetquotes.C: general cleanup
265 (dispString): add spaces inside french double quotes.
266 (latex): ditto. Moreover, treat first the case where the frenchb
267 or french options have been given.
269 2001-07-19 Angus Leeming <a.leeming@ic.ac.uk>
271 * insetcite.[Ch] (latex, validate): new methods, required for natbib
274 2001-07-19 Dekel Tsur <dekelts@tau.ac.il>
276 * figinset.C (RegisterFigure): Print debug message only when
277 current_view is available.
279 2001-07-18 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
281 * many files: update to match the change below
283 * inset.h (insetAllowed): renamed from insertInsetAllowed;
284 implement the version which takes an inset here.
286 * insetcollapsable.[Ch]: implement open and isOpen
288 * inset.h: remove insertInsetAllowed from Inset
289 (open): new method, to open or close an inset
290 (isOpen): returns the status of an inset
291 (isCollapsable, colapse): removed
293 2001-07-13 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
295 * insetquotes.C (dispString): display french guillemets when using
298 2001-07-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
300 * insetcollapsable.h: remove bogus return statements
302 2001-07-18 Juergen Vigna <jug@sad.it>
304 * insettabular.C (selectNextWord): fixed spellchecking for the
305 first cell of a tabular (wasn't entered!)
306 (getLyXText): changed to enter automatically insettext and return
307 it's LyXText if we're locked.
309 2001-07-17 Juergen Vigna <jug@sad.it>
311 * various files: implemented the below functions.
313 * inset.h: added functions
314 - virtual string selectNextWord(BufferView *, float & value) const;
315 - virtual void selectSelectedWord(BufferView *) { return; }
316 - virtual void toggleSelection(BufferView *, bool /*kill_selection*/)
317 needed for spellchecking correctly!
319 2001-07-16 Lars Gullik Bjønnes <larsbj@birdstep.com>
321 * insetert.C (latex): write out all paragraphs.
323 2001-07-17 Baruch Even <baruch@lyx.org>
325 * insetgraphics.C (draw): Removed unneeded casts.
327 2001-07-16 Juergen Vigna <jug@sad.it>
329 * insettext.C (update): fixed small oversight (reset lt to 0).
331 2001-07-14 Baruch Even <baruch@lyx.org>
334 * insetgraphics.C: Added a copy c-tor and handled the same_id case.
336 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
338 Consistent use of Lsstream.h:
339 * figinset.C: removed using std::ostringstream directive.
341 * insetgraphics.C (createLatexOptions):
342 * insetinclude.C (unique_id):
343 std::ostringstream -> ostringstream.
344 * insettext.C (localDispatch): std::istringstream -> istringstream.
346 2001-07-13 Juergen Vigna <jug@sad.it>
348 * insetfloat.C (insertInsetAllowed): added missing const_cast.
350 * insetcollapsable.C (getLockingInset): ditto.
352 2001-07-12 Juergen Vigna <jug@sad.it>
354 * insetcollapsable.h: added implementation of new function for
357 * various files: added implementation of new insertInsetAllowed-func
358 and redone the function a bit more.
360 * inset.h: added isCollapsable(), bool collapsed(),
361 collapsed(BufferView *, bool) and insertInsetAllowed(Inset::Code).
363 * insetfloat.C (insertInsetAllowed): make a bit more checks.
365 * insettext.C (getLyXText): use 'lt' to assure we're not erasing the
366 LyXText which is marked for removal while we're using it!
368 * insettext.h: added private LyXText * lt to use it to assure we are
369 not deleting our LyXText while we're using it!
371 2001-07-11 Juergen Vigna <jug@sad.it>
373 * insettext.C (insertInset): check if we are before the inset after
374 inserting it! This check IS needed. Remove the Undo-Call as it is
375 called in LyXText::insertInset!
377 * insettext.h: added struct InnerCache.
379 * insettext.C (deleteLyXText): insert a new InnerCache mechanism so
380 that we ONLY delete the LyXText in the getLyXText() routine. So we
381 are sure we don't delete LyXText while someone is working with it!
383 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
385 * insetexternal.C: (*it). -> it->
388 2001-07-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
390 * insetcollapsable.C (edit): always open collapsed insets (even if
391 they are not autocollapsable)
393 * insetcommand.C (operator=): simplify.
395 2001-07-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
397 * insetert.C (latex): handle META_NEWLINE
399 2001-07-09 Juergen Vigna <jug@sad.it>
401 * insetert.h: a normal InsetText can insert insets, but we won't.
403 * inset.h: return default "false" on insertInsetAllowed and implement
404 this function where a returnvalue != "false" is needed.
406 2001-07-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
408 * insetert.C (InsetERT): new contructor
410 2001-07-06 Juergen Vigna <jug@sad.it>
412 * a lot of files: added implementation of the below new functions
413 and the change to clone(). Also the call of the new undo-functions
416 * inset.h: added an inset_id, added functions getParFromID,
417 getInsetFromID, firstParagraph, cursor and id functions, added
418 bool same_ids to clone function.
420 2001-07-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
422 * insettext.[hC]: make cached_text a shared_ptr, make Cache be a map
423 of BufferView * and shared_ptr<LyXText>
425 2001-07-05 Juergen Vigna <jug@sad.it>
427 * insettext.C (clear): deleted also the cache not only LyXText.
428 (setParagraphData): ditto.
430 2001-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
432 * insetfloat.C (latex): let the specific placement take presedence
433 if set, otherwise choose document placement if set, otherwise just
434 use float default placement.
436 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
438 * insettext.C (localDispatch): call CutAndPaste::'s static method
441 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
443 * insetbib.C: no meed to include forms.h here.
445 2001-07-03 Angus Leeming <a.leeming@ic.ac.uk>
447 * insettext.C: added using std::make_pair directive.
449 2001-07-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
451 * insettext.C (getLyXText): avoid multiple lookups, and simplify
453 (deleteLyXText): ditto
454 (resizeLyXText): ditto
456 2001-07-02 Juergen Vigna <jug@sad.it>
458 * insettext.C (getLyXText): introduce a cache in getLyXText so that
459 following calls are only returned the right pointer without the over
460 head to search in the map.
461 (various funcs): reset the cached_bview variable as this signs that
462 the cache is not valid anymore.
464 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
466 * insettabular.C (clone): do not copy the LyXTabular twice
468 2001-06-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
470 * insettext.h (TEXT): delete method
472 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
474 * insetmarginal.C (latex):
475 * insetfoot.C (latex): fix spacing of notes in LaTeX
477 * insettext.C (localDispatch): use .c_str() on istringstream
478 constructor argument.
480 2001-06-29 John Levon <moz@compsoc.man.ac.uk>
485 * inseturl.C: fix method names in these to begin
486 with small char too, so they inherit
488 2001-06-28 Juergen Vigna <jug@sad.it>
490 * insettext.C (setFont): fixed font settings using toggleFree()
491 instead of setFont().
493 2001-06-28 Lars Gullik Bjønnes <larsbj@birdstep.com>
495 * Change a lot of method names to begin with a small char.
496 Changes to a lot of files because of this.
498 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
500 * insetfloatlist.C (Write): std:: qualify ostream
503 2001-06-26 The LyX Project <lyx@violet.home.sad.it>
507 * insetgraphics.C: send debug output to Debug::INFO instead of
510 2001-06-26 The LyX Project <lyx@rose.home.sad.it>
513 * insettabular.C (getStatus): update to use func_status
515 2001-06-26 ben <nicolas.marsgui@libertysurf.fr>
517 * insetref.C (DocBook): added support for cross-references without
520 2001-06-26 The LyX Project <jug@sad.it>
525 * insetlabel.h: removed escape method and moved it to
528 2001-06-26 Lars Gullik Bjønnes <larsbj@birdstep.com>
530 * insettabular.C (getMaxWidth): do the speedup in a different way,
533 2001-06-24 The LyX Project <Asger>
535 * insettabular.C (getMaxWidth): We cache a mapping from
536 inset to cell in order to speed this method up.
538 2001-06-24 The LyX Project <Asger>
540 * insettext.C: Optimized InsetText::draw or something.
542 2001-06-23 The LyX Project <lyx@rose.home.sad.it>
544 * insettext.C (LocalDispatch): fixed inserting of 'normal chars'
546 2001-06-23 Lars Gullik Bjønnes <larsbj@birdstep.com>
548 * inset.h: name change from lyxinset.h
550 2001-06-22 Dekel Tsur <dekelts@tau.ac.il>
552 * insetfloat.C (Validate): Add a call to InsetCollapsable::Validate
554 2001-06-14 Juergen Vigna <jug@sad.it>
556 * insettext.C (draw): removed warnings.
558 2001-06-13 Juergen Vigna <jug@sad.it>
560 * insettabular.C (nodraw): only go down the tree if we don't have
561 that flag set otherwise it's obvious that we don't want to draw.
562 (LocalDispatch): do also an update if we have an undispached result.
564 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
567 * insetgraphicsParams.C:
568 * insettext.C: removed // -*- C++ -*- as first line.
570 2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
572 * lyxinset.h (resizeLyXText): shut off warning about unused
575 2001-06-07 Juergen Vigna <jug@sad.it>
577 * insettext.C (resizeLyXText): honor the new force flag.
579 * lyxinset.h: add 'bool force' parameter to resizeLyXText(...)
581 * insettabular.C (deleteLyXText): new function
583 2001-06-02 John Levon <moz@compsoc.man.ac.uk>
591 * insetcollapsable.C:
592 * insetcaption.C: LColor tidy
594 2001-06-01 Lars Gullik Bjønnes <larsbj@birdstep.com>
596 * figinset.C: fix typo
598 2001-06-01 Juergen Vigna <jug@sad.it>
600 * insettabular.C (resetPos): small hack so that scroll is not set to
601 0 when we are in the last column of a tabular. This is a problem we
602 have because of constats 20 offset on both directions, so this can
603 cause on the limit an endless loop.
605 * insettext.C (SetFont): forgot that we can have locking insets ;)
607 2001-05-31 Juergen Vigna <jug@sad.it>
609 * insettabular.C (LocalDispatch): small fix for LFUN_TAB.
611 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
613 * figinset.C: add using std:: directive for the C functions which
616 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
618 * insetfloat.C (Write): write out wide info
619 (Read): read the wide info
620 (Latex): use the wide info when creating latex.
622 * insettext.C: adjust
624 * insetgraphics.[Ch] (statusMessage): change to return string
628 * figinset.C (runqueue): add std::
631 2001-05-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
633 * insetcite.C (Ascii): add std:: qualifier
635 2001-05-28 Juergen Vigna <jug@sad.it>
637 * insettext.C (resizeLyXText): clear LyXText ONLY if we don't have
638 a endless-width inset (maxWidth < 0).
639 (Edit): change language only if not equal.
641 * insettabular.C (resetPos): call UpdateLocal only on REAL scroll!
643 * insettext.C (draw): fixed draw/clear of InsetText-Frame
645 2001-05-16 Juergen Vigna <jug@sad.it>
647 * insettext.C (selectAll): added
648 (clearSelection): added
650 * insettabular.C (SetFont): now we may set a font on a whole selection!
651 (getSelection): added helper function.
653 2001-05-27 Dekel Tsur <dekelts@tau.ac.il>
655 * insetcite.C (Ascii): Add method.
657 2001-05-16 Ruurd Reitsma <r.a.reitsma@wbmt.tudelft.nl>
660 * insetbib.C: fix path for OS/2 & Win32
662 2001-05-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
664 * insetfoot.C (Latex): don't use % after footnote.
666 2001-05-08 Lars Gullik Bjønnes <larsbj@birdstep.com>
668 * insettext.C (Read): use clear
669 (SetParagraphData): use LyXParagraph copy constructor instead of clone
671 2001-05-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
673 * insetfloatlist.h: add a bunch of std:: qualifiers.
675 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
677 * lyxinset.h: remve LOF_CODE, LOT_CODE, LOA_CODE, add
678 FLOAT_LIST_CODE, renumber code list.
680 * insettoc.C (getScreenLabel): remove support for float lists
684 * insetfloatlist.[Ch]: new files
686 * Makefile.am (libinsets_la_SOURCES): add insetfloatlist.[Ch]
688 2001-04-27 Angus Leeming <a.leeming@ic.ac.uk>
690 * insettabular.C (LocalDispatch):
691 * insettext.C (LocalDispatch): getClipboard() is now a BufferView
694 2001-05-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
696 * insettext.C: remvoe !NEW_INSETS cruft
698 * insettabular.C: remove !NEW_INSETS cruft
700 * insetcollapsable.h: remove !NEW_INSETS cruft
702 * insetbib.C: remove !NEW_INSETS cruft
704 2001-04-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
706 * insettoc.C: hack to make listof algorithm work
708 2001-04-20 Juergen Vigna <jug@sad.it>
710 * insettext.C (Edit): call checkAndActivateInset with y=0 if y < 0.
712 2001-04-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
714 * insetquotes.C (Latex): improve the guard against
715 unwanted !` and ?` ligatures. This should really be done in
716 another place (to catch all this ligatures at low-level).
718 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
720 * insettext.C (init): remvoe leftovers from cursor_visible change
722 (LocalDispatch): dispatch LFUN_MESSAGE
724 * insettabular.C (InsetTabular): remove leftovers from
725 cursor_visible, and scoped_ptr changes
728 * insetcollapsable.C (draw): use c++ cast
730 * ExternalTemplate.h: inherit privaely from noncopyable
731 * insetcommand.h: ditto
732 * insetinclude.h: ditto
734 2001-04-16 Allan Rae <rae@lyx.org>
736 * insettoc.C (Ascii):
737 * insettext.C (draw):
738 * insettabular.C (setPos):
739 * insetminipage.C (Read):
740 * insetfloat.C (placement):
741 * insetcaption.C (Ascii, DocBook):
742 * figinset.C (runqueue): #warning triggers an error on Sun CC 6.0 as
743 an unrecognised preprocessor directive. So ensure they're wrapped.
745 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
748 * insetexternal.C: set view on Clone. Add _ to private members.
750 2001-04-06 Lars Gullik Bjønnes <larsbj@birdstep.com>
752 * insettext.C (InsetText): fix new
753 (InsetText): reindent some, simplify deletion of par list
754 (clear): simplify deletion of par list, fix new
755 (SetParagraphData): simplify deletion of par list
757 * insettabular.[Ch] (getLabelList): implement new method
759 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
761 * lyxinset.h: do not include gettext.h...
769 * insetlatexaccent.C:
773 * inseturl.C: ... and do it here instead
775 2001-04-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
777 * insetcollapsable.[Ch] (getLabelList): add std:: on vector<string>
779 * insettext.[Ch] (getLabelList): add std:: on vector<string>
781 * insetcollapsable.[Ch] (getLabelList): implement
783 * insettext.[Ch] (getLabelList): implement
785 * insettext.h: reindent
787 * insettabular.h: make tabular a scoped_ptr
789 * insettext.C (init): adjust for cursor_visible
790 (ToggleInsetCursor): constify asc and desc, font, adjust for
792 (ShowInsetCursor): constify asc and desc, font, adjust for
794 (HideInsetCursor): adjust for cursor_visible
796 * insettabular.C: reindent some
797 (InsetTabular): adjust for scoped_ptr and cursor_visible
798 (InsetTabular): ditto
799 (~InsetTabular): delete delete
800 (Clone): adjust for scoped_ptr
801 (Read): constify old_format, adjust for scoped_ptr, move init of
803 (draw): constify tx, localize loop vars.
804 some other localization of variables, remove double initilizatons.
806 * insetfoot.C: remove using std::ostream, add ostream where needed
808 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
810 * lyxinset.h: some reindentaion, use initializer list for
812 UpdatableInset: make cursor_visible a private var add
813 public isCursorVisible(), add protected toggleCursorVisible() and
814 proctected setCursorVisible(bool), make scroll call the Inset::scroll
816 * insettoc.C: remvoe using decl
817 (getScreenLabel): make cmdname donst
820 (Ascii): don't use endl
822 * insetfootlike.C: remove using decl at file scope and add std::
824 * insetmarginal.C: ditto
826 * insetfoot.C: some reformatting
828 * insetfloat.C (InsetButtonRelease): adjust the hit area
830 * insetert.C (SetFont): some reformatting
832 * insetcollapsable.C: some reformatting and constification
833 (Clone): comment out.
834 * insetcollapsable.h: some reformatting
835 (Clone): comment out.
840 2001-03-30 Juergen Vigna <jug@sad.it>
842 * insetcollapsable.h: changen *inset to be a InsetText inset.
844 * some files: changed to reflect the above change.
846 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
848 * insetexternal.[Ch]: renamed InsetExternal::InsetExternalParams as
849 InsetExternal::Params.
850 Added operator==() and operator!=() for the Params struct.
852 2001-03-29 Juergen Vigna <jug@sad.it>
854 * lyxinset.h: changed parameter of getMaxWidth from Painter & to
857 * insetminipage.C: removed widthp_ and all it's functions and changed
858 to use new %-lengths of LyXLength.
860 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
862 * figinset.[Ch]: changed headers lyx.h, form1.h -> figure_form.h.
864 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
866 * insetgraphicsParams.C (operator!=): new function, needed by the
867 ControlGraphics class.
869 2001-03-28 Juergen Vigna <jug@sad.it>
871 * insettext.C (InsetButtonPress): only enter !inset if button == 2
872 (checkAndActivateInset): don't use the values returned from
873 call to bv->checkInsetHit.
875 * insetminipage.C (Clone): set special minipage values.
877 * insetcollapsable.C (draw): changed to draw the button in the
878 upper left corner outside the textinset.
879 (ascent): changed because of different drawing
883 (InsetButtonPress): ditto
884 (InsetButtonRelease): ditto
885 (InsetMotionNotify): ditto
887 2001-03-27 Dekel Tsur <dekelts@tau.ac.il>
889 * figinset.C (GetPSSizes): Fix for the case when filename doesn't
893 2001-03-26 Juergen Vigna <jug@sad.it>
895 * lyxinset.h: added ShowInsetDialog() function in UpdatableInset.
897 * insettext.C (ShowInsetDialog): implemented above function.
899 * insettabular.C (ShowInsetDialog): ditto
901 * insetminipage.C (ShowInsetDialog): ditto
903 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
905 * insetinclude.[Ch]: rename InsetInclude::InsetIncludeParams as
906 InsetInclude::Params. Don't store a buffer * in Params. Store the
907 master file name instead.
909 2001-03-23 Juergen Vigna <jug@sad.it>
911 * insetcollapsable.C (InsetMotionNotify):
912 (InsetButtonRelease):
913 (InsetButtonPress): fixed y-offset (minipages).
915 * insettext.C (draw): force a FULL update if cleared == true.
917 * insetcollapsable.C (draw): Lars forgotten entry for changing this
918 routine to draw the minipages on its position-flag.
919 (InsetInInsetY): give back the right y position, because of minipage
922 2001-03-23 José Abílio Matos <jamatos@fep.up.pt>
925 * insetfloat.C (DocBook): docbook export code.
927 2001-03-22 Juergen Vigna <jug@sad.it>
929 * insetminipage.C (getMaxWidth): added function to set the drawing
931 (Read): should work now!
933 * insetcollapsable.C (InsetCollapsable): default is now NOT collapsed
934 if we create a new inset.
936 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
938 * figinset.C (fl_set_preemptive_callback): moved definition outside
941 2001-03-20 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
943 * insetminipage.C (Read): prepare for reading of minipage arguments.
945 2001-03-18 Baruch Even <baruch@lyx.org>
947 * insetgraphics.C: Minor cleanups of the comments and code.
949 2001-03-17 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
951 * insetminipage.C (InsetMinipage): default to not collapsed
953 2001-03-16 Juergen Vigna <jug@sad.it>
955 * insetminipage.C (width): modified with to be a string
956 (widthp): added widthp (for % width) support functions.
957 (InsetButtonRelease): added to open the options dialog on button==3.
958 (~InsetMinipage): added to hide the dialog.
960 * insetminipage.h: added hideDialog signal
962 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
964 * insetminipage.h: change the order or Position to match
965 LyXParagraph::MINIPAGE_ALIGNMENT
967 * several files: remvoe CXX_WORKING_NAMESPACES
969 * ExternalTemplate.h: noncopyable is in namespace boost
970 * insetinclude.h: ditto
971 * insetcommand.h: ditto
973 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
975 * insettext.C (Edit): #else# -> #else.
976 * insettoc.C: added using directive.
978 2001-03-14 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
980 * insetminipage.h: add pos, inner_pos, width and height. + getters
981 and setters for all of them.
983 2001-03-13 Dekel Tsur <dekelts@tau.ac.il>
985 * insetinclude.C (Latex): Do not exit when the textclass of the
986 included file differ from the textclass of the parent file.
988 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
990 * ExternalTemplate.C (read): the reading of external insets now checks
991 for \end_inset and removes it form the input stream.
993 2001-03-09 John Levon <moz@compsoc.man.ac.uk>
995 * ExternalTemplate.h:
996 * ExternalTemplate.C:
998 * insetexternal.C: move form to GUII
1000 2001-03-12 John Levon <moz@compsoc.man.ac.uk>
1003 * insetinclude.C: add InsetIncludeParams, use
1004 composition rather than derivation of InsetCommand
1006 2001-03-12 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1008 * insettoc.C (Ascii): use the Buffer typedefs
1010 2001-03-11 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1012 * insettoc.C (Ascii): implement for dynamic number of lists
1014 * insetcaption.[Ch]: update from new_insets branch
1015 * insetfloat.[Ch]: ditto
1017 2001-03-06 John Levon <moz@compsoc.man.ac.uk>
1020 * figinset.C: use new File Dialog
1022 2001-03-06 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1024 * insettext.C: changes becuase of ParagraphParameters.
1026 2001-02-28 Baruch Even <baruch@ev-en.org>
1028 * insetgraphics.C (updateInset): Changed due to the change in
1031 2001-02-26 Juergen Vigna <jug@sad.it>
1033 * insettext.C (SetFont): Set Undo only if we have selection (as it is
1034 handled in LyXText).
1036 2001-02-23 Juergen Vigna <jug@sad.it>
1038 * insettext.C (draw): some small repainting fixes.
1039 (LocalDispatch): put the sel_cursor stuff after the insert of chars.
1041 * inset.C (LocalDispatch): changed action to be a kb_action (as it
1042 should be) and not an int.
1044 * insettabular.C (LocalDispatch): ditto
1046 * insettext.C (LocalDispatch): ditto
1048 * insetcollapsable.C (LocalDispatch): ditto
1050 2001-02-22 Juergen Vigna <jug@sad.it>
1052 * insettabular.C (LocalDispatch): return DISPATCHED if we cannot
1053 DISPATCH it and we don't have a locking_inset.
1055 2001-02-21 Baruch Even <baruch@ev-en.org>
1057 * insetgraphics.[Ch]: Changed to use boost::shared_ptr<GraphicsCacheItem>
1058 instead of GraphicsCacheItem *.
1060 2001-02-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1062 * insetcollapsable.C (getLyXText): add const qualifier to second
1065 2001-02-22 Juergen Vigna <jug@sad.it>
1067 * insettext.C (getLyXText): honor the recursive parameter.
1068 (SetUpdateStatus): set need_update to CURSOR_PAR if LyXText needs it.
1070 * inset.C (getLyXText): added bool recursive parameter.
1072 * insettext.C (SetUpdateStatus): or the update codes.
1073 (draw): check need_update with &.
1074 (InsetButtonPress): set no_selection to not put a selection when
1075 entering an inset and it is redraws in another spot.
1077 * insettext.h: made need_update an int.
1079 2001-02-20 Baruch Even <baruch@ev-en.org>
1082 * insetgraphisc.C: Changed to use better semantics when loading images
1083 for inline view. Now it doesn't keep the pixmap itself but it's holder.
1085 2001-02-19 Angus Leeming <a.leeming@ic.ac.uk>
1089 * insetgraphics.C: change name of "hide" signal to "hideDialog",
1090 consistent with InsetTabular.
1092 2001-02-19 Juergen Vigna <jug@sad.it>
1094 * insettabular.C (LocalDispatch): implement PAGE up/down.
1096 * insettext.C (draw): clear all of it on need_update==INIT too!
1098 * insettabular.C (InsetUnlock): always clear the selection.
1100 * inset.C (scroll): normally we only want to scroll the inset until
1101 it is fully visible so if top_x + offset > 20 then just set scx to 0.
1103 2001-02-14 Juergen Vigna <jug@sad.it>
1105 * insettabular.C (LocalDispatch): remove x_fix as it is not used.
1106 (resetPos): fixed scroll behaviour.
1107 (LocalDispatch): do an update if moving cursor inside a table cell
1108 requests a scroll of the tabular.
1110 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1112 * insettext.C (textWidth): constify local var
1114 * insettabular.C: small cleanup.
1116 * insetfoot.C (Latex): constify local var
1118 * insetcollapsable.C: small cleanup.
1120 * figinset.C (runqueue): use compare instead of strcmp
1122 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1125 * insetinfo.C: remove cruft
1127 2001-02-14 Juergen Vigna <jug@sad.it>
1129 * insettext.C (SetUpdateStatus): added a BufferView * parameter.
1131 2001-02-13 Juergen Vigna <jug@sad.it>
1133 * insettext.C (InsertInset): don't move left (is this right?)
1135 * insettabular.C (LocalDispatch): use of the no_draw variable
1137 * insettabular.h: new no_draw variable to stop redraw
1139 * insettabular.C (TabularFeatures): fixed update for alignment change
1141 2001-02-12 John Levon <moz@compsoc.man.ac.uk>
1145 * insetbib.C: move dialogs to frontends/
1147 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
1149 * insettext.C (LocalDispatch): Restore the language if the inset
1152 2001-02-09 Dekel Tsur <dekelts@tau.ac.il>
1154 * insettext.C (moveRightIntern): Update the selection cursor.
1155 (moveLeftIntern): Ditto.
1157 2001-02-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1159 * Makefile.am: remove BoundingBox.h
1161 * BoundingBox.h: removed
1163 2001-02-08 Dekel Tsur <dekelts@tau.ac.il>
1165 * insettext.C (LocalDispatch): Update selection cursor when moving
1166 cursor to the right.
1167 (moveRightIntern): Call to CursorRight with 2 argument eqaul to false.
1168 (moveLeftIntern): Ditto.
1170 2001-02-05 Baruch Even <baruch.even@writeme.com>
1172 * insetgraphics.C: Updated automatic image conversion, it now goes into
1173 temporary directory instead of with the image itself.
1175 2001-01-21 Baruch Even <baruch@ev-en.org>
1177 * insetgraphics.C: Added Docbook support. Added Automatic image conversion
1178 to EPS or PNG when needed (support bitmap graphics).
1180 2000-11-02 Baruch Even <baruch@ev-en.org>
1183 * insetgraphiscParams.C: Some cleaning up, changing from std::endl to '\n'
1184 and removal of commented out code.
1186 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1188 * insetbib.C (callback): Update citations if the key has changed.
1190 2001-01-31 Dekel Tsur <dekelts@tau.ac.il>
1192 * insetbib.C (InsetBibKey): Better computation of default key.
1193 (getScreenLabel) Show both the key and the label.
1194 (getBibLabel): New method.
1195 (callback): Force a redraw if the inset have been changed.
1197 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1199 * insetref.C (getType, getName): Move methods from
1200 src/frontends/xforms/FormRef.C.
1202 2001-01-12 Dekel Tsur <dekelts@tau.ac.il>
1204 * insettabular.C: Various improvements (use only one dummy position).
1206 2001-01-25 Dekel Tsur <dekelts@tau.ac.il>
1208 * insetbib.C (bibitemWidest): Use lyxfont::width instead of
1209 par->bibkey->width. This fixes the crashes when running without
1210 gui or when having included documents.
1212 2001-01-22 Dekel Tsur <dekelts@tau.ac.il>
1214 * insetcommand.C (getAsString, setFromString): Cleanup.
1216 2001-01-21 Dekel Tsur <dekelts@tau.ac.il>
1218 * insetref.C: Add the array InsetRef::types that contains
1219 information about all supported reference types.
1221 2001-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1223 * lyxinset.h: remove trailing comma in enum.
1225 2001-01-17 John Levon <moz@compsoc.man.ac.uk>
1227 * insettext.C: kill LyXBell.