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