]> git.lyx.org Git - lyx.git/blob - ChangeLog
Add -enable-assertions to configure, cleanup assertions, fix crash in LyXFont::ascent...
[lyx.git] / ChangeLog
1 1999-12-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2
3         * src/lyxfont.C (ascent): Make sure that char is _always_ used as
4         unsigned. 
5         (descent): ditto
6         (lbearing): ditto
7         (rbearing): ditto
8
9         * src/paragraph.C (GetWord): assert on pos>=0
10         (GetChar): ditto
11         
12         * src/support/lyxstring.C: condition the use of an invariant on
13         ENABLE_ASSERTIONS 
14         * src/support/lyxstring.h: ditto
15
16         * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by
17         ENABLE_ASSERTIONS. Use LAssert.h instead of plain assert(). 
18
19         * src/support/lstrings.h: add LAssert.h, in case it is needed.
20
21         * src/lyxfunc.C: do not include LAssert.h, it is not used.
22         * src/support/filetools.C: ditto
23
24         * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
25         is not defined. 
26
27         * INSTALL: document the new configure flags
28         
29         * configure.in: suppress --with-debug; add --enable-assertions
30
31         * acinclude.m4: various changes in alignment of help strings.
32
33 1999-12-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
34
35         * src/kbmap.C: commented out the use of the hash map in kb_map,
36         beginning of movement to a stl::container. 
37
38         * several files: removed code that was not in effect when
39         MOVE_TEXT was defined.
40         
41         * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
42         for escaping should not be used. We can discuss if the string
43         should be enclosed in f.ex. [] instead of "".
44
45         * src/trans_mgr.C (insert): use the new returned value from
46         encodeString to get deadkeys and keymaps done correctly.
47
48         * src/chset.C (encodeString): changed to return a pair, to tell
49         what to use if we know the string.
50
51         * src/lyxscreen.h (fillArc): new function.
52
53         * src/FontInfo.C (resize): rewritten to use more std::string like
54         structore, especially string::replace.
55
56         * src/insets/insetlatexaccent.C (Draw): use fillArc for the
57         approp. accents.
58
59         * configure.in (chmod +x some scripts): remove config/gcc-hack 
60
61 1999-12-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
62
63         * src/buffer.C (writeFile): change once again the top comment in a
64         .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
65         instead of an hardcoded version number.
66         (makeDocBookFile): ditto
67
68         * src/version.h: add new define LYX_DOCVERSION
69
70         * po/de.po: update from Pit Sütterlin
71         * lib/bind/de_menus.bind: ditto.
72         
73         * src/lyxfunc.C (Dispatch): call MenuExport()
74         * src/buffer.C (Dispatch): ditto
75
76         * src/lyx_cb.C (MenuMakeHTML): new function, moved from
77         LyXFunc::Dispatch().
78         (MenuExport): new function, moved from
79         LyXFunc::Dispatch().
80
81         * src/trans_mgr.C (insert): small cleanup
82         * src/chset.C (loadFile): ditto
83
84         * lib/kbd/iso8859-1.cdef: add missing backslashes
85
86 1999-12-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
87
88         * src/insets/insetlatexaccent.C (Lbearing): new function, used to
89         help with placing the manually drawn accents better.
90         (Rbearing): ditto
91         (Draw): x2 and hg changed to float to minimize rounding errors and
92         help place the accents better.
93
94         * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
95         unsigned short to char is just wrong...cast the char to unsigned
96         char instead so that the two values can compare sanely. This
97         should also make the display of insetlatexaccents better and
98         perhaps also some other insets.
99         (descent): ditto
100         (lbearing): new function
101         (rbearing): ditto
102
103 1999-12-15  Allan Rae  <rae@lyx.org>
104
105         * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES):  added new
106         header that provides a wrapper around the very annoying SGI STL header
107         of the same name.
108
109         * src/support/lyxstring.C, src/LString.h:
110         removed old SGI-STL-compatability attempts.
111
112         * configure.in: Use LYX_STL_STRING_FWD.
113
114         * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if 
115         stl_string_fwd.h is around and try to determine it's location.
116         Major improvement over previous SGI STL 3.2 compatability.
117         Three small problems remain with this function due to my zero
118         knowledge of autoconf.  JMarc and lgb see the comments in the code.
119
120 1999-12-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
121
122         * src/broken_const.h, config/hack-gcc, config/README: removed
123         
124         * configure.in: remove --with-gcc-hack option; do not call
125         LYX_CXX_STL_STACK 
126
127         * INSTALL: remove documentation of --with-broken-const and
128         --with-gcc-hack
129         
130         * acconfig.h: remove all trace of BROKEN_CONST define
131
132         * src/buffer.C (makeDocBookFile): update version number in output
133         file. 
134         (SimpleDocBookOnePar): fix an assert when trying to a character
135         access beyond string length
136         [Patch from Jose']
137
138 1999-12-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
139
140         * po/de.po: fix the Export menu
141
142         * lyx.man: update the description of -dbg
143
144         * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
145         (commandLineHelp): updated
146         (easyParse): show list of available debug levels if -dbg is passed
147         without argument.
148
149         * src/Makefile.am: add debug.C
150
151         * src/debug.h: moved some code to debug.C
152
153         * src/debug.C: new file. Contains code to set and show debug
154         level. 
155
156         * src/layout.C: remove 'break' after 'continue' in switch
157         statements, since these cannot be reached.
158
159 1999-12-13  Allan Rae  <rae@lyx.org>
160
161         * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
162         (in_word_set): hash() -> math_hash()
163
164         * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support 
165
166         * acconfig.h: Added a test for whether we are using exceptions in the
167         current compilation run. If so USING_EXCEPTIONS is defined.
168
169         * config.in: Check for existance of stl_string_fwd.h
170         * src/LString.h: If compiling --with-included-string and SGI's
171         STL version 3.2 is present (see above test) we need to block their
172         forward declaration of string and supply a __get_c_string().
173         However, it turns out this is only necessary if compiling with
174         exceptions enabled so I've a bit more to add yet.
175
176         * src/insets/figinset.[Ch], src/insets/insetinclude.C,
177           src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
178           src/support/LRegex.h, src/undo.h:
179         Shuffle the order of the included files a little to ensure that
180         LString.h gets included before anything that includes stl_string_fwd.h
181
182         *  src/support/lyxstring.C: We need to #include LString.h instead of
183         lyxstring.h to get the necessary definition of __get_c_string.
184         (__get_c_string): New function.  This is defined static just like SGI's
185         although why they need to do this I'm not sure.  Perhaps it should be
186         in lstrings.C instead.
187
188         * lib/templates/IEEEtran.lyx:  New template file.
189
190 1999-12-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
191         
192         * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
193         * intl/Makefile.in (MKINSTALLDIRS):  ditto
194
195         * src/LyXAction.C (init): changed to hold the LFUN data in a
196         automatic array in stead of in callso to newFunc, this speeds up
197         compilation a lot. Also all the memory used by the array is
198         returned when the init is completed.
199
200         * a lot of files: compiled with -Wold-style-cast, changed most of
201         the reported offenders to C++ style casts. Did not change the
202         offenders in C files. 
203
204         * src/trans.h (Match): change argument type to unsigned int.
205
206         * src/support/DebugStream.C: fix some types on the streambufs so
207         that it works on a conforming implementation.
208
209 1999-12-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
210
211         * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
212
213         * src/support/lyxstring.C: remove the inline added earlier since
214         they cause a bunch of unsatisfied symbols when linking with dec
215         cxx. Cxx likes to have the body of inlines at the place where they
216         are declared.
217
218         * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
219         accessing negative bounds in array. This fixes the crash when
220         inserting accented characters.
221         * src/trans.h (Match): ditto
222
223         * src/buffer.C (Dispatch): since this is a void, it should not try
224         to return anything...
225
226 1999-12-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
227
228         * src/buffer.h: removed the two friends from Buffer. Some changes
229         because of this. Buffer::getFileName and Buffer::setFileName
230         renamed to Buffer::fileName() and Buffer::fileName(...).
231
232 1999-12-09  Lars Gullik Bjønnes <larsbj@lyx.org>
233
234         * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
235         and Buffer::update(short) to BufferView. This move is currently
236         controlled by a define MOVE_TEXT, this will be removed when all
237         shows to be ok. This move paves the way for better separation
238         between buffer contents and buffer view. One side effect is that
239         the BufferView needs a rebreak when swiching buffers, if we want
240         to avoid this we can add a cache that holds pointers to LyXText's
241         that is not currently in use. 
242
243         * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
244         André Pönitz. 
245
246 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
247
248         * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
249
250         * lyx_main.C: new command line option -x (or --execute) and
251           -e (or --export). Now direct conversion from .lyx to .tex
252           (.dvi, .ps, ...) is possible  ('lyx file.lyx --export latex')
253           Unfortunately, X is still needed and the GUI pops up during the
254           process...
255
256 1999-12-07  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
257
258         * src/Spacing.C: add a using directive to bring stream stuff into
259         normal namespace.
260         * src/paragraph.C: ditto
261         * src/buffer.C: ditto
262
263         * NEWS: updated a bit the new features of 1.1.3 (took a few things
264         from Lars' announcement).
265
266         * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
267         example files from Tino Meinen.
268         
269 1999-12-06  Allan Rae  <rae@lyx.org>
270
271         * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
272
273 1999-12-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
274
275         * src/support/lyxstring.C: added a lot of inline for no good
276         reason
277         
278         * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
279         latexWriteEndChanges, they were not used.
280         
281         * src/layout.h (operator<<): output operator for PageSides
282
283         * src/mathed/math_iter.C (my_memcpy): slightly changed.
284
285         * some example files: loaded in LyX 1.0.4 and saved again to update
286         certain constructs (table format) 
287
288         * a lot of files: did the change to use fstream/iostream for all
289         writing of files. Done with a close look at Andre Poenitz's patch.
290
291         * some files: whitespace changes.
292         
293 1999-12-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
294
295         * src/mathed/math_iter.C (my_memcpy): new function. Since the
296         built-in memcpy() is broken on egcs and gcc 2.95 for alpha
297         architecture, we provide our own. It is used unconditionnally, but
298         I do not think this is a performance problem. Thanks to Angus
299         Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
300         Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
301         first time).
302         (GetInset): use my_memcpy.
303         (Insert): ditto
304         (Copy): ditto
305
306         * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
307         it is easier to understand, but it uses less TeX-only constructs now.
308
309         * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
310         elements contain spaces
311
312         * lib/configure: regenerated
313         
314         * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
315         elements contain spaces; display the list of programs that are
316         tried.
317
318         * autogen.sh: make sure lib/configure is executable
319
320         * lib/examples/*: rename the tutorial examples to begin with the
321         two-letters language code.
322
323         * src/lyxfunc.C (getStatus): do not query current font if no
324         buffer exists.
325
326         * src/lyx_cb.C (RunScript): use QuoteName
327         (MenuRunDvips): ditto
328         (PrintApplyCB): ditto
329
330         * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
331         around argument, so that it works well with the current shell.
332         Does not work properly with OS/2 shells currently.
333
334         * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
335         * src/LyXSendto.C (SendtoApplyCB): ditto
336         * src/lyxfunc.C (Dispatch): ditto
337         * src/buffer.C (runLaTeX): ditto
338         (runLiterate): ditto
339         (buildProgram): ditto
340         (runChktex): ditto
341         * src/lyx_cb.C (RunScript): ditto
342         (MenuMakeLaTeX): ditto
343         
344         * src/buffer.h (getLatexName): new method 
345
346         * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
347
348 1999-12-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
349
350         * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
351         * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
352         (create_math_panel): ditto
353
354         * src/lyxfunc.C (getStatus): re-activate the code which gets
355         current font and cursor; add test for export to html.
356
357         * src/lyxrc.C (read): remove unreachable break statements; add a
358         few "using".
359
360         * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
361         
362 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
363
364         * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
365         introduced by faulty regex.
366         * src/buffer.C: ditto
367         * src/lastfiles.C: ditto
368         * src/paragraph.C: ditto
369         * src/table.C: ditto
370         * src/vspace.C: ditto
371         * src/insets/figinset.C: ditto
372         Note: most of these is absolutely harmless, except the one in
373         src/mathed formula.C.
374
375 1999-11-30  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
376
377         * src/ImportNoweb.C (documentclass): fixed bounds for substr
378           operation, yielding correct results for the reLyX command.
379
380 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
381
382         * src/support/filetools.C (ExpandPath): removed an over eager
383         Assert.
384         (ReplaceEnvironmentPath): ditto
385
386         * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
387         shows that we are doing something fishy in our code...
388         (BubblePost): ditto
389         (ToolbarCB): ditto
390
391         * src/lyxrc.C (read): use a double switch trick to get more help
392         from the compiler. (the same trick is used in layout.C)
393         (write): new function. opens a ofstream and pass that to output
394         (output): new function, takes a ostream and writes the lyxrc
395         elemts to it. uses a dummy switch to make sure no elements are
396         forgotten. 
397
398         * src/lyxlex.h: added a struct pushpophelper for use in functions
399         with more than one exit point.
400
401         * src/lyxlex.[Ch] (GetInteger): made it const
402         (GetFloat): ditto
403         (GetBool): ditto
404
405         * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
406
407         * src/layout.[hC] : LayoutTags splitted into several enums, new
408         methods created, better error handling cleaner use of lyxlex. Read
409         the diff.
410
411         * src/bmtable.[Ch]: change some member prototypes because of the
412         image const changes. 
413
414         * commandtags.h, src/LyXAction.C (init): new function:
415         "preferences-save", saves the lyxrc entries into .lyx/preferences.
416         This file is not read automatically but you can add \input
417         preferences to your lyxrc if you want to. We need to discuss how
418         to handle this. 
419
420         * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
421         in .aux, also remove .bib and .bst files from dependencies when
422         running bibtex.
423
424         * src/BufferView.C, src/LyXView.C: add const_cast several places
425         because of changes to images.
426
427         * lib/images/*: same change as for images/*
428         
429         * lib/lyxrc.example: Default for accept_compound is false not no.
430
431         * images/*: changed to be const, however I have som misgivings
432         about this change so it might be changed back.
433
434 1999-11-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
435
436         * lib/configure, po/POTFILES.in: regenerated
437
438         * autogen.sh: autogenerate lib/configure from lib/configure.m4
439
440         * config/lib_configure.m4: removed
441         
442         * lib/configure.m4: new file (was config/lib_configure.m4)
443
444         * configure.in: do not test for rtti, since we do not use it.
445         
446 1999-11-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
447
448         * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
449         doubling of allocated space scheme. This makes it faster for large
450         strings end to use less memory for small strings. xtra rememoved. 
451
452         * src/insets/figinset.C (waitalarm): commented out.
453         (GhostscriptMsg): use static_cast
454         (GhostscriptMsg): use new instead of malloc to allocate memory for
455         cmap. also delete the memory after use.
456
457         * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
458
459         * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
460         for changes in bibtex database or style.
461         (runBibTeX): remove all .bib and .bst files from dep before we
462         begin. 
463         (run): use scanAuc in when dep file already exist.
464
465         * src/DepTable.C (remove_files_with_extension): new method
466         (exist): new method
467
468         * src/DepTable.[Ch]: made many of the methods const. 
469
470 1999-11-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
471
472         * src/bufferparams.C: make sure that the default textclass is
473         "article". It used to be the first one by description order, but
474         now the first one is "docbook".
475
476         * src/lyx_main.C (setDebuggingLevel): change type of argument to
477         string; call Debug::value.
478         (easyParse): pass complete argument to setDebuggingLevel().
479
480         * src/debug.h (value): fix the code that parses debug levels.
481
482         * src/debug.h: add new debug type ACTION, reserved for LyXAction
483         class.  
484
485         * src/LyXAction.C: use Debug::ACTION as debug channel.
486
487         * src/lyxlookup.C: make the debug statements go to Debug::KEY.
488
489         * NEWS: updated for the future 1.1.3 release.
490
491         * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
492         \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
493         it should. This is of course a controversial change (since many
494         people will find that their lyx workscreen is suddenly full of
495         red), but done for the sake of correctness.
496
497         * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
498           src/mathed/math_root.[Ch] (Clone): return a MathedInset*  
499
500         * src/insets/inseterror.h, src/insets/inseturl.h,
501           src/insets/insetinfo.h, src/insets/figinset.h,
502           src/mathed/formulamacro.h, src/mathed/math_macro.h
503           (EditMessage): add a missing const and add _() to make sure that
504         translation happens
505
506         * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
507           src/insets/insetbib.C, src/support/filetools.C: add `using'
508         directives for cxx.  
509
510         * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
511         doing 'Insert index of last word' at the beginning of a paragraph.
512
513 1999-11-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
514
515         * several files: white-space changes.
516
517         * src/mathed/formula.C: removed IsAlpha and IsDigit
518
519         * src/insets/insetbib.C (getKeys): use findtexfile to look for the
520         .bib file. use a ifstream instead of FilePtr when parsing the .bib
521         file for keys.
522
523         * src/insets/figinset.C (GetPSSizes): don't break when
524         "EndComments" is seen. But break when a boundingbox is read.
525
526         * all classes inherited from Inset: return value of Clone
527         changed back to Inset *.
528
529         * all classes inherited form MathInset: return value of Clone
530         changed back to MathedInset *.
531         
532         * src/insets/figinset.C (runqueue): use a ofstream to output the
533         gs/ps file. Might need some setpresicion or setw. However I can
534         see no problem with the current code.
535         (runqueue): use sleep instead of the alarm/signal code. I just
536         can't see the difference.
537
538         * src/paragraph.C (LyXParagraph): reserve space in the new
539         paragraph and resize the inserted paragraph to just fit.
540
541         * src/lyxfunc.h (operator|=): added operator for func_status.
542
543         * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
544         check for readable file.
545
546         * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
547         check for readable file.
548         (MenuMakeLinuxDoc): ditto
549         (MenuMakeDocBook): ditto
550         (MenuMakeAscii): ditto
551         (InsertAsciiFile): split the test for openable and readable
552
553         * src/bmtable.C (draw_bitmaptable): use
554         fl_state[fl_get_vclass()].depth instead of DefualtScreen.
555
556         * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
557         findtexfile from LaTeX to filetools.
558         
559         * src/ImportNoweb.C (documentclass): rewrote to use ifstream
560         instead of FilePtr. Needs to be verified by a literate user.
561
562 1999-11-23  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
563
564         * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
565         (EditMessage): likewise.
566
567         * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
568         respectively as \textasciitilde and \textasciicircum.
569
570 1999-11-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
571
572         * src/support/lyxstring.h: made the methods that take iterators
573         use const_iterator.
574
575         * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
576         (regexMatch): made is use the real regex class.
577
578         * src/support/Makefile.am: changed to use libtool
579
580         * src/support/.cvsignore: added *.lo, .libs and libsupport.la
581
582         * src/mathed/math_defs.h: made the mathaligns be in a enum instead
583         of defines.
584         (MathIsInset ++): changed several macros to be inline functions
585         instead. 
586
587         * src/mathed/Makefile.am: changed to use libtool
588
589         * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
590
591         * src/insets/inset* : Clone changed to const and return type is
592         the true insettype not just Inset*.
593         
594         * src/insets/Makefile.am: changed to use libtool
595
596         * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
597
598         * src/undo.[Ch] : added empty() and changed some of the method
599         names.
600         
601         * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
602
603         * src/lyxparagraph.h: use id() and id(...) instead of getID and
604         setID use block<> for the bullets array, added const several places.
605
606         * src/lyxfunc.C (getStatus): new function
607
608         * src/lyxfunc.[Ch] : small changes to take advantage of the new
609         LyXAction, added const to several funtions.
610
611         * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
612         a std::map, and to store the dir items in a vector.
613
614         * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
615         as dependencies.
616
617         * src/LyXView.[Ch] + other files : changed currentView to view.
618         
619         * src/LyXAction.[Ch] : ported from the old devel branch.
620         
621         * src/.cvsignore: added .libs and a.out
622
623         * configure.in : changes to use libtool. 
624
625         * acinclude.m4 : inserted libtool.m4
626
627         * .cvsignore: added libtool
628
629 1999-11-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
630
631         * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
632         file name in insets and mathed directories (otherwise the
633         dependency is not taken in account under cygwin).
634
635         * src/text2.C (InsertString[AB]): make sure that we do not try to
636         read characters past the string length.
637
638 1999-11-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
639
640         * lib/doc/LaTeXConfig.lyx.in, 
641           lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
642
643         * src/buffer.C (writeFile): Do not add a comment on top of .lyx
644         file saying who created them and when this heppened; this is
645         useless and annoys tools like cvs.
646
647         * lib/layouts/g-brief-{en,de}.layout,
648           lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
649         from Thomas Hartkens <thomas@hartkens.de>.
650
651         * src/{insets,mathed}/Makefile.am: do not declare an empty
652         LDFLAGS, so that it can be set at configure time (useful on Irix
653         for -n32 flag).
654
655         * lib/reLyX/configure.in: make sure that the prefix is set
656         correctly in LYX_DIR.
657
658 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
659
660         * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
661         be used by 'command-sequence' this allows to bind a key to a
662         sequence of LyX-commands
663         (Example: 'command-sequence math-insert alpha; math-insert beta;")
664
665         * src/LyXAction.C: add "command-sequence"
666
667         * src/LyXFunction.C: handling of "command-sequence"
668
669         * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
670          &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
671
672         * src/lyxserver.C, src/minibuffer.C: Use this new interface
673
674 1999-11-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
675
676         * src/buffer.C (writeFile): Do not output a comment giving user
677         and date at the beginning of a .lyx file. This is useless and
678         annoys cvs anyway; update version number to 1.1.
679
680         * src/Makefile.am (LYX_DIR): add this definition, so that a
681         default path is hardcoded in LyX.
682
683         * configure.in: Use LYX_GNU_GETTEXT.
684
685         * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
686         AM_GNU_GETTEXT with a bug fixed. 
687
688         * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
689
690         * src/chset.C: add "using std::ifstream;" to please dec cxx.
691
692         * src/lyx_main.C (init), INSTALL.OS2: the environment variable
693         which is used to point to LyX data is now LYX_DIR_11x.
694
695         * lyx.man: convert to a unix text file; small updates.
696
697 1999-11-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
698
699         * src/support/LSubstring.[Ch]: made the second arg of most of the
700         constructors be a const reference. 
701
702         * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
703         me fixed.
704
705         * src/support/lyxstring.[Ch] (swap): added missing member function
706         and specialization of swap(str, str); 
707
708         * src/menus.C (ShowBufferMenu): to use the new BufferStorage
709
710         * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
711         trace of the old one.
712
713         * src/undo.[Ch]: made the undostack use std::list to store undo's in
714         put the member definitions in undo.C.
715
716         * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
717         NEW_TEXT and have now only code that was included when this was
718         defined. 
719
720         * src/intl.C (LCombo): use static_cast
721         (LCombo2): ditto
722         (DispatchCallback): ditto
723
724         * src/definitions.h: removed whole file
725         
726         * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
727
728         * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
729         parsing and stores in a std:map. a regex defines the file format.
730         removed unneeded members.
731
732         * src/bufferparams.h: added several enums from definitions.h here.
733         Removed unsused destructor. Changed some types to use proper enum
734         types. use block to have the temp_bullets and user_defined_bullets
735         and to make the whole class assignable.
736
737         * src/bufferparams.C (Copy): removed this functions, use a default
738         assignment instead. 
739
740         * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
741         isLiterate const.
742
743         * src/buffer.C (readLyXformat2): commend out all that have with
744         oldpapersize to do. also comment out all that hve to do with
745         insetlatex and insetlatexdel. 
746         (setOldPaperStuff): commented out
747
748         * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
749
750         * src/LyXAction.C: remove use of inset-latex-insert
751
752         * src/mathed/math_panel.C (button_cb): use static_cast
753
754         * src/insets/Makefile.am (insets_o_SOURCES): removed
755         insetlatex.[Ch] 
756
757         * src/support/lyxstring.C (helper): use the unsigned long
758         specifier, UL, instead of a static_cast.
759
760         * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
761
762         * src/support/block.h: new file. to be used as a c-style array in
763         classes, so that the class can be assignable.
764
765 1999-11-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
766
767         * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
768         NULL, make sure to return an empty string (it is not possible to
769         set a string to NULL).
770
771 1999-11-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
772
773         * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
774
775         * src/support/lyxstring.C (helper): fix bogus cast in assertion.
776
777         * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
778         link line, so that Irix users (for example) can set it explicitely to
779         "-n32".
780         
781         * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
782         it can be overidden at make time (static or dynamic link, for
783         example).
784         
785         * src/vc-backend.C, src/LaTeXFeatures.h, 
786           src/support/LRegex.C, src/support/LRegex.h: add a few "using" 
787         statements to bring templates to global namespace.
788
789 1999-11-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
790
791         * src/support/lyxstring.C (operator[] const): make it standard
792         conforming. 
793
794         * src/minibuffer.C (Init): changed to reflect that more
795         information is given from the lyxvc and need not be provided here.
796
797         * src/lyxvc.[Ch]: rewrote to use the vc-backend.
798         
799         * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
800
801         * src/LyXView.C (UpdateTimerCB): use static_cast
802         (KeyPressMask_raw_callback): ditto
803
804         * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
805         buffer_, a lot of changes because of this. currentBuffer() ->
806         buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
807         also changes to other files because of this.
808
809 1999-11-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
810
811         * src/vc-backend.[Ch]: new files. The backends for vc handling,
812         have no support for RCS and partial support for CVS, will be
813         improved later.
814         
815         * src/insets/ several files: changes because of function name
816         changes in Bufferview and LyXView.
817         
818         * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
819
820         * src/support/LSubstring.[Ch]: new files. These implement a
821         Substring that can be very convenient to use. i.e. is this
822         possible:
823         string a = "Mary had a little sheep";
824         Substring(a, "sheep") = "lamb";
825         a is now "Mary has a little lamb".
826
827         * src/support/LRegex.[Ch]: a regex class that can be used to pick
828         out patterns and subpatterns of strings. It is used by LSubstring
829         and also by vc-backend.C
830         
831         * src/support/lyxstring.C: went over all the assertions used and
832         tried to correct the wrong ones and flag which of them is required
833         by the standard. some bugs found because of this. Also removed a
834         couple of assertions.
835
836         * src/support/Makefile.am (libsupport_a_SOURCES): added
837         LSubstring.[Ch] and LRegex.[Ch]
838
839         * src/support/FileInfo.h: have struct stat buf as an object and
840         not a pointer to one, some changes because of this.
841
842         * src/LaTeXFeatures.C (getTClassPreamble): also use the
843         information in layout when adding the layouts preamble to the
844         textclass preamble.
845
846         * src/LaTeXFeatures.h: use a vector<bool> to store the layout
847         usage in.
848
849         * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
850         because of bug in OS/2.
851
852 1999-11-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
853
854         * lib/layouts/lyxmacros.inc (lyxcode): set the font with
855         \verbatim@font instead of \ttfamily, so that it can be redefined.
856
857         * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
858           src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
859           src/layout.h, src/text2.C: add 'using' directive to bring the
860         STL templates we need from the std:: namespace to the global one.
861         Needed by DEC cxx in strict ansi mode.
862
863         * src/support/LIstream.h,src/support/LOstream.h,
864           src/support/lyxstring.h,src/table.h,
865           src/lyxlookup.h: do not include <config.h> in header
866         files. This should be done in the .C files only.
867
868         * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
869         (from Kayvan).
870         
871
872 1999-11-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
873
874         * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
875         from Kayvan to fix the tth invokation.
876
877         * development/lyx.spec.in: updates from Kayvan to reflect the
878         changes of file names.
879
880 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
881
882         * src/text2.C (InsertStringB): use std::copy
883         (InsertStringA): use std::copy
884
885         * src/bufferlist.C: use a vector to store the buffers in. This is
886         an internal change and should not affect any other thing.
887         
888         * src/BufferView.C (waitForX): use XSync instead of the lengthy
889         stuff in waitForX.
890
891         * src/text.C (Fill): fix potential bug, one off bug.
892
893 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
894
895         * src/Makefile.am (lyx_main.o): add more files it depends on.
896
897         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
898
899         * src/support/lyxstring.C: use size_t for the reference count,
900         size, reserved memory and xtra.
901         (internal_compare): new private member function. Now the compare
902         functions should work for std::strings that have embedded '\0'
903         characters.
904         (compare): all compare functions rewritten to use
905         internal_compare.
906         
907 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
908
909         * src/support/lyxstring.C (compare): pass c_str()
910         (compare): pass c_str
911         (compare): pass c_str
912
913 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
914
915         * src/support/DebugStream.C: <config.h> was not included correctly.
916
917         * lib/configure: forgot to re-generate it :( I'll make this file
918         auto generated soon.
919
920 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
921
922         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
923         is used.
924
925         * src/support/lyxstring.C: some changes from length() to rep->sz.
926         avoids a function call.
927
928         * src/support/filetools.C (SpaceLess): yet another version of the
929         algorithm...now per Jean-Marc's suggestions.
930
931 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
932
933         * src/layout.C (less_textclass_desc): functor for use in sorting
934         of textclasses. 
935         (LyXTextClass::Read): sort the textclasses after reading.
936         
937         * src/support/filetools.C (SpaceLess): new version of the
938         SpaceLess functions. What problems does this one give? Please
939         report.
940
941         * images/banner_bw.xbm: made the arrays unsigned char *
942
943 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
944
945         * src/support/lyxstring.C (find): remove bogus assertion in the
946         two versions of find where this has not been done yet.
947
948         * src/support/lyxlib.h: add missing int return type to
949         lyx::chdir(). 
950
951         * src/menus.C (ShowFileMenu): disable exporting to html if no
952         html export command is present.
953
954         * config/lib_configure.m4: add a test for an HTML converter. The
955         programs checked for are, in this order: tth, latex2html and
956         hevea. 
957
958         * lib/configure: generated from config/lib_configure.m4.
959
960         * src/lyxfunc.C (Dispatch): update and improve the execution of an
961         html converter. The parameters are now passed through $$FName and
962         $$OutName, instead of standard input/output.
963
964         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
965
966         * lib/lyxrc.example: update description of \html_command. 
967         add "quotes" around \screen_font_xxx font setting examples to help
968         people who use fonts with spaces in their names.
969
970 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
971
972         * Distribution files: updates for v1.1.2
973
974         * src/support/lyxstring.C (find): remove bogus assert and return
975         npos for the same condition.
976
977 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
978
979         * added patch for OS/2 from SMiyata.
980
981 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
982
983         * src/text2.C (CutSelection): make space_wrapped a bool
984         (CutSelection): dont declare int i until we have to.
985         (alphaCounter): return a char const *.
986
987 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
988
989         * src/support/syscall.C (Systemcalls::kill): 
990           src/support/filetools.C (PutEnv, PutEnvPath): 
991           src/lyx_cb.C (addNewlineAndDepth): 
992           src/FontInfo.C (FontInfo::resize): condition some #warning
993         directives with WITH_WARNINGS.
994         
995
996 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
997
998         * src/layout.[Ch] + several files: access to class variables
999         limited and made accessor functions instead a lot of code changed
1000         becuase of this. Also instead of returning pointers often a const
1001         reference is returned instead.
1002         
1003         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
1004
1005         * src/Makefile.am (dist-hook): added used to remove the CVS from
1006         cheaders upon creating a dist
1007         (EXTRA_DIST): added cheaders
1008
1009         * src/support/lstrings.C (tostr(char)): fix it to handle param as
1010         a character not as a small integer. 
1011
1012         * src/support/lyxstring.C (find): removed Assert and added i >=
1013         rep->sz to the first if.
1014
1015 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1016
1017         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
1018         src/LyXView.C src/buffer.C src/bufferparams.C
1019         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
1020         src/text2.C src/insets/insetinclude.C:
1021         lyxlayout renamed to textclasslist.
1022
1023         * src/layout.C: some lyxerr changes.
1024
1025         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
1026         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
1027         (LyXLayoutList): removed all traces of this class.
1028         (LyXTextClass::Read): rewrote LT_STYLE
1029         (LyXTextClass::hasLayout): new function
1030         (LyXTextClass::GetLayout): rewritten to return an iterator + has
1031         both const and nonconst version.
1032         (LyXTextClass::delete_layout): new function.
1033         (LyXTextClassList::Style): bug fix. do the right thing if layout
1034         is to big.
1035         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
1036         (LyXTextClassList::NameOfLayout): ditto 
1037         (LyXTextClassList::Load): ditto
1038
1039         * src/buffer.C (makeLaTeXFile): new access to layoutlist
1040
1041         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
1042
1043         * src/LyXAction.C (LookupFunc): added a workaround for sun
1044         compiler, on the other hand...we don't know if the current code
1045         compiles on sun at all...
1046
1047         * src/support/filetools.C (CleanupPath): subst fix
1048
1049         * src/insets/insetbib.C (delDatabase): subst fix, this looks
1050         _really_ weird.
1051
1052         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
1053         complained about this one?
1054
1055         * src/insets/insetinclude.C (Latex): subst fix
1056
1057         * src/insets/insetbib.C (getKeys): subst fix
1058
1059         * src/LyXSendto.C (SendtoApplyCB): subst fix
1060
1061         * src/lyx_main.C (init): subst fix
1062
1063         * src/layout.C (Read): subst fix
1064
1065         * src/lyx_sendfax_main.C (button_send): subst fix
1066
1067         * src/buffer.C (RoffAsciiTable): subst fix
1068
1069         * src/lyx_cb.C (MenuFax): subst fix
1070         (PrintApplyCB): subst fix
1071
1072 1999-10-26  Juergen Vigna  <jug@sad.it>
1073
1074         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
1075
1076         (Read): Cleaned up this code so now we read only format vestion >= 5
1077
1078 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
1079
1080         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
1081         come nobody has complained about this one?
1082
1083         * src/insets/insetinclude.C (Latex): subst fix
1084
1085         * src/insets/insetbib.C (getKeys): subst fix
1086
1087         * src/lyx_main.C (init): subst fix
1088
1089         * src/layout.C (Read): subst fix
1090
1091         * src/buffer.C (RoffAsciiTable): subst fix
1092
1093         * src/lyx_cb.C (MenuFax): subst fix.
1094
1095         * src/layout.[hC] + some other files: rewrote to use
1096         std::container to store textclasses and layouts in.
1097         Simplified, removed a lot of code. Make all classes
1098         assignable. Further simplifications and review of type
1099         use still to be one. 
1100
1101         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
1102         lastfiles to create the lastfiles partr of the menu.
1103
1104         * src/lastfiles.[Ch]: rewritten to use deque to store the
1105         lastfiles in. Uses fstream for reading and writing. Simplifies
1106         code.
1107
1108         * src/support/syscall.C: remove explicit cast.
1109
1110         * src/BufferView.C (CursorToggleCB): removed code snippets that
1111         were commented out.
1112         use explicat C++ style casts instead of C style casts. also use
1113         u_vdata instea of passing pointers in longs.
1114
1115         * src/PaperLayout.C: removed code snippets that were commented out.
1116
1117         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
1118
1119         * src/lyx_main.C: removed code snippets that wer commented out.
1120
1121         * src/paragraph.C: removed code snippets that were commented out.
1122
1123         * src/lyxvc.C (logClose): use static_cast
1124         (logUpdate): ditto
1125         (viewLog): remove explicit cast to void*
1126         (showLog): removed old commented code
1127
1128         * src/menus.C: use static_cast instead of C style casts. use
1129         u_vdata instead of u_ldata. remove explicit cast to (long) for
1130         pointers. Removed old code that was commented out.
1131
1132         * src/insets/inset.C: removed old commented func
1133
1134         * src/insets/insetref.C (InsetRef): removed old code that had been
1135         commented out for a long time.
1136         (Edit): ditto
1137         (escape): removed C style cast
1138
1139         * src/insets/insetlatexaccent.C (Draw): removed old commented code
1140
1141         * src/insets/insetlatex.C (Draw): removed old commented code
1142         (Read): rewritten to use string
1143
1144         * src/insets/insetlabel.C (escape): removed C style cast
1145
1146         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
1147
1148         * src/insets/insetindex.C: use static_cast and u_vdata, removed
1149         old commented code.
1150
1151         * src/insets/insetinclude.h: removed a couple of stupid bools
1152
1153         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
1154         (Clone): remove C style cast
1155         (getKeys): changed list to lst because of std::list
1156
1157         * src/insets/inseterror.C (Draw): removed som old commented code.
1158
1159         * src/insets/insetcommand.C (Draw): removed some old commented code.
1160
1161         * src/insets/insetbib.C (bibitem_cb): removed code that has been
1162         commented out forever.
1163         (bibitem_cb): use static_cast instead of C style cast
1164         use of vdata changed to u_vdata.
1165
1166         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
1167         parameter.
1168         (CloseUrlCB): use static_cast instead of C style cast.
1169         (CloseUrlCB): added a fl_free form...it seemed to be missing.
1170
1171         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
1172         (C_InsetInfo_CloseInfoCB): forward the ob parameter
1173         (CloseInfoCB): static_cast from ob->u_vdata instead.
1174         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
1175         instead. 
1176
1177         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
1178         (C_InsetError_CloseErrorCB): forward the ob parameter
1179         (CloseErrorCB): static_cast from ob->u_vdata instead.
1180
1181         * src/vspace.h: include LString.h since we use string in this class.
1182
1183         * src/vspace.C (lyx_advance): changed name from advance because of
1184         nameclash with stl. And since we cannot use namespaces yet...I
1185         used a lyx_ prefix instead. Expect this to change when we begin
1186         using namespaces.
1187
1188         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
1189
1190         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
1191         and removed now defunct constructor and deconstructor.
1192
1193         * src/BufferView.h: have backstack as a object not as a pointer.
1194         removed initialization from constructor. added include for BackStack 
1195
1196         * development/lyx.spec.in (%build): add CFLAGS also.
1197
1198         * src/screen.C (drawFrame): removed another warning.
1199
1200 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1201
1202         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
1203         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
1204         README and ANNOUNCE a bit for the next release. More work is
1205         needed, of course.
1206
1207         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
1208         unbreakable if we are in freespacing mode (LyX-Code), but not in
1209         latex mode.
1210
1211 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
1212
1213         * src/BackStack.h: fixed initialization order in constructor
1214
1215         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
1216
1217         * acinclude.m4 (VERSION): new rules for when a version is
1218         development, added also a variable for prerelease.
1219         (warnings): we set with_warnings=yes for prereleases
1220         (lyx_opt): prereleases compile with same optimization as development 
1221         (CXXFLAGS): only use pedantic if we are a development version 
1222
1223         * src/BufferView.C (restorePosition): don't do anything if the
1224         backstack is empty.
1225
1226         * src/BackStack.h: added member empty, use this to test if there
1227         is anything to pop...
1228
1229 1999-10-25  Juergen Vigna  <jug@sad.it>
1230
1231         * forms/form1.fd +
1232         * forms/layout_forms.fd +
1233         * forms/latexoptions.fd +
1234         * lyx.fd: changed for various form resize issues
1235
1236         * src/mathed/math_panel.C +
1237         * src/insets/inseterror.C +
1238         * src/insets/insetinfo.C +
1239         * src/insets/inseturl.C +
1240         * src/insets/inseturl.h +
1241         * src/LaTeXLog.C +
1242         * src/LyXSendto.C +
1243         * src/PaperLayout.C +
1244         * src/ParagraphExtra.C +
1245         * src/TableLayout.C +
1246         * src/form1.C +
1247         * src/layout_forms.C +
1248         * src/lyx.C +
1249         * src/lyx_cb.C +
1250         * src/lyx_gui.C +
1251         * src/lyxfr0.C +
1252         * src/lyxfunc.C +
1253         * src/lyxvc.C +
1254         * src/menus.C: fixed various resize issues. So now forms can be
1255         resized savely or not be resized at all.
1256         
1257         * forms/form_url.fd +
1258         * src/insets/form_url.[Ch]: added because it's cleaner and easier
1259         to modify IMO.
1260
1261         * src/insets/Makefile.am: added files form_url.[Ch]
1262         
1263 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1264
1265         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
1266         (and presumably 6.2).
1267
1268         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
1269         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
1270         remaining static member callbacks. 
1271
1272         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
1273         messages. 
1274
1275         * src/support/lyxstring.h: declare struct Srep as friend of
1276         lyxstring, since DEC cxx complains otherwise.
1277
1278 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1279
1280 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1281
1282         * src/LaTeX.C (run): made run_bibtex also depend on files with
1283         extension ".bst"
1284         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
1285         are put into the dependency file.
1286
1287         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
1288         the code has shown itself to work
1289         (create_ispell_pipe): removed another warning, added a comment
1290         instead. 
1291
1292         * src/minibuffer.C (ExecutingCB): removed code that has been
1293         commented out a long time
1294
1295         * src/lyxfunc.C (processKeyEvent): removed some very old commented
1296         out code + a warning.
1297
1298         * src/support/lyxstring.h: comment out the three private
1299         operators, when compiling with string ansi conforming compilers
1300         they make problems.
1301
1302         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
1303         unsigned char *.
1304         (pixmapFromBitmapData): change type of bdata to be unsigned char *
1305         (pixmapFromBitmapData): add a reinterpret_cast in the call to
1306         XCreateImage
1307
1308         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
1309         unsigned char *
1310
1311         * src/mathed/math_panel.C (create_math_panel): remove explicit
1312         casts
1313
1314         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
1315         unsigned char *.
1316
1317         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
1318         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
1319         to XCreatePixmapFromBitmapData
1320         (fl_set_bmtable_data): change the last argument to be unsigned
1321         char *
1322         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
1323         and bh to be unsigned int, remove explicit casts in call to
1324         XReadBitmapFileData.
1325
1326         * images/arrows.xbm: made the arrays unsigned char *
1327         * images/varsz.xbm: ditto
1328         * images/misc.xbm: ditto
1329         * images/greek.xbm: ditto
1330         * images/dots.xbm: ditto
1331         * images/brel.xbm: ditto
1332         * images/bop.xbm: ditto
1333
1334         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
1335
1336         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
1337         (LYX_PROG_CXX): added -pedantic to g++ compile options when
1338         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
1339         needed. 
1340         (LYX_CXX_CHEADERS): added <clocale> to the test. 
1341
1342 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
1343
1344         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
1345
1346         * src/support/lyxstring.C (append): fixed something that must be a
1347         bug, rep->assign was used instead of rep->append.
1348
1349         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
1350         and LOstream.h
1351
1352         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
1353         lyx insert double chars. Fix spotted by Kayvan.
1354
1355 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
1356
1357         * Fixed the tth support. I messed up with the Emacs patch apply feature
1358         and omitted the changes in lyxrc.C.
1359
1360 1999-10-22  Juergen Vigna  <jug@sad.it>
1361
1362         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
1363
1364         * src/lyx_cb.C (MenuInsertRef) + 
1365         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
1366         the form cannot be resized under it limits (fixes a segfault)
1367         
1368         * src/lyx.C (create_form_form_ref) +
1369         * forms/lyx.fd: Changed Gravity on name input field so that it is
1370         resized correctly.
1371
1372 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1373
1374         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1375         <ostream> and <istream>.
1376         
1377         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1378         whether <fstream> provides the latest standard features, or if we
1379         have an oldstyle library (like in egcs).
1380         (LYX_CXX_STL_STRING): fix the test.
1381
1382         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1383         code on MODERN_STL_STREAM.
1384
1385         * src/support/lyxstring.h: use L{I,O}stream.h.
1386
1387         * src/support/L{I,O}stream.h: new files, designed to setup
1388         correctly streams for our use
1389           - includes the right header depending on STL capabilities
1390           - puts std::ostream and std::endl (for LOStream.h) or
1391           std::istream (LIStream.h) in toplevel namespace.
1392
1393 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1394
1395         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1396         was a bib file that had been changed we ensure that bibtex is run.
1397         (runBibTeX): enhanced to extract the names of the bib files and
1398         getting their absolute path and enter them into the dep file.
1399         (findtexfile): static func that is used to look for tex-files,
1400         checks for absolute patchs and tries also with kpsewhich.
1401         Alternative ways of finding the correct files are wanted. Will
1402         probably be moved.
1403         (do_popen): function that runs a command using popen and returns
1404         the whole output of that command in a string. Should be moved to
1405         somewhere else.
1406
1407         * src/DepTable.[Ch] (extchanged): new function that returns true if a
1408         file with extension ext has changed.
1409
1410         * src/insets/figinset.C: added ifdef guards around the fl_free
1411         code that jug commented out. Now it is commented out when
1412         compiling with XForms == 0.89.
1413
1414         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1415         to lyxstring.C, and only keep a forward declaration in
1416         lyxstring.h. Simplifies the header file a bit and should help a
1417         bit on compile time too. Also changes to Srep will not mandate a
1418         recompile of code just using string.
1419         (~lyxstring): definition moved here since it uses srep.
1420         (size): definition moved here since it uses srep.
1421
1422         * src/support/lyxstring.h: removed a couple of "inline" that should
1423         not be there.
1424
1425 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1426
1427         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1428         the 'ob' argument.
1429
1430 1999-10-21  Juergen Vigna  <jug@sad.it>
1431
1432         * src/table.C (SetPWidth): Just a small fix so the alignment is not
1433         set to left if I just remove the width entry (or it is empty).
1434
1435         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1436         paragraph when having dummy paragraphs.
1437
1438 1999-10-20  Juergen Vigna  <jug@sad.it>
1439
1440         * src/insets/figinset.C: just commented some fl_free_form calls
1441         and added warnings so that this calls should be activated later
1442         again. This avoids for now a segfault, but we have a memory leak!
1443
1444         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1445         'const char * argument' to 'string argument', this should
1446         fix some Asserts() in lyxstring.C.
1447
1448         * src/lyxfunc.h: Removed the function argAsString(const char *)
1449         as it is not used anymore.
1450
1451 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
1452
1453         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1454         get instead of >>
1455
1456         * src/Literate.h: some funcs moved from public to private to make
1457         interface clearer. Unneeded args removed.
1458
1459         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1460         instead of lyxlex.
1461         (scanBuildLogFile): ditto
1462
1463         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1464         normal TeX Error. Still room for improvement.
1465
1466         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1467
1468         * src/buffer.C (insertErrors): changes to make the error
1469         desctription show properly.
1470
1471         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1472         could never happen
1473
1474         * src/support/lyxstring.C (helper): changed to use
1475         sizeof(object->rep->ref).
1476         (operator>>): changed to use a pointer instead.
1477
1478         * src/support/lyxstring.h: changed const reference & to value_type
1479         const & lets see if that helps.
1480
1481 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
1482
1483         * Makefile.am (rpmdist): fixed to have non static package and
1484         verison.
1485
1486         * src/support/lyxstring.C: removed the compilation guards
1487
1488         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
1489         a bit clearer.
1490
1491         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
1492         conditional compile of lyxstring.Ch
1493
1494         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
1495         stupid check, but it is a lot better than the bastring hack. 
1496         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
1497
1498         * several files: changed string::erase into string::clear. Not
1499         really needed.
1500         
1501         * src/chset.C (encodeString): use a char temporary instead
1502
1503         * src/table.C (TexEndOfCell): added tostr around
1504         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
1505         (TexEndOfCell): ditto
1506         (TexEndOfCell): ditto
1507         (TexEndOfCell): ditto
1508         (DocBookEndOfCell): ditto
1509         (DocBookEndOfCell): ditto
1510         (DocBookEndOfCell): ditto
1511         (DocBookEndOfCell): ditto
1512
1513         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
1514
1515         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
1516
1517         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
1518         (MenuBuildProg): added tostr around ret
1519         (MenuRunChktex): added tostr around ret
1520         (DocumentApplyCB): added tostr around ret
1521
1522         * src/chset.C (encodeString): added tostr around t->ic
1523
1524         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
1525         (makeLaTeXFile): added tostr around tocdepth
1526         (makeLaTeXFile): added tostr around ftcound - 1
1527
1528         * src/insets/insetbib.C (setCounter): added tostr around counter.
1529
1530         * src/support/lyxstring.h: added an operator+=(int) to catch more
1531         mistakes. 
1532
1533         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
1534         (lyxstring): We DON'T allow NULL pointers.
1535
1536 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1537
1538         * src/mathed/math_macro.C (MathMacroArgument::Write,
1539         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
1540         when writing them out.
1541
1542         * src/LString.C: remove, since it is not used anymore.
1543         
1544         * src/support/lyxstring.C: condition the content to
1545         USE_INCLUDED_STRING macro.
1546
1547         * src/mathed/math_symbols.C, src/support/lstrings.C,
1548         src/support/lyxstring.C: add `using' directive to specify what
1549         we need in <algorithm>. I do not think that we need to
1550         conditionalize this, but any thought is appreciated.
1551
1552         * many files: change all callback functions to "C" linkage
1553         functions to please strict C++ compilers like DEC cxx 6.1 in mode
1554         strict_ansi. Those who were static are now global. 
1555             The case of callbacks which are static class members is
1556         trickier, since we have to make C wrappers around them (see
1557         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
1558         did not finish this yet, since it defeats the purpose of
1559         encapsulation, and I am not sure what the best route is.
1560
1561 1999-10-19  Juergen Vigna  <jug@sad.it>
1562
1563         * src/support/lyxstring.C (lyxstring): we permit to have a null
1564         pointer as assignment value and just don't assign it.
1565
1566         * src/vspace.C (nextToken): corrected this function substituting
1567         find_first(_not)_of with find_last_of.
1568
1569         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
1570                 (TableOptCloseCB) (TableSpeCloseCB):
1571         inserted fl_set_focus call for problem with fl_hide_form() in
1572         xforms-0.89.
1573
1574 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1575
1576         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
1577         string. 
1578
1579 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1580
1581         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
1582         LyXLex::next() and not eatline() to get its argument.
1583
1584 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
1585
1586         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
1587         instead, use fstreams for io of the depfile, removed unneeded
1588         functions and variables. 
1589
1590         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
1591         vector instead, removed all functions and variables that is not in
1592         use.
1593
1594 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
1595
1596         * src/buffer.C (insertErrors): use new interface to TeXError
1597
1598         * Makefile.am (rpmdist): added a rpmdist target
1599
1600         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
1601         per Kayvan's instructions.
1602
1603 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1604
1605         * src/Makefile.am: add a definition for localedir, so that locales
1606         are found after installation (Kayvan)
1607
1608 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
1609
1610         * development/.cvsignore: new file.
1611
1612 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1613
1614         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
1615         C++ compiler provides wrappers for C headers and use our alternate
1616         version otherwise.
1617
1618         * configure.in: use LYX_CXX_CHEADERS.
1619
1620         * src/cheader/: new directory, populated with cname headers from
1621         libstdc++-2.8.1. They are a bit old, but probably good enough for
1622         what we want (support compilers who lack them).
1623         
1624         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
1625         from includes. It turns out is was stupid.
1626  
1627 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
1628
1629         * lib/Makefile.am (install-data-local): forgot a ';'
1630         (install-data-local): forgot a '\'
1631         (libinstalldirs): needed after all. reintroduced.
1632
1633 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
1634
1635         * configure.in (AC_OUTPUT): added lyx.spec
1636
1637         * development/lyx.spec: removed file
1638
1639         * development/lyx.spec.in: new file
1640
1641         * po/*.po: merged with lyx.pot becuase of make distcheck
1642         
1643         * lib/Makefile.am (dist-hook): added dist-hook so that
1644         documentation files will be included when doing a make
1645         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
1646         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
1647         conditional later.
1648         more: tried to make install do the right thing, exclude CVS dirs
1649         etc.
1650
1651         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
1652         Path would fit in more nicely.
1653
1654         * all files that used to use pathstack: uses now Path instead.
1655         This change was a lot easier than expected.
1656         
1657         * src/support/path.h: new file
1658
1659         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
1660
1661         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
1662
1663         * src/support/lyxstring.C (getline): Default arg was given for
1664         para 3. removed.
1665
1666         * Configure.cmd: removed file 
1667
1668 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1669
1670         * src/support/DebugStream.[Ch]: remove the explicit std:: before
1671         streams classes and types, add the proper 'using' statements when
1672         MODERN_STL is defined.
1673         
1674         * src/debug.h: move the << operator definition after the inclusion
1675         of DebugStream.h
1676
1677         * src/support/filetools.C: include "LAssert.h", which is needed
1678         later. 
1679
1680         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
1681         to includes. 
1682
1683         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
1684         include "debug.h" to define a proper ostream.
1685
1686 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
1687
1688         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
1689           method to the SystemCall class which can kill a process, but it's
1690           not fully implemented yet.
1691
1692         * src/*.C: Changed Systemcalls::Startscript() to startscript()
1693
1694         * src/support/FileInfo.h: Better documentation  
1695
1696         * src/lyxfunc.C: Added support for buffer-export html
1697         
1698         * src/menus.C: Added Export->As HTML...
1699         
1700         * lib/bind/*.bind: Added short-cut for buffer-export html
1701
1702         * src/lyxrc.*: Added support for new \tth_command
1703         
1704         * lib/lyxrc.example: Added stuff for new \tth_command
1705
1706 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
1707
1708         * lib/Makefile.am (IMAGES): removed images/README
1709         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
1710         installes in correct place. Check permisions is installed
1711         correctly.
1712
1713         * src/LaTeX.C: some no-op changes moved declaration of some
1714         variables around.
1715
1716         * src/LaTeX.h (LATEX_H): changed include guard name
1717
1718 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1719
1720         * lib/reLyX/Makefile.am: install noweb2lyx.
1721
1722         * lib/Makefile.am: install configure. 
1723
1724         * lib/reLyX/configure.in: declare a config aux dir; set package
1725         name to lyx (not sure what the best solution is); generate noweb2lyx.
1726
1727         * lib/layouts/egs.layout: fix the bibliography layout.
1728
1729 1999-10-08  Jürgen Vigna <jug@sad.it>
1730
1731         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
1732         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
1733         it returned without continuing to search the path.
1734         
1735 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
1736
1737         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
1738         also fixes a bug. It is not allowed to do tricks with std::strings
1739         like: string a("hei"); &a[e]; this will not give what you
1740         think... Any reason for the complexity in this func?
1741
1742 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
1743
1744         * Updated README and INSTALL a bit, mostly to check that my
1745         CVS rights are correctly set up.
1746
1747 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
1748
1749         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
1750         does not allow '\0' chars but lyxstring and std::string does.
1751
1752 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
1753
1754         * autogen.sh (AUTOCONF): let the autogen script create the
1755         POTFILES.in file too. POTFILES.in should perhaps now not be
1756         included in the cvs module.
1757
1758         * some more files changed to use C++ includes instead of C ones.
1759
1760         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
1761         not assigned.
1762         (Reread): added tostr to nlink. buggy output otherwise.
1763         (Reread): added a string() around szMode when assigning to Buffer,
1764         without this I got a log of garbled info strings.
1765
1766         * acconfig.h: commented out the PTR_AS_INT macros. They should not
1767         be needed.
1768
1769         * I have added several ostream & operator<<(ostream &, some_type)
1770         functions. This has been done to avoid casting and warnings when
1771         outputting enums to lyxerr. This as thus eliminated a lot of
1772         explicit casts and has made the code clearer. Among the enums
1773         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
1774         mathed enums, some font enum the Debug::type enum. 
1775
1776         * src/support/lyxstring.h (clear): missing method. equivalent of
1777         erase(0, npos).
1778
1779         * all files that contained "stderr": rewrote constructs that used
1780         stderr to use lyxerr instead. (except bmtable)
1781
1782         * src/support/DebugStream.h (level): and the passed t with
1783         Debug::ANY to avoid spurious bits set.
1784
1785         * src/debug.h (Debug::type value): made it accept strings of the
1786         type INFO,INIT,KEY.
1787
1788         * configure.in (Check for programs): Added a check for kpsewhich,
1789         the latex generation will use this later to better the dicovery of
1790         all used files. 
1791
1792         * src/BufferView.C (create_view): we don't need to cast this to
1793         (void*) that is done automatically.
1794         (WorkAreaButtonPress): removed some dead code.
1795
1796 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1797
1798         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1799         is not overwritten when translated (David Sua'rez de Lis).
1800
1801         * lib/CREDITS: Added David Sua'rez de Lis
1802
1803         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1804
1805         * src/bufferparams.C (BufferParams): default input encoding is now
1806         "latin1" 
1807
1808         * acinclude.m4 (cross_compiling): comment out macro
1809         LYX_GXX_STRENGTH_REDUCE. 
1810
1811         * acconfig.h: make sure that const is not defined (to empty) when
1812         we are compiling C++. Remove commented out code using SIZEOF_xx
1813         macros.
1814         
1815         * configure.in : move the test for const and inline as late as
1816         possible so that these C tests do not interefere with C++ ones.
1817         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1818         has not been proven. 
1819
1820 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1821
1822         * src/table.C (getDocBookAlign): remove bad default value for
1823         isColumn parameter.
1824
1825         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1826         shortcut. 
1827         (ShowFileMenu2): ditto.
1828
1829         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1830         of files to ignore.
1831
1832 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
1833
1834         * Most files: finished the change from the old error code to use
1835         DebugStream for all lyxerr debugging. Only minor changes remain
1836         (e.g. the setting of debug levels using strings instead of number) 
1837
1838 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
1839
1840         * src/layout.C (Add): Changed to use compare_no_case instead of
1841         strcasecmp.
1842
1843         * src/FontInfo.C: changed loop variable type too string::size_type.
1844
1845 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1846
1847         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1848         set ETAGS_ARGS to --c++ 
1849
1850 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
1851
1852         * src/table.C (DocBookEndOfCell): commented out two unused variables
1853
1854         * src/paragraph.C: commented out four unused variables. 
1855
1856         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1857         insed a if clause with type string::size_type.
1858
1859         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1860         string::size_type.
1861
1862         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1863
1864         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1865         variable, also changed loop to go from 0 to lenght + 1, instead of
1866         -1 to length. This should be correct.
1867
1868         * src/LaTeX.C (scanError): use string::size_type as loop variable
1869         type.
1870
1871         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1872         (l.896) since y_tmp and row was not used anyway.
1873
1874         * src/insets/insetref.C (escape): use string::size_type as loop
1875         variable type.
1876
1877         * src/insets/insetquotes.C (Width): use string::size_type as loop
1878         variable type.
1879         (Draw): use string::size_type as loop variable type.
1880
1881         * src/insets/insetlatexaccent.C (checkContents): use
1882         string::size_type as loop variable type.
1883
1884         * src/insets/insetlabel.C (escape): use string::size_type as loop
1885         variable type.
1886
1887         * src/insets/insetinfo.C: added an extern for current_view.
1888
1889         * src/insets/insetcommand.C (scanCommand): use string::size_type
1890         as loop variable type.
1891
1892         * most files: removed the RCS tags. With them we had to recompile
1893         a lot of files after a simple cvs commit. Also we have never used
1894         them for anything meaningful. 
1895
1896         * most files: tags-query-replace NULL 0. As adviced several plases
1897         we now use "0" instead of "NULL" in our code. 
1898
1899         * src/support/filetools.C (SpaceLess): use string::size_type as
1900         loop variable type.
1901
1902 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1903
1904         * src/paragraph.C: fixed up some more string stuff.
1905
1906 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
1907
1908         * src/support/filetools.h: make modestr a std::string.
1909
1910         * src/filetools.C (GetEnv): made ch really const.
1911
1912         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1913         made code that used these use max/min from <algorithm> instead.
1914
1915         * changed several c library include files to their equivalent c++
1916         library include files. All is not changed yet.
1917
1918         * created a support subdir in src, put lyxstring and lstrings
1919         there + the extra files atexit, fileblock, strerror. Created
1920         Makefile.am. edited configure.in and src/Makefile.am to use this
1921         new subdir. More files moved to support.
1922
1923         * imported som of the functions from repository lyx, filetools
1924         
1925         * ran tags-query-replace on LString -> string, corrected the bogus
1926         cases. Tried to make use of lstrings.[hC], debugged a lot. There
1927         is still some errors in there. This is errors where too much or
1928         too litle get deleted from strings (string::erase, string::substr,
1929         string::replace), there can also be some off by one errors, or
1930         just plain wrong use of functions from lstrings. Viewing of quotes
1931         is wrong. 
1932
1933         * LyX is now running fairly well with string, but there are
1934         certainly some bugs yet (see above) also string is quite different
1935         from LString among others in that it does not allow null pointers
1936         passed in and will abort if it gets any.
1937         
1938         * Added the revtex4 files I forgot when setting up the repository.
1939
1940 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1941
1942         * All over: Tried to clean everything up so that only the files
1943           that we really need are included in the cvs repository.
1944         * Switched to use automake.
1945         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1946         * Install has not been checked.
1947
1948 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1949
1950         * po/pt.po: Three errors:
1951                l.533 and l.538 format specification error
1952                l. 402 duplicate entry, I just deleted it.
1953