]> git.lyx.org Git - lyx.git/blobdiff - src/ChangeLog
Cleanup, sorry ;-)
[lyx.git] / src / ChangeLog
index 6a90aa38161046da1209048ab91dc396c3405a68..7ada4a7a012543e391c1e2ac0d0fdab7d0824601 100644 (file)
+2005-03-08  Martin Vermeer  <martin.vermeer@hut.fi>
+
+       * text2.C: fix for cursor up/down stuck in math [bug 1792]
+
+2005-03-07  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * text2.C (cursorUp): get rid of a crash
+       * text.C (x2pos): add an assert
+
+2005-03-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxfunc.C (getStatus): fix warning when assertions are disabled
+
+       * text3.C: 
+       * lyxfunc.C: 
+       * dociterator.C: include <boost/current_function.hpp>, which is
+       needed when assertions are disabled.
+
+2005-03-05  Johnathan Burchill  <jkerrb@users.sourceforge.net> 
+
+       * text2.C: fix for stuck cursor when traversing two 
+       consecutive spaces. [bug 1255] (pars_[old.pit()].setChange) 
+
+2005-02-25  Andreas Vox  <avox@arcor.de>
+
+       * output_docbook.C (makeParagraph): suppress trailing newline
+       after a run of paragraphs
+
+2005-02-28  Johnathan Burchill  <jkerrb@users.sourceforge.net>
+
+       * paragraph.C: fix for confused change tracker when pasting
+       text that begins with a lineseparator. [bug 1827]
+       (setChange(0, Change::INSERTED);)
+
+       * paragraph_funcs.C: fix for lost changes on triple-paste
+       in change tracking mode [bug 1827] (par.setChange()).
+
+2005-02-24  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * text2.C (updateCounters, setCounter, expandLabel): move to
+       buffer_funcs.
+
+       * buffer_funcs.C (updateCounters): turn into a free standing
+       function and add a buffer parameter. Remove dead code for tracking
+       labelstring change.
+       (setCounter): change into a free-standing function which gets a
+       dociterator as argument. Use this iterator to fix captions in a
+       simple way. When no float is found above the caption, use the
+       labelstring of the caption layout as default.
+
+       * text.C (breakParagraph, backspace): 
+       * text2.C (init, setLayout, changeDepth):
+       * text3.C (dispatch): 
+       * CutAndPaste.C (cutSelection, pasteSelection): pass a buffer to
+       updateCounters.
+
+       * dociterator.C (forwardPar): make it much faster by calling
+       forwardPos() only when really necessary.
+
+       * output_docbook.C (makeCommand): adapt to expandLabel move.
+
+       * cursor.C: remove unused variable
+
+2005-02-24  Johnathan Burchill  <jkerrb@users.sourceforge.net>
+
+       * paragraph_funcs.C: fix crash when pasting insets in change 
+       tracking mode [bug 1277] (honour change type in moveItem).
+
+2005-02-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * LaTeX.C (scanLogFile): recognize pdfTeX warnings
+
+2005-02-14  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView.C (setCursor): change to use a DocIterator.
+       (gotoLabel): use BufferView::setCursor (other part of bug 781).
+       (putSelectionAt): adapt to BufferView::setCursor change.
+
+       * bufferview_funcs.C (gotoNextInset, gotoInset): new functions,
+       moved here from LyXText and rewritten to use proper cursor
+       methods. Fixes bug 1787, 616 and 835.
+
+       * BufferView_pimpl.C (restorePosition): set the cursor correctly
+       when inside an inset (part of bug 781).
+       (dispatch): adapt to change of BufferView::setCursor.
+       (getStatus, dispatch): handle LFUN_GOTOERROR,
+       LFUN_GOTONOTE and LFUN_REFERENCE_GOTO.
+
+       * text3.C (getStatus, dispatch): do not handle LFUN_GOTOERROR,
+       LFUN_GOTONOTE and LFUN_REFERENCE_GOTO.
+       * text3.C (gotoNextInset, gotoInset): removed.
+
+2005-02-20  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyx_main.C (queryUserLyXDir): fix test for rerunning configure
+
+2005-02-15  Angus Leeming  <leeming@lyx.org>
+
+       * rowpainter.C (paintText): Ensure that "paragraphs().size() - 1"
+       can be used meaningfully in a comparison.
+
+2005-02-13  André Pönitz  <poenitz@gmx.net>
+
+       * bufferview_funcs.C (coordOffset): improve cursor drawing
+
+2005-02-13  André Pönitz  <poenitz@gmx.net>
+
+       * Cursor.[Ch] (fixIfBroken): new method, try to fix a broken cursor
+       * Cursor.C (dispatch): use fixIfBroken
+       * lyxfunc.C (getStatus): use fixIfBroken
+
+2005-02-15  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_main.C (error_handler):
+       * lyxfunc.C:
+       * lyxrc.C (setDefaults):
+       s/GetEnv/getEnv/.
+       #include "environment.h".
+
+       * lyxsocket.C (LyXServerSocket): s/putenv/setEnv/.
+
+2005-02-15  Angus Leeming  <leeming@lyx.org>
+
+       * lyxserver.C (startPipe): squash MSVC warning "local variable
+       'fd' used without having been initialized".
+
+2005-02-14  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * BufferView_pimpl.C: revert accidental commit.
+
+2005-02-14  André Pönitz  <poenitz@gmx.net>
+
+       * dociterator.[Ch]: new member forwardPosNoDescent(),
+       which doesn't enter nested insets.
+       * text2.C (setFont): use forwardPosNoDescent() instead
+       of ForwardPos() (fixes crash on font change).
+
+2005-02-13  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_main.C (init): invoke prependEnvPath to adjust the PATH
+       only if lyxrc.path_prefix is not empty.
+
+2005-02-12  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * bufferparams.C (readGraphicsDriver): prevent crash
+
+2005-02-10  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text2.C (setCounter): check for inInset() == 0
+
+2005-02-09  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView_pimpl.C (dispatch): handle LFUN_GOTO_PARAGRAPH here,
+       but use update() to get correct screen display; use convert
+       instead of istringstream. 
+       (getStatus): handle LFUN_GOTO_PARAGRAPH 
+
+       * lyxfunc.C (dispatch, getStatus): do not handle
+       LFUN_GOTO_PARAGRAPH here.
+
+2005-02-08  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * text3.C (dispatch): size() -> depth()
+
+       * text2.C: remove some debug output
+
+       * paragraph.C: ws changes only
+
+       * lyxfunc.C (getStatus): size() -> depth()
+
+       * dociterator.h (clear, push_back, pop_back, internalData,
+       operator[], resize, empty): new functions
+       Make StableDocIterator and operator== be friends. Don't inherit
+       from std::vector use a privat class variable slices_ instead.
+       Modify to fit.
+
+       * dociterator.C: update because of not inheriting from std::vector
+       anymore. Call explictly to slices_ instead. Use depth() instead of
+       size() and top() instead of back()
+
+       * cursor.C: chagne size() -> depth and back() -> top(). Also
+       remove some direct operator[](i) calls in favour of foo[i]
+       (getFont): remove some dead code
+
+       * bufferview_funcs.C (coordOffset): size() -> depth()
+
+       * buffer.C: ws changes only
+
+       * CutAndPaste.C (eraseSelection): back() -> top()
+
+       * BufferView_pimpl.C (selectionRequested): back() -> top()
+
+       * BufferView.C (setCursor): size() -> depth()
+
+2005-02-08  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * text3.C (cursorPrevious): return true if depm changed something
+       (cursorNext): ditto
+       (dispatch): rename sl to oldTopSlice, remove moving use the new
+       NoUpdate func attrib instead. Make sure that needsUpdate is set
+       for function that have NoUpdate, but where depm might have changed
+       the buffer anyway.
+
+       * text2.C (cursorLeft): make us return true if depm changed
+       something
+       (cursorRight): ditto
+       (cursorUpParagraph): ditto
+       (curosrDownParagraph): ditto
+       (cursorUp, cursorDown): ditto, make sure to read comments in code
+       (deleteEmptyParagraphMechanism): remove an assert, also return
+       true if just a single char was deleted.
+
+       * text.C (cursorRightOneWord, cursorLeftOneWord): use a temp
+       cursor that we modify, to avoid modifying an active cursor before
+       we call setCursor. This allows depm to run. Also return true if
+       depm deleted something.
+
+       * lyxtext.h: Make cursorUp, cursorDown, cursorLeft, cursorRight,
+       cursorLeftOneWord, cursorRightOneWord, cursorUpParagraph,
+       cursorDownParagraph, cursorPrevious and cursorNext, return true if
+       something was changed in the buffer because of them (ie. depm run)
+
+       * lyxfunc.C (processKeySym): add BOOST_CURRENT_FUNCTION to some
+       debug messages. Make update by default be false. Make sure that
+       the result of update is retained throught several calls down to
+       dispatch.
+
+       * LyXAction.h: add a new func_attrib: NoUpdate
+
+       * LyXAction.C (init): add noupdate to LFUN_LEFT, LFUN_RIGHT,
+       LFUN_DOWN, LFUN_HOME, LFUN_END, LFUN_DOWN_PARAGRAPH,
+       LFUN_UP_PARAGRAPH, LFUN_NEXT, LFUN_PRIOR, LFUN_UP, LFUN_WORDRIGHT
+       and LFUN_WORDLEFT
+       (init): add missing lfuns: LFUN_FINISHED_*, LFUN_MOUSE_*
+
+2005-02-07  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView_pimpl.C: replace all occurences of bv_->cursor(),
+       bv_->owner(), bv_->buffer() by direct references to the private
+       members.
+       (MenuInsertLyXFile): replace bv_->resize() with resizeCurrentBuffer.
+       (getStatus): isSavedPosition() is in BufferView::Pimpl.
+       (fitCursor): center() is in BufferView::Pimpl.
+       (getStatus, trackChanges, dispatch): no need for a temporary buf
+       variable
+       (fitCursor, workAreaDispatch): use workarea().workheight()
+
+2005-02-07  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * CutAndPaste.C (pasteSelectionHelper): fix a crash
+
+2005-02-03  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * buffer.C: format up to 241.
+       * CutAndPaste.C (pasteSelectionHelper): convert newline to paragraph
+       break if pasting into ERT
+       * lyxfunc.C (getStatus): suppress mathpanel and
+       LFUN_DIALOG_SHOW_NEW_INSET in ERT
+
+2005-02-01  Angus Leeming  <leeming@lyx.org>
+
+       * lyxrc.C (getDescription): add a description for RC_PATH_PREFIX.
+
+2005-02-01  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_main.C (init, queryUserLyXDir): use fs::exists() before
+       calling fs::is_directory().
+
+2005-01-31  Angus Leeming  <leeming@lyx.org>
+
+       * lyx_main.C (priv_exec): specify explicitly the relative location
+       of the top level build directory when run in-place.
+
+2005-01-27  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView_pimpl.C (MenuInsertLyXFile): do breakParagraph on the
+       LyXText containing the cursor, not the top-level one.
+
+       * buffer.C (Impl): make sure the toplevel insettext has AutoBreak_
+       true.
+       (insertStringAsLines): rename par to pit; use temporary variable
+       par to hold a Paragraph; do not store par.layout() in a variable,
+       since the pointer may die when breaking paragraphs; pass pars to
+       breakParagraph() instead of Buffer::paragraphs().
+
+2005-01-31  Asger Ottar Alstrup  <aalstrup@laerdal.dk>
+
+       * lyxlex_pimpl.h: #include <fstream>.
+
+       * BufferView.[Ch] (getLyXText): add a const version.
+
+       * BufferView_pimpl.C: add debug aids.
+
+       * RowList_fwd.h:
+       * buffer.h:
+       * lyxrow.h:
+       * paragraph_funcs.h: add commentary explaining what the class does.
+
+
+       * coordcache.[Ch]: add lots of commentary.
+       (startUpdating, doneUpdating): debug aids.
+       (arrays, insets, parPos, getParPos): accessors to private data.
+
+       * cursor_slice.[Ch] (text): add a const version.
+       * dociterator.[Ch] (text, innerText): add const versions.
+
+       * lyxtext.h (breakParagraph): change the keep_layout arg to a
+       bool.
+
+       * paragraph.C (getRow, pos2ros): add asserts.
+
+       * paragraph.h: add commentary. Lots of.
+
+       * paragraph.[Ch] (metrucs, draw): removed.
+
+       * cursor.C:
+       * rowpainter.[Ch]: const-correct changes.
+
+       * text.C: various obvious clean-ups. Removal of ancient cruft.
+       Bug fixes, even.
+
+2005-01-31  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * vc-backend.C (find_file): rewrite to use boost.filesystem
+       (scanMaster): ditto
+
+       * main.C (main): set default name check for boost.filesystem to
+       no check
+
+       * lyxfunc.C (menuNew): rewrite to use boost.filesystem
+       (open): ditto
+       (doImport): ditto
+       (actOnUpdatedPrefs): ditto
+
+       * lyx_main.C (init): rewrite to use boost.filesystem
+       (queryUserLyXDir): ditto
+
+       * lyx_cb.C (WriteAs): rewrite to use boost.filesystem
+       (getContentsOfAsciiFile): ditto
+
+       * lastfiles.C (readFile): rewrite to use boost.filesystem
+
+       * exporter.C (checkOverwrite): rewrite to use boost.filesystem
+
+       * buffer_funcs.C (readFile): rewrite to use boost.filesystem
+       (loadLyXFile): ditto
+
+       * buffer.C (Buffer): adjust for destroydir
+       (getLogName): rewrite to use boost.filesystem
+       (setFileName): ditto
+       (save): use fs::copy_file (from fs_extras)
+
+       * Makefile.am (BOOST_LIBS): add BOOST_FILESYSTEM
+
+       * LaTeX.C (run): rewrite to use boost.filesystem
+       (scanAuxFiles): ditto
+       (handleFoundFile): ditto
+
+2005-01-28  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * LaTeXFeatures.C (getAvailable): always clear packages_ list.
+
+       * lyx_cb.C (Reconfigure): call LaTeXFeatures::getAvailable()
+
+2005-01-27  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxlayout.[Ch]: change some vars from float to double
+
+       * buffer.C (readFile): make a local var const
+
+       * Several files: use convert<> instead of atoi,strToXXX and friends
+
 2005-01-24  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
 
        * LaTeXFeatures.[Ch]: Add a static list packages_ that
