]> git.lyx.org Git - lyx.git/blobdiff - src/ChangeLog
up to file format 236 and also fix Bug 421.
[lyx.git] / src / ChangeLog
index 3c70268038993abd8b6499f74c5393ac5ffd59a5..e0b6e3d4916852e8300ba9c0e0deadd653bcd621 100644 (file)
@@ -1,3 +1,508 @@
+2004-08-14  José Matos  <jamatos@lyx.org>
+
+       * Buffer.[Ch] (readDocument): new name for old readBody.
+       * Buffer.C: new file format, new keywords: \begin_document,
+       \begin_header, \begin_body, \end_body.
+
+       * bufferparams.C (readToken): replace all calls to lex.nextToken
+       by lex.next(). Do the same to eatLine except where really needed.
+
+       * lyxfont.C (lyxWriteChanges): remove whitespaces in the end of
+       line when writing to the lyx file.
+
+       * output_plaintext.C (asciiParagraph): fix Bibliography style
+       handling.
+
+       * text.C (read): fix end of file handling.
+
+2004-08-14  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * MenuBackend.C (Menu::operator[]): new method to access
+       individual menu items
+       (Menu::hasFunc): new method. search for an item that corresponds
+       to a given func
+       (MenuBackend::specialMenu): new method
+       (MenuBackend::expand): if a special menu has been set, skip
+       entries whose func() appears in this menu
+
+2004-08-14  Lars Gullik Bjonnes  <larsbj@lyx.org>
+
+       * text3.C: use Debug::DEBUG a bit more
+
+       * text.C (leftMargin): try to simplify a tiny bit change var x to
+       l_margin. Dont output the wide margins always.
+       (rightMargin): no margin in inner texts
+
+       * rowpainter.h (nestMargin): new func
+       (changebarMargin): new func
+       (rightMargin): new func
+
+       * rowpainter.C (paintDepthBar): changebarMargin and nestMargin is
+       now functions.
+       (paintLast): ditto
+
+       * factory.C (createInset): modify setDrawFrame
+
+       * cursor.C: use Debug::DEBUG a bit more
+
+2004-08-14  André Pönitz  <poenitz@gmx.net>
+
+       * coordcache.[Ch]:
+       * Makefile.am: new files to accomodate an 'external' (x,y)-position
+       cache for all insets in (at least partially) visible (top-level)
+       paragraphs.
+       
+       * BufferView_pimpl.C: reset external coord cache before every update.
+       This means the coord cache only contains valid entries.
+
+2004-08-14  Lars Gullik Bjonnes  <larsbj@lyx.org>
+
+       bug 1096
+       * BufferView_pimpl.C (getInsetByCode): move function out of class
+       and change in to a template in anon namespace. Also fix to do what
+       suits us better.
+
+2004-08-13  Lars Gullik Bjonnes  <larsbj@lyx.org>
+
+       bug 1305
+       * paragraph_funcs.C (moveItem): use Paragraph::value_type instead
+       of char
+       (breakParagraph): rename par to par_offset and use a local
+       reference. Add code to keep the language over a rebreak.
+       (breakParagraphConservative): rename par to par_offset, use a
+       local reference
+       (mergeParagraph): ditto
+       (outerHook): ditto
+       (isFirstInSequence): ditto
+       (outerFont): rename pit to par_offset
+
+       * paragraph.C: ws change
+       * paragraph.h: ditto
+       * text3.C: ditto
+       * text.C: ditto
+
+2004-08-13  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * paragraph_pimpl.C (simpleTeXSpecialChars): remove special
+       treatment for ']'
+
+       * paragraph.C (simpleTeXOnePar): when we have a \item with
+       optional argument, enclose the argument with curly brackets (in
+       case it contains a closing square bracket)
+
+       * text2.C (editXY):
+       * text2.C (editXY):
+       * text3.C (checkInsetHit): constify
+
+2004-08-13  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * LyXAction.C (init): mark LFUN_WORD_FIND as working in read-only
+       documents (bug 1629)
+
+2004-08-13  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       Fix toggling of collapsable insets with the mouse (bug 1558)
+
+       * lyxfunc.C (dispatch): adapt to LCursor changes
+
+       * BufferView_pimpl.C (workAreaDispatch): adapt to LCursor changes;
+       make sure that dispatch is not invoked twice
+
+       * cursor.C (needsUpdate): new method
+       (dispatch): return void
+       (result): new method, to access the DispatchResult of the cursor.
+
+2004-08-13  José Matos  <jamatos@lyx.org>
+
+       * tabular.C (docbook): close empty tags in XML. Fix bug 1147.
+
+2004-08-13  André Pönitz  <poenitz@gmx.net>
+
+       * cursor.C (macroModeClose): use plainInsert instead of niceInsert.
+
+       * CutAndPaste.C (eraseSelection): fix cursor position after erasing
+         multiple cells
+
+2004-08-12  André Pönitz  <poenitz@gmx.net>
+
+       * text3.C: take out the 'cursor right' form insertInset and only
+       do it in those places when it is really needed. Fixes crash on
+       C-m...
+
+2004-08-08  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxfunc.C (dispatch): implement LFUN_SAVE_AS_DEFAULT
+
+       * BufferView_pimpl.C (setBuffer): initialize the current font of
+       the underlying LyXText
+
+2004-08-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * kbsequence.C (print): use UI native formatting for menu
+       shortcuts
+
+       * text.C (insertChar): call Paragraph::insertChar with a font
+       argument (cosmetic)
+
+       * paragraph.C (insertInset, insertChar): the version that takes a
+       LyXFont argument is now a wrapper around the other one (the
+       opposite used to be true).
+
+       * paragraph_pimpl.C (insertInset, insertChar): remove the LyXFont
+       argument. Font setting is done in Paragraph now.
+
+2004-08-04  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * outputparams.h: add new members intitle and lang.
+
+       * paragraph.C (simpleTeXOnePar): initialize rp.lang and
+       rp.intitle. Actually use rp in call to simpleTeXSpecialChars
+
+2004-08-01  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * text3.C (dispatch): remove special handling of button 4 and 5,
+       it is now taken care of in the frontend code.
+
+2004-07-25  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * Spacing.h: add <string> (STLPort compile fix)
+
+2004-08-02  Juergen Spitzmueller  <j.spitzmueller@gmx.de>
+
+       * LaTeXFeatures.C: (jurabib) \RequirePackage -> \usepackage
+
+2004-07-25  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxlex_pimpl.C (compare_tags): chagne return type of operator()
+       to bool.
+
+       * converter.C (showMessage): inherit from unary_function, make
+       operator() const.
+
+       * buffer.C (writeFile): initialize retval
+
+       * InsetList.h: rename private variable list to list_
+       * InsetList.[Ch]: adjust accordingly.
+
+2004-07-24  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * text3.C, text2.C, text.C, tabular.C, paragraph_funcs.C, paragraph.C:
+       * lyxlength.C, lyxgluelength.C, lyxfunc.C, lyxfont.C, lyxfind.C:
+       * kbmap.C, funcrequest.C, factory.C, cursor.C, counters.C:
+       * bufferview_funcs.C, bufferparams.C, buffer.C, Spacing.C:
+       * ParagraphParameters.C, LaTeXFeatures.C: replace
+       "support/std_sstream.h" with <sstream>
+
+2004-07-23  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxserver.C (startPipe): use this (pointer) not *this (reference)
+       * lyxsocket.C (LyXServerSocket): ditto
+       (serverCallback): ditto
+
+2004-07-23  Juergen Spitzmueller  <j.spitzmueller@gmx.de>
+
+       * LaTeXFeatures.C: check release date when loading jurabib.
+
+2004-07-22  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxserver.C (startPipe): call register_socket_callback
+       (endPipe): call unregister_socket_callback
+
+2004-07-21  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * lyxsocket.C (LyXServerSocket): reduce max outstanding clients to 3
+       (LyXServerSocket): register the callback
+       (LyXServerSocket): unregister the callback
+       (fd): delete function
+       (serverCallback): improve error checking and setup the callbacks.
+       (dataCallback): change arg to fd.
+       (writeln): new func (copied fro the client socket) used for server
+       write to client.
+       (LyXDataSocket): simplify
+       (~LyXDataSocket): close ann unregiser callback
+       (server): delete function
+       (fd): delete function
+       (readln): small changes, improve some std::string usage
+       (writeln): constify a bit
+
+2004-06-24  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * kbmap.C (find1keybinding): new method, only used by LyX/Mac with
+       Qt frontend
+
+2004-07-05  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * BufferView_pimpl.C (setBuffer): set the layout combox value only
+       after it has been populated
+
+2004-06-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * text2.C (insertInset): move cursor when inserting inset.
+
+2004-06-30  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * kbmap.C (findbindings): a couple of new methods. returns a
+       container of kb_sequence objects. The real work is done by the
+       private recursive version
+       (printbindings): uses findbindings to print out a bracketed list
+       of bindings (renamed from findbinding).
+
+       * MenuBackend.C (binding): use kb_keymap::findbindings
+
+       * lyxfunc.C (sendDispatchMessage): use use kb_keymap::printbindings.
+
+2004-07-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * buffer.C: up LYX_FORMAT to 235 (needed for the paperpackage fix)
+
+2004-06-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * paragraph.C (isWord): return true on insets that report
+       isLetter().
+
+       * text.C (getWord): use Paragraph::isWord to decide what is in a
+       word and what is not; fix bug 1609.
+
+2004-06-27  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * tex-strings.C: add "none" to string_paperpackages[], fixes
+       off-by-one-error in the paperpackage selection.
+
+       * lyxlex.[Ch]:
+       * tex-strings.[Ch]: char const * string[n]
+       -> char const * const string[]
+
+2004-06-10  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxfunc.C (getStatus): if lyx_gui::getStatus disables the
+       command, return early.
+
+2004-06-18  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * debug.h: add DEBUG to enum and fix size of ANY.
+
+       * debug.C: add support for Debug::DEBUG
+       (showTags): cast errorTags.level to unsigned int
+
+       * BufferView_pimpl.C (fitCursor): use Debug::DEBUG
+       (redoCurrentBuffer): ditto
+       (updateScrollbar): ditto
+       * cursor.C (dispatch): ditto
+       * text2.C (setLayout): ditto
+       (setFont): ditto
+       (updateCounters): ditto
+       (editXY): ditto
+       (deleteEmptyParagraphMechanism): ditto
+
+2004-06-09  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * Makefile.am (dist_noinst_DATA): use the dist_ and noinst_
+       annotations to cleanup the Makefile slightly.
+
+2004-05-10  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxrc.C: do not set user_email to a default value but use empty
+       instead. The entry used to be translated, which does not work
+       since at the point where lyxrc is constructed there is no
+       translation service available
+
+       * messages.C (getLocaleDir): remove and use directly
+       lyx_localedir() instead
+
+2004-06-02  Angus Leeming  <leeming@lyx.org>
+
+       Fix crash caused by dereferencing null pointer 'exportdata' in
+       OutputParams by creating a new ExportData variable on the heap,
+       storing it in a boost::shared_ptr.
+       The crash was triggered when generating an Instant Preview
+       of an external inset.
+
+       * Makefile.am: add outputparams.C
+
+       * outputparams.[Ch]: store exportdata as a shared_ptr<Exportdata>.
+       (c-tor): allocate memory to it.
+
+       * exporter.C (c-tor): associated changes.
+
+2004-06-01  Angus Leeming  <leeming@lyx.org>
+
+       * output_linuxdoc.C (linuxdocParagraphs): Check that the paragraph
+       contains data before calling isInset(0). (Bug 1513.)
+
+2004-06-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * exporter.C (checkOverwrite): new method
+       * exporter.C (copyFile): new method
+       * exporter.C (Export): copy referenced files to the document dir
+       * exporter.[Ch]: new class ExportedFile
+       * exporter.[Ch]: new class ExportData. Contains currently the
+       names of referenced external files
+       * outputparams.h: add exportdata member.
+
+2004-05-28  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * Makefile.am (DISTCLEANFILES): add version.C, stamp-version and
+       version.C-tmp
+
+2004-05-19  Angus Leeming  <leeming@lyx.org>
+
+       * LaTeXFeatures.C:
+       * ToolbarBackend.C:
+       * bufferparams.C:
+       * lyxfunc.C: small changes due to the introduction of namespace
+       lyx::frontend and the moving of namespace biblio to lyx::biblio.
+
+2004-05-18  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * text3.C (dispatch): supress update when only moving the cursor
+       * cursor.C (selHandle): remove commented code
+
+2004-05-17  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * paragraph.C (startTeXParParams): correct column count
+       * CutAndPaste.C (pasteSelection): remove const_cast
+       * output_docbook.C (docbookParagraphs): remove const_cast
+       * output_latex.C (TeXEnvironment, TeXOnePar, TeXDeeper): remove
+       const_cast and return ParagraphList::const_iterator
+       * output_linuxdoc.C (linuxdocParagraphs): remove const_cast
+       * output_plaintext.C (writeFileAscii): remove const_cast
+       * paragraph.[Ch] (simpleTeXOnePar): make const
+       * paragraph_funcs.C (outerPar): use const iterators
+       * paragraph_pimpl.C (validate): use const iterators
+       * text.C (setHeightOfRow): use const iterators
+
+2004-05-17  Angus Leeming  <leeming@lyx.org>
+
+       * lfuns.h:
+       * LyXAction.C (init): new LFUN_INSET_REFRESH.
+
+       * lyxfunc.C (dispatch): in the LFUN_BUFFERPARAMS_APPLY block loop
+       over all insets and dispatch LFUN_INSET_REFRESH to any citation insets
+       if the citation engine has changed.
+
+2004-05-14  José Matos  <jamatos@lyx.org>
+
+       * buffer.C (makeDocBookFile): add a default Formal Public Identifier
+       if the textclass does not provide it. Have it different for sgml and
+       xml.
+       support the language of document.
+       * output_docbook.C (docbookParagraphs):
+       * paragraph.[Ch] (getDocbookId): new function that gets the id of the
+       first anchor as the id of the paragraph, remove special case code.
+       * sgml.C (escapeChar): escape only < & >.
+
+2004-05-14  Angus Leeming  <leeming@lyx.org>
+
+       * bufferparams.h: move biblio::CiteEngine enum here to minimize
+       dependencies on src/frontends/controllers/biblio.h. Define a
+       CiteEngine_enum wrapper class to enable the enum to be forward
+       declared.
+
+2004-05-12  Angus Leeming  <leeming@lyx.org>
+
+       * buffer.C: up LYX_FORMAT to 234.
+       * bufferparams.[Ch]: replace the three bools, use_natbib, use_jurabib,
+       use_numerical_citations with a single biblio::CiteEngine cite_engine
+       variable.
+       * LaTeXFeatures.C (getPackages): use BufferParams::cite_engine.
+
+2004-05-13  José Matos  <jamatos@lyx.org>
+
+       * converter.h:
+       * converter.C (Converter, readFlags): add xml member.
+       * outputparams.h: add XML flavor.
+       * buffer.C (makeDocBookFile): add support for the sgml/xml distinction.
+
+2004-05-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * lyxfunc.C (dispatch):
+       (getStatus): fix handling of LFUN_SEQUENCE
+
+2004-04-29  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * debug.C (showLevel): do not forget the end-of-line marker
+
+2004-04-27  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * kbmap.C (read): do not stop parsing a bind file when an error
+       occurs (bug 1575)
+
+2004-04-29  Angus Leeming  <leeming@lyx.org>
+
+       * cursor.C:
+       * factory.C:
+       * pariterator.C:
+       * text2.C: wrap a bunch of #warning statements
+       inside #ifdef WITH_WARNINGS blocks.
+
+2004-04-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * buffer.C: increment format to 233.
+
+2004-04-28  Angus Leeming  <leeming@lyx.org>
+
+       * BufferView_pimpl.C:
+       * lyxfunc.C:
+       * text3.C:
+       s/updateToolbar()/updateToolbars()/
+       s/Toolbar.h/Toolbars.h/
+
+2004-04-28  Angus Leeming  <leeming@lyx.org>
+
+       * BufferView.[Ch] (c-tor):
+       * BufferView_pimpl.[Ch] (c-tor): no longer receives x,y position.
+       No longer passes these data to the WorkArea generator.
+
+2004-04-28  Angus Leeming  <leeming@lyx.org>
+
+       * BufferView_pimpl.C (c-tor): pass LyXView & to WorkArea generator.
+
+2004-04-26  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * LaTeXFeatures.C, lyx_sty.[Ch]: add \lyxdot macro
+
+2003-09-24  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * output_latex.C (TeXEnvironment): make sure that there is a line
+       break before \end{foo} for the last paragraph of a document
+       (TeXOnePar): if the paragraph is at the end of the document (or
+       inset) and the language has to be reset, then make sure that the
+       line break is _before_ the language command, not after (fixes bug
+       1225); also make sure that the language reset command is the first
+       thing after the paragraph (to ensure proper nesting of
+       environments and thus fix bug 1404)
+
+2004-04-21  John Levon  <levon@movementarian.org>
+
+       * ToolbarBackend.h:
+       * ToolbarBackend.C: make "name" be a programmatic name
+       and a gui_name field.
+
+       * lyxfunc.C: display the minibuffer on M-x
+
+2004-04-18  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * LaTeX.C (runMakeIndex, runBibTeX): quote correctly file name
+       (bug 1526)
+
+2004-04-19  Angus Leeming  <leeming@lyx.org>
+
+       * BufferView_pimpl.C (setBuffer): changed preview interface.
+
+       * lyxrc.[Ch] (preview): no longer a bool. Now an enum with three
+       possible values.
+
+2004-04-19  John Levon  <levon@movementarian.org>
+
+       * BufferView_pimpl.C:
+       * text3.C: fix bug 1569 (insert->label doesn't give suggestion)
+
+2004-04-05  Angus Leeming  <leeming@lyx.org>
+
+       * text.C (redoParagraphs): add call to updateCounters(), thereby
+       fixing the missing "Figure #:" label from the caption of a
+       figure float.
+
 2004-04-13  Angus Leeming  <leeming@lyx.org>
 
        * text3.C (dispatch): call Inset::.notifyCursorLeaves when the
 
        * LaTeXFeatures.[Ch]: change buffer_ to a pointer and add accessor
        setBuffer()
-       
+
 2004-04-07  Alfredo Braunstein  <abraunst@lyx.org>
 
        * BufferView.C (setCursor): call redoParagraph (some insets could
-       have been opened) 
+       have been opened)
        (putSelectionAt): remove the 'double update' trick
 
        * BufferView_pimpl.C (fitCursor): call refreshPar
        (selHandle): set noUpdate when appropriate
 
        * lyxfunc.C (dispatch): track if we need an update
