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