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