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