]> git.lyx.org Git - lyx.git/blobdiff - ChangeLog
Various fixes and added some functionallity to insettabular.
[lyx.git] / ChangeLog
index 9eaa9fa1d67c98276205c02d0bdc807d5a1845c6..882d4812e69be8c20c19cb4fef0b5faeca2e0b3b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,502 @@
+2000-05-22  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (LocalDispatch): added some more cursor
+       movement support (Up/Down/Tab/Shift-Tab).
+       (LocalDispatch): added also preliminari cursor-selection.
+
+       * src/LyXAction.C (init): added SHIFT-Tab as tab-backward.
+
+       * src/paragraph.C (PasteParagraph): Hopefully now right!
+
+2000-05-22  Garst R. Reese  <reese@isn.net>
+
+       * layouts/hollywood.layout, broadway.layout : move Dialogue to top
+        of list, change all references to Environment to Command
+       * tex/hollywood.cls : rewrite environments as commands, add 
+       \uppercase to interiorshot and exteriorshot to force uppecase.
+       * tex/broadway.cls : rewrite environments as commands. Tweak
+       whitespace.
+
+2000-05-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/menus.C (Add_to_toc_menu): fix the code which limits the
+       size of items: use a constant intead of the hardcoded 40, and more
+       importantly do not remove the %m and %x tags added at the end.
+       (Add_to_refs_menu): use vector::size_type instead of
+       unsigned int as basic types for the variables. _Please_ do not
+       assume that size_t is equal to unsigned int. On an alpha, this is
+       unsigned long, which is _not_ the same.
+
+       * src/language.C (initL): remove language "hungarian", since it
+       seems that "magyar" is better.
+
+2000-05-22  Juergen Vigna  <jug@sad.it>
+
+       * src/CutAndPaste.C: hopefully fixed memory the problem defenitively!
+
+       * src/tabular.C (OldFormatRead): added \end_deeper to the end LyXTable
+       end markers!
+
+       * src/paragraph.C (PasteParagraph): Possibly a memory leak as
+       next was deleted but not set to 0.
+
+2000-05-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/language.C (initL): change the initialization of languages
+       so that compiles goes _fast_.
+
+       * src/menus.C (Add_to_toc_menu): limit the line length in TOC to
+       40 chars.
+
+       * src/lyxfunc.C (processKeyEvent): initalize keysym_return to 0.
+
+2000-05-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * release 1.1.5pre3
+
+2000-05-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/WorkArea.C (request_clipboard_cb): give "C" linkage.
+
+2000-05-19  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * src/commandtags.h
+       * src/LyXAction.C
+       * src/lyxfunc.C (Dispatch): Added LFUN_LOFVIEW, LFUN_LOTVIEW
+       and LFUN_LOAVIEW
+       
+       * src/insets/insetlo*.[Ch]: Made editable
+
+2000-05-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/text2.C (SetSelection): call BufferView::stuffClipboard with
+       the current selection.
+
+       * src/BufferView_pimpl.C (stuffClipboard): new method
+
+       * src/BufferView.C (stuffClipboard): new method
+
+       * src/paragraph.C (String): new method
+
+       * src/LColor.C (getFromLyXName): return LColor::inherit instead of
+       LColor::ignore when lyxname is not found.
+
+       * src/BufferView.C (pasteSelection): new method
+
+       * src/BufferView_pimpl.C (pasteSelection): new method
+
+       * src/lyxfunc.C (Dispatch): use the new clipboard functions.
+
+       * src/WorkArea.C (request_clipboard_cb): new static function
+       (getClipboard): new method
+       (putClipboard): new method
+
+2000-05-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * LyX 1.1.5pre2 released
+
+2000-05-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/vspace.C (operator=): removed
+       (operator=): removed
+
+       * src/lyx_gui_misc.C (askForText): manually set the type in make_pair
+
+       * src/layout.C (NumberOfClass): manually set the type in make_pair
+       (NumberOfLayout): ditto
+
+       * src/language.C: use the Language constructor for ignore_lang
+
+       * src/language.h: add constructors to struct Language
+
+       * src/BufferView_pimpl.C (scrollDown): change to pair<float, float>
+
+       * src/text2.C (SetCursorIntern): comment out #warning
+
+       * src/mathed/math_symbols.C (pixmapFromBitmapData): add const_cast
+
+       * src/mathed/math_iter.h: initialize sx and sw to 0
+
+2000-05-10  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * forms/lyx.fd: Redesign of form_ref
+
+       * src/LaTeXFeatures.[Ch]
+       * src/buffer.C
+       * src/lyx_cb.C
+       * src/menus.C   
+       * src/insets/insetref.[Ch]: Added support for varioref and prettyref.
+
+       * src/buffer.h
+       * src/lyxparagraph.h: Added new classes: LyXParagraph::inset_iterator
+       and Buffer::inset_iterator.
+
+       * src/menus.C: Added new menus: TOC and Refs.
+
+       * src/insets/insetlabel.C (Edit) Made InsetLabel editable.
+
+       * src/buffer.C (getTocList): New method.
+
+       * src/BufferView2.C (ChangeRefs): New method.
+
+       * src/buffer.C (getLabelList): New method. It replaces the old
+       getReferenceList. The return type is vector<string> instead of 
+       string.
+
+       * src/insets/insetinclude.C (getLabelList): New method. Replaces
+       the old getLabel() and GetNumberOfLabels() methods.
+       * src/insets/insetlabel.C (getLabelList): ditto
+       * src/mathed/formula.C (getLabelList): ditto
+       
+       * src/paragraph.C (String): New method.
+
+       * src/lyx_cb.C (TocSelectCB,TocUpdateCB): Rewritten.
+       Uses the new getTocList() method. 
+       TocSelectCB() now calls to TocUpdateCB() before moving the cursor, 
+       which automatically updates the contents of the browser.
+       (RefUpdateCB): Use the new getLabelList method.
+
+       * src/lyxfunc.C (Dispatch): Give an error if the label is not found.
+       
+       * src/BufferView2.C (gotoLabel) Use the new getLabelList method.
+
+       * src/spellchecker.C: Added using std::reverse;
+
+2000-05-19  Juergen Vigna  <jug@sad.it>
+
+       * src/tabular.C (Validate): fixed/added validating of LaTeXFeatures.
+
+       * src/insets/insettext.C (computeTextRows): small fix for display of
+       1 character after a newline.
+
+       * src/tabular.C (OldFormatRead): fixed the OldFormatRead with regard
+       to cont-rows!
+
+2000-05-18  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (TabularFeatures): fixed update of display
+       when changing width of column.
+
+       * src/tabular.C (set_row_column_number_info): setting of
+       autobreak rows if necessary.
+
+2000-05-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/lyxvc.C (toggleReadOnly): use VCS::status() instead of stat()
+
+       * src/vc-backend.*: renamed stat() to status() and vcstat to
+       vcstatus. It happens that Tru64 Unix 5.0 has stat() as a macro and
+       compilation broke. The new name seems more relevant, anyway.
+
+2000-05-17  Juergen Vigna  <jug@sad.it>
+
+       * src/BufferView2.C (removeAutoInsets): fixed use of AutoDeleteInsets
+       which was wrong if the removing caused removing of rows!
+
+       * src/lyxlex_pimpl.C (next, nextToken): insert support for pushToken.
+       (pushToken): new function.
+
+       * src/text2.C (CutSelection): fix problem discovered with purify
+
+2000-05-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/debug.C (showTags): enlarge the first column, now that we
+       have 6-digits debug codes.
+
+       * lib/layouts/hollywood.layout:
+       * lib/tex/hollywood.cls:        
+       * lib/tex/brodway.cls: 
+       * lib/layouts/brodway.layout: more commands and fewer
+       environments. Preambles moved in the .cls files. Broadway now has 
+       more options on scene numbering and less whitespace (from Garst)
+
+       * src/insets/insetbib.C (getKeys): make sure that we are in the
+       document directory, in case the bib file is there.
+
+       * src/insets/insetbib.C (Latex): revert bogus change.
+
+2000-05-16  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (UnlockInsetInInset): Changes to update
+       the TabularLayout on cursor move.
+
+       * src/TabularLayout.C (TabularOptionsCB): Wrong call to MenuLayoutTable
+
+       * src/insets/insettabular.C (Clone): Clone the LyXTabular for
+       undo-handling.
+       (getCellXPos): 
+       (draw): fixed cursor position and drawing so that the cursor is
+       visible when before the tabular-inset.
+
+       * src/insets/insettext.C (init): drawLockedFrame was not initialized
+       when creating from old insettext.
+
+       * src/tabular.C (Clone): added Clone of text-inset for undo-handling.
+
+2000-05-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * lib/tex/hollywood.cls: better algorithm for page breaks (Garst)
+       * lib/tex/brodway.cls: ditto 
+
+       * lib/layouts/brodway.layout: change alignment of parenthical
+       layout (Garst)
+       
+2000-05-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * config/lyxinclude.m4 (LYX_PATH_XFORMS): make it clear that only
+       versions 0.88 and 0.89 are supported.
+
+2000-05-15  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insetcollapsable.C (draw): enhancements in drawing and
+       width calculating.
+
+       * src/insets/insettext.C (computeTextRows): redone completely this
+       function in a much cleaner way, because of problems when having a
+       fixed maxWidth.
+       (draw): added a frame border when the inset is locked.
+       (SetDrawLockedFrame): this sets if we draw the border or not.
+       (SetFrameColor): this sets the frame color (default=insetframe).
+
+       * src/insets/lyxinset.h: added x() and y() functions which return
+       the top_x and top_baseline values. Added a GetFirstLockingInsetOfType
+       function which is needed to see if we have a locking inset of some
+       type in this inset (needed for now in insettabular).
+
+       * src/vspace.C (inPixels): the same function also without a BufferView
+       parameter as so it is easier to use it in some ocasions.
+
+       * src/lyxfunc.C: changed all places where insertInset was used so
+       that now if it couldn't be inserted it is deleted!
+
+       * src/TabularLayout.C: 
+       * src/TableLayout.C: added support for new tabular-inset!
+
+       * src/BufferView2.C (insertInset): this now returns a bool if the
+       inset was really inserted!!!
+
+       * src/tabular.C (GetLastCellInRow): 
+       (GetFirstCellInRow): new helper functions.
+       (Latex): implemented for new tabular class.
+       (TeXCellPostamble): 
+       (TeXCellPreamble): 
+       (TeXBottomHLine): 
+       (TeXTopHLine): new Latex() helper functions.
+
+2000-05-12  Juergen Vigna  <jug@sad.it>
+
+       * src/mathed/formulamacro.C (Read): 
+       * src/mathed/formula.C (Read): read also the \end_inset here!
+
+2000-05-10  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * src/mathed/math_write.C (MathParInset::Write): Fixed a bug:
+       crush when saving formulae with unbalanced parenthesis.
+
+20000-05-11  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * src/layout.C: Add new keyword "endlabelstring" to layout file
+
+       * src/text.C (GetVisibleRow): Draw endlabel string.
+
+       * lib/layouts/broadway.layout
+       * lib/layouts/hollywood.layout: Added endlabel for the
+       Parenthetical layout.
+
+       * lib/layouts/heb-article.layout: Do not use slanted font shape
+       for Theorem like environments.
+
+       * src/buffer.C (makeLaTeXFile): Always add "american" to 
+       the UsedLanguages list if document language is RTL. 
+
+2000-05-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * add addendum to README.OS2 and small patch (from SMiyata)
+
+2000-05-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * many files: correct the calls to ChangeExtension().
+
+       * src/support/filetools.C (ChangeExtension): remove the no_path
+       argument, which does not belong there. Use OnlyFileName() instead.
+
+       * src/insets/insetbib.C (Latex): use absolute paths for bibtex
+       files when LaTeXing a non-nice latex file.
+
+       * src/lyxlookup.C (isDeadEvent): use a switch statement instead of
+       a chain of "if". Return false when deadkeys are not handled.
+       
+       * src/lyx_main.C (LyX): adapted the code for default bindings.
+
+       * src/kbmap.C (defaultKeyBindings): new method. Performs the default
+       bindings for basic functionality (except deadkeys).
+       (deadKeyBindings): new method. Performs the bindings of deadkeys.
+
+       * src/lyxrc.C (defaultKeyBindings): moved to lyx_main.C 
+       several methods: handle override_x_deadkeys.
+
+       * src/lyxrc.h: remove the "bindings" map, which did not make much
+       sense anyway. New variable override_x_deadkeys, defaulting to "true".
+       
+2000-05-09  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/lyxfont.C (stateText): use a saner method to determine
+       whether the font is "default". Seems to fix the crash with DEC
+       cxx. 
+
+       * src/Bullet.[Ch] (Bullet): remove const on parameters.
+
+2000-05-08  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (InsetButtonRelease): Now opens the
+       TabularLayoutMenu with mouse-button-3
+       (LocalDispatch): added LFUN_MENU_LAYOUT to open the Tabular-Layout.
+
+       * src/TabularLayout.C: added this file for having a Layout for
+       tabular-insets.
+
+2000-05-05  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (UpdateLocal): resetCursorPos when
+       recalculating inset-widths.
+       (TabularFeatures): activated this function so that I can change
+       tabular-features via menu.
+
+       * src/menus.C (ShowEditMenu): inserted support for insettabular so
+       that I can test some functions with the Table menu.
+
+2000-05-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/lyxfont.C (stateText): guard against stupid c++libs.
+
+       * src/tabular.C: add using std::vector
+       some whitespace changes, + removed som autogenerated code.
+
+       * src/buffer.C (parseSingleLyXformat2Token): stupid bug.
+
+2000-05-05  Juergen Vigna  <jug@sad.it>
+
+       * src/tabular.[Ch]: now using std:vector instead of arrays for all the
+       row, columns and cellstructures.
+
+2000-05-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * lib/lyxrc.example: remove obsolete entries.
+
+       * src/buffer.C (parseSingleLyXformat2Token): patch from dekel, fix
+       reading of protected_separator for free_spacing.
+
+2000-05-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/text.C (draw): do not display an exclamation mark in the
+       margin for margin notes. This is confusing, ugly and
+       uninformative. 
+
+       * src/LaTeXFeatures.C (getPackages): load amssymb also when 'Use
+       AMS math' is checked.
+
+       * src/buffer.C (makeLaTeXFile): do not depend on the textclass
+       name to see whether including the amsmath package is needed.
+
+2000-05-05  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * src/paragraph.C (validate): Compute UsedLanguages correctly
+       (don't insert the american language if it doesn't appear in the
+       document)
+
+       * src/paragraph.C (TeXOnePar,SimpleTeXOnePar,SimpleTeXSpecialChars)
+       The argument of \thanks{} command is considered moving argument
+
+       * src/paragraph.C (SimpleTeXOnePar): Put \protect before \\ if in
+       moving argument.
+
+2000-05-04  Dekel Tsur  <dekel@math.tau.ac.il>
+
+       * src/text.C (GetVisibleRow): Improved drawing of vertical lines
+       for appendix/minipage/depth. The lines can be now both in the footnote 
+       frame, and outside the frame.
+
+       * src/text.C (SingleWidth,draw): Correct rendering of Hebrew vowels
+       points ("nikud")
+
+2000-05-05  Juergen Vigna  <jug@sad.it>
+
+       * src/table.[Ch]: removed the inset and buffer stuff as this is now
+       neede only in tabular.[Ch].
+
+2000-05-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/insets/insetspecialchar.C (Read): allow command == '~' for
+       PROTECTED_SEPARATOR 
+       (Write): write '~' for PROTECTED_SEPARATOR
+
+2000-05-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/lyxparagraph.h: add a friend struct matchIT after the struct
+       InsetTable.
+
+       * src/mathed/formula.C (drawStr): rename size to siz.
+
+       * src/insets/figinset.C (RestoreForm): rename pflags to piflags,
+       possibly fix a bug by not changing the pflags = flags to piflags =
+       flags.
+
+2000-05-05  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insetbib.C: moved using directive
+
+       * src/ImportNoweb.C: small fix for being able to compile (missing
+       include cstdlib)
+
+2000-05-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * config/lyxinclude.m4 (LYX_CXX_STL_STRING): change the test not
+       to use clear, since we don't depend on this in the code. Add test
+       for string::compare
+
+2000-05-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * (various *.C files): add using std::foo directives to please dec
+       cxx.
+
+       * replace calls to string::clear() to string::erase() (Angus)
+
+       * src/cheaders/cmath: modified to provide std::abs.
+
+2000-05-04  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettext.C: Prepared all for inserting of multiple
+       paragraphs. Still display stuff to do (alignment and other things),
+       but I would like to use LyXText to do this when we cleaned out the
+       table-support stuff.
+
+       * src/insets/insettabular.C: Changed lot of stuff and added lots
+       of functionality still a lot to do.
+
+       * src/tabular.C: Various functions changed name and moved to be
+       const functions. Added new Read and Write functions and changed
+       lots of things so it works good with tabular-insets (also removed
+       some stuff which is not needed anymore * hacks *).
+
+       * src/lyxcursor.h: added operators == and != which just look if
+       par and pos are (not) equal.
+
+       * src/buffer.C (latexParagraphs): inserted this function to latex
+       all paragraphs form par to endpar as then I can use this too for
+       text-insets.
+
+       * src/text2.C (SetLayout): Changed this to use a cursor this is needed
+       so that I can call this to from text insets with their own cursor.
+
+       * src/buffer.C (makeLaTeXFile): added the output of one \n after the
+       output off all paragraphs (because of the fix below)!
+
+       * src/paragraph.C (TeXOnePar): removed output of \n when we are in
+       the very last paragraph (this could be also the last paragraph of an
+       inset!)
+
+       * src/texrow.h: added rows() call which returns the count-variable.
+
 2000-05-03  Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
 
        * lib/lyxrc.example: fix examples for exporting SGML to HTML.