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