]> git.lyx.org Git - features.git/blob - ChangeLog
e422deaadbb5901b5e258dbb9f0fa0e53412451c
[features.git] / ChangeLog
1 2000-03-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
2
3         * some things that I should comment but the local pub says head to
4         swirly... 
5         
6         * comment out all code that belongs to the Roff code for Ascii
7         export of tables. (this is unused)
8         
9         * src/LyXView.C: use correct type for global variable
10         current_layout. (LyXTextClass::size_type)
11
12         * some code to get the new insetgraphics closer to working I'd be
13         grateful for any help.
14         
15         * src/BufferView2.C (insertInset): use the return type of
16         NumberOfLayout properly. (also changes in other files)
17
18         * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
19         this as a test. I want to know what breaks because of this.
20
21         * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
22
23 2000-02-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
24
25         * lib/layouts/stdlists.inc: changed the lyxlist latex definition
26         to use a \makebox in the label, this allows proper justification
27         with out using protected spaces or multiple hfills. Now it is
28         "label" for left justified, "\hfill label\hfill" for center, and
29         "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
30         should be changed accordingly. 
31
32 2000-02-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
33
34         * src/lyxtext.h: change SetLayout() to take a
35         LyXTextClass::size_type instead of a char (when there is more than
36         127 layouts in a class); also change type of copylayouttype.
37         * src/text2.C (SetLayout): ditto.
38         * src/LyXView.C (updateLayoutChoice): ditto.
39
40         * src/LaTeX.C (scanLogFile): errors where the line number was not
41         given just after the '!'-line were ignored (from Dekel Tsur).
42
43         * lib/lyxrc.example: fix description of \date_insert_format
44
45         * lib/layouts/llncs.layout: new layout, contributed by Martin
46         Vermeer. 
47
48 2000-02-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
49
50         * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
51         2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
52         cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
53         insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
54         BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
55         paragraph.C, text.C, text2.C)
56
57 2000-02-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
58
59         * src/insets/insettext.C (LocalDispatch): remove extra break
60         statement. 
61
62         * src/insets/insetert.[Ch] (Clone): change return value to Inset*
63         * src/insets/insettext.[Ch] (Clone): change return value to Inset*
64
65         * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
66         * src/insets/insettext.[Ch] (GetCursorPos): ditto
67
68         * src/insets/insetbib.h: move InsetBibkey::Holder and
69         InsetCitation::Holder in public space.
70
71 2000-02-25  Lars Gullik Bjønnes <larsbj@lyx.org>
72
73         * src/insets/insettext.h: small change to get the new files from
74         Juergen to compile (use "string", not "class string").
75
76         * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
77         const & as parameter to LocalDispatch, use LyXFont const & as
78         paramter to some other func. This also had impacto on lyxinsets.h
79         and the two mathed insets.
80
81 2000-02-24  Juergen Vigna  <jug@sad.it>
82
83         * src/buffer.C:
84         * src/commandtags.h: 
85         * src/LyXAction.C:
86         * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
87
88         * src/BufferView.h
89         * src/BufferView.C
90         * src/BufferView2.C: added/updated code for various inset-functions
91
92         * src/insets/insetert.[Ch]: added implementation of InsetERT
93
94         * src/insets/insettext.[Ch]: added implementation of InsetText
95
96         * src/insets/inset.C (Edit): added "unsigned int button" parameter
97         (draw): added preliminary code for inset scrolling not finshed yet
98
99         * src/insets/inset.C (LocalDispatch): changed arg parameter to string
100         as it is in lyxfunc.C now
101
102         * src/insets/lyxinset.h: Added functions for text-insets
103
104 2000-02-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
105
106         * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
107         BufferView and reimplement the list as a queue put inside its own
108         class.
109
110         * src/bufferlist.[Ch] (updateInset): remove func, not needed.
111
112         * several files: use the new interface to the "updateinsetlist"
113         
114         * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
115         on doubleclick.
116         (work_area_handler): call BufferView::trippleClick on trippleclick.
117
118         * src/BufferView.C (doubleClick): new function, selects word on
119         doubleclick. 
120         (trippleClick): new function, selects line on trippleclick.
121
122 2000-02-22  Allan Rae  <rae@lyx.org>
123
124         * lib/bind/xemacs.bind: buffer-previous not supported
125
126 2000-02-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
127
128         * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
129         as const.
130
131 2000-02-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
132
133         * src/bufferlist.C: get rid of current_view from this file
134
135         * src/spellchecker.C: get rid of current_view from this file
136
137         * src/vspace.C: get rid of current_view from this file
138         (inPixels): added BufferView parameter for this func
139         (asLatexCommand): added a BufferParams for this func
140
141         * src/text.C src/text2.C: get rid of current_view from these
142         files.
143         
144         * src/lyxfont.C (getFontDirection): move this function here from
145         text.C
146         
147         * src/bufferparams.C (getDocumentDirection): move this function
148         here from text.C
149
150         * src/paragraph.C (getParDirection): move this function here from
151         text.C 
152         (getLetterDirection): ditto
153         
154 2000-02-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
155
156         * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
157         resize due to wrong pixmap beeing used. Also took the opurtunity
158         to make the LyXScreen stateless on regard to WorkArea and some
159         general cleanup in the same files.
160         
161 2000-02-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
162
163         * src/Makefile.am: add missing direction.h
164
165         * src/PainterBase.h: made the width functions const.
166         
167         * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
168         missing ones.
169         
170         * src/insets/insetcommand.C (draw): draw Editable as buttons.
171
172         * src/insets/insetlatexaccent.C (draw): make the accents draw
173         better, at present this will only work well with iso8859-1.
174         
175         * several files: remove the old drawing code, now we use the new
176         painter only.
177
178         * several files: remove support for mono_video, reverse_video and
179         fast selection.
180
181 2000-02-17  Juergen Vigna  <jug@sad.it>
182
183         * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
184         int ** as we have to return the pointer, otherwise we have only
185         NULL pointers in the returning function.
186
187 2000-02-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
188
189         * src/LaTeX.C (operator()): quote file name when running latex.
190
191 2000-02-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
192
193         * src/toolbar.C (set): use fl_set_object_helper for the tooltop
194         (bubble tip), this removes our special handling of this.
195
196         * Remove all code that is unused now that we have the new
197         workarea. (Code that are not active when NEW_WA is defined.)
198
199         * Make the uses of XSync not conditionalized on define USE_XSYNC.
200         
201 2000-02-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
202
203         * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
204         nonexisting layout; correctly redirect obsoleted layouts.
205
206         * lib/lyxrc.example: document \view_dvi_paper_option
207
208         * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
209         variable. 
210
211         * src/lyx_cb.C (RunScript): handle $$FName for command names. 
212         (PreviewDVI): handle the view_dvi_paper_option variable.
213         [Both from Roland Krause]
214
215 2000-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
216
217         * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
218         char const *, int, LyXFont)
219         (text(int, int, string, LyXFont)): ditto 
220
221         * src/text.C (InsertCharInTable): attempt to fix the double-space
222         feature in tables too.
223         (BackspaceInTable): ditto.
224         (GetVisibleRow): make bottom pagebreak line be a onoff line.
225
226 2000-02-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
227
228         * src/text2.C (owner): only complain if owner_ is set and bv != 0
229
230         * src/BufferView.C (resizeCurrentBuffer): set the owner of the
231         newly found text in textcache to this.
232         (buffer): set the owner of the text put into the textcache to 0
233
234         * src/insets/figinset.C (draw): fixed the drawing of figures with
235         the new Painter.
236
237         * src/text.C src/mathed/math_cursor.C: nailed and fixed the
238         drawing of mathframe, hfills, protected space, table lines. I have
239         now no outstanding drawing problems with the new Painter code. 
240
241 2000-02-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
242
243         * src/PainterBase.C (ellipse, circle): do not specify the default
244         arguments. 
245
246         * src/LColor.h: add using directive.
247
248         * src/Painter.[Ch]: change return type of methods from Painter& to
249         PainterBase&. Add a using directive.
250
251         * src/WorkArea.C: wrap xforms callbacks in C functions
252         C_WorkArea_xxx. 
253
254         * lib/layouts/foils.layout: font fix and simplifications from Carl
255         Ollivier-Gooch.
256
257 2000-02-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
258
259         * a lot of files: The Painter, LColor and WorkArea from the old
260         devel branch has been ported to lyx-devel. Some new files and a
261         lot of #ifdeffed code. The new workarea is enabled by default, but
262         if you want to test the new Painter and LColor you have to compile
263         with USE_PAINTER defined (do this in config.h f.ex.) There are
264         still some rought edges, and I'd like some help to clear those
265         out. It looks stable (loads and displays the Userguide very well).
266         
267
268 2000-02-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
269
270         * src/buffer.C (pop_tag): revert to the previous implementation
271         (use a global variable for both loops).
272
273         * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
274
275         * src/lyxrc.C (LyXRC): change slightly default date format.
276
277         * src/paragraph.C (TeXOnePar): Generate a correct latex file when
278         there is an English text with a footnote that starts with a Hebrew
279         paragraph, or vice versa.
280         (TeXFootnote): ditto.
281
282         * src/text.C (LeftMargin): allow for negative values for
283         parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
284         this out.
285
286         * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
287         for input encoding (cyrillic)
288
289 2000-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
290
291         * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
292         Tsur). 
293
294         * src/toolbar.C (set): ditto
295         * src/insets/insetbib.C (create_form_citation_form): ditto
296
297         * lib/CREDITS: added Dekel Tsur.
298
299         * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
300         lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
301         hebrew supports files from Dekel Tsur.
302         
303         * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
304         <tzafrir@technion.ac.il> 
305
306         * src/lyxrc.C: put \date_insert_format at the right place.
307
308         * src/buffer.C (makeLaTeXFile): fix the handling of
309         BufferParams::sides when writing out latex files.
310
311         * src/BufferView2.C: add a "using" directive.
312
313         * src/support/lyxsum.C (sum): when we use lyxstring,
314         ostringstream::str needs an additional .c_str().
315
316 2000-02-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
317
318         * src/support/filetools.C (ChangeExtension): patch from Etienne
319         applied.
320
321         * src/TextCache.C (show): remove const_cast and make second
322         parameter non-const LyXText *.
323
324         * src/TextCache.h: use non const LyXText in show.
325
326         * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
327         with hebrew.
328
329 2000-02-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
330
331         * src/support/lyxsum.C: rework to be more flexible.
332         
333         * several places: don't check if a pointer is 0 if you are going
334         to delete it.
335
336         * src/text.C: remove some dead code.
337
338         * src/insets/figinset.C: remove some dead code
339         
340         * src/buffer.C: move the BufferView funcs to BufferView2.C
341         remove all support for insetlatexdel
342         remove support for oldpapersize stuff
343         made some member funcs const
344
345         * src/kbmap.C: use a std::list to store the bindings in.
346         
347         * src/BufferView2.C: new file
348
349         * src/kbsequence.[Ch]: new files
350         
351         * src/LyXAction.C + others: remove all trace of buffer-previous
352         
353         * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
354         only have one copy in the binary of this table.
355         
356         * hebrew patch: moved some functions from LyXText to more
357         appropriate places. (LyXParagraph, BufferParams, LyXFont)
358         
359         * several files: remove support for XForms older than 0.88
360         whitespace changes.
361         remove some #if 0 #endif code
362         
363         * src/TextCache.[Ch]: new file. Holds the textcache.
364
365         * src/BufferView.C: changes to use the new TextCache interface.
366         (waitForX): remove the now unused code.
367         
368         * src/BackStack.h: remove some commented code
369
370         * lib/bind/emacs.bind: remove binding for buffer-previous
371
372 2000-02-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
373
374         * applied the hebrew patch.
375
376         * src/lyxrow.h: make sure that all Row variables are initialized.
377
378         * src/text2.C (TextHandleUndo): comment out a delete, this might
379         introduce a memory leak, but should also help us to not try to
380         read freed memory. We need to look at this one.
381
382         * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
383         (LyXParagraph): initalize footnotekind.
384
385         * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
386         forgot this when applying the patch. Please heed the warnings.
387
388         * src/BufferView.C (buffer): a fix for the buffer-reload problem
389         (aka. reformat problem)
390
391         * src/bufferlist.C (exists): made const, and use const_iterator
392         (isLoaded): new func.
393         (release): use std::find to find the correct buffer.
394
395         * src/bufferlist.h: made getState a const func.
396         made empty a const func.
397         made exists a const func.
398         new func: isLoaded
399
400 2000-02-01  Juergen Vigna  <jug@sad.it>
401
402         * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
403
404         * po/it.po: updated a bit the italian po file and also changed the
405         'file nuovo' for newfile to 'filenuovo' without a space, this did
406         annoy me a lot :)
407         
408         * src/lyxrc.C (LyXRC): added support for a default insert_date_format
409         for the new insert_date command.
410
411         * src/lyxfunc.C (Dispatch): added support for a insert_date function
412         from jdblair, to insert a date into the current text conforming to
413         a strftime format (for now only considering the locale-set and not
414         the document-language).
415
416 2000-01-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
417
418         * src/lyxfont.C (textWidth): hopefully better fix for the Array
419         Bounds Read error seen by purify. The problem was that islower is
420         a macros which takes an unsigned char and uses it as an index for
421         in array of characters properties (and is thus subject to the
422         above error).
423         (drawText): ditto.
424
425         * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
426         correctly the paper sides radio buttons.
427         (UpdateDocumentButtons): ditto.
428
429 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
430
431         * src/kbmap.C (getsym + others): change to return unsigned int,
432         returning a long can give problems on 64 bit systems. (I assume
433         that int is 32bit on 64bit systems)
434
435 2000-01-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
436
437         * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
438         LyXLookupString to be zero-terminated. Really fixes problems seen
439         by purify, I think.
440
441 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
442
443         * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
444         write a (char*)0 to the lyxerr stream.
445
446         * src/lastfiles.C: move algorithm before the using statemets.
447
448 2000-01-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
449
450         * src/lastfiles.C: move using directives in global scope (egcs 1.x
451         complains otherwise).
452         * src/table.C: ditto
453
454         * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
455         directory. 
456
457         * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
458         that I removed earlier... It is really needed.
459
460         * lib/examples/multicol.lyx: new file, splitted from Extended.lyx. 
461
462 2000-01-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
463
464         * INSTALL: update xforms home page URL.
465
466         * lib/configure.m4: fix a bug with unreadable layout files.
467
468         * src/table.C (calculate_width_of_column): add "using std::max"
469         directive. 
470
471 2000-01-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
472
473         * several files: marked several lines with "DEL LINE", this is
474         lines that can be deleted without changing anything.
475         if (<ptr>) // DEL LINE  /* this line is _never_ needed. Delete
476                                    checks this anyway */
477                 delete <ptr>
478
479         * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
480
481         * src/DepTable.C (update): add a "+" at the end when the checksum
482         is different. (debugging string only)
483
484         * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
485         the next inset to not be displayed. This should also fix the list
486         of labels in the "Insert Crossreference" dialog.
487
488 2000-01-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
489
490         * src/support/LSubstring.C (LSubstring): set pos to string::npos
491         when regex was not found.
492
493         * src/support/lstrings.C (lowercase): use handcoded transform always.
494         (uppercase): ditto
495
496         * src/text.C (Delete): fixed the crash. cursor.par->prev and
497         old_cursor.par->prev could be 0.
498
499         * several files: changed post inc/dec to pre inc/dec
500         
501         * src/lastfiles.C (writeFile): use ostream_iterator and copy to
502         write the lastfiles to file.
503
504         * src/BufferView.C (buffer): only show TextCache info when debugging
505         (buffer): ditto
506         (resizeCurrentBuffer): ditto
507         (workAreaExpose): ditto
508
509         * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
510
511         * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
512
513         * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
514         a bit better by removing the special case for \i and \j.
515
516 2000-01-24  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
517
518         * src/lyx_main.C (easyParse): remove test for bad comand line
519         options, since this broke all xforms-related parsing.
520
521         * src/kbmap.C (getsym): set return type to unsigned long, as
522         declared in header. On an alpha, long is _not_ the same as int.
523
524         * src/support/LOstream.h: add a "using std::flush;"
525
526         * src/insets/figinset.C: ditto.
527
528 2000-01-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
529
530         * src/bufferlist.C (write): use blinding fast file copy instead of
531         "a char at a time", now we are doing it the C++ way.
532
533         * src/insets/figinset.C: get rid of struct pidwaitpit, use a
534         std::list<int> instead.
535         (addpidwait): reflect move to std::list<int>
536         (sigchldchecker): ditto
537
538         * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
539         version also. 
540
541         * src/paragraph.C (FirstPhysicalPar): remove assert and comment
542         that obviously was wrong...
543
544         * src/lyxfont.C (textWidth): have c as char c[2] instead of char
545         c, this avoids warnings with purify and islower.
546
547         * src/insets/figinset.C: rename struct queue to struct
548         queue_element and rewrite to use a std::queue. gsqueue is now a
549         std::queue<queue_element>
550         (runqueue): reflect move to std::queue
551         (addwait): ditto
552
553         * src/support/lstrings.h (tostr): specialize for bool, otherwise
554         we would get "1" "0" instead of "true" "false. Also make the tostr
555         functions inline.
556
557 2000-01-21  Juergen Vigna  <jug@sad.it>
558
559         * src/buffer.C (writeFileAscii): Disabled code for special groff
560         handling of tabulars till I fix this in table.C
561
562 2000-01-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
563
564         * src/support/mkdir.C (mkdir): change second argument of mkdir to
565         unsigned long int.
566         * src/support/lyxlib.h: ditto.
567
568 2000-01-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
569
570         * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
571         and 'j' look better. This might fix the "macron" bug that has been
572         observed.
573
574         * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
575         functions as one template function. Delete the old versions.
576
577         * src/support/lyxsum.C: move using std::ifstream inside
578         MODERN_STL_STREAMS
579
580         * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
581         and putenv.C
582
583         * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
584
585         * src/mathed/formula.C: delete #include "bufferlist.h" never used
586
587         * src/insets/figinset.C (InitFigures): use new instead of malloc
588         to allocate memory for figures and bitmaps.
589         (DoneFigures): use delete[] instead of free to deallocate memory
590         for figures and bitmaps.
591         (runqueue): use new to allocate 
592         (getfigdata): use new/delete[] instead of malloc/free
593         (RegisterFigure): ditto
594
595         * some files: moved some declarations closer to first use, small
596         whitespace changes use preincrement instead of postincrement where
597         it does not make a difference.
598         
599         * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
600         step on the way to use stl::containers for key maps. 
601
602         * src/bufferlist.h: add a typedef for const_iterator and const
603         versions of begin and end.
604
605         * src/bufferlist.[Ch]: change name of member variable _state to
606         state_. (avoid reserved names)
607         (makePup): removed
608         (getFileNames): returns the filenames of the buffers in a vector.
609
610         * configure.in (ALL_LINGUAS): added ro
611
612         * src/support/putenv.C: new file
613
614         * src/support/mkdir.C: new file
615
616 2000-01-20  Allan Rae <rae@lyx.org>
617
618         * lib/layouts/IEEEtran.layout: Added several theorem environments
619
620         * lib/templates/IEEEtran.lyx: Example theorem environments and a
621         couple of minor additions.
622
623         * lib/doc/LaTeXConfig.lyx.in:  Use URL insets for ftp sites 
624         (except for those in footnotes of course)
625
626 2000-01-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
627
628         * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction. 
629
630         * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
631         std::sort and std::lower_bound instead of qsort and handwritten
632         binarysearch.
633         (struct compara): struct that holds the functors used by std::sort
634         and std::lower_bound in MathedLookupBOP.
635
636 2000-01-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
637
638         * src/support/LAssert.h: do not do partial specialization. We do
639         not really need it.
640
641         * src/support/lyxlib.h: note that lyx::getUserName() and
642         lyx::date() are not in use right now. Should these be suppressed?
643
644         * src/buffer.C (makeLaTeXFile): we do not need the user name here.
645         (makeLinuxDocFile): do not put date and user name in linuxdoc
646         headers. 
647
648         * src/support/lyxlib.h (kill): change first argument to long int,
649         since that's what solaris uses.
650
651         * src/support/kill.C (kill): fix declaration to match prototype.
652
653         * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
654         actually check whether namespaces are supported. This is not what
655         it used to do.
656
657         * src/support/lyxsum.C: add a using directive.
658
659 2000-01-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
660
661         * src/support/kill.C: if we have namespace support we don't have
662         to include lyxlib.h.
663
664         * src/support/lyxlib.h: use namespace lyx if supported.
665
666 2000-01-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
667
668         * src/support/date.C: new file
669
670         * src/support/chdir.C: new file
671
672         * src/support/getUserName.C: new file
673
674         * src/support/getcwd.C: new file
675
676         * src/support/abort.C: new file
677
678         * src/support/kill.C: new file
679
680         * src/support/lyxlib.h: moved all the functions in this file
681         insede struct lyx. Added also kill and abort to this struct. This
682         is a way to avoid the "kill is not defined in <csignal>", we make
683         C++ wrappers for functions that are not ANSI C or ANSI C++.
684
685         * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
686         instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
687         lyx it has been renamed to sum.
688
689 2000-01-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
690
691         * src/text.C: add using directives for std::min and std::max.
692
693 2000-01-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
694
695         * src/texrow.C (getIdFromRow): actually return something useful in
696         id and pos. Hopefully fixes the bug with positionning of errorbox
697         insets. 
698
699         * src/lyx_main.C (easyParse): output an error and exit if an
700         incorrect command line option has been given.
701
702         * src/spellchecker.C (ispell_check_word): document a memory leak.
703
704         * src/bufferlist.C (write): fix mismatched allocation/deletion,
705         where a "struct utimbuf" is allocated with "new" and deleted with
706         "delete[]". 
707
708 2000-01-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
709
710         * src/text2.C (CutSelection): don't delete double spaces.
711         (PasteSelection): ditto
712         (CopySelection): ditto
713         
714         * src/text.C (Backspace): don't delete double spaces.
715
716         * src/lyxlex.C (next): fix a bug that were only present with
717         conformant std::istream::get to read comment lines, use
718         std::istream::getline instead. This seems to fix the problem.
719
720 2000-01-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
721
722         * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
723         allowed to insert space before space" editing problem. Please read
724         commends at the beginning of the function. Comments about usage
725         are very welcome.
726
727         * src/text.C (InsertChar): fix for the "not allowed to insert
728         space before space" editing problem.
729
730         * src/text2.C (DeleteEmptyParagraphMechanism): when
731         IsEmptyTableRow can only return false this last "else if" will
732         always be a no-op. Commented out.
733
734         * src/text.C (RedoParagraph): As far as I can understand tmp
735         cursor is not really needed.
736
737         * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
738         present it could only return false anyway. 
739         (several functions): Did something not so smart...added a const
740         specifier on a lot of methods.
741         
742         * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
743         and add a tmp->text.resize. The LyXParagraph constructor does the
744         resize for us.
745         (BreakParagraphConservative): ditto
746
747         * src/support/path.h (Path): add a define so that the wrong usage
748         "Path("/tmp") will be flagged as a compilation error:
749         "`unnamed_Path' undeclared (first use this function)"
750
751 2000-01-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
752
753         * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
754         which was bogus for several reasons.
755
756         * src/LaTeX.C (scanAux): fix the regular expression used to scan
757         .aux files. 
758         (runBibTeX): ditto.
759
760         * autogen.sh: do not use "type -path" (what's that anyway?).
761
762         * src/support/filetools.C (findtexfile): remove extraneous space
763         which caused a kpsewhich warning (at least with kpathsea version
764         3.0). 
765
766 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
767
768         * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
769
770         * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
771
772         * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
773
774 2000-01-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
775
776         * src/paragraph.C (BreakParagraph): do not reserve space on text
777         if we don't need to (otherwise, if pos_end < pos, we end up
778         reserving huge amounts of memory due to bad unsigned karma).
779         (BreakParagraphConservative): ditto, although I have not seen
780         evidence the bug can happen here.
781
782         * src/lyxparagraph.h: add a using std::list.
783
784 2000-01-11  Juergen Vigna  <jug@sad.it>
785
786         * src/menus.C (MenuDocu): output an Alert if the documentation-file
787         could not be found.
788
789 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
790
791         * src/vc-backend.C (doVCCommand): change to be static and take one
792         more parameter: the path to chdir too be fore executing the command.
793         (retrive): new function equiv to "co -r"
794
795         * src/bufferlist.C (loadLyXFile): implement the missing parts if
796         file_not_found_hook is true.
797
798         * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
799
800         * src/support/filetools.C (IsFileWriteable): use FileInfo to check
801         if a file is readwrite,readonly...anything else.
802
803 2000-01-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
804
805         * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
806         (CreatePostscript): name change from MenuRunDVIPS (or something)
807         (PreviewPostscript): name change from MenuPreviewPS
808         (PreviewDVI): name change from MenuPreviewDVI
809
810         * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
811         \view_pdf_command., \pdf_to_ps_command
812
813         * lib/configure.m4: added search for PDF viewer, and search for
814         PDF to PS converter. 
815         (lyxrc.defaults output): add \pdflatex_command,
816         \view_pdf_command and \pdf_to_ps_command.
817
818         * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
819
820         * src/bufferlist.C (write): we don't use blocksize for anything so
821         I removed it.
822
823 2000-01-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
824
825         * src/support/block.h: disable operator T* (), since it causes
826         problems with both compilers I tried. See comments in the file.
827
828         * lib/reLyX/configure.in: do not define LYX_DIR. support flag
829         --with-lyxname. 
830
831         * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
832         variable LYX_DIR_10x to LYX_DIR_11x.
833
834         * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
835
836         * INSTALL: document --with-lyxname.
837         * NEWS: ditto.
838
839         * configure.in: new configure flag --with-lyxname which allows to
840         choose the name under which lyx is installed. Default is "lyx", of
841         course. It used to be possible to do this with --program-suffix,
842         but the later has in fact a different meaning for autoconf.
843
844         * src/support/lstrings.h (lstrchr): reformat a bit.
845
846         * src/lyxlex.h: include LIstream.h, for Sun CC this time.
847         * src/mathed/math_defs.h: ditto.
848
849 2000-01-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
850
851         * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
852         true, decides if we create a backup file or not when saving. New
853         tag and variable \pdf_mode, defaults to false. New tag and
854         variable \pdflatex_command, defaults to pdflatex. New tag and
855         variable \view_pdf_command, defaults to xpdf. New tag and variable
856         \pdf_to_ps_command, defaults to pdf2ps.
857
858 2000-01-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
859
860         * src/bufferlist.C (close): don't call insetUnlock if the buffer
861         does not have a BufferView.
862         (unlockInset): ditto + don't access the_locking_inset if the
863         buffer does not have a BufferView.
864
865         * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
866         certain circumstances so that we don't continue a keyboard
867         operation long after the key was released. Try f.ex. to load a
868         large document, press PageDown for some seconds and then release
869         it. Before this change the document would contine to scroll for
870         some time, with this change it stops imidiatly.
871
872         * src/support/block.h: don't allocate more space than needed. As
873         long as we don't try to write to the arr[x] in a array_type arr[x]
874         it is perfectly ok. (if you write to it you might segfault).
875         added operator value_type*() so that is possible to pass the array
876         to functions expecting a C-pointer.
877
878         * lib/Makefile.am (dist-hook): don't fail completely if unable to
879         cvs.
880
881         * intl/*: updated to gettext 0.10.35, tried to add our own
882         required modifications. Please verify.
883
884         * po/*: updated to gettext 0.10.35, tried to add our own required
885         modifications. Please verify.
886         
887         * src/support/lstrings.C (tostr): go at fixing the problem with
888         cxx and stringstream. When stringstream is used return
889         oss.str().c_str() so that problems with lyxstring and basic_string
890         are avoided. Note that the best solution would be for cxx to use
891         basic_string all the way, but it is not conformant yet. (it seems)
892
893         * src/lyx_cb.C + other files: moved several global functions to
894         class BufferView, some have been moved to BufferView.[Ch] others
895         are still located in lyx_cb.C. Code changes because of this. (part
896         of "get rid of current_view project".)
897
898         * src/buffer.C + other files: moved several Buffer functions to
899         class BufferView, the functions are still present in buffer.C.
900         Code changes because of this.
901
902         * config/lcmessage.m4: updated to most recent. used when creating
903         acinclude.m4.
904
905         * config/progtest.m4: updated to most recent. used when creating
906         acinclude.m4.
907         
908         * config/gettext.m4: updated to most recent. applied patch for
909         tmplinguas.
910
911         * config/gettext.m4.patch: new file that shows what changes we
912         have done to the local copy of gettext.m4.
913
914         * config/libtool.m4: new file, used in creation of acinclude.m4
915
916         * config/lyxinclude.m4: new file, this is the lyx created m4
917         macros, used in making acinclude.m4.
918         
919         * autogen.sh: GNU m4 discovered as a separate task not as part of
920         the lib/configure creation. 
921         Generate acinlucde from files in config. Actually cat
922         lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
923         easier to upgrade .m4 files that really are external.
924
925         * src/Spacing.h: moved using std::istringstream to right after
926         <sstream>. This should fix the problem seen with some compilers.
927
928 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
929
930         * src/lyx_cb.C: began some work to remove the dependency a lot of
931         functions have on BufferView::text, even if not really needed.
932         (GetCurrentTextClass): removed this func, it only hid the
933         current_view. 
934
935         * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
936         forgot this in last commit.
937
938         * src/Bullet.C (bulletEntry): use static char const *[] for the
939         tables, becuase of this the return arg had to change to string.
940         (bulletSize): ditto
941         (~Bullet): removed unneeded destructor
942
943         * src/BufferView.C (beforeChange): moved from lyx_cb.C
944         (insetSleep): moved from Buffer
945         (insetWakeup): moved from Buffer
946         (insetUnlock): moved from Buffer
947
948         * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
949         from Buffer to BufferView.
950         
951         * acinclude.m4: include libtool.m4 from libtool 1.3.4.
952
953         * config/ltmain.sh: updated to version 1.3.4 of libtool
954
955         * config/ltconfig: updated to version 1.3.4 of libtool
956
957 2000-01-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
958
959
960         * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
961         Did I get that right?
962
963         * src/lyxlex.h: add a "using" directive or two.
964         * src/Spacing.h: ditto.
965         * src/insets/figinset.C: ditto.
966         * src/support/filetools.C: ditto.
967         * src/support/lstrings.C: ditto.
968         * src/BufferView.C: ditto.
969         * src/bufferlist.C: ditto.
970         * src/lyx_cb.C: ditto.
971         * src/lyxlex.C: ditto.
972
973         * NEWS: add some changes for 1.1.4.
974         
975 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
976
977         * src/BufferView.C: first go at a TextCache to speed up switching
978         between documents.
979
980 2000-01-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
981
982         * lib/examples/ItemizeBullets.lyx: update from Tino Meinen. 
983         * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
984         * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
985         * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
986         Meinen.
987         
988         * src/mathed/math_defs.h (MathedRowSt): make sure that all
989         members of the struct are correctly initialized to 0 (detected by
990         purify) 
991         * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
992         * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
993
994         * src/insets/figinset.C (sigchldchecker): use "delete" to free a
995         pidwait, since it was allocated with "new". This was potentially
996         very bad. Thanks to Michael Schmitt for running purify for us.
997
998
999 2000-01-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1000
1001         * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
1002
1003         * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
1004
1005 1999-12-30  Allan Rae  <rae@lyx.org>
1006
1007         * lib/templates/IEEEtran.lyx: minor change
1008
1009         * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
1010         src/mathed/formula.C (LocalDispatch): askForText changes
1011
1012         * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we 
1013         know when a user has cancelled input. Fixes annoying problems with
1014         inserting labels and version control.
1015
1016 1999-12-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1017
1018         * src/support/lstrings.C (tostr): rewritten to use strstream and
1019         stringstream
1020
1021 1999-12-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
1022
1023         * src/support/filetools.C (IsFileWriteable): use fstream to check
1024         (IsDirWriteable): use fileinfo to check
1025
1026         * src/support/filetools.h (FilePtr): whole class deleted
1027
1028         * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
1029
1030         * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
1031
1032         * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
1033
1034         * src/bufferlist.C (write): use ifstream and ofstream instead of
1035         FILE*
1036
1037         * src/Spacing.h: use istrstream instead of sscanf
1038
1039         * src/mathed/math_defs.h: change first arg to istream from FILE*
1040
1041         * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
1042
1043         * src/mathed/math_parser.C: have yyis to be an istream 
1044         (LexGetArg): use istream (yyis)
1045         (yylex): ditto
1046         (mathed_parse): ditto
1047         (mathed_parser_file): first arg istream instead of FILE*, set yyis
1048
1049         * src/mathed/formula.C (Read): rewritten to use istream
1050
1051         * src/mathed/formulamacro.C (Read): rewritten to use istream
1052
1053         * src/lyxlex.h (~LyXLex): deleted desturctor 
1054         (getStream): new function, returns an istream
1055         (getFile): deleted funtion
1056         (IsOK): return is.good();
1057
1058         * src/lyxlex.C (LyXLex): delete file and owns_file
1059         (setFile): open an filebuf and assign that to a istream instead of
1060         using FILE*
1061         (setStream): new function, takes an istream as arg. 
1062         (setFile): deleted function
1063         (EatLine): rewritten us use istream instead of FILE*
1064         (next): ditto
1065         (nextToken): ditto
1066
1067         * src/table.C (LyXTable): use istream instead of FILE*
1068         (Read): rewritten to take an istream instead of FILE*
1069
1070 1999-12-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1071
1072         * src/buffer.C (Dispatch): remove an extraneous break statement.
1073
1074         * src/support/filetools.C (QuoteName): change to do simple
1075         'quoting'. More work is necessary. Also changed to do nothing
1076         under emx (needs fix too).
1077         (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
1078
1079         * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
1080         config.h.in to the AC_DEFINE_UNQUOTED() call.
1081         (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
1082         needs char * as argument (because Solaris 7 declares it like
1083         that). 
1084
1085         * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
1086         remove definition of BZERO.
1087
1088 1999-12-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1089
1090         * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
1091         defined, "lyxregex.h" if not.
1092
1093         * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
1094         pkglib_ to noinst_
1095         (REGEX): new variable that is set to regex.c lyxregex.h when
1096         AM_CONDITIONAL USE_REGEX is set.
1097         (libsupport_la_SOURCES): add $(REGEX)
1098
1099         * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
1100         pkglib_ to noinst_
1101
1102         * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
1103         pkglib_ to noinst_
1104
1105         * configure.in: add call to LYX_REGEX 
1106
1107         * acinclude.m4 (LYX_REGEX): checks if we need to use the included
1108         regex or not. Uses a a AM_CONDITIONAL to decide what to compile. 
1109
1110 1999-12-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1111
1112         * lib/bind/fi_menus.bind: new file, from
1113         pauli.virtanen@saunalahti.fi. 
1114
1115         * src/buffer.C (getBibkeyList): pass the parameter delim to
1116         InsetInclude::getKeys and InsetBibtex::getKeys.
1117
1118         * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
1119         is passed to Buffer::getBibkeyList
1120         
1121         * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
1122         instead of the hardcoded comma.
1123
1124         * src/insets/insetbib.C (getKeys): make sure that there are not
1125         leading blanks in bibtex keys. Normal latex does not care, but
1126         harvard.sty seems to dislike blanks at the beginning of citation
1127         keys. In particular, the retturn value of the function is
1128
1129         * INSTALL: make it clear that libstdc++ is needed and that gcc
1130         2.7.x probably does not work.
1131
1132         * src/support/filetools.C (findtexfile): make debug message go to
1133         the LATEX channel
1134         * src/insets/insetbib.C (getKeys): ditto
1135
1136         * src/debug.C (showTags): make sure that the output is correctly
1137         aligned. 
1138
1139         * configure.in: add a comment for TWO_COLOR_ICON define.
1140
1141         * acconfig.h: remove all the entries that already defined in
1142         configure.in or acinclude.m4.
1143
1144         * src/buffer.C (makeLaTeXFile): headers of latex file also changed
1145         to avoid user name, date and copyright.
1146
1147 1999-12-21  Juergen Vigna  <jug@sad.it>
1148
1149         * src/table.C (Read): Now read bogus row format informations
1150                 if the format is < 5 so that afterwards the table can
1151                 be read by lyx but without any format-info. Fixed the
1152                 crash we experienced when not doing this.
1153
1154 1999-12-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
1155
1156         * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
1157         (RedoDrawingOfParagraph): ditto
1158         (RedoParagraphs): ditto
1159         (RemoveTableRow): ditto
1160
1161         * src/text.C (Fill): rename arg paperwidth -> paper_width
1162
1163         * src/buffer.C (insertLyXFile): rename var filename -> fname
1164         (writeFile): rename arg filename -> fname
1165         (writeFileAscii): ditto
1166         (makeLaTeXFile): ditto
1167         (makeLinuxDocFile): ditto
1168         (makeDocBookFile): ditto
1169
1170         * src/LaTeX.C (runMakeIndex): change arg name from file -> f
1171         (runBibTeX): ditto
1172
1173         * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
1174
1175         * src/bmtable.h: add extern "C" on this file when __cplusplus is
1176         defined.
1177
1178         * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
1179         compiled by a C compiler not C++. 
1180
1181         * src/layout.h (LyXTextClass): added typedef for const_iterator
1182         (LyXTextClassList): added typedef for const_iterator + member
1183         functions begin and end.
1184
1185         * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
1186         iterators to fill the choice_class.
1187         (updateLayoutChoice): rewritten to use iterators to fill the
1188         layoutlist in the toolbar.
1189
1190         * src/BufferView.h (BufferView::work_area_width): removed unused
1191         variable. 
1192
1193         * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
1194
1195         * src/buffer.C (sgmlOpenTag): drop the use of the static space array
1196         (sgmlCloseTag): ditto
1197
1198         * src/support/lstrings.h: return type of countChar changed to
1199         unsigned char.
1200
1201         * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1202         what version of this func to use. Also made to return unsigned int.
1203
1204         * configure.in: call LYX_STD_COUNT 
1205
1206         * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1207         conforming std::count. 
1208
1209 1999-12-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1210
1211         * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1212         and a subscript would give bad display (patch from Dekel Tsur
1213         <dekel@math.tau.ac.il>). 
1214
1215         * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public. 
1216
1217         * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1218         please sun CC.
1219
1220         * src/chset.h: add a few 'using' directives
1221
1222         * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1223         triggered when no buffer is active
1224
1225         * src/layout.C: removed `break' after `return' in switch(), since
1226         it is unreachable.
1227
1228         * src/lyx_main.C (init): make sure LyX can be ran in place even
1229         when libtool has done its magic with shared libraries. Fix the
1230         test for the case when the system directory has not been found.
1231
1232         * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1233         name for the latex file.
1234         (MenuMakeHTML): ditto
1235
1236         * src/buffer.h: add an optional boolean argument, which is passed
1237         to ChangeExtension.
1238
1239 1999-12-20  Allan Rae  <rae@lyx.org>
1240
1241         * lib/templates/IEEEtran.lyx: small correction and update.
1242
1243         * configure.in: Attempted to use LYX_PATH_HEADER
1244
1245         * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1246
1247         * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1248         input from JMarc.  Now use preprocessor to find the header.
1249         Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1250         (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1251         LYX_STL_STRING_FWD.  See comments in file.      
1252
1253 1999-12-19  Asger Alstrup Nielsen  <alstrup@diku.dk>
1254
1255         * The global MiniBuffer * minibuffer variable is dead.
1256         
1257         * The global FD_form_main * fd_form_main variable is dead.
1258
1259 1999-12-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1260
1261         * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1262
1263         * src/table.h: add the LOstream.h header
1264         * src/debug.h: ditto
1265         
1266         * src/LyXAction.h: change the explaination of the ReadOnly
1267         attribute: is indicates that the function _can_ be used.
1268
1269         * src/LyXAction.C (init): find-replace _can_ be used in read-only
1270         mode. 
1271
1272 1999-12-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1273
1274         * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1275         unsigned. 
1276         (descent): ditto
1277         (lbearing): ditto
1278         (rbearing): ditto
1279
1280         * src/paragraph.C (GetWord): assert on pos>=0
1281         (GetChar): ditto
1282         
1283         * src/support/lyxstring.C: condition the use of an invariant on
1284         ENABLE_ASSERTIONS 
1285         * src/support/lyxstring.h: ditto
1286
1287         * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1288         Use LAssert.h instead of plain assert().
1289
1290         * src/support/lstrings.h: add LAssert.h, in case it is needed.
1291
1292         * src/lyxfunc.C: do not include LAssert.h, it is not used.
1293         * src/support/filetools.C: ditto
1294
1295         * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1296         is not defined. 
1297
1298         * INSTALL: document the new configure flags
1299         
1300         * configure.in: suppress --with-debug; add --enable-assertions
1301
1302         * acinclude.m4: various changes in alignment of help strings.
1303
1304 1999-12-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
1305
1306         * src/kbmap.C: commented out the use of the hash map in kb_map,
1307         beginning of movement to a stl::container. 
1308
1309         * several files: removed code that was not in effect when
1310         MOVE_TEXT was defined.
1311         
1312         * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1313         for escaping should not be used. We can discuss if the string
1314         should be enclosed in f.ex. [] instead of "".
1315
1316         * src/trans_mgr.C (insert): use the new returned value from
1317         encodeString to get deadkeys and keymaps done correctly.
1318
1319         * src/chset.C (encodeString): changed to return a pair, to tell
1320         what to use if we know the string.
1321
1322         * src/lyxscreen.h (fillArc): new function.
1323
1324         * src/FontInfo.C (resize): rewritten to use more std::string like
1325         structore, especially string::replace.
1326
1327         * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1328         approp. accents.
1329
1330         * configure.in (chmod +x some scripts): remove config/gcc-hack 
1331
1332 1999-12-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1333
1334         * src/buffer.C (writeFile): change once again the top comment in a
1335         .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1336         instead of an hardcoded version number.
1337         (makeDocBookFile): ditto
1338
1339         * src/version.h: add new define LYX_DOCVERSION
1340
1341         * po/de.po: update from Pit Sütterlin
1342         * lib/bind/de_menus.bind: ditto.
1343         
1344         * src/lyxfunc.C (Dispatch): call MenuExport()
1345         * src/buffer.C (Dispatch): ditto
1346
1347         * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1348         LyXFunc::Dispatch().
1349         (MenuExport): new function, moved from
1350         LyXFunc::Dispatch().
1351
1352         * src/trans_mgr.C (insert): small cleanup
1353         * src/chset.C (loadFile): ditto
1354
1355         * lib/kbd/iso8859-1.cdef: add missing backslashes
1356
1357 1999-12-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
1358
1359         * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1360         help with placing the manually drawn accents better.
1361         (Rbearing): ditto
1362         (Draw): x2 and hg changed to float to minimize rounding errors and
1363         help place the accents better.
1364
1365         * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1366         unsigned short to char is just wrong...cast the char to unsigned
1367         char instead so that the two values can compare sanely. This
1368         should also make the display of insetlatexaccents better and
1369         perhaps also some other insets.
1370         (descent): ditto
1371         (lbearing): new function
1372         (rbearing): ditto
1373
1374 1999-12-15  Allan Rae  <rae@lyx.org>
1375
1376         * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES):  added new
1377         header that provides a wrapper around the very annoying SGI STL header
1378         of the same name.
1379
1380         * src/support/lyxstring.C, src/LString.h:
1381         removed old SGI-STL-compatability attempts.
1382
1383         * configure.in: Use LYX_STL_STRING_FWD.
1384
1385         * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if 
1386         stl_string_fwd.h is around and try to determine it's location.
1387         Major improvement over previous SGI STL 3.2 compatability.
1388         Three small problems remain with this function due to my zero
1389         knowledge of autoconf.  JMarc and lgb see the comments in the code.
1390
1391 1999-12-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1392
1393         * src/broken_const.h, config/hack-gcc, config/README: removed
1394         
1395         * configure.in: remove --with-gcc-hack option; do not call
1396         LYX_CXX_STL_STACK 
1397
1398         * INSTALL: remove documentation of --with-broken-const and
1399         --with-gcc-hack
1400         
1401         * acconfig.h: remove all trace of BROKEN_CONST define
1402
1403         * src/buffer.C (makeDocBookFile): update version number in output
1404         file. 
1405         (SimpleDocBookOnePar): fix an assert when trying to a character
1406         access beyond string length
1407         [Patch from Jose']
1408
1409 1999-12-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1410
1411         * po/de.po: fix the Export menu
1412
1413         * lyx.man: update the description of -dbg
1414
1415         * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1416         (commandLineHelp): updated
1417         (easyParse): show list of available debug levels if -dbg is passed
1418         without argument.
1419
1420         * src/Makefile.am: add debug.C
1421
1422         * src/debug.h: moved some code to debug.C
1423
1424         * src/debug.C: new file. Contains code to set and show debug
1425         level. 
1426
1427         * src/layout.C: remove 'break' after 'continue' in switch
1428         statements, since these cannot be reached.
1429
1430 1999-12-13  Allan Rae  <rae@lyx.org>
1431
1432         * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1433         (in_word_set): hash() -> math_hash()
1434
1435         * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support 
1436
1437         * acconfig.h: Added a test for whether we are using exceptions in the
1438         current compilation run. If so USING_EXCEPTIONS is defined.
1439
1440         * config.in: Check for existance of stl_string_fwd.h
1441         * src/LString.h: If compiling --with-included-string and SGI's
1442         STL version 3.2 is present (see above test) we need to block their
1443         forward declaration of string and supply a __get_c_string().
1444         However, it turns out this is only necessary if compiling with
1445         exceptions enabled so I've a bit more to add yet.
1446
1447         * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1448           src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1449           src/support/LRegex.h, src/undo.h:
1450         Shuffle the order of the included files a little to ensure that
1451         LString.h gets included before anything that includes stl_string_fwd.h
1452
1453         *  src/support/lyxstring.C: We need to #include LString.h instead of
1454         lyxstring.h to get the necessary definition of __get_c_string.
1455         (__get_c_string): New function.  This is defined static just like SGI's
1456         although why they need to do this I'm not sure.  Perhaps it should be
1457         in lstrings.C instead.
1458
1459         * lib/templates/IEEEtran.lyx:  New template file.
1460
1461 1999-12-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
1462         
1463         * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1464         * intl/Makefile.in (MKINSTALLDIRS):  ditto
1465
1466         * src/LyXAction.C (init): changed to hold the LFUN data in a
1467         automatic array in stead of in callso to newFunc, this speeds up
1468         compilation a lot. Also all the memory used by the array is
1469         returned when the init is completed.
1470
1471         * a lot of files: compiled with -Wold-style-cast, changed most of
1472         the reported offenders to C++ style casts. Did not change the
1473         offenders in C files. 
1474
1475         * src/trans.h (Match): change argument type to unsigned int.
1476
1477         * src/support/DebugStream.C: fix some types on the streambufs so
1478         that it works on a conforming implementation.
1479
1480 1999-12-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1481
1482         * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1483
1484         * src/support/lyxstring.C: remove the inline added earlier since
1485         they cause a bunch of unsatisfied symbols when linking with dec
1486         cxx. Cxx likes to have the body of inlines at the place where they
1487         are declared.
1488
1489         * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1490         accessing negative bounds in array. This fixes the crash when
1491         inserting accented characters.
1492         * src/trans.h (Match): ditto
1493
1494         * src/buffer.C (Dispatch): since this is a void, it should not try
1495         to return anything...
1496
1497 1999-12-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
1498
1499         * src/buffer.h: removed the two friends from Buffer. Some changes
1500         because of this. Buffer::getFileName and Buffer::setFileName
1501         renamed to Buffer::fileName() and Buffer::fileName(...).
1502
1503 1999-12-09  Lars Gullik Bjønnes <larsbj@lyx.org>
1504
1505         * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1506         and Buffer::update(short) to BufferView. This move is currently
1507         controlled by a define MOVE_TEXT, this will be removed when all
1508         shows to be ok. This move paves the way for better separation
1509         between buffer contents and buffer view. One side effect is that
1510         the BufferView needs a rebreak when swiching buffers, if we want
1511         to avoid this we can add a cache that holds pointers to LyXText's
1512         that is not currently in use. 
1513
1514         * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1515         André Pönitz. 
1516
1517 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1518
1519         * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1520
1521         * lyx_main.C: new command line option -x (or --execute) and
1522           -e (or --export). Now direct conversion from .lyx to .tex
1523           (.dvi, .ps, ...) is possible  ('lyx file.lyx --export latex')
1524           Unfortunately, X is still needed and the GUI pops up during the
1525           process...
1526
1527 1999-12-07  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1528
1529         * src/Spacing.C: add a using directive to bring stream stuff into
1530         normal namespace.
1531         * src/paragraph.C: ditto
1532         * src/buffer.C: ditto
1533
1534         * NEWS: updated a bit the new features of 1.1.3 (took a few things
1535         from Lars' announcement).
1536
1537         * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1538         example files from Tino Meinen.
1539         
1540 1999-12-06  Allan Rae  <rae@lyx.org>
1541
1542         * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1543
1544 1999-12-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
1545
1546         * src/support/lyxstring.C: added a lot of inline for no good
1547         reason
1548         
1549         * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1550         latexWriteEndChanges, they were not used.
1551         
1552         * src/layout.h (operator<<): output operator for PageSides
1553
1554         * src/mathed/math_iter.C (my_memcpy): slightly changed.
1555
1556         * some example files: loaded in LyX 1.0.4 and saved again to update
1557         certain constructs (table format) 
1558
1559         * a lot of files: did the change to use fstream/iostream for all
1560         writing of files. Done with a close look at Andre Poenitz's patch.
1561
1562         * some files: whitespace changes.
1563         
1564 1999-12-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1565
1566         * src/mathed/math_iter.C (my_memcpy): new function. Since the
1567         built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1568         architecture, we provide our own. It is used unconditionnally, but
1569         I do not think this is a performance problem. Thanks to Angus
1570         Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1571         Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1572         first time).
1573         (GetInset): use my_memcpy.
1574         (Insert): ditto
1575         (Copy): ditto
1576
1577         * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1578         it is easier to understand, but it uses less TeX-only constructs now.
1579
1580         * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1581         elements contain spaces
1582
1583         * lib/configure: regenerated
1584         
1585         * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1586         elements contain spaces; display the list of programs that are
1587         tried.
1588
1589         * autogen.sh: make sure lib/configure is executable
1590
1591         * lib/examples/*: rename the tutorial examples to begin with the
1592         two-letters language code.
1593
1594         * src/lyxfunc.C (getStatus): do not query current font if no
1595         buffer exists.
1596
1597         * src/lyx_cb.C (RunScript): use QuoteName
1598         (MenuRunDvips): ditto
1599         (PrintApplyCB): ditto
1600
1601         * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1602         around argument, so that it works well with the current shell.
1603         Does not work properly with OS/2 shells currently.
1604
1605         * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1606         * src/LyXSendto.C (SendtoApplyCB): ditto
1607         * src/lyxfunc.C (Dispatch): ditto
1608         * src/buffer.C (runLaTeX): ditto
1609         (runLiterate): ditto
1610         (buildProgram): ditto
1611         (runChktex): ditto
1612         * src/lyx_cb.C (RunScript): ditto
1613         (MenuMakeLaTeX): ditto
1614         
1615         * src/buffer.h (getLatexName): new method 
1616
1617         * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1618
1619 1999-12-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1620
1621         * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1622         * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1623         (create_math_panel): ditto
1624
1625         * src/lyxfunc.C (getStatus): re-activate the code which gets
1626         current font and cursor; add test for export to html.
1627
1628         * src/lyxrc.C (read): remove unreachable break statements; add a
1629         few "using".
1630
1631         * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1632         
1633 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1634
1635         * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1636         introduced by faulty regex.
1637         * src/buffer.C: ditto
1638         * src/lastfiles.C: ditto
1639         * src/paragraph.C: ditto
1640         * src/table.C: ditto
1641         * src/vspace.C: ditto
1642         * src/insets/figinset.C: ditto
1643         Note: most of these is absolutely harmless, except the one in
1644         src/mathed formula.C.
1645
1646 1999-11-30  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
1647
1648         * src/ImportNoweb.C (documentclass): fixed bounds for substr
1649           operation, yielding correct results for the reLyX command.
1650
1651 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1652
1653         * src/support/filetools.C (ExpandPath): removed an over eager
1654         Assert.
1655         (ReplaceEnvironmentPath): ditto
1656
1657         * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1658         shows that we are doing something fishy in our code...
1659         (BubblePost): ditto
1660         (ToolbarCB): ditto
1661
1662         * src/lyxrc.C (read): use a double switch trick to get more help
1663         from the compiler. (the same trick is used in layout.C)
1664         (write): new function. opens a ofstream and pass that to output
1665         (output): new function, takes a ostream and writes the lyxrc
1666         elemts to it. uses a dummy switch to make sure no elements are
1667         forgotten. 
1668
1669         * src/lyxlex.h: added a struct pushpophelper for use in functions
1670         with more than one exit point.
1671
1672         * src/lyxlex.[Ch] (GetInteger): made it const
1673         (GetFloat): ditto
1674         (GetBool): ditto
1675
1676         * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1677
1678         * src/layout.[hC] : LayoutTags splitted into several enums, new
1679         methods created, better error handling cleaner use of lyxlex. Read
1680         the diff.
1681
1682         * src/bmtable.[Ch]: change some member prototypes because of the
1683         image const changes. 
1684
1685         * commandtags.h, src/LyXAction.C (init): new function:
1686         "preferences-save", saves the lyxrc entries into .lyx/preferences.
1687         This file is not read automatically but you can add \input
1688         preferences to your lyxrc if you want to. We need to discuss how
1689         to handle this. 
1690
1691         * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1692         in .aux, also remove .bib and .bst files from dependencies when
1693         running bibtex.
1694
1695         * src/BufferView.C, src/LyXView.C: add const_cast several places
1696         because of changes to images.
1697
1698         * lib/images/*: same change as for images/*
1699         
1700         * lib/lyxrc.example: Default for accept_compound is false not no.
1701
1702         * images/*: changed to be const, however I have som misgivings
1703         about this change so it might be changed back.
1704
1705 1999-11-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1706
1707         * lib/configure, po/POTFILES.in: regenerated
1708
1709         * autogen.sh: autogenerate lib/configure from lib/configure.m4
1710
1711         * config/lib_configure.m4: removed
1712         
1713         * lib/configure.m4: new file (was config/lib_configure.m4)
1714
1715         * configure.in: do not test for rtti, since we do not use it.
1716         
1717 1999-11-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
1718
1719         * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1720         doubling of allocated space scheme. This makes it faster for large
1721         strings end to use less memory for small strings. xtra rememoved. 
1722
1723         * src/insets/figinset.C (waitalarm): commented out.
1724         (GhostscriptMsg): use static_cast
1725         (GhostscriptMsg): use new instead of malloc to allocate memory for
1726         cmap. also delete the memory after use.
1727
1728         * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1729
1730         * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1731         for changes in bibtex database or style.
1732         (runBibTeX): remove all .bib and .bst files from dep before we
1733         begin. 
1734         (run): use scanAuc in when dep file already exist.
1735
1736         * src/DepTable.C (remove_files_with_extension): new method
1737         (exist): new method
1738
1739         * src/DepTable.[Ch]: made many of the methods const. 
1740
1741 1999-11-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1742
1743         * src/bufferparams.C: make sure that the default textclass is
1744         "article". It used to be the first one by description order, but
1745         now the first one is "docbook".
1746
1747         * src/lyx_main.C (setDebuggingLevel): change type of argument to
1748         string; call Debug::value.
1749         (easyParse): pass complete argument to setDebuggingLevel().
1750
1751         * src/debug.h (value): fix the code that parses debug levels.
1752
1753         * src/debug.h: add new debug type ACTION, reserved for LyXAction
1754         class.  
1755
1756         * src/LyXAction.C: use Debug::ACTION as debug channel.
1757
1758         * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1759
1760         * NEWS: updated for the future 1.1.3 release.
1761
1762         * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1763         \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1764         it should. This is of course a controversial change (since many
1765         people will find that their lyx workscreen is suddenly full of
1766         red), but done for the sake of correctness.
1767
1768         * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1769           src/mathed/math_root.[Ch] (Clone): return a MathedInset*  
1770
1771         * src/insets/inseterror.h, src/insets/inseturl.h,
1772           src/insets/insetinfo.h, src/insets/figinset.h,
1773           src/mathed/formulamacro.h, src/mathed/math_macro.h
1774           (EditMessage): add a missing const and add _() to make sure that
1775         translation happens
1776
1777         * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1778           src/insets/insetbib.C, src/support/filetools.C: add `using'
1779         directives for cxx.  
1780
1781         * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1782         doing 'Insert index of last word' at the beginning of a paragraph.
1783
1784 1999-11-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1785
1786         * several files: white-space changes.
1787
1788         * src/mathed/formula.C: removed IsAlpha and IsDigit
1789
1790         * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1791         .bib file. use a ifstream instead of FilePtr when parsing the .bib
1792         file for keys.
1793
1794         * src/insets/figinset.C (GetPSSizes): don't break when
1795         "EndComments" is seen. But break when a boundingbox is read.
1796
1797         * all classes inherited from Inset: return value of Clone
1798         changed back to Inset *.
1799
1800         * all classes inherited form MathInset: return value of Clone
1801         changed back to MathedInset *.
1802         
1803         * src/insets/figinset.C (runqueue): use a ofstream to output the
1804         gs/ps file. Might need some setpresicion or setw. However I can
1805         see no problem with the current code.
1806         (runqueue): use sleep instead of the alarm/signal code. I just
1807         can't see the difference.
1808
1809         * src/paragraph.C (LyXParagraph): reserve space in the new
1810         paragraph and resize the inserted paragraph to just fit.
1811
1812         * src/lyxfunc.h (operator|=): added operator for func_status.
1813
1814         * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1815         check for readable file.
1816
1817         * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1818         check for readable file.
1819         (MenuMakeLinuxDoc): ditto
1820         (MenuMakeDocBook): ditto
1821         (MenuMakeAscii): ditto
1822         (InsertAsciiFile): split the test for openable and readable
1823
1824         * src/bmtable.C (draw_bitmaptable): use
1825         fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1826
1827         * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1828         findtexfile from LaTeX to filetools.
1829         
1830         * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1831         instead of FilePtr. Needs to be verified by a literate user.
1832
1833 1999-11-23  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1834
1835         * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1836         (EditMessage): likewise.
1837
1838         * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1839         respectively as \textasciitilde and \textasciicircum.
1840
1841 1999-11-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1842
1843         * src/support/lyxstring.h: made the methods that take iterators
1844         use const_iterator.
1845
1846         * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1847         (regexMatch): made is use the real regex class.
1848
1849         * src/support/Makefile.am: changed to use libtool
1850
1851         * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1852
1853         * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1854         of defines.
1855         (MathIsInset ++): changed several macros to be inline functions
1856         instead. 
1857
1858         * src/mathed/Makefile.am: changed to use libtool
1859
1860         * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1861
1862         * src/insets/inset* : Clone changed to const and return type is
1863         the true insettype not just Inset*.
1864         
1865         * src/insets/Makefile.am: changed to use libtool
1866
1867         * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1868
1869         * src/undo.[Ch] : added empty() and changed some of the method
1870         names.
1871         
1872         * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1873
1874         * src/lyxparagraph.h: use id() and id(...) instead of getID and
1875         setID use block<> for the bullets array, added const several places.
1876
1877         * src/lyxfunc.C (getStatus): new function
1878
1879         * src/lyxfunc.[Ch] : small changes to take advantage of the new
1880         LyXAction, added const to several funtions.
1881
1882         * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1883         a std::map, and to store the dir items in a vector.
1884
1885         * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1886         as dependencies.
1887
1888         * src/LyXView.[Ch] + other files : changed currentView to view.
1889         
1890         * src/LyXAction.[Ch] : ported from the old devel branch.
1891         
1892         * src/.cvsignore: added .libs and a.out
1893
1894         * configure.in : changes to use libtool. 
1895
1896         * acinclude.m4 : inserted libtool.m4
1897
1898         * .cvsignore: added libtool
1899
1900 1999-11-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1901
1902         * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1903         file name in insets and mathed directories (otherwise the
1904         dependency is not taken in account under cygwin).
1905
1906         * src/text2.C (InsertString[AB]): make sure that we do not try to
1907         read characters past the string length.
1908
1909 1999-11-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1910
1911         * lib/doc/LaTeXConfig.lyx.in, 
1912           lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1913
1914         * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1915         file saying who created them and when this heppened; this is
1916         useless and annoys tools like cvs.
1917
1918         * lib/layouts/g-brief-{en,de}.layout,
1919           lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1920         from Thomas Hartkens <thomas@hartkens.de>.
1921
1922         * src/{insets,mathed}/Makefile.am: do not declare an empty
1923         LDFLAGS, so that it can be set at configure time (useful on Irix
1924         for -n32 flag).
1925
1926         * lib/reLyX/configure.in: make sure that the prefix is set
1927         correctly in LYX_DIR.
1928
1929 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1930
1931         * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1932         be used by 'command-sequence' this allows to bind a key to a
1933         sequence of LyX-commands
1934         (Example: 'command-sequence math-insert alpha; math-insert beta;")
1935
1936         * src/LyXAction.C: add "command-sequence"
1937
1938         * src/LyXFunction.C: handling of "command-sequence"
1939
1940         * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1941          &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1942
1943         * src/lyxserver.C, src/minibuffer.C: Use this new interface
1944
1945 1999-11-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1946
1947         * src/buffer.C (writeFile): Do not output a comment giving user
1948         and date at the beginning of a .lyx file. This is useless and
1949         annoys cvs anyway; update version number to 1.1.
1950
1951         * src/Makefile.am (LYX_DIR): add this definition, so that a
1952         default path is hardcoded in LyX.
1953
1954         * configure.in: Use LYX_GNU_GETTEXT.
1955
1956         * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1957         AM_GNU_GETTEXT with a bug fixed. 
1958
1959         * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1960
1961         * src/chset.C: add "using std::ifstream;" to please dec cxx.
1962
1963         * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1964         which is used to point to LyX data is now LYX_DIR_11x.
1965
1966         * lyx.man: convert to a unix text file; small updates.
1967
1968 1999-11-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
1969
1970         * src/support/LSubstring.[Ch]: made the second arg of most of the
1971         constructors be a const reference. 
1972
1973         * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1974         me fixed.
1975
1976         * src/support/lyxstring.[Ch] (swap): added missing member function
1977         and specialization of swap(str, str); 
1978
1979         * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1980
1981         * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1982         trace of the old one.
1983
1984         * src/undo.[Ch]: made the undostack use std::list to store undo's in
1985         put the member definitions in undo.C.
1986
1987         * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1988         NEW_TEXT and have now only code that was included when this was
1989         defined. 
1990
1991         * src/intl.C (LCombo): use static_cast
1992         (LCombo2): ditto
1993         (DispatchCallback): ditto
1994
1995         * src/definitions.h: removed whole file
1996         
1997         * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1998
1999         * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
2000         parsing and stores in a std:map. a regex defines the file format.
2001         removed unneeded members.
2002
2003         * src/bufferparams.h: added several enums from definitions.h here.
2004         Removed unsused destructor. Changed some types to use proper enum
2005         types. use block to have the temp_bullets and user_defined_bullets
2006         and to make the whole class assignable.
2007
2008         * src/bufferparams.C (Copy): removed this functions, use a default
2009         assignment instead. 
2010
2011         * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
2012         isLiterate const.
2013
2014         * src/buffer.C (readLyXformat2): commend out all that have with
2015         oldpapersize to do. also comment out all that hve to do with
2016         insetlatex and insetlatexdel. 
2017         (setOldPaperStuff): commented out
2018
2019         * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
2020
2021         * src/LyXAction.C: remove use of inset-latex-insert
2022
2023         * src/mathed/math_panel.C (button_cb): use static_cast
2024
2025         * src/insets/Makefile.am (insets_o_SOURCES): removed
2026         insetlatex.[Ch] 
2027
2028         * src/support/lyxstring.C (helper): use the unsigned long
2029         specifier, UL, instead of a static_cast.
2030
2031         * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
2032
2033         * src/support/block.h: new file. to be used as a c-style array in
2034         classes, so that the class can be assignable.
2035
2036 1999-11-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2037
2038         * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
2039         NULL, make sure to return an empty string (it is not possible to
2040         set a string to NULL).
2041
2042 1999-11-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2043
2044         * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
2045
2046         * src/support/lyxstring.C (helper): fix bogus cast in assertion.
2047
2048         * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
2049         link line, so that Irix users (for example) can set it explicitely to
2050         "-n32".
2051         
2052         * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
2053         it can be overidden at make time (static or dynamic link, for
2054         example).
2055         
2056         * src/vc-backend.C, src/LaTeXFeatures.h, 
2057           src/support/LRegex.C, src/support/LRegex.h: add a few "using" 
2058         statements to bring templates to global namespace.
2059
2060 1999-11-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
2061
2062         * src/support/lyxstring.C (operator[] const): make it standard
2063         conforming. 
2064
2065         * src/minibuffer.C (Init): changed to reflect that more
2066         information is given from the lyxvc and need not be provided here.
2067
2068         * src/lyxvc.[Ch]: rewrote to use the vc-backend.
2069         
2070         * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
2071
2072         * src/LyXView.C (UpdateTimerCB): use static_cast
2073         (KeyPressMask_raw_callback): ditto
2074
2075         * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
2076         buffer_, a lot of changes because of this. currentBuffer() ->
2077         buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
2078         also changes to other files because of this.
2079
2080 1999-11-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
2081
2082         * src/vc-backend.[Ch]: new files. The backends for vc handling,
2083         have no support for RCS and partial support for CVS, will be
2084         improved later.
2085         
2086         * src/insets/ several files: changes because of function name
2087         changes in Bufferview and LyXView.
2088         
2089         * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
2090
2091         * src/support/LSubstring.[Ch]: new files. These implement a
2092         Substring that can be very convenient to use. i.e. is this
2093         possible:
2094         string a = "Mary had a little sheep";
2095         Substring(a, "sheep") = "lamb";
2096         a is now "Mary has a little lamb".
2097
2098         * src/support/LRegex.[Ch]: a regex class that can be used to pick
2099         out patterns and subpatterns of strings. It is used by LSubstring
2100         and also by vc-backend.C
2101         
2102         * src/support/lyxstring.C: went over all the assertions used and
2103         tried to correct the wrong ones and flag which of them is required
2104         by the standard. some bugs found because of this. Also removed a
2105         couple of assertions.
2106
2107         * src/support/Makefile.am (libsupport_a_SOURCES): added
2108         LSubstring.[Ch] and LRegex.[Ch]
2109
2110         * src/support/FileInfo.h: have struct stat buf as an object and
2111         not a pointer to one, some changes because of this.
2112
2113         * src/LaTeXFeatures.C (getTClassPreamble): also use the
2114         information in layout when adding the layouts preamble to the
2115         textclass preamble.
2116
2117         * src/LaTeXFeatures.h: use a vector<bool> to store the layout
2118         usage in.
2119
2120         * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
2121         because of bug in OS/2.
2122
2123 1999-11-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2124
2125         * lib/layouts/lyxmacros.inc (lyxcode): set the font with
2126         \verbatim@font instead of \ttfamily, so that it can be redefined.
2127
2128         * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
2129           src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
2130           src/layout.h, src/text2.C: add 'using' directive to bring the
2131         STL templates we need from the std:: namespace to the global one.
2132         Needed by DEC cxx in strict ansi mode.
2133
2134         * src/support/LIstream.h,src/support/LOstream.h,
2135           src/support/lyxstring.h,src/table.h,
2136           src/lyxlookup.h: do not include <config.h> in header
2137         files. This should be done in the .C files only.
2138
2139         * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
2140         (from Kayvan).
2141         
2142
2143 1999-11-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2144
2145         * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
2146         from Kayvan to fix the tth invokation.
2147
2148         * development/lyx.spec.in: updates from Kayvan to reflect the
2149         changes of file names.
2150
2151 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
2152
2153         * src/text2.C (InsertStringB): use std::copy
2154         (InsertStringA): use std::copy
2155
2156         * src/bufferlist.C: use a vector to store the buffers in. This is
2157         an internal change and should not affect any other thing.
2158         
2159         * src/BufferView.C (waitForX): use XSync instead of the lengthy
2160         stuff in waitForX.
2161
2162         * src/text.C (Fill): fix potential bug, one off bug.
2163
2164 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
2165
2166         * src/Makefile.am (lyx_main.o): add more files it depends on.
2167
2168         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
2169
2170         * src/support/lyxstring.C: use size_t for the reference count,
2171         size, reserved memory and xtra.
2172         (internal_compare): new private member function. Now the compare
2173         functions should work for std::strings that have embedded '\0'
2174         characters.
2175         (compare): all compare functions rewritten to use
2176         internal_compare.
2177         
2178 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
2179
2180         * src/support/lyxstring.C (compare): pass c_str()
2181         (compare): pass c_str
2182         (compare): pass c_str
2183
2184 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2185
2186         * src/support/DebugStream.C: <config.h> was not included correctly.
2187
2188         * lib/configure: forgot to re-generate it :( I'll make this file
2189         auto generated soon.
2190
2191 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
2192
2193         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
2194         is used.
2195
2196         * src/support/lyxstring.C: some changes from length() to rep->sz.
2197         avoids a function call.
2198
2199         * src/support/filetools.C (SpaceLess): yet another version of the
2200         algorithm...now per Jean-Marc's suggestions.
2201
2202 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
2203
2204         * src/layout.C (less_textclass_desc): functor for use in sorting
2205         of textclasses. 
2206         (LyXTextClass::Read): sort the textclasses after reading.
2207         
2208         * src/support/filetools.C (SpaceLess): new version of the
2209         SpaceLess functions. What problems does this one give? Please
2210         report.
2211
2212         * images/banner_bw.xbm: made the arrays unsigned char *
2213
2214 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2215
2216         * src/support/lyxstring.C (find): remove bogus assertion in the
2217         two versions of find where this has not been done yet.
2218
2219         * src/support/lyxlib.h: add missing int return type to
2220         lyx::chdir(). 
2221
2222         * src/menus.C (ShowFileMenu): disable exporting to html if no
2223         html export command is present.
2224
2225         * config/lib_configure.m4: add a test for an HTML converter. The
2226         programs checked for are, in this order: tth, latex2html and
2227         hevea. 
2228
2229         * lib/configure: generated from config/lib_configure.m4.
2230
2231         * src/lyxfunc.C (Dispatch): update and improve the execution of an
2232         html converter. The parameters are now passed through $$FName and
2233         $$OutName, instead of standard input/output.
2234
2235         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2236
2237         * lib/lyxrc.example: update description of \html_command. 
2238         add "quotes" around \screen_font_xxx font setting examples to help
2239         people who use fonts with spaces in their names.
2240
2241 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
2242
2243         * Distribution files: updates for v1.1.2
2244
2245         * src/support/lyxstring.C (find): remove bogus assert and return
2246         npos for the same condition.
2247
2248 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
2249
2250         * added patch for OS/2 from SMiyata.
2251
2252 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
2253
2254         * src/text2.C (CutSelection): make space_wrapped a bool
2255         (CutSelection): dont declare int i until we have to.
2256         (alphaCounter): return a char const *.
2257
2258 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2259
2260         * src/support/syscall.C (Systemcalls::kill): 
2261           src/support/filetools.C (PutEnv, PutEnvPath): 
2262           src/lyx_cb.C (addNewlineAndDepth): 
2263           src/FontInfo.C (FontInfo::resize): condition some #warning
2264         directives with WITH_WARNINGS.
2265         
2266
2267 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
2268
2269         * src/layout.[Ch] + several files: access to class variables
2270         limited and made accessor functions instead a lot of code changed
2271         becuase of this. Also instead of returning pointers often a const
2272         reference is returned instead.
2273         
2274         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2275
2276         * src/Makefile.am (dist-hook): added used to remove the CVS from
2277         cheaders upon creating a dist
2278         (EXTRA_DIST): added cheaders
2279
2280         * src/support/lstrings.C (tostr(char)): fix it to handle param as
2281         a character not as a small integer. 
2282
2283         * src/support/lyxstring.C (find): removed Assert and added i >=
2284         rep->sz to the first if.
2285
2286 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
2287
2288         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2289         src/LyXView.C src/buffer.C src/bufferparams.C
2290         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
2291         src/text2.C src/insets/insetinclude.C:
2292         lyxlayout renamed to textclasslist.
2293
2294         * src/layout.C: some lyxerr changes.
2295
2296         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2297         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2298         (LyXLayoutList): removed all traces of this class.
2299         (LyXTextClass::Read): rewrote LT_STYLE
2300         (LyXTextClass::hasLayout): new function
2301         (LyXTextClass::GetLayout): rewritten to return an iterator + has
2302         both const and nonconst version.
2303         (LyXTextClass::delete_layout): new function.
2304         (LyXTextClassList::Style): bug fix. do the right thing if layout
2305         is to big.
2306         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2307         (LyXTextClassList::NameOfLayout): ditto 
2308         (LyXTextClassList::Load): ditto
2309
2310         * src/buffer.C (makeLaTeXFile): new access to layoutlist
2311
2312         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2313
2314         * src/LyXAction.C (LookupFunc): added a workaround for sun
2315         compiler, on the other hand...we don't know if the current code
2316         compiles on sun at all...
2317
2318         * src/support/filetools.C (CleanupPath): subst fix
2319
2320         * src/insets/insetbib.C (delDatabase): subst fix, this looks
2321         _really_ weird.
2322
2323         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2324         complained about this one?
2325
2326         * src/insets/insetinclude.C (Latex): subst fix
2327
2328         * src/insets/insetbib.C (getKeys): subst fix
2329
2330         * src/LyXSendto.C (SendtoApplyCB): subst fix
2331
2332         * src/lyx_main.C (init): subst fix
2333
2334         * src/layout.C (Read): subst fix
2335
2336         * src/lyx_sendfax_main.C (button_send): subst fix
2337
2338         * src/buffer.C (RoffAsciiTable): subst fix
2339
2340         * src/lyx_cb.C (MenuFax): subst fix
2341         (PrintApplyCB): subst fix
2342
2343 1999-10-26  Juergen Vigna  <jug@sad.it>
2344
2345         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2346
2347         (Read): Cleaned up this code so now we read only format vestion >= 5
2348
2349 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
2350
2351         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2352         come nobody has complained about this one?
2353
2354         * src/insets/insetinclude.C (Latex): subst fix
2355
2356         * src/insets/insetbib.C (getKeys): subst fix
2357
2358         * src/lyx_main.C (init): subst fix
2359
2360         * src/layout.C (Read): subst fix
2361
2362         * src/buffer.C (RoffAsciiTable): subst fix
2363
2364         * src/lyx_cb.C (MenuFax): subst fix.
2365
2366         * src/layout.[hC] + some other files: rewrote to use
2367         std::container to store textclasses and layouts in.
2368         Simplified, removed a lot of code. Make all classes
2369         assignable. Further simplifications and review of type
2370         use still to be one. 
2371
2372         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2373         lastfiles to create the lastfiles partr of the menu.
2374
2375         * src/lastfiles.[Ch]: rewritten to use deque to store the
2376         lastfiles in. Uses fstream for reading and writing. Simplifies
2377         code.
2378
2379         * src/support/syscall.C: remove explicit cast.
2380
2381         * src/BufferView.C (CursorToggleCB): removed code snippets that
2382         were commented out.
2383         use explicat C++ style casts instead of C style casts. also use
2384         u_vdata instea of passing pointers in longs.
2385
2386         * src/PaperLayout.C: removed code snippets that were commented out.
2387
2388         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
2389
2390         * src/lyx_main.C: removed code snippets that wer commented out.
2391
2392         * src/paragraph.C: removed code snippets that were commented out.
2393
2394         * src/lyxvc.C (logClose): use static_cast
2395         (logUpdate): ditto
2396         (viewLog): remove explicit cast to void*
2397         (showLog): removed old commented code
2398
2399         * src/menus.C: use static_cast instead of C style casts. use
2400         u_vdata instead of u_ldata. remove explicit cast to (long) for
2401         pointers. Removed old code that was commented out.
2402
2403         * src/insets/inset.C: removed old commented func
2404
2405         * src/insets/insetref.C (InsetRef): removed old code that had been
2406         commented out for a long time.
2407         (Edit): ditto
2408         (escape): removed C style cast
2409
2410         * src/insets/insetlatexaccent.C (Draw): removed old commented code
2411
2412         * src/insets/insetlatex.C (Draw): removed old commented code
2413         (Read): rewritten to use string
2414
2415         * src/insets/insetlabel.C (escape): removed C style cast
2416
2417         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2418
2419         * src/insets/insetindex.C: use static_cast and u_vdata, removed
2420         old commented code.
2421
2422         * src/insets/insetinclude.h: removed a couple of stupid bools
2423
2424         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2425         (Clone): remove C style cast
2426         (getKeys): changed list to lst because of std::list
2427
2428         * src/insets/inseterror.C (Draw): removed som old commented code.
2429
2430         * src/insets/insetcommand.C (Draw): removed some old commented code.
2431
2432         * src/insets/insetbib.C (bibitem_cb): removed code that has been
2433         commented out forever.
2434         (bibitem_cb): use static_cast instead of C style cast
2435         use of vdata changed to u_vdata.
2436
2437         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2438         parameter.
2439         (CloseUrlCB): use static_cast instead of C style cast.
2440         (CloseUrlCB): added a fl_free form...it seemed to be missing.
2441
2442         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2443         (C_InsetInfo_CloseInfoCB): forward the ob parameter
2444         (CloseInfoCB): static_cast from ob->u_vdata instead.
2445         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2446         instead. 
2447
2448         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2449         (C_InsetError_CloseErrorCB): forward the ob parameter
2450         (CloseErrorCB): static_cast from ob->u_vdata instead.
2451
2452         * src/vspace.h: include LString.h since we use string in this class.
2453
2454         * src/vspace.C (lyx_advance): changed name from advance because of
2455         nameclash with stl. And since we cannot use namespaces yet...I
2456         used a lyx_ prefix instead. Expect this to change when we begin
2457         using namespaces.
2458
2459         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
2460
2461         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2462         and removed now defunct constructor and deconstructor.
2463
2464         * src/BufferView.h: have backstack as a object not as a pointer.
2465         removed initialization from constructor. added include for BackStack 
2466
2467         * development/lyx.spec.in (%build): add CFLAGS also.
2468
2469         * src/screen.C (drawFrame): removed another warning.
2470
2471 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2472
2473         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2474         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2475         README and ANNOUNCE a bit for the next release. More work is
2476         needed, of course.
2477
2478         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2479         unbreakable if we are in freespacing mode (LyX-Code), but not in
2480         latex mode.
2481
2482 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
2483
2484         * src/BackStack.h: fixed initialization order in constructor
2485
2486         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2487
2488         * acinclude.m4 (VERSION): new rules for when a version is
2489         development, added also a variable for prerelease.
2490         (warnings): we set with_warnings=yes for prereleases
2491         (lyx_opt): prereleases compile with same optimization as development 
2492         (CXXFLAGS): only use pedantic if we are a development version 
2493
2494         * src/BufferView.C (restorePosition): don't do anything if the
2495         backstack is empty.
2496
2497         * src/BackStack.h: added member empty, use this to test if there
2498         is anything to pop...
2499
2500 1999-10-25  Juergen Vigna  <jug@sad.it>
2501
2502         * forms/form1.fd +
2503         * forms/layout_forms.fd +
2504         * forms/latexoptions.fd +
2505         * lyx.fd: changed for various form resize issues
2506
2507         * src/mathed/math_panel.C +
2508         * src/insets/inseterror.C +
2509         * src/insets/insetinfo.C +
2510         * src/insets/inseturl.C +
2511         * src/insets/inseturl.h +
2512         * src/LaTeXLog.C +
2513         * src/LyXSendto.C +
2514         * src/PaperLayout.C +
2515         * src/ParagraphExtra.C +
2516         * src/TableLayout.C +
2517         * src/form1.C +
2518         * src/layout_forms.C +
2519         * src/lyx.C +
2520         * src/lyx_cb.C +
2521         * src/lyx_gui.C +
2522         * src/lyxfr0.C +
2523         * src/lyxfunc.C +
2524         * src/lyxvc.C +
2525         * src/menus.C: fixed various resize issues. So now forms can be
2526         resized savely or not be resized at all.
2527         
2528         * forms/form_url.fd +
2529         * src/insets/form_url.[Ch]: added because it's cleaner and easier
2530         to modify IMO.
2531
2532         * src/insets/Makefile.am: added files form_url.[Ch]
2533         
2534 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2535
2536         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2537         (and presumably 6.2).
2538
2539         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2540         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2541         remaining static member callbacks. 
2542
2543         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2544         messages. 
2545
2546         * src/support/lyxstring.h: declare struct Srep as friend of
2547         lyxstring, since DEC cxx complains otherwise.
2548
2549 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2550
2551 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2552
2553         * src/LaTeX.C (run): made run_bibtex also depend on files with
2554         extension ".bst"
2555         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2556         are put into the dependency file.
2557
2558         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2559         the code has shown itself to work
2560         (create_ispell_pipe): removed another warning, added a comment
2561         instead. 
2562
2563         * src/minibuffer.C (ExecutingCB): removed code that has been
2564         commented out a long time
2565
2566         * src/lyxfunc.C (processKeyEvent): removed some very old commented
2567         out code + a warning.
2568
2569         * src/support/lyxstring.h: comment out the three private
2570         operators, when compiling with string ansi conforming compilers
2571         they make problems.
2572
2573         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2574         unsigned char *.
2575         (pixmapFromBitmapData): change type of bdata to be unsigned char *
2576         (pixmapFromBitmapData): add a reinterpret_cast in the call to
2577         XCreateImage
2578
2579         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2580         unsigned char *
2581
2582         * src/mathed/math_panel.C (create_math_panel): remove explicit
2583         casts
2584
2585         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2586         unsigned char *.
2587
2588         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2589         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2590         to XCreatePixmapFromBitmapData
2591         (fl_set_bmtable_data): change the last argument to be unsigned
2592         char *
2593         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2594         and bh to be unsigned int, remove explicit casts in call to
2595         XReadBitmapFileData.
2596
2597         * images/arrows.xbm: made the arrays unsigned char *
2598         * images/varsz.xbm: ditto
2599         * images/misc.xbm: ditto
2600         * images/greek.xbm: ditto
2601         * images/dots.xbm: ditto
2602         * images/brel.xbm: ditto
2603         * images/bop.xbm: ditto
2604
2605         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2606
2607         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
2608         (LYX_PROG_CXX): added -pedantic to g++ compile options when
2609         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2610         needed. 
2611         (LYX_CXX_CHEADERS): added <clocale> to the test. 
2612
2613 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
2614
2615         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2616
2617         * src/support/lyxstring.C (append): fixed something that must be a
2618         bug, rep->assign was used instead of rep->append.
2619
2620         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2621         and LOstream.h
2622
2623         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2624         lyx insert double chars. Fix spotted by Kayvan.
2625
2626 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
2627
2628         * Fixed the tth support. I messed up with the Emacs patch apply feature
2629         and omitted the changes in lyxrc.C.
2630
2631 1999-10-22  Juergen Vigna  <jug@sad.it>
2632
2633         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2634
2635         * src/lyx_cb.C (MenuInsertRef) + 
2636         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2637         the form cannot be resized under it limits (fixes a segfault)
2638         
2639         * src/lyx.C (create_form_form_ref) +
2640         * forms/lyx.fd: Changed Gravity on name input field so that it is
2641         resized correctly.
2642
2643 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2644
2645         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2646         <ostream> and <istream>.
2647         
2648         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2649         whether <fstream> provides the latest standard features, or if we
2650         have an oldstyle library (like in egcs).
2651         (LYX_CXX_STL_STRING): fix the test.
2652
2653         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2654         code on MODERN_STL_STREAM.
2655
2656         * src/support/lyxstring.h: use L{I,O}stream.h.
2657
2658         * src/support/L{I,O}stream.h: new files, designed to setup
2659         correctly streams for our use
2660           - includes the right header depending on STL capabilities
2661           - puts std::ostream and std::endl (for LOStream.h) or
2662           std::istream (LIStream.h) in toplevel namespace.
2663
2664 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
2665
2666         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2667         was a bib file that had been changed we ensure that bibtex is run.
2668         (runBibTeX): enhanced to extract the names of the bib files and
2669         getting their absolute path and enter them into the dep file.
2670         (findtexfile): static func that is used to look for tex-files,
2671         checks for absolute patchs and tries also with kpsewhich.
2672         Alternative ways of finding the correct files are wanted. Will
2673         probably be moved.
2674         (do_popen): function that runs a command using popen and returns
2675         the whole output of that command in a string. Should be moved to
2676         somewhere else.
2677
2678         * src/DepTable.[Ch] (extchanged): new function that returns true if a
2679         file with extension ext has changed.
2680
2681         * src/insets/figinset.C: added ifdef guards around the fl_free
2682         code that jug commented out. Now it is commented out when
2683         compiling with XForms == 0.89.
2684
2685         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2686         to lyxstring.C, and only keep a forward declaration in
2687         lyxstring.h. Simplifies the header file a bit and should help a
2688         bit on compile time too. Also changes to Srep will not mandate a
2689         recompile of code just using string.
2690         (~lyxstring): definition moved here since it uses srep.
2691         (size): definition moved here since it uses srep.
2692
2693         * src/support/lyxstring.h: removed a couple of "inline" that should
2694         not be there.
2695
2696 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2697
2698         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2699         the 'ob' argument.
2700
2701 1999-10-21  Juergen Vigna  <jug@sad.it>
2702
2703         * src/table.C (SetPWidth): Just a small fix so the alignment is not
2704         set to left if I just remove the width entry (or it is empty).
2705
2706         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2707         paragraph when having dummy paragraphs.
2708
2709 1999-10-20  Juergen Vigna  <jug@sad.it>
2710
2711         * src/insets/figinset.C: just commented some fl_free_form calls
2712         and added warnings so that this calls should be activated later
2713         again. This avoids for now a segfault, but we have a memory leak!
2714
2715         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2716         'const char * argument' to 'string argument', this should
2717         fix some Asserts() in lyxstring.C.
2718
2719         * src/lyxfunc.h: Removed the function argAsString(const char *)
2720         as it is not used anymore.
2721
2722 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
2723
2724         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2725         get instead of >>
2726
2727         * src/Literate.h: some funcs moved from public to private to make
2728         interface clearer. Unneeded args removed.
2729
2730         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2731         instead of lyxlex.
2732         (scanBuildLogFile): ditto
2733
2734         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2735         normal TeX Error. Still room for improvement.
2736
2737         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2738
2739         * src/buffer.C (insertErrors): changes to make the error
2740         desctription show properly.
2741
2742         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2743         could never happen
2744
2745         * src/support/lyxstring.C (helper): changed to use
2746         sizeof(object->rep->ref).
2747         (operator>>): changed to use a pointer instead.
2748
2749         * src/support/lyxstring.h: changed const reference & to value_type
2750         const & lets see if that helps.
2751
2752 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
2753
2754         * Makefile.am (rpmdist): fixed to have non static package and
2755         verison.
2756
2757         * src/support/lyxstring.C: removed the compilation guards
2758
2759         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
2760         a bit clearer.
2761
2762         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2763         conditional compile of lyxstring.Ch
2764
2765         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2766         stupid check, but it is a lot better than the bastring hack. 
2767         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
2768
2769         * several files: changed string::erase into string::clear. Not
2770         really needed.
2771         
2772         * src/chset.C (encodeString): use a char temporary instead
2773
2774         * src/table.C (TexEndOfCell): added tostr around
2775         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2776         (TexEndOfCell): ditto
2777         (TexEndOfCell): ditto
2778         (TexEndOfCell): ditto
2779         (DocBookEndOfCell): ditto
2780         (DocBookEndOfCell): ditto
2781         (DocBookEndOfCell): ditto
2782         (DocBookEndOfCell): ditto
2783
2784         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2785
2786         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2787
2788         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2789         (MenuBuildProg): added tostr around ret
2790         (MenuRunChktex): added tostr around ret
2791         (DocumentApplyCB): added tostr around ret
2792
2793         * src/chset.C (encodeString): added tostr around t->ic
2794
2795         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2796         (makeLaTeXFile): added tostr around tocdepth
2797         (makeLaTeXFile): added tostr around ftcound - 1
2798
2799         * src/insets/insetbib.C (setCounter): added tostr around counter.
2800
2801         * src/support/lyxstring.h: added an operator+=(int) to catch more
2802         mistakes. 
2803
2804         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2805         (lyxstring): We DON'T allow NULL pointers.
2806
2807 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2808
2809         * src/mathed/math_macro.C (MathMacroArgument::Write,
2810         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2811         when writing them out.
2812
2813         * src/LString.C: remove, since it is not used anymore.
2814         
2815         * src/support/lyxstring.C: condition the content to
2816         USE_INCLUDED_STRING macro.
2817
2818         * src/mathed/math_symbols.C, src/support/lstrings.C,
2819         src/support/lyxstring.C: add `using' directive to specify what
2820         we need in <algorithm>. I do not think that we need to
2821         conditionalize this, but any thought is appreciated.
2822
2823         * many files: change all callback functions to "C" linkage
2824         functions to please strict C++ compilers like DEC cxx 6.1 in mode
2825         strict_ansi. Those who were static are now global. 
2826             The case of callbacks which are static class members is
2827         trickier, since we have to make C wrappers around them (see
2828         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2829         did not finish this yet, since it defeats the purpose of
2830         encapsulation, and I am not sure what the best route is.
2831
2832 1999-10-19  Juergen Vigna  <jug@sad.it>
2833
2834         * src/support/lyxstring.C (lyxstring): we permit to have a null
2835         pointer as assignment value and just don't assign it.
2836
2837         * src/vspace.C (nextToken): corrected this function substituting
2838         find_first(_not)_of with find_last_of.
2839
2840         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2841                 (TableOptCloseCB) (TableSpeCloseCB):
2842         inserted fl_set_focus call for problem with fl_hide_form() in
2843         xforms-0.89.
2844
2845 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2846
2847         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2848         string. 
2849
2850 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2851
2852         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2853         LyXLex::next() and not eatline() to get its argument.
2854
2855 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
2856
2857         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2858         instead, use fstreams for io of the depfile, removed unneeded
2859         functions and variables. 
2860
2861         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2862         vector instead, removed all functions and variables that is not in
2863         use.
2864
2865 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
2866
2867         * src/buffer.C (insertErrors): use new interface to TeXError
2868
2869         * Makefile.am (rpmdist): added a rpmdist target
2870
2871         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2872         per Kayvan's instructions.
2873
2874 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2875
2876         * src/Makefile.am: add a definition for localedir, so that locales
2877         are found after installation (Kayvan)
2878
2879 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
2880
2881         * development/.cvsignore: new file.
2882
2883 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2884
2885         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2886         C++ compiler provides wrappers for C headers and use our alternate
2887         version otherwise.
2888
2889         * configure.in: use LYX_CXX_CHEADERS.
2890
2891         * src/cheader/: new directory, populated with cname headers from
2892         libstdc++-2.8.1. They are a bit old, but probably good enough for
2893         what we want (support compilers who lack them).
2894         
2895         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2896         from includes. It turns out is was stupid.
2897  
2898 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
2899
2900         * lib/Makefile.am (install-data-local): forgot a ';'
2901         (install-data-local): forgot a '\'
2902         (libinstalldirs): needed after all. reintroduced.
2903
2904 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
2905
2906         * configure.in (AC_OUTPUT): added lyx.spec
2907
2908         * development/lyx.spec: removed file
2909
2910         * development/lyx.spec.in: new file
2911
2912         * po/*.po: merged with lyx.pot becuase of make distcheck
2913         
2914         * lib/Makefile.am (dist-hook): added dist-hook so that
2915         documentation files will be included when doing a make
2916         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2917         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2918         conditional later.
2919         more: tried to make install do the right thing, exclude CVS dirs
2920         etc.
2921
2922         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2923         Path would fit in more nicely.
2924
2925         * all files that used to use pathstack: uses now Path instead.
2926         This change was a lot easier than expected.
2927         
2928         * src/support/path.h: new file
2929
2930         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2931
2932         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2933
2934         * src/support/lyxstring.C (getline): Default arg was given for
2935         para 3. removed.
2936
2937         * Configure.cmd: removed file 
2938
2939 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2940
2941         * src/support/DebugStream.[Ch]: remove the explicit std:: before
2942         streams classes and types, add the proper 'using' statements when
2943         MODERN_STL is defined.
2944         
2945         * src/debug.h: move the << operator definition after the inclusion
2946         of DebugStream.h
2947
2948         * src/support/filetools.C: include "LAssert.h", which is needed
2949         later. 
2950
2951         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2952         to includes. 
2953
2954         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2955         include "debug.h" to define a proper ostream.
2956
2957 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
2958
2959         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2960           method to the SystemCall class which can kill a process, but it's
2961           not fully implemented yet.
2962
2963         * src/*.C: Changed Systemcalls::Startscript() to startscript()
2964
2965         * src/support/FileInfo.h: Better documentation  
2966
2967         * src/lyxfunc.C: Added support for buffer-export html
2968         
2969         * src/menus.C: Added Export->As HTML...
2970         
2971         * lib/bind/*.bind: Added short-cut for buffer-export html
2972
2973         * src/lyxrc.*: Added support for new \tth_command
2974         
2975         * lib/lyxrc.example: Added stuff for new \tth_command
2976
2977 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
2978
2979         * lib/Makefile.am (IMAGES): removed images/README
2980         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2981         installes in correct place. Check permisions is installed
2982         correctly.
2983
2984         * src/LaTeX.C: some no-op changes moved declaration of some
2985         variables around.
2986
2987         * src/LaTeX.h (LATEX_H): changed include guard name
2988
2989 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2990
2991         * lib/reLyX/Makefile.am: install noweb2lyx.
2992
2993         * lib/Makefile.am: install configure. 
2994
2995         * lib/reLyX/configure.in: declare a config aux dir; set package
2996         name to lyx (not sure what the best solution is); generate noweb2lyx.
2997
2998         * lib/layouts/egs.layout: fix the bibliography layout.
2999
3000 1999-10-08  Jürgen Vigna <jug@sad.it>
3001
3002         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
3003         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
3004         it returned without continuing to search the path.
3005         
3006 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
3007
3008         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
3009         also fixes a bug. It is not allowed to do tricks with std::strings
3010         like: string a("hei"); &a[e]; this will not give what you
3011         think... Any reason for the complexity in this func?
3012
3013 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
3014
3015         * Updated README and INSTALL a bit, mostly to check that my
3016         CVS rights are correctly set up.
3017
3018 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
3019
3020         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
3021         does not allow '\0' chars but lyxstring and std::string does.
3022
3023 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
3024
3025         * autogen.sh (AUTOCONF): let the autogen script create the
3026         POTFILES.in file too. POTFILES.in should perhaps now not be
3027         included in the cvs module.
3028
3029         * some more files changed to use C++ includes instead of C ones.
3030
3031         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
3032         not assigned.
3033         (Reread): added tostr to nlink. buggy output otherwise.
3034         (Reread): added a string() around szMode when assigning to Buffer,
3035         without this I got a log of garbled info strings.
3036
3037         * acconfig.h: commented out the PTR_AS_INT macros. They should not
3038         be needed.
3039
3040         * I have added several ostream & operator<<(ostream &, some_type)
3041         functions. This has been done to avoid casting and warnings when
3042         outputting enums to lyxerr. This as thus eliminated a lot of
3043         explicit casts and has made the code clearer. Among the enums
3044         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
3045         mathed enums, some font enum the Debug::type enum. 
3046
3047         * src/support/lyxstring.h (clear): missing method. equivalent of
3048         erase(0, npos).
3049
3050         * all files that contained "stderr": rewrote constructs that used
3051         stderr to use lyxerr instead. (except bmtable)
3052
3053         * src/support/DebugStream.h (level): and the passed t with
3054         Debug::ANY to avoid spurious bits set.
3055
3056         * src/debug.h (Debug::type value): made it accept strings of the
3057         type INFO,INIT,KEY.
3058
3059         * configure.in (Check for programs): Added a check for kpsewhich,
3060         the latex generation will use this later to better the dicovery of
3061         all used files. 
3062
3063         * src/BufferView.C (create_view): we don't need to cast this to
3064         (void*) that is done automatically.
3065         (WorkAreaButtonPress): removed some dead code.
3066
3067 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3068
3069         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
3070         is not overwritten when translated (David Sua'rez de Lis).
3071
3072         * lib/CREDITS: Added David Sua'rez de Lis
3073
3074         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
3075
3076         * src/bufferparams.C (BufferParams): default input encoding is now
3077         "latin1" 
3078
3079         * acinclude.m4 (cross_compiling): comment out macro
3080         LYX_GXX_STRENGTH_REDUCE. 
3081
3082         * acconfig.h: make sure that const is not defined (to empty) when
3083         we are compiling C++. Remove commented out code using SIZEOF_xx
3084         macros.
3085         
3086         * configure.in : move the test for const and inline as late as
3087         possible so that these C tests do not interefere with C++ ones.
3088         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
3089         has not been proven. 
3090
3091 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3092
3093         * src/table.C (getDocBookAlign): remove bad default value for
3094         isColumn parameter.
3095
3096         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
3097         shortcut. 
3098         (ShowFileMenu2): ditto.
3099
3100         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
3101         of files to ignore.
3102
3103 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
3104
3105         * Most files: finished the change from the old error code to use
3106         DebugStream for all lyxerr debugging. Only minor changes remain
3107         (e.g. the setting of debug levels using strings instead of number) 
3108
3109 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
3110
3111         * src/layout.C (Add): Changed to use compare_no_case instead of
3112         strcasecmp.
3113
3114         * src/FontInfo.C: changed loop variable type too string::size_type.
3115
3116 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
3117
3118         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
3119         set ETAGS_ARGS to --c++ 
3120
3121 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
3122
3123         * src/table.C (DocBookEndOfCell): commented out two unused variables
3124
3125         * src/paragraph.C: commented out four unused variables. 
3126
3127         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
3128         insed a if clause with type string::size_type.
3129
3130         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
3131         string::size_type.
3132
3133         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
3134
3135         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
3136         variable, also changed loop to go from 0 to lenght + 1, instead of
3137         -1 to length. This should be correct.
3138
3139         * src/LaTeX.C (scanError): use string::size_type as loop variable
3140         type.
3141
3142         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
3143         (l.896) since y_tmp and row was not used anyway.
3144
3145         * src/insets/insetref.C (escape): use string::size_type as loop
3146         variable type.
3147
3148         * src/insets/insetquotes.C (Width): use string::size_type as loop
3149         variable type.
3150         (Draw): use string::size_type as loop variable type.
3151
3152         * src/insets/insetlatexaccent.C (checkContents): use
3153         string::size_type as loop variable type.
3154
3155         * src/insets/insetlabel.C (escape): use string::size_type as loop
3156         variable type.
3157
3158         * src/insets/insetinfo.C: added an extern for current_view.
3159
3160         * src/insets/insetcommand.C (scanCommand): use string::size_type
3161         as loop variable type.
3162
3163         * most files: removed the RCS tags. With them we had to recompile
3164         a lot of files after a simple cvs commit. Also we have never used
3165         them for anything meaningful. 
3166
3167         * most files: tags-query-replace NULL 0. As adviced several plases
3168         we now use "0" instead of "NULL" in our code. 
3169
3170         * src/support/filetools.C (SpaceLess): use string::size_type as
3171         loop variable type.
3172
3173 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
3174
3175         * src/paragraph.C: fixed up some more string stuff.
3176
3177 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
3178
3179         * src/support/filetools.h: make modestr a std::string.
3180
3181         * src/filetools.C (GetEnv): made ch really const.
3182
3183         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
3184         made code that used these use max/min from <algorithm> instead.
3185
3186         * changed several c library include files to their equivalent c++
3187         library include files. All is not changed yet.
3188
3189         * created a support subdir in src, put lyxstring and lstrings
3190         there + the extra files atexit, fileblock, strerror. Created
3191         Makefile.am. edited configure.in and src/Makefile.am to use this
3192         new subdir. More files moved to support.
3193
3194         * imported som of the functions from repository lyx, filetools
3195         
3196         * ran tags-query-replace on LString -> string, corrected the bogus
3197         cases. Tried to make use of lstrings.[hC], debugged a lot. There
3198         is still some errors in there. This is errors where too much or
3199         too litle get deleted from strings (string::erase, string::substr,
3200         string::replace), there can also be some off by one errors, or
3201         just plain wrong use of functions from lstrings. Viewing of quotes
3202         is wrong. 
3203
3204         * LyX is now running fairly well with string, but there are
3205         certainly some bugs yet (see above) also string is quite different
3206         from LString among others in that it does not allow null pointers
3207         passed in and will abort if it gets any.
3208         
3209         * Added the revtex4 files I forgot when setting up the repository.
3210
3211 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
3212
3213         * All over: Tried to clean everything up so that only the files
3214           that we really need are included in the cvs repository.
3215         * Switched to use automake.
3216         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3217         * Install has not been checked.
3218
3219 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
3220
3221         * po/pt.po: Three errors:
3222                l.533 and l.538 format specification error
3223                l. 402 duplicate entry, I just deleted it.
3224