]> git.lyx.org Git - lyx.git/blob - ChangeLog
more fixes and updates
[lyx.git] / ChangeLog
1 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
2
3         * src/bufferlist.C: use a vector to store the buffers in. This is
4         an internal change and should not affect any other thing.
5         
6         * src/BufferView.C (waitForX): use XSync instead of the lengthy
7         stuff in waitForX.
8
9         * src/text.C (Fill): fix potential bug, one off bug.
10
11 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
12
13         * src/Makefile.am (lyx_main.o): add more files it depends on.
14
15         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
16
17         * src/support/lyxstring.C: use size_t for the reference count,
18         size, reserved memory and xtra.
19         (internal_compare): new private member function. Now the compare
20         functions should work for std::strings that have embedded '\0'
21         characters.
22         (compare): all compare functions rewritten to use
23         internal_compare.
24         
25 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
26
27         * src/support/lyxstring.C (compare): pass c_str()
28         (compare): pass c_str
29         (compare): pass c_str
30
31 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
32
33         * src/support/DebugStream.C: <config.h> was not included correctly.
34
35         * lib/configure: forgot to re-generate it :( I'll make this file
36         auto generated soon.
37
38 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
39
40         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
41         is used.
42
43         * src/support/lyxstring.C: some changes from length() to rep->sz.
44         avoids a function call.
45
46         * src/support/filetools.C (SpaceLess): yet another version of the
47         algorithm...now per Jean-Marc's suggestions.
48
49 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
50
51         * src/layout.C (less_textclass_desc): functor for use in sorting
52         of textclasses. 
53         (LyXTextClass::Read): sort the textclasses after reading.
54         
55         * src/support/filetools.C (SpaceLess): new version of the
56         SpaceLess functions. What problems does this one give? Please
57         report.
58
59         * images/banner_bw.xbm: made the arrays unsigned char *
60
61 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
62
63         * src/support/lyxstring.C (find): remove bogus assertion in the
64         two versions of find where this has not been done yet.
65
66         * src/support/lyxlib.h: add missing int return type to
67         lyx::chdir(). 
68
69         * src/menus.C (ShowFileMenu): disable exporting to html if no
70         html export command is present.
71
72         * config/lib_configure.m4: add a test for an HTML converter. The
73         programs checked for are, in this order: tth, latex2html and
74         hevea. 
75
76         * lib/configure: generated from config/lib_configure.m4.
77
78         * src/lyxfunc.C (Dispatch): update and improve the execution of an
79         html converter. The parameters are now passed through $$FName and
80         $$OutName, instead of standard input/output.
81
82         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
83
84         * lib/lyxrc.example: update description of \html_command. 
85         add "quotes" around \screen_font_xxx font setting examples to help
86         people who use fonts with spaces in their names.
87
88 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
89
90         * Distribution files: updates for v1.1.2
91
92         * src/support/lyxstring.C (find): remove bogus assert and return
93         npos for the same condition.
94
95 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
96
97         * added patch for OS/2 from SMiyata.
98
99 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
100
101         * src/text2.C (CutSelection): make space_wrapped a bool
102         (CutSelection): dont declare int i until we have to.
103         (alphaCounter): return a char const *.
104
105 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
106
107         * src/support/syscall.C (Systemcalls::kill): 
108           src/support/filetools.C (PutEnv, PutEnvPath): 
109           src/lyx_cb.C (addNewlineAndDepth): 
110           src/FontInfo.C (FontInfo::resize): condition some #warning
111         directives with WITH_WARNINGS.
112         
113
114 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
115
116         * src/layout.[Ch] + several files: access to class variables
117         limited and made accessor functions instead a lot of code changed
118         becuase of this. Also instead of returning pointers often a const
119         reference is returned instead.
120         
121         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
122
123         * src/Makefile.am (dist-hook): added used to remove the CVS from
124         cheaders upon creating a dist
125         (EXTRA_DIST): added cheaders
126
127         * src/support/lstrings.C (tostr(char)): fix it to handle param as
128         a character not as a small integer. 
129
130         * src/support/lyxstring.C (find): removed Assert and added i >=
131         rep->sz to the first if.
132
133 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
134
135         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
136         src/LyXView.C src/buffer.C src/bufferparams.C
137         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
138         src/text2.C src/insets/insetinclude.C:
139         lyxlayout renamed to textclasslist.
140
141         * src/layout.C: some lyxerr changes.
142
143         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
144         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
145         (LyXLayoutList): removed all traces of this class.
146         (LyXTextClass::Read): rewrote LT_STYLE
147         (LyXTextClass::hasLayout): new function
148         (LyXTextClass::GetLayout): rewritten to return an iterator + has
149         both const and nonconst version.
150         (LyXTextClass::delete_layout): new function.
151         (LyXTextClassList::Style): bug fix. do the right thing if layout
152         is to big.
153         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
154         (LyXTextClassList::NameOfLayout): ditto 
155         (LyXTextClassList::Load): ditto
156
157         * src/buffer.C (makeLaTeXFile): new access to layoutlist
158
159         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
160
161         * src/LyXAction.C (LookupFunc): added a workaround for sun
162         compiler, on the other hand...we don't know if the current code
163         compiles on sun at all...
164
165         * src/support/filetools.C (CleanupPath): subst fix
166
167         * src/insets/insetbib.C (delDatabase): subst fix, this looks
168         _really_ weird.
169
170         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
171         complained about this one?
172
173         * src/insets/insetinclude.C (Latex): subst fix
174
175         * src/insets/insetbib.C (getKeys): subst fix
176
177         * src/LyXSendto.C (SendtoApplyCB): subst fix
178
179         * src/lyx_main.C (init): subst fix
180
181         * src/layout.C (Read): subst fix
182
183         * src/lyx_sendfax_main.C (button_send): subst fix
184
185         * src/buffer.C (RoffAsciiTable): subst fix
186
187         * src/lyx_cb.C (MenuFax): subst fix
188         (PrintApplyCB): subst fix
189
190 1999-10-26  Juergen Vigna  <jug@sad.it>
191
192         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
193
194         (Read): Cleaned up this code so now we read only format vestion >= 5
195
196 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
197
198         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
199         come nobody has complained about this one?
200
201         * src/insets/insetinclude.C (Latex): subst fix
202
203         * src/insets/insetbib.C (getKeys): subst fix
204
205         * src/lyx_main.C (init): subst fix
206
207         * src/layout.C (Read): subst fix
208
209         * src/buffer.C (RoffAsciiTable): subst fix
210
211         * src/lyx_cb.C (MenuFax): subst fix.
212
213         * src/layout.[hC] + some other files: rewrote to use
214         std::container to store textclasses and layouts in.
215         Simplified, removed a lot of code. Make all classes
216         assignable. Further simplifications and review of type
217         use still to be one. 
218
219         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
220         lastfiles to create the lastfiles partr of the menu.
221
222         * src/lastfiles.[Ch]: rewritten to use deque to store the
223         lastfiles in. Uses fstream for reading and writing. Simplifies
224         code.
225
226         * src/support/syscall.C: remove explicit cast.
227
228         * src/BufferView.C (CursorToggleCB): removed code snippets that
229         were commented out.
230         use explicat C++ style casts instead of C style casts. also use
231         u_vdata instea of passing pointers in longs.
232
233         * src/PaperLayout.C: removed code snippets that were commented out.
234
235         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
236
237         * src/lyx_main.C: removed code snippets that wer commented out.
238
239         * src/paragraph.C: removed code snippets that were commented out.
240
241         * src/lyxvc.C (logClose): use static_cast
242         (logUpdate): ditto
243         (viewLog): remove explicit cast to void*
244         (showLog): removed old commented code
245
246         * src/menus.C: use static_cast instead of C style casts. use
247         u_vdata instead of u_ldata. remove explicit cast to (long) for
248         pointers. Removed old code that was commented out.
249
250         * src/insets/inset.C: removed old commented func
251
252         * src/insets/insetref.C (InsetRef): removed old code that had been
253         commented out for a long time.
254         (Edit): ditto
255         (escape): removed C style cast
256
257         * src/insets/insetlatexaccent.C (Draw): removed old commented code
258
259         * src/insets/insetlatex.C (Draw): removed old commented code
260         (Read): rewritten to use string
261
262         * src/insets/insetlabel.C (escape): removed C style cast
263
264         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
265
266         * src/insets/insetindex.C: use static_cast and u_vdata, removed
267         old commented code.
268
269         * src/insets/insetinclude.h: removed a couple of stupid bools
270
271         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
272         (Clone): remove C style cast
273         (getKeys): changed list to lst because of std::list
274
275         * src/insets/inseterror.C (Draw): removed som old commented code.
276
277         * src/insets/insetcommand.C (Draw): removed some old commented code.
278
279         * src/insets/insetbib.C (bibitem_cb): removed code that has been
280         commented out forever.
281         (bibitem_cb): use static_cast instead of C style cast
282         use of vdata changed to u_vdata.
283
284         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
285         parameter.
286         (CloseUrlCB): use static_cast instead of C style cast.
287         (CloseUrlCB): added a fl_free form...it seemed to be missing.
288
289         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
290         (C_InsetInfo_CloseInfoCB): forward the ob parameter
291         (CloseInfoCB): static_cast from ob->u_vdata instead.
292         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
293         instead. 
294
295         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
296         (C_InsetError_CloseErrorCB): forward the ob parameter
297         (CloseErrorCB): static_cast from ob->u_vdata instead.
298
299         * src/vspace.h: include LString.h since we use string in this class.
300
301         * src/vspace.C (lyx_advance): changed name from advance because of
302         nameclash with stl. And since we cannot use namespaces yet...I
303         used a lyx_ prefix instead. Expect this to change when we begin
304         using namespaces.
305
306         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
307
308         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
309         and removed now defunct constructor and deconstructor.
310
311         * src/BufferView.h: have backstack as a object not as a pointer.
312         removed initialization from constructor. added include for BackStack 
313
314         * development/lyx.spec.in (%build): add CFLAGS also.
315
316         * src/screen.C (drawFrame): removed another warning.
317
318 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
319
320         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
321         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
322         README and ANNOUNCE a bit for the next release. More work is
323         needed, of course.
324
325         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
326         unbreakable if we are in freespacing mode (LyX-Code), but not in
327         latex mode.
328
329 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
330
331         * src/BackStack.h: fixed initialization order in constructor
332
333         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
334
335         * acinclude.m4 (VERSION): new rules for when a version is
336         development, added also a variable for prerelease.
337         (warnings): we set with_warnings=yes for prereleases
338         (lyx_opt): prereleases compile with same optimization as development 
339         (CXXFLAGS): only use pedantic if we are a development version 
340
341         * src/BufferView.C (restorePosition): don't do anything if the
342         backstack is empty.
343
344         * src/BackStack.h: added member empty, use this to test if there
345         is anything to pop...
346
347 1999-10-25  Juergen Vigna  <jug@sad.it>
348
349         * forms/form1.fd +
350         * forms/layout_forms.fd +
351         * forms/latexoptions.fd +
352         * lyx.fd: changed for various form resize issues
353
354         * src/mathed/math_panel.C +
355         * src/insets/inseterror.C +
356         * src/insets/insetinfo.C +
357         * src/insets/inseturl.C +
358         * src/insets/inseturl.h +
359         * src/LaTeXLog.C +
360         * src/LyXSendto.C +
361         * src/PaperLayout.C +
362         * src/ParagraphExtra.C +
363         * src/TableLayout.C +
364         * src/form1.C +
365         * src/layout_forms.C +
366         * src/lyx.C +
367         * src/lyx_cb.C +
368         * src/lyx_gui.C +
369         * src/lyxfr0.C +
370         * src/lyxfunc.C +
371         * src/lyxvc.C +
372         * src/menus.C: fixed various resize issues. So now forms can be
373         resized savely or not be resized at all.
374         
375         * forms/form_url.fd +
376         * src/insets/form_url.[Ch]: added because it's cleaner and easier
377         to modify IMO.
378
379         * src/insets/Makefile.am: added files form_url.[Ch]
380         
381 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
382
383         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
384         (and presumably 6.2).
385
386         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
387         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
388         remaining static member callbacks. 
389
390         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
391         messages. 
392
393         * src/support/lyxstring.h: declare struct Srep as friend of
394         lyxstring, since DEC cxx complains otherwise.
395
396 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
397
398 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
399
400         * src/LaTeX.C (run): made run_bibtex also depend on files with
401         extension ".bst"
402         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
403         are put into the dependency file.
404
405         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
406         the code has shown itself to work
407         (create_ispell_pipe): removed another warning, added a comment
408         instead. 
409
410         * src/minibuffer.C (ExecutingCB): removed code that has been
411         commented out a long time
412
413         * src/lyxfunc.C (processKeyEvent): removed some very old commented
414         out code + a warning.
415
416         * src/support/lyxstring.h: comment out the three private
417         operators, when compiling with string ansi conforming compilers
418         they make problems.
419
420         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
421         unsigned char *.
422         (pixmapFromBitmapData): change type of bdata to be unsigned char *
423         (pixmapFromBitmapData): add a reinterpret_cast in the call to
424         XCreateImage
425
426         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
427         unsigned char *
428
429         * src/mathed/math_panel.C (create_math_panel): remove explicit
430         casts
431
432         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
433         unsigned char *.
434
435         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
436         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
437         to XCreatePixmapFromBitmapData
438         (fl_set_bmtable_data): change the last argument to be unsigned
439         char *
440         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
441         and bh to be unsigned int, remove explicit casts in call to
442         XReadBitmapFileData.
443
444         * images/arrows.xbm: made the arrays unsigned char *
445         * images/varsz.xbm: ditto
446         * images/misc.xbm: ditto
447         * images/greek.xbm: ditto
448         * images/dots.xbm: ditto
449         * images/brel.xbm: ditto
450         * images/bop.xbm: ditto
451
452         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
453
454         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
455         (LYX_PROG_CXX): added -pedantic to g++ compile options when
456         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
457         needed. 
458         (LYX_CXX_CHEADERS): added <clocale> to the test. 
459
460 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
461
462         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
463
464         * src/support/lyxstring.C (append): fixed something that must be a
465         bug, rep->assign was used instead of rep->append.
466
467         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
468         and LOstream.h
469
470         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
471         lyx insert double chars. Fix spotted by Kayvan.
472
473 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
474
475         * Fixed the tth support. I messed up with the Emacs patch apply feature
476         and omitted the changes in lyxrc.C.
477
478 1999-10-22  Juergen Vigna  <jug@sad.it>
479
480         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
481
482         * src/lyx_cb.C (MenuInsertRef) + 
483         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
484         the form cannot be resized under it limits (fixes a segfault)
485         
486         * src/lyx.C (create_form_form_ref) +
487         * forms/lyx.fd: Changed Gravity on name input field so that it is
488         resized correctly.
489
490 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
491
492         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
493         <ostream> and <istream>.
494         
495         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
496         whether <fstream> provides the latest standard features, or if we
497         have an oldstyle library (like in egcs).
498         (LYX_CXX_STL_STRING): fix the test.
499
500         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
501         code on MODERN_STL_STREAM.
502
503         * src/support/lyxstring.h: use L{I,O}stream.h.
504
505         * src/support/L{I,O}stream.h: new files, designed to setup
506         correctly streams for our use
507           - includes the right header depending on STL capabilities
508           - puts std::ostream and std::endl (for LOStream.h) or
509           std::istream (LIStream.h) in toplevel namespace.
510
511 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
512
513         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
514         was a bib file that had been changed we ensure that bibtex is run.
515         (runBibTeX): enhanced to extract the names of the bib files and
516         getting their absolute path and enter them into the dep file.
517         (findtexfile): static func that is used to look for tex-files,
518         checks for absolute patchs and tries also with kpsewhich.
519         Alternative ways of finding the correct files are wanted. Will
520         probably be moved.
521         (do_popen): function that runs a command using popen and returns
522         the whole output of that command in a string. Should be moved to
523         somewhere else.
524
525         * src/DepTable.[Ch] (extchanged): new function that returns true if a
526         file with extension ext has changed.
527
528         * src/insets/figinset.C: added ifdef guards around the fl_free
529         code that jug commented out. Now it is commented out when
530         compiling with XForms == 0.89.
531
532         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
533         to lyxstring.C, and only keep a forward declaration in
534         lyxstring.h. Simplifies the header file a bit and should help a
535         bit on compile time too. Also changes to Srep will not mandate a
536         recompile of code just using string.
537         (~lyxstring): definition moved here since it uses srep.
538         (size): definition moved here since it uses srep.
539
540         * src/support/lyxstring.h: removed a couple of "inline" that should
541         not be there.
542
543 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
544
545         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
546         the 'ob' argument.
547
548 1999-10-21  Juergen Vigna  <jug@sad.it>
549
550         * src/table.C (SetPWidth): Just a small fix so the alignment is not
551         set to left if I just remove the width entry (or it is empty).
552
553         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
554         paragraph when having dummy paragraphs.
555
556 1999-10-20  Juergen Vigna  <jug@sad.it>
557
558         * src/insets/figinset.C: just commented some fl_free_form calls
559         and added warnings so that this calls should be activated later
560         again. This avoids for now a segfault, but we have a memory leak!
561
562         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
563         'const char * argument' to 'string argument', this should
564         fix some Asserts() in lyxstring.C.
565
566         * src/lyxfunc.h: Removed the function argAsString(const char *)
567         as it is not used anymore.
568
569 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
570
571         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
572         get instead of >>
573
574         * src/Literate.h: some funcs moved from public to private to make
575         interface clearer. Unneeded args removed.
576
577         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
578         instead of lyxlex.
579         (scanBuildLogFile): ditto
580
581         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
582         normal TeX Error. Still room for improvement.
583
584         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
585
586         * src/buffer.C (insertErrors): changes to make the error
587         desctription show properly.
588
589         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
590         could never happen
591
592         * src/support/lyxstring.C (helper): changed to use
593         sizeof(object->rep->ref).
594         (operator>>): changed to use a pointer instead.
595
596         * src/support/lyxstring.h: changed const reference & to value_type
597         const & lets see if that helps.
598
599 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
600
601         * Makefile.am (rpmdist): fixed to have non static package and
602         verison.
603
604         * src/support/lyxstring.C: removed the compilation guards
605
606         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
607         a bit clearer.
608
609         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
610         conditional compile of lyxstring.Ch
611
612         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
613         stupid check, but it is a lot better than the bastring hack. 
614         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
615
616         * several files: changed string::erase into string::clear. Not
617         really needed.
618         
619         * src/chset.C (encodeString): use a char temporary instead
620
621         * src/table.C (TexEndOfCell): added tostr around
622         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
623         (TexEndOfCell): ditto
624         (TexEndOfCell): ditto
625         (TexEndOfCell): ditto
626         (DocBookEndOfCell): ditto
627         (DocBookEndOfCell): ditto
628         (DocBookEndOfCell): ditto
629         (DocBookEndOfCell): ditto
630
631         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
632
633         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
634
635         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
636         (MenuBuildProg): added tostr around ret
637         (MenuRunChktex): added tostr around ret
638         (DocumentApplyCB): added tostr around ret
639
640         * src/chset.C (encodeString): added tostr around t->ic
641
642         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
643         (makeLaTeXFile): added tostr around tocdepth
644         (makeLaTeXFile): added tostr around ftcound - 1
645
646         * src/insets/insetbib.C (setCounter): added tostr around counter.
647
648         * src/support/lyxstring.h: added an operator+=(int) to catch more
649         mistakes. 
650
651         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
652         (lyxstring): We DON'T allow NULL pointers.
653
654 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
655
656         * src/mathed/math_macro.C (MathMacroArgument::Write,
657         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
658         when writing them out.
659
660         * src/LString.C: remove, since it is not used anymore.
661         
662         * src/support/lyxstring.C: condition the content to
663         USE_INCLUDED_STRING macro.
664
665         * src/mathed/math_symbols.C, src/support/lstrings.C,
666         src/support/lyxstring.C: add `using' directive to specify what
667         we need in <algorithm>. I do not think that we need to
668         conditionalize this, but any thought is appreciated.
669
670         * many files: change all callback functions to "C" linkage
671         functions to please strict C++ compilers like DEC cxx 6.1 in mode
672         strict_ansi. Those who were static are now global. 
673             The case of callbacks which are static class members is
674         trickier, since we have to make C wrappers around them (see
675         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
676         did not finish this yet, since it defeats the purpose of
677         encapsulation, and I am not sure what the best route is.
678
679 1999-10-19  Juergen Vigna  <jug@sad.it>
680
681         * src/support/lyxstring.C (lyxstring): we permit to have a null
682         pointer as assignment value and just don't assign it.
683
684         * src/vspace.C (nextToken): corrected this function substituting
685         find_first(_not)_of with find_last_of.
686
687         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
688                 (TableOptCloseCB) (TableSpeCloseCB):
689         inserted fl_set_focus call for problem with fl_hide_form() in
690         xforms-0.89.
691
692 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
693
694         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
695         string. 
696
697 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
698
699         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
700         LyXLex::next() and not eatline() to get its argument.
701
702 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
703
704         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
705         instead, use fstreams for io of the depfile, removed unneeded
706         functions and variables. 
707
708         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
709         vector instead, removed all functions and variables that is not in
710         use.
711
712 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
713
714         * src/buffer.C (insertErrors): use new interface to TeXError
715
716         * Makefile.am (rpmdist): added a rpmdist target
717
718         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
719         per Kayvan's instructions.
720
721 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
722
723         * src/Makefile.am: add a definition for localedir, so that locales
724         are found after installation (Kayvan)
725
726 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
727
728         * development/.cvsignore: new file.
729
730 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
731
732         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
733         C++ compiler provides wrappers for C headers and use our alternate
734         version otherwise.
735
736         * configure.in: use LYX_CXX_CHEADERS.
737
738         * src/cheader/: new directory, populated with cname headers from
739         libstdc++-2.8.1. They are a bit old, but probably good enough for
740         what we want (support compilers who lack them).
741         
742         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
743         from includes. It turns out is was stupid.
744  
745 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
746
747         * lib/Makefile.am (install-data-local): forgot a ';'
748         (install-data-local): forgot a '\'
749         (libinstalldirs): needed after all. reintroduced.
750
751 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
752
753         * configure.in (AC_OUTPUT): added lyx.spec
754
755         * development/lyx.spec: removed file
756
757         * development/lyx.spec.in: new file
758
759         * po/*.po: merged with lyx.pot becuase of make distcheck
760         
761         * lib/Makefile.am (dist-hook): added dist-hook so that
762         documentation files will be included when doing a make
763         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
764         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
765         conditional later.
766         more: tried to make install do the right thing, exclude CVS dirs
767         etc.
768
769         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
770         Path would fit in more nicely.
771
772         * all files that used to use pathstack: uses now Path instead.
773         This change was a lot easier than expected.
774         
775         * src/support/path.h: new file
776
777         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
778
779         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
780
781         * src/support/lyxstring.C (getline): Default arg was given for
782         para 3. removed.
783
784         * Configure.cmd: removed file 
785
786 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
787
788         * src/support/DebugStream.[Ch]: remove the explicit std:: before
789         streams classes and types, add the proper 'using' statements when
790         MODERN_STL is defined.
791         
792         * src/debug.h: move the << operator definition after the inclusion
793         of DebugStream.h
794
795         * src/support/filetools.C: include "LAssert.h", which is needed
796         later. 
797
798         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
799         to includes. 
800
801         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
802         include "debug.h" to define a proper ostream.
803
804 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
805
806         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
807           method to the SystemCall class which can kill a process, but it's
808           not fully implemented yet.
809
810         * src/*.C: Changed Systemcalls::Startscript() to startscript()
811
812         * src/support/FileInfo.h: Better documentation  
813
814         * src/lyxfunc.C: Added support for buffer-export html
815         
816         * src/menus.C: Added Export->As HTML...
817         
818         * lib/bind/*.bind: Added short-cut for buffer-export html
819
820         * src/lyxrc.*: Added support for new \tth_command
821         
822         * lib/lyxrc.example: Added stuff for new \tth_command
823
824 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
825
826         * lib/Makefile.am (IMAGES): removed images/README
827         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
828         installes in correct place. Check permisions is installed
829         correctly.
830
831         * src/LaTeX.C: some no-op changes moved declaration of some
832         variables around.
833
834         * src/LaTeX.h (LATEX_H): changed include guard name
835
836 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
837
838         * lib/reLyX/Makefile.am: install noweb2lyx.
839
840         * lib/Makefile.am: install configure. 
841
842         * lib/reLyX/configure.in: declare a config aux dir; set package
843         name to lyx (not sure what the best solution is); generate noweb2lyx.
844
845         * lib/layouts/egs.layout: fix the bibliography layout.
846
847 1999-10-08  Jürgen Vigna <jug@sad.it>
848
849         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
850         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
851         it returned without continuing to search the path.
852         
853 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
854
855         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
856         also fixes a bug. It is not allowed to do tricks with std::strings
857         like: string a("hei"); &a[e]; this will not give what you
858         think... Any reason for the complexity in this func?
859
860 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
861
862         * Updated README and INSTALL a bit, mostly to check that my
863         CVS rights are correctly set up.
864
865 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
866
867         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
868         does not allow '\0' chars but lyxstring and std::string does.
869
870 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
871
872         * autogen.sh (AUTOCONF): let the autogen script create the
873         POTFILES.in file too. POTFILES.in should perhaps now not be
874         included in the cvs module.
875
876         * some more files changed to use C++ includes instead of C ones.
877
878         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
879         not assigned.
880         (Reread): added tostr to nlink. buggy output otherwise.
881         (Reread): added a string() around szMode when assigning to Buffer,
882         without this I got a log of garbled info strings.
883
884         * acconfig.h: commented out the PTR_AS_INT macros. They should not
885         be needed.
886
887         * I have added several ostream & operator<<(ostream &, some_type)
888         functions. This has been done to avoid casting and warnings when
889         outputting enums to lyxerr. This as thus eliminated a lot of
890         explicit casts and has made the code clearer. Among the enums
891         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
892         mathed enums, some font enum the Debug::type enum. 
893
894         * src/support/lyxstring.h (clear): missing method. equivalent of
895         erase(0, npos).
896
897         * all files that contained "stderr": rewrote constructs that used
898         stderr to use lyxerr instead. (except bmtable)
899
900         * src/support/DebugStream.h (level): and the passed t with
901         Debug::ANY to avoid spurious bits set.
902
903         * src/debug.h (Debug::type value): made it accept strings of the
904         type INFO,INIT,KEY.
905
906         * configure.in (Check for programs): Added a check for kpsewhich,
907         the latex generation will use this later to better the dicovery of
908         all used files. 
909
910         * src/BufferView.C (create_view): we don't need to cast this to
911         (void*) that is done automatically.
912         (WorkAreaButtonPress): removed some dead code.
913
914 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
915
916         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
917         is not overwritten when translated (David Sua'rez de Lis).
918
919         * lib/CREDITS: Added David Sua'rez de Lis
920
921         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
922
923         * src/bufferparams.C (BufferParams): default input encoding is now
924         "latin1" 
925
926         * acinclude.m4 (cross_compiling): comment out macro
927         LYX_GXX_STRENGTH_REDUCE. 
928
929         * acconfig.h: make sure that const is not defined (to empty) when
930         we are compiling C++. Remove commented out code using SIZEOF_xx
931         macros.
932         
933         * configure.in : move the test for const and inline as late as
934         possible so that these C tests do not interefere with C++ ones.
935         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
936         has not been proven. 
937
938 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
939
940         * src/table.C (getDocBookAlign): remove bad default value for
941         isColumn parameter.
942
943         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
944         shortcut. 
945         (ShowFileMenu2): ditto.
946
947         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
948         of files to ignore.
949
950 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
951
952         * Most files: finished the change from the old error code to use
953         DebugStream for all lyxerr debugging. Only minor changes remain
954         (e.g. the setting of debug levels using strings instead of number) 
955
956 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
957
958         * src/layout.C (Add): Changed to use compare_no_case instead of
959         strcasecmp.
960
961         * src/FontInfo.C: changed loop variable type too string::size_type.
962
963 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
964
965         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
966         set ETAGS_ARGS to --c++ 
967
968 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
969
970         * src/table.C (DocBookEndOfCell): commented out two unused variables
971
972         * src/paragraph.C: commented out four unused variables. 
973
974         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
975         insed a if clause with type string::size_type.
976
977         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
978         string::size_type.
979
980         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
981
982         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
983         variable, also changed loop to go from 0 to lenght + 1, instead of
984         -1 to length. This should be correct.
985
986         * src/LaTeX.C (scanError): use string::size_type as loop variable
987         type.
988
989         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
990         (l.896) since y_tmp and row was not used anyway.
991
992         * src/insets/insetref.C (escape): use string::size_type as loop
993         variable type.
994
995         * src/insets/insetquotes.C (Width): use string::size_type as loop
996         variable type.
997         (Draw): use string::size_type as loop variable type.
998
999         * src/insets/insetlatexaccent.C (checkContents): use
1000         string::size_type as loop variable type.
1001
1002         * src/insets/insetlabel.C (escape): use string::size_type as loop
1003         variable type.
1004
1005         * src/insets/insetinfo.C: added an extern for current_view.
1006
1007         * src/insets/insetcommand.C (scanCommand): use string::size_type
1008         as loop variable type.
1009
1010         * most files: removed the RCS tags. With them we had to recompile
1011         a lot of files after a simple cvs commit. Also we have never used
1012         them for anything meaningful. 
1013
1014         * most files: tags-query-replace NULL 0. As adviced several plases
1015         we now use "0" instead of "NULL" in our code. 
1016
1017         * src/support/filetools.C (SpaceLess): use string::size_type as
1018         loop variable type.
1019
1020 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1021
1022         * src/paragraph.C: fixed up some more string stuff.
1023
1024 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
1025
1026         * src/support/filetools.h: make modestr a std::string.
1027
1028         * src/filetools.C (GetEnv): made ch really const.
1029
1030         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1031         made code that used these use max/min from <algorithm> instead.
1032
1033         * changed several c library include files to their equivalent c++
1034         library include files. All is not changed yet.
1035
1036         * created a support subdir in src, put lyxstring and lstrings
1037         there + the extra files atexit, fileblock, strerror. Created
1038         Makefile.am. edited configure.in and src/Makefile.am to use this
1039         new subdir. More files moved to support.
1040
1041         * imported som of the functions from repository lyx, filetools
1042         
1043         * ran tags-query-replace on LString -> string, corrected the bogus
1044         cases. Tried to make use of lstrings.[hC], debugged a lot. There
1045         is still some errors in there. This is errors where too much or
1046         too litle get deleted from strings (string::erase, string::substr,
1047         string::replace), there can also be some off by one errors, or
1048         just plain wrong use of functions from lstrings. Viewing of quotes
1049         is wrong. 
1050
1051         * LyX is now running fairly well with string, but there are
1052         certainly some bugs yet (see above) also string is quite different
1053         from LString among others in that it does not allow null pointers
1054         passed in and will abort if it gets any.
1055         
1056         * Added the revtex4 files I forgot when setting up the repository.
1057
1058 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1059
1060         * All over: Tried to clean everything up so that only the files
1061           that we really need are included in the cvs repository.
1062         * Switched to use automake.
1063         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1064         * Install has not been checked.
1065
1066 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1067
1068         * po/pt.po: Three errors:
1069                l.533 and l.538 format specification error
1070                l. 402 duplicate entry, I just deleted it.
1071