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