]> git.lyx.org Git - lyx.git/blobdiff - src/ChangeLog
Alfredo's second patch
[lyx.git] / src / ChangeLog
index e164c2a675edb1451c2bfa52cec7a1fb89d1b74f..8bd4347863dfea4a0711f809d92d629cc95f0254 100644 (file)
@@ -1,3 +1,645 @@
+2003-04-30  Alfredo Braunstein  <abraunst@libero.it>
+
+       * ParagraphList.h: define PitPosPair
+       * CutAndPaste.C (copySelection, pasteSelection): big rework, use 
+       ParagraphList, fix a bug on pasting multiple pars
+       * text2.C: change interface to C&P
+
+2003-04-30  André Pönitz  <poenitz@gmx.net>
+
+       * undo_func.C: revert part of yesterday's patch 2
+
+2003-04-30  John Levon  <levon@movementarian.org>
+
+       * LColor.C: s/tabular/table/
+
+2003-04-30  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text3.C (dispatch): do not convert iterator -> pointer
+       * undo_funcs.C (setCursorParUndo): ditto
+       * text_funcs.C (transposeChars): ditto
+
+       * text2.C (setLayout): ws changes only
+
+       * text.C (breakParagraph): do not convert iterator -> pointer
+       (insertChar): ditto
+       (acceptChange): ditto
+       (rejectChange): ditto
+       (changeCase): ditto
+       (Delete): ditto
+       (backspace): ditto
+
+       * BufferView.C (lockedInsetStoreUndo): do not convert iterator ->
+       pointer
+
+2003-04-29  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text3.C (gotoInset): YABG (yet another bad getChar)
+
+2003-04-29  André Pönitz  <poenitz@gmx.net>
+
+       * paragraph.h: make operator= private unimplemented as long as
+         it is unusable
+
+       * ParagraphList.C: whitespace
+
+       * paragraph.[Ch]:
+       * paragraph_pimpl.[Ch]:
+       * paragraph_funcs.C:
+       * CutAndPaste.C:
+       * undo_funcs.C: whitespace + Paragraph *  -> Paragraph (const) &
+
+       * text2.C:
+         undo_funcs.[Ch]: Paragraph * -> ParagraphList::iterator
+
+2003-04-29  Alfredo Braunstein  <abraunst@libero.it>
+
+       * CutAndPaste.[Ch] (cutSelection): big rework, some bugs fixed
+       * paragraph.[Ch] (erase):
+       * paragraph_pimpl.[Ch] (erase): change return type and value
+       * text2.C (cutSelection): some rework
+
+2003-04-28  John Levon  <levon@movementarian.org>
+
+       * bufferlist.C: changes for unsaved changes dialog
+
+2003-04-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * bufferlist.C (newFile): set language (messages_) for new
+       documents also.
+
+       * buffer.C (readFile): ws changes only.
+
+2003-04-28  André Pönitz  <poenitz@gmx.net>
+
+       * undo_funcs.C:
+       * lyxfunc.C:
+       * buffer.[Ch]:
+       * BufferView_pimpl.C:
+       * BufferView.C: getParFromID related ParagraphList::iterator changes
+
+2003-04-28  André Pönitz  <poenitz@gmx.net>
+
+       * tabular.[Ch]: part of Lars' Paragraph * -> ParagraphList::iterator
+         Changes
+
+2003-04-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * messages.C: remove one more localedir class variable.
+
+2003-04-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * messages.C (getLocaleDir): singleton generation function
+       (Pimpl): use it.
+       (Messages): add a default constructor.
+
+       * main.C (main): do not setup localedir here, do not call
+       gettext_init.
+
+       * gettext.C (_): use it.
+       (gettext_init): delete funciton
+
+2003-04-27  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * gettext.C (getLyXMessages): new singleton generating function.
+
+       * buffer.C (updateDocLang): adjust
+
+       * Makefile.am (messages.o): add target
+       (main.o): remove target
+
+2003-04-27  John Levon  <levon@movementarian.org>
+
+       * bufferlist.C:
+       * lyx_cb.C:
+       * lyxfunc.C:
+       * lyxvc.C: specify cancel button in Alert::prompt
+
+2003-04-26  John Levon  <levon@movementarian.org>
+
+       * text3.C:
+       * lyxfunc.C:
+       * lfuns.h:
+       * LyXAction.C: add LFUN_INSET_SETTINGS
+
+       * lyxfunc.C: don't enable tabular-feature when there's
+       just any locking inset
+
+2003-04-26  John Levon  <levon@movementarian.org>
+
+       * bufferlist.C: re-add Cancel to buffer close question
+
+       * lyxfunc.C: fix import UI a bit
+
+2003-04-25  John Levon  <levon@movementarian.org>
+
+       * gettext.C: remove the broken asserts for now
+
+2003-04-25  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * messages.C: make case where setlocale cannot comply work better.
+
+       * buffer.C (updateDocLang): new function
+       (changeLanguage): use it
+       (readFile): use it
+
+       * text2.C (setCounter): use B_ a bit.
+
+       * lyxlayout.C (Read): be sure to trim the label strings.
+
+       * messages.C (Messages): fix typo in comment
+
+       * buffer.C (readFile): set message_ after file is loaded.
+       (makeDocBookFile): remove double return
+       (changeLanguage): reset message_ upon language change.
+       (B_): new func, use this to get translated buffer strings.
+
+       * main.C: add myself and Jean Marc as authors.
+
+2003-04-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * messages.[hC]: pimplify Messages, and three different pimpls to be
+       used in different circumstances.
+
+       * gettext.[Ch]: change for use with new message code.
+
+2003-04-24 André Pönitz <poenitz@gmx.net>
+
+       * factory.C: support for eqref
+
+2003-04-23  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * messages.[Ch]: add missing char
+
+       * Makefile.am (lyx_SOURCES): add messages.[Ch]
+
+       * messages.[Ch]: New files
+
+2003-04-18  John Levon  <levon@movementarian.org>
+
+       * BufferView.h:
+       * BufferView.C:
+       * BufferView_pimpl.C:
+       * lfuns.h:
+       * LyXAction.C:
+       * lyxtext.h:
+       * text2.C: remove layout-copy/paste (bug 778)
+
+2003-04-16  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (redoParagraphs): eliminate good_prevrit, rewrite a loop
+
+2003-04-16  Alfredo Braunstein  <abraunst@libero.it>
+
+       * bufferlist.C (quitWriteBuffer): WriteAs and MenuWrite return true
+       if they succeed. Act accordingly.
+
+2003-04-16  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (setCharFont): adjust
+       (setCounter): adjust
+       (insertStringAsLines): adjust
+
+       * text.C (leftMargin): adjust
+       (setHeightOfRow): adjust
+
+       * rowpainter.C (paintFirst): adjust
+       (paintLast): adjust
+
+       * paragraph_funcs.C (depthHook): ParagraphList::iterators
+       (outerHook): ditto
+       (isFirstInSequence): ditto
+       (getEndLabel): ditto
+       (outerFont): adjust
+
+       * paragraph.C (getParLanguage): comment out some hard stuff.
+
+       * buffer.C (insertStringAsLines): take a ParagraphList as arg
+       (sgmlError): ditto
+       (simpleDocBookOnePar): ditto
+       (makeDocBookFile): use ParagraphList::iterator
+
+       * CutAndPaste.C (pasteSelection): adjust
+
+2003-04-16  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (getFont): adjust
+       (getLayoutFont): adjust
+       (getLabelFont): adjust
+
+       * paragraph_funcs.C (TeXOnePar): adjust
+
+       * buffer.C (simpleLinuxDocOnePar): adjust
+       (simpleDocBookOnePar): adjust
+
+       * CutAndPaste.C (pasteSelection): adjust
+
+       * BufferView.C (getEncoding): adjust
+
+       * paragraph_funcs.C (outerFont): prepare for a ParagraphList arg.
+
+2003-04-16  John Levon  <levon@movementarian.org>
+
+       * lyxfind.C: use parlist stuff for search/changes
+
+2003-04-16  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * undo_funcs.C (textHandleUndo): ajust (rather big adsjust this one)
+
+       * text2.C (deleteEmptyParagraphMechanism): adjust
+
+       * text2.[Ch] (ownerParagraph): delete func (both of them
+
+2003-04-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text_funcs.C (transposeChars): use ParagraphList::iterator here.
+
+2003-04-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * ParagraphList.C: prepare for NO_NEXT
+
+2003-04-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (getFont): adjust
+       (getLayoutFont): adjust
+       (getLabelFont): adjust
+
+       * paragraph.C (getFont): adjust
+       (getLabelFont): adjust
+       (getLayoutFont): adjust
+
+       * paragraph_funcs.[Ch] (realizeFont): remove unneeded arguments.
+
+2003-04-15  John Levon  <levon@movementarian.org>
+
+       From Angus Leeming
+
+       * lyx_main.C: handle Include in .ui files
+
+2003-04-15  John Levon  <levon@movementarian.org>
+
+       * MenuBackend.C: make the doc files length shorter
+
+       * ToolbarBackend.h:
+       * ToolbarBackend.C: handle toolbar placement flags,
+       Minibuffer
+
+2003-04-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * paragraph_pimpl.C (simpleTeXSpecialChars): take a outerfont arg,
+       adjust
+
+       * paragraph_funcs.C (TeXOnePar): adjust
+
+       * paragraph.C (getLabelFont): add outerfont arg, adjust
+       (getLayoutFont): ditto
+       (simpleTeXOnePar): adjust
+
+       * paragraph_pimpl.C (realizeFont): delete func
+
+2003-04-14  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (beforeFullRowInset): added a bad getchar check, removed
+       row argument, constify cur argument.
+
+2003-04-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (getFont): adjust
+       (getLayoutFont): adjust
+       (getLabelFont): adjust
+
+       * paragraph_funcs.C (TeXOnePar): adjust
+       (outerFont): new func...
+       (realizeFont): ...moved out from here, changed this to facilitate
+       transition
+
+       * paragraph.C (getFont): take outerfont as arg, adjust
+       (simpleTeXOnePar): add outerfont arg, adjust
+
+       * buffer.C (simpleLinuxDocOnePar): adjust
+       (simpleDocBookOnePar): adjust
+
+       * CutAndPaste.C (pasteSelection): adjust
+
+       * BufferView.C (getEncoding): adjust
+
+2003-04-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (setCharFont): adjust
+       (setCounter): adjust
+
+       * text.C (leftMargin): adjust
+       (setHeightOfRow): adjust
+
+       * rowpainter.C (paintFirst): adjust
+       (paintLast): adjust
+
+       * paragraph_pimpl.C (realizeFont): adjust
+
+       * paragraph.C (isFirstInSequence): move from here...
+       * paragraph_funcs.C (isFirstInSequence): ...to here
+
+       * paragraph.C (outerHook): move from here...
+       * paragraph_funcs.C (outerHook): ...to here
+
+       * paragraph.C (depthHook): move from here...
+       * paragraph_funcs.C (depthHook): ...to here
+
+       * paragraph.C (getEndLabel): move from here...
+       * paragraph_funcs.C (getEndLabel): ...to here
+
+       * text2.C (realizeFont): move from here...
+       * paragraph_funcs.C (realizeFont): ...to here
+
+2003-04-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text3.C (gotoNextInset): use separate tmp vars for par and pos.
+
+2003-04-14  Angus Leeming  <leeming@lyx.org>
+
+       * LColor.[Ch]: scrap LColor mathcursor.
+
+2003-04-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * lyxlex.[Ch] (text): delete function
+       * trans.C (Load): adjust
+       * paragraph_funcs.C (readParToken): adjust
+
+2003-04-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * lyxlex_pimpl.h: get rid of LEX_MAX_BUFF, change buff to be a
+       vector<char> instead of a char[].
+
+       * lyxlex_pimpl.C (getString): adjust
+       (next): adjust
+       (lex): use getString
+       (eatLine): adjust
+       (nextToken): adjust
+
+       * lyxlex.C (text): use pimpl_->getString()
+       (getBool): ditto
+       (findToken): ditto
+
+2003-04-14  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (getInset): temp vars for cursor.par() and cursor.pos()
+       (makeFontEntriesLayoutSpecific): temp var for par.size()
+       (setLayout): temp var for ownerParagraphs().end()
+       (fullRebreak): temp var for rows().end()
+       (selectionAsString): temp var for boost::next(startpit), realize
+       that the while really is a regular for loop.
+       (cursorEnd): temp vars for cursor.row(), lastPos ++, only call
+       setCursor in one place.
+       (setParagraph): temp vr for ownerParagraphs().end()
+       (updateCounters): make the while loop a for loop
+       (cutSelection): temp var for ownerParagraphs().end()
+       (updateInset): make the do {} while() a regular for loop
+       (getCursorX): use temp vars
+       (setCurrentFont): use temp vars
+       (getColumnNearX): use temp vars
+
+2003-04-13  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text.C (transformChar): use temp var for getChar
+       (computeBidiTables): use temp var for row->par()
+       (fill): move temp vars for row->par() and pit->layout() earlier in
+       the function.
+       (labelFill): use temp var for row->par()
+       (setHeightOfRow): do not allow rit to be RowList::end, get rid of
+       asc and desc, realize that pit never changes and that firstpit is
+       just a duplicate and not needed. Exchange rit->par() with pit in a
+       lot of places.
+       (breakAgain): use a temp var for boost::next(rit)
+       (breakAgainOneRow): ditto
+       (breakParagraph): use a temp var for rows().begin()
+       (prepareToPrint): move nlh into minimal scope, use temp var for rit->par()
+       (cursorRightOneWord): use temp var for cursor.par() and
+       cursor.pos(), remove usage of tmpcursor.
+       (cursorLeftOneWord): use temp var for cursor.par() and
+       cursor.pos() only set cur at end of function.
+
+2003-04-13  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text.C, text2.C: exchange all usage of Paragraph::next with
+       boost::next(ParagraphList::iterator)
+
+       * CutAndPaste.C (cutSelection): change 2. arg to a Paragraph*
+
+       * text2.C (cursorTop): simplify implementation
+       (cursorBottom): ditto
+       (setParagraph): use ParagraphList::iterator
+       (setCurrentFont): adjust
+       (getColumnNearX): adjust
+       (cursorRight): adjust
+       (cursorLeft): remove usage of Paragraph::previous
+       (cursorUpParagraph): ditto
+       (deleteEmptyParagraphMechanism): slight cleanup
+
+       * text.C (isBoundary): take a Paragraph const & instead of a
+       pointer as arg.
+       (addressBreakPoint): ditto
+       (leftMargin): remove usage of Paragraph::previous.
+       (setHeightOfRow): ditto
+       (cursorLeftOneWord): ditto
+       (selectNextWordToSpellcheck): ditto
+       (Delete): ditto
+       (backspace): ditto
+       (breakParagraph): remove one usage of Paragraph::next
+       (redoParagraph): ditto
+       (acceptChange): ditto
+       (insertChar): adjust
+       (rowBreakPoint): adjust
+
+       * bufferview_funcs.C (toggleAndShow): adjust
+
+2003-04-11  Alfredo Braunstein  <abraunst@libero.it>
+
+       * lyxrow.[Ch]: add a cached y position to a Row and Row::y()
+       methods to access it.
+       * lyxtext.h:
+       * text.C: Added updateRowPositions to compute all row positions.
+       Make top_y and getRowNearY() to use the cached y position
+
+2003-04-11  John Levon  <levon@movementarian.org>
+
+       * text.C (rowBreakPoint): reintroduce the labelEnd
+       checks, code copied from the row fill stuff. Deep voodoo.
+
+       * text.C (fill): add a comment and debugging for the
+       next poor soul.
+
+2003-04-11  John Levon  <levon@movementarian.org>
+
+       * text.C: make sure fullrow insets get wrapped to the next line,
+       even when they're in a manual label
+
+2003-04-10  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (insertParagraph): make it take ParagraphList::iterator
+       as arg.
+       (setLayout): make it return ParagraphList::iterator
+       (redoParagraphs): ditto
+       (setCounter): ditto
+       (checkParagraph): ditto
+
+       * text.C (getRow): make getrow take ParagraphList::iterator as arg
+
+       * text2.C: adjust several funcs.
+       (realizeFont): take a ParagraphList::iterator as arg.
+       (getLayoutFont): ditto
+       (getLabelFont): ditto
+       (setCharFont): ditto
+
+       * text.C: adjust several funcs.
+
+2003-04-09  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text.C (selectNextWordToSpellcheck): don't accidentally
+       skip insets
+
+2003-04-10  John Levon  <levon@movementarian.org>
+
+       * ToolbarBackend.C (getIcon): special handling for
+       LFUN_MATH_DELIM
+
+2003-04-09  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (cursorRight): a getChar assert fixed
+
+2003-04-09  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * text2.C (getFont): change to take a ParagraphList::iterator
+       instead of Paragraph*
+       Adjust several functions.
+
+       * text.C (transformChar): change to take a ParagraphList::iterator
+       instead of Paragraph*
+       (singleWidth): ditto
+       Adjust several functions.
+
+       * rowpainter.C: adjust several functions
+       * rowpainter.h:store a ParagraphList::iterator and not a
+       Paragraph&.
+
+
+2003-04-09  John Levon  <levon@movementarian.org>
+
+       * lyxfunc.C:
+       * lfuns.h:
+       * LyXAction.h:
+       * LyXAction.C: remove LFUN_APROPOS, LFUN_GETTIP,
+       and the "help" bits as well
+
+2003-04-09  John Levon  <levon@movementarian.org>
+
+       * ToolbarBackend.h:
+       * ToolbarBackend.C: allow multiple toolbars
+
+2003-04-09  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * undo_funcs.C (setCursorParUndo): adjust
+
+       * text_funcs.C (transposeChars): adjust
+
+       * text3.C (gotoNextInset): adjust
+       (dispatch): adjust
+
+       * text2.C (setLayout): adjust
+       (changeDepth): adjust
+       (setFont): adjust
+       (redoParagraphs): adjust
+       (selectionAsString): adjust
+       (setParagraph): adjust
+       (insertInset): adjust
+       (cutSelection): adjust
+       (copySelection): adjust
+       (pasteSelection): adjust
+       (insertStringAsLines): adjust
+       (updateInset): adjust
+       (setCursor): change to take a ParagraphList::iterator parameter
+       (setCursorIntern): change to take a ParagraphList::iterator parameter
+       (setCurrentFont): adjust
+       (cursorLeft): adjust
+       (cursorRight): adjust
+       (deleteEmptyParagraphMechanism): adjust
+
+       * text.C (breakParagraph): adjust
+       (insertChar): adjust
+       (acceptChange): adjust
+       (rejectChange): adjust
+       (selectNextWordToSpellcheck): adjust
+       (changeCase): adjust
+       (Delete): adjust
+       (backspace): adjust
+
+       * lyxfind.C (SearchForward): adjust
+       (SearchBackward): adjust
+       (nextChange): adjust
+
+       * lyxcursor.C (par): adjust
+
+       * lyxcursor.h: store a ParagraphList::iterator instead of a
+       Paragraph*
+
+       * lyx_cb.C (getPossibleLabel): adjust
+
+       * bufferview_funcs.C (toggleAndShow): adjust
+
+       * BufferView_pimpl.C (resizeCurrentBuffer): adjust
+       (dispatch): adjust
+
+       * BufferView.C (removeAutoInsets): adjust
+       (lockedInsetStoreUndo): adjust
+
+2003-04-09  John Levon  <levon@movementarian.org>
+
+       * ToolbarBackend.C: try icon without argument
+       if with argument fails
+
+2003-04-08  John Levon  <levon@movementarian.org>
+
+       * ToolbarBackend.h:
+       * ToolbarBackend.C: add getIcon(), handle tooltip,
+       and change from "Icon" to "Item".
+
+2003-04-08  Alfredo Braunstein  <abraunst@libero.it>
+
+       * BufferView.C (lockInset): another bad getchar crunched
+
+2003-04-08  Alfredo Braunstein  <abraunst@libero.it>
+
+       * text2.C (changeDepth): do not setUndo on test_only (make undo work
+       again)
+
+2003-04-05  Alfredo Braunstein  <abraunst@libero.it>
+
+       * lyxfind.C (searchForward, searchBackwards): bug 782
+
+2003-04-07  John Levon  <levon@movementarian.org>
+
+       * paragraph.C: remove dead comment
+
+       * text.C: remove troublesome depth-fiddling code
+       in leftMargin() and rightMargin() (bug 1017)
+
+       * text.C: fix breaking of rows in nested lists
+       (bug 1004)
+
+       * text2.C (updateCounters): fix up depth values
+       (bug 1013)
+
+2003-04-07  John Levon  <levon@movementarian.org>
+
+       * BufferView_pimpl.C: clear message when doc finishes resizing,
+       and after a mouse event
+
+       * lyxfunc.C: clear message after exiting inset
+
+2003-04-07  John Levon  <levon@movementarian.org>
+
+       * bufferview_funcs.C: show math status not outside
+       status in the statusbar
+
 2003-04-07  John Levon  <levon@movementarian.org>
 
        * lyxfunc.C: note status changed after a depth change
 
        * lyxrow.h: store a ParagraphList::iterator instead of a
        Paragraph* and adjust other class functions to suit.
-       
+
        * lyxrow_funcs.C, text.C, text2.C, text3.C: adjust because of the
        above.
-       
+
 2003-04-01  Alfredo Braunstein  <abraunst@libero.it>
 
        * text2.C (setCursor): do not anchor to cursor row for the time being