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