-       
+
        * metricsinfo.[Ch]: PainterInfo receive a Painter & on construction
 
        * rowpainter.[Ch] (RowPainter): remove superfluous xo_ parameter
        (paintSelection): cheap optimization, do not call cursorX when not
-       needed 
+       needed
        (paintPars): change signature
        (refreshPar): add
        (paintText): adjust
        * cursor_slice.C: more agressive assert
 
        * lyxfunc.C:
-       * BufferView_pimpl.C: rework mouse event dispatch 
+       * BufferView_pimpl.C: rework mouse event dispatch
 
        * dociterator.C:
        * paragraph.C:
        * BufferView_pimpl.[Ch] (getStatus)
        * BufferView.[Ch] (getStatus): add
        * lyxfunc.C (getStatus): move lfuns handled in
-       BufferView::dispatch to te function above 
+       BufferView::dispatch to te function above
        * Cursor.C (setSelection): set selection() = true
 
 2004-04-01  Alfredo Braunstein  <abraunst@lyx.org>
 
        * lyxfunc.C (dispatch): the specialization Dialogs::showDocument
        has died. Fall through to the generic Dialogs::show("document").
-       
+
 2004-03-30  Angus Leeming  <leeming@lyx.org>
 
        * lfuns.h:
 
 2004-03-30  Alfredo Braunstein  <abraunst@lyx.org>
 
