+2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
+ version also.
+
+ * src/paragraph.C (FirstPhysicalPar): remove assert and comment
+ that obviously was wrong...
+
+ * src/lyxfont.C (textWidth): have c as char c[2] instead of char
+ c, this avoids warnings with purify and islower.
+
+ * src/insets/figinset.C: rename struct queue to struct
+ queue_element and rewrite to use a std::queue. gsqueue is now a
+ std::queue<queue_element>
+ (runqueue): reflect move to std::queue
+ (addwait): ditto
+
+ * src/support/lstrings.h (tostr): specialize for bool, otherwise
+ we would get "1" "0" instead of "true" "false. Also make the tostr
+ functions inline.
+
+2000-01-21 Juergen Vigna <jug@sad.it>
+
+ * src/buffer.C (writeFileAscii): Disabled code for special groff
+ handling of tabulars till I fix this in table.C
+
+2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/support/mkdir.C (mkdir): change second argument of mkdir to
+ unsigned long int.
+ * src/support/lyxlib.h: ditto.
+
+2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
+ and 'j' look better. This might fix the "macron" bug that has been
+ observed.
+
+ * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
+ functions as one template function. Delete the old versions.
+
+ * src/support/lyxsum.C: move using std::ifstream inside
+ MODERN_STL_STREAMS
+
+ * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
+ and putenv.C
+
+ * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
+
+ * src/mathed/formula.C: delete #include "bufferlist.h" never used
+
+ * src/insets/figinset.C (InitFigures): use new instead of malloc
+ to allocate memory for figures and bitmaps.
+ (DoneFigures): use delete[] instead of free to deallocate memory
+ for figures and bitmaps.
+ (runqueue): use new to allocate
+ (getfigdata): use new/delete[] instead of malloc/free
+ (RegisterFigure): ditto
+
+ * some files: moved some declarations closer to first use, small
+ whitespace changes use preincrement instead of postincrement where
+ it does not make a difference.
+
+ * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
+ step on the way to use stl::containers for key maps.
+
+ * src/bufferlist.h: add a typedef for const_iterator and const
+ versions of begin and end.
+
+ * src/bufferlist.[Ch]: change name of member variable _state to
+ state_. (avoid reserved names)
+ (makePup): removed
+ (getFileNames): returns the filenames of the buffers in a vector.
+
+ * configure.in (ALL_LINGUAS): added ro
+
+ * src/support/putenv.C: new file
+
+ * src/support/mkdir.C: new file
+
+2000-01-20 Allan Rae <rae@lyx.org>
+
+ * lib/layouts/IEEEtran.layout: Added several theorem environments
+
+ * lib/templates/IEEEtran.lyx: Example theorem environments and a
+ couple of minor additions.
+
+ * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
+ (except for those in footnotes of course)
+
+2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
+
+ * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
+ std::sort and std::lower_bound instead of qsort and handwritten
+ binarysearch.
+ (struct compara): struct that holds the functors used by std::sort
+ and std::lower_bound in MathedLookupBOP.
+
+2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/support/LAssert.h: do not do partial specialization. We do
+ not really need it.
+
+ * src/support/lyxlib.h: note that lyx::getUserName() and
+ lyx::date() are not in use right now. Should these be suppressed?
+
+ * src/buffer.C (makeLaTeXFile): we do not need the user name here.
+ (makeLinuxDocFile): do not put date and user name in linuxdoc
+ headers.
+
+ * src/support/lyxlib.h (kill): change first argument to long int,
+ since that's what solaris uses.
+
+ * src/support/kill.C (kill): fix declaration to match prototype.
+
+ * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
+ actually check whether namespaces are supported. This is not what
+ it used to do.
+
+ * src/support/lyxsum.C: add a using directive.
+
+2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/kill.C: if we have namespace support we don't have
+ to include lyxlib.h.
+
+ * src/support/lyxlib.h: use namespace lyx if supported.
+
+2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/date.C: new file
+
+ * src/support/chdir.C: new file
+
+ * src/support/getUserName.C: new file
+
+ * src/support/getcwd.C: new file
+
+ * src/support/abort.C: new file
+
+ * src/support/kill.C: new file
+
+ * src/support/lyxlib.h: moved all the functions in this file
+ insede struct lyx. Added also kill and abort to this struct. This
+ is a way to avoid the "kill is not defined in <csignal>", we make
+ C++ wrappers for functions that are not ANSI C or ANSI C++.
+
+ * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
+ instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
+ lyx it has been renamed to sum.
+
+2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/text.C: add using directives for std::min and std::max.
+
+2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/texrow.C (getIdFromRow): actually return something useful in
+ id and pos. Hopefully fixes the bug with positionning of errorbox
+ insets.
+
+ * src/lyx_main.C (easyParse): output an error and exit if an
+ incorrect command line option has been given.
+
+ * src/spellchecker.C (ispell_check_word): document a memory leak.
+
+ * src/bufferlist.C (write): fix mismatched allocation/deletion,
+ where a "struct utimbuf" is allocated with "new" and deleted with
+ "delete[]".
+
+2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/text2.C (CutSelection): don't delete double spaces.
+ (PasteSelection): ditto
+ (CopySelection): ditto
+
+ * src/text.C (Backspace): don't delete double spaces.
+
+ * src/lyxlex.C (next): fix a bug that were only present with
+ conformant std::istream::get to read comment lines, use
+ std::istream::getline instead. This seems to fix the problem.
+
+2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
+ allowed to insert space before space" editing problem. Please read
+ commends at the beginning of the function. Comments about usage
+ are very welcome.
+
+ * src/text.C (InsertChar): fix for the "not allowed to insert
+ space before space" editing problem.
+
+ * src/text2.C (DeleteEmptyParagraphMechanism): when
+ IsEmptyTableRow can only return false this last "else if" will
+ always be a no-op. Commented out.
+
+ * src/text.C (RedoParagraph): As far as I can understand tmp
+ cursor is not really needed.
+
+ * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
+ present it could only return false anyway.
+ (several functions): Did something not so smart...added a const
+ specifier on a lot of methods.
+
+ * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
+ and add a tmp->text.resize. The LyXParagraph constructor does the
+ resize for us.
+ (BreakParagraphConservative): ditto
+
+ * src/support/path.h (Path): add a define so that the wrong usage
+ "Path("/tmp") will be flagged as a compilation error:
+ "`unnamed_Path' undeclared (first use this function)"
+
+2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
+ which was bogus for several reasons.
+
+ * src/LaTeX.C (scanAux): fix the regular expression used to scan
+ .aux files.
+ (runBibTeX): ditto.
+
+ * autogen.sh: do not use "type -path" (what's that anyway?).
+
+ * src/support/filetools.C (findtexfile): remove extraneous space
+ which caused a kpsewhich warning (at least with kpathsea version
+ 3.0).
+
+2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
+
+ * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
+
+ * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
+
+2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/paragraph.C (BreakParagraph): do not reserve space on text
+ if we don't need to (otherwise, if pos_end < pos, we end up
+ reserving huge amounts of memory due to bad unsigned karma).
+ (BreakParagraphConservative): ditto, although I have not seen
+ evidence the bug can happen here.
+
+ * src/lyxparagraph.h: add a using std::list.
+
+2000-01-11 Juergen Vigna <jug@sad.it>
+
+ * src/menus.C (MenuDocu): output an Alert if the documentation-file
+ could not be found.
+
+2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/vc-backend.C (doVCCommand): change to be static and take one
+ more parameter: the path to chdir too be fore executing the command.
+ (retrive): new function equiv to "co -r"
+
+ * src/bufferlist.C (loadLyXFile): implement the missing parts if
+ file_not_found_hook is true.
+
+ * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
+
+ * src/support/filetools.C (IsFileWriteable): use FileInfo to check
+ if a file is readwrite,readonly...anything else.
+
+2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
+ (CreatePostscript): name change from MenuRunDVIPS (or something)
+ (PreviewPostscript): name change from MenuPreviewPS
+ (PreviewDVI): name change from MenuPreviewDVI
+
+ * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
+ \view_pdf_command., \pdf_to_ps_command
+
+ * lib/configure.m4: added search for PDF viewer, and search for
+ PDF to PS converter.
+ (lyxrc.defaults output): add \pdflatex_command,
+ \view_pdf_command and \pdf_to_ps_command.
+
+ * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
+
+ * src/bufferlist.C (write): we don't use blocksize for anything so
+ I removed it.
+
+2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/support/block.h: disable operator T* (), since it causes
+ problems with both compilers I tried. See comments in the file.
+
+ * lib/reLyX/configure.in: do not define LYX_DIR. support flag
+ --with-lyxname.
+
+ * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
+ variable LYX_DIR_10x to LYX_DIR_11x.
+
+ * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
+
+ * INSTALL: document --with-lyxname.
+ * NEWS: ditto.
+
+ * configure.in: new configure flag --with-lyxname which allows to
+ choose the name under which lyx is installed. Default is "lyx", of
+ course. It used to be possible to do this with --program-suffix,
+ but the later has in fact a different meaning for autoconf.
+
+ * src/support/lstrings.h (lstrchr): reformat a bit.
+
+ * src/lyxlex.h: include LIstream.h, for Sun CC this time.
+ * src/mathed/math_defs.h: ditto.
+
+2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
+ true, decides if we create a backup file or not when saving. New
+ tag and variable \pdf_mode, defaults to false. New tag and
+ variable \pdflatex_command, defaults to pdflatex. New tag and
+ variable \view_pdf_command, defaults to xpdf. New tag and variable
+ \pdf_to_ps_command, defaults to pdf2ps.
+
+2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/bufferlist.C (close): don't call insetUnlock if the buffer
+ does not have a BufferView.
+ (unlockInset): ditto + don't access the_locking_inset if the
+ buffer does not have a BufferView.
+
+ * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
+ certain circumstances so that we don't continue a keyboard
+ operation long after the key was released. Try f.ex. to load a
+ large document, press PageDown for some seconds and then release
+ it. Before this change the document would contine to scroll for
+ some time, with this change it stops imidiatly.
+
+ * src/support/block.h: don't allocate more space than needed. As
+ long as we don't try to write to the arr[x] in a array_type arr[x]
+ it is perfectly ok. (if you write to it you might segfault).
+ added operator value_type*() so that is possible to pass the array
+ to functions expecting a C-pointer.
+
+ * lib/Makefile.am (dist-hook): don't fail completely if unable to
+ cvs.
+
+ * intl/*: updated to gettext 0.10.35, tried to add our own
+ required modifications. Please verify.
+
+ * po/*: updated to gettext 0.10.35, tried to add our own required
+ modifications. Please verify.
+
+ * src/support/lstrings.C (tostr): go at fixing the problem with
+ cxx and stringstream. When stringstream is used return
+ oss.str().c_str() so that problems with lyxstring and basic_string
+ are avoided. Note that the best solution would be for cxx to use
+ basic_string all the way, but it is not conformant yet. (it seems)
+
+ * src/lyx_cb.C + other files: moved several global functions to
+ class BufferView, some have been moved to BufferView.[Ch] others
+ are still located in lyx_cb.C. Code changes because of this. (part
+ of "get rid of current_view project".)
+
+ * src/buffer.C + other files: moved several Buffer functions to
+ class BufferView, the functions are still present in buffer.C.
+ Code changes because of this.
+
+ * config/lcmessage.m4: updated to most recent. used when creating
+ acinclude.m4.
+
+ * config/progtest.m4: updated to most recent. used when creating
+ acinclude.m4.
+
+ * config/gettext.m4: updated to most recent. applied patch for
+ tmplinguas.
+
+ * config/gettext.m4.patch: new file that shows what changes we
+ have done to the local copy of gettext.m4.
+
+ * config/libtool.m4: new file, used in creation of acinclude.m4
+
+ * config/lyxinclude.m4: new file, this is the lyx created m4
+ macros, used in making acinclude.m4.
+
+ * autogen.sh: GNU m4 discovered as a separate task not as part of
+ the lib/configure creation.
+ Generate acinlucde from files in config. Actually cat
+ lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
+ easier to upgrade .m4 files that really are external.
+
+ * src/Spacing.h: moved using std::istringstream to right after
+ <sstream>. This should fix the problem seen with some compilers.
+
2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/lyx_cb.C: began some work to remove the dependency a lot of