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