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