-       * dociterator.[Ch]: add an inset_ member 
+       * dociterator.[Ch]: add an inset_ member
        (backwardPos): implemented
        (backwardPos, forwardPos): use inset_ when the stack is empty.
        (doc_iterator_begin, doc_iterator_end): implemented
        * pariterator.[Ch]: adjust, add begin, end
        * insetiterator.[Ch]: adjust, add begin, end
-       * cursor.C: 
+       * cursor.C:
        * document.C:
        * BufferView.C:
        * BufferView_pimpl.C:
        * buffer.C: increment file format to 232.
        * LaTeXFeatures.C: add bibtopic package.
        * bufferparams.[Ch]: param \use_bibtopic.
-       
+
        * lyxrc.[Ch]: add lyxrc bibtex_command
        * LaTeX.C: use rc.bibtex_command instead of hardcoded string.
-       
+
        * buffer.C: increment file format to 231.
 
 2004-03-28  Alfredo Braunstein  <abraunst@lyx.org>
        * lyxfind.C
        * lyxfunc.C
        * paragraph_funcs.C
-       * toc.C:  
+       * toc.C:
        * Makefile.am: adjust
 
 2004-03-28  Alfredo Braunstein  <abraunst@lyx.org>
 
 2004-03-26  Alfredo Braunstein  <abraunst@lyx.org>
 
-       * buffer_funcs.C (readFile): add cancel button to two prompt dialogs 
+       * buffer_funcs.C (readFile): add cancel button to two prompt dialogs
 
 2004-03-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
 2004-03-25  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
             Martin Vermeer  <martin.vermeer@hut.fi>
 
-       * lyxfunc.C (dispatch): 
-       * bufferparams.C (readToken): use the new LColor::setColor 
+       * lyxfunc.C (dispatch):
+       * bufferparams.C (readToken): use the new LColor::setColor
 
        * LColor.[Ch] (setColor): new version that takes two strings as
        argument and creates a new color entry if necessary