]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ChangeLog
Forgot setting of status_ variable in InsetERT::edit functions.
[lyx.git] / src / insets / ChangeLog
index a7045c1a5dbb4a0614dfed1476e20e28ba7bc6de..7cea082331f94b0eed5e408c20b0f02cc45c019d 100644 (file)
@@ -1,3 +1,480 @@
+2001-08-14  Juergen Vigna  <jug@sad.it>
+
+       * insetert.C (edit): forgot to set status_ in edit calls!
+
+2001-08-14  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * insettext.C: Compilation fix
+
+2001-08-13  Juergen Vigna  <jug@sad.it>
+
+       * inset.C (getMaxWidth): fixed bug of returning the wrong max width.
+
+       * insetcollapsable.C (edit): don't recollapse an already open inset.
+
+       * insettext.C: fixed problem when reinitializing LyXText by not doing
+       it while lt is in use and post this to the next possible time in
+       getLyXText().
+       (searchForward): fixed not unlocking of inset if nothing found.
+       (edit): set cursor behind right (was set -1 pos).
+
+       * insetert.C (InsetERT): init status_ also in the 3rd constructor.
+
+       * insettabular.C (tabularFeatures): fixed fix where deleting the
+       last row didn't get the right actcell!
+
+2001-08-11  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * insettext.C (localDispatch): Change language only when the inset 
+       becomes empty.
+
+2001-08-10  Juergen Vigna  <jug@sad.it>
+
+       * insettabular.C (selectNextWordInt): use the front using edit call.
+
+       * insetcollapsable.C (getMaxWidth): rename inset to in to not have
+       the parameter overwrite class variable inset.
+
+       * inset.C (getMaxWidth): fix the setting of the minwidth = 10.
+
+       * insettext.C (saveLyXTextState): check for invalid cursor-par.
+       (reinitLyXText): remove wrong_cursor bool as not needed anymore!
+
+       * insettabular.C (calculate_dimensions_of_cells): let's try to call
+       update only for fixed with cells.
+       (resetPos): try to fix the lockup on spellchecking or s&r.
+
+       * insettext.C (update): comment this out as it seems first wrong
+       and second not needed anymore!
+       (some functions): call reinitLyXText() only in update() in all other
+       positions set only need_update = INIT.
+
+2001-08-08  Juergen Vigna  <jug@sad.it>
+
+       * insettabular.C (setPos): fixed wrong actrow < rows() check.
+
+       * insettext.C (insetUnlock): remove double-space on inset unlock.
+
+       * insetcollapsable.C (draw): fix returned x when label > inset-width.
+
+       * insettabular.C (update): fixed cursor positon after an insert.
+       (insetAllowed): do not allow to insert insets when not inside the
+       inset!
+       (draw): clear below an inset too as it could have changed height.
+
+       * inset.C (getMaxWidth): fixed width for inset in inset.
+
+       * insettext.C (update): small fix.
+
+       * insettabular.C (tabularFeatures): added selection support to
+       DELETE_ROW/DELETE_COLUMN.
+
+2001-08-07  Juergen Vigna  <jug@sad.it>
+
+       * inset.C (getMaxWidth): recoded and all it's implementations!
+
+       * insettext.C (init,setParagraph+constructors): cleanups
+       (reinitLyXText): fixed problem with wrong cursor when all paragraphs
+       are new and I want do a save/restore of the cursor position which is
+       not possible anymore.
+
+       * insetcollapsable.C (searchBackward): recollapse inset if not found.
+       (searchBackward): ditto
+       (selectNextWord): ditto
+
+2001-08-07  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * insetlatexaccent.C (checkContents): Add some debug messages
+
+2001-08-07  Juergen Vigna  <jug@sad.it>
+
+       * insetert.C (read): don't use InsetCollapsable::read as we don't
+       write the collapsed status anymore only the status.
+       (write): ditto.
+
+2001-08-06  Juergen Vigna  <jug@sad.it>
+
+       * insetert.C (set_latex_font): use LyXText's setFont directly.
+
+       * insettext.C (drawFrame): fixed one time more the right position
+       and size of the frame!
+
+       * insetert.C (~InsetERT): hide the dialog.
+       (showInsetDialog): added implementation
+       (open): ditto
+       (close): ditto
+       (status): new function for the status of the ERT inset (3-state).
+       (write): output also the status of the inset for readback!
+       (read): readback the status if available otherwise use collapsed_.
+
+       * insettext.C (edit): small fix of setting the position, which could
+       have gone < 0.
+
+       * insetert.C (width): implement this function for inlined viewing.
+       Added minimum width of 10 pixels!
+
+       * insetminipage.C (InsetMinipage): just change the colors a bit so
+       that border/background is a bit more visible. We will remove this
+       anyway for 1.2.0!
+
+       * insettext.C (textWidth): add a 'bool fordraw' parameter and use this
+       function for getting the important widths for drawing in various
+       functions and in LyXText.
+       (draw): fixed up a bit (frame drawing/clearing)
+
+2001-08-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * inset.C (convertFont): delete method. not used. 
+
+2001-08-03  Juergen Vigna  <jug@sad.it>
+
+       * insettext.C (setFont): don't call for a draw update if we're just
+       changing the cursor font!
+
+2001-08-02  Juergen Vigna  <jug@sad.it>
+
+       * insettext.C (draw): clear the background with the right color if
+       needed. Update myself if x&max-width changed and return without doing
+       anything. Let the update code handle the right stuff.
+
+       * insetminipage.C (getMaxWidth): fixed returning of maxwidth when
+       inside another inset.
+
+2001-08-01  Juergen Vigna  <jug@sad.it>
+
+       * insetcollapsable.C (update): added an in_update bool so we avoid
+       reentering.
+
+       * insettabular.C (update): added an in_update bool so we avoid
+       reentering.
+
+       * insettext.C (insetButtonPress): hopefully fixed setselection/clear
+       selection problem.
+       (update): added an in_update bool so we avoid reentering.
+
+       * insettabular.C (localDispatch): clear col/row selection when doing
+       something else inside an inset.
+
+       * insettext.C (getLyXText): fixed bug when requesting a recursive
+       insettext!
+
+2001-08-01  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * insetcite.C (latex): Paranoia check. Make sure that there is no
+       whitespace between the citation keys.
+
+2001-07-31  Juergen Vigna  <jug@sad.it>
+
+       * inset.h (nodraw): make the set function also const so that this
+       can be called from inside other const functions.
+
+       * insetcollapsable.h: removed inline variable and moved it over
+       to the only user InsetERT.
+
+       * insetcollapsable.C (insetButtonRelease): fixed uncollpasing the
+       inset opening immediately therein lying insets dialogs!
+
+       * insetert.C (localDispatch): set the font also if we don't have any
+       chars in this paragraph, otherwise if we delete all of em and start
+       writing we have the wrong font.
+       (inlined): added
+       (draw): implemented for inline support
+       (insetButtonRelease): ditto.
+
+2001-07-30  Juergen Vigna  <jug@sad.it>
+
+       * insettext.C (reinitLyXText): new function to reinit the insets
+       text after lot's of paragraph changes. Use this instead of the
+       cache.clear() which is VERY dangerous.
+
+       * insetfloat.C (insetButtonRelease): we should only show the dialog
+       if we press on the label otherwise we have problems to open mouse
+       button 3 dialogs inside this float (f.ex. of a tabular!)
+
+2001-07-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * insetert.C: change back to "ERT"
+
+       * insetfloat.C: handliign of RMB on label added.
+
+2001-07-30  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * insetgraphicsParams.C: #include LOstream.h here.
+
+       * insetfoot.h: remove InsetFoot:: qualifier.
+
+2001-07-29  Baruch Even  <baruch@lyx.org>
+
+       * ChangeLog: Hiding time travel evidence.
+
+       * insetgraphicsParams.h:
+       * insetgraphicsParams.C: 
+       * insetgraphics.C: Added horizontal scale option, it actually scales both
+       directions since it keeps image proportions.
+
+       * insetgraphics.C: Fixed EPS detection to be non-hacky.
+
+2001-07-29  Baruch Even  <baruch@lyx.org>
+
+       * insetgraphics.C (decideOutputImageFormat): when doing postscript output
+       convert PNG/GIF/JPG to EPS, assume the rest are EPS already. 
+
+       HACKY! Will need to add an EPS detection routine like old InsetFig does!
+
+2001-07-29  Baruch Even  <baruch@lyx.org>
+
+       * insetgraphics.C: Added EPSI to be an alias of EPS.
+
+2001-07-29  Baruch Even  <baruch@lyx.org>
+
+       * insetgraphics.C: Change GRAPHICS to Graphics.
+       Changed image conversion rules (documented at the beginning of file).
+
+2001-07-28  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * insetert.C (get_new_label): int -> Paragraph::size_type to get
+       std::min working.
+
+       * insetgraphics.C: added a using std::endl directive.
+
+       * insetcommand.h (getScreenLabel): removed pure virtual function,
+       as it duplicates that in InsetButton.
+
+       * insetbib.[Ch] (getScreenLabel):
+       * insetbutton.[Ch] (getScreenLabel):
+       * insetcite.[Ch] (getScreenLabel):
+       * insetert.[Ch] (getScreenLabel):
+       * insetexternal.[Ch] (getScreenLabel):
+       * insetfloatlist.[Ch] (getScreenLabel):
+       * insetinclude.[Ch] (getScreenLabel):
+       * insetindex.[Ch] (getScreenLabel):
+       * insetlabel.h (getScreenLabel):
+       * insetparent.[Ch] (getScreenLabel):
+       * insetref.[Ch] (getScreenLabel):
+       * insettoc.[Ch] (getScreenLabel):
+       * inseturl.[Ch] (getScreenLabel): passed a Buffer const * parameter.
+
+       * insetcite.C (getScreenLabel): use this Buffer parameter in creating
+       the label.
+       (validate): remove check on "cite" when using natbib.
+
+2001-07-26  Baruch Even  <baruch@lyx.org>
+
+       * insetgraphics.C (draw): changed casting to be in one place rather than 
+       all over the function.
+
+       * insetgraphics.h:
+       * insetgraphics.C (read): Added compatibility reads of InsetFig.
+       
+       * insetgraphicsParams.h:
+       * insetgraphicsParams.C: 
+       * insetgraphics.C: Removed inline option and changed rotateAngle to float.
+
+2001-07-28  Kayvan A. Sylvan  <kayvan@sylvan.com>
+
+       * insetfoot.C (validate): Added method to ensure that the
+       right bit of LaTeX is emitted.
+
+       * insetfoot.h: Added validate method to set the correct
+       LaTeXFeatures bit for the special footnote code.
+
+2001-07-26  Yves Bastide  <stid@libd-pc11.univ-bpclermont.fr>
+
+       * insetquotes.C (dispString): display the right ISO8859-{1,9,15}
+       quotes
+
+2001-07-27  Juergen Vigna  <jug@sad.it>
+
+       * inset.h: remove not used font variable in parameter.
+       removed checkInsertChar in UpdatableInset as it was equal to
+       the one in Inset and so not needed.
+
+       * insetert.C (checkInsertChar): implementation of function
+       checkInsertChar.
+
+       * inset.h: added new function checkInsertChar.
+
+       * various files: added c-tor and clone() function.
+       
+       * insetcollapsable.h: removed clone function here as this should
+       be only realized in REAL insets and added it to all collapsable
+       insets! (with the copy-constructor).
+
+2001-07-26  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * insetminipage.C (read): handle missing parameters more gracefully
+
+       * insetcollapsable.C (read): handel missing collapsed more gracefully
+
+2001-07-25  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * insetfloat.C (read): handle missing parameters.
+
+       * insettext.C (read): handle old latex end_inset
+
+       * insetert.C (setButtonLabel): new method
+       (init): use it, to set the dynamic label correctly
+       (read): use it
+
+       * Makefile.am (EXTRA_DIST): add files that is not part or the
+       binary here.
+
+       * insetcollapsable.h: remove autocollapsable (no users), remove
+       draw_label, change_label_with_text and companion code. Remove args
+       from some methods.
+       * insetert.[Ch]: move here instead (only user)
+
+       * inset.h: rename private variable name to name_, make
+       selectNextWord return a const string. make getInsetName return a
+       string const &. Remove bool from open, add close.
+
+       * Makefile.am: don't compile insetlist, insetsection
+       and insettheorem
+
+2001-07-24  Juergen Vigna  <jug@sad.it>
+
+       * insetert.C (InsetERT): put init after the paragraph initialization,
+       as otherwise we don't set the draw_label right.
+
+       * insetcollapsable.C (insetMotionNotify): fixed opening/closing the
+       insets with the mouse without having strange selections.
+       (edit): if the inset was collapsed and we open it here then put the
+       cursor always at the beginning of the inset.
+       (get_new_label): 15 instead of 10 max chars in the label.
+
+       * insetert.C (localDispatch): added and handle various stuff we
+       need to handle here (font setting on paragraph break, not permitted
+       layout setting, etc.).
+
+       * inset.h: added default copy-consturctor and implemented this in
+       various insets with the change to use this in the clone function!
+
+2001-07-24  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * insetminipage.C (InsetMinipage): set background color to red :)
+
+2001-07-23  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * insettext.C (insetUnlock): only set update to CLEAR_FRAME if
+       draw frame mode is LOCKED.
+
+       * insetcollapsable.C (edit): 
+       (insetButtonRelease): set update status to full when
+       opening inset.
+
+       * insettext.C (clearInset): 
+       * insettabular.C (draw): 
+       * insetlatexaccent.C (draw): honor background color.
+
+       * inset.h: new member background_color_, initialized to
+       LColor::inherit.
+
+       * inset.C (backgroundColor): new method.
+       (setBackgroundColor): new method.
+
+       * insetert.C (init): new method, called by the ctors.
+       (InsetERT): when inserting contents, make sure the font is
+       ALL_INHERIT.
+
+       * insetnote.C (InsetNote): when inserting content, remove trailing
+       newline
+       (init): set background color to LColor::note
+
+2001-07-24  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * insetcollapsable.C: adjust
+
+       * insetbutton.C: adjust
+
+2001-07-23  Juergen Vigna  <jug@sad.it>
+
+       * insetcollapsable.h: removed widthCollapsed variable, LyXFont
+       parameter on the _collapsed function (was not needed) and call
+       always width_collapsed().
+
+       * insetert.C (InsetERT): use setLabel with "true" flag.
+
+       * insetcollapsable.C: modified various functions to set the draw_label
+       string right in any condition.
+       (setLabel): added a bool parameter to set change_label_with_text.
+
+       * insetcollapsable.h: added draw_label string which is set to the
+       actual drawn label-string, while label is the original static label
+       of this collapsable inset. Added bool change_label_with_text to set
+       if we want that the label changes to the start of the InsetText's
+       text when collabpsed. You can set this flag with the setLabel funciton.
+       Added bool inlined for inlined collapsable insets, but not handled
+       yet.
+
+       * insetcollapsable.C (get_new_label): added should get a new label
+       from the InsetText beginning (for now 10 chars).
+
+2001-07-21  Yves Bastide  <stid@libd-pc11.univ-bpclermont.fr>
+
+       * insetquotes.C (latex): fix the handling of french double quotes
+       when not using the french pachage.
+
+2001-07-22  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * insetcollapsable.h: make WidthCollapsed mutable.
+
+       * insetindex.C (lyxCode): InsetIndex returns INDEX_CODE,
+       InsetPrintIndex returns INDEX_PRINT_CODE.
+
+       * inset.h: add INDEX_PRINT_CODE
+
+       * insetcollapsable.C (draw): init widthCollapsed if necessary
+       (width): ditto.
+
+       * insetquotes.C (width): use the local language, not the document
+       language.
+       (draw): ditto.
+       (dispString): add additional spacing for all french languages,
+       like fr_CA.
+       (validate): make it work when there is no default language
+
+       * insetspecialchar.h: rename kind to kind_; add kind() accessor.
+
+       * insetnote.C (init): new method, called by the constructors
+       (InsetNote): new constructor with contents passed as a string
+
+2001-07-21  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * insetfootlike.C (insetAllowed): disallow float in footlike.
+
+       * insetert.C (InsetERT): add collapsed argument to the constrctor
+       with contents.
+
+2001-07-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * insetindex.h: shut off warning
+
+2001-07-20  Juergen Vigna  <jug@sad.it>
+
+       * insetcollapsable.C (update): recoded hopefully works now!
+
+2001-07-19  Juergen Vigna  <jug@sad.it>
+
+       * most files: implemented the below new introduced function.
+       
+       * inset.h: added new edit(BufferView *, bool front) method to be able
+       to enter an inset from the front/back without knowing x/y positions
+       and baselines inside the inset. So I just can tell the inset activate
+       me and set the cursor on the front/back of yourself.
+
+2001-07-18  Juergen Vigna  <jug@sad.it>
+
+       * insetcollapsable.C (edit): fixed hopefully the y parameter which
+       is givven to the InsetText.
+       (insetButtonPress): ditto
+       (insetButtonRelease): ditto
+       (insetMotionNotify): ditto
+
+2001-07-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * insetspecialchar.[Ch]: change HYPHENATION_BREAK to
+       LIGATURE_BREAK, since the name is so stupid.
+
 2001-07-20  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
 2001-07-20  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * insetnote.[Ch]: (insertInset, insetAllowed): removed. Note now uses
@@ -5,8 +482,6 @@
        (write) output the name of the inset, not some silly hack for
        compatability with the old InsetInfo.
        
        (write) output the name of the inset, not some silly hack for
        compatability with the old InsetInfo.
        
-2001-07-20  Angus Leeming  <a.leeming@ic.ac.uk>
-
        * insetinfo.[Ch]: removed.
        * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
        now collapsable, but functionality is otherwise identical to InsetInfo.
        * insetinfo.[Ch]: removed.
        * insetnote.[Ch]: new files. InsetNote replaces InsetInfo. The inset is
        now collapsable, but functionality is otherwise identical to InsetInfo.
 
        * insettabular.C (selectNextWord): fixed spellchecking for the
        first cell of a tabular (wasn't entered!)
 
        * insettabular.C (selectNextWord): fixed spellchecking for the
        first cell of a tabular (wasn't entered!)
+       (getLyXText): changed to enter automatically insettext and return
+       it's LyXText if we're locked.
 
 2001-07-17  Juergen Vigna  <jug@sad.it>
 
 
 2001-07-17  Juergen Vigna  <jug@sad.it>