]> git.lyx.org Git - features.git/blob - ChangeLog
The usual set of changes for DEC cxx after Lars' work :)
[features.git] / ChangeLog
1 1999-11-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2
3         * src/vc-backend.C, src/LaTeXFeatures.h, 
4           src/support/LRegex.C, src/support/LRegex.h: add a few "using" 
5         statements to bring templates to global namespace.
6
7 1999-11-10  Lars Gullik Bjønnes  <larsbj@lyx.org>
8
9         * src/support/lyxstring.C (operator[] const): make it standard
10         conforming. 
11
12         * src/minibuffer.C (Init): changed to reflect that more
13         information is given from the lyxvc and need not be provided here.
14
15         * src/lyxvc.[Ch]: rewrote to use the vc-backend.
16         
17         * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
18
19         * src/LyXView.C (UpdateTimerCB): use static_cast
20         (KeyPressMask_raw_callback): ditto
21
22         * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
23         buffer_, a lot of changes because of this. currentBuffer() ->
24         buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
25         also changes to other files because of this.
26
27 1999-11-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
28
29         * src/vc-backend.[Ch]: new files. The backends for vc handling,
30         have no support for RCS and partial support for CVS, will be
31         improved later.
32         
33         * src/insets/ several files: changes because of function name
34         changes in Bufferview and LyXView.
35         
36         * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
37
38         * src/support/LSubstring.[Ch]: new files. These implement a
39         Substring that can be very convenient to use. i.e. is this
40         possible:
41         string a = "Mary had a little sheep";
42         Substring(a, "sheep") = "lamb";
43         a is now "Mary has a little lamb".
44
45         * src/support/LRegex.[Ch]: a regex class that can be used to pick
46         out patterns and subpatterns of strings. It is used by LSubstring
47         and also by vc-backend.C
48         
49         * src/support/lyxstring.C: went over all the assertions used and
50         tried to correct the wrong ones and flag which of them is required
51         by the standard. some bugs found because of this. Also removed a
52         couple of assertions.
53
54         * src/support/Makefile.am (libsupport_a_SOURCES): added
55         LSubstring.[Ch] and LRegex.[Ch]
56
57         * src/support/FileInfo.h: have struct stat buf as an object and
58         not a pointer to one, some changes because of this.
59
60         * src/LaTeXFeatures.C (getTClassPreamble): also use the
61         information in layout when addint he layouts preamble to the
62         textclass preamble.
63
64         * src/LaTeXFeatures.h: use a vector<bool> to store the layout
65         usage in.
66
67         * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
68         because of bug in OS/2.
69
70 1999-11-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
71
72         * lib/layouts/lyxmacros.inc (lyxcode): set the font with
73         \verbatim@font instead of \ttfamily, so that it can be redefined.
74
75         * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
76           src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
77           src/layout.h, src/text2.C: add 'using' directive to bring the
78         STL templates we need from the std:: namespace to the global one.
79         Needed by DEC cxx in strict ansi mode.
80
81         * src/support/LIstream.h,src/support/LOstream.h,
82           src/support/lyxstring.h,src/table.h,
83           src/lyxlookup.h: do not include <config.h> in header
84         files. This should be done in the .C files only.
85
86         * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
87         (from Kayvan).
88         
89
90 1999-11-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
91
92         * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
93         from Kayvan to fix the tth invokation.
94
95         * development/lyx.spec.in: updates from Kayvan to reflect the
96         changes of file names.
97
98 1999-11-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
99
100         * src/text2.C (InsertStringB): use std::copy
101         (InsertStringA): use std::copy
102
103         * src/bufferlist.C: use a vector to store the buffers in. This is
104         an internal change and should not affect any other thing.
105         
106         * src/BufferView.C (waitForX): use XSync instead of the lengthy
107         stuff in waitForX.
108
109         * src/text.C (Fill): fix potential bug, one off bug.
110
111 1999-11-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
112
113         * src/Makefile.am (lyx_main.o): add more files it depends on.
114
115         * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
116
117         * src/support/lyxstring.C: use size_t for the reference count,
118         size, reserved memory and xtra.
119         (internal_compare): new private member function. Now the compare
120         functions should work for std::strings that have embedded '\0'
121         characters.
122         (compare): all compare functions rewritten to use
123         internal_compare.
124         
125 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
126
127         * src/support/lyxstring.C (compare): pass c_str()
128         (compare): pass c_str
129         (compare): pass c_str
130
131 1999-11-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
132
133         * src/support/DebugStream.C: <config.h> was not included correctly.
134
135         * lib/configure: forgot to re-generate it :( I'll make this file
136         auto generated soon.
137
138 1999-11-03  Lars Gullik Bjønnes  <larsbj@lyx.org>
139
140         * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
141         is used.
142
143         * src/support/lyxstring.C: some changes from length() to rep->sz.
144         avoids a function call.
145
146         * src/support/filetools.C (SpaceLess): yet another version of the
147         algorithm...now per Jean-Marc's suggestions.
148
149 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
150
151         * src/layout.C (less_textclass_desc): functor for use in sorting
152         of textclasses. 
153         (LyXTextClass::Read): sort the textclasses after reading.
154         
155         * src/support/filetools.C (SpaceLess): new version of the
156         SpaceLess functions. What problems does this one give? Please
157         report.
158
159         * images/banner_bw.xbm: made the arrays unsigned char *
160
161 1999-11-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
162
163         * src/support/lyxstring.C (find): remove bogus assertion in the
164         two versions of find where this has not been done yet.
165
166         * src/support/lyxlib.h: add missing int return type to
167         lyx::chdir(). 
168
169         * src/menus.C (ShowFileMenu): disable exporting to html if no
170         html export command is present.
171
172         * config/lib_configure.m4: add a test for an HTML converter. The
173         programs checked for are, in this order: tth, latex2html and
174         hevea. 
175
176         * lib/configure: generated from config/lib_configure.m4.
177
178         * src/lyxfunc.C (Dispatch): update and improve the execution of an
179         html converter. The parameters are now passed through $$FName and
180         $$OutName, instead of standard input/output.
181
182         * src/lyxrc.{C,h}: rename \tth_command to \html_command.
183
184         * lib/lyxrc.example: update description of \html_command. 
185         add "quotes" around \screen_font_xxx font setting examples to help
186         people who use fonts with spaces in their names.
187
188 1999-11-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
189
190         * Distribution files: updates for v1.1.2
191
192         * src/support/lyxstring.C (find): remove bogus assert and return
193         npos for the same condition.
194
195 1999-11-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
196
197         * added patch for OS/2 from SMiyata.
198
199 1999-10-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
200
201         * src/text2.C (CutSelection): make space_wrapped a bool
202         (CutSelection): dont declare int i until we have to.
203         (alphaCounter): return a char const *.
204
205 1999-10-28  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
206
207         * src/support/syscall.C (Systemcalls::kill): 
208           src/support/filetools.C (PutEnv, PutEnvPath): 
209           src/lyx_cb.C (addNewlineAndDepth): 
210           src/FontInfo.C (FontInfo::resize): condition some #warning
211         directives with WITH_WARNINGS.
212         
213
214 1999-10-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
215
216         * src/layout.[Ch] + several files: access to class variables
217         limited and made accessor functions instead a lot of code changed
218         becuase of this. Also instead of returning pointers often a const
219         reference is returned instead.
220         
221         * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
222
223         * src/Makefile.am (dist-hook): added used to remove the CVS from
224         cheaders upon creating a dist
225         (EXTRA_DIST): added cheaders
226
227         * src/support/lstrings.C (tostr(char)): fix it to handle param as
228         a character not as a small integer. 
229
230         * src/support/lyxstring.C (find): removed Assert and added i >=
231         rep->sz to the first if.
232
233 1999-10-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
234
235         * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
236         src/LyXView.C src/buffer.C src/bufferparams.C
237         src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C 
238         src/text2.C src/insets/insetinclude.C:
239         lyxlayout renamed to textclasslist.
240
241         * src/layout.C: some lyxerr changes.
242
243         * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
244         LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
245         (LyXLayoutList): removed all traces of this class.
246         (LyXTextClass::Read): rewrote LT_STYLE
247         (LyXTextClass::hasLayout): new function
248         (LyXTextClass::GetLayout): rewritten to return an iterator + has
249         both const and nonconst version.
250         (LyXTextClass::delete_layout): new function.
251         (LyXTextClassList::Style): bug fix. do the right thing if layout
252         is to big.
253         (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
254         (LyXTextClassList::NameOfLayout): ditto 
255         (LyXTextClassList::Load): ditto
256
257         * src/buffer.C (makeLaTeXFile): new access to layoutlist
258
259         * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
260
261         * src/LyXAction.C (LookupFunc): added a workaround for sun
262         compiler, on the other hand...we don't know if the current code
263         compiles on sun at all...
264
265         * src/support/filetools.C (CleanupPath): subst fix
266
267         * src/insets/insetbib.C (delDatabase): subst fix, this looks
268         _really_ weird.
269
270         * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
271         complained about this one?
272
273         * src/insets/insetinclude.C (Latex): subst fix
274
275         * src/insets/insetbib.C (getKeys): subst fix
276
277         * src/LyXSendto.C (SendtoApplyCB): subst fix
278
279         * src/lyx_main.C (init): subst fix
280
281         * src/layout.C (Read): subst fix
282
283         * src/lyx_sendfax_main.C (button_send): subst fix
284
285         * src/buffer.C (RoffAsciiTable): subst fix
286
287         * src/lyx_cb.C (MenuFax): subst fix
288         (PrintApplyCB): subst fix
289
290 1999-10-26  Juergen Vigna  <jug@sad.it>
291
292         * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
293
294         (Read): Cleaned up this code so now we read only format vestion >= 5
295
296 1999-10-26  Lars Gullik Bjønnes  <larsbj@lyx.org>
297
298         * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
299         come nobody has complained about this one?
300
301         * src/insets/insetinclude.C (Latex): subst fix
302
303         * src/insets/insetbib.C (getKeys): subst fix
304
305         * src/lyx_main.C (init): subst fix
306
307         * src/layout.C (Read): subst fix
308
309         * src/buffer.C (RoffAsciiTable): subst fix
310
311         * src/lyx_cb.C (MenuFax): subst fix.
312
313         * src/layout.[hC] + some other files: rewrote to use
314         std::container to store textclasses and layouts in.
315         Simplified, removed a lot of code. Make all classes
316         assignable. Further simplifications and review of type
317         use still to be one. 
318
319         * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
320         lastfiles to create the lastfiles partr of the menu.
321
322         * src/lastfiles.[Ch]: rewritten to use deque to store the
323         lastfiles in. Uses fstream for reading and writing. Simplifies
324         code.
325
326         * src/support/syscall.C: remove explicit cast.
327
328         * src/BufferView.C (CursorToggleCB): removed code snippets that
329         were commented out.
330         use explicat C++ style casts instead of C style casts. also use
331         u_vdata instea of passing pointers in longs.
332
333         * src/PaperLayout.C: removed code snippets that were commented out.
334
335         * src/lyx_gui_misc.C: removed code snippets that were commented out. 
336
337         * src/lyx_main.C: removed code snippets that wer commented out.
338
339         * src/paragraph.C: removed code snippets that were commented out.
340
341         * src/lyxvc.C (logClose): use static_cast
342         (logUpdate): ditto
343         (viewLog): remove explicit cast to void*
344         (showLog): removed old commented code
345
346         * src/menus.C: use static_cast instead of C style casts. use
347         u_vdata instead of u_ldata. remove explicit cast to (long) for
348         pointers. Removed old code that was commented out.
349
350         * src/insets/inset.C: removed old commented func
351
352         * src/insets/insetref.C (InsetRef): removed old code that had been
353         commented out for a long time.
354         (Edit): ditto
355         (escape): removed C style cast
356
357         * src/insets/insetlatexaccent.C (Draw): removed old commented code
358
359         * src/insets/insetlatex.C (Draw): removed old commented code
360         (Read): rewritten to use string
361
362         * src/insets/insetlabel.C (escape): removed C style cast
363
364         * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
365
366         * src/insets/insetindex.C: use static_cast and u_vdata, removed
367         old commented code.
368
369         * src/insets/insetinclude.h: removed a couple of stupid bools
370
371         * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
372         (Clone): remove C style cast
373         (getKeys): changed list to lst because of std::list
374
375         * src/insets/inseterror.C (Draw): removed som old commented code.
376
377         * src/insets/insetcommand.C (Draw): removed some old commented code.
378
379         * src/insets/insetbib.C (bibitem_cb): removed code that has been
380         commented out forever.
381         (bibitem_cb): use static_cast instead of C style cast
382         use of vdata changed to u_vdata.
383
384         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
385         parameter.
386         (CloseUrlCB): use static_cast instead of C style cast.
387         (CloseUrlCB): added a fl_free form...it seemed to be missing.
388
389         * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
390         (C_InsetInfo_CloseInfoCB): forward the ob parameter
391         (CloseInfoCB): static_cast from ob->u_vdata instead.
392         (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
393         instead. 
394
395         * src/insets/inseterror.C (Edit): pass object in u_vdata instead
396         (C_InsetError_CloseErrorCB): forward the ob parameter
397         (CloseErrorCB): static_cast from ob->u_vdata instead.
398
399         * src/vspace.h: include LString.h since we use string in this class.
400
401         * src/vspace.C (lyx_advance): changed name from advance because of
402         nameclash with stl. And since we cannot use namespaces yet...I
403         used a lyx_ prefix instead. Expect this to change when we begin
404         using namespaces.
405
406         * src/BufferView.[Ch] (BufferView::~BufferView): removed 
407
408         * src/BackStack.h: rewrote to use std::stack. made BackStackItem
409         and removed now defunct constructor and deconstructor.
410
411         * src/BufferView.h: have backstack as a object not as a pointer.
412         removed initialization from constructor. added include for BackStack 
413
414         * development/lyx.spec.in (%build): add CFLAGS also.
415
416         * src/screen.C (drawFrame): removed another warning.
417
418 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
419
420         * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
421         OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
422         README and ANNOUNCE a bit for the next release. More work is
423         needed, of course.
424
425         * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
426         unbreakable if we are in freespacing mode (LyX-Code), but not in
427         latex mode.
428
429 1999-10-25  Lars Gullik Bjønnes  <larsbj@lyx.org>
430
431         * src/BackStack.h: fixed initialization order in constructor
432
433         * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
434
435         * acinclude.m4 (VERSION): new rules for when a version is
436         development, added also a variable for prerelease.
437         (warnings): we set with_warnings=yes for prereleases
438         (lyx_opt): prereleases compile with same optimization as development 
439         (CXXFLAGS): only use pedantic if we are a development version 
440
441         * src/BufferView.C (restorePosition): don't do anything if the
442         backstack is empty.
443
444         * src/BackStack.h: added member empty, use this to test if there
445         is anything to pop...
446
447 1999-10-25  Juergen Vigna  <jug@sad.it>
448
449         * forms/form1.fd +
450         * forms/layout_forms.fd +
451         * forms/latexoptions.fd +
452         * lyx.fd: changed for various form resize issues
453
454         * src/mathed/math_panel.C +
455         * src/insets/inseterror.C +
456         * src/insets/insetinfo.C +
457         * src/insets/inseturl.C +
458         * src/insets/inseturl.h +
459         * src/LaTeXLog.C +
460         * src/LyXSendto.C +
461         * src/PaperLayout.C +
462         * src/ParagraphExtra.C +
463         * src/TableLayout.C +
464         * src/form1.C +
465         * src/layout_forms.C +
466         * src/lyx.C +
467         * src/lyx_cb.C +
468         * src/lyx_gui.C +
469         * src/lyxfr0.C +
470         * src/lyxfunc.C +
471         * src/lyxvc.C +
472         * src/menus.C: fixed various resize issues. So now forms can be
473         resized savely or not be resized at all.
474         
475         * forms/form_url.fd +
476         * src/insets/form_url.[Ch]: added because it's cleaner and easier
477         to modify IMO.
478
479         * src/insets/Makefile.am: added files form_url.[Ch]
480         
481 1999-10-25  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
482
483         * INSTALL: it is now possible to compile LyX with digital C++ 6.1
484         (and presumably 6.2).
485
486         * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
487         menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
488         remaining static member callbacks. 
489
490         * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
491         messages. 
492
493         * src/support/lyxstring.h: declare struct Srep as friend of
494         lyxstring, since DEC cxx complains otherwise.
495
496 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
497
498 1999-10-24  Lars Gullik Bjønnes  <larsbj@lyx.org>
499
500         * src/LaTeX.C (run): made run_bibtex also depend on files with
501         extension ".bst"
502         (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
503         are put into the dependency file.
504
505         * src/spellchecker.C (create_ispell_pipe): removed old #warning,
506         the code has shown itself to work
507         (create_ispell_pipe): removed another warning, added a comment
508         instead. 
509
510         * src/minibuffer.C (ExecutingCB): removed code that has been
511         commented out a long time
512
513         * src/lyxfunc.C (processKeyEvent): removed some very old commented
514         out code + a warning.
515
516         * src/support/lyxstring.h: comment out the three private
517         operators, when compiling with string ansi conforming compilers
518         they make problems.
519
520         * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
521         unsigned char *.
522         (pixmapFromBitmapData): change type of bdata to be unsigned char *
523         (pixmapFromBitmapData): add a reinterpret_cast in the call to
524         XCreateImage
525
526         * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
527         unsigned char *
528
529         * src/mathed/math_panel.C (create_math_panel): remove explicit
530         casts
531
532         * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
533         unsigned char *.
534
535         * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
536         (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
537         to XCreatePixmapFromBitmapData
538         (fl_set_bmtable_data): change the last argument to be unsigned
539         char *
540         (fl_set_bmtable_file): change bdata to unsinged char *, change bw
541         and bh to be unsigned int, remove explicit casts in call to
542         XReadBitmapFileData.
543
544         * images/arrows.xbm: made the arrays unsigned char *
545         * images/varsz.xbm: ditto
546         * images/misc.xbm: ditto
547         * images/greek.xbm: ditto
548         * images/dots.xbm: ditto
549         * images/brel.xbm: ditto
550         * images/bop.xbm: ditto
551
552         * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
553
554         * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed. 
555         (LYX_PROG_CXX): added -pedantic to g++ compile options when
556         with-warnings, removed the __STRING_ANSI__ hack, seems to not be
557         needed. 
558         (LYX_CXX_CHEADERS): added <clocale> to the test. 
559
560 1999-10-23  Lars Gullik Bjønnes  <larsbj@lyx.org>
561
562         * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
563
564         * src/support/lyxstring.C (append): fixed something that must be a
565         bug, rep->assign was used instead of rep->append.
566
567         * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
568         and LOstream.h
569
570         * src/lyxfunc.C (processKeyEvent): removed faulty line that made
571         lyx insert double chars. Fix spotted by Kayvan.
572
573 1999-10-23  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
574
575         * Fixed the tth support. I messed up with the Emacs patch apply feature
576         and omitted the changes in lyxrc.C.
577
578 1999-10-22  Juergen Vigna  <jug@sad.it>
579
580         * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
581
582         * src/lyx_cb.C (MenuInsertRef) + 
583         * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
584         the form cannot be resized under it limits (fixes a segfault)
585         
586         * src/lyx.C (create_form_form_ref) +
587         * forms/lyx.fd: Changed Gravity on name input field so that it is
588         resized correctly.
589
590 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
591
592         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
593         <ostream> and <istream>.
594         
595         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
596         whether <fstream> provides the latest standard features, or if we
597         have an oldstyle library (like in egcs).
598         (LYX_CXX_STL_STRING): fix the test.
599
600         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
601         code on MODERN_STL_STREAM.
602
603         * src/support/lyxstring.h: use L{I,O}stream.h.
604
605         * src/support/L{I,O}stream.h: new files, designed to setup
606         correctly streams for our use
607           - includes the right header depending on STL capabilities
608           - puts std::ostream and std::endl (for LOStream.h) or
609           std::istream (LIStream.h) in toplevel namespace.
610
611 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
612
613         * src/LaTeX.C (run): added a check in 0 sumchange so that if it
614         was a bib file that had been changed we ensure that bibtex is run.
615         (runBibTeX): enhanced to extract the names of the bib files and
616         getting their absolute path and enter them into the dep file.
617         (findtexfile): static func that is used to look for tex-files,
618         checks for absolute patchs and tries also with kpsewhich.
619         Alternative ways of finding the correct files are wanted. Will
620         probably be moved.
621         (do_popen): function that runs a command using popen and returns
622         the whole output of that command in a string. Should be moved to
623         somewhere else.
624
625         * src/DepTable.[Ch] (extchanged): new function that returns true if a
626         file with extension ext has changed.
627
628         * src/insets/figinset.C: added ifdef guards around the fl_free
629         code that jug commented out. Now it is commented out when
630         compiling with XForms == 0.89.
631
632         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
633         to lyxstring.C, and only keep a forward declaration in
634         lyxstring.h. Simplifies the header file a bit and should help a
635         bit on compile time too. Also changes to Srep will not mandate a
636         recompile of code just using string.
637         (~lyxstring): definition moved here since it uses srep.
638         (size): definition moved here since it uses srep.
639
640         * src/support/lyxstring.h: removed a couple of "inline" that should
641         not be there.
642
643 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
644
645         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
646         the 'ob' argument.
647
648 1999-10-21  Juergen Vigna  <jug@sad.it>
649
650         * src/table.C (SetPWidth): Just a small fix so the alignment is not
651         set to left if I just remove the width entry (or it is empty).
652
653         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
654         paragraph when having dummy paragraphs.
655
656 1999-10-20  Juergen Vigna  <jug@sad.it>
657
658         * src/insets/figinset.C: just commented some fl_free_form calls
659         and added warnings so that this calls should be activated later
660         again. This avoids for now a segfault, but we have a memory leak!
661
662         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
663         'const char * argument' to 'string argument', this should
664         fix some Asserts() in lyxstring.C.
665
666         * src/lyxfunc.h: Removed the function argAsString(const char *)
667         as it is not used anymore.
668
669 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
670
671         * src/support/lyxstring.C (getline): reads now _all_ chars. uses
672         get instead of >>
673
674         * src/Literate.h: some funcs moved from public to private to make
675         interface clearer. Unneeded args removed.
676
677         * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
678         instead of lyxlex.
679         (scanBuildLogFile): ditto
680
681         * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
682         normal TeX Error. Still room for improvement.
683
684         * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
685
686         * src/buffer.C (insertErrors): changes to make the error
687         desctription show properly.
688
689         * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
690         could never happen
691
692         * src/support/lyxstring.C (helper): changed to use
693         sizeof(object->rep->ref).
694         (operator>>): changed to use a pointer instead.
695
696         * src/support/lyxstring.h: changed const reference & to value_type
697         const & lets see if that helps.
698
699 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
700
701         * Makefile.am (rpmdist): fixed to have non static package and
702         verison.
703
704         * src/support/lyxstring.C: removed the compilation guards
705
706         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
707         a bit clearer.
708
709         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
710         conditional compile of lyxstring.Ch
711
712         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
713         stupid check, but it is a lot better than the bastring hack. 
714         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
715
716         * several files: changed string::erase into string::clear. Not
717         really needed.
718         
719         * src/chset.C (encodeString): use a char temporary instead
720
721         * src/table.C (TexEndOfCell): added tostr around
722         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
723         (TexEndOfCell): ditto
724         (TexEndOfCell): ditto
725         (TexEndOfCell): ditto
726         (DocBookEndOfCell): ditto
727         (DocBookEndOfCell): ditto
728         (DocBookEndOfCell): ditto
729         (DocBookEndOfCell): ditto
730
731         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
732
733         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
734
735         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
736         (MenuBuildProg): added tostr around ret
737         (MenuRunChktex): added tostr around ret
738         (DocumentApplyCB): added tostr around ret
739
740         * src/chset.C (encodeString): added tostr around t->ic
741
742         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
743         (makeLaTeXFile): added tostr around tocdepth
744         (makeLaTeXFile): added tostr around ftcound - 1
745
746         * src/insets/insetbib.C (setCounter): added tostr around counter.
747
748         * src/support/lyxstring.h: added an operator+=(int) to catch more
749         mistakes. 
750
751         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
752         (lyxstring): We DON'T allow NULL pointers.
753
754 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
755
756         * src/mathed/math_macro.C (MathMacroArgument::Write,
757         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
758         when writing them out.
759
760         * src/LString.C: remove, since it is not used anymore.
761         
762         * src/support/lyxstring.C: condition the content to
763         USE_INCLUDED_STRING macro.
764
765         * src/mathed/math_symbols.C, src/support/lstrings.C,
766         src/support/lyxstring.C: add `using' directive to specify what
767         we need in <algorithm>. I do not think that we need to
768         conditionalize this, but any thought is appreciated.
769
770         * many files: change all callback functions to "C" linkage
771         functions to please strict C++ compilers like DEC cxx 6.1 in mode
772         strict_ansi. Those who were static are now global. 
773             The case of callbacks which are static class members is
774         trickier, since we have to make C wrappers around them (see
775         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
776         did not finish this yet, since it defeats the purpose of
777         encapsulation, and I am not sure what the best route is.
778
779 1999-10-19  Juergen Vigna  <jug@sad.it>
780
781         * src/support/lyxstring.C (lyxstring): we permit to have a null
782         pointer as assignment value and just don't assign it.
783
784         * src/vspace.C (nextToken): corrected this function substituting
785         find_first(_not)_of with find_last_of.
786
787         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
788                 (TableOptCloseCB) (TableSpeCloseCB):
789         inserted fl_set_focus call for problem with fl_hide_form() in
790         xforms-0.89.
791
792 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
793
794         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
795         string. 
796
797 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
798
799         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
800         LyXLex::next() and not eatline() to get its argument.
801
802 1999-10-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
803
804         * src/DepTable.[Ch]: rewritten to store the dependencies in a map
805         instead, use fstreams for io of the depfile, removed unneeded
806         functions and variables. 
807
808         * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
809         vector instead, removed all functions and variables that is not in
810         use.
811
812 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
813
814         * src/buffer.C (insertErrors): use new interface to TeXError
815
816         * Makefile.am (rpmdist): added a rpmdist target
817
818         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
819         per Kayvan's instructions.
820
821 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
822
823         * src/Makefile.am: add a definition for localedir, so that locales
824         are found after installation (Kayvan)
825
826 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
827
828         * development/.cvsignore: new file.
829
830 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
831
832         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
833         C++ compiler provides wrappers for C headers and use our alternate
834         version otherwise.
835
836         * configure.in: use LYX_CXX_CHEADERS.
837
838         * src/cheader/: new directory, populated with cname headers from
839         libstdc++-2.8.1. They are a bit old, but probably good enough for
840         what we want (support compilers who lack them).
841         
842         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
843         from includes. It turns out is was stupid.
844  
845 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
846
847         * lib/Makefile.am (install-data-local): forgot a ';'
848         (install-data-local): forgot a '\'
849         (libinstalldirs): needed after all. reintroduced.
850
851 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
852
853         * configure.in (AC_OUTPUT): added lyx.spec
854
855         * development/lyx.spec: removed file
856
857         * development/lyx.spec.in: new file
858
859         * po/*.po: merged with lyx.pot becuase of make distcheck
860         
861         * lib/Makefile.am (dist-hook): added dist-hook so that
862         documentation files will be included when doing a make
863         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
864         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
865         conditional later.
866         more: tried to make install do the right thing, exclude CVS dirs
867         etc.
868
869         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
870         Path would fit in more nicely.
871
872         * all files that used to use pathstack: uses now Path instead.
873         This change was a lot easier than expected.
874         
875         * src/support/path.h: new file
876
877         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
878
879         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
880
881         * src/support/lyxstring.C (getline): Default arg was given for
882         para 3. removed.
883
884         * Configure.cmd: removed file 
885
886 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
887
888         * src/support/DebugStream.[Ch]: remove the explicit std:: before
889         streams classes and types, add the proper 'using' statements when
890         MODERN_STL is defined.
891         
892         * src/debug.h: move the << operator definition after the inclusion
893         of DebugStream.h
894
895         * src/support/filetools.C: include "LAssert.h", which is needed
896         later. 
897
898         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
899         to includes. 
900
901         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
902         include "debug.h" to define a proper ostream.
903
904 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
905
906         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
907           method to the SystemCall class which can kill a process, but it's
908           not fully implemented yet.
909
910         * src/*.C: Changed Systemcalls::Startscript() to startscript()
911
912         * src/support/FileInfo.h: Better documentation  
913
914         * src/lyxfunc.C: Added support for buffer-export html
915         
916         * src/menus.C: Added Export->As HTML...
917         
918         * lib/bind/*.bind: Added short-cut for buffer-export html
919
920         * src/lyxrc.*: Added support for new \tth_command
921         
922         * lib/lyxrc.example: Added stuff for new \tth_command
923
924 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
925
926         * lib/Makefile.am (IMAGES): removed images/README
927         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
928         installes in correct place. Check permisions is installed
929         correctly.
930
931         * src/LaTeX.C: some no-op changes moved declaration of some
932         variables around.
933
934         * src/LaTeX.h (LATEX_H): changed include guard name
935
936 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
937
938         * lib/reLyX/Makefile.am: install noweb2lyx.
939
940         * lib/Makefile.am: install configure. 
941
942         * lib/reLyX/configure.in: declare a config aux dir; set package
943         name to lyx (not sure what the best solution is); generate noweb2lyx.
944
945         * lib/layouts/egs.layout: fix the bibliography layout.
946
947 1999-10-08  Jürgen Vigna <jug@sad.it>
948
949         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
950         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
951         it returned without continuing to search the path.
952         
953 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
954
955         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
956         also fixes a bug. It is not allowed to do tricks with std::strings
957         like: string a("hei"); &a[e]; this will not give what you
958         think... Any reason for the complexity in this func?
959
960 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
961
962         * Updated README and INSTALL a bit, mostly to check that my
963         CVS rights are correctly set up.
964
965 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
966
967         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
968         does not allow '\0' chars but lyxstring and std::string does.
969
970 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
971
972         * autogen.sh (AUTOCONF): let the autogen script create the
973         POTFILES.in file too. POTFILES.in should perhaps now not be
974         included in the cvs module.
975
976         * some more files changed to use C++ includes instead of C ones.
977
978         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
979         not assigned.
980         (Reread): added tostr to nlink. buggy output otherwise.
981         (Reread): added a string() around szMode when assigning to Buffer,
982         without this I got a log of garbled info strings.
983
984         * acconfig.h: commented out the PTR_AS_INT macros. They should not
985         be needed.
986
987         * I have added several ostream & operator<<(ostream &, some_type)
988         functions. This has been done to avoid casting and warnings when
989         outputting enums to lyxerr. This as thus eliminated a lot of
990         explicit casts and has made the code clearer. Among the enums
991         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
992         mathed enums, some font enum the Debug::type enum. 
993
994         * src/support/lyxstring.h (clear): missing method. equivalent of
995         erase(0, npos).
996
997         * all files that contained "stderr": rewrote constructs that used
998         stderr to use lyxerr instead. (except bmtable)
999
1000         * src/support/DebugStream.h (level): and the passed t with
1001         Debug::ANY to avoid spurious bits set.
1002
1003         * src/debug.h (Debug::type value): made it accept strings of the
1004         type INFO,INIT,KEY.
1005
1006         * configure.in (Check for programs): Added a check for kpsewhich,
1007         the latex generation will use this later to better the dicovery of
1008         all used files. 
1009
1010         * src/BufferView.C (create_view): we don't need to cast this to
1011         (void*) that is done automatically.
1012         (WorkAreaButtonPress): removed some dead code.
1013
1014 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1015
1016         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1017         is not overwritten when translated (David Sua'rez de Lis).
1018
1019         * lib/CREDITS: Added David Sua'rez de Lis
1020
1021         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1022
1023         * src/bufferparams.C (BufferParams): default input encoding is now
1024         "latin1" 
1025
1026         * acinclude.m4 (cross_compiling): comment out macro
1027         LYX_GXX_STRENGTH_REDUCE. 
1028
1029         * acconfig.h: make sure that const is not defined (to empty) when
1030         we are compiling C++. Remove commented out code using SIZEOF_xx
1031         macros.
1032         
1033         * configure.in : move the test for const and inline as late as
1034         possible so that these C tests do not interefere with C++ ones.
1035         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1036         has not been proven. 
1037
1038 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1039
1040         * src/table.C (getDocBookAlign): remove bad default value for
1041         isColumn parameter.
1042
1043         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1044         shortcut. 
1045         (ShowFileMenu2): ditto.
1046
1047         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1048         of files to ignore.
1049
1050 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
1051
1052         * Most files: finished the change from the old error code to use
1053         DebugStream for all lyxerr debugging. Only minor changes remain
1054         (e.g. the setting of debug levels using strings instead of number) 
1055
1056 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
1057
1058         * src/layout.C (Add): Changed to use compare_no_case instead of
1059         strcasecmp.
1060
1061         * src/FontInfo.C: changed loop variable type too string::size_type.
1062
1063 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
1064
1065         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1066         set ETAGS_ARGS to --c++ 
1067
1068 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
1069
1070         * src/table.C (DocBookEndOfCell): commented out two unused variables
1071
1072         * src/paragraph.C: commented out four unused variables. 
1073
1074         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1075         insed a if clause with type string::size_type.
1076
1077         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1078         string::size_type.
1079
1080         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1081
1082         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1083         variable, also changed loop to go from 0 to lenght + 1, instead of
1084         -1 to length. This should be correct.
1085
1086         * src/LaTeX.C (scanError): use string::size_type as loop variable
1087         type.
1088
1089         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1090         (l.896) since y_tmp and row was not used anyway.
1091
1092         * src/insets/insetref.C (escape): use string::size_type as loop
1093         variable type.
1094
1095         * src/insets/insetquotes.C (Width): use string::size_type as loop
1096         variable type.
1097         (Draw): use string::size_type as loop variable type.
1098
1099         * src/insets/insetlatexaccent.C (checkContents): use
1100         string::size_type as loop variable type.
1101
1102         * src/insets/insetlabel.C (escape): use string::size_type as loop
1103         variable type.
1104
1105         * src/insets/insetinfo.C: added an extern for current_view.
1106
1107         * src/insets/insetcommand.C (scanCommand): use string::size_type
1108         as loop variable type.
1109
1110         * most files: removed the RCS tags. With them we had to recompile
1111         a lot of files after a simple cvs commit. Also we have never used
1112         them for anything meaningful. 
1113
1114         * most files: tags-query-replace NULL 0. As adviced several plases
1115         we now use "0" instead of "NULL" in our code. 
1116
1117         * src/support/filetools.C (SpaceLess): use string::size_type as
1118         loop variable type.
1119
1120 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
1121
1122         * src/paragraph.C: fixed up some more string stuff.
1123
1124 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
1125
1126         * src/support/filetools.h: make modestr a std::string.
1127
1128         * src/filetools.C (GetEnv): made ch really const.
1129
1130         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1131         made code that used these use max/min from <algorithm> instead.
1132
1133         * changed several c library include files to their equivalent c++
1134         library include files. All is not changed yet.
1135
1136         * created a support subdir in src, put lyxstring and lstrings
1137         there + the extra files atexit, fileblock, strerror. Created
1138         Makefile.am. edited configure.in and src/Makefile.am to use this
1139         new subdir. More files moved to support.
1140
1141         * imported som of the functions from repository lyx, filetools
1142         
1143         * ran tags-query-replace on LString -> string, corrected the bogus
1144         cases. Tried to make use of lstrings.[hC], debugged a lot. There
1145         is still some errors in there. This is errors where too much or
1146         too litle get deleted from strings (string::erase, string::substr,
1147         string::replace), there can also be some off by one errors, or
1148         just plain wrong use of functions from lstrings. Viewing of quotes
1149         is wrong. 
1150
1151         * LyX is now running fairly well with string, but there are
1152         certainly some bugs yet (see above) also string is quite different
1153         from LString among others in that it does not allow null pointers
1154         passed in and will abort if it gets any.
1155         
1156         * Added the revtex4 files I forgot when setting up the repository.
1157
1158 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
1159
1160         * All over: Tried to clean everything up so that only the files
1161           that we really need are included in the cvs repository.
1162         * Switched to use automake.
1163         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1164         * Install has not been checked.
1165
1166 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
1167
1168         * po/pt.po: Three errors:
1169                l.533 and l.538 format specification error
1170                l. 402 duplicate entry, I just deleted it.
1171