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