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