-       holds the contens of packages.lst. New functions getAvailable
+       holds the contents of packages.lst. New functions getAvailable
        and isAvailable to parse and check that list, resp.
-       
+
        * LyXAction.C:
        * lfuns.h:
        * BufferView_pimpl.C: new LFUN_OUTPUT_CHANGES.
-       
+
        * bufferparams.[Ch]: new param output_changes.
-       
+
        * Buffer.C: increase file format to 240.
        Use output_changes and isVailable.
-       
-       * changes.[Ch]: 
-       * paragraph.C: 
+
+       * changes.[Ch]:
+       * paragraph.C:
        * paragraph_pimpl.C: Use output_changes and isVailable.
 
 2005-01-23  Angus Leeming  <leeming@lyx.org>
 
 2005-01-20  Angus Leeming  <leeming@lyx.org>
 
-       * lyxfont.C (setLyXFamily, setLyXSeries, setLyXShape, setLyXSize) 
+       * lyxfont.C (setLyXFamily, setLyXSeries, setLyXShape, setLyXSize)
        (setLyXMisc): (char string literal) != (char string literal) is
        performing a comparison on the addresses. Convert one operand
        explicitly to string to guarantee expected behaviour.
        * lyxlex_pimpl.[Ch]: use USE_COMPRESSION guard.
 
        * output_plaintext.C: remove unneeded #include gzstream.h.
-       
+
 2005-01-20  Angus Leeming  <leeming@lyx.org>
 
        * SpellBase.h: rename some of the elements of the Result enum.