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