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