]> git.lyx.org Git - lyx.git/blob - ChangeLog
Small fixes
[lyx.git] / ChangeLog
1 2000-03-01  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2
3         * lib/bind/*.bind: make sure 'buffer-previous' function is not
4         bound (from Kayvan).
5
6         * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
7
8         * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
9
10 2000-03-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
11
12         * some things that I should comment but the local pub says head to
13         swirly... 
14         
15         * comment out all code that belongs to the Roff code for Ascii
16         export of tables. (this is unused)
17         
18         * src/LyXView.C: use correct type for global variable
19         current_layout. (LyXTextClass::size_type)
20
21         * some code to get the new insetgraphics closer to working I'd be
22         grateful for any help.
23         
24         * src/BufferView2.C (insertInset): use the return type of
25         NumberOfLayout properly. (also changes in other files)
26
27         * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
28         this as a test. I want to know what breaks because of this.
29
30         * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
31
32 2000-02-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
33
34         * lib/layouts/stdlists.inc: changed the lyxlist latex definition
35         to use a \makebox in the label, this allows proper justification
36         with out using protected spaces or multiple hfills. Now it is
37         "label" for left justified, "\hfill label\hfill" for center, and
38         "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
39         should be changed accordingly. 
40
41 2000-02-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
42
43         * src/lyxtext.h: change SetLayout() to take a
44         LyXTextClass::size_type instead of a char (when there is more than
45         127 layouts in a class); also change type of copylayouttype.
46         * src/text2.C (SetLayout): ditto.
47         * src/LyXView.C (updateLayoutChoice): ditto.
48
49         * src/LaTeX.C (scanLogFile): errors where the line number was not
50         given just after the '!'-line were ignored (from Dekel Tsur).
51
52         * lib/lyxrc.example: fix description of \date_insert_format
53
54         * lib/layouts/llncs.layout: new layout, contributed by Martin
55         Vermeer. 
56
57 2000-02-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
58
59         * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
60         2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
61         cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
62         insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
63         BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
64         paragraph.C, text.C, text2.C)
65
66 2000-02-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
67
68         * src/insets/insettext.C (LocalDispatch): remove extra break
69         statement. 
70
71         * src/insets/insetert.[Ch] (Clone): change return value to Inset*
72         * src/insets/insettext.[Ch] (Clone): change return value to Inset*
73
74         * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
75         * src/insets/insettext.[Ch] (GetCursorPos): ditto
76
77         * src/insets/insetbib.h: move InsetBibkey::Holder and
78         InsetCitation::Holder in public space.
79
80 2000-02-25  Lars Gullik Bjønnes <larsbj@lyx.org>
81
82         * src/insets/insettext.h: small change to get the new files from
83         Juergen to compile (use "string", not "class string").
84
85         * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
86         const & as parameter to LocalDispatch, use LyXFont const & as
87         paramter to some other func. This also had impacto on lyxinsets.h
88         and the two mathed insets.
89
90 2000-02-24  Juergen Vigna  <jug@sad.it>
91
92         * src/buffer.C:
93         * src/commandtags.h: 
94         * src/LyXAction.C:
95         * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
96
97         * src/BufferView.h
98         * src/BufferView.C
99         * src/BufferView2.C: added/updated code for various inset-functions
100
101         * src/insets/insetert.[Ch]: added implementation of InsetERT
102
103         * src/insets/insettext.[Ch]: added implementation of InsetText
104
105         * src/insets/inset.C (Edit): added "unsigned int button" parameter
106         (draw): added preliminary code for inset scrolling not finshed yet
107
108         * src/insets/inset.C (LocalDispatch): changed arg parameter to string
109         as it is in lyxfunc.C now
110
111         * src/insets/lyxinset.h: Added functions for text-insets
112
113 2000-02-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
114
115         * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
116         BufferView and reimplement the list as a queue put inside its own
117         class.
118
119         * src/bufferlist.[Ch] (updateInset): remove func, not needed.
120
121         * several files: use the new interface to the "updateinsetlist"
122         
123         * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
124         on doubleclick.
125         (work_area_handler): call BufferView::trippleClick on trippleclick.
126
127         * src/BufferView.C (doubleClick): new function, selects word on
128         doubleclick. 
129         (trippleClick): new function, selects line on trippleclick.
130
131 2000-02-22  Allan Rae  <rae@lyx.org>
132
133         * lib/bind/xemacs.bind: buffer-previous not supported
134
135 2000-02-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
136
137         * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
138         as const.
139
140 2000-02-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
141
142         * src/bufferlist.C: get rid of current_view from this file
143
144         * src/spellchecker.C: get rid of current_view from this file
145
146         * src/vspace.C: get rid of current_view from this file
147         (inPixels): added BufferView parameter for this func
148         (asLatexCommand): added a BufferParams for this func
149
150         * src/text.C src/text2.C: get rid of current_view from these
151         files.
152         
153         * src/lyxfont.C (getFontDirection): move this function here from
154         text.C
155         
156         * src/bufferparams.C (getDocumentDirection): move this function
157         here from text.C
158
159         * src/paragraph.C (getParDirection): move this function here from
160         text.C 
161         (getLetterDirection): ditto
162         
163 2000-02-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
164
165         * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
166         resize due to wrong pixmap beeing used. Also took the opurtunity
167         to make the LyXScreen stateless on regard to WorkArea and some
168         general cleanup in the same files.
169         
170 2000-02-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
171
172         * src/Makefile.am: add missing direction.h
173
174         * src/PainterBase.h: made the width functions const.
175         
176         * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
177         missing ones.
178         
179         * src/insets/insetcommand.C (draw): draw Editable as buttons.
180
181         * src/insets/insetlatexaccent.C (draw): make the accents draw
182         better, at present this will only work well with iso8859-1.
183         
184         * several files: remove the old drawing code, now we use the new
185         painter only.
186
187         * several files: remove support for mono_video, reverse_video and
188         fast selection.
189
190 2000-02-17  Juergen Vigna  <jug@sad.it>
191
192         * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
193         int ** as we have to return the pointer, otherwise we have only
194         NULL pointers in the returning function.
195
196 2000-02-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
197
198         * src/LaTeX.C (operator()): quote file name when running latex.
199
200 2000-02-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
201
202         * src/toolbar.C (set): use fl_set_object_helper for the tooltop
203         (bubble tip), this removes our special handling of this.
204
205         * Remove all code that is unused now that we have the new
206         workarea. (Code that are not active when NEW_WA is defined.)
207
208         * Make the uses of XSync not conditionalized on define USE_XSYNC.
209         
210 2000-02-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
211
212         * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
213         nonexisting layout; correctly redirect obsoleted layouts.
214
215         * lib/lyxrc.example: document \view_dvi_paper_option
216
217         * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
218         variable. 
219
220         * src/lyx_cb.C (RunScript): handle $$FName for command names. 
221         (PreviewDVI): handle the view_dvi_paper_option variable.
222         [Both from Roland Krause]
223
224 2000-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
225
226         * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
227         char const *, int, LyXFont)
228         (text(int, int, string, LyXFont)): ditto 
229
230         * src/text.C (InsertCharInTable): attempt to fix the double-space
231         feature in tables too.
232         (BackspaceInTable): ditto.
233         (GetVisibleRow): make bottom pagebreak line be a onoff line.
234
235 2000-02-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
236
237         * src/text2.C (owner): only complain if owner_ is set and bv != 0
238
239         * src/BufferView.C (resizeCurrentBuffer): set the owner of the
240         newly found text in textcache to this.
241         (buffer): set the owner of the text put into the textcache to 0
242
243         * src/insets/figinset.C (draw): fixed the drawing of figures with
244         the new Painter.
245
246         * src/text.C src/mathed/math_cursor.C: nailed and fixed the
247         drawing of mathframe, hfills, protected space, table lines. I have
248         now no outstanding drawing problems with the new Painter code. 
249
250 2000-02-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
251
252         * src/PainterBase.C (ellipse, circle): do not specify the default
253         arguments. 
254
255         * src/LColor.h: add using directive.
256
257         * src/Painter.[Ch]: change return type of methods from Painter& to
258         PainterBase&. Add a using directive.
259
260         * src/WorkArea.C: wrap xforms callbacks in C functions
261         C_WorkArea_xxx. 
262
263         * lib/layouts/foils.layout: font fix and simplifications from Carl
264         Ollivier-Gooch.
265
266 2000-02-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
267
268         * a lot of files: The Painter, LColor and WorkArea from the old
269         devel branch has been ported to lyx-devel. Some new files and a
270         lot of #ifdeffed code. The new workarea is enabled by default, but
271         if you want to test the new Painter and LColor you have to compile
272         with USE_PAINTER defined (do this in config.h f.ex.) There are
273         still some rought edges, and I'd like some help to clear those
274         out. It looks stable (loads and displays the Userguide very well).
275         
276
277 2000-02-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
278
279         * src/buffer.C (pop_tag): revert to the previous implementation
280         (use a global variable for both loops).
281
282         * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
283
284         * src/lyxrc.C (LyXRC): change slightly default date format.
285
286         * src/paragraph.C (TeXOnePar): Generate a correct latex file when
287         there is an English text with a footnote that starts with a Hebrew
288         paragraph, or vice versa.
289         (TeXFootnote): ditto.
290
291         * src/text.C (LeftMargin): allow for negative values for
292         parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
293         this out.
294
295         * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
296         for input encoding (cyrillic)
297
298 2000-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
299
300         * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
301         Tsur). 
302
303         * src/toolbar.C (set): ditto
304         * src/insets/insetbib.C (create_form_citation_form): ditto
305
306         * lib/CREDITS: added Dekel Tsur.
307
308         * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
309         lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
310         hebrew supports files from Dekel Tsur.
311         
312         * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
313         <tzafrir@technion.ac.il> 
314
315         * src/lyxrc.C: put \date_insert_format at the right place.
316
317         * src/buffer.C (makeLaTeXFile): fix the handling of
318         BufferParams::sides when writing out latex files.
319
320         * src/BufferView2.C: add a "using" directive.
321
322         * src/support/lyxsum.C (sum): when we use lyxstring,
323         ostringstream::str needs an additional .c_str().
324
325 2000-02-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
326
327         * src/support/filetools.C (ChangeExtension): patch from Etienne
328         applied.
329
330         * src/TextCache.C (show): remove const_cast and make second
331         parameter non-const LyXText *.
332
333         * src/TextCache.h: use non const LyXText in show.
334
335         * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
336         with hebrew.
337
338 2000-02-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
339
340         * src/support/lyxsum.C: rework to be more flexible.
341         
342         * several places: don't check if a pointer is 0 if you are going
343         to delete it.
344
345         * src/text.C: remove some dead code.
346
347         * src/insets/figinset.C: remove some dead code
348         
349         * src/buffer.C: move the BufferView funcs to BufferView2.C
350         remove all support for insetlatexdel
351         remove support for oldpapersize stuff
352         made some member funcs const
353
354         * src/kbmap.C: use a std::list to store the bindings in.
355         
356         * src/BufferView2.C: new file
357
358         * src/kbsequence.[Ch]: new files
359         
360         * src/LyXAction.C + others: remove all trace of buffer-previous
361         
362         * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
363         only have one copy in the binary of this table.
364         
365         * hebrew patch: moved some functions from LyXText to more
366         appropriate places. (LyXParagraph, BufferParams, LyXFont)
367         
368         * several files: remove support for XForms older than 0.88
369         whitespace changes.
370         remove some #if 0 #endif code
371         
372         * src/TextCache.[Ch]: new file. Holds the textcache.
373
374         * src/BufferView.C: changes to use the new TextCache interface.
375         (waitForX): remove the now unused code.
376         
377         * src/BackStack.h: remove some commented code
378
379         * lib/bind/emacs.bind: remove binding for buffer-previous
380
381 2000-02-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
382
383         * applied the hebrew patch.
384
385         * src/lyxrow.h: make sure that all Row variables are initialized.
386
387         * src/text2.C (TextHandleUndo): comment out a delete, this might
388         introduce a memory leak, but should also help us to not try to
389         read freed memory. We need to look at this one.
390
391         * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
392         (LyXParagraph): initalize footnotekind.
393
394         * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
395         forgot this when applying the patch. Please heed the warnings.
396
397         * src/BufferView.C (buffer): a fix for the buffer-reload problem
398         (aka. reformat problem)
399
400         * src/bufferlist.C (exists): made const, and use const_iterator
401         (isLoaded): new func.
402         (release): use std::find to find the correct buffer.
403
404         * src/bufferlist.h: made getState a const func.
405         made empty a const func.
406         made exists a const func.
407         new func: isLoaded
408
409 2000-02-01  Juergen Vigna  <jug@sad.it>
410
411         * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
412
413         * po/it.po: updated a bit the italian po file and also changed the
414         'file nuovo' for newfile to 'filenuovo' without a space, this did
415         annoy me a lot :)
416         
417         * src/lyxrc.C (LyXRC): added support for a default insert_date_format
418         for the new insert_date command.
419
420         * src/lyxfunc.C (Dispatch): added support for a insert_date function
421         from jdblair, to insert a date into the current text conforming to
422         a strftime format (for now only considering the locale-set and not
423         the document-language).
424
425 2000-01-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
426
427         * src/lyxfont.C (textWidth): hopefully better fix for the Array
428         Bounds Read error seen by purify. The problem was that islower is
429         a macros which takes an unsigned char and uses it as an index for
430         in array of characters properties (and is thus subject to the
431         above error).
432         (drawText): ditto.
433
434         * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
435         correctly the paper sides radio buttons.
436         (UpdateDocumentButtons): ditto.
437
438 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
439
440         * src/kbmap.C (getsym + others): change to return unsigned int,
441         returning a long can give problems on 64 bit systems. (I assume
442         that int is 32bit on 64bit systems)
443
444 2000-01-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
445
446         * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
447         LyXLookupString to be zero-terminated. Really fixes problems seen
448         by purify, I think.
449
450 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
451
452         * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
453         write a (char*)0 to the lyxerr stream.
454
455         * src/lastfiles.C: move algorithm before the using statemets.
456
457 2000-01-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
458
459         * src/lastfiles.C: move using directives in global scope (egcs 1.x
460         complains otherwise).
461         * src/table.C: ditto
462
463         * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
464         directory. 
465
466         * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
467         that I removed earlier... It is really needed.
468
469         * lib/examples/multicol.lyx: new file, splitted from Extended.lyx. 
470
471 2000-01-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
472
473         * INSTALL: update xforms home page URL.
474
475         * lib/configure.m4: fix a bug with unreadable layout files.
476
477         * src/table.C (calculate_width_of_column): add "using std::max"
478         directive. 
479
480 2000-01-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
481
482         * several files: marked several lines with "DEL LINE", this is
483         lines that can be deleted without changing anything.
484         if (<ptr>) // DEL LINE  /* this line is _never_ needed. Delete
485                                    checks this anyway */
486                 delete <ptr>
487
488         * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
489
490         * src/DepTable.C (update): add a "+" at the end when the checksum
491         is different. (debugging string only)
492
493         * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
494         the next inset to not be displayed. This should also fix the list
495         of labels in the "Insert Crossreference" dialog.
496
497 2000-01-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
498
499         * src/support/LSubstring.C (LSubstring): set pos to string::npos
500         when regex was not found.
501
502         * src/support/lstrings.C (lowercase): use handcoded transform always.
503         (uppercase): ditto
504
505         * src/text.C (Delete): fixed the crash. cursor.par->prev and
506         old_cursor.par->prev could be 0.
507
508         * several files: changed post inc/dec to pre inc/dec
509         
510         * src/lastfiles.C (writeFile): use ostream_iterator and copy to
511         write the lastfiles to file.
512
513         * src/BufferView.C (buffer): only show TextCache info when debugging
514         (buffer): ditto
515         (resizeCurrentBuffer): ditto
516         (workAreaExpose): ditto
517
518         * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
519
520         * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
521
522         * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
523         a bit better by removing the special case for \i and \j.
524
525 2000-01-24  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
526
527         * src/lyx_main.C (easyParse): remove test for bad comand line
528         options, since this broke all xforms-related parsing.
529
530         * src/kbmap.C (getsym): set return type to unsigned long, as
531         declared in header. On an alpha, long is _not_ the same as int.
532
533         * src/support/LOstream.h: add a "using std::flush;"
534
535         * src/insets/figinset.C: ditto.
536
537 2000-01-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
538
539         * src/bufferlist.C (write): use blinding fast file copy instead of
540         "a char at a time", now we are doing it the C++ way.
541
542         * src/insets/figinset.C: get rid of struct pidwaitpit, use a
543         std::list<int> instead.
544         (addpidwait): reflect move to std::list<int>
545         (sigchldchecker): ditto
546
547         * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
548         version also. 
549
550         * src/paragraph.C (FirstPhysicalPar): remove assert and comment
551         that obviously was wrong...
552
553         * src/lyxfont.C (textWidth): have c as char c[2] instead of char
554         c, this avoids warnings with purify and islower.
555
556         * src/insets/figinset.C: rename struct queue to struct
557         queue_element and rewrite to use a std::queue. gsqueue is now a
558         std::queue<queue_element>
559         (runqueue): reflect move to std::queue
560         (addwait): ditto
561
562         * src/support/lstrings.h (tostr): specialize for bool, otherwise
563         we would get "1" "0" instead of "true" "false. Also make the tostr
564         functions inline.
565
566 2000-01-21  Juergen Vigna  <jug@sad.it>
567
568         * src/buffer.C (writeFileAscii): Disabled code for special groff
569         handling of tabulars till I fix this in table.C
570
571 2000-01-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
572
573         * src/support/mkdir.C (mkdir): change second argument of mkdir to
574         unsigned long int.
575         * src/support/lyxlib.h: ditto.
576
577 2000-01-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
578
579         * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
580         and 'j' look better. This might fix the "macron" bug that has been
581         observed.
582
583         * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
584         functions as one template function. Delete the old versions.
585
586         * src/support/lyxsum.C: move using std::ifstream inside
587         MODERN_STL_STREAMS
588
589         * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
590         and putenv.C
591
592         * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
593
594         * src/mathed/formula.C: delete #include "bufferlist.h" never used
595
596         * src/insets/figinset.C (InitFigures): use new instead of malloc
597         to allocate memory for figures and bitmaps.
598         (DoneFigures): use delete[] instead of free to deallocate memory
599         for figures and bitmaps.
600         (runqueue): use new to allocate 
601         (getfigdata): use new/delete[] instead of malloc/free
602         (RegisterFigure): ditto
603
604         * some files: moved some declarations closer to first use, small
605         whitespace changes use preincrement instead of postincrement where
606         it does not make a difference.
607         
608         * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
609         step on the way to use stl::containers for key maps. 
610
611         * src/bufferlist.h: add a typedef for const_iterator and const
612         versions of begin and end.
613
614         * src/bufferlist.[Ch]: change name of member variable _state to
615         state_. (avoid reserved names)
616         (makePup): removed
617         (getFileNames): returns the filenames of the buffers in a vector.
618
619         * configure.in (ALL_LINGUAS): added ro
620
621         * src/support/putenv.C: new file
622
623         * src/support/mkdir.C: new file
624
625 2000-01-20  Allan Rae <rae@lyx.org>
626
627         * lib/layouts/IEEEtran.layout: Added several theorem environments
628
629         * lib/templates/IEEEtran.lyx: Example theorem environments and a
630         couple of minor additions.
631
632         * lib/doc/LaTeXConfig.lyx.in:  Use URL insets for ftp sites 
633         (except for those in footnotes of course)
634
635 2000-01-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
636
637         * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction. 
638
639         * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
640         std::sort and std::lower_bound instead of qsort and handwritten
641         binarysearch.
642         (struct compara): struct that holds the functors used by std::sort
643         and std::lower_bound in MathedLookupBOP.
644
645 2000-01-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
646
647         * src/support/LAssert.h: do not do partial specialization. We do
648         not really need it.
649
650         * src/support/lyxlib.h: note that lyx::getUserName() and
651         lyx::date() are not in use right now. Should these be suppressed?
652
653         * src/buffer.C (makeLaTeXFile): we do not need the user name here.
654         (makeLinuxDocFile): do not put date and user name in linuxdoc
655         headers. 
656
657         * src/support/lyxlib.h (kill): change first argument to long int,
658         since that's what solaris uses.
659
660         * src/support/kill.C (kill): fix declaration to match prototype.
661
662         * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
663         actually check whether namespaces are supported. This is not what
664         it used to do.
665
666         * src/support/lyxsum.C: add a using directive.
667
668 2000-01-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
669
670         * src/support/kill.C: if we have namespace support we don't have
671         to include lyxlib.h.
672
673         * src/support/lyxlib.h: use namespace lyx if supported.
674
675 2000-01-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
676
677         * src/support/date.C: new file
678
679         * src/support/chdir.C: new file
680
681         * src/support/getUserName.C: new file
682
683         * src/support/getcwd.C: new file
684
685         * src/support/abort.C: new file
686
687         * src/support/kill.C: new file
688
689         * src/support/lyxlib.h: moved all the functions in this file
690         insede struct lyx. Added also kill and abort to this struct. This
691         is a way to avoid the "kill is not defined in <csignal>", we make
692         C++ wrappers for functions that are not ANSI C or ANSI C++.
693
694         * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
695         instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
696         lyx it has been renamed to sum.
697
698 2000-01-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
699
700         * src/text.C: add using directives for std::min and std::max.
701
702 2000-01-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
703
704         * src/texrow.C (getIdFromRow): actually return something useful in
705         id and pos. Hopefully fixes the bug with positionning of errorbox
706         insets. 
707
708         * src/lyx_main.C (easyParse): output an error and exit if an
709         incorrect command line option has been given.
710
711         * src/spellchecker.C (ispell_check_word): document a memory leak.
712
713         * src/bufferlist.C (write): fix mismatched allocation/deletion,
714         where a "struct utimbuf" is allocated with "new" and deleted with
715         "delete[]". 
716
717 2000-01-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
718
719         * src/text2.C (CutSelection): don't delete double spaces.
720         (PasteSelection): ditto
721         (CopySelection): ditto
722         
723         * src/text.C (Backspace): don't delete double spaces.
724
725         * src/lyxlex.C (next): fix a bug that were only present with
726         conformant std::istream::get to read comment lines, use
727         std::istream::getline instead. This seems to fix the problem.
728
729 2000-01-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
730
731         * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
732         allowed to insert space before space" editing problem. Please read
733         commends at the beginning of the function. Comments about usage
734         are very welcome.
735
736         * src/text.C (InsertChar): fix for the "not allowed to insert
737         space before space" editing problem.
738
739         * src/text2.C (DeleteEmptyParagraphMechanism): when
740         IsEmptyTableRow can only return false this last "else if" will
741         always be a no-op. Commented out.
742
743         * src/text.C (RedoParagraph): As far as I can understand tmp
744         cursor is not really needed.
745
746         * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
747         present it could only return false anyway. 
748         (several functions): Did something not so smart...added a const
749         specifier on a lot of methods.
750         
751         * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
752         and add a tmp->text.resize. The LyXParagraph constructor does the
753         resize for us.
754         (BreakParagraphConservative): ditto
755
756         * src/support/path.h (Path): add a define so that the wrong usage
757         "Path("/tmp") will be flagged as a compilation error:
758         "`unnamed_Path' undeclared (first use this function)"
759
760 2000-01-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
761
762         * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
763         which was bogus for several reasons.
764
765         * src/LaTeX.C (scanAux): fix the regular expression used to scan
766         .aux files. 
767         (runBibTeX): ditto.
768
769         * autogen.sh: do not use "type -path" (what's that anyway?).
770
771         * src/support/filetools.C (findtexfile): remove extraneous space
772         which caused a kpsewhich warning (at least with kpathsea version
773         3.0). 
774
775 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
776
777         * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
778
779         * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
780
781         * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
782
783 2000-01-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
784
785         * src/paragraph.C (BreakParagraph): do not reserve space on text
786         if we don't need to (otherwise, if pos_end < pos, we end up
787         reserving huge amounts of memory due to bad unsigned karma).
788         (BreakParagraphConservative): ditto, although I have not seen
789         evidence the bug can happen here.
790
791         * src/lyxparagraph.h: add a using std::list.
792
793 2000-01-11  Juergen Vigna  <jug@sad.it>
794
795         * src/menus.C (MenuDocu): output an Alert if the documentation-file
796         could not be found.
797
798 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
799
800         * src/vc-backend.C (doVCCommand): change to be static and take one
801         more parameter: the path to chdir too be fore executing the command.
802         (retrive): new function equiv to "co -r"
803
804         * src/bufferlist.C (loadLyXFile): implement the missing parts if
805         file_not_found_hook is true.
806
807         * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
808
809         * src/support/filetools.C (IsFileWriteable): use FileInfo to check
810         if a file is readwrite,readonly...anything else.
811
812 2000-01-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
813
814         * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
815         (CreatePostscript): name change from MenuRunDVIPS (or something)
816         (PreviewPostscript): name change from MenuPreviewPS
817         (PreviewDVI): name change from MenuPreviewDVI
818
819         * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
820         \view_pdf_command., \pdf_to_ps_command
821
822         * lib/configure.m4: added search for PDF viewer, and search for
823         PDF to PS converter. 
824         (lyxrc.defaults output): add \pdflatex_command,
825         \view_pdf_command and \pdf_to_ps_command.
826
827         * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
828
829         * src/bufferlist.C (write): we don't use blocksize for anything so
830         I removed it.
831
832 2000-01-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
833
834         * src/support/block.h: disable operator T* (), since it causes
835         problems with both compilers I tried. See comments in the file.
836
837         * lib/reLyX/configure.in: do not define LYX_DIR. support flag
838         --with-lyxname. 
839
840         * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
841         variable LYX_DIR_10x to LYX_DIR_11x.
842
843         * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
844
845         * INSTALL: document --with-lyxname.
846         * NEWS: ditto.
847
848         * configure.in: new configure flag --with-lyxname which allows to
849         choose the name under which lyx is installed. Default is "lyx", of
850         course. It used to be possible to do this with --program-suffix,
851         but the later has in fact a different meaning for autoconf.
852
853         * src/support/lstrings.h (lstrchr): reformat a bit.
854
855         * src/lyxlex.h: include LIstream.h, for Sun CC this time.
856         * src/mathed/math_defs.h: ditto.
857
858 2000-01-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
859
860         * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
861         true, decides if we create a backup file or not when saving. New
862         tag and variable \pdf_mode, defaults to false. New tag and
863         variable \pdflatex_command, defaults to pdflatex. New tag and
864         variable \view_pdf_command, defaults to xpdf. New tag and variable
865         \pdf_to_ps_command, defaults to pdf2ps.
866
867 2000-01-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
868
869         * src/bufferlist.C (close): don't call insetUnlock if the buffer
870         does not have a BufferView.
871         (unlockInset): ditto + don't access the_locking_inset if the
872         buffer does not have a BufferView.
873
874         * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
875         certain circumstances so that we don't continue a keyboard
876         operation long after the key was released. Try f.ex. to load a
877         large document, press PageDown for some seconds and then release
878         it. Before this change the document would contine to scroll for
879         some time, with this change it stops imidiatly.
880
881         * src/support/block.h: don't allocate more space than needed. As
882         long as we don't try to write to the arr[x] in a array_type arr[x]
883         it is perfectly ok. (if you write to it you might segfault).
884         added operator value_type*() so that is possible to pass the array
885         to functions expecting a C-pointer.
886
887         * lib/Makefile.am (dist-hook): don't fail completely if unable to
888         cvs.
889
890         * intl/*: updated to gettext 0.10.35, tried to add our own
891         required modifications. Please verify.
892
893         * po/*: updated to gettext 0.10.35, tried to add our own required
894         modifications. Please verify.
895         
896         * src/support/lstrings.C (tostr): go at fixing the problem with
897         cxx and stringstream. When stringstream is used return
898         oss.str().c_str() so that problems with lyxstring and basic_string
899         are avoided. Note that the best solution would be for cxx to use
900         basic_string all the way, but it is not conformant yet. (it seems)
901
902         * src/lyx_cb.C + other files: moved several global functions to
903         class BufferView, some have been moved to BufferView.[Ch] others
904         are still located in lyx_cb.C. Code changes because of this. (part
905         of "get rid of current_view project".)
906
907         * src/buffer.C + other files: moved several Buffer functions to
908         class BufferView, the functions are still present in buffer.C.
909         Code changes because of this.
910
911         * config/lcmessage.m4: updated to most recent. used when creating
912         acinclude.m4.
913
914         * config/progtest.m4: updated to most recent. used when creating
915         acinclude.m4.
916         
917         * config/gettext.m4: updated to most recent. applied patch for
918         tmplinguas.
919
920         * config/gettext.m4.patch: new file that shows what changes we
921         have done to the local copy of gettext.m4.
922
923         * config/libtool.m4: new file, used in creation of acinclude.m4
924
925         * config/lyxinclude.m4: new file, this is the lyx created m4
926         macros, used in making acinclude.m4.
927         
928         * autogen.sh: GNU m4 discovered as a separate task not as part of
929         the lib/configure creation. 
930         Generate acinlucde from files in config. Actually cat
931         lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
932         easier to upgrade .m4 files that really are external.
933
934         * src/Spacing.h: moved using std::istringstream to right after
935         <sstream>. This should fix the problem seen with some compilers.
936
937 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
938
939         * src/lyx_cb.C: began some work to remove the dependency a lot of
940         functions have on BufferView::text, even if not really needed.
941         (GetCurrentTextClass): removed this func, it only hid the
942         current_view. 
943
944         * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
945         forgot this in last commit.
946
947         * src/Bullet.C (bulletEntry): use static char const *[] for the
948         tables, becuase of this the return arg had to change to string.
949         (bulletSize): ditto
950         (~Bullet): removed unneeded destructor
951
952         * src/BufferView.C (beforeChange): moved from lyx_cb.C
953         (insetSleep): moved from Buffer
954         (insetWakeup): moved from Buffer
955         (insetUnlock): moved from Buffer
956
957         * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
958         from Buffer to BufferView.
959         
960         * acinclude.m4: include libtool.m4 from libtool 1.3.4.
961
962         * config/ltmain.sh: updated to version 1.3.4 of libtool
963
964         * config/ltconfig: updated to version 1.3.4 of libtool
965
966 2000-01-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
967
968
969         * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
970         Did I get that right?
971
972         * src/lyxlex.h: add a "using" directive or two.
973         * src/Spacing.h: ditto.
974         * src/insets/figinset.C: ditto.
975         * src/support/filetools.C: ditto.
976         * src/support/lstrings.C: ditto.
977         * src/BufferView.C: ditto.
978         * src/bufferlist.C: ditto.
979         * src/lyx_cb.C: ditto.
980         * src/lyxlex.C: ditto.
981
982         * NEWS: add some changes for 1.1.4.
983         
984 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
985
986         * src/BufferView.C: first go at a TextCache to speed up switching
987         between documents.
988
989 2000-01-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
990
991         * lib/examples/ItemizeBullets.lyx: update from Tino Meinen. 
992         * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
993         * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
994         * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
995         Meinen.
996         
997         * src/mathed/math_defs.h (MathedRowSt): make sure that all
998         members of the struct are correctly initialized to 0 (detected by
999         purify) 
1000         * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
1001         * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
1002
1003         * src/insets/figinset.C (sigchldchecker): use "delete" to free a
1004         pidwait, since it was allocated with "new". This was potentially
1005         very bad. Thanks to Michael Schmitt for running purify for us.
1006
1007
1008 2000-01-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1009
1010         * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
1011
1012         * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
1013
1014 1999-12-30  Allan Rae  <rae@lyx.org>
1015
1016         * lib/templates/IEEEtran.lyx: minor change
1017
1018         * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
1019         src/mathed/formula.C (LocalDispatch): askForText changes
1020
1021         * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we 
1022         know when a user has cancelled input. Fixes annoying problems with
1023         inserting labels and version control.
1024
1025 1999-12-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1026
1027         * src/support/lstrings.C (tostr): rewritten to use strstream and
1028         stringstream
1029
1030 1999-12-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
1031
1032         * src/support/filetools.C (IsFileWriteable): use fstream to check
1033         (IsDirWriteable): use fileinfo to check
1034
1035         * src/support/filetools.h (FilePtr): whole class deleted
1036
1037         * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
1038
1039         * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
1040
1041         * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
1042
1043         * src/bufferlist.C (write): use ifstream and ofstream instead of
1044         FILE*
1045
1046         * src/Spacing.h: use istrstream instead of sscanf
1047
1048         * src/mathed/math_defs.h: change first arg to istream from FILE*
1049
1050         * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
1051
1052         * src/mathed/math_parser.C: have yyis to be an istream 
1053         (LexGetArg): use istream (yyis)
1054         (yylex): ditto
1055         (mathed_parse): ditto
1056         (mathed_parser_file): first arg istream instead of FILE*, set yyis
1057
1058         * src/mathed/formula.C (Read): rewritten to use istream
1059
1060         * src/mathed/formulamacro.C (Read): rewritten to use istream
1061
1062         * src/lyxlex.h (~LyXLex): deleted desturctor 
1063         (getStream): new function, returns an istream
1064         (getFile): deleted funtion
1065         (IsOK): return is.good();
1066
1067         * src/lyxlex.C (LyXLex): delete file and owns_file
1068         (setFile): open an filebuf and assign that to a istream instead of
1069         using FILE*
1070         (setStream): new function, takes an istream as arg. 
1071         (setFile): deleted function
1072         (EatLine): rewritten us use istream instead of FILE*
1073         (next): ditto
1074         (nextToken): ditto
1075
1076         * src/table.C (LyXTable): use istream instead of FILE*
1077         (Read): rewritten to take an istream instead of FILE*
1078
1079 1999-12-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1080
1081         * src/buffer.C (Dispatch): remove an extraneous break statement.
1082
1083         * src/support/filetools.C (QuoteName): change to do simple
1084         'quoting'. More work is necessary. Also changed to do nothing
1085         under emx (needs fix too).
1086         (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
1087
1088         * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
1089         config.h.in to the AC_DEFINE_UNQUOTED() call.
1090         (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
1091         needs char * as argument (because Solaris 7 declares it like
1092         that). 
1093
1094         * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
1095         remove definition of BZERO.
1096
1097 1999-12-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1098
1099         * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
1100         defined, "lyxregex.h" if not.
1101
1102         * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
1103         pkglib_ to noinst_
1104         (REGEX): new variable that is set to regex.c lyxregex.h when
1105         AM_CONDITIONAL USE_REGEX is set.
1106         (libsupport_la_SOURCES): add $(REGEX)
1107
1108         * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
1109         pkglib_ to noinst_
1110
1111         * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
1112         pkglib_ to noinst_
1113
1114         * configure.in: add call to LYX_REGEX 
1115
1116         * acinclude.m4 (LYX_REGEX): checks if we need to use the included
1117         regex or not. Uses a a AM_CONDITIONAL to decide what to compile. 
1118
1119 1999-12-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1120
1121         * lib/bind/fi_menus.bind: new file, from
1122         pauli.virtanen@saunalahti.fi. 
1123
1124         * src/buffer.C (getBibkeyList): pass the parameter delim to
1125         InsetInclude::getKeys and InsetBibtex::getKeys.
1126
1127         * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
1128         is passed to Buffer::getBibkeyList
1129         
1130         * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
1131         instead of the hardcoded comma.
1132
1133         * src/insets/insetbib.C (getKeys): make sure that there are not
1134         leading blanks in bibtex keys. Normal latex does not care, but
1135         harvard.sty seems to dislike blanks at the beginning of citation
1136         keys. In particular, the retturn value of the function is
1137
1138         * INSTALL: make it clear that libstdc++ is needed and that gcc
1139         2.7.x probably does not work.
1140
1141         * src/support/filetools.C (findtexfile): make debug message go to
1142         the LATEX channel
1143         * src/insets/insetbib.C (getKeys): ditto
1144
1145         * src/debug.C (showTags): make sure that the output is correctly
1146         aligned. 
1147
1148         * configure.in: add a comment for TWO_COLOR_ICON define.
1149
1150         * acconfig.h: remove all the entries that already defined in
1151         configure.in or acinclude.m4.
1152
1153         * src/buffer.C (makeLaTeXFile): headers of latex file also changed
1154         to avoid user name, date and copyright.
1155
1156 1999-12-21  Juergen Vigna  <jug@sad.it>
1157
1158         * src/table.C (Read): Now read bogus row format informations
1159                 if the format is < 5 so that afterwards the table can
1160                 be read by lyx but without any format-info. Fixed the
1161                 crash we experienced when not doing this.
1162
1163 1999-12-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
1164
1165         * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
1166         (RedoDrawingOfParagraph): ditto
1167         (RedoParagraphs): ditto
1168         (RemoveTableRow): ditto
1169
1170         * src/text.C (Fill): rename arg paperwidth -> paper_width
1171
1172         * src/buffer.C (insertLyXFile): rename var filename -> fname
1173         (writeFile): rename arg filename -> fname
1174         (writeFileAscii): ditto
1175         (makeLaTeXFile): ditto
1176         (makeLinuxDocFile): ditto
1177         (makeDocBookFile): ditto
1178
1179         * src/LaTeX.C (runMakeIndex): change arg name from file -> f
1180         (runBibTeX): ditto
1181
1182         * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
1183
1184         * src/bmtable.h: add extern "C" on this file when __cplusplus is
1185         defined.
1186
1187         * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
1188         compiled by a C compiler not C++. 
1189
1190         * src/layout.h (LyXTextClass): added typedef for const_iterator
1191         (LyXTextClassList): added typedef for const_iterator + member
1192         functions begin and end.
1193
1194         * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
1195         iterators to fill the choice_class.
1196         (updateLayoutChoice): rewritten to use iterators to fill the
1197         layoutlist in the toolbar.
1198
1199         * src/BufferView.h (BufferView::work_area_width): removed unused
1200         variable. 
1201
1202         * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
1203
1204         * src/buffer.C (sgmlOpenTag): drop the use of the static space array
1205         (sgmlCloseTag): ditto
1206
1207         * src/support/lstrings.h: return type of countChar changed to
1208         unsigned char.
1209
1210         * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1211         what version of this func to use. Also made to return unsigned int.
1212
1213         * configure.in: call LYX_STD_COUNT 
1214
1215         * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1216         conforming std::count. 
1217
1218 1999-12-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1219
1220         * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1221         and a subscript would give bad display (patch from Dekel Tsur
1222         <dekel@math.tau.ac.il>). 
1223
1224         * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public. 
1225
1226         * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1227         please sun CC.
1228
1229         * src/chset.h: add a few 'using' directives
1230
1231         * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1232         triggered when no buffer is active
1233
1234         * src/layout.C: removed `break' after `return' in switch(), since
1235         it is unreachable.
1236
1237         * src/lyx_main.C (init): make sure LyX can be ran in place even
1238         when libtool has done its magic with shared libraries. Fix the
1239         test for the case when the system directory has not been found.
1240
1241         * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1242         name for the latex file.
1243         (MenuMakeHTML): ditto
1244
1245         * src/buffer.h: add an optional boolean argument, which is passed
1246         to ChangeExtension.
1247
1248 1999-12-20  Allan Rae  <rae@lyx.org>
1249
1250         * lib/templates/IEEEtran.lyx: small correction and update.
1251
1252         * configure.in: Attempted to use LYX_PATH_HEADER
1253
1254         * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1255
1256         * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1257         input from JMarc.  Now use preprocessor to find the header.
1258         Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1259         (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1260         LYX_STL_STRING_FWD.  See comments in file.      
1261
1262 1999-12-19  Asger Alstrup Nielsen  <alstrup@diku.dk>
1263
1264         * The global MiniBuffer * minibuffer variable is dead.
1265         
1266         * The global FD_form_main * fd_form_main variable is dead.
1267
1268 1999-12-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1269
1270         * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1271
1272         * src/table.h: add the LOstream.h header
1273         * src/debug.h: ditto
1274         
1275         * src/LyXAction.h: change the explaination of the ReadOnly
1276         attribute: is indicates that the function _can_ be used.
1277
1278         * src/LyXAction.C (init): find-replace _can_ be used in read-only
1279         mode. 
1280
1281 1999-12-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1282
1283         * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1284         unsigned. 
1285         (descent): ditto
1286         (lbearing): ditto
1287         (rbearing): ditto
1288
1289         * src/paragraph.C (GetWord): assert on pos>=0
1290         (GetChar): ditto
1291         
1292         * src/support/lyxstring.C: condition the use of an invariant on
1293         ENABLE_ASSERTIONS 
1294         * src/support/lyxstring.h: ditto
1295
1296         * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1297         Use LAssert.h instead of plain assert().
1298
1299         * src/support/lstrings.h: add LAssert.h, in case it is needed.
1300
1301         * src/lyxfunc.C: do not include LAssert.h, it is not used.
1302         * src/support/filetools.C: ditto
1303
1304         * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1305         is not defined. 
1306
1307         * INSTALL: document the new configure flags
1308         
1309         * configure.in: suppress --with-debug; add --enable-assertions
1310
1311         * acinclude.m4: various changes in alignment of help strings.
1312
1313 1999-12-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
1314
1315         * src/kbmap.C: commented out the use of the hash map in kb_map,
1316         beginning of movement to a stl::container. 
1317
1318         * several files: removed code that was not in effect when
1319         MOVE_TEXT was defined.
1320         
1321         * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1322         for escaping should not be used. We can discuss if the string
1323         should be enclosed in f.ex. [] instead of "".
1324
1325         * src/trans_mgr.C (insert): use the new returned value from
1326         encodeString to get deadkeys and keymaps done correctly.
1327
1328         * src/chset.C (encodeString): changed to return a pair, to tell
1329         what to use if we know the string.
1330
1331         * src/lyxscreen.h (fillArc): new function.
1332
1333         * src/FontInfo.C (resize): rewritten to use more std::string like
1334         structore, especially string::replace.
1335
1336         * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1337         approp. accents.
1338
1339         * configure.in (chmod +x some scripts): remove config/gcc-hack 
1340
1341 1999-12-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1342
1343         * src/buffer.C (writeFile): change once again the top comment in a
1344         .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1345         instead of an hardcoded version number.
1346         (makeDocBookFile): ditto
1347
1348         * src/version.h: add new define LYX_DOCVERSION
1349
1350         * po/de.po: update from Pit Sütterlin
1351         * lib/bind/de_menus.bind: ditto.
1352         
1353         * src/lyxfunc.C (Dispatch): call MenuExport()
1354         * src/buffer.C (Dispatch): ditto
1355
1356         * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1357         LyXFunc::Dispatch().
1358         (MenuExport): new function, moved from
1359         LyXFunc::Dispatch().
1360
1361         * src/trans_mgr.C (insert): small cleanup
1362         * src/chset.C (loadFile): ditto
1363
1364         * lib/kbd/iso8859-1.cdef: add missing backslashes
1365
1366 1999-12-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
1367
1368         * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1369         help with placing the manually drawn accents better.
1370         (Rbearing): ditto
1371         (Draw): x2 and hg changed to float to minimize rounding errors and
1372         help place the accents better.
1373
1374         * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1375         unsigned short to char is just wrong...cast the char to unsigned
1376         char instead so that the two values can compare sanely. This
1377         should also make the display of insetlatexaccents better and
1378         perhaps also some other insets.
1379         (descent): ditto
1380         (lbearing): new function
1381         (rbearing): ditto
1382
1383 1999-12-15  Allan Rae  <rae@lyx.org>
1384
1385         * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES):  added new
1386         header that provides a wrapper around the very annoying SGI STL header
1387         of the same name.
1388
1389         * src/support/lyxstring.C, src/LString.h:
1390         removed old SGI-STL-compatability attempts.
1391
1392         * configure.in: Use LYX_STL_STRING_FWD.
1393
1394         * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if 
1395         stl_string_fwd.h is around and try to determine it's location.
1396         Major improvement over previous SGI STL 3.2 compatability.
1397         Three small problems remain with this function due to my zero
1398         knowledge of autoconf.  JMarc and lgb see the comments in the code.
1399
1400 1999-12-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1401
1402         * src/broken_const.h, config/hack-gcc, config/README: removed
1403         
1404         * configure.in: remove --with-gcc-hack option; do not call
1405         LYX_CXX_STL_STACK 
1406
1407         * INSTALL: remove documentation of --with-broken-const and
1408         --with-gcc-hack
1409         
1410         * acconfig.h: remove all trace of BROKEN_CONST define
1411
1412         * src/buffer.C (makeDocBookFile): update version number in output
1413         file. 
1414         (SimpleDocBookOnePar): fix an assert when trying to a character
1415         access beyond string length
1416         [Patch from Jose']
1417
1418 1999-12-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1419
1420         * po/de.po: fix the Export menu
1421
1422         * lyx.man: update the description of -dbg
1423
1424         * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1425         (commandLineHelp): updated
1426         (easyParse): show list of available debug levels if -dbg is passed
1427         without argument.
1428
1429         * src/Makefile.am: add debug.C
1430
1431         * src/debug.h: moved some code to debug.C
1432
1433         * src/debug.C: new file. Contains code to set and show debug
1434         level. 
1435
1436         * src/layout.C: remove 'break' after 'continue' in switch
1437         statements, since these cannot be reached.
1438
1439 1999-12-13  Allan Rae  <rae@lyx.org>
1440
1441         * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1442         (in_word_set): hash() -> math_hash()
1443
1444         * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support 
1445
1446         * acconfig.h: Added a test for whether we are using exceptions in the
1447         current compilation run. If so USING_EXCEPTIONS is defined.
1448
1449         * config.in: Check for existance of stl_string_fwd.h
1450         * src/LString.h: If compiling --with-included-string and SGI's
1451         STL version 3.2 is present (see above test) we need to block their
1452         forward declaration of string and supply a __get_c_string().
1453         However, it turns out this is only necessary if compiling with
1454         exceptions enabled so I've a bit more to add yet.
1455
1456         * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1457           src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1458           src/support/LRegex.h, src/undo.h:
1459         Shuffle the order of the included files a little to ensure that
1460         LString.h gets included before anything that includes stl_string_fwd.h
1461
1462         *  src/support/lyxstring.C: We need to #include LString.h instead of
1463         lyxstring.h to get the necessary definition of __get_c_string.
1464         (__get_c_string): New function.  This is defined static just like SGI's
1465         although why they need to do this I'm not sure.  Perhaps it should be
1466         in lstrings.C instead.
1467
1468         * lib/templates/IEEEtran.lyx:  New template file.
1469
1470 1999-12-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
1471         
1472         * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1473         * intl/Makefile.in (MKINSTALLDIRS):  ditto
1474
1475         * src/LyXAction.C (init): changed to hold the LFUN data in a
1476         automatic array in stead of in callso to newFunc, this speeds up
1477         compilation a lot. Also all the memory used by the array is
1478         returned when the init is completed.
1479
1480         * a lot of files: compiled with -Wold-style-cast, changed most of
1481         the reported offenders to C++ style casts. Did not change the
1482         offenders in C files. 
1483
1484         * src/trans.h (Match): change argument type to unsigned int.
1485
1486         * src/support/DebugStream.C: fix some types on the streambufs so
1487         that it works on a conforming implementation.
1488
1489 1999-12-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1490
1491         * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1492
1493         * src/support/lyxstring.C: remove the inline added earlier since
1494         they cause a bunch of unsatisfied symbols when linking with dec
1495         cxx. Cxx likes to have the body of inlines at the place where they
1496         are declared.
1497
1498         * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1499         accessing negative bounds in array. This fixes the crash when
1500         inserting accented characters.
1501         * src/trans.h (Match): ditto
1502
1503         * src/buffer.C (Dispatch): since this is a void, it should not try
1504         to return anything...
1505
1506 1999-12-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
1507
1508         * src/buffer.h: removed the two friends from Buffer. Some changes
1509         because of this. Buffer::getFileName and Buffer::setFileName
1510         renamed to Buffer::fileName() and Buffer::fileName(...).
1511
1512 1999-12-09  Lars Gullik Bjønnes <larsbj@lyx.org>
1513
1514         * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1515         and Buffer::update(short) to BufferView. This move is currently
1516         controlled by a define MOVE_TEXT, this will be removed when all
1517         shows to be ok. This move paves the way for better separation
1518         between buffer contents and buffer view. One side effect is that
1519         the BufferView needs a rebreak when swiching buffers, if we want
1520         to avoid this we can add a cache that holds pointers to LyXText's
1521         that is not currently in use. 
1522
1523         * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1524         André Pönitz. 
1525
1526 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1527
1528         * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1529
1530         * lyx_main.C: new command line option -x (or --execute) and
1531           -e (or --export). Now direct conversion from .lyx to .tex
1532           (.dvi, .ps, ...) is possible  ('lyx file.lyx --export latex')
1533           Unfortunately, X is still needed and the GUI pops up during the
1534           process...
1535
1536 1999-12-07  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1537
1538         * src/Spacing.C: add a using directive to bring stream stuff into
1539         normal namespace.
1540         * src/paragraph.C: ditto
1541         * src/buffer.C: ditto
1542
1543         * NEWS: updated a bit the new features of 1.1.3 (took a few things
1544         from Lars' announcement).
1545
1546         * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1547         example files from Tino Meinen.
1548         
1549 1999-12-06  Allan Rae  <rae@lyx.org>
1550
1551         * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1552
1553 1999-12-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
1554
1555         * src/support/lyxstring.C: added a lot of inline for no good
1556         reason
1557         
1558         * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1559         latexWriteEndChanges, they were not used.
1560         
1561         * src/layout.h (operator<<): output operator for PageSides
1562
1563         * src/mathed/math_iter.C (my_memcpy): slightly changed.
1564
1565         * some example files: loaded in LyX 1.0.4 and saved again to update
1566         certain constructs (table format) 
1567
1568         * a lot of files: did the change to use fstream/iostream for all
1569         writing of files. Done with a close look at Andre Poenitz's patch.
1570
1571         * some files: whitespace changes.
1572         
1573 1999-12-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1574
1575         * src/mathed/math_iter.C (my_memcpy): new function. Since the
1576         built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1577         architecture, we provide our own. It is used unconditionnally, but
1578         I do not think this is a performance problem. Thanks to Angus
1579         Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1580         Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1581         first time).
1582         (GetInset): use my_memcpy.
1583         (Insert): ditto
1584         (Copy): ditto
1585
1586         * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1587         it is easier to understand, but it uses less TeX-only constructs now.
1588
1589         * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1590         elements contain spaces
1591
1592         * lib/configure: regenerated
1593         
1594         * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1595         elements contain spaces; display the list of programs that are
1596         tried.
1597
1598         * autogen.sh: make sure lib/configure is executable
1599
1600         * lib/examples/*: rename the tutorial examples to begin with the
1601         two-letters language code.
1602
1603         * src/lyxfunc.C (getStatus): do not query current font if no
1604         buffer exists.
1605
1606         * src/lyx_cb.C (RunScript): use QuoteName
1607         (MenuRunDvips): ditto
1608         (PrintApplyCB): ditto
1609
1610         * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1611         around argument, so that it works well with the current shell.
1612         Does not work properly with OS/2 shells currently.
1613
1614         * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1615         * src/LyXSendto.C (SendtoApplyCB): ditto
1616         * src/lyxfunc.C (Dispatch): ditto
1617         * src/buffer.C (runLaTeX): ditto
1618         (runLiterate): ditto
1619         (buildProgram): ditto
1620         (runChktex): ditto
1621         * src/lyx_cb.C (RunScript): ditto
1622         (MenuMakeLaTeX): ditto
1623         
1624         * src/buffer.h (getLatexName): new method 
1625
1626         * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1627
1628 1999-12-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1629
1630         * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1631         * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1632         (create_math_panel): ditto
1633
1634         * src/lyxfunc.C (getStatus): re-activate the code which gets
1635         current font and cursor; add test for export to html.
1636
1637         * src/lyxrc.C (read): remove unreachable break statements; add a
1638         few "using".
1639
1640         * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1641         
1642 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1643
1644         * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1645         introduced by faulty regex.
1646         * src/buffer.C: ditto
1647         * src/lastfiles.C: ditto
1648         * src/paragraph.C: ditto
1649         * src/table.C: ditto
1650         * src/vspace.C: ditto
1651         * src/insets/figinset.C: ditto
1652         Note: most of these is absolutely harmless, except the one in
1653         src/mathed formula.C.
1654
1655 1999-11-30  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
1656
1657         * src/ImportNoweb.C (documentclass): fixed bounds for substr
1658           operation, yielding correct results for the reLyX command.
1659
1660 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1661
1662         * src/support/filetools.C (ExpandPath): removed an over eager
1663         Assert.
1664         (ReplaceEnvironmentPath): ditto
1665
1666         * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1667         shows that we are doing something fishy in our code...
1668         (BubblePost): ditto
1669         (ToolbarCB): ditto
1670
1671         * src/lyxrc.C (read): use a double switch trick to get more help
1672         from the compiler. (the same trick is used in layout.C)
1673         (write): new function. opens a ofstream and pass that to output
1674         (output): new function, takes a ostream and writes the lyxrc
1675         elemts to it. uses a dummy switch to make sure no elements are
1676         forgotten. 
1677
1678         * src/lyxlex.h: added a struct pushpophelper for use in functions
1679         with more than one exit point.
1680
1681         * src/lyxlex.[Ch] (GetInteger): made it const
1682         (GetFloat): ditto
1683         (GetBool): ditto
1684
1685         * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1686
1687         * src/layout.[hC] : LayoutTags splitted into several enums, new
1688         methods created, better error handling cleaner use of lyxlex. Read
1689         the diff.
1690
1691         * src/bmtable.[Ch]: change some member prototypes because of the
1692         image const changes. 
1693
1694         * commandtags.h, src/LyXAction.C (init): new function:
1695         "preferences-save", saves the lyxrc entries into .lyx/preferences.
1696         This file is not read automatically but you can add \input
1697         preferences to your lyxrc if you want to. We need to discuss how
1698         to handle this. 
1699
1700         * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1701         in .aux, also remove .bib and .bst files from dependencies when
1702         running bibtex.
1703
1704         * src/BufferView.C, src/LyXView.C: add const_cast several places
1705         because of changes to images.
1706
1707         * lib/images/*: same change as for images/*
1708         
1709         * lib/lyxrc.example: Default for accept_compound is false not no.
1710
1711         * images/*: changed to be const, however I have som misgivings
1712         about this change so it might be changed back.
1713
1714 1999-11-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1715
1716         * lib/configure, po/POTFILES.in: regenerated
1717
1718         * autogen.sh: autogenerate lib/configure from lib/configure.m4
1719
1720         * config/lib_configure.m4: removed
1721         
1722         * lib/configure.m4: new file (was config/lib_configure.m4)
1723
1724         * configure.in: do not test for rtti, since we do not use it.
1725         
1726 1999-11-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
1727
1728         * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1729         doubling of allocated space scheme. This makes it faster for large
1730         strings end to use less memory for small strings. xtra rememoved. 
1731
1732         * src/insets/figinset.C (waitalarm): commented out.
1733         (GhostscriptMsg): use static_cast
1734         (GhostscriptMsg): use new instead of malloc to allocate memory for
1735         cmap. also delete the memory after use.
1736
1737         * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1738
1739         * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1740         for changes in bibtex database or style.
1741         (runBibTeX): remove all .bib and .bst files from dep before we
1742         begin. 
1743         (run): use scanAuc in when dep file already exist.
1744
1745         * src/DepTable.C (remove_files_with_extension): new method
1746         (exist): new method
1747
1748         * src/DepTable.[Ch]: made many of the methods const. 
1749
1750 1999-11-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1751
1752         * src/bufferparams.C: make sure that the default textclass is
1753         "article". It used to be the first one by description order, but
1754         now the first one is "docbook".
1755
1756         * src/lyx_main.C (setDebuggingLevel): change type of argument to
1757         string; call Debug::value.
1758         (easyParse): pass complete argument to setDebuggingLevel().
1759
1760         * src/debug.h (value): fix the code that parses debug levels.
1761
1762         * src/debug.h: add new debug type ACTION, reserved for LyXAction
1763         class.  
1764
1765         * src/LyXAction.C: use Debug::ACTION as debug channel.
1766
1767         * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1768
1769         * NEWS: updated for the future 1.1.3 release.
1770
1771         * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1772         \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1773         it should. This is of course a controversial change (since many
1774         people will find that their lyx workscreen is suddenly full of
1775         red), but done for the sake of correctness.
1776
1777         * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1778           src/mathed/math_root.[Ch] (Clone): return a MathedInset*  
1779
1780         * src/insets/inseterror.h, src/insets/inseturl.h,
1781           src/insets/insetinfo.h, src/insets/figinset.h,
1782           src/mathed/formulamacro.h, src/mathed/math_macro.h
1783           (EditMessage): add a missing const and add _() to make sure that
1784         translation happens
1785
1786         * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1787           src/insets/insetbib.C, src/support/filetools.C: add `using'
1788         directives for cxx.  
1789
1790         * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1791         doing 'Insert index of last word' at the beginning of a paragraph.
1792
1793 1999-11-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1794
1795         * several files: white-space changes.
1796
1797         * src/mathed/formula.C: removed IsAlpha and IsDigit
1798
1799         * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1800         .bib file. use a ifstream instead of FilePtr when parsing the .bib
1801         file for keys.
1802
1803         * src/insets/figinset.C (GetPSSizes): don't break when
1804         "EndComments" is seen. But break when a boundingbox is read.
1805
1806         * all classes inherited from Inset: return value of Clone
1807         changed back to Inset *.
1808
1809         * all classes inherited form MathInset: return value of Clone
1810         changed back to MathedInset *.
1811         
1812         * src/insets/figinset.C (runqueue): use a ofstream to output the
1813         gs/ps file. Might need some setpresicion or setw. However I can
1814         see no problem with the current code.
1815         (runqueue): use sleep instead of the alarm/signal code. I just
1816         can't see the difference.
1817
1818         * src/paragraph.C (LyXParagraph): reserve space in the new
1819         paragraph and resize the inserted paragraph to just fit.
1820
1821         * src/lyxfunc.h (operator|=): added operator for func_status.
1822
1823         * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1824         check for readable file.
1825
1826         * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1827         check for readable file.
1828         (MenuMakeLinuxDoc): ditto
1829         (MenuMakeDocBook): ditto
1830         (MenuMakeAscii): ditto
1831         (InsertAsciiFile): split the test for openable and readable
1832
1833         * src/bmtable.C (draw_bitmaptable): use
1834         fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1835
1836         * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1837         findtexfile from LaTeX to filetools.
1838         
1839         * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1840         instead of FilePtr. Needs to be verified by a literate user.
1841
1842 1999-11-23  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1843
1844         * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1845         (EditMessage): likewise.
1846
1847         * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1848         respectively as \textasciitilde and \textasciicircum.
1849
1850 1999-11-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1851
1852         * src/support/lyxstring.h: made the methods that take iterators
1853         use const_iterator.
1854
1855         * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1856         (regexMatch): made is use the real regex class.
1857
1858         * src/support/Makefile.am: changed to use libtool
1859
1860         * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1861
1862         * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1863         of defines.
1864         (MathIsInset ++): changed several macros to be inline functions
1865         instead. 
1866
1867         * src/mathed/Makefile.am: changed to use libtool
1868
1869         * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1870
1871         * src/insets/inset* : Clone changed to const and return type is
1872         the true insettype not just Inset*.
1873         
1874         * src/insets/Makefile.am: changed to use libtool
1875
1876         * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1877
1878         * src/undo.[Ch] : added empty() and changed some of the method
1879         names.
1880         
1881         * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1882
1883         * src/lyxparagraph.h: use id() and id(...) instead of getID and
1884         setID use block<> for the bullets array, added const several places.
1885
1886         * src/lyxfunc.C (getStatus): new function
1887
1888         * src/lyxfunc.[Ch] : small changes to take advantage of the new
1889         LyXAction, added const to several funtions.
1890
1891         * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1892         a std::map, and to store the dir items in a vector.
1893
1894         * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1895         as dependencies.
1896
1897         * src/LyXView.[Ch] + other files : changed currentView to view.
1898         
1899         * src/LyXAction.[Ch] : ported from the old devel branch.
1900         
1901         * src/.cvsignore: added .libs and a.out
1902
1903         * configure.in : changes to use libtool. 
1904
1905         * acinclude.m4 : inserted libtool.m4
1906
1907         * .cvsignore: added libtool
1908
1909 1999-11-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1910
1911         * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1912         file name in insets and mathed directories (otherwise the
1913         dependency is not taken in account under cygwin).
1914
1915         * src/text2.C (InsertString[AB]): make sure that we do not try to
1916         read characters past the string length.
1917
1918 1999-11-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1919
1920         * lib/doc/LaTeXConfig.lyx.in, 
1921           lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1922
1923         * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1924         file saying who created them and when this heppened; this is
1925         useless and annoys tools like cvs.
1926
1927         * lib/layouts/g-brief-{en,de}.layout,
1928           lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1929         from Thomas Hartkens <thomas@hartkens.de>.
1930
1931         * src/{insets,mathed}/Makefile.am: do not declare an empty
1932         LDFLAGS, so that it can be set at configure time (useful on Irix
1933         for -n32 flag).
1934
1935         * lib/reLyX/configure.in: make sure that the prefix is set
1936         correctly in LYX_DIR.
1937
1938 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1939
1940         * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1941         be used by 'command-sequence' this allows to bind a key to a
1942         sequence of LyX-commands
1943         (Example: 'command-sequence math-insert alpha; math-insert beta;")
1944
1945         * src/LyXAction.C: add "command-sequence"
1946
1947         * src/LyXFunction.C: handling of "command-sequence"
1948
1949         * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1950          &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1951
1952         * src/lyxserver.C, src/minibuffer.C: Use this new interface
1953
1954 1999-11-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1955
1956         * src/buffer.C (writeFile): Do not output a comment giving user
1957         and date at the beginning of a .lyx file. This is useless and
1958         annoys cvs anyway; update version number to 1.1.
1959
1960         * src/Makefile.am (LYX_DIR): add this definition, so that a
1961         default path is hardcoded in LyX.
1962
1963         * configure.in: Use LYX_GNU_GETTEXT.
1964
1965         * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1966         AM_GNU_GETTEXT with a bug fixed. 
1967
1968         * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1969
1970         * src/chset.C: add "using std::ifstream;" to please dec cxx.
1971
1972         * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1973         which is used to point to LyX data is now LYX_DIR_11x.
1974
1975         * lyx.man: convert to a unix text file; small updates.
1976
1977 1999-11-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
1978
1979         * src/support/LSubstring.[Ch]: made the second arg of most of the
1980         constructors be a const reference. 
1981
1982         * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1983         me fixed.
1984
1985         * src/support/lyxstring.[Ch] (swap): added missing member function
1986         and specialization of swap(str, str); 
1987
1988         * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1989
1990         * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1991         trace of the old one.
1992
1993         * src/undo.[Ch]: made the undostack use std::list to store undo's in
1994         put the member definitions in undo.C.
1995
1996         * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1997         NEW_TEXT and have now only code that was included when this was
1998         defined. 
1999
2000         * src/intl.C (LCombo): use static_cast
2001         (LCombo2): ditto
2002         (DispatchCallback): ditto
2003
2004         * src/definitions.h: removed whole file
2005         
2006         * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
2007
2008         * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
2009         parsing and stores in a std:map. a regex defines the file format.
2010         removed unneeded members.
2011
2012         * src/bufferparams.h: added several enums from definitions.h here.
2013         Removed unsused destructor. Changed some types to use proper enum
2014         types. use block to have the temp_bullets and user_defined_bullets
2015         and to make the whole class assignable.
2016
2017         * src/bufferparams.C (Copy): removed this functions, use a default
2018         assignment instead. 
2019
2020         * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
2021         isLiterate const.
2022
2023         * src/buffer.C (readLyXformat2): commend out all that have with
2024         oldpapersize to do. also comment out all that hve to do with
2025         insetlatex and insetlatexdel. 
2026         (setOldPaperStuff): commented out
2027
2028         * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
2029
2030         * src/LyXAction.C: remove use of inset-latex-insert
2031
2032         * src/mathed/math_panel.C (button_cb): use static_cast
2033
2034         * src/insets/Makefile.am (insets_o_SOURCES): removed
2035         insetlatex.[Ch] 
2036
2037         * src/support/lyxstring.C (helper): use the unsigned long
2038         specifier, UL, instead of a static_cast.
2039
2040         * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
2041
2042         * src/support/block.h: new file. to be used as a c-style array in
2043         classes, so that the class can be assignable.
2044
2045 1999-11-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2046
2047         * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
2048         NULL, make sure to return an empty string (it is not possible to
2049         set a string to NULL).
2050
2051 1999-11-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2052
2053         * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
2054
2055         * src/support/lyxstring.C (helper): fix bogus cast in assertion.
2056
2057         * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
2058         link line, so that Irix users (for example) can set it explicitely to
2059         "-n32".
2060         
2061         * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
2062         it can be overidden at make time (static or dynamic link, for
2063         example).
2064         
2065         * src/vc-backend.C, src/LaTeXFeatures.h, 
2066           src/support/LRegex.C, src/support/LRegex.h: add a few "using" 
2067         statements to bring templates to global namespace.
2068
2069 1999-11-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
2070
2071         * src/support/lyxstring.C (operator[] const): make it standard
2072         conforming. 
2073
2074         * src/minibuffer.C (Init): changed to reflect that more
2075         information is given from the lyxvc and need not be provided here.
2076
2077         * src/lyxvc.[Ch]: rewrote to use the vc-backend.
2078         
2079         * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
2080
2081         * src/LyXView.C (UpdateTimerCB): use static_cast
2082         (KeyPressMask_raw_callback): ditto
2083
2084         * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
2085         buffer_, a lot of changes because of this. currentBuffer() ->
2086         buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
2087         also changes to other files because of this.
2088
2089 1999-11-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
2090
2091         * src/vc-backend.[Ch]: new files. The backends for vc handling,
2092         have no support for RCS and partial support for CVS, will be
2093         improved later.
2094         
2095         * src/insets/ several files: changes because of function name
2096         changes in Bufferview and LyXView.
2097         
2098         * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
2099
2100         * src/support/LSubstring.[Ch]: new files. These implement a
2101         Substring that can be very convenient to use. i.e. is this
2102         possible:
2103         string a = "Mary had a little sheep";
2104         Substring(a, "sheep") = "lamb";
2105         a is now "Mary has a little lamb".
2106
2107         * src/support/LRegex.[Ch]: a regex class that can be used to pick
2108         out patterns and subpatterns of strings. It is used by LSubstring
2109         and also by vc-backend.C
2110         
2111         * src/support/lyxstring.C: went over all the assertions used and
2112         tried to correct the wrong ones and flag which of them is required
2113         by the standard. some bugs found because of this. Also removed a
2114         couple of assertions.
2115
2116         * src/support/Makefile.am (libsupport_a_SOURCES): added
2117         LSubstring.[Ch] and LRegex.[Ch]
2118
2119         * src/support/FileInfo.h: have struct stat buf as an object and
2120         not a pointer to one, some changes because of this.
2121
2122         * src/LaTeXFeatures.C (getTClassPreamble): also use the
2123         information in layout when adding the layouts preamble to the
2124         textclass preamble.
2125
2126         * src/LaTeXFeatures.h: use a vector<bool> to store the layout
2127         usage in.
2128
2129         * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
2130         because of bug in OS/2.
2131
2132 1999-11-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2133
2134         * lib/layouts/lyxmacros.inc (lyxcode): set the font with
2135         \verbatim@font instead of \ttfamily, so that it can be redefined.
2136
2137         * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
2138           src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
2139           src/layout.h, src/text2.C: add 'using' directive to bring the
2140         STL templates we need from the std:: namespace to the global one.
2141         Needed by DEC cxx in strict ansi mode.
2142
2143         * src/support/LIstream.h,src/support/LOstream.h,
2144           src/support/lyxstring.h,src/table.h,
2145           src/lyxlookup.h: do not include <config.h> in header
2146         files. This should be done in the .C files only.
2147
2148         * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
2149         (from Kayvan).
2150         
2151
2152 1999-11-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2153
2154         * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
2155         from Kayvan to fix the tth invokation.
2156
2157         * development/lyx.spec.in: updates from Kayvan to reflect the
2158         changes of file names.
2159
2160 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
2161
2162         * src/text2.C (InsertStringB): use std::copy
2163         (InsertStringA): use std::copy
2164
2165         * src/bufferlist.C: use a vector to store the buffers in. This is
2166         an internal change and should not affect any other thing.
2167         
2168         * src/BufferView.C (waitForX): use XSync instead of the lengthy
2169         stuff in waitForX.
2170
2171         * src/text.C (Fill): fix potential bug, one off bug.
2172
2173 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
2174
2175         * src/Makefile.am (lyx_main.o): add more files it depends on.
2176
2177         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
2178
2179         * src/support/lyxstring.C: use size_t for the reference count,
2180         size, reserved memory and xtra.
2181         (internal_compare): new private member function. Now the compare
2182         functions should work for std::strings that have embedded '\0'
2183         characters.
2184         (compare): all compare functions rewritten to use
2185         internal_compare.
2186         
2187 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
2188
2189         * src/support/lyxstring.C (compare): pass c_str()
2190         (compare): pass c_str
2191         (compare): pass c_str
2192
2193 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2194
2195         * src/support/DebugStream.C: <config.h> was not included correctly.
2196
2197         * lib/configure: forgot to re-generate it :( I'll make this file
2198         auto generated soon.
2199
2200 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
2201
2202         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
2203         is used.
2204
2205         * src/support/lyxstring.C: some changes from length() to rep->sz.
2206         avoids a function call.
2207
2208         * src/support/filetools.C (SpaceLess): yet another version of the
2209         algorithm...now per Jean-Marc's suggestions.
2210
2211 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
2212
2213         * src/layout.C (less_textclass_desc): functor for use in sorting
2214         of textclasses. 
2215         (LyXTextClass::Read): sort the textclasses after reading.
2216         
2217         * src/support/filetools.C (SpaceLess): new version of the
2218         SpaceLess functions. What problems does this one give? Please
2219         report.
2220
2221         * images/banner_bw.xbm: made the arrays unsigned char *
2222
2223 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2224
2225         * src/support/lyxstring.C (find): remove bogus assertion in the
2226         two versions of find where this has not been done yet.
2227
2228         * src/support/lyxlib.h: add missing int return type to
2229         lyx::chdir(). 
2230
2231         * src/menus.C (ShowFileMenu): disable exporting to html if no
2232         html export command is present.
2233
2234         * config/lib_configure.m4: add a test for an HTML converter. The
2235         programs checked for are, in this order: tth, latex2html and
2236         hevea. 
2237
2238         * lib/configure: generated from config/lib_configure.m4.
2239
2240         * src/lyxfunc.C (Dispatch): update and improve the execution of an
2241         html converter. The parameters are now passed through $$FName and
2242         $$OutName, instead of standard input/output.
2243
2244         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2245
2246         * lib/lyxrc.example: update description of \html_command. 
2247         add "quotes" around \screen_font_xxx font setting examples to help
2248         people who use fonts with spaces in their names.
2249
2250 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
2251
2252         * Distribution files: updates for v1.1.2
2253
2254         * src/support/lyxstring.C (find): remove bogus assert and return
2255         npos for the same condition.
2256
2257 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
2258
2259         * added patch for OS/2 from SMiyata.
2260
2261 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
2262
2263         * src/text2.C (CutSelection): make space_wrapped a bool
2264         (CutSelection): dont declare int i until we have to.
2265         (alphaCounter): return a char const *.
2266
2267 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2268
2269         * src/support/syscall.C (Systemcalls::kill): 
2270           src/support/filetools.C (PutEnv, PutEnvPath): 
2271           src/lyx_cb.C (addNewlineAndDepth): 
2272           src/FontInfo.C (FontInfo::resize): condition some #warning
2273         directives with WITH_WARNINGS.
2274         
2275
2276 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
2277
2278         * src/layout.[Ch] + several files: access to class variables
2279         limited and made accessor functions instead a lot of code changed
2280         becuase of this. Also instead of returning pointers often a const
2281         reference is returned instead.
2282         
2283         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2284
2285         * src/Makefile.am (dist-hook): added used to remove the CVS from
2286         cheaders upon creating a dist
2287         (EXTRA_DIST): added cheaders
2288
2289         * src/support/lstrings.C (tostr(char)): fix it to handle param as
2290         a character not as a small integer. 
2291
2292         * src/support/lyxstring.C (find): removed Assert and added i >=
2293         rep->sz to the first if.
2294
2295 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
2296
2297         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2298         src/LyXView.C src/buffer.C src/bufferparams.C
2299         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
2300         src/text2.C src/insets/insetinclude.C:
2301         lyxlayout renamed to textclasslist.
2302
2303         * src/layout.C: some lyxerr changes.
2304
2305         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2306         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2307         (LyXLayoutList): removed all traces of this class.
2308         (LyXTextClass::Read): rewrote LT_STYLE
2309         (LyXTextClass::hasLayout): new function
2310         (LyXTextClass::GetLayout): rewritten to return an iterator + has
2311         both const and nonconst version.
2312         (LyXTextClass::delete_layout): new function.
2313         (LyXTextClassList::Style): bug fix. do the right thing if layout
2314         is to big.
2315         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2316         (LyXTextClassList::NameOfLayout): ditto 
2317         (LyXTextClassList::Load): ditto
2318
2319         * src/buffer.C (makeLaTeXFile): new access to layoutlist
2320
2321         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2322
2323         * src/LyXAction.C (LookupFunc): added a workaround for sun
2324         compiler, on the other hand...we don't know if the current code
2325         compiles on sun at all...
2326
2327         * src/support/filetools.C (CleanupPath): subst fix
2328
2329         * src/insets/insetbib.C (delDatabase): subst fix, this looks
2330         _really_ weird.
2331
2332         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2333         complained about this one?
2334
2335         * src/insets/insetinclude.C (Latex): subst fix
2336
2337         * src/insets/insetbib.C (getKeys): subst fix
2338
2339         * src/LyXSendto.C (SendtoApplyCB): subst fix
2340
2341         * src/lyx_main.C (init): subst fix
2342
2343         * src/layout.C (Read): subst fix
2344
2345         * src/lyx_sendfax_main.C (button_send): subst fix
2346
2347         * src/buffer.C (RoffAsciiTable): subst fix
2348
2349         * src/lyx_cb.C (MenuFax): subst fix
2350         (PrintApplyCB): subst fix
2351
2352 1999-10-26  Juergen Vigna  <jug@sad.it>
2353
2354         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2355
2356         (Read): Cleaned up this code so now we read only format vestion >= 5
2357
2358 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
2359
2360         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2361         come nobody has complained about this one?
2362
2363         * src/insets/insetinclude.C (Latex): subst fix
2364
2365         * src/insets/insetbib.C (getKeys): subst fix
2366
2367         * src/lyx_main.C (init): subst fix
2368
2369         * src/layout.C (Read): subst fix
2370
2371         * src/buffer.C (RoffAsciiTable): subst fix
2372
2373         * src/lyx_cb.C (MenuFax): subst fix.
2374
2375         * src/layout.[hC] + some other files: rewrote to use
2376         std::container to store textclasses and layouts in.
2377         Simplified, removed a lot of code. Make all classes
2378         assignable. Further simplifications and review of type
2379         use still to be one. 
2380
2381         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2382         lastfiles to create the lastfiles partr of the menu.
2383
2384         * src/lastfiles.[Ch]: rewritten to use deque to store the
2385         lastfiles in. Uses fstream for reading and writing. Simplifies
2386         code.
2387
2388         * src/support/syscall.C: remove explicit cast.
2389
2390         * src/BufferView.C (CursorToggleCB): removed code snippets that
2391         were commented out.
2392         use explicat C++ style casts instead of C style casts. also use
2393         u_vdata instea of passing pointers in longs.
2394
2395         * src/PaperLayout.C: removed code snippets that were commented out.
2396
2397         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
2398
2399         * src/lyx_main.C: removed code snippets that wer commented out.
2400
2401         * src/paragraph.C: removed code snippets that were commented out.
2402
2403         * src/lyxvc.C (logClose): use static_cast
2404         (logUpdate): ditto
2405         (viewLog): remove explicit cast to void*
2406         (showLog): removed old commented code
2407
2408         * src/menus.C: use static_cast instead of C style casts. use
2409         u_vdata instead of u_ldata. remove explicit cast to (long) for
2410         pointers. Removed old code that was commented out.
2411
2412         * src/insets/inset.C: removed old commented func
2413
2414         * src/insets/insetref.C (InsetRef): removed old code that had been
2415         commented out for a long time.
2416         (Edit): ditto
2417         (escape): removed C style cast
2418
2419         * src/insets/insetlatexaccent.C (Draw): removed old commented code
2420
2421         * src/insets/insetlatex.C (Draw): removed old commented code
2422         (Read): rewritten to use string
2423
2424         * src/insets/insetlabel.C (escape): removed C style cast
2425
2426         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2427
2428         * src/insets/insetindex.C: use static_cast and u_vdata, removed
2429         old commented code.
2430
2431         * src/insets/insetinclude.h: removed a couple of stupid bools
2432
2433         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2434         (Clone): remove C style cast
2435         (getKeys): changed list to lst because of std::list
2436
2437         * src/insets/inseterror.C (Draw): removed som old commented code.
2438
2439         * src/insets/insetcommand.C (Draw): removed some old commented code.
2440
2441         * src/insets/insetbib.C (bibitem_cb): removed code that has been
2442         commented out forever.
2443         (bibitem_cb): use static_cast instead of C style cast
2444         use of vdata changed to u_vdata.
2445
2446         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2447         parameter.
2448         (CloseUrlCB): use static_cast instead of C style cast.
2449         (CloseUrlCB): added a fl_free form...it seemed to be missing.
2450
2451         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2452         (C_InsetInfo_CloseInfoCB): forward the ob parameter
2453         (CloseInfoCB): static_cast from ob->u_vdata instead.
2454         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2455         instead. 
2456
2457         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2458         (C_InsetError_CloseErrorCB): forward the ob parameter
2459         (CloseErrorCB): static_cast from ob->u_vdata instead.
2460
2461         * src/vspace.h: include LString.h since we use string in this class.
2462
2463         * src/vspace.C (lyx_advance): changed name from advance because of
2464         nameclash with stl. And since we cannot use namespaces yet...I
2465         used a lyx_ prefix instead. Expect this to change when we begin
2466         using namespaces.
2467
2468         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
2469
2470         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2471         and removed now defunct constructor and deconstructor.
2472
2473         * src/BufferView.h: have backstack as a object not as a pointer.
2474         removed initialization from constructor. added include for BackStack 
2475
2476         * development/lyx.spec.in (%build): add CFLAGS also.
2477
2478         * src/screen.C (drawFrame): removed another warning.
2479
2480 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2481
2482         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2483         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2484         README and ANNOUNCE a bit for the next release. More work is
2485         needed, of course.
2486
2487         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2488         unbreakable if we are in freespacing mode (LyX-Code), but not in
2489         latex mode.
2490
2491 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
2492
2493         * src/BackStack.h: fixed initialization order in constructor
2494
2495         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2496
2497         * acinclude.m4 (VERSION): new rules for when a version is
2498         development, added also a variable for prerelease.
2499         (warnings): we set with_warnings=yes for prereleases
2500         (lyx_opt): prereleases compile with same optimization as development 
2501         (CXXFLAGS): only use pedantic if we are a development version 
2502
2503         * src/BufferView.C (restorePosition): don't do anything if the
2504         backstack is empty.
2505
2506         * src/BackStack.h: added member empty, use this to test if there
2507         is anything to pop...
2508
2509 1999-10-25  Juergen Vigna  <jug@sad.it>
2510
2511         * forms/form1.fd +
2512         * forms/layout_forms.fd +
2513         * forms/latexoptions.fd +
2514         * lyx.fd: changed for various form resize issues
2515
2516         * src/mathed/math_panel.C +
2517         * src/insets/inseterror.C +
2518         * src/insets/insetinfo.C +
2519         * src/insets/inseturl.C +
2520         * src/insets/inseturl.h +
2521         * src/LaTeXLog.C +
2522         * src/LyXSendto.C +
2523         * src/PaperLayout.C +
2524         * src/ParagraphExtra.C +
2525         * src/TableLayout.C +
2526         * src/form1.C +
2527         * src/layout_forms.C +
2528         * src/lyx.C +
2529         * src/lyx_cb.C +
2530         * src/lyx_gui.C +
2531         * src/lyxfr0.C +
2532         * src/lyxfunc.C +
2533         * src/lyxvc.C +
2534         * src/menus.C: fixed various resize issues. So now forms can be
2535         resized savely or not be resized at all.
2536         
2537         * forms/form_url.fd +
2538         * src/insets/form_url.[Ch]: added because it's cleaner and easier
2539         to modify IMO.
2540
2541         * src/insets/Makefile.am: added files form_url.[Ch]
2542         
2543 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2544
2545         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2546         (and presumably 6.2).
2547
2548         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2549         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2550         remaining static member callbacks. 
2551
2552         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2553         messages. 
2554
2555         * src/support/lyxstring.h: declare struct Srep as friend of
2556         lyxstring, since DEC cxx complains otherwise.
2557
2558 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2559
2560 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2561
2562         * src/LaTeX.C (run): made run_bibtex also depend on files with
2563         extension ".bst"
2564         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2565         are put into the dependency file.
2566
2567         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2568         the code has shown itself to work
2569         (create_ispell_pipe): removed another warning, added a comment
2570         instead. 
2571
2572         * src/minibuffer.C (ExecutingCB): removed code that has been
2573         commented out a long time
2574
2575         * src/lyxfunc.C (processKeyEvent): removed some very old commented
2576         out code + a warning.
2577
2578         * src/support/lyxstring.h: comment out the three private
2579         operators, when compiling with string ansi conforming compilers
2580         they make problems.
2581
2582         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2583         unsigned char *.
2584         (pixmapFromBitmapData): change type of bdata to be unsigned char *
2585         (pixmapFromBitmapData): add a reinterpret_cast in the call to
2586         XCreateImage
2587
2588         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2589         unsigned char *
2590
2591         * src/mathed/math_panel.C (create_math_panel): remove explicit
2592         casts
2593
2594         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2595         unsigned char *.
2596
2597         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2598         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2599         to XCreatePixmapFromBitmapData
2600         (fl_set_bmtable_data): change the last argument to be unsigned
2601         char *
2602         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2603         and bh to be unsigned int, remove explicit casts in call to
2604         XReadBitmapFileData.
2605
2606         * images/arrows.xbm: made the arrays unsigned char *
2607         * images/varsz.xbm: ditto
2608         * images/misc.xbm: ditto
2609         * images/greek.xbm: ditto
2610         * images/dots.xbm: ditto
2611         * images/brel.xbm: ditto
2612         * images/bop.xbm: ditto
2613
2614         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2615
2616         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
2617         (LYX_PROG_CXX): added -pedantic to g++ compile options when
2618         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2619         needed. 
2620         (LYX_CXX_CHEADERS): added <clocale> to the test. 
2621
2622 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
2623
2624         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2625
2626         * src/support/lyxstring.C (append): fixed something that must be a
2627         bug, rep->assign was used instead of rep->append.
2628
2629         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2630         and LOstream.h
2631
2632         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2633         lyx insert double chars. Fix spotted by Kayvan.
2634
2635 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
2636
2637         * Fixed the tth support. I messed up with the Emacs patch apply feature
2638         and omitted the changes in lyxrc.C.
2639
2640 1999-10-22  Juergen Vigna  <jug@sad.it>
2641
2642         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2643
2644         * src/lyx_cb.C (MenuInsertRef) + 
2645         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2646         the form cannot be resized under it limits (fixes a segfault)
2647         
2648         * src/lyx.C (create_form_form_ref) +
2649         * forms/lyx.fd: Changed Gravity on name input field so that it is
2650         resized correctly.
2651
2652 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2653
2654         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2655         <ostream> and <istream>.
2656         
2657         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2658         whether <fstream> provides the latest standard features, or if we
2659         have an oldstyle library (like in egcs).
2660         (LYX_CXX_STL_STRING): fix the test.
2661
2662         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2663         code on MODERN_STL_STREAM.
2664
2665         * src/support/lyxstring.h: use L{I,O}stream.h.
2666
2667         * src/support/L{I,O}stream.h: new files, designed to setup
2668         correctly streams for our use
2669           - includes the right header depending on STL capabilities
2670           - puts std::ostream and std::endl (for LOStream.h) or
2671           std::istream (LIStream.h) in toplevel namespace.
2672
2673 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
2674
2675         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2676         was a bib file that had been changed we ensure that bibtex is run.
2677         (runBibTeX): enhanced to extract the names of the bib files and
2678         getting their absolute path and enter them into the dep file.
2679         (findtexfile): static func that is used to look for tex-files,
2680         checks for absolute patchs and tries also with kpsewhich.
2681         Alternative ways of finding the correct files are wanted. Will
2682         probably be moved.
2683         (do_popen): function that runs a command using popen and returns
2684         the whole output of that command in a string. Should be moved to
2685         somewhere else.
2686
2687         * src/DepTable.[Ch] (extchanged): new function that returns true if a
2688         file with extension ext has changed.
2689
2690         * src/insets/figinset.C: added ifdef guards around the fl_free
2691         code that jug commented out. Now it is commented out when
2692         compiling with XForms == 0.89.
2693
2694         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2695         to lyxstring.C, and only keep a forward declaration in
2696         lyxstring.h. Simplifies the header file a bit and should help a
2697         bit on compile time too. Also changes to Srep will not mandate a
2698         recompile of code just using string.
2699         (~lyxstring): definition moved here since it uses srep.
2700         (size): definition moved here since it uses srep.
2701
2702         * src/support/lyxstring.h: removed a couple of "inline" that should
2703         not be there.
2704
2705 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2706
2707         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2708         the 'ob' argument.
2709
2710 1999-10-21  Juergen Vigna  <jug@sad.it>
2711
2712         * src/table.C (SetPWidth): Just a small fix so the alignment is not
2713         set to left if I just remove the width entry (or it is empty).
2714
2715         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2716         paragraph when having dummy paragraphs.
2717
2718 1999-10-20  Juergen Vigna  <jug@sad.it>
2719
2720         * src/insets/figinset.C: just commented some fl_free_form calls
2721         and added warnings so that this calls should be activated later
2722         again. This avoids for now a segfault, but we have a memory leak!
2723
2724         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2725         'const char * argument' to 'string argument', this should
2726         fix some Asserts() in lyxstring.C.
2727
2728         * src/lyxfunc.h: Removed the function argAsString(const char *)
2729         as it is not used anymore.
2730
2731 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
2732
2733         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2734         get instead of >>
2735
2736         * src/Literate.h: some funcs moved from public to private to make
2737         interface clearer. Unneeded args removed.
2738
2739         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2740         instead of lyxlex.
2741         (scanBuildLogFile): ditto
2742
2743         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2744         normal TeX Error. Still room for improvement.
2745
2746         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2747
2748         * src/buffer.C (insertErrors): changes to make the error
2749         desctription show properly.
2750
2751         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2752         could never happen
2753
2754         * src/support/lyxstring.C (helper): changed to use
2755         sizeof(object->rep->ref).
2756         (operator>>): changed to use a pointer instead.
2757
2758         * src/support/lyxstring.h: changed const reference & to value_type
2759         const & lets see if that helps.
2760
2761 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
2762
2763         * Makefile.am (rpmdist): fixed to have non static package and
2764         verison.
2765
2766         * src/support/lyxstring.C: removed the compilation guards
2767
2768         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
2769         a bit clearer.
2770
2771         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2772         conditional compile of lyxstring.Ch
2773
2774         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2775         stupid check, but it is a lot better than the bastring hack. 
2776         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
2777
2778         * several files: changed string::erase into string::clear. Not
2779         really needed.
2780         
2781         * src/chset.C (encodeString): use a char temporary instead
2782
2783         * src/table.C (TexEndOfCell): added tostr around
2784         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2785         (TexEndOfCell): ditto
2786         (TexEndOfCell): ditto
2787         (TexEndOfCell): ditto
2788         (DocBookEndOfCell): ditto
2789         (DocBookEndOfCell): ditto
2790         (DocBookEndOfCell): ditto
2791         (DocBookEndOfCell): ditto
2792
2793         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2794
2795         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2796
2797         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2798         (MenuBuildProg): added tostr around ret
2799         (MenuRunChktex): added tostr around ret
2800         (DocumentApplyCB): added tostr around ret
2801
2802         * src/chset.C (encodeString): added tostr around t->ic
2803
2804         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2805         (makeLaTeXFile): added tostr around tocdepth
2806         (makeLaTeXFile): added tostr around ftcound - 1
2807
2808         * src/insets/insetbib.C (setCounter): added tostr around counter.
2809
2810         * src/support/lyxstring.h: added an operator+=(int) to catch more
2811         mistakes. 
2812
2813         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2814         (lyxstring): We DON'T allow NULL pointers.
2815
2816 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2817
2818         * src/mathed/math_macro.C (MathMacroArgument::Write,
2819         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2820         when writing them out.
2821
2822         * src/LString.C: remove, since it is not used anymore.
2823         
2824         * src/support/lyxstring.C: condition the content to
2825         USE_INCLUDED_STRING macro.
2826
2827         * src/mathed/math_symbols.C, src/support/lstrings.C,
2828         src/support/lyxstring.C: add `using' directive to specify what
2829         we need in <algorithm>. I do not think that we need to
2830         conditionalize this, but any thought is appreciated.
2831
2832         * many files: change all callback functions to "C" linkage
2833         functions to please strict C++ compilers like DEC cxx 6.1 in mode
2834         strict_ansi. Those who were static are now global. 
2835             The case of callbacks which are static class members is
2836         trickier, since we have to make C wrappers around them (see
2837         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2838         did not finish this yet, since it defeats the purpose of
2839         encapsulation, and I am not sure what the best route is.
2840
2841 1999-10-19  Juergen Vigna  <jug@sad.it>
2842
2843         * src/support/lyxstring.C (lyxstring): we permit to have a null
2844         pointer as assignment value and just don't assign it.
2845
2846         * src/vspace.C (nextToken): corrected this function substituting
2847         find_first(_not)_of with find_last_of.
2848
2849         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2850                 (TableOptCloseCB) (TableSpeCloseCB):
2851         inserted fl_set_focus call for problem with fl_hide_form() in
2852         xforms-0.89.
2853
2854 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2855
2856         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2857         string. 
2858
2859 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2860
2861         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2862         LyXLex::next() and not eatline() to get its argument.
2863
2864 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
2865
2866         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2867         instead, use fstreams for io of the depfile, removed unneeded
2868         functions and variables. 
2869
2870         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2871         vector instead, removed all functions and variables that is not in
2872         use.
2873
2874 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
2875
2876         * src/buffer.C (insertErrors): use new interface to TeXError
2877
2878         * Makefile.am (rpmdist): added a rpmdist target
2879
2880         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2881         per Kayvan's instructions.
2882
2883 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2884
2885         * src/Makefile.am: add a definition for localedir, so that locales
2886         are found after installation (Kayvan)
2887
2888 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
2889
2890         * development/.cvsignore: new file.
2891
2892 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2893
2894         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2895         C++ compiler provides wrappers for C headers and use our alternate
2896         version otherwise.
2897
2898         * configure.in: use LYX_CXX_CHEADERS.
2899
2900         * src/cheader/: new directory, populated with cname headers from
2901         libstdc++-2.8.1. They are a bit old, but probably good enough for
2902         what we want (support compilers who lack them).
2903         
2904         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2905         from includes. It turns out is was stupid.
2906  
2907 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
2908
2909         * lib/Makefile.am (install-data-local): forgot a ';'
2910         (install-data-local): forgot a '\'
2911         (libinstalldirs): needed after all. reintroduced.
2912
2913 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
2914
2915         * configure.in (AC_OUTPUT): added lyx.spec
2916
2917         * development/lyx.spec: removed file
2918
2919         * development/lyx.spec.in: new file
2920
2921         * po/*.po: merged with lyx.pot becuase of make distcheck
2922         
2923         * lib/Makefile.am (dist-hook): added dist-hook so that
2924         documentation files will be included when doing a make
2925         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2926         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2927         conditional later.
2928         more: tried to make install do the right thing, exclude CVS dirs
2929         etc.
2930
2931         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2932         Path would fit in more nicely.
2933
2934         * all files that used to use pathstack: uses now Path instead.
2935         This change was a lot easier than expected.
2936         
2937         * src/support/path.h: new file
2938
2939         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2940
2941         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2942
2943         * src/support/lyxstring.C (getline): Default arg was given for
2944         para 3. removed.
2945
2946         * Configure.cmd: removed file 
2947
2948 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2949
2950         * src/support/DebugStream.[Ch]: remove the explicit std:: before
2951         streams classes and types, add the proper 'using' statements when
2952         MODERN_STL is defined.
2953         
2954         * src/debug.h: move the << operator definition after the inclusion
2955         of DebugStream.h
2956
2957         * src/support/filetools.C: include "LAssert.h", which is needed
2958         later. 
2959
2960         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2961         to includes. 
2962
2963         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2964         include "debug.h" to define a proper ostream.
2965
2966 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
2967
2968         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2969           method to the SystemCall class which can kill a process, but it's
2970           not fully implemented yet.
2971
2972         * src/*.C: Changed Systemcalls::Startscript() to startscript()
2973
2974         * src/support/FileInfo.h: Better documentation  
2975
2976         * src/lyxfunc.C: Added support for buffer-export html
2977         
2978         * src/menus.C: Added Export->As HTML...
2979         
2980         * lib/bind/*.bind: Added short-cut for buffer-export html
2981
2982         * src/lyxrc.*: Added support for new \tth_command
2983         
2984         * lib/lyxrc.example: Added stuff for new \tth_command
2985
2986 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
2987
2988         * lib/Makefile.am (IMAGES): removed images/README
2989         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2990         installes in correct place. Check permisions is installed
2991         correctly.
2992
2993         * src/LaTeX.C: some no-op changes moved declaration of some
2994         variables around.
2995
2996         * src/LaTeX.h (LATEX_H): changed include guard name
2997
2998 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2999
3000         * lib/reLyX/Makefile.am: install noweb2lyx.
3001
3002         * lib/Makefile.am: install configure. 
3003
3004         * lib/reLyX/configure.in: declare a config aux dir; set package
3005         name to lyx (not sure what the best solution is); generate noweb2lyx.
3006
3007         * lib/layouts/egs.layout: fix the bibliography layout.
3008
3009 1999-10-08  Jürgen Vigna <jug@sad.it>
3010
3011         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
3012         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
3013         it returned without continuing to search the path.
3014         
3015 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
3016
3017         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
3018         also fixes a bug. It is not allowed to do tricks with std::strings
3019         like: string a("hei"); &a[e]; this will not give what you
3020         think... Any reason for the complexity in this func?
3021
3022 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
3023
3024         * Updated README and INSTALL a bit, mostly to check that my
3025         CVS rights are correctly set up.
3026
3027 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
3028
3029         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
3030         does not allow '\0' chars but lyxstring and std::string does.
3031
3032 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
3033
3034         * autogen.sh (AUTOCONF): let the autogen script create the
3035         POTFILES.in file too. POTFILES.in should perhaps now not be
3036         included in the cvs module.
3037
3038         * some more files changed to use C++ includes instead of C ones.
3039
3040         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
3041         not assigned.
3042         (Reread): added tostr to nlink. buggy output otherwise.
3043         (Reread): added a string() around szMode when assigning to Buffer,
3044         without this I got a log of garbled info strings.
3045
3046         * acconfig.h: commented out the PTR_AS_INT macros. They should not
3047         be needed.
3048
3049         * I have added several ostream & operator<<(ostream &, some_type)
3050         functions. This has been done to avoid casting and warnings when
3051         outputting enums to lyxerr. This as thus eliminated a lot of
3052         explicit casts and has made the code clearer. Among the enums
3053         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
3054         mathed enums, some font enum the Debug::type enum. 
3055
3056         * src/support/lyxstring.h (clear): missing method. equivalent of
3057         erase(0, npos).
3058
3059         * all files that contained "stderr": rewrote constructs that used
3060         stderr to use lyxerr instead. (except bmtable)
3061
3062         * src/support/DebugStream.h (level): and the passed t with
3063         Debug::ANY to avoid spurious bits set.
3064
3065         * src/debug.h (Debug::type value): made it accept strings of the
3066         type INFO,INIT,KEY.
3067
3068         * configure.in (Check for programs): Added a check for kpsewhich,
3069         the latex generation will use this later to better the dicovery of
3070         all used files. 
3071
3072         * src/BufferView.C (create_view): we don't need to cast this to
3073         (void*) that is done automatically.
3074         (WorkAreaButtonPress): removed some dead code.
3075
3076 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3077
3078         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
3079         is not overwritten when translated (David Sua'rez de Lis).
3080
3081         * lib/CREDITS: Added David Sua'rez de Lis
3082
3083         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
3084
3085         * src/bufferparams.C (BufferParams): default input encoding is now
3086         "latin1" 
3087
3088         * acinclude.m4 (cross_compiling): comment out macro
3089         LYX_GXX_STRENGTH_REDUCE. 
3090
3091         * acconfig.h: make sure that const is not defined (to empty) when
3092         we are compiling C++. Remove commented out code using SIZEOF_xx
3093         macros.
3094         
3095         * configure.in : move the test for const and inline as late as
3096         possible so that these C tests do not interefere with C++ ones.
3097         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
3098         has not been proven. 
3099
3100 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3101
3102         * src/table.C (getDocBookAlign): remove bad default value for
3103         isColumn parameter.
3104
3105         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
3106         shortcut. 
3107         (ShowFileMenu2): ditto.
3108
3109         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
3110         of files to ignore.
3111
3112 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
3113
3114         * Most files: finished the change from the old error code to use
3115         DebugStream for all lyxerr debugging. Only minor changes remain
3116         (e.g. the setting of debug levels using strings instead of number) 
3117
3118 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
3119
3120         * src/layout.C (Add): Changed to use compare_no_case instead of
3121         strcasecmp.
3122
3123         * src/FontInfo.C: changed loop variable type too string::size_type.
3124
3125 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
3126
3127         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
3128         set ETAGS_ARGS to --c++ 
3129
3130 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
3131
3132         * src/table.C (DocBookEndOfCell): commented out two unused variables
3133
3134         * src/paragraph.C: commented out four unused variables. 
3135
3136         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
3137         insed a if clause with type string::size_type.
3138
3139         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
3140         string::size_type.
3141
3142         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
3143
3144         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
3145         variable, also changed loop to go from 0 to lenght + 1, instead of
3146         -1 to length. This should be correct.
3147
3148         * src/LaTeX.C (scanError): use string::size_type as loop variable
3149         type.
3150
3151         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
3152         (l.896) since y_tmp and row was not used anyway.
3153
3154         * src/insets/insetref.C (escape): use string::size_type as loop
3155         variable type.
3156
3157         * src/insets/insetquotes.C (Width): use string::size_type as loop
3158         variable type.
3159         (Draw): use string::size_type as loop variable type.
3160
3161         * src/insets/insetlatexaccent.C (checkContents): use
3162         string::size_type as loop variable type.
3163
3164         * src/insets/insetlabel.C (escape): use string::size_type as loop
3165         variable type.
3166
3167         * src/insets/insetinfo.C: added an extern for current_view.
3168
3169         * src/insets/insetcommand.C (scanCommand): use string::size_type
3170         as loop variable type.
3171
3172         * most files: removed the RCS tags. With them we had to recompile
3173         a lot of files after a simple cvs commit. Also we have never used
3174         them for anything meaningful. 
3175
3176         * most files: tags-query-replace NULL 0. As adviced several plases
3177         we now use "0" instead of "NULL" in our code. 
3178
3179         * src/support/filetools.C (SpaceLess): use string::size_type as
3180         loop variable type.
3181
3182 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
3183
3184         * src/paragraph.C: fixed up some more string stuff.
3185
3186 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
3187
3188         * src/support/filetools.h: make modestr a std::string.
3189
3190         * src/filetools.C (GetEnv): made ch really const.
3191
3192         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
3193         made code that used these use max/min from <algorithm> instead.
3194
3195         * changed several c library include files to their equivalent c++
3196         library include files. All is not changed yet.
3197
3198         * created a support subdir in src, put lyxstring and lstrings
3199         there + the extra files atexit, fileblock, strerror. Created
3200         Makefile.am. edited configure.in and src/Makefile.am to use this
3201         new subdir. More files moved to support.
3202
3203         * imported som of the functions from repository lyx, filetools
3204         
3205         * ran tags-query-replace on LString -> string, corrected the bogus
3206         cases. Tried to make use of lstrings.[hC], debugged a lot. There
3207         is still some errors in there. This is errors where too much or
3208         too litle get deleted from strings (string::erase, string::substr,
3209         string::replace), there can also be some off by one errors, or
3210         just plain wrong use of functions from lstrings. Viewing of quotes
3211         is wrong. 
3212
3213         * LyX is now running fairly well with string, but there are
3214         certainly some bugs yet (see above) also string is quite different
3215         from LString among others in that it does not allow null pointers
3216         passed in and will abort if it gets any.
3217         
3218         * Added the revtex4 files I forgot when setting up the repository.
3219
3220 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
3221
3222         * All over: Tried to clean everything up so that only the files
3223           that we really need are included in the cvs repository.
3224         * Switched to use automake.
3225         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3226         * Install has not been checked.
3227
3228 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
3229
3230         * po/pt.po: Three errors:
3231                l.533 and l.538 format specification error
3232                l. 402 duplicate entry, I just deleted it.
3233