+2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/mathed/math_inset.h (Write(ostream & os): add a space at the
+ end. This fixes a bug.
+
+ * src/mathed (all files concerned with file writing): apply the
+ USE_OSTREAM_ONLY changes to mathed too.
+
+ * src/support/DebugStream.h: make the constructor explicit.
+
+ * src/lyxfont.C (latexWriteStartChanges): small bug related to
+ count and ostream squashed.
+
+2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
+
+ * src/buffer.C (makeLaTeXFile): add a .c_str(), since
+ ostringstream uses STL strings, and we might not.
+
+ * src/insets/insetspecialchar.C: add using directive.
+ * src/insets/insettext.C: ditto.
+
+2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * lib/layouts/seminar.layout: feeble attempt at a layout for
+ seminar.cls, far from completet and could really use some looking
+ at from people used to write layout files.
+
+ * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to
+ use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is
+ a lot nicer and works nicely with ostreams.
+
+ * src/mathed/formula.C (draw): a slightly different solution that
+ the one posted to the list, but I think this one works too. (font
+ size wrong in headers.)
+
+ * src/insets/insettext.C (computeTextRows): some fiddling on
+ Jürgens turf, added some comments that he should read.
+
+ * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never
+ used and it gave compiler warnings.
+ RC_SHOW_BANNER + "\\show_banner" added, also to reading and
+ writing of lyxrc.
+
+ * src/lyx_gui.C (create_forms): do the right thing when
+ show_banner is true/false.
+
+ * src/lyx_cb.C (TimerCB): no need to close or do anything if
+ show_banner is false.
+
+ * most file writing files: Now use iostreams to do almost all of
+ the writing. Also instead of passing string &, we now use
+ stringstreams. mathed output is still not adapted to iostreams.
+ This change can be turned off by commenting out all the occurences
+ of the "#define USE_OSTREAM_ONLY 1" lines.
+
+ * src/WorkArea.C (createPixmap): don't output debug messages.
+ (WorkArea): don't output debug messages.
+
+ * lib/lyxrc.example: added a comment about the new variable
+ \show_banner
+
+ * development/Code_rules/Rules: Added some more commente about how
+ to build class interfaces and on how better encapsulation can be
+ achieved.
+
+2000-03-03 Juergen Vigna <jug@sad.it>
+
+ * src/insets/insetert.C (InsetERT): Now ERT-insets break row
+ automatically with the width of the LyX-Window
+
+ * src/insets/insettext.C (computeTextRows): fixed update bug in
+ displaying text-insets (scrollvalues where not initialized!)
+
+2000-03-02 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
+ id in the check of the result from lower_bound is not enough since
+ lower_bound can return last too, and then res->id will not be a
+ valid construct.
+
+ * all insets and some code that use them: I have conditionalized
+ removed the Latex(string & out, ...) this means that only the
+ Latex(ostream &, ...) will be used. This is a work in progress to
+ move towards using streams for all output of files.
+
+ * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type
+ c to 0.
+
+2000-03-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/mathed/math_utils.C (MathedLookupBOP): fix the search
+ routine (this fixes bug where greek letters were surrounded by too
+ much white space).
+
+ * src/support/filetools.C (findtexfile): change a bit the search
+ algorithm, to fix bug introduced in 1.1.4. Note that --format is
+ no longer passed to kpsewhich, we may have to change that later.
+
+ * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
+ warning options to avoid problems with X header files (from Angus
+ Leeming).
+ * acinclude.m4: regenerated.
+
+2000-03-02 Juergen Vigna <jug@sad.it>
+
+ * src/insets/insettext.C (WriteParagraphData): Using the
+ par->writeFile() function for writing paragraph-data.
+ (Read): Using buffer->parseSingleLyXformat2Token()-function
+ for parsing paragraph data!
+
+ * src/buffer.C (readLyXformat2): removed all parse data and using
+ the new parseSingleLyXformat2Token()-function.
+ (parseSingleLyXformat2Token): added this function to parse (read)
+ lyx-file-format (this is called also from text-insets now!)
+
+2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/paragraph.C (BeginningOfMainBody): initialize previous_char
+ and temp.
+
+ * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog
+ directly instead of going through a func. One very bad thing: a
+ static LyXFindReplace, but I don't know where to place it.
+
+ * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a
+ string instead of char[]. Also changed to static.
+ (GetSelectionOrWordAtCursor): changed to static inline
+ (SetSelectionOverLenChars): ditto.
+
+ * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of
+ current_view and global variables. both classes has changed names
+ and LyXFindReplace is not inherited from SearchForm.
+
+ * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the
+ fl_form_search form.
+
+ * src/lyx_gui.C (create_forms): removed the fl_form_search form.
+
+2000-03-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * lib/bind/*.bind: make sure 'buffer-previous' function is not
+ bound (from Kayvan).
+
+ * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
+
+ * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
+
+2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * some things that I should comment but the local pub says head to
+ swirly...
+
+ * comment out all code that belongs to the Roff code for Ascii
+ export of tables. (this is unused)
+
+ * src/LyXView.C: use correct type for global variable
+ current_layout. (LyXTextClass::size_type)
+
+ * some code to get the new insetgraphics closer to working I'd be
+ grateful for any help.
+
+ * src/BufferView2.C (insertInset): use the return type of
+ NumberOfLayout properly. (also changes in other files)
+
+ * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
+ this as a test. I want to know what breaks because of this.
+
+ * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
+
+2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * lib/layouts/stdlists.inc: changed the lyxlist latex definition
+ to use a \makebox in the label, this allows proper justification
+ with out using protected spaces or multiple hfills. Now it is
+ "label" for left justified, "\hfill label\hfill" for center, and
+ "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
+ should be changed accordingly.
+
+2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyxtext.h: change SetLayout() to take a
+ LyXTextClass::size_type instead of a char (when there is more than
+ 127 layouts in a class); also change type of copylayouttype.
+ * src/text2.C (SetLayout): ditto.
+ * src/LyXView.C (updateLayoutChoice): ditto.
+
+ * src/LaTeX.C (scanLogFile): errors where the line number was not
+ given just after the '!'-line were ignored (from Dekel Tsur).
+
+ * lib/lyxrc.example: fix description of \date_insert_format
+
+ * lib/layouts/llncs.layout: new layout, contributed by Martin
+ Vermeer.
+
+2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
+ 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
+ cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
+ insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
+ BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
+ paragraph.C, text.C, text2.C)
+
+2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/insets/insettext.C (LocalDispatch): remove extra break
+ statement.
+
+ * src/insets/insetert.[Ch] (Clone): change return value to Inset*
+ * src/insets/insettext.[Ch] (Clone): change return value to Inset*
+
+ * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
+ * src/insets/insettext.[Ch] (GetCursorPos): ditto
+
+ * src/insets/insetbib.h: move InsetBibkey::Holder and
+ InsetCitation::Holder in public space.
+
+2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/insets/insettext.h: small change to get the new files from
+ Juergen to compile (use "string", not "class string").
+
+ * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
+ const & as parameter to LocalDispatch, use LyXFont const & as
+ paramter to some other func. This also had impacto on lyxinsets.h
+ and the two mathed insets.
+
+2000-02-24 Juergen Vigna <jug@sad.it>
+
+ * src/buffer.C:
+ * src/commandtags.h:
+ * src/LyXAction.C:
+ * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
+
+ * src/BufferView.h
+ * src/BufferView.C
+ * src/BufferView2.C: added/updated code for various inset-functions
+
+ * src/insets/insetert.[Ch]: added implementation of InsetERT
+
+ * src/insets/insettext.[Ch]: added implementation of InsetText
+
+ * src/insets/inset.C (Edit): added "unsigned int button" parameter
+ (draw): added preliminary code for inset scrolling not finshed yet
+
+ * src/insets/inset.C (LocalDispatch): changed arg parameter to string
+ as it is in lyxfunc.C now
+
+ * src/insets/lyxinset.h: Added functions for text-insets
+
+2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
+ BufferView and reimplement the list as a queue put inside its own
+ class.
+
+ * src/bufferlist.[Ch] (updateInset): remove func, not needed.
+
+ * several files: use the new interface to the "updateinsetlist"
+
+ * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
+ on doubleclick.
+ (work_area_handler): call BufferView::trippleClick on trippleclick.
+
+ * src/BufferView.C (doubleClick): new function, selects word on
+ doubleclick.
+ (trippleClick): new function, selects line on trippleclick.
+
+2000-02-22 Allan Rae <rae@lyx.org>
+
+ * lib/bind/xemacs.bind: buffer-previous not supported
+
+2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
+ as const.
+
+2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/bufferlist.C: get rid of current_view from this file
+
+ * src/spellchecker.C: get rid of current_view from this file
+
+ * src/vspace.C: get rid of current_view from this file
+ (inPixels): added BufferView parameter for this func
+ (asLatexCommand): added a BufferParams for this func
+
+ * src/text.C src/text2.C: get rid of current_view from these
+ files.
+
+ * src/lyxfont.C (getFontDirection): move this function here from
+ text.C
+
+ * src/bufferparams.C (getDocumentDirection): move this function
+ here from text.C
+
+ * src/paragraph.C (getParDirection): move this function here from
+ text.C
+ (getLetterDirection): ditto
+
+2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
+ resize due to wrong pixmap beeing used. Also took the opurtunity
+ to make the LyXScreen stateless on regard to WorkArea and some
+ general cleanup in the same files.
+
+2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/Makefile.am: add missing direction.h
+
+ * src/PainterBase.h: made the width functions const.
+
+ * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
+ missing ones.
+
+ * src/insets/insetcommand.C (draw): draw Editable as buttons.
+
+ * src/insets/insetlatexaccent.C (draw): make the accents draw
+ better, at present this will only work well with iso8859-1.
+
+ * several files: remove the old drawing code, now we use the new
+ painter only.
+
+ * several files: remove support for mono_video, reverse_video and
+ fast selection.
+
+2000-02-17 Juergen Vigna <jug@sad.it>
+
+ * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
+ int ** as we have to return the pointer, otherwise we have only
+ NULL pointers in the returning function.
+
+2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/LaTeX.C (operator()): quote file name when running latex.
+
+2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/toolbar.C (set): use fl_set_object_helper for the tooltop
+ (bubble tip), this removes our special handling of this.
+
+ * Remove all code that is unused now that we have the new
+ workarea. (Code that are not active when NEW_WA is defined.)
+
+ * Make the uses of XSync not conditionalized on define USE_XSYNC.
+
+2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
+ nonexisting layout; correctly redirect obsoleted layouts.
+
+ * lib/lyxrc.example: document \view_dvi_paper_option
+
+ * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
+ variable.
+
+ * src/lyx_cb.C (RunScript): handle $$FName for command names.
+ (PreviewDVI): handle the view_dvi_paper_option variable.
+ [Both from Roland Krause]
+
+2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
+ char const *, int, LyXFont)
+ (text(int, int, string, LyXFont)): ditto
+
+ * src/text.C (InsertCharInTable): attempt to fix the double-space
+ feature in tables too.
+ (BackspaceInTable): ditto.
+ (GetVisibleRow): make bottom pagebreak line be a onoff line.
+
+2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/text2.C (owner): only complain if owner_ is set and bv != 0
+
+ * src/BufferView.C (resizeCurrentBuffer): set the owner of the
+ newly found text in textcache to this.
+ (buffer): set the owner of the text put into the textcache to 0
+
+ * src/insets/figinset.C (draw): fixed the drawing of figures with
+ the new Painter.
+
+ * src/text.C src/mathed/math_cursor.C: nailed and fixed the
+ drawing of mathframe, hfills, protected space, table lines. I have
+ now no outstanding drawing problems with the new Painter code.
+
+2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/PainterBase.C (ellipse, circle): do not specify the default
+ arguments.
+
+ * src/LColor.h: add using directive.
+
+ * src/Painter.[Ch]: change return type of methods from Painter& to
+ PainterBase&. Add a using directive.
+
+ * src/WorkArea.C: wrap xforms callbacks in C functions
+ C_WorkArea_xxx.
+
+ * lib/layouts/foils.layout: font fix and simplifications from Carl
+ Ollivier-Gooch.
+
+2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * a lot of files: The Painter, LColor and WorkArea from the old
+ devel branch has been ported to lyx-devel. Some new files and a
+ lot of #ifdeffed code. The new workarea is enabled by default, but
+ if you want to test the new Painter and LColor you have to compile
+ with USE_PAINTER defined (do this in config.h f.ex.) There are
+ still some rought edges, and I'd like some help to clear those
+ out. It looks stable (loads and displays the Userguide very well).
+
+
+2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/buffer.C (pop_tag): revert to the previous implementation
+ (use a global variable for both loops).
+
+ * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
+
+ * src/lyxrc.C (LyXRC): change slightly default date format.
+
+ * src/paragraph.C (TeXOnePar): Generate a correct latex file when
+ there is an English text with a footnote that starts with a Hebrew
+ paragraph, or vice versa.
+ (TeXFootnote): ditto.
+
+ * src/text.C (LeftMargin): allow for negative values for
+ parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
+ this out.
+
+ * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
+ for input encoding (cyrillic)
+
+2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
+ Tsur).
+
+ * src/toolbar.C (set): ditto
+ * src/insets/insetbib.C (create_form_citation_form): ditto
+
+ * lib/CREDITS: added Dekel Tsur.
+
+ * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
+ lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
+ hebrew supports files from Dekel Tsur.
+
+ * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
+ <tzafrir@technion.ac.il>
+
+ * src/lyxrc.C: put \date_insert_format at the right place.
+
+ * src/buffer.C (makeLaTeXFile): fix the handling of
+ BufferParams::sides when writing out latex files.
+
+ * src/BufferView2.C: add a "using" directive.
+
+ * src/support/lyxsum.C (sum): when we use lyxstring,
+ ostringstream::str needs an additional .c_str().
+
+2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/filetools.C (ChangeExtension): patch from Etienne
+ applied.
+
+ * src/TextCache.C (show): remove const_cast and make second
+ parameter non-const LyXText *.
+
+ * src/TextCache.h: use non const LyXText in show.
+
+ * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
+ with hebrew.
+
+2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/support/lyxsum.C: rework to be more flexible.
+
+ * several places: don't check if a pointer is 0 if you are going
+ to delete it.
+
+ * src/text.C: remove some dead code.
+
+ * src/insets/figinset.C: remove some dead code
+
+ * src/buffer.C: move the BufferView funcs to BufferView2.C
+ remove all support for insetlatexdel
+ remove support for oldpapersize stuff
+ made some member funcs const
+
+ * src/kbmap.C: use a std::list to store the bindings in.
+
+ * src/BufferView2.C: new file
+
+ * src/kbsequence.[Ch]: new files
+
+ * src/LyXAction.C + others: remove all trace of buffer-previous
+
+ * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
+ only have one copy in the binary of this table.
+
+ * hebrew patch: moved some functions from LyXText to more
+ appropriate places. (LyXParagraph, BufferParams, LyXFont)
+
+ * several files: remove support for XForms older than 0.88
+ whitespace changes.
+ remove some #if 0 #endif code
+
+ * src/TextCache.[Ch]: new file. Holds the textcache.
+
+ * src/BufferView.C: changes to use the new TextCache interface.
+ (waitForX): remove the now unused code.
+
+ * src/BackStack.h: remove some commented code
+
+ * lib/bind/emacs.bind: remove binding for buffer-previous
+
+2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * applied the hebrew patch.
+
+ * src/lyxrow.h: make sure that all Row variables are initialized.
+
+ * src/text2.C (TextHandleUndo): comment out a delete, this might
+ introduce a memory leak, but should also help us to not try to
+ read freed memory. We need to look at this one.
+
+ * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
+ (LyXParagraph): initalize footnotekind.
+
+ * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
+ forgot this when applying the patch. Please heed the warnings.
+
+ * src/BufferView.C (buffer): a fix for the buffer-reload problem
+ (aka. reformat problem)
+
+ * src/bufferlist.C (exists): made const, and use const_iterator
+ (isLoaded): new func.
+ (release): use std::find to find the correct buffer.
+
+ * src/bufferlist.h: made getState a const func.
+ made empty a const func.
+ made exists a const func.
+ new func: isLoaded
+
+2000-02-01 Juergen Vigna <jug@sad.it>
+
+ * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
+
+ * po/it.po: updated a bit the italian po file and also changed the
+ 'file nuovo' for newfile to 'filenuovo' without a space, this did
+ annoy me a lot :)
+
+ * src/lyxrc.C (LyXRC): added support for a default insert_date_format
+ for the new insert_date command.
+
+ * src/lyxfunc.C (Dispatch): added support for a insert_date function
+ from jdblair, to insert a date into the current text conforming to
+ a strftime format (for now only considering the locale-set and not
+ the document-language).
+
+2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyxfont.C (textWidth): hopefully better fix for the Array
+ Bounds Read error seen by purify. The problem was that islower is
+ a macros which takes an unsigned char and uses it as an index for
+ in array of characters properties (and is thus subject to the
+ above error).
+ (drawText): ditto.
+
+ * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
+ correctly the paper sides radio buttons.
+ (UpdateDocumentButtons): ditto.
+
+2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/kbmap.C (getsym + others): change to return unsigned int,
+ returning a long can give problems on 64 bit systems. (I assume
+ that int is 32bit on 64bit systems)
+
+2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
+ LyXLookupString to be zero-terminated. Really fixes problems seen
+ by purify, I think.
+
+2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
+ write a (char*)0 to the lyxerr stream.
+
+ * src/lastfiles.C: move algorithm before the using statemets.
+
2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+ * src/lastfiles.C: move using directives in global scope (egcs 1.x
+ complains otherwise).
+ * src/table.C: ditto
+
* lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
directory.