]> git.lyx.org Git - features.git/blob - ChangeLog
read the Changelog, preparing for prerelease
[features.git] / ChangeLog
1 2000-04-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
2
3         * ANNOUNCE: 
4         * INSTALL: 
5         * UPGRADING: 
6         * NEWS: updated for prerelease of 1.1.5. Please comment and send
7         patches for things that should be in or should be changed.
8
9         * src/* [insetfiles]: change "usigned char fragile" to bool
10         fragile. There was only one point that could that be questioned
11         and that is commented in formulamacro.C. Grep for "CHECK".
12         
13         * src/CutAndPaste.C (getBufferTextClass): unused func, removed.
14         (DeleteBuffer): take it out of CutAndPaste and make it static.
15
16 2000-04-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
17
18         * src/paragraph.C (TeXOnePar): use the new method in Spacing to
19         output the spacing envir commands. Also the new commands used in
20         the LaTeX output makes the result better.
21
22         * src/Spacing.C (writeEnvirBegin): new method
23         (writeEnvirEnd): new method
24
25 2000-04-18  Juergen Vigna  <jug@sad.it>
26
27         * src/CutAndPaste.C: made textclass a static member of the class
28         as otherwise it is not accesed right!!!
29
30 2000-04-17  Dekel Tsur  <dekel@math.tau.ac.il>
31
32         * forms/layout_forms.fd
33         * src/layout_forms.h
34         * src/layout_forms.C (create_form_form_character)
35         * src/lyx_cb.C (UserFreeFont)
36         * src/lyx_gui.C (create_forms): Added GUI support for multi-lingual
37        documents (in the layout->character popup).
38
39 2000-04-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
40
41         * src/spellchecker.C (create_ispell_pipe): fix a bug where
42         \spell_command was in fact not honored (from Kevin Atkinson).
43
44         * src/lyx_gui.C (~LyXGUI): make sure lyxViews is deleted when
45         quitting (Angus)
46
47         * src/lyx_gui.h: make lyxViews private (Angus)
48
49 2000-04-15  Dekel Tsur  <dekel@math.tau.ac.il>
50
51         * src/mathed/math_write.C
52         (MathMatrixInset::Write) Put \protect before \begin{array} and
53         \end{array} if fragile
54         (MathParInset::Write): Put \protect before \\ if fragile
55
56 2000-04-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
57
58         * src/lyx_gui.C (LyXGUI): initialize the LyXColorHandler. The
59         initialization if the LyXColorHandler must be done after the
60         connections to the XServer has been established.
61
62         * src/insets/figinset.C (runqueue): change the grabing a bit. Also
63         get the background pixel from the lyxColorhandler so that the
64         figures are rendered with the correct background color.
65         (NextToken): removed functions.
66         (GetPSSizes): use ifs >> string instead of NextToken.
67
68         * src/Painter.[Ch]: the color cache moved out of this file. 
69
70         * src/ColorHandler.[Ch]: new files. Holds the gc cache for color
71         and lines.  
72
73 2000-04-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
74
75         * src/WorkArea.C (work_area_handler): call BufferView::enterView
76         and Buffer::leaveView when FL_ENTER and FL_LEAVE.
77
78         * src/BufferView.C (enterView): new func
79         (leaveView): new func
80
81         * src/BufferView_pimpl.C (enterView): new func, sets xterm cursor
82         when approp.
83         (leaveView): new func, undefines xterm cursor when approp.
84
85         * src/bufferview_funcs.C: moved SetXCursor to BufferView_pimp.C
86         (AllowInput): delete the Workarea cursor handling from this func.
87
88         * src/Painter.C (underline): draw a slimer underline in most cases.
89
90         * src/lyx_main.C (error_handler): use extern "C"
91
92 2000-04-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
93
94         * src/insets/figinset.C (DocBook): small patch from Jose (jamatos)
95         sent directly to me.
96
97         * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
98         to the list by Dekel.
99
100         * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
101         strstream too.
102
103         * src/bufferview_funcs.[Ch]: two new files, moved several of the
104         methods from lyx_cb.here.
105
106         * src/lyx_cb.C: in addition to the above; removed input_prohibited
107         it was not used.
108
109 2000-04-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
110
111         * src/lyx_cb.[Ch]: made several functions take a BufferView* arg
112         instead of using current_view directly. 
113
114         * src/lyxfunc.C (Dispatch): the paragraph-spacing implementation
115
116         * src/LyXAction.C (init): add the paragraph-spacing command.
117
118         * src/commandtags.h: add enum for LFUN_PARAGRAPH_SPACING
119
120         * src/buffer.C (parseSingleLyXformat2Token): read the paragraph spacing
121
122         * src/lyx_cb.C (CurrentState): output a string when the spacing is
123         different from the documents.
124
125         * src/text.C (SetHeightOfRow): take paragraph spacing into
126         account, paragraph spacing takes precedence over buffer spacing
127         (GetVisibleRow): ditto
128
129         * src/paragraph.C (writeFile): output the spacing parameter too.
130         (validate): set the correct features if spacing is used in the
131         paragraph. 
132         (Clear): set spacing to default
133         (MakeSameLayout): spacing too
134         (HasSameLayout): spacing too
135         (SetLayout): spacing too
136         (TeXOnePar): output the spacing commands
137
138         * src/lyxparagraph.h: added a spacing variable for use with
139         per-paragraph spacing.
140
141         * src/Spacing.h: add a Default spacing and a method to check if
142         the current spacing is default. also added an operator==
143
144         * src/text2.C (DeleteEmptyParagraphMechanism): added a
145         RedoParagraphs.
146
147 2000-04-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
148
149         * src/lyxserver.C (callback): fix dispatch of functions
150
151         * src/insets/insetlatexaccent.C (checkContents): turn bogus
152         printf() into lyxerr call. 
153
154         * src/tex-strings.C (tex_fonts): add "pslatex" to the choice of
155         fonts. 
156
157         * src/menus.C (ShowInsertMenu): rename "Figure" to "Graphic",
158         "Table" to "Table Box", "Float" to "Floating Material"; deletes
159         the "Float" from each of the subitems.
160         (ShowHelpMenu): add entry for "FAQ" and "TOC".
161
162         * src/support/DebugStream.h: add an #ifdef to work around a gcc
163         2.8.x compiler error. Yes, I know, gcc 2.8.1 is bad, but I
164         documented the change so that the workaround can be nuked later.
165
166         * src/lyx_gui_misc.C (getScreenDPI): new function. Code moved from 
167         LyX::init().
168         
169         * src/lyxlex_pimpl.C (next): do not re-declare the default value
170         of arguments.
171         * src/buffer.C (getLatexName): ditto
172         (setReadonly): ditto
173
174 2000-04-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
175
176         * src/LaTeXFeatures.h: add a const reference to BufferParams, to
177         avoid some uses of current_view. Added also a bufferParams()
178         method to get at this.
179
180         * src/lyxtext.h: changed params->buffer and paramters->bparams.
181
182 2000-04-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
183
184         * src/lyxparagraph.[Ch]: removed
185         operator<(LyXParagraph::InsetTable..., added a struct matchIT
186         with operators used by lower_bound and
187         upper_bound in InsetTable's
188         Make struct InsetTable private again. Used matchpos.
189
190 2000-04-08  Dekel Tsur  <dekel@math.tau.ac.il>
191         
192         * src/lyx_cb.C (DocumentApplyCB): When changing the language of the
193         document, the language of existing text is changed (unless the
194         document is multi-lingual)
195
196         * src/buffer.C (ChangeLanguage,isMultiLingual) New methods.
197
198         * src/paragraph.C (ChangeLanguage,isMultiLingual) New methods.
199
200         * A lot of files: A rewrite of the Right-to-Left support.
201                                                                            
202 2000-04-10  Juergen Vigna  <jug@sad.it>
203
204         * src/BufferView2.C (showLockedInsetCursor): small bugfix for
205         misplaced cursor when inset in inset is locked.
206
207         * src/insets/insettext.C (LocalDispatch): small fix so that a
208         BREAKLINE is not inserted if we don't permit it with autBreakRows.
209
210         * src/insets/insetfoot.C (GetDrawFont): implemented this as the
211         footnote font should be decreased in size twice when displaying.
212
213         * src/insets/insettext.C (GetDrawFont): inserted this function as
214         the drawing-font may differ from the real paragraph font.
215
216         * src/lyxfunc.C (processKeyEvent): fixed Esc-handling when unlocking
217         insets (inset in inset!).
218
219         * src/insets/insetfoot.C (InsertInsetAllowed): implemented the below
220         function here because we don't want footnotes inside footnotes.
221
222         * src/insets/insettext.C (InsetText): forgot to set autoBreakRows for
223         Cloned insets.
224         (init): now set the inset_owner in paragraph.C
225         (LocalDispatch): added some resetPos() in the right position
226         (cutSelection): 
227         (copySelection): 
228         (pasteSelection): changed to use the new CutAndPaste-Class.
229
230         * src/insets/lyxinset.h: inserted new function InsertInsetAllowed
231         which tells if it is allowed to insert another inset inside this one.
232
233         * src/lyx_cb.C (DocumentApplyCB): Using CutAndPaste-Class for
234         SwitchLayoutsBetweenClasses.
235
236         * src/text2.C (InsertInset): checking of the new paragraph-function
237         InsertInsetAllowed.
238         (DeleteSimpleCutBuffer): removed (for now only with #ifdef) as this
239         is not needed anymore here!
240         (CutSelection): 
241         (CopySelection): 
242         (PasteSelection): redone (also with #ifdef) so that now this uses
243         the CutAndPaste-Class.
244         (SwitchLayoutsBetweenClasses): removed here and implemented in the
245         CutAndPaste-Class.
246         
247         * src/CutAndPaste.[Ch]: added this for clean handling of CutAndPaste
248         from/to text/insets.
249
250         * src/paragraph.C (LyXParagraph): inserted new inset_owner pointer
251         so that the paragraph knows if it is inside an (text)-inset.
252         (InsertFromMinibuffer): changed return-value to bool as now it
253         may happen that an inset is not inserted in the paragraph.
254         (InsertInsetAllowed): this checks if it is allowed to insert an
255         inset in this paragraph.
256         (PasteParagraph): 
257         (BreakParagraphConservative): 
258         (BreakParagraph) : small change for the above change of the return
259         value of InsertFromMinibuffer.
260
261         * src/lyxparagraph.h: added inset_owner and the functions to handle
262         this (SetInsetOwner(), InInset() and InsertInsetAllowed()).
263
264 2000-04-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
265
266         * src/BufferView.[Ch], src/BufferView_pimpl.[Ch]: move more
267         functions from BufferView to BufferView::Pimpl to ease maintence.
268         
269         * src/text2.C (DeleteEmptyParagraphMechanism): update the cursor
270         correctly. Also use SetCursorIntern instead of SetCursor.
271
272         * src/insets/insetinfo.C (draw): draw InsetInfo notes with the
273         correct color.
274
275 2000-04-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
276
277         * src/WorkArea.C (belowMouse): manually implement below mouse.
278
279         * src/*: Add "explicit" on several constructors, I added probably
280         some unneeded ones. A couple of changes to code because of this.
281
282         * src/BufferView.[Ch]: Used the "pimpl" idiom to hide more of the
283         implementation and private parts from the users of BufferView. Not
284         quite finished.
285
286         * src/lyxlex.[Ch]: Used the "pimpl" idiom to hide more of the
287         implementation and private parts from the users of LyXLex. Not
288         quite finished.
289
290         * src/BufferView_pimpl.[Ch]: new files
291
292         * src/lyxlex_pimpl.[Ch]: new files
293
294         * src/LyXView.[Ch]: some inline functions move out-of-line
295
296 2000-04-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
297
298         * src/lyxparagraph.h: make struct InsetTable public.
299
300         * src/support/lyxstring.h: change lyxstring::difference_type to be
301         ptrdiff_t. Add std:: modifiers to streams.
302
303         * src/font.C: include the <cctype> header, for islower() and
304         isupper(). 
305
306 2000-04-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
307
308         * src/font.[Ch]: new files. Contains the metric functions for
309         fonts, takes a LyXFont as parameter. Better separation of concepts.
310         
311         * src/lyxfont.[Ch]: move the metric functions to font.[Ch] several
312         changes because of this.
313
314         * src/PainterBase.[Ch] (width): remove, use the ones in font.C instead
315
316         * src/*: compile with -Winline and move functions that don't
317         inline out of line.
318         
319         * src/lyx_cb.C (stringOnlyContains): use string::find_first_not_of
320         instead of strspn.
321
322 2000-04-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
323
324         * src/paragraph.C (GetLabelstring): renamed from GetLabestring.
325         (various files changed because of this)
326
327         * src/Painter.C (text): fixed the drawing of smallcaps.
328
329         * src/lyxfont.[Ch] (drawText): removed unused member func.
330         (drawString): ditto
331
332         * src/*.C: added needed "using" statements and "std::" qualifiers. 
333
334 2000-03-31  Lars Gullik Bjønnes  <larsbj@lyx.org>
335
336         * src/*.h: removed all use of "using" from header files use
337         qualifier std:: instead. 
338
339 2000-04-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
340
341         * src/text.C (Backspace): some additional cleanups (we already
342         know whether cursor.pos is 0 or not).
343
344         * lib/reLyX/Makefile.am (DESTDIR): add an empty value (since
345         automake does not provide one).
346
347         * src/bmtable.h: replace C++ comments with C comments.
348
349 2000-04-02  Dekel Tsur <dekel@math.tau.ac.il>
350
351         * src/screen.C (ShowCursor): Change the shape of the cursor if
352         the current language is not equal to the language of the document.
353         (If the cursor change its shape unexpectedly, then you've found a bug)
354
355         * src/insets/insettext.C (LocalDispatch, UpdateLocal) Fixed some
356         bugs [I hope...]
357
358         * src/insets/insetnumber.[Ch]: New files.
359
360         * src/LyXAction.C (init)
361         * src/lyxfunc.C (dispatch): Add command number-inset-insert
362
363         * lyxrc.example
364         * src/lyxrc.C: Renamed command \auto_mathmode to \number_inset
365
366         * src/lyxparagraph.h
367         * src/paragraph.C: Changed insetlist to Vector<InsetTable>.
368         (the vector is kept sorted).
369
370         * src/text.C (GetVisibleRow): Draw selection correctly when there
371         is both LTR and RTL text.
372
373         * src/paragraph.C (Clone): Use the assignment operator for cloning,
374         which is much faster.
375
376         * src/text.C (GetVisibleRow and other): Do not draw the last space 
377         in a row if the direction of the last letter is not equal to the
378         direction of the paragraph.
379
380         * src/lyxfont.C (latexWriteStartChanges):
381         Check that font language is not equal to basefont language.
382         (latexWriteEndChanges): ditto
383
384         * src/lyx_cb.C (StyleReset): Don't change the language while using
385         the font-default command.
386
387         * src/paragraph.C (GetFirstFontSettings): Handle correctly an
388         empty paragraph before a footnote.
389
390         * src/insets/insetcommand.C (draw): Increase x correctly.
391
392         * src/screen.C (ShowCursor): Change cursor shape if
393         current language != document language.
394
395         * src/lyxfunc.C (dispatch): Added calls to owner->view()->setState()
396
397 2000-03-31  Juergen Vigna  <jug@sad.it>
398
399         * src/paragraph.C (GetInset): commented out text[pos] = ' '
400         (Clone): changed mode how the paragraph-data is copied to the
401         new clone-paragraph.
402
403         * src/lyxfunc.C (Dispatch): fixed small problem when calling
404         GetInset(pos) with no inset anymore there (in inset UNDO)
405
406         * src/insets/insetcommand.C (draw): small fix as here x is
407         incremented not as much as width() returns (2 before, 2 behind = 4)
408
409 2000-03-30  Juergen Vigna  <jug@sad.it>
410
411         * src/insets/insettext.C (InsetText): small fix in initialize
412         widthOffset (should not be done in the init() function)
413
414 2000-03-29  Amir Karger <karger@lyx.org>
415
416         * lib/examples/it_ItemizeBullets.lyx: translation by 
417         Stefano Mastella
418
419         * Implemented \textasciitilde and fixed a tiny bug in reLyX
420
421 2000-03-29  Juergen Vigna  <jug@sad.it>
422
423         * src/insets/insetcollapsable.C (Clone): same as in InsetFoot
424
425         * src/insets/insetfoot.C (Clone): small change as for the below
426         new init function in the text-inset
427
428         * src/insets/insettext.C (init): new function as I've seen that
429         clone did not copy the Paragraph-Data!
430         (LocalDispatch): Added code so that now we have some sort of Undo
431         functionality (well actually we HAVE Undo ;)
432
433         * src/text.C (Backspace): Small fix for the a | a Backspace problem
434
435 2000-03-24  Dekel Tsur <dekel@math.tau.ac.il>
436         
437         * src/paragraph.C (AutoDeleteInsets) Fixed a bug (wrong positions
438         were erased)
439
440 2000-03-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
441
442         * src/main.C: added a runtime check that verifies that the xforms
443         header used when building LyX and the library used when running
444         LyX match. Exit with a message if they don't match. This is a
445         version number check only.
446
447         * src/buffer.C (save): Don't allocate memory on the heap for
448         struct utimbuf times.
449
450         * *: some using changes, use iosfwd instead of the real headers.
451
452         * src/lyxfont.C use char const * instead of string for the static
453         strings. Rewrite some functions to use sstream.
454
455 2000-03-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
456
457         * src/text.C (Backspace): hopefully fix the dreaded backaspace
458         bug. 
459
460 2000-03-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
461
462         * lib/layouts/svjog.layout: new file, for Springer-Verlag Journal
463         of Geodesy (from Martin Vermeer)
464
465         * lib/layouts/svjour.inc: include file for the Springer svjour
466         class. It can be used to support journals other than JoG.
467
468         * lib/Makefile.am: use $(DESTDIR) make variable (from Arkadiusz
469         Miskiewicz <misiek@pld.org.pl>)
470         * lib/reLyX/Makefile.am: ditto.
471
472 2000-03-27  Juergen Vigna  <jug@sad.it>
473
474         * src/insets/insettext.C: added Cut/Copy/Paste inside insets,
475         also some modifications with operations on selected text.
476
477         * src/BufferView.C (checkInsetHit): Now hopefully fixed all the
478         problems with clicking on insets (last famous words ;)
479
480         * src/insets/insetcommand.C (draw): 
481         (width): Changed to have a bit of space before and after the inset so
482         that the blinking cursor can be seen (otherwise it was hidden)
483
484 2000-03-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
485
486         * config/gettext.m4 (AM_WITH_NLS): fix a gettext bug where -lintl
487         would not be added to the link list when an installed gettext (not
488         part of libc) is found.
489
490 2000-03-24  Juergen Vigna  <jug@sad.it>
491
492         * src/insets/insetcollapsable.C (Edit): 
493         * src/mathed/formula.C (InsetButtonRelease): 
494         (InsetButtonPress): fixed for new handling of ButtonPress/Release
495         handling.
496
497         * src/BufferView.C (workAreaButtonPress): 
498         (workAreaButtonRelease): 
499         (checkInsetHit): Finally fixed the clicking on insets be handled
500         correctly!
501
502         * src/insets/insetert.C (Edit): inserted this call so that ERT
503         insets work always with LaTeX-font
504
505 2000-03-21  Kayvan A. Sylvan  <kayvan@camel.internal.sylvan.com>
506
507         * src/lyx_main.C (easyParse): Removed misplaced gui=false which
508         caused lyx to startup with no GUI in place, causing in a crash
509         upon startup when called with arguments.
510
511 2000-03-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
512
513         * src/FontLoader.C: better initialization of dummyXFontStruct.
514
515 2000-03-20 José Abílio Matos <jamatos@lyx.org>
516
517         * src/lyxrc.[Ch] Removed \sgml_extra_options, added 6 other flags
518         for linuxdoc and docbook import and export format options.
519
520         * lib/lyxrc.example Example of default values for the previous flags.
521
522         * src/lyx_cb.C Use those flags instead of the hardwired values for
523         linuxdoc and docbook export.
524
525         * src/lyxfunc.[Ch] Added HTML export for linuxdoc and docbook, added
526         linuxdoc import.
527
528         * src/menus.C Added menus entries for the new import/exports formats.
529         
530 2000-03-09 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
531
532         * src/lyxrc.*: Added support for running without Gui 
533         (\use_gui false)
534           
535         * src/FontLoader.C: sensible defaults if no fonts are needed
536
537         * src/lyx_cb.C: New function ShowMessage (writes either to the
538         minibuffer or cout in case of no gui
539         New function AskOverwrite for common stuff
540         Consequently various changes to call these functions
541
542         * src/lyx_main.C:  allow gui = false and handle lyxrc \use_gui false
543         wild guess at sensible screen resolution when having no gui
544
545         * src/lyxfont.C: no gui, no fonts... set some defaults
546
547 2000-03-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
548
549         * src/LColor.C: made the command inset background a bit lighter.
550
551 2000-03-20  Hartmut Goebel <goebel@noris.net>
552
553         * lib/layouts/stdstruct.inc: split into stdtitle.inc and
554         stdstruct.inc. Koma-Script added some title elements which
555         otherwise have been listed below "bibliography". This split allows
556         adding title elements to where they belong.
557
558         * lib/layouts/scrclass.inc: changed to include stdtitle.inc, then
559         define the additional tilte elements and then include
560         stdstruct.inc. 
561
562         * many other layout files: changed to include stdtitle.inc just
563         before stdstruct.inc.
564
565 2000-03-18 Dekel Tsur <dekel@math.tau.ac.il>
566
567         * src/buffer.C: (save) Added the option to store all backup files
568         in a single directory
569
570         * src/lyxrc.[Ch]: Added variable \backupdir_path
571
572         * lib/lyxrc.example: Added descriptions of recently added variables
573
574         * src/insets/insetbib.[Ch]: Fixed few bugs (crash when editing a
575         bibtex inset, not closing the bibtex popup when deleting the inset)
576
577 2000-03-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
578
579         * src/lyx_cb.C: add a couple using directives.
580
581 2000-03-17 José Abílio Matos <jamatos@lyx.org>
582         * src/lyx_cb.C (RunLinuxDoc) Removed the flag==-1 option for linuxdoc 
583         import based on the filename.
584         
585         * src/bufferlist.C () Removed the call to RunLinuxDoc where a linuxdoc
586         file would be imported at start, if the filename where of a sgml file.
587
588         * src/support/filetools.C (IsSGMLfilename) Removed, no longer needed.
589         
590         * src/support/filetools.h (IsSGMLfilename) Removed, no longer needed.
591         
592 2000-03-16 Dekel Tsur <dekel@math.tau.ac.il>
593         * src/lyxfont.h Replaced the member variable bits.direction by the
594         member variable lang. Made many changes in other files.
595         This allows having a multi-lingual document
596
597         * src/lyxfunc.C, src/lyx_cb.C Added a new command "language <l>"
598         that change the current language to <l>.
599         Removed the command "font-rtl"
600
601         * src/buffer.C Changed LYX_FORMAT to 2.16 (as I changed the file
602         format for Hebrew documents)
603
604         * src/lyxrc.C, src/lyxfunc.C Added a new lyxrc command "auto_mathmode"
605         When auto_mathmode is "true", pressing a digit key in normal mode 
606         will cause entering into mathmode.
607         If auto_mathmode is "rtl" then this behavior will be active only
608         when writing right-to-left text.
609
610         * src/text2.C (InsertStringA) The string is inserted using the
611         current font.
612
613         * src/paragraph.C (GetEndLabel) Gives a correct result for
614         footnote paragraphs.
615
616         * src/paragraph.C (PreviousBeforeFootnote) Fixed a small bug
617
618 2000-03-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
619
620         * src/text.C (Backspace): move RemoveParagraph and RemoveRow in
621         front of PasteParagraph. Never insert a ' '. This should at least
622         fix some cause for the segfaults that we have been experiencing,
623         it also fixes backspace behaviour slightly. (Phu!)
624
625         * src/support/lstrings.C (compare_no_case): some change to make it
626         compile with gcc 2.95.2 and stdlibc++-v3
627
628         * src/text2.C (MeltFootnoteEnvironment): change type o
629         first_footnote_par_is_not_empty to bool.
630
631         * src/lyxparagraph.h: make text private. Changes in other files
632         because of this.
633         (fitToSize): new function
634         (setContentsFromPar): new function
635         (clearContents): new function
636         (SetChar): new function
637
638         * src/paragraph.C (readSimpleWholeFile): deleted.
639
640         * src/lyx_cb.C (InsertAsciiFile): don't use a LyXParagraph to hold
641         the file, just use a simple string instead. Also read the file in
642         a more maintainable manner.
643
644         * src/text2.C (InsertStringA): deleted.
645         (InsertStringB): deleted.
646
647 2000-03-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
648
649         * src/text2.C (DeleteEmptyParagraphMechanism): don't run,
650         RedoParagraphs from the doublespace handling part, just set status
651         to NEED_MORE_REFRESH. Also don't update cursor position (should be
652         done, but perhaps not like this.)
653
654 2000-03-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
655
656         * src/text2.C (InsertStringA): don't forget to insert a META_INSET
657         character when inserting an inset.
658
659 2000-03-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
660
661         * src/bufferparams.C (readLanguage): now takes "default" into
662         consideration.
663
664         * src/lyx_main.C (LyX): remove the setup of lyxrc. (new)
665         also initialize the toplevel_keymap with the default bindings from
666         lyxrc. 
667         
668         * src/buffer.C (Buffer): remove lyxrc from the parameters.
669
670         * all files using lyxrc: have lyxrc as a real variable and not a
671         pointer. remove all extern LyXRC * lyxrc. The equiv to this is
672         done in lyxrc.h.
673         
674         * src/lyxrc.C: remove double call to defaultKeyBindings
675
676         * src/toolbar.[Ch]: Let the ToolbarDefaults handle the reading of
677         toolbar defauls using lyxlex. Remove enums, structs, functions
678         related to this. 
679
680         * src/lyxrc.h: use ToolbarDefaults instead of Toolbar for storing
681         toolbar defaults. Also store default keybindings in a map.
682
683         * src/ToolbarDefaults.[Ch]: New file. This class is used for
684         storing the toolbar defaults without any xforms dependencies. 
685
686         * src/insets/figinset.C: patch posted to list by Andre Poenitz
687         applied. Changed to use iterators.
688
689 2000-03-11  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
690
691         * development/lyx.spec.in: Fix to ``unset LINGUAS'' line for
692         systems that don't have LINGUAS set to begin with.
693
694 2000-03-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
695
696         * src/text2.C (DeleteEmptyParagraphMechanism): small fix posted to
697         the list by Dekel Tsur.
698
699 2000-03-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
700
701         * src/insets/insetgraphics.C (GraphicxCB): declare with "C" linkage.
702         * src/insets/form_graphics.C: ditto.
703
704         * src/insets/inseturl.C (Latex): the free_spc argument is not used.
705
706 2000-03-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
707
708         * src/bufferparams.C (readLanguage): use the new language map
709
710         * src/intl.C (InitKeyMapper): use the new language map
711
712         * src/lyx_gui.C (create_forms): use the new language map
713
714         * src/language.[Ch]: New files. Used for holding the information
715         about each language. Now! Use this new language map enhance it and
716         make it really usable for our needs. 
717
718 2000-03-09 Dekel Tsur <dekel@math.tau.ac.il>
719         
720         * screen.C (ShowCursor): Removed duplicate code.
721         (ShowManualCursor): Support for 3 cursor shapes: Bar (default),
722         L (LTR text in RTL document), and reversed-L (RTL text in LTR document)
723         
724         * src/text.C (NextBreakPoint,Fill): Moved declaration of left_margin
725
726         * src/lyxtext.h
727         * src/text.C  Added TransformChar method. Used for rendering Arabic
728         text correctly (change the glyphs of the letter according to the
729         position in the word)
730
731         * src/buffer.C
732         * src/paragraph.C
733         * src/lyxrc.h
734         * src/lyxrc.C  Added lyxrc command {language_command_begin,
735         language_command_end,language_command_ltr,language_command_rtl,
736         language_package} which allows the use of either arabtex or Omega
737         for Arabic
738
739         * src/lyx_gui.C (init)
740         * src/lyxrc.h
741         * src/lyxrc.C Added lyxrc command screen_font_encoding_menu. Allows
742         to use encoding for menu fonts which is different than the encoding
743         for screen fonts
744
745         * src/buffer.C (makeLaTeXFile): If params.language = "default",
746         do not load the babel package.
747         To write an English document with Hebrew/Arabic, change the document
748         language to "english".
749
750         * src/text2.C (SetCounter): Fixed appendix labels for Hebrew document
751         (alphaCounter): changed to return char
752         (loweralphaCounter, hebrewCounter, romanCounter): New functions
753
754         * lib/lyxrc.example  Added examples for Hebrew/Arabic
755
756         * src/layout.h
757         * src/layout.C  Added layout command endlabeltype
758
759         * src/paragraph.C Added GetEndLabel(),LastPhysicalPar() const
760
761         * src/text.C (GetVisibleRow): Draw a box at the end of proof layout
762
763 2000-03-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
764
765         * src/mathed/math_delim.C (search_deco): return a
766         math_deco_struct* instead of index.
767
768 2000-03-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
769
770         * All files with a USE_OSTREAM_ONLY within: removed all code that
771         was unused when USE_OSTREAM_ONLY is defined.
772         
773         * src/support/lyxalgo.h (sorted): rewrote to use plain '<' instead
774         of any less. Removed header and using.
775
776         * src/text.C (GetVisibleRow): draw the string "Page Break
777         (top/bottom)" on screen when drawing a pagebreak line.
778
779 2000-03-09  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
780
781         * lib/doc/LaTeXConfig.lyx.in: add description of textclass llncs.
782
783         * src/mathed/math_macro.C (draw): do some cast magic.
784         (Metrics): ditto.
785
786         * src/mathed/math_defs.h: change byte* argument to byte const*.
787
788         * src/mathed/formulamacro.[Ch]: add free_spc to Latex() method.
789
790         * src/insets/insetfoot.[Ch]: Clone() always returns an Inset* (well I
791         know it is right to return InsetFoot* too, but cxx does not like
792         it...). 
793
794         * src/insets/insetcollapsable.[Ch] (Clone): make const.
795
796         * development/lyx.spec.in: unset LINGUAS to avoid i18n problems.
797
798         * src/mathed/math_delim.C: change == to proper assignment.
799
800 2000-03-09  Juergen Vigna  <jug@sad.it>
801
802         * src/insets/insettext.C (setPos): fixed various cursor positioning
803         problems (via mouse and cursor-keys)
804         (LocalDispatch): added posibility to add a Ctrl-Enter inside a text
805         inset (still a small display problem but it works ;)
806
807         * src/insets/insetcollapsable.C (draw): added button_top_y and
808         button_bottom_y to have correct values for clicking on the inset.
809
810         * src/support/lyxalgo.h: commented out 'using std::less'
811
812 2000-03-08  Juergen Vigna  <jug@sad.it>
813
814         * src/insets/insetcollapsable.C (InsetButtonRelease): Now a
815         Button-Release event closes as it is alos the Release-Event
816         which opens it.
817
818         * src/lyxfunc.C (Dispatch): forgot a break in the LFUN_INSET_ERT
819
820 2000-03-07  Kayvan A. Sylvan  <kayvan@camel.internal.sylvan.com>
821
822         * lib/layouts/literate-scrap.inc: Fixed initial comment. Now we
823         can add multiple spaces in Scrap (literate programming) styles...
824         which, by the way, is how I got hooked on LyX to begin with.
825  
826         * src/mathed/formula.C (Write): Added dummy variable to an
827         inset::Latex() call.
828         (Latex): Add free_spacing boolean to inset::Latex()
829
830         * src/mathed/formula.h (Latex): Added free_spacing boolean arg.
831         
832         * src/insets/lyxinset.h: Changed definition of the inset::Latex()
833         virtual function to include the free_spacing boolean from
834         the containing paragraph's style.
835  
836         * src/insets/inseturl.C, src/insets/inseturl.h (Latex):
837         Added free_spacing boolean arg to match inset.h
838         
839         * src/insets/insettext.C, src/insets/insettext.h (Latex):
840         Added free_spacing boolean arg to match inset.h
841         
842         * src/insets/insetspecialchar.C, src/insets/insetspecialchar.h (Latex):
843         Added free_spacing boolean and made sure that if in a free_spacing
844         paragraph, that we output normal space if there is a protected space.
845         
846         * src/insets/insetref.C, src/insets/insetref.h (Latex):
847         Added free_spacing boolean arg to match inset.h
848         
849         * src/insets/insetquotes.C, src/insets/insetquotes.h (Latex):
850         Added free_spacing boolean arg to match inset.h
851         
852         * src/insets/insetparent.C, src/insets/insetparent.h (Latex):
853         Added free_spacing boolean arg to match inset.h
854         
855         * src/insets/insetlatexaccent.C, src/insets/insetlatexaccent.h (Latex):
856         Added free_spacing boolean arg to match inset.h
857         
858         * src/insets/insetlatex.C, src/insets/insetlatex.h (Latex):
859         Added free_spacing boolean arg to match inset.h
860         
861         * src/insets/insetlabel.C, src/insets/insetlabel.h (Latex): Added
862         free_spacing boolean arg to match inset.h 
863         
864         * src/insets/insetinfo.C, src/insets/insetinfo.h (Latex):
865         Added free_spacing boolean arg to match inset.h
866         
867         * src/insets/insetinclude.C, src/insets/insetinclude.h (Latex):
868         Added free_spacing boolean arg to match inset.h
869         
870         * src/insets/insetgraphics.C, src/insets/insetgraphics.h (Latex):
871         Added free_spacing boolean arg to match inset.h
872         
873         * src/insets/inseterror.C, src/insets/inseterror.h (Latex):
874         Added free_spacing boolean arg to match inset.h
875         
876         * src/insets/insetcommand.C, src/insets/insetcommand.h (Latex):
877         Added free_spacing boolean arg to match inset.h
878         
879         * src/insets/insetbib.C, src/insets/insetbib.h (Latex): Added
880         free_spacing boolean arg to match inset.h
881         
882         * src/insets/figinset.C, src/insets/figinset.h (Latex): Added
883         free_spacing boolean arg to match inset.h
884         
885         * src/text2.C (DeleteEmptyParagraphMechanism): Fix this to
886         ignore free_spacing paragraphs. The user's spaces are left
887         alone. 
888         
889         * src/text.C (InsertChar): Fixed the free_spacing layout
890         attribute behavior. Now, if free_spacing is set, you can
891         add multiple spaces in a paragraph with impunity (and they
892         get output verbatim).
893         (SelectSelectedWord): Added dummy argument to inset::Latex()
894         call.
895         
896         * src/paragraph.C (TeXOnePar): Added dummy args to inset::Latex(...)
897         calls.
898         
899         * src/lyxfunc.C (Dispatch): Hard-spaces input in free_spacing
900         paragraph layouts now only input a simple space instead.
901         Special character insets don't make any sense in free-spacing
902         paragraphs.
903         
904         * src/buffer.C (parseSingleLyXformat2Token): Code to convert
905         hard-spaces in the *input* file to simple spaces if the layout
906         is free-spacing. This converts old files which had to have
907         hard-spaces in free-spacing layouts where a simple space was
908         preferrable.
909         (writeFileAscii): Added free_spacing check to pass to the newly
910         reworked inset::Latex(...) methods. The inset::Latex() code
911         ensures that hard-spaces in free-spacing paragraphs get output
912         as spaces (rather than "~").
913         
914 2000-03-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
915         
916         * src/mathed/math_delim.C (draw): draw the empty placeholder
917         delims with a onoffdash line.
918         (struct math_deco_compare): struct that holds the "functors" used
919         for the sort and the binary search in math_deco_table.
920         (class init_deco_table): class used for initial sort of the
921         math_deco_table. 
922         (search_deco): use lower_bound to do a binary search in the
923         math_deco_table.
924
925 2000-03-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
926
927         * src/lyxrc.C: a small secret thingie...
928
929         * src/lyxlex.C (printTable): changed to take a ostream as paramter
930         and to not flush the stream as often as it used to.
931
932         * src/support/lyxalgo.h: new file 
933         (sorted): template function used for checking if a sequence is
934         sorted or not. Two versions with and without user supplied
935         compare. Uses same compare as std::sort.
936
937         * src/lyxlex.C (LyXLex): check if the table is sorted, if not sort
938         it and give warning on lyxerr.
939         (pushTable): ditto
940         (struct compare_tags): struct with function operators used for
941         checking if sorted, sorting and lower_bound.
942         (search_kw): use lower_bound instead of manually implemented
943         binary search.
944
945 2000-03-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
946
947         * src/insets/insetcollapsable.h: fix Clone() declaration.
948         * src/insets/insetfoot.h: ditto.
949
950         * src/insets/lyxinset.h: remove an extra comma at the end of enum.
951
952 2000-03-08  Juergen Vigna  <jug@sad.it>
953
954         * src/insets/lyxinset.h: added owner call which tells us if
955         this inset is inside another inset. Changed also the return-type
956         of Editable to an enum so it tells clearer what the return-value is.
957
958         * src/insets/insettext.C (computeTextRows): fixed computing of
959         textinsets which split automatically on more rows.
960
961         * src/insets/insetert.[Ch]: changed this to be of BaseType
962         InsetCollapsable.
963
964         * src/insets/insetfoot.[Ch]: added footnote inset
965
966         * src/insets/insetcollapsable.[Ch]: added this BaseClass for
967         collapsable insets (like footnote, ert, ...)
968
969 2000-03-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
970
971         * src/lyxdraw.h: remvoe file
972
973         * src/lyxdraw.C: remove file
974
975         * src/insets/insettext.C: added <algorithm>.
976
977 2000-03-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
978
979         * src/mathed/math_panel.C (delim_cb): case MM_OK use string stream
980         (matrix_cb): case MM_OK use string stream
981
982         * src/mathed/formula.C (LocalDispatch): case LFUN_SETXY use string
983         stream.
984
985         * src/mathed/math_macro.C (draw): use string stream
986         (Metrics): use string stream
987
988         * src/paragraph.C (TeXFootnote): for case LyXParagraph::FIG, write
989         directly to the ostream.
990
991         * src/vspace.C (asString): use string stream.
992         (asString): use string stream
993         (asLatexString): use string stream
994
995         * src/lyx_cb.C (UpdateLayoutDocument): use string stream for
996         setting Spacing::Other.
997
998         * src/LaTeXFeatures.C (getPackages): use string stream instead of
999         sprintf when creating the stretch vale.
1000
1001         * src/text2.C (alphaCounter): changed to return a string and to
1002         not use a static variable internally. Also fixed a one-off bug.
1003         (SetCounter): changed the drawing of the labels to use string
1004         streams instead of sprintf.
1005
1006         * src/support/lyxmanip.h: rewrite the newlineanDepth ostream
1007         manipulator to use a scheme that does not require library support.
1008         This is also the way it is done in the new GNU libstdc++. Should
1009         work with DEC cxx now. 
1010
1011 2000-03-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
1012
1013         * src/mathed/math_inset.h (Write(ostream & os): add a space at the
1014         end. This fixes a bug. 
1015
1016         * src/mathed (all files concerned with file writing): apply the
1017         USE_OSTREAM_ONLY changes to mathed too.
1018         
1019         * src/support/DebugStream.h: make the constructor explicit.
1020
1021         * src/lyxfont.C (latexWriteStartChanges): small bug related to
1022         count and ostream squashed.
1023
1024 2000-03-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1025
1026         * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
1027
1028         * src/buffer.C (makeLaTeXFile): add a .c_str(), since
1029         ostringstream uses STL strings, and we might not.
1030
1031         * src/insets/insetspecialchar.C: add using directive.
1032         * src/insets/insettext.C: ditto.
1033
1034 2000-03-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
1035
1036         * lib/layouts/seminar.layout: feeble attempt at a layout for
1037         seminar.cls, far from completet and could really use some looking
1038         at from people used to write layout files.
1039
1040         * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to
1041         use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is
1042         a lot nicer and works nicely with ostreams.
1043
1044         * src/mathed/formula.C (draw): a slightly different solution that
1045         the one posted to the list, but I think this one works too. (font
1046         size wrong in headers.)
1047
1048         * src/insets/insettext.C (computeTextRows): some fiddling on
1049         Jürgens turf, added some comments that he should read.
1050
1051         * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never
1052         used and it gave compiler warnings.
1053         RC_SHOW_BANNER + "\\show_banner" added, also to reading and
1054         writing of lyxrc.
1055
1056         * src/lyx_gui.C (create_forms): do the right thing when
1057         show_banner is true/false.
1058
1059         * src/lyx_cb.C (TimerCB): no need to close or do anything if
1060         show_banner is false.
1061
1062         * most file writing files: Now use iostreams to do almost all of
1063         the writing. Also instead of passing string &, we now use
1064         stringstreams. mathed output is still not adapted to iostreams.
1065         This change can be turned off by commenting out all the occurences
1066         of the "#define USE_OSTREAM_ONLY 1" lines.
1067         
1068         * src/WorkArea.C (createPixmap): don't output debug messages.
1069         (WorkArea): don't output debug messages.
1070
1071         * lib/lyxrc.example: added a comment about the new variable
1072         \show_banner 
1073
1074         * development/Code_rules/Rules: Added some more commente about how
1075         to build class interfaces and on how better encapsulation can be
1076         achieved. 
1077
1078 2000-03-03  Juergen Vigna  <jug@sad.it>
1079
1080         * src/insets/insetert.C (InsetERT): Now ERT-insets break row
1081         automatically with the width of the LyX-Window
1082
1083         * src/insets/insettext.C (computeTextRows): fixed update bug in
1084         displaying text-insets (scrollvalues where not initialized!)
1085
1086 2000-03-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
1087
1088         * src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
1089         id in the check of the result from lower_bound is not enough since
1090         lower_bound can return last too, and then res->id will not be a
1091         valid construct.
1092
1093         *  all insets and some code that use them: I have conditionalized
1094         removed the Latex(string & out, ...) this means that only the
1095         Latex(ostream &, ...) will be used. This is a work in progress to
1096         move towards using streams for all output of files. 
1097
1098         * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type
1099         c to 0.
1100
1101 2000-03-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1102
1103         * src/mathed/math_utils.C (MathedLookupBOP): fix the search
1104         routine (this fixes bug where greek letters were surrounded by too
1105         much white space).
1106
1107         * src/support/filetools.C (findtexfile): change a bit the search
1108         algorithm, to fix bug introduced in 1.1.4. Note that --format is
1109         no longer passed to kpsewhich, we may have to change that later.
1110
1111         * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
1112         warning options to avoid problems with X header files (from Angus
1113         Leeming).
1114         * acinclude.m4: regenerated.
1115
1116 2000-03-02  Juergen Vigna  <jug@sad.it>
1117
1118         * src/insets/insettext.C (WriteParagraphData): Using the
1119         par->writeFile() function for writing paragraph-data.
1120         (Read): Using buffer->parseSingleLyXformat2Token()-function
1121         for parsing paragraph data!
1122
1123         * src/buffer.C (readLyXformat2): removed all parse data and using
1124         the new parseSingleLyXformat2Token()-function.
1125         (parseSingleLyXformat2Token): added this function to parse (read)
1126         lyx-file-format (this is called also from text-insets now!)
1127
1128 2000-03-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1129
1130         * src/paragraph.C (BeginningOfMainBody): initialize previous_char
1131         and temp.
1132
1133         * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog
1134         directly instead of going through a func. One very bad thing: a
1135         static LyXFindReplace, but I don't know where to place it. 
1136
1137         * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a
1138         string instead of char[]. Also changed to static.
1139         (GetSelectionOrWordAtCursor): changed to static inline
1140         (SetSelectionOverLenChars): ditto.
1141
1142         * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of
1143         current_view and global variables. both classes has changed names
1144         and LyXFindReplace is not inherited from SearchForm.
1145         
1146         * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the
1147         fl_form_search form.
1148
1149         * src/lyx_gui.C (create_forms): removed the fl_form_search form.
1150
1151 2000-03-01  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1152
1153         * lib/bind/*.bind: make sure 'buffer-previous' function is not
1154         bound (from Kayvan).
1155
1156         * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
1157
1158         * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
1159
1160 2000-03-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1161
1162         * some things that I should comment but the local pub says head to
1163         swirly... 
1164         
1165         * comment out all code that belongs to the Roff code for Ascii
1166         export of tables. (this is unused)
1167         
1168         * src/LyXView.C: use correct type for global variable
1169         current_layout. (LyXTextClass::size_type)
1170
1171         * some code to get the new insetgraphics closer to working I'd be
1172         grateful for any help.
1173         
1174         * src/BufferView2.C (insertInset): use the return type of
1175         NumberOfLayout properly. (also changes in other files)
1176
1177         * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
1178         this as a test. I want to know what breaks because of this.
1179
1180         * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
1181
1182 2000-02-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1183
1184         * lib/layouts/stdlists.inc: changed the lyxlist latex definition
1185         to use a \makebox in the label, this allows proper justification
1186         with out using protected spaces or multiple hfills. Now it is
1187         "label" for left justified, "\hfill label\hfill" for center, and
1188         "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
1189         should be changed accordingly. 
1190
1191 2000-02-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1192
1193         * src/lyxtext.h: change SetLayout() to take a
1194         LyXTextClass::size_type instead of a char (when there is more than
1195         127 layouts in a class); also change type of copylayouttype.
1196         * src/text2.C (SetLayout): ditto.
1197         * src/LyXView.C (updateLayoutChoice): ditto.
1198
1199         * src/LaTeX.C (scanLogFile): errors where the line number was not
1200         given just after the '!'-line were ignored (from Dekel Tsur).
1201
1202         * lib/lyxrc.example: fix description of \date_insert_format
1203
1204         * lib/layouts/llncs.layout: new layout, contributed by Martin
1205         Vermeer. 
1206
1207 2000-02-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
1208
1209         * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
1210         2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
1211         cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
1212         insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
1213         BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
1214         paragraph.C, text.C, text2.C)
1215
1216 2000-02-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1217
1218         * src/insets/insettext.C (LocalDispatch): remove extra break
1219         statement. 
1220
1221         * src/insets/insetert.[Ch] (Clone): change return value to Inset*
1222         * src/insets/insettext.[Ch] (Clone): change return value to Inset*
1223
1224         * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
1225         * src/insets/insettext.[Ch] (GetCursorPos): ditto
1226
1227         * src/insets/insetbib.h: move InsetBibkey::Holder and
1228         InsetCitation::Holder in public space.
1229
1230 2000-02-25  Lars Gullik Bjønnes <larsbj@lyx.org>
1231
1232         * src/insets/insettext.h: small change to get the new files from
1233         Juergen to compile (use "string", not "class string").
1234
1235         * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
1236         const & as parameter to LocalDispatch, use LyXFont const & as
1237         paramter to some other func. This also had impacto on lyxinsets.h
1238         and the two mathed insets.
1239
1240 2000-02-24  Juergen Vigna  <jug@sad.it>
1241
1242         * src/buffer.C:
1243         * src/commandtags.h: 
1244         * src/LyXAction.C:
1245         * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
1246
1247         * src/BufferView.h
1248         * src/BufferView.C
1249         * src/BufferView2.C: added/updated code for various inset-functions
1250
1251         * src/insets/insetert.[Ch]: added implementation of InsetERT
1252
1253         * src/insets/insettext.[Ch]: added implementation of InsetText
1254
1255         * src/insets/inset.C (Edit): added "unsigned int button" parameter
1256         (draw): added preliminary code for inset scrolling not finshed yet
1257
1258         * src/insets/inset.C (LocalDispatch): changed arg parameter to string
1259         as it is in lyxfunc.C now
1260
1261         * src/insets/lyxinset.h: Added functions for text-insets
1262
1263 2000-02-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1264
1265         * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
1266         BufferView and reimplement the list as a queue put inside its own
1267         class.
1268
1269         * src/bufferlist.[Ch] (updateInset): remove func, not needed.
1270
1271         * several files: use the new interface to the "updateinsetlist"
1272         
1273         * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
1274         on doubleclick.
1275         (work_area_handler): call BufferView::trippleClick on trippleclick.
1276
1277         * src/BufferView.C (doubleClick): new function, selects word on
1278         doubleclick. 
1279         (trippleClick): new function, selects line on trippleclick.
1280
1281 2000-02-22  Allan Rae  <rae@lyx.org>
1282
1283         * lib/bind/xemacs.bind: buffer-previous not supported
1284
1285 2000-02-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1286
1287         * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
1288         as const.
1289
1290 2000-02-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
1291
1292         * src/bufferlist.C: get rid of current_view from this file
1293
1294         * src/spellchecker.C: get rid of current_view from this file
1295
1296         * src/vspace.C: get rid of current_view from this file
1297         (inPixels): added BufferView parameter for this func
1298         (asLatexCommand): added a BufferParams for this func
1299
1300         * src/text.C src/text2.C: get rid of current_view from these
1301         files.
1302         
1303         * src/lyxfont.C (getFontDirection): move this function here from
1304         text.C
1305         
1306         * src/bufferparams.C (getDocumentDirection): move this function
1307         here from text.C
1308
1309         * src/paragraph.C (getParDirection): move this function here from
1310         text.C 
1311         (getLetterDirection): ditto
1312         
1313 2000-02-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
1314
1315         * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
1316         resize due to wrong pixmap beeing used. Also took the opurtunity
1317         to make the LyXScreen stateless on regard to WorkArea and some
1318         general cleanup in the same files.
1319         
1320 2000-02-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
1321
1322         * src/Makefile.am: add missing direction.h
1323
1324         * src/PainterBase.h: made the width functions const.
1325         
1326         * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
1327         missing ones.
1328         
1329         * src/insets/insetcommand.C (draw): draw Editable as buttons.
1330
1331         * src/insets/insetlatexaccent.C (draw): make the accents draw
1332         better, at present this will only work well with iso8859-1.
1333         
1334         * several files: remove the old drawing code, now we use the new
1335         painter only.
1336
1337         * several files: remove support for mono_video, reverse_video and
1338         fast selection.
1339
1340 2000-02-17  Juergen Vigna  <jug@sad.it>
1341
1342         * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
1343         int ** as we have to return the pointer, otherwise we have only
1344         NULL pointers in the returning function.
1345
1346 2000-02-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1347
1348         * src/LaTeX.C (operator()): quote file name when running latex.
1349
1350 2000-02-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
1351
1352         * src/toolbar.C (set): use fl_set_object_helper for the tooltop
1353         (bubble tip), this removes our special handling of this.
1354
1355         * Remove all code that is unused now that we have the new
1356         workarea. (Code that are not active when NEW_WA is defined.)
1357
1358         * Make the uses of XSync not conditionalized on define USE_XSYNC.
1359         
1360 2000-02-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1361
1362         * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
1363         nonexisting layout; correctly redirect obsoleted layouts.
1364
1365         * lib/lyxrc.example: document \view_dvi_paper_option
1366
1367         * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
1368         variable. 
1369
1370         * src/lyx_cb.C (RunScript): handle $$FName for command names. 
1371         (PreviewDVI): handle the view_dvi_paper_option variable.
1372         [Both from Roland Krause]
1373
1374 2000-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
1375
1376         * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
1377         char const *, int, LyXFont)
1378         (text(int, int, string, LyXFont)): ditto 
1379
1380         * src/text.C (InsertCharInTable): attempt to fix the double-space
1381         feature in tables too.
1382         (BackspaceInTable): ditto.
1383         (GetVisibleRow): make bottom pagebreak line be a onoff line.
1384
1385 2000-02-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
1386
1387         * src/text2.C (owner): only complain if owner_ is set and bv != 0
1388
1389         * src/BufferView.C (resizeCurrentBuffer): set the owner of the
1390         newly found text in textcache to this.
1391         (buffer): set the owner of the text put into the textcache to 0
1392
1393         * src/insets/figinset.C (draw): fixed the drawing of figures with
1394         the new Painter.
1395
1396         * src/text.C src/mathed/math_cursor.C: nailed and fixed the
1397         drawing of mathframe, hfills, protected space, table lines. I have
1398         now no outstanding drawing problems with the new Painter code. 
1399
1400 2000-02-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1401
1402         * src/PainterBase.C (ellipse, circle): do not specify the default
1403         arguments. 
1404
1405         * src/LColor.h: add using directive.
1406
1407         * src/Painter.[Ch]: change return type of methods from Painter& to
1408         PainterBase&. Add a using directive.
1409
1410         * src/WorkArea.C: wrap xforms callbacks in C functions
1411         C_WorkArea_xxx. 
1412
1413         * lib/layouts/foils.layout: font fix and simplifications from Carl
1414         Ollivier-Gooch.
1415
1416 2000-02-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
1417
1418         * a lot of files: The Painter, LColor and WorkArea from the old
1419         devel branch has been ported to lyx-devel. Some new files and a
1420         lot of #ifdeffed code. The new workarea is enabled by default, but
1421         if you want to test the new Painter and LColor you have to compile
1422         with USE_PAINTER defined (do this in config.h f.ex.) There are
1423         still some rought edges, and I'd like some help to clear those
1424         out. It looks stable (loads and displays the Userguide very well).
1425         
1426
1427 2000-02-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1428
1429         * src/buffer.C (pop_tag): revert to the previous implementation
1430         (use a global variable for both loops).
1431
1432         * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
1433
1434         * src/lyxrc.C (LyXRC): change slightly default date format.
1435
1436         * src/paragraph.C (TeXOnePar): Generate a correct latex file when
1437         there is an English text with a footnote that starts with a Hebrew
1438         paragraph, or vice versa.
1439         (TeXFootnote): ditto.
1440
1441         * src/text.C (LeftMargin): allow for negative values for
1442         parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
1443         this out.
1444
1445         * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
1446         for input encoding (cyrillic)
1447
1448 2000-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1449
1450         * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
1451         Tsur). 
1452
1453         * src/toolbar.C (set): ditto
1454         * src/insets/insetbib.C (create_form_citation_form): ditto
1455
1456         * lib/CREDITS: added Dekel Tsur.
1457
1458         * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
1459         lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
1460         hebrew supports files from Dekel Tsur.
1461         
1462         * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
1463         <tzafrir@technion.ac.il> 
1464
1465         * src/lyxrc.C: put \date_insert_format at the right place.
1466
1467         * src/buffer.C (makeLaTeXFile): fix the handling of
1468         BufferParams::sides when writing out latex files.
1469
1470         * src/BufferView2.C: add a "using" directive.
1471
1472         * src/support/lyxsum.C (sum): when we use lyxstring,
1473         ostringstream::str needs an additional .c_str().
1474
1475 2000-02-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
1476
1477         * src/support/filetools.C (ChangeExtension): patch from Etienne
1478         applied.
1479
1480         * src/TextCache.C (show): remove const_cast and make second
1481         parameter non-const LyXText *.
1482
1483         * src/TextCache.h: use non const LyXText in show.
1484
1485         * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
1486         with hebrew.
1487
1488 2000-02-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
1489
1490         * src/support/lyxsum.C: rework to be more flexible.
1491         
1492         * several places: don't check if a pointer is 0 if you are going
1493         to delete it.
1494
1495         * src/text.C: remove some dead code.
1496
1497         * src/insets/figinset.C: remove some dead code
1498         
1499         * src/buffer.C: move the BufferView funcs to BufferView2.C
1500         remove all support for insetlatexdel
1501         remove support for oldpapersize stuff
1502         made some member funcs const
1503
1504         * src/kbmap.C: use a std::list to store the bindings in.
1505         
1506         * src/BufferView2.C: new file
1507
1508         * src/kbsequence.[Ch]: new files
1509         
1510         * src/LyXAction.C + others: remove all trace of buffer-previous
1511         
1512         * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
1513         only have one copy in the binary of this table.
1514         
1515         * hebrew patch: moved some functions from LyXText to more
1516         appropriate places. (LyXParagraph, BufferParams, LyXFont)
1517         
1518         * several files: remove support for XForms older than 0.88
1519         whitespace changes.
1520         remove some #if 0 #endif code
1521         
1522         * src/TextCache.[Ch]: new file. Holds the textcache.
1523
1524         * src/BufferView.C: changes to use the new TextCache interface.
1525         (waitForX): remove the now unused code.
1526         
1527         * src/BackStack.h: remove some commented code
1528
1529         * lib/bind/emacs.bind: remove binding for buffer-previous
1530
1531 2000-02-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
1532
1533         * applied the hebrew patch.
1534
1535         * src/lyxrow.h: make sure that all Row variables are initialized.
1536
1537         * src/text2.C (TextHandleUndo): comment out a delete, this might
1538         introduce a memory leak, but should also help us to not try to
1539         read freed memory. We need to look at this one.
1540
1541         * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
1542         (LyXParagraph): initalize footnotekind.
1543
1544         * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
1545         forgot this when applying the patch. Please heed the warnings.
1546
1547         * src/BufferView.C (buffer): a fix for the buffer-reload problem
1548         (aka. reformat problem)
1549
1550         * src/bufferlist.C (exists): made const, and use const_iterator
1551         (isLoaded): new func.
1552         (release): use std::find to find the correct buffer.
1553
1554         * src/bufferlist.h: made getState a const func.
1555         made empty a const func.
1556         made exists a const func.
1557         new func: isLoaded
1558
1559 2000-02-01  Juergen Vigna  <jug@sad.it>
1560
1561         * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
1562
1563         * po/it.po: updated a bit the italian po file and also changed the
1564         'file nuovo' for newfile to 'filenuovo' without a space, this did
1565         annoy me a lot :)
1566         
1567         * src/lyxrc.C (LyXRC): added support for a default insert_date_format
1568         for the new insert_date command.
1569
1570         * src/lyxfunc.C (Dispatch): added support for a insert_date function
1571         from jdblair, to insert a date into the current text conforming to
1572         a strftime format (for now only considering the locale-set and not
1573         the document-language).
1574
1575 2000-01-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1576
1577         * src/lyxfont.C (textWidth): hopefully better fix for the Array
1578         Bounds Read error seen by purify. The problem was that islower is
1579         a macros which takes an unsigned char and uses it as an index for
1580         in array of characters properties (and is thus subject to the
1581         above error).
1582         (drawText): ditto.
1583
1584         * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
1585         correctly the paper sides radio buttons.
1586         (UpdateDocumentButtons): ditto.
1587
1588 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1589
1590         * src/kbmap.C (getsym + others): change to return unsigned int,
1591         returning a long can give problems on 64 bit systems. (I assume
1592         that int is 32bit on 64bit systems)
1593
1594 2000-01-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1595
1596         * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
1597         LyXLookupString to be zero-terminated. Really fixes problems seen
1598         by purify, I think.
1599
1600 2000-01-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1601
1602         * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
1603         write a (char*)0 to the lyxerr stream.
1604
1605         * src/lastfiles.C: move algorithm before the using statemets.
1606
1607 2000-01-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1608
1609         * src/lastfiles.C: move using directives in global scope (egcs 1.x
1610         complains otherwise).
1611         * src/table.C: ditto
1612
1613         * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
1614         directory. 
1615
1616         * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
1617         that I removed earlier... It is really needed.
1618
1619         * lib/examples/multicol.lyx: new file, splitted from Extended.lyx. 
1620
1621 2000-01-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1622
1623         * INSTALL: update xforms home page URL.
1624
1625         * lib/configure.m4: fix a bug with unreadable layout files.
1626
1627         * src/table.C (calculate_width_of_column): add "using std::max"
1628         directive. 
1629
1630 2000-01-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
1631
1632         * several files: marked several lines with "DEL LINE", this is
1633         lines that can be deleted without changing anything.
1634         if (<ptr>) // DEL LINE  /* this line is _never_ needed. Delete
1635                                    checks this anyway */
1636                 delete <ptr>
1637
1638         * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
1639
1640         * src/DepTable.C (update): add a "+" at the end when the checksum
1641         is different. (debugging string only)
1642
1643         * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
1644         the next inset to not be displayed. This should also fix the list
1645         of labels in the "Insert Crossreference" dialog.
1646
1647 2000-01-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
1648
1649         * src/support/LSubstring.C (LSubstring): set pos to string::npos
1650         when regex was not found.
1651
1652         * src/support/lstrings.C (lowercase): use handcoded transform always.
1653         (uppercase): ditto
1654
1655         * src/text.C (Delete): fixed the crash. cursor.par->prev and
1656         old_cursor.par->prev could be 0.
1657
1658         * several files: changed post inc/dec to pre inc/dec
1659         
1660         * src/lastfiles.C (writeFile): use ostream_iterator and copy to
1661         write the lastfiles to file.
1662
1663         * src/BufferView.C (buffer): only show TextCache info when debugging
1664         (buffer): ditto
1665         (resizeCurrentBuffer): ditto
1666         (workAreaExpose): ditto
1667
1668         * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
1669
1670         * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
1671
1672         * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
1673         a bit better by removing the special case for \i and \j.
1674
1675 2000-01-24  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1676
1677         * src/lyx_main.C (easyParse): remove test for bad comand line
1678         options, since this broke all xforms-related parsing.
1679
1680         * src/kbmap.C (getsym): set return type to unsigned long, as
1681         declared in header. On an alpha, long is _not_ the same as int.
1682
1683         * src/support/LOstream.h: add a "using std::flush;"
1684
1685         * src/insets/figinset.C: ditto.
1686
1687 2000-01-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
1688
1689         * src/bufferlist.C (write): use blinding fast file copy instead of
1690         "a char at a time", now we are doing it the C++ way.
1691
1692         * src/insets/figinset.C: get rid of struct pidwaitpit, use a
1693         std::list<int> instead.
1694         (addpidwait): reflect move to std::list<int>
1695         (sigchldchecker): ditto
1696
1697         * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
1698         version also. 
1699
1700         * src/paragraph.C (FirstPhysicalPar): remove assert and comment
1701         that obviously was wrong...
1702
1703         * src/lyxfont.C (textWidth): have c as char c[2] instead of char
1704         c, this avoids warnings with purify and islower.
1705
1706         * src/insets/figinset.C: rename struct queue to struct
1707         queue_element and rewrite to use a std::queue. gsqueue is now a
1708         std::queue<queue_element>
1709         (runqueue): reflect move to std::queue
1710         (addwait): ditto
1711
1712         * src/support/lstrings.h (tostr): specialize for bool, otherwise
1713         we would get "1" "0" instead of "true" "false. Also make the tostr
1714         functions inline.
1715
1716 2000-01-21  Juergen Vigna  <jug@sad.it>
1717
1718         * src/buffer.C (writeFileAscii): Disabled code for special groff
1719         handling of tabulars till I fix this in table.C
1720
1721 2000-01-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1722
1723         * src/support/mkdir.C (mkdir): change second argument of mkdir to
1724         unsigned long int.
1725         * src/support/lyxlib.h: ditto.
1726
1727 2000-01-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
1728
1729         * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
1730         and 'j' look better. This might fix the "macron" bug that has been
1731         observed.
1732
1733         * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
1734         functions as one template function. Delete the old versions.
1735
1736         * src/support/lyxsum.C: move using std::ifstream inside
1737         MODERN_STL_STREAMS
1738
1739         * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
1740         and putenv.C
1741
1742         * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
1743
1744         * src/mathed/formula.C: delete #include "bufferlist.h" never used
1745
1746         * src/insets/figinset.C (InitFigures): use new instead of malloc
1747         to allocate memory for figures and bitmaps.
1748         (DoneFigures): use delete[] instead of free to deallocate memory
1749         for figures and bitmaps.
1750         (runqueue): use new to allocate 
1751         (getfigdata): use new/delete[] instead of malloc/free
1752         (RegisterFigure): ditto
1753
1754         * some files: moved some declarations closer to first use, small
1755         whitespace changes use preincrement instead of postincrement where
1756         it does not make a difference.
1757         
1758         * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
1759         step on the way to use stl::containers for key maps. 
1760
1761         * src/bufferlist.h: add a typedef for const_iterator and const
1762         versions of begin and end.
1763
1764         * src/bufferlist.[Ch]: change name of member variable _state to
1765         state_. (avoid reserved names)
1766         (makePup): removed
1767         (getFileNames): returns the filenames of the buffers in a vector.
1768
1769         * configure.in (ALL_LINGUAS): added ro
1770
1771         * src/support/putenv.C: new file
1772
1773         * src/support/mkdir.C: new file
1774
1775 2000-01-20  Allan Rae <rae@lyx.org>
1776
1777         * lib/layouts/IEEEtran.layout: Added several theorem environments
1778
1779         * lib/templates/IEEEtran.lyx: Example theorem environments and a
1780         couple of minor additions.
1781
1782         * lib/doc/LaTeXConfig.lyx.in:  Use URL insets for ftp sites 
1783         (except for those in footnotes of course)
1784
1785 2000-01-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
1786
1787         * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction. 
1788
1789         * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
1790         std::sort and std::lower_bound instead of qsort and handwritten
1791         binarysearch.
1792         (struct compara): struct that holds the functors used by std::sort
1793         and std::lower_bound in MathedLookupBOP.
1794
1795 2000-01-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1796
1797         * src/support/LAssert.h: do not do partial specialization. We do
1798         not really need it.
1799
1800         * src/support/lyxlib.h: note that lyx::getUserName() and
1801         lyx::date() are not in use right now. Should these be suppressed?
1802
1803         * src/buffer.C (makeLaTeXFile): we do not need the user name here.
1804         (makeLinuxDocFile): do not put date and user name in linuxdoc
1805         headers. 
1806
1807         * src/support/lyxlib.h (kill): change first argument to long int,
1808         since that's what solaris uses.
1809
1810         * src/support/kill.C (kill): fix declaration to match prototype.
1811
1812         * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
1813         actually check whether namespaces are supported. This is not what
1814         it used to do.
1815
1816         * src/support/lyxsum.C: add a using directive.
1817
1818 2000-01-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
1819
1820         * src/support/kill.C: if we have namespace support we don't have
1821         to include lyxlib.h.
1822
1823         * src/support/lyxlib.h: use namespace lyx if supported.
1824
1825 2000-01-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
1826
1827         * src/support/date.C: new file
1828
1829         * src/support/chdir.C: new file
1830
1831         * src/support/getUserName.C: new file
1832
1833         * src/support/getcwd.C: new file
1834
1835         * src/support/abort.C: new file
1836
1837         * src/support/kill.C: new file
1838
1839         * src/support/lyxlib.h: moved all the functions in this file
1840         insede struct lyx. Added also kill and abort to this struct. This
1841         is a way to avoid the "kill is not defined in <csignal>", we make
1842         C++ wrappers for functions that are not ANSI C or ANSI C++.
1843
1844         * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
1845         instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
1846         lyx it has been renamed to sum.
1847
1848 2000-01-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1849
1850         * src/text.C: add using directives for std::min and std::max.
1851
1852 2000-01-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1853
1854         * src/texrow.C (getIdFromRow): actually return something useful in
1855         id and pos. Hopefully fixes the bug with positionning of errorbox
1856         insets. 
1857
1858         * src/lyx_main.C (easyParse): output an error and exit if an
1859         incorrect command line option has been given.
1860
1861         * src/spellchecker.C (ispell_check_word): document a memory leak.
1862
1863         * src/bufferlist.C (write): fix mismatched allocation/deletion,
1864         where a "struct utimbuf" is allocated with "new" and deleted with
1865         "delete[]". 
1866
1867 2000-01-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
1868
1869         * src/text2.C (CutSelection): don't delete double spaces.
1870         (PasteSelection): ditto
1871         (CopySelection): ditto
1872         
1873         * src/text.C (Backspace): don't delete double spaces.
1874
1875         * src/lyxlex.C (next): fix a bug that were only present with
1876         conformant std::istream::get to read comment lines, use
1877         std::istream::getline instead. This seems to fix the problem.
1878
1879 2000-01-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
1880
1881         * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
1882         allowed to insert space before space" editing problem. Please read
1883         commends at the beginning of the function. Comments about usage
1884         are very welcome.
1885
1886         * src/text.C (InsertChar): fix for the "not allowed to insert
1887         space before space" editing problem.
1888
1889         * src/text2.C (DeleteEmptyParagraphMechanism): when
1890         IsEmptyTableRow can only return false this last "else if" will
1891         always be a no-op. Commented out.
1892
1893         * src/text.C (RedoParagraph): As far as I can understand tmp
1894         cursor is not really needed.
1895
1896         * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
1897         present it could only return false anyway. 
1898         (several functions): Did something not so smart...added a const
1899         specifier on a lot of methods.
1900         
1901         * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
1902         and add a tmp->text.resize. The LyXParagraph constructor does the
1903         resize for us.
1904         (BreakParagraphConservative): ditto
1905
1906         * src/support/path.h (Path): add a define so that the wrong usage
1907         "Path("/tmp") will be flagged as a compilation error:
1908         "`unnamed_Path' undeclared (first use this function)"
1909
1910 2000-01-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1911
1912         * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
1913         which was bogus for several reasons.
1914
1915         * src/LaTeX.C (scanAux): fix the regular expression used to scan
1916         .aux files. 
1917         (runBibTeX): ditto.
1918
1919         * autogen.sh: do not use "type -path" (what's that anyway?).
1920
1921         * src/support/filetools.C (findtexfile): remove extraneous space
1922         which caused a kpsewhich warning (at least with kpathsea version
1923         3.0). 
1924
1925 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
1926
1927         * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
1928
1929         * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
1930
1931         * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
1932
1933 2000-01-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1934
1935         * src/paragraph.C (BreakParagraph): do not reserve space on text
1936         if we don't need to (otherwise, if pos_end < pos, we end up
1937         reserving huge amounts of memory due to bad unsigned karma).
1938         (BreakParagraphConservative): ditto, although I have not seen
1939         evidence the bug can happen here.
1940
1941         * src/lyxparagraph.h: add a using std::list.
1942
1943 2000-01-11  Juergen Vigna  <jug@sad.it>
1944
1945         * src/menus.C (MenuDocu): output an Alert if the documentation-file
1946         could not be found.
1947
1948 2000-01-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
1949
1950         * src/vc-backend.C (doVCCommand): change to be static and take one
1951         more parameter: the path to chdir too be fore executing the command.
1952         (retrive): new function equiv to "co -r"
1953
1954         * src/bufferlist.C (loadLyXFile): implement the missing parts if
1955         file_not_found_hook is true.
1956
1957         * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
1958
1959         * src/support/filetools.C (IsFileWriteable): use FileInfo to check
1960         if a file is readwrite,readonly...anything else.
1961
1962 2000-01-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
1963
1964         * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
1965         (CreatePostscript): name change from MenuRunDVIPS (or something)
1966         (PreviewPostscript): name change from MenuPreviewPS
1967         (PreviewDVI): name change from MenuPreviewDVI
1968
1969         * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
1970         \view_pdf_command., \pdf_to_ps_command
1971
1972         * lib/configure.m4: added search for PDF viewer, and search for
1973         PDF to PS converter. 
1974         (lyxrc.defaults output): add \pdflatex_command,
1975         \view_pdf_command and \pdf_to_ps_command.
1976
1977         * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
1978
1979         * src/bufferlist.C (write): we don't use blocksize for anything so
1980         I removed it.
1981
1982 2000-01-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1983
1984         * src/support/block.h: disable operator T* (), since it causes
1985         problems with both compilers I tried. See comments in the file.
1986
1987         * lib/reLyX/configure.in: do not define LYX_DIR. support flag
1988         --with-lyxname. 
1989
1990         * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
1991         variable LYX_DIR_10x to LYX_DIR_11x.
1992
1993         * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
1994
1995         * INSTALL: document --with-lyxname.
1996         * NEWS: ditto.
1997
1998         * configure.in: new configure flag --with-lyxname which allows to
1999         choose the name under which lyx is installed. Default is "lyx", of
2000         course. It used to be possible to do this with --program-suffix,
2001         but the later has in fact a different meaning for autoconf.
2002
2003         * src/support/lstrings.h (lstrchr): reformat a bit.
2004
2005         * src/lyxlex.h: include LIstream.h, for Sun CC this time.
2006         * src/mathed/math_defs.h: ditto.
2007
2008 2000-01-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
2009
2010         * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
2011         true, decides if we create a backup file or not when saving. New
2012         tag and variable \pdf_mode, defaults to false. New tag and
2013         variable \pdflatex_command, defaults to pdflatex. New tag and
2014         variable \view_pdf_command, defaults to xpdf. New tag and variable
2015         \pdf_to_ps_command, defaults to pdf2ps.
2016
2017 2000-01-08  Lars Gullik Bjønnes  <larsbj@lyx.org>
2018
2019         * src/bufferlist.C (close): don't call insetUnlock if the buffer
2020         does not have a BufferView.
2021         (unlockInset): ditto + don't access the_locking_inset if the
2022         buffer does not have a BufferView.
2023
2024         * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
2025         certain circumstances so that we don't continue a keyboard
2026         operation long after the key was released. Try f.ex. to load a
2027         large document, press PageDown for some seconds and then release
2028         it. Before this change the document would contine to scroll for
2029         some time, with this change it stops imidiatly.
2030
2031         * src/support/block.h: don't allocate more space than needed. As
2032         long as we don't try to write to the arr[x] in a array_type arr[x]
2033         it is perfectly ok. (if you write to it you might segfault).
2034         added operator value_type*() so that is possible to pass the array
2035         to functions expecting a C-pointer.
2036
2037         * lib/Makefile.am (dist-hook): don't fail completely if unable to
2038         cvs.
2039
2040         * intl/*: updated to gettext 0.10.35, tried to add our own
2041         required modifications. Please verify.
2042
2043         * po/*: updated to gettext 0.10.35, tried to add our own required
2044         modifications. Please verify.
2045         
2046         * src/support/lstrings.C (tostr): go at fixing the problem with
2047         cxx and stringstream. When stringstream is used return
2048         oss.str().c_str() so that problems with lyxstring and basic_string
2049         are avoided. Note that the best solution would be for cxx to use
2050         basic_string all the way, but it is not conformant yet. (it seems)
2051
2052         * src/lyx_cb.C + other files: moved several global functions to
2053         class BufferView, some have been moved to BufferView.[Ch] others
2054         are still located in lyx_cb.C. Code changes because of this. (part
2055         of "get rid of current_view project".)
2056
2057         * src/buffer.C + other files: moved several Buffer functions to
2058         class BufferView, the functions are still present in buffer.C.
2059         Code changes because of this.
2060
2061         * config/lcmessage.m4: updated to most recent. used when creating
2062         acinclude.m4.
2063
2064         * config/progtest.m4: updated to most recent. used when creating
2065         acinclude.m4.
2066         
2067         * config/gettext.m4: updated to most recent. applied patch for
2068         tmplinguas.
2069
2070         * config/gettext.m4.patch: new file that shows what changes we
2071         have done to the local copy of gettext.m4.
2072
2073         * config/libtool.m4: new file, used in creation of acinclude.m4
2074
2075         * config/lyxinclude.m4: new file, this is the lyx created m4
2076         macros, used in making acinclude.m4.
2077         
2078         * autogen.sh: GNU m4 discovered as a separate task not as part of
2079         the lib/configure creation. 
2080         Generate acinlucde from files in config. Actually cat
2081         lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
2082         easier to upgrade .m4 files that really are external.
2083
2084         * src/Spacing.h: moved using std::istringstream to right after
2085         <sstream>. This should fix the problem seen with some compilers.
2086
2087 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
2088
2089         * src/lyx_cb.C: began some work to remove the dependency a lot of
2090         functions have on BufferView::text, even if not really needed.
2091         (GetCurrentTextClass): removed this func, it only hid the
2092         current_view. 
2093
2094         * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
2095         forgot this in last commit.
2096
2097         * src/Bullet.C (bulletEntry): use static char const *[] for the
2098         tables, becuase of this the return arg had to change to string.
2099         (bulletSize): ditto
2100         (~Bullet): removed unneeded destructor
2101
2102         * src/BufferView.C (beforeChange): moved from lyx_cb.C
2103         (insetSleep): moved from Buffer
2104         (insetWakeup): moved from Buffer
2105         (insetUnlock): moved from Buffer
2106
2107         * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
2108         from Buffer to BufferView.
2109         
2110         * acinclude.m4: include libtool.m4 from libtool 1.3.4.
2111
2112         * config/ltmain.sh: updated to version 1.3.4 of libtool
2113
2114         * config/ltconfig: updated to version 1.3.4 of libtool
2115
2116 2000-01-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2117
2118
2119         * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
2120         Did I get that right?
2121
2122         * src/lyxlex.h: add a "using" directive or two.
2123         * src/Spacing.h: ditto.
2124         * src/insets/figinset.C: ditto.
2125         * src/support/filetools.C: ditto.
2126         * src/support/lstrings.C: ditto.
2127         * src/BufferView.C: ditto.
2128         * src/bufferlist.C: ditto.
2129         * src/lyx_cb.C: ditto.
2130         * src/lyxlex.C: ditto.
2131
2132         * NEWS: add some changes for 1.1.4.
2133         
2134 2000-01-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
2135
2136         * src/BufferView.C: first go at a TextCache to speed up switching
2137         between documents.
2138
2139 2000-01-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2140
2141         * lib/examples/ItemizeBullets.lyx: update from Tino Meinen. 
2142         * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
2143         * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
2144         * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
2145         Meinen.
2146         
2147         * src/mathed/math_defs.h (MathedRowSt): make sure that all
2148         members of the struct are correctly initialized to 0 (detected by
2149         purify) 
2150         * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
2151         * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
2152
2153         * src/insets/figinset.C (sigchldchecker): use "delete" to free a
2154         pidwait, since it was allocated with "new". This was potentially
2155         very bad. Thanks to Michael Schmitt for running purify for us.
2156
2157
2158 2000-01-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2159
2160         * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
2161
2162         * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
2163
2164 1999-12-30  Allan Rae  <rae@lyx.org>
2165
2166         * lib/templates/IEEEtran.lyx: minor change
2167
2168         * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
2169         src/mathed/formula.C (LocalDispatch): askForText changes
2170
2171         * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we 
2172         know when a user has cancelled input. Fixes annoying problems with
2173         inserting labels and version control.
2174
2175 1999-12-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
2176
2177         * src/support/lstrings.C (tostr): rewritten to use strstream and
2178         stringstream
2179
2180 1999-12-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
2181
2182         * src/support/filetools.C (IsFileWriteable): use fstream to check
2183         (IsDirWriteable): use fileinfo to check
2184
2185         * src/support/filetools.h (FilePtr): whole class deleted
2186
2187         * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
2188
2189         * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
2190
2191         * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
2192
2193         * src/bufferlist.C (write): use ifstream and ofstream instead of
2194         FILE*
2195
2196         * src/Spacing.h: use istrstream instead of sscanf
2197
2198         * src/mathed/math_defs.h: change first arg to istream from FILE*
2199
2200         * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
2201
2202         * src/mathed/math_parser.C: have yyis to be an istream 
2203         (LexGetArg): use istream (yyis)
2204         (yylex): ditto
2205         (mathed_parse): ditto
2206         (mathed_parser_file): first arg istream instead of FILE*, set yyis
2207
2208         * src/mathed/formula.C (Read): rewritten to use istream
2209
2210         * src/mathed/formulamacro.C (Read): rewritten to use istream
2211
2212         * src/lyxlex.h (~LyXLex): deleted desturctor 
2213         (getStream): new function, returns an istream
2214         (getFile): deleted funtion
2215         (IsOK): return is.good();
2216
2217         * src/lyxlex.C (LyXLex): delete file and owns_file
2218         (setFile): open an filebuf and assign that to a istream instead of
2219         using FILE*
2220         (setStream): new function, takes an istream as arg. 
2221         (setFile): deleted function
2222         (EatLine): rewritten us use istream instead of FILE*
2223         (next): ditto
2224         (nextToken): ditto
2225
2226         * src/table.C (LyXTable): use istream instead of FILE*
2227         (Read): rewritten to take an istream instead of FILE*
2228
2229 1999-12-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2230
2231         * src/buffer.C (Dispatch): remove an extraneous break statement.
2232
2233         * src/support/filetools.C (QuoteName): change to do simple
2234         'quoting'. More work is necessary. Also changed to do nothing
2235         under emx (needs fix too).
2236         (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
2237
2238         * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
2239         config.h.in to the AC_DEFINE_UNQUOTED() call.
2240         (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
2241         needs char * as argument (because Solaris 7 declares it like
2242         that). 
2243
2244         * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
2245         remove definition of BZERO.
2246
2247 1999-12-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2248
2249         * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
2250         defined, "lyxregex.h" if not.
2251
2252         * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
2253         pkglib_ to noinst_
2254         (REGEX): new variable that is set to regex.c lyxregex.h when
2255         AM_CONDITIONAL USE_REGEX is set.
2256         (libsupport_la_SOURCES): add $(REGEX)
2257
2258         * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
2259         pkglib_ to noinst_
2260
2261         * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
2262         pkglib_ to noinst_
2263
2264         * configure.in: add call to LYX_REGEX 
2265
2266         * acinclude.m4 (LYX_REGEX): checks if we need to use the included
2267         regex or not. Uses a a AM_CONDITIONAL to decide what to compile. 
2268
2269 1999-12-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2270
2271         * lib/bind/fi_menus.bind: new file, from
2272         pauli.virtanen@saunalahti.fi. 
2273
2274         * src/buffer.C (getBibkeyList): pass the parameter delim to
2275         InsetInclude::getKeys and InsetBibtex::getKeys.
2276
2277         * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
2278         is passed to Buffer::getBibkeyList
2279         
2280         * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
2281         instead of the hardcoded comma.
2282
2283         * src/insets/insetbib.C (getKeys): make sure that there are not
2284         leading blanks in bibtex keys. Normal latex does not care, but
2285         harvard.sty seems to dislike blanks at the beginning of citation
2286         keys. In particular, the retturn value of the function is
2287
2288         * INSTALL: make it clear that libstdc++ is needed and that gcc
2289         2.7.x probably does not work.
2290
2291         * src/support/filetools.C (findtexfile): make debug message go to
2292         the LATEX channel
2293         * src/insets/insetbib.C (getKeys): ditto
2294
2295         * src/debug.C (showTags): make sure that the output is correctly
2296         aligned. 
2297
2298         * configure.in: add a comment for TWO_COLOR_ICON define.
2299
2300         * acconfig.h: remove all the entries that already defined in
2301         configure.in or acinclude.m4.
2302
2303         * src/buffer.C (makeLaTeXFile): headers of latex file also changed
2304         to avoid user name, date and copyright.
2305
2306 1999-12-21  Juergen Vigna  <jug@sad.it>
2307
2308         * src/table.C (Read): Now read bogus row format informations
2309                 if the format is < 5 so that afterwards the table can
2310                 be read by lyx but without any format-info. Fixed the
2311                 crash we experienced when not doing this.
2312
2313 1999-12-21  Lars Gullik Bjønnes  <larsbj@lyx.org>
2314
2315         * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
2316         (RedoDrawingOfParagraph): ditto
2317         (RedoParagraphs): ditto
2318         (RemoveTableRow): ditto
2319
2320         * src/text.C (Fill): rename arg paperwidth -> paper_width
2321
2322         * src/buffer.C (insertLyXFile): rename var filename -> fname
2323         (writeFile): rename arg filename -> fname
2324         (writeFileAscii): ditto
2325         (makeLaTeXFile): ditto
2326         (makeLinuxDocFile): ditto
2327         (makeDocBookFile): ditto
2328
2329         * src/LaTeX.C (runMakeIndex): change arg name from file -> f
2330         (runBibTeX): ditto
2331
2332         * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
2333
2334         * src/bmtable.h: add extern "C" on this file when __cplusplus is
2335         defined.
2336
2337         * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
2338         compiled by a C compiler not C++. 
2339
2340         * src/layout.h (LyXTextClass): added typedef for const_iterator
2341         (LyXTextClassList): added typedef for const_iterator + member
2342         functions begin and end.
2343
2344         * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
2345         iterators to fill the choice_class.
2346         (updateLayoutChoice): rewritten to use iterators to fill the
2347         layoutlist in the toolbar.
2348
2349         * src/BufferView.h (BufferView::work_area_width): removed unused
2350         variable. 
2351
2352         * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
2353
2354         * src/buffer.C (sgmlOpenTag): drop the use of the static space array
2355         (sgmlCloseTag): ditto
2356
2357         * src/support/lstrings.h: return type of countChar changed to
2358         unsigned char.
2359
2360         * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
2361         what version of this func to use. Also made to return unsigned int.
2362
2363         * configure.in: call LYX_STD_COUNT 
2364
2365         * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
2366         conforming std::count. 
2367
2368 1999-12-20  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2369
2370         * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
2371         and a subscript would give bad display (patch from Dekel Tsur
2372         <dekel@math.tau.ac.il>). 
2373
2374         * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public. 
2375
2376         * src/spellchecker.C (create_ispell_pipe): use a const_cast to
2377         please sun CC.
2378
2379         * src/chset.h: add a few 'using' directives
2380
2381         * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
2382         triggered when no buffer is active
2383
2384         * src/layout.C: removed `break' after `return' in switch(), since
2385         it is unreachable.
2386
2387         * src/lyx_main.C (init): make sure LyX can be ran in place even
2388         when libtool has done its magic with shared libraries. Fix the
2389         test for the case when the system directory has not been found.
2390
2391         * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
2392         name for the latex file.
2393         (MenuMakeHTML): ditto
2394
2395         * src/buffer.h: add an optional boolean argument, which is passed
2396         to ChangeExtension.
2397
2398 1999-12-20  Allan Rae  <rae@lyx.org>
2399
2400         * lib/templates/IEEEtran.lyx: small correction and update.
2401
2402         * configure.in: Attempted to use LYX_PATH_HEADER
2403
2404         * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
2405
2406         * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
2407         input from JMarc.  Now use preprocessor to find the header.
2408         Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
2409         (LYX_PATH_HEADER): My, so far, failed attempt to generalize
2410         LYX_STL_STRING_FWD.  See comments in file.      
2411
2412 1999-12-19  Asger Alstrup Nielsen  <alstrup@diku.dk>
2413
2414         * The global MiniBuffer * minibuffer variable is dead.
2415         
2416         * The global FD_form_main * fd_form_main variable is dead.
2417
2418 1999-12-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2419
2420         * src/toolbar.C (set): condition #warning on WITH_WARNINGS
2421
2422         * src/table.h: add the LOstream.h header
2423         * src/debug.h: ditto
2424         
2425         * src/LyXAction.h: change the explaination of the ReadOnly
2426         attribute: is indicates that the function _can_ be used.
2427
2428         * src/LyXAction.C (init): find-replace _can_ be used in read-only
2429         mode. 
2430
2431 1999-12-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2432
2433         * src/lyxfont.C (ascent): Make sure that char is _always_ used as
2434         unsigned. 
2435         (descent): ditto
2436         (lbearing): ditto
2437         (rbearing): ditto
2438
2439         * src/paragraph.C (GetWord): assert on pos>=0
2440         (GetChar): ditto
2441         
2442         * src/support/lyxstring.C: condition the use of an invariant on
2443         ENABLE_ASSERTIONS 
2444         * src/support/lyxstring.h: ditto
2445
2446         * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
2447         Use LAssert.h instead of plain assert().
2448
2449         * src/support/lstrings.h: add LAssert.h, in case it is needed.
2450
2451         * src/lyxfunc.C: do not include LAssert.h, it is not used.
2452         * src/support/filetools.C: ditto
2453
2454         * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
2455         is not defined. 
2456
2457         * INSTALL: document the new configure flags
2458         
2459         * configure.in: suppress --with-debug; add --enable-assertions
2460
2461         * acinclude.m4: various changes in alignment of help strings.
2462
2463 1999-12-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
2464
2465         * src/kbmap.C: commented out the use of the hash map in kb_map,
2466         beginning of movement to a stl::container. 
2467
2468         * several files: removed code that was not in effect when
2469         MOVE_TEXT was defined.
2470         
2471         * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
2472         for escaping should not be used. We can discuss if the string
2473         should be enclosed in f.ex. [] instead of "".
2474
2475         * src/trans_mgr.C (insert): use the new returned value from
2476         encodeString to get deadkeys and keymaps done correctly.
2477
2478         * src/chset.C (encodeString): changed to return a pair, to tell
2479         what to use if we know the string.
2480
2481         * src/lyxscreen.h (fillArc): new function.
2482
2483         * src/FontInfo.C (resize): rewritten to use more std::string like
2484         structore, especially string::replace.
2485
2486         * src/insets/insetlatexaccent.C (Draw): use fillArc for the
2487         approp. accents.
2488
2489         * configure.in (chmod +x some scripts): remove config/gcc-hack 
2490
2491 1999-12-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2492
2493         * src/buffer.C (writeFile): change once again the top comment in a
2494         .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
2495         instead of an hardcoded version number.
2496         (makeDocBookFile): ditto
2497
2498         * src/version.h: add new define LYX_DOCVERSION
2499
2500         * po/de.po: update from Pit Sütterlin
2501         * lib/bind/de_menus.bind: ditto.
2502         
2503         * src/lyxfunc.C (Dispatch): call MenuExport()
2504         * src/buffer.C (Dispatch): ditto
2505
2506         * src/lyx_cb.C (MenuMakeHTML): new function, moved from
2507         LyXFunc::Dispatch().
2508         (MenuExport): new function, moved from
2509         LyXFunc::Dispatch().
2510
2511         * src/trans_mgr.C (insert): small cleanup
2512         * src/chset.C (loadFile): ditto
2513
2514         * lib/kbd/iso8859-1.cdef: add missing backslashes
2515
2516 1999-12-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
2517
2518         * src/insets/insetlatexaccent.C (Lbearing): new function, used to
2519         help with placing the manually drawn accents better.
2520         (Rbearing): ditto
2521         (Draw): x2 and hg changed to float to minimize rounding errors and
2522         help place the accents better.
2523
2524         * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
2525         unsigned short to char is just wrong...cast the char to unsigned
2526         char instead so that the two values can compare sanely. This
2527         should also make the display of insetlatexaccents better and
2528         perhaps also some other insets.
2529         (descent): ditto
2530         (lbearing): new function
2531         (rbearing): ditto
2532
2533 1999-12-15  Allan Rae  <rae@lyx.org>
2534
2535         * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES):  added new
2536         header that provides a wrapper around the very annoying SGI STL header
2537         of the same name.
2538
2539         * src/support/lyxstring.C, src/LString.h:
2540         removed old SGI-STL-compatability attempts.
2541
2542         * configure.in: Use LYX_STL_STRING_FWD.
2543
2544         * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if 
2545         stl_string_fwd.h is around and try to determine it's location.
2546         Major improvement over previous SGI STL 3.2 compatability.
2547         Three small problems remain with this function due to my zero
2548         knowledge of autoconf.  JMarc and lgb see the comments in the code.
2549
2550 1999-12-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2551
2552         * src/broken_const.h, config/hack-gcc, config/README: removed
2553         
2554         * configure.in: remove --with-gcc-hack option; do not call
2555         LYX_CXX_STL_STACK 
2556
2557         * INSTALL: remove documentation of --with-broken-const and
2558         --with-gcc-hack
2559         
2560         * acconfig.h: remove all trace of BROKEN_CONST define
2561
2562         * src/buffer.C (makeDocBookFile): update version number in output
2563         file. 
2564         (SimpleDocBookOnePar): fix an assert when trying to a character
2565         access beyond string length
2566         [Patch from Jose']
2567
2568 1999-12-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2569
2570         * po/de.po: fix the Export menu
2571
2572         * lyx.man: update the description of -dbg
2573
2574         * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
2575         (commandLineHelp): updated
2576         (easyParse): show list of available debug levels if -dbg is passed
2577         without argument.
2578
2579         * src/Makefile.am: add debug.C
2580
2581         * src/debug.h: moved some code to debug.C
2582
2583         * src/debug.C: new file. Contains code to set and show debug
2584         level. 
2585
2586         * src/layout.C: remove 'break' after 'continue' in switch
2587         statements, since these cannot be reached.
2588
2589 1999-12-13  Allan Rae  <rae@lyx.org>
2590
2591         * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
2592         (in_word_set): hash() -> math_hash()
2593
2594         * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support 
2595
2596         * acconfig.h: Added a test for whether we are using exceptions in the
2597         current compilation run. If so USING_EXCEPTIONS is defined.
2598
2599         * config.in: Check for existance of stl_string_fwd.h
2600         * src/LString.h: If compiling --with-included-string and SGI's
2601         STL version 3.2 is present (see above test) we need to block their
2602         forward declaration of string and supply a __get_c_string().
2603         However, it turns out this is only necessary if compiling with
2604         exceptions enabled so I've a bit more to add yet.
2605
2606         * src/insets/figinset.[Ch], src/insets/insetinclude.C,
2607           src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
2608           src/support/LRegex.h, src/undo.h:
2609         Shuffle the order of the included files a little to ensure that
2610         LString.h gets included before anything that includes stl_string_fwd.h
2611
2612         *  src/support/lyxstring.C: We need to #include LString.h instead of
2613         lyxstring.h to get the necessary definition of __get_c_string.
2614         (__get_c_string): New function.  This is defined static just like SGI's
2615         although why they need to do this I'm not sure.  Perhaps it should be
2616         in lstrings.C instead.
2617
2618         * lib/templates/IEEEtran.lyx:  New template file.
2619
2620 1999-12-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
2621         
2622         * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
2623         * intl/Makefile.in (MKINSTALLDIRS):  ditto
2624
2625         * src/LyXAction.C (init): changed to hold the LFUN data in a
2626         automatic array in stead of in callso to newFunc, this speeds up
2627         compilation a lot. Also all the memory used by the array is
2628         returned when the init is completed.
2629
2630         * a lot of files: compiled with -Wold-style-cast, changed most of
2631         the reported offenders to C++ style casts. Did not change the
2632         offenders in C files. 
2633
2634         * src/trans.h (Match): change argument type to unsigned int.
2635
2636         * src/support/DebugStream.C: fix some types on the streambufs so
2637         that it works on a conforming implementation.
2638
2639 1999-12-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2640
2641         * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
2642
2643         * src/support/lyxstring.C: remove the inline added earlier since
2644         they cause a bunch of unsatisfied symbols when linking with dec
2645         cxx. Cxx likes to have the body of inlines at the place where they
2646         are declared.
2647
2648         * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
2649         accessing negative bounds in array. This fixes the crash when
2650         inserting accented characters.
2651         * src/trans.h (Match): ditto
2652
2653         * src/buffer.C (Dispatch): since this is a void, it should not try
2654         to return anything...
2655
2656 1999-12-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
2657
2658         * src/buffer.h: removed the two friends from Buffer. Some changes
2659         because of this. Buffer::getFileName and Buffer::setFileName
2660         renamed to Buffer::fileName() and Buffer::fileName(...).
2661
2662 1999-12-09  Lars Gullik Bjønnes <larsbj@lyx.org>
2663
2664         * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
2665         and Buffer::update(short) to BufferView. This move is currently
2666         controlled by a define MOVE_TEXT, this will be removed when all
2667         shows to be ok. This move paves the way for better separation
2668         between buffer contents and buffer view. One side effect is that
2669         the BufferView needs a rebreak when swiching buffers, if we want
2670         to avoid this we can add a cache that holds pointers to LyXText's
2671         that is not currently in use. 
2672
2673         * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
2674         André Pönitz. 
2675
2676 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
2677
2678         * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
2679
2680         * lyx_main.C: new command line option -x (or --execute) and
2681           -e (or --export). Now direct conversion from .lyx to .tex
2682           (.dvi, .ps, ...) is possible  ('lyx file.lyx --export latex')
2683           Unfortunately, X is still needed and the GUI pops up during the
2684           process...
2685
2686 1999-12-07  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2687
2688         * src/Spacing.C: add a using directive to bring stream stuff into
2689         normal namespace.
2690         * src/paragraph.C: ditto
2691         * src/buffer.C: ditto
2692
2693         * NEWS: updated a bit the new features of 1.1.3 (took a few things
2694         from Lars' announcement).
2695
2696         * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
2697         example files from Tino Meinen.
2698         
2699 1999-12-06  Allan Rae  <rae@lyx.org>
2700
2701         * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
2702
2703 1999-12-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
2704
2705         * src/support/lyxstring.C: added a lot of inline for no good
2706         reason
2707         
2708         * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
2709         latexWriteEndChanges, they were not used.
2710         
2711         * src/layout.h (operator<<): output operator for PageSides
2712
2713         * src/mathed/math_iter.C (my_memcpy): slightly changed.
2714
2715         * some example files: loaded in LyX 1.0.4 and saved again to update
2716         certain constructs (table format) 
2717
2718         * a lot of files: did the change to use fstream/iostream for all
2719         writing of files. Done with a close look at Andre Poenitz's patch.
2720
2721         * some files: whitespace changes.
2722         
2723 1999-12-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2724
2725         * src/mathed/math_iter.C (my_memcpy): new function. Since the
2726         built-in memcpy() is broken on egcs and gcc 2.95 for alpha
2727         architecture, we provide our own. It is used unconditionnally, but
2728         I do not think this is a performance problem. Thanks to Angus
2729         Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
2730         Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
2731         first time).
2732         (GetInset): use my_memcpy.
2733         (Insert): ditto
2734         (Copy): ditto
2735
2736         * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
2737         it is easier to understand, but it uses less TeX-only constructs now.
2738
2739         * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
2740         elements contain spaces
2741
2742         * lib/configure: regenerated
2743         
2744         * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
2745         elements contain spaces; display the list of programs that are
2746         tried.
2747
2748         * autogen.sh: make sure lib/configure is executable
2749
2750         * lib/examples/*: rename the tutorial examples to begin with the
2751         two-letters language code.
2752
2753         * src/lyxfunc.C (getStatus): do not query current font if no
2754         buffer exists.
2755
2756         * src/lyx_cb.C (RunScript): use QuoteName
2757         (MenuRunDvips): ditto
2758         (PrintApplyCB): ditto
2759
2760         * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
2761         around argument, so that it works well with the current shell.
2762         Does not work properly with OS/2 shells currently.
2763
2764         * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
2765         * src/LyXSendto.C (SendtoApplyCB): ditto
2766         * src/lyxfunc.C (Dispatch): ditto
2767         * src/buffer.C (runLaTeX): ditto
2768         (runLiterate): ditto
2769         (buildProgram): ditto
2770         (runChktex): ditto
2771         * src/lyx_cb.C (RunScript): ditto
2772         (MenuMakeLaTeX): ditto
2773         
2774         * src/buffer.h (getLatexName): new method 
2775
2776         * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
2777
2778 1999-12-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2779
2780         * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
2781         * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
2782         (create_math_panel): ditto
2783
2784         * src/lyxfunc.C (getStatus): re-activate the code which gets
2785         current font and cursor; add test for export to html.
2786
2787         * src/lyxrc.C (read): remove unreachable break statements; add a
2788         few "using".
2789
2790         * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
2791         
2792 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
2793
2794         * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
2795         introduced by faulty regex.
2796         * src/buffer.C: ditto
2797         * src/lastfiles.C: ditto
2798         * src/paragraph.C: ditto
2799         * src/table.C: ditto
2800         * src/vspace.C: ditto
2801         * src/insets/figinset.C: ditto
2802         Note: most of these is absolutely harmless, except the one in
2803         src/mathed formula.C.
2804
2805 1999-11-30  Kayvan A. Sylvan  <kayvan@satyr.sylvan.com>
2806
2807         * src/ImportNoweb.C (documentclass): fixed bounds for substr
2808           operation, yielding correct results for the reLyX command.
2809
2810 1999-12-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
2811
2812         * src/support/filetools.C (ExpandPath): removed an over eager
2813         Assert.
2814         (ReplaceEnvironmentPath): ditto
2815
2816         * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
2817         shows that we are doing something fishy in our code...
2818         (BubblePost): ditto
2819         (ToolbarCB): ditto
2820
2821         * src/lyxrc.C (read): use a double switch trick to get more help
2822         from the compiler. (the same trick is used in layout.C)
2823         (write): new function. opens a ofstream and pass that to output
2824         (output): new function, takes a ostream and writes the lyxrc
2825         elemts to it. uses a dummy switch to make sure no elements are
2826         forgotten. 
2827
2828         * src/lyxlex.h: added a struct pushpophelper for use in functions
2829         with more than one exit point.
2830
2831         * src/lyxlex.[Ch] (GetInteger): made it const
2832         (GetFloat): ditto
2833         (GetBool): ditto
2834
2835         * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
2836
2837         * src/layout.[hC] : LayoutTags splitted into several enums, new
2838         methods created, better error handling cleaner use of lyxlex. Read
2839         the diff.
2840
2841         * src/bmtable.[Ch]: change some member prototypes because of the
2842         image const changes. 
2843
2844         * commandtags.h, src/LyXAction.C (init): new function:
2845         "preferences-save", saves the lyxrc entries into .lyx/preferences.
2846         This file is not read automatically but you can add \input
2847         preferences to your lyxrc if you want to. We need to discuss how
2848         to handle this. 
2849
2850         * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
2851         in .aux, also remove .bib and .bst files from dependencies when
2852         running bibtex.
2853
2854         * src/BufferView.C, src/LyXView.C: add const_cast several places
2855         because of changes to images.
2856
2857         * lib/images/*: same change as for images/*
2858         
2859         * lib/lyxrc.example: Default for accept_compound is false not no.
2860
2861         * images/*: changed to be const, however I have som misgivings
2862         about this change so it might be changed back.
2863
2864 1999-11-26  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2865
2866         * lib/configure, po/POTFILES.in: regenerated
2867
2868         * autogen.sh: autogenerate lib/configure from lib/configure.m4
2869
2870         * config/lib_configure.m4: removed
2871         
2872         * lib/configure.m4: new file (was config/lib_configure.m4)
2873
2874         * configure.in: do not test for rtti, since we do not use it.
2875         
2876 1999-11-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
2877
2878         * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
2879         doubling of allocated space scheme. This makes it faster for large
2880         strings end to use less memory for small strings. xtra rememoved. 
2881
2882         * src/insets/figinset.C (waitalarm): commented out.
2883         (GhostscriptMsg): use static_cast
2884         (GhostscriptMsg): use new instead of malloc to allocate memory for
2885         cmap. also delete the memory after use.
2886
2887         * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
2888
2889         * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
2890         for changes in bibtex database or style.
2891         (runBibTeX): remove all .bib and .bst files from dep before we
2892         begin. 
2893         (run): use scanAuc in when dep file already exist.
2894
2895         * src/DepTable.C (remove_files_with_extension): new method
2896         (exist): new method
2897
2898         * src/DepTable.[Ch]: made many of the methods const. 
2899
2900 1999-11-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2901
2902         * src/bufferparams.C: make sure that the default textclass is
2903         "article". It used to be the first one by description order, but
2904         now the first one is "docbook".
2905
2906         * src/lyx_main.C (setDebuggingLevel): change type of argument to
2907         string; call Debug::value.
2908         (easyParse): pass complete argument to setDebuggingLevel().
2909
2910         * src/debug.h (value): fix the code that parses debug levels.
2911
2912         * src/debug.h: add new debug type ACTION, reserved for LyXAction
2913         class.  
2914
2915         * src/LyXAction.C: use Debug::ACTION as debug channel.
2916
2917         * src/lyxlookup.C: make the debug statements go to Debug::KEY.
2918
2919         * NEWS: updated for the future 1.1.3 release.
2920
2921         * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
2922         \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
2923         it should. This is of course a controversial change (since many
2924         people will find that their lyx workscreen is suddenly full of
2925         red), but done for the sake of correctness.
2926
2927         * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
2928           src/mathed/math_root.[Ch] (Clone): return a MathedInset*  
2929
2930         * src/insets/inseterror.h, src/insets/inseturl.h,
2931           src/insets/insetinfo.h, src/insets/figinset.h,
2932           src/mathed/formulamacro.h, src/mathed/math_macro.h
2933           (EditMessage): add a missing const and add _() to make sure that
2934         translation happens
2935
2936         * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
2937           src/insets/insetbib.C, src/support/filetools.C: add `using'
2938         directives for cxx.  
2939
2940         * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
2941         doing 'Insert index of last word' at the beginning of a paragraph.
2942
2943 1999-11-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
2944
2945         * several files: white-space changes.
2946
2947         * src/mathed/formula.C: removed IsAlpha and IsDigit
2948
2949         * src/insets/insetbib.C (getKeys): use findtexfile to look for the
2950         .bib file. use a ifstream instead of FilePtr when parsing the .bib
2951         file for keys.
2952
2953         * src/insets/figinset.C (GetPSSizes): don't break when
2954         "EndComments" is seen. But break when a boundingbox is read.
2955
2956         * all classes inherited from Inset: return value of Clone
2957         changed back to Inset *.
2958
2959         * all classes inherited form MathInset: return value of Clone
2960         changed back to MathedInset *.
2961         
2962         * src/insets/figinset.C (runqueue): use a ofstream to output the
2963         gs/ps file. Might need some setpresicion or setw. However I can
2964         see no problem with the current code.
2965         (runqueue): use sleep instead of the alarm/signal code. I just
2966         can't see the difference.
2967
2968         * src/paragraph.C (LyXParagraph): reserve space in the new
2969         paragraph and resize the inserted paragraph to just fit.
2970
2971         * src/lyxfunc.h (operator|=): added operator for func_status.
2972
2973         * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
2974         check for readable file.
2975
2976         * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
2977         check for readable file.
2978         (MenuMakeLinuxDoc): ditto
2979         (MenuMakeDocBook): ditto
2980         (MenuMakeAscii): ditto
2981         (InsertAsciiFile): split the test for openable and readable
2982
2983         * src/bmtable.C (draw_bitmaptable): use
2984         fl_state[fl_get_vclass()].depth instead of DefualtScreen.
2985
2986         * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
2987         findtexfile from LaTeX to filetools.
2988         
2989         * src/ImportNoweb.C (documentclass): rewrote to use ifstream
2990         instead of FilePtr. Needs to be verified by a literate user.
2991
2992 1999-11-23  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2993
2994         * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
2995         (EditMessage): likewise.
2996
2997         * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
2998         respectively as \textasciitilde and \textasciicircum.
2999
3000 1999-11-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
3001
3002         * src/support/lyxstring.h: made the methods that take iterators
3003         use const_iterator.
3004
3005         * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
3006         (regexMatch): made is use the real regex class.
3007
3008         * src/support/Makefile.am: changed to use libtool
3009
3010         * src/support/.cvsignore: added *.lo, .libs and libsupport.la
3011
3012         * src/mathed/math_defs.h: made the mathaligns be in a enum instead
3013         of defines.
3014         (MathIsInset ++): changed several macros to be inline functions
3015         instead. 
3016
3017         * src/mathed/Makefile.am: changed to use libtool
3018
3019         * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
3020
3021         * src/insets/inset* : Clone changed to const and return type is
3022         the true insettype not just Inset*.
3023         
3024         * src/insets/Makefile.am: changed to use libtool
3025
3026         * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
3027
3028         * src/undo.[Ch] : added empty() and changed some of the method
3029         names.
3030         
3031         * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
3032
3033         * src/lyxparagraph.h: use id() and id(...) instead of getID and
3034         setID use block<> for the bullets array, added const several places.
3035
3036         * src/lyxfunc.C (getStatus): new function
3037
3038         * src/lyxfunc.[Ch] : small changes to take advantage of the new
3039         LyXAction, added const to several funtions.
3040
3041         * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
3042         a std::map, and to store the dir items in a vector.
3043
3044         * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
3045         as dependencies.
3046
3047         * src/LyXView.[Ch] + other files : changed currentView to view.
3048         
3049         * src/LyXAction.[Ch] : ported from the old devel branch.
3050         
3051         * src/.cvsignore: added .libs and a.out
3052
3053         * configure.in : changes to use libtool. 
3054
3055         * acinclude.m4 : inserted libtool.m4
3056
3057         * .cvsignore: added libtool
3058
3059 1999-11-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3060
3061         * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
3062         file name in insets and mathed directories (otherwise the
3063         dependency is not taken in account under cygwin).
3064
3065         * src/text2.C (InsertString[AB]): make sure that we do not try to
3066         read characters past the string length.
3067
3068 1999-11-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3069
3070         * lib/doc/LaTeXConfig.lyx.in, 
3071           lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
3072
3073         * src/buffer.C (writeFile): Do not add a comment on top of .lyx
3074         file saying who created them and when this heppened; this is
3075         useless and annoys tools like cvs.
3076
3077         * lib/layouts/g-brief-{en,de}.layout,
3078           lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
3079         from Thomas Hartkens <thomas@hartkens.de>.
3080
3081         * src/{insets,mathed}/Makefile.am: do not declare an empty
3082         LDFLAGS, so that it can be set at configure time (useful on Irix
3083         for -n32 flag).
3084
3085         * lib/reLyX/configure.in: make sure that the prefix is set
3086         correctly in LYX_DIR.
3087
3088 1999-11-18  André Pönitz <poenitz@mathematik.tu-chemnitz.de>
3089
3090         * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
3091         be used by 'command-sequence' this allows to bind a key to a
3092         sequence of LyX-commands
3093         (Example: 'command-sequence math-insert alpha; math-insert beta;")
3094
3095         * src/LyXAction.C: add "command-sequence"
3096
3097         * src/LyXFunction.C: handling of "command-sequence"
3098
3099         * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
3100          &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
3101
3102         * src/lyxserver.C, src/minibuffer.C: Use this new interface
3103
3104 1999-11-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3105
3106         * src/buffer.C (writeFile): Do not output a comment giving user
3107         and date at the beginning of a .lyx file. This is useless and
3108         annoys cvs anyway; update version number to 1.1.
3109
3110         * src/Makefile.am (LYX_DIR): add this definition, so that a
3111         default path is hardcoded in LyX.
3112
3113         * configure.in: Use LYX_GNU_GETTEXT.
3114
3115         * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
3116         AM_GNU_GETTEXT with a bug fixed. 
3117
3118         * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
3119
3120         * src/chset.C: add "using std::ifstream;" to please dec cxx.
3121
3122         * src/lyx_main.C (init), INSTALL.OS2: the environment variable
3123         which is used to point to LyX data is now LYX_DIR_11x.
3124
3125         * lyx.man: convert to a unix text file; small updates.
3126
3127 1999-11-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
3128
3129         * src/support/LSubstring.[Ch]: made the second arg of most of the
3130         constructors be a const reference. 
3131
3132         * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
3133         me fixed.
3134
3135         * src/support/lyxstring.[Ch] (swap): added missing member function
3136         and specialization of swap(str, str); 
3137
3138         * src/menus.C (ShowBufferMenu): to use the new BufferStorage
3139
3140         * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
3141         trace of the old one.
3142
3143         * src/undo.[Ch]: made the undostack use std::list to store undo's in
3144         put the member definitions in undo.C.
3145
3146         * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
3147         NEW_TEXT and have now only code that was included when this was
3148         defined. 
3149
3150         * src/intl.C (LCombo): use static_cast
3151         (LCombo2): ditto
3152         (DispatchCallback): ditto
3153
3154         * src/definitions.h: removed whole file
3155         
3156         * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
3157
3158         * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
3159         parsing and stores in a std:map. a regex defines the file format.
3160         removed unneeded members.
3161
3162         * src/bufferparams.h: added several enums from definitions.h here.
3163         Removed unsused destructor. Changed some types to use proper enum
3164         types. use block to have the temp_bullets and user_defined_bullets
3165         and to make the whole class assignable.
3166
3167         * src/bufferparams.C (Copy): removed this functions, use a default
3168         assignment instead. 
3169
3170         * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
3171         isLiterate const.
3172
3173         * src/buffer.C (readLyXformat2): commend out all that have with
3174         oldpapersize to do. also comment out all that hve to do with
3175         insetlatex and insetlatexdel. 
3176         (setOldPaperStuff): commented out
3177
3178         * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
3179
3180         * src/LyXAction.C: remove use of inset-latex-insert
3181
3182         * src/mathed/math_panel.C (button_cb): use static_cast
3183
3184         * src/insets/Makefile.am (insets_o_SOURCES): removed
3185         insetlatex.[Ch] 
3186
3187         * src/support/lyxstring.C (helper): use the unsigned long
3188         specifier, UL, instead of a static_cast.
3189
3190         * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
3191
3192         * src/support/block.h: new file. to be used as a c-style array in
3193         classes, so that the class can be assignable.
3194
3195 1999-11-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3196
3197         * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
3198         NULL, make sure to return an empty string (it is not possible to
3199         set a string to NULL).
3200
3201 1999-11-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3202
3203         * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
3204
3205         * src/support/lyxstring.C (helper): fix bogus cast in assertion.
3206
3207         * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
3208         link line, so that Irix users (for example) can set it explicitely to
3209         "-n32".
3210         
3211         * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
3212         it can be overidden at make time (static or dynamic link, for
3213         example).
3214         
3215         * src/vc-backend.C, src/LaTeXFeatures.h, 
3216           src/support/LRegex.C, src/support/LRegex.h: add a few "using" 
3217         statements to bring templates to global namespace.
3218
3219 1999-11-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
3220
3221         * src/support/lyxstring.C (operator[] const): make it standard
3222         conforming. 
3223
3224         * src/minibuffer.C (Init): changed to reflect that more
3225         information is given from the lyxvc and need not be provided here.
3226
3227         * src/lyxvc.[Ch]: rewrote to use the vc-backend.
3228         
3229         * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
3230
3231         * src/LyXView.C (UpdateTimerCB): use static_cast
3232         (KeyPressMask_raw_callback): ditto
3233
3234         * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
3235         buffer_, a lot of changes because of this. currentBuffer() ->
3236         buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
3237         also changes to other files because of this.
3238
3239 1999-11-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
3240
3241         * src/vc-backend.[Ch]: new files. The backends for vc handling,
3242         have no support for RCS and partial support for CVS, will be
3243         improved later.
3244         
3245         * src/insets/ several files: changes because of function name
3246         changes in Bufferview and LyXView.
3247         
3248         * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
3249
3250         * src/support/LSubstring.[Ch]: new files. These implement a
3251         Substring that can be very convenient to use. i.e. is this
3252         possible:
3253         string a = "Mary had a little sheep";
3254         Substring(a, "sheep") = "lamb";
3255         a is now "Mary has a little lamb".
3256
3257         * src/support/LRegex.[Ch]: a regex class that can be used to pick
3258         out patterns and subpatterns of strings. It is used by LSubstring
3259         and also by vc-backend.C
3260         
3261         * src/support/lyxstring.C: went over all the assertions used and
3262         tried to correct the wrong ones and flag which of them is required
3263         by the standard. some bugs found because of this. Also removed a
3264         couple of assertions.
3265
3266         * src/support/Makefile.am (libsupport_a_SOURCES): added
3267         LSubstring.[Ch] and LRegex.[Ch]
3268
3269         * src/support/FileInfo.h: have struct stat buf as an object and
3270         not a pointer to one, some changes because of this.
3271
3272         * src/LaTeXFeatures.C (getTClassPreamble): also use the
3273         information in layout when adding the layouts preamble to the
3274         textclass preamble.
3275
3276         * src/LaTeXFeatures.h: use a vector<bool> to store the layout
3277         usage in.
3278
3279         * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
3280         because of bug in OS/2.
3281
3282 1999-11-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3283
3284         * lib/layouts/lyxmacros.inc (lyxcode): set the font with
3285         \verbatim@font instead of \ttfamily, so that it can be redefined.
3286
3287         * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
3288           src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
3289           src/layout.h, src/text2.C: add 'using' directive to bring the
3290         STL templates we need from the std:: namespace to the global one.
3291         Needed by DEC cxx in strict ansi mode.
3292
3293         * src/support/LIstream.h,src/support/LOstream.h,
3294           src/support/lyxstring.h,src/table.h,
3295           src/lyxlookup.h: do not include <config.h> in header
3296         files. This should be done in the .C files only.
3297
3298         * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
3299         (from Kayvan).
3300         
3301
3302 1999-11-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3303
3304         * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
3305         from Kayvan to fix the tth invokation.
3306
3307         * development/lyx.spec.in: updates from Kayvan to reflect the
3308         changes of file names.
3309
3310 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
3311
3312         * src/text2.C (InsertStringB): use std::copy
3313         (InsertStringA): use std::copy
3314
3315         * src/bufferlist.C: use a vector to store the buffers in. This is
3316         an internal change and should not affect any other thing.
3317         
3318         * src/BufferView.C (waitForX): use XSync instead of the lengthy
3319         stuff in waitForX.
3320
3321         * src/text.C (Fill): fix potential bug, one off bug.
3322
3323 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
3324
3325         * src/Makefile.am (lyx_main.o): add more files it depends on.
3326
3327         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
3328
3329         * src/support/lyxstring.C: use size_t for the reference count,
3330         size, reserved memory and xtra.
3331         (internal_compare): new private member function. Now the compare
3332         functions should work for std::strings that have embedded '\0'
3333         characters.
3334         (compare): all compare functions rewritten to use
3335         internal_compare.
3336         
3337 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
3338
3339         * src/support/lyxstring.C (compare): pass c_str()
3340         (compare): pass c_str
3341         (compare): pass c_str
3342
3343 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3344
3345         * src/support/DebugStream.C: <config.h> was not included correctly.
3346
3347         * lib/configure: forgot to re-generate it :( I'll make this file
3348         auto generated soon.
3349
3350 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
3351
3352         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
3353         is used.
3354
3355         * src/support/lyxstring.C: some changes from length() to rep->sz.
3356         avoids a function call.
3357
3358         * src/support/filetools.C (SpaceLess): yet another version of the
3359         algorithm...now per Jean-Marc's suggestions.
3360
3361 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
3362
3363         * src/layout.C (less_textclass_desc): functor for use in sorting
3364         of textclasses. 
3365         (LyXTextClass::Read): sort the textclasses after reading.
3366         
3367         * src/support/filetools.C (SpaceLess): new version of the
3368         SpaceLess functions. What problems does this one give? Please
3369         report.
3370
3371         * images/banner_bw.xbm: made the arrays unsigned char *
3372
3373 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3374
3375         * src/support/lyxstring.C (find): remove bogus assertion in the
3376         two versions of find where this has not been done yet.
3377
3378         * src/support/lyxlib.h: add missing int return type to
3379         lyx::chdir(). 
3380
3381         * src/menus.C (ShowFileMenu): disable exporting to html if no
3382         html export command is present.
3383
3384         * config/lib_configure.m4: add a test for an HTML converter. The
3385         programs checked for are, in this order: tth, latex2html and
3386         hevea. 
3387
3388         * lib/configure: generated from config/lib_configure.m4.
3389
3390         * src/lyxfunc.C (Dispatch): update and improve the execution of an
3391         html converter. The parameters are now passed through $$FName and
3392         $$OutName, instead of standard input/output.
3393
3394         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
3395
3396         * lib/lyxrc.example: update description of \html_command. 
3397         add "quotes" around \screen_font_xxx font setting examples to help
3398         people who use fonts with spaces in their names.
3399
3400 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
3401
3402         * Distribution files: updates for v1.1.2
3403
3404         * src/support/lyxstring.C (find): remove bogus assert and return
3405         npos for the same condition.
3406
3407 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
3408
3409         * added patch for OS/2 from SMiyata.
3410
3411 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
3412
3413         * src/text2.C (CutSelection): make space_wrapped a bool
3414         (CutSelection): dont declare int i until we have to.
3415         (alphaCounter): return a char const *.
3416
3417 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3418
3419         * src/support/syscall.C (Systemcalls::kill): 
3420           src/support/filetools.C (PutEnv, PutEnvPath): 
3421           src/lyx_cb.C (addNewlineAndDepth): 
3422           src/FontInfo.C (FontInfo::resize): condition some #warning
3423         directives with WITH_WARNINGS.
3424         
3425
3426 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
3427
3428         * src/layout.[Ch] + several files: access to class variables
3429         limited and made accessor functions instead a lot of code changed
3430         becuase of this. Also instead of returning pointers often a const
3431         reference is returned instead.
3432         
3433         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
3434
3435         * src/Makefile.am (dist-hook): added used to remove the CVS from
3436         cheaders upon creating a dist
3437         (EXTRA_DIST): added cheaders
3438
3439         * src/support/lstrings.C (tostr(char)): fix it to handle param as
3440         a character not as a small integer. 
3441
3442         * src/support/lyxstring.C (find): removed Assert and added i >=
3443         rep->sz to the first if.
3444
3445 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
3446
3447         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
3448         src/LyXView.C src/buffer.C src/bufferparams.C
3449         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
3450         src/text2.C src/insets/insetinclude.C:
3451         lyxlayout renamed to textclasslist.
3452
3453         * src/layout.C: some lyxerr changes.
3454
3455         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
3456         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
3457         (LyXLayoutList): removed all traces of this class.
3458         (LyXTextClass::Read): rewrote LT_STYLE
3459         (LyXTextClass::hasLayout): new function
3460         (LyXTextClass::GetLayout): rewritten to return an iterator + has
3461         both const and nonconst version.
3462         (LyXTextClass::delete_layout): new function.
3463         (LyXTextClassList::Style): bug fix. do the right thing if layout
3464         is to big.
3465         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
3466         (LyXTextClassList::NameOfLayout): ditto 
3467         (LyXTextClassList::Load): ditto
3468
3469         * src/buffer.C (makeLaTeXFile): new access to layoutlist
3470
3471         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
3472
3473         * src/LyXAction.C (LookupFunc): added a workaround for sun
3474         compiler, on the other hand...we don't know if the current code
3475         compiles on sun at all...
3476
3477         * src/support/filetools.C (CleanupPath): subst fix
3478
3479         * src/insets/insetbib.C (delDatabase): subst fix, this looks
3480         _really_ weird.
3481
3482         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
3483         complained about this one?
3484
3485         * src/insets/insetinclude.C (Latex): subst fix
3486
3487         * src/insets/insetbib.C (getKeys): subst fix
3488
3489         * src/LyXSendto.C (SendtoApplyCB): subst fix
3490
3491         * src/lyx_main.C (init): subst fix
3492
3493         * src/layout.C (Read): subst fix
3494
3495         * src/lyx_sendfax_main.C (button_send): subst fix
3496
3497         * src/buffer.C (RoffAsciiTable): subst fix
3498
3499         * src/lyx_cb.C (MenuFax): subst fix
3500         (PrintApplyCB): subst fix
3501
3502 1999-10-26  Juergen Vigna  <jug@sad.it>
3503
3504         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
3505
3506         (Read): Cleaned up this code so now we read only format vestion >= 5
3507
3508 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
3509
3510         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
3511         come nobody has complained about this one?
3512
3513         * src/insets/insetinclude.C (Latex): subst fix
3514
3515         * src/insets/insetbib.C (getKeys): subst fix
3516
3517         * src/lyx_main.C (init): subst fix
3518
3519         * src/layout.C (Read): subst fix
3520
3521         * src/buffer.C (RoffAsciiTable): subst fix
3522
3523         * src/lyx_cb.C (MenuFax): subst fix.
3524
3525         * src/layout.[hC] + some other files: rewrote to use
3526         std::container to store textclasses and layouts in.
3527         Simplified, removed a lot of code. Make all classes
3528         assignable. Further simplifications and review of type
3529         use still to be one. 
3530
3531         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
3532         lastfiles to create the lastfiles partr of the menu.
3533
3534         * src/lastfiles.[Ch]: rewritten to use deque to store the
3535         lastfiles in. Uses fstream for reading and writing. Simplifies
3536         code.
3537
3538         * src/support/syscall.C: remove explicit cast.
3539
3540         * src/BufferView.C (CursorToggleCB): removed code snippets that
3541         were commented out.
3542         use explicat C++ style casts instead of C style casts. also use
3543         u_vdata instea of passing pointers in longs.
3544
3545         * src/PaperLayout.C: removed code snippets that were commented out.
3546
3547         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
3548
3549         * src/lyx_main.C: removed code snippets that wer commented out.
3550
3551         * src/paragraph.C: removed code snippets that were commented out.
3552
3553         * src/lyxvc.C (logClose): use static_cast
3554         (logUpdate): ditto
3555         (viewLog): remove explicit cast to void*
3556         (showLog): removed old commented code
3557
3558         * src/menus.C: use static_cast instead of C style casts. use
3559         u_vdata instead of u_ldata. remove explicit cast to (long) for
3560         pointers. Removed old code that was commented out.
3561
3562         * src/insets/inset.C: removed old commented func
3563
3564         * src/insets/insetref.C (InsetRef): removed old code that had been
3565         commented out for a long time.
3566         (Edit): ditto
3567         (escape): removed C style cast
3568
3569         * src/insets/insetlatexaccent.C (Draw): removed old commented code
3570
3571         * src/insets/insetlatex.C (Draw): removed old commented code
3572         (Read): rewritten to use string
3573
3574         * src/insets/insetlabel.C (escape): removed C style cast
3575
3576         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
3577
3578         * src/insets/insetindex.C: use static_cast and u_vdata, removed
3579         old commented code.
3580
3581         * src/insets/insetinclude.h: removed a couple of stupid bools
3582
3583         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
3584         (Clone): remove C style cast
3585         (getKeys): changed list to lst because of std::list
3586
3587         * src/insets/inseterror.C (Draw): removed som old commented code.
3588
3589         * src/insets/insetcommand.C (Draw): removed some old commented code.
3590
3591         * src/insets/insetbib.C (bibitem_cb): removed code that has been
3592         commented out forever.
3593         (bibitem_cb): use static_cast instead of C style cast
3594         use of vdata changed to u_vdata.
3595
3596         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
3597         parameter.
3598         (CloseUrlCB): use static_cast instead of C style cast.
3599         (CloseUrlCB): added a fl_free form...it seemed to be missing.
3600
3601         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
3602         (C_InsetInfo_CloseInfoCB): forward the ob parameter
3603         (CloseInfoCB): static_cast from ob->u_vdata instead.
3604         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
3605         instead. 
3606
3607         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
3608         (C_InsetError_CloseErrorCB): forward the ob parameter
3609         (CloseErrorCB): static_cast from ob->u_vdata instead.
3610
3611         * src/vspace.h: include LString.h since we use string in this class.
3612
3613         * src/vspace.C (lyx_advance): changed name from advance because of
3614         nameclash with stl. And since we cannot use namespaces yet...I
3615         used a lyx_ prefix instead. Expect this to change when we begin
3616         using namespaces.
3617
3618         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
3619
3620         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
3621         and removed now defunct constructor and deconstructor.
3622
3623         * src/BufferView.h: have backstack as a object not as a pointer.
3624         removed initialization from constructor. added include for BackStack 
3625
3626         * development/lyx.spec.in (%build): add CFLAGS also.
3627
3628         * src/screen.C (drawFrame): removed another warning.
3629
3630 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3631
3632         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
3633         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
3634         README and ANNOUNCE a bit for the next release. More work is
3635         needed, of course.
3636
3637         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
3638         unbreakable if we are in freespacing mode (LyX-Code), but not in
3639         latex mode.
3640
3641 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
3642
3643         * src/BackStack.h: fixed initialization order in constructor
3644
3645         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
3646
3647         * acinclude.m4 (VERSION): new rules for when a version is
3648         development, added also a variable for prerelease.
3649         (warnings): we set with_warnings=yes for prereleases
3650         (lyx_opt): prereleases compile with same optimization as development 
3651         (CXXFLAGS): only use pedantic if we are a development version 
3652
3653         * src/BufferView.C (restorePosition): don't do anything if the
3654         backstack is empty.
3655
3656         * src/BackStack.h: added member empty, use this to test if there
3657         is anything to pop...
3658
3659 1999-10-25  Juergen Vigna  <jug@sad.it>
3660
3661         * forms/form1.fd +
3662         * forms/layout_forms.fd +
3663         * forms/latexoptions.fd +
3664         * lyx.fd: changed for various form resize issues
3665
3666         * src/mathed/math_panel.C +
3667         * src/insets/inseterror.C +
3668         * src/insets/insetinfo.C +
3669         * src/insets/inseturl.C +
3670         * src/insets/inseturl.h +
3671         * src/LaTeXLog.C +
3672         * src/LyXSendto.C +
3673         * src/PaperLayout.C +
3674         * src/ParagraphExtra.C +
3675         * src/TableLayout.C +
3676         * src/form1.C +
3677         * src/layout_forms.C +
3678         * src/lyx.C +
3679         * src/lyx_cb.C +
3680         * src/lyx_gui.C +
3681         * src/lyxfr0.C +
3682         * src/lyxfunc.C +
3683         * src/lyxvc.C +
3684         * src/menus.C: fixed various resize issues. So now forms can be
3685         resized savely or not be resized at all.
3686         
3687         * forms/form_url.fd +
3688         * src/insets/form_url.[Ch]: added because it's cleaner and easier
3689         to modify IMO.
3690
3691         * src/insets/Makefile.am: added files form_url.[Ch]
3692         
3693 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3694
3695         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
3696         (and presumably 6.2).
3697
3698         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
3699         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
3700         remaining static member callbacks. 
3701
3702         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
3703         messages. 
3704
3705         * src/support/lyxstring.h: declare struct Srep as friend of
3706         lyxstring, since DEC cxx complains otherwise.
3707
3708 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
3709
3710 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
3711
3712         * src/LaTeX.C (run): made run_bibtex also depend on files with
3713         extension ".bst"
3714         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
3715         are put into the dependency file.
3716
3717         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
3718         the code has shown itself to work
3719         (create_ispell_pipe): removed another warning, added a comment
3720         instead. 
3721
3722         * src/minibuffer.C (ExecutingCB): removed code that has been
3723         commented out a long time
3724
3725         * src/lyxfunc.C (processKeyEvent): removed some very old commented
3726         out code + a warning.
3727
3728         * src/support/lyxstring.h: comment out the three private
3729         operators, when compiling with string ansi conforming compilers
3730         they make problems.
3731
3732         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
3733         unsigned char *.
3734         (pixmapFromBitmapData): change type of bdata to be unsigned char *
3735         (pixmapFromBitmapData): add a reinterpret_cast in the call to
3736         XCreateImage
3737
3738         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
3739         unsigned char *
3740
3741         * src/mathed/math_panel.C (create_math_panel): remove explicit
3742         casts
3743
3744         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
3745         unsigned char *.
3746
3747         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
3748         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
3749         to XCreatePixmapFromBitmapData
3750         (fl_set_bmtable_data): change the last argument to be unsigned
3751         char *
3752         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
3753         and bh to be unsigned int, remove explicit casts in call to
3754         XReadBitmapFileData.
3755
3756         * images/arrows.xbm: made the arrays unsigned char *
3757         * images/varsz.xbm: ditto
3758         * images/misc.xbm: ditto
3759         * images/greek.xbm: ditto
3760         * images/dots.xbm: ditto
3761         * images/brel.xbm: ditto
3762         * images/bop.xbm: ditto
3763
3764         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
3765
3766         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
3767         (LYX_PROG_CXX): added -pedantic to g++ compile options when
3768         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
3769         needed. 
3770         (LYX_CXX_CHEADERS): added <clocale> to the test. 
3771
3772 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
3773
3774         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
3775
3776         * src/support/lyxstring.C (append): fixed something that must be a
3777         bug, rep->assign was used instead of rep->append.
3778
3779         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
3780         and LOstream.h
3781
3782         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
3783         lyx insert double chars. Fix spotted by Kayvan.
3784
3785 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
3786
3787         * Fixed the tth support. I messed up with the Emacs patch apply feature
3788         and omitted the changes in lyxrc.C.
3789
3790 1999-10-22  Juergen Vigna  <jug@sad.it>
3791
3792         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
3793
3794         * src/lyx_cb.C (MenuInsertRef) + 
3795         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
3796         the form cannot be resized under it limits (fixes a segfault)
3797         
3798         * src/lyx.C (create_form_form_ref) +
3799         * forms/lyx.fd: Changed Gravity on name input field so that it is
3800         resized correctly.
3801
3802 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3803
3804         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
3805         <ostream> and <istream>.
3806         
3807         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
3808         whether <fstream> provides the latest standard features, or if we
3809         have an oldstyle library (like in egcs).
3810         (LYX_CXX_STL_STRING): fix the test.
3811
3812         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
3813         code on MODERN_STL_STREAM.
3814
3815         * src/support/lyxstring.h: use L{I,O}stream.h.
3816
3817         * src/support/L{I,O}stream.h: new files, designed to setup
3818         correctly streams for our use
3819           - includes the right header depending on STL capabilities
3820           - puts std::ostream and std::endl (for LOStream.h) or
3821           std::istream (LIStream.h) in toplevel namespace.
3822
3823 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
3824
3825         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
3826         was a bib file that had been changed we ensure that bibtex is run.
3827         (runBibTeX): enhanced to extract the names of the bib files and
3828         getting their absolute path and enter them into the dep file.
3829         (findtexfile): static func that is used to look for tex-files,
3830         checks for absolute patchs and tries also with kpsewhich.
3831         Alternative ways of finding the correct files are wanted. Will
3832         probably be moved.
3833         (do_popen): function that runs a command using popen and returns
3834         the whole output of that command in a string. Should be moved to
3835         somewhere else.
3836
3837         * src/DepTable.[Ch] (extchanged): new function that returns true if a
3838         file with extension ext has changed.
3839
3840         * src/insets/figinset.C: added ifdef guards around the fl_free
3841         code that jug commented out. Now it is commented out when
3842         compiling with XForms == 0.89.
3843
3844         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
3845         to lyxstring.C, and only keep a forward declaration in
3846         lyxstring.h. Simplifies the header file a bit and should help a
3847         bit on compile time too. Also changes to Srep will not mandate a
3848         recompile of code just using string.
3849         (~lyxstring): definition moved here since it uses srep.
3850         (size): definition moved here since it uses srep.
3851
3852         * src/support/lyxstring.h: removed a couple of "inline" that should
3853         not be there.
3854
3855 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3856
3857         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
3858         the 'ob' argument.
3859
3860 1999-10-21  Juergen Vigna  <jug@sad.it>
3861
3862         * src/table.C (SetPWidth): Just a small fix so the alignment is not
3863         set to left if I just remove the width entry (or it is empty).
3864
3865         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
3866         paragraph when having dummy paragraphs.
3867
3868 1999-10-20  Juergen Vigna  <jug@sad.it>
3869
3870         * src/insets/figinset.C: just commented some fl_free_form calls
3871         and added warnings so that this calls should be activated later
3872         again. This avoids for now a segfault, but we have a memory leak!
3873
3874         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
3875         'const char * argument' to 'string argument', this should
3876         fix some Asserts() in lyxstring.C.
3877
3878         * src/lyxfunc.h: Removed the function argAsString(const char *)
3879         as it is not used anymore.
3880
3881 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
3882
3883         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
3884         get instead of >>
3885
3886         * src/Literate.h: some funcs moved from public to private to make
3887         interface clearer. Unneeded args removed.
3888
3889         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
3890         instead of lyxlex.
3891         (scanBuildLogFile): ditto
3892
3893         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
3894         normal TeX Error. Still room for improvement.
3895
3896         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
3897
3898         * src/buffer.C (insertErrors): changes to make the error
3899         desctription show properly.
3900
3901         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
3902         could never happen
3903
3904         * src/support/lyxstring.C (helper): changed to use
3905         sizeof(object->rep->ref).
3906         (operator>>): changed to use a pointer instead.
3907
3908         * src/support/lyxstring.h: changed const reference & to value_type
3909         const & lets see if that helps.
3910
3911 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
3912
3913         * Makefile.am (rpmdist): fixed to have non static package and
3914         verison.
3915
3916         * src/support/lyxstring.C: removed the compilation guards
3917
3918         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
3919         a bit clearer.
3920
3921         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
3922         conditional compile of lyxstring.Ch
3923
3924         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
3925         stupid check, but it is a lot better than the bastring hack. 
3926         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
3927
3928         * several files: changed string::erase into string::clear. Not
3929         really needed.
3930         
3931         * src/chset.C (encodeString): use a char temporary instead
3932
3933         * src/table.C (TexEndOfCell): added tostr around
3934         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
3935         (TexEndOfCell): ditto
3936         (TexEndOfCell): ditto
3937         (TexEndOfCell): ditto
3938         (DocBookEndOfCell): ditto
3939         (DocBookEndOfCell): ditto
3940         (DocBookEndOfCell): ditto
3941         (DocBookEndOfCell): ditto
3942
3943         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
3944
3945         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
3946
3947         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
3948         (MenuBuildProg): added tostr around ret
3949         (MenuRunChktex): added tostr around ret
3950         (DocumentApplyCB): added tostr around ret
3951
3952         * src/chset.C (encodeString): added tostr around t->ic
3953
3954         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
3955         (makeLaTeXFile): added tostr around tocdepth
3956         (makeLaTeXFile): added tostr around ftcound - 1
3957
3958         * src/insets/insetbib.C (setCounter): added tostr around counter.
3959
3960         * src/support/lyxstring.h: added an operator+=(int) to catch more
3961         mistakes. 
3962
3963         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
3964         (lyxstring): We DON'T allow NULL pointers.
3965
3966 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
3967
3968         * src/mathed/math_macro.C (MathMacroArgument::Write,
3969         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
3970         when writing them out.
3971
3972         * src/LString.C: remove, since it is not used anymore.
3973         
3974         * src/support/lyxstring.C: condition the content to
3975         USE_INCLUDED_STRING macro.
3976
3977         * src/mathed/math_symbols.C, src/support/lstrings.C,
3978         src/support/lyxstring.C: add `using' directive to specify what
3979         we need in <algorithm>. I do not think that we need to
3980         conditionalize this, but any thought is appreciated.
3981
3982         * many files: change all callback functions to "C" linkage
3983         functions to please strict C++ compilers like DEC cxx 6.1 in mode
3984         strict_ansi. Those who were static are now global. 
3985             The case of callbacks which are static class members is
3986         trickier, since we have to make C wrappers around them (see
3987         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
3988         did not finish this yet, since it defeats the purpose of
3989         encapsulation, and I am not sure what the best route is.
3990
3991 1999-10-19  Juergen Vigna  <jug@sad.it>
3992
3993         * src/support/lyxstring.C (lyxstring): we permit to have a null
3994         pointer as assignment value and just don't assign it.
3995
3996         * src/vspace.C (nextToken): corrected this function substituting
3997         find_first(_not)_of with find_last_of.
3998
3999         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
4000                 (TableOptCloseCB) (TableSpeCloseCB):
4001         inserted fl_set_focus call for problem with fl_hide_form() in
4002         xforms-0.89.
4003
4004 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4005
4006         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
4007         string. 
4008
4009 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4010
4011         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
4012         LyXLex::next() and not eatline() to get its argument.
4013
4014 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
4015
4016         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
4017         instead, use fstreams for io of the depfile, removed unneeded
4018         functions and variables. 
4019
4020         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
4021         vector instead, removed all functions and variables that is not in
4022         use.
4023
4024 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
4025
4026         * src/buffer.C (insertErrors): use new interface to TeXError
4027
4028         * Makefile.am (rpmdist): added a rpmdist target
4029
4030         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
4031         per Kayvan's instructions.
4032
4033 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4034
4035         * src/Makefile.am: add a definition for localedir, so that locales
4036         are found after installation (Kayvan)
4037
4038 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
4039
4040         * development/.cvsignore: new file.
4041
4042 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4043
4044         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
4045         C++ compiler provides wrappers for C headers and use our alternate
4046         version otherwise.
4047
4048         * configure.in: use LYX_CXX_CHEADERS.
4049
4050         * src/cheader/: new directory, populated with cname headers from
4051         libstdc++-2.8.1. They are a bit old, but probably good enough for
4052         what we want (support compilers who lack them).
4053         
4054         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
4055         from includes. It turns out is was stupid.
4056  
4057 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
4058
4059         * lib/Makefile.am (install-data-local): forgot a ';'
4060         (install-data-local): forgot a '\'
4061         (libinstalldirs): needed after all. reintroduced.
4062
4063 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
4064
4065         * configure.in (AC_OUTPUT): added lyx.spec
4066
4067         * development/lyx.spec: removed file
4068
4069         * development/lyx.spec.in: new file
4070
4071         * po/*.po: merged with lyx.pot becuase of make distcheck
4072         
4073         * lib/Makefile.am (dist-hook): added dist-hook so that
4074         documentation files will be included when doing a make
4075         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
4076         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
4077         conditional later.
4078         more: tried to make install do the right thing, exclude CVS dirs
4079         etc.
4080
4081         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
4082         Path would fit in more nicely.
4083
4084         * all files that used to use pathstack: uses now Path instead.
4085         This change was a lot easier than expected.
4086         
4087         * src/support/path.h: new file
4088
4089         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
4090
4091         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
4092
4093         * src/support/lyxstring.C (getline): Default arg was given for
4094         para 3. removed.
4095
4096         * Configure.cmd: removed file 
4097
4098 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4099
4100         * src/support/DebugStream.[Ch]: remove the explicit std:: before
4101         streams classes and types, add the proper 'using' statements when
4102         MODERN_STL is defined.
4103         
4104         * src/debug.h: move the << operator definition after the inclusion
4105         of DebugStream.h
4106
4107         * src/support/filetools.C: include "LAssert.h", which is needed
4108         later. 
4109
4110         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
4111         to includes. 
4112
4113         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
4114         include "debug.h" to define a proper ostream.
4115
4116 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
4117
4118         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
4119           method to the SystemCall class which can kill a process, but it's
4120           not fully implemented yet.
4121
4122         * src/*.C: Changed Systemcalls::Startscript() to startscript()
4123
4124         * src/support/FileInfo.h: Better documentation  
4125
4126         * src/lyxfunc.C: Added support for buffer-export html
4127         
4128         * src/menus.C: Added Export->As HTML...
4129         
4130         * lib/bind/*.bind: Added short-cut for buffer-export html
4131
4132         * src/lyxrc.*: Added support for new \tth_command
4133         
4134         * lib/lyxrc.example: Added stuff for new \tth_command
4135
4136 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
4137
4138         * lib/Makefile.am (IMAGES): removed images/README
4139         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
4140         installes in correct place. Check permisions is installed
4141         correctly.
4142
4143         * src/LaTeX.C: some no-op changes moved declaration of some
4144         variables around.
4145
4146         * src/LaTeX.h (LATEX_H): changed include guard name
4147
4148 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4149
4150         * lib/reLyX/Makefile.am: install noweb2lyx.
4151
4152         * lib/Makefile.am: install configure. 
4153
4154         * lib/reLyX/configure.in: declare a config aux dir; set package
4155         name to lyx (not sure what the best solution is); generate noweb2lyx.
4156
4157         * lib/layouts/egs.layout: fix the bibliography layout.
4158
4159 1999-10-08  Jürgen Vigna <jug@sad.it>
4160
4161         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
4162         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
4163         it returned without continuing to search the path.
4164         
4165 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
4166
4167         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
4168         also fixes a bug. It is not allowed to do tricks with std::strings
4169         like: string a("hei"); &a[e]; this will not give what you
4170         think... Any reason for the complexity in this func?
4171
4172 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
4173
4174         * Updated README and INSTALL a bit, mostly to check that my
4175         CVS rights are correctly set up.
4176
4177 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
4178
4179         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
4180         does not allow '\0' chars but lyxstring and std::string does.
4181
4182 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
4183
4184         * autogen.sh (AUTOCONF): let the autogen script create the
4185         POTFILES.in file too. POTFILES.in should perhaps now not be
4186         included in the cvs module.
4187
4188         * some more files changed to use C++ includes instead of C ones.
4189
4190         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
4191         not assigned.
4192         (Reread): added tostr to nlink. buggy output otherwise.
4193         (Reread): added a string() around szMode when assigning to Buffer,
4194         without this I got a log of garbled info strings.
4195
4196         * acconfig.h: commented out the PTR_AS_INT macros. They should not
4197         be needed.
4198
4199         * I have added several ostream & operator<<(ostream &, some_type)
4200         functions. This has been done to avoid casting and warnings when
4201         outputting enums to lyxerr. This as thus eliminated a lot of
4202         explicit casts and has made the code clearer. Among the enums
4203         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
4204         mathed enums, some font enum the Debug::type enum. 
4205
4206         * src/support/lyxstring.h (clear): missing method. equivalent of
4207         erase(0, npos).
4208
4209         * all files that contained "stderr": rewrote constructs that used
4210         stderr to use lyxerr instead. (except bmtable)
4211
4212         * src/support/DebugStream.h (level): and the passed t with
4213         Debug::ANY to avoid spurious bits set.
4214
4215         * src/debug.h (Debug::type value): made it accept strings of the
4216         type INFO,INIT,KEY.
4217
4218         * configure.in (Check for programs): Added a check for kpsewhich,
4219         the latex generation will use this later to better the dicovery of
4220         all used files. 
4221
4222         * src/BufferView.C (create_view): we don't need to cast this to
4223         (void*) that is done automatically.
4224         (WorkAreaButtonPress): removed some dead code.
4225
4226 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4227
4228         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
4229         is not overwritten when translated (David Sua'rez de Lis).
4230
4231         * lib/CREDITS: Added David Sua'rez de Lis
4232
4233         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
4234
4235         * src/bufferparams.C (BufferParams): default input encoding is now
4236         "latin1" 
4237
4238         * acinclude.m4 (cross_compiling): comment out macro
4239         LYX_GXX_STRENGTH_REDUCE. 
4240
4241         * acconfig.h: make sure that const is not defined (to empty) when
4242         we are compiling C++. Remove commented out code using SIZEOF_xx
4243         macros.
4244         
4245         * configure.in : move the test for const and inline as late as
4246         possible so that these C tests do not interefere with C++ ones.
4247         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
4248         has not been proven. 
4249
4250 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
4251
4252         * src/table.C (getDocBookAlign): remove bad default value for
4253         isColumn parameter.
4254
4255         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
4256         shortcut. 
4257         (ShowFileMenu2): ditto.
4258
4259         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
4260         of files to ignore.
4261
4262 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
4263
4264         * Most files: finished the change from the old error code to use
4265         DebugStream for all lyxerr debugging. Only minor changes remain
4266         (e.g. the setting of debug levels using strings instead of number) 
4267
4268 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
4269
4270         * src/layout.C (Add): Changed to use compare_no_case instead of
4271         strcasecmp.
4272
4273         * src/FontInfo.C: changed loop variable type too string::size_type.
4274
4275 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
4276
4277         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
4278         set ETAGS_ARGS to --c++ 
4279
4280 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
4281
4282         * src/table.C (DocBookEndOfCell): commented out two unused variables
4283
4284         * src/paragraph.C: commented out four unused variables. 
4285
4286         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
4287         insed a if clause with type string::size_type.
4288
4289         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
4290         string::size_type.
4291
4292         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
4293
4294         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
4295         variable, also changed loop to go from 0 to lenght + 1, instead of
4296         -1 to length. This should be correct.
4297
4298         * src/LaTeX.C (scanError): use string::size_type as loop variable
4299         type.
4300
4301         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
4302         (l.896) since y_tmp and row was not used anyway.
4303
4304         * src/insets/insetref.C (escape): use string::size_type as loop
4305         variable type.
4306
4307         * src/insets/insetquotes.C (Width): use string::size_type as loop
4308         variable type.
4309         (Draw): use string::size_type as loop variable type.
4310
4311         * src/insets/insetlatexaccent.C (checkContents): use
4312         string::size_type as loop variable type.
4313
4314         * src/insets/insetlabel.C (escape): use string::size_type as loop
4315         variable type.
4316
4317         * src/insets/insetinfo.C: added an extern for current_view.
4318
4319         * src/insets/insetcommand.C (scanCommand): use string::size_type
4320         as loop variable type.
4321
4322         * most files: removed the RCS tags. With them we had to recompile
4323         a lot of files after a simple cvs commit. Also we have never used
4324         them for anything meaningful. 
4325
4326         * most files: tags-query-replace NULL 0. As adviced several plases
4327         we now use "0" instead of "NULL" in our code. 
4328
4329         * src/support/filetools.C (SpaceLess): use string::size_type as
4330         loop variable type.
4331
4332 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
4333
4334         * src/paragraph.C: fixed up some more string stuff.
4335
4336 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
4337
4338         * src/support/filetools.h: make modestr a std::string.
4339
4340         * src/filetools.C (GetEnv): made ch really const.
4341
4342         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
4343         made code that used these use max/min from <algorithm> instead.
4344
4345         * changed several c library include files to their equivalent c++
4346         library include files. All is not changed yet.
4347
4348         * created a support subdir in src, put lyxstring and lstrings
4349         there + the extra files atexit, fileblock, strerror. Created
4350         Makefile.am. edited configure.in and src/Makefile.am to use this
4351         new subdir. More files moved to support.
4352
4353         * imported som of the functions from repository lyx, filetools
4354         
4355         * ran tags-query-replace on LString -> string, corrected the bogus
4356         cases. Tried to make use of lstrings.[hC], debugged a lot. There
4357         is still some errors in there. This is errors where too much or
4358         too litle get deleted from strings (string::erase, string::substr,
4359         string::replace), there can also be some off by one errors, or
4360         just plain wrong use of functions from lstrings. Viewing of quotes
4361         is wrong. 
4362
4363         * LyX is now running fairly well with string, but there are
4364         certainly some bugs yet (see above) also string is quite different
4365         from LString among others in that it does not allow null pointers
4366         passed in and will abort if it gets any.
4367         
4368         * Added the revtex4 files I forgot when setting up the repository.
4369
4370 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
4371
4372         * All over: Tried to clean everything up so that only the files
4373           that we really need are included in the cvs repository.
4374         * Switched to use automake.
4375         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
4376         * Install has not been checked.
4377
4378 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
4379
4380         * po/pt.po: Three errors:
4381                l.533 and l.538 format specification error
4382                l. 402 duplicate entry, I just deleted it.
4383