]> git.lyx.org Git - lyx.git/blob - ChangeLog
Better support for various streams implementations
[lyx.git] / ChangeLog
1 1999-10-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
2
3         * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
4         <ostream> and <istream>.
5         
6         * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
7         whether <fstream> provides the latest standard features, or if we
8         have an oldstyle library (like in egcs).
9         (LYX_CXX_STL_STRING): fix the test.
10
11         * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
12         code on MODERN_STL_STREAM.
13
14         * src/support/lyxstring.h: use L{I,O}stream.h.
15
16         * src/support/L{I,O}stream.h: new files, designed to setup
17         correctly streams for our use
18           - includes the right header depending on STL capabilities
19           - puts std::ostream and std::endl (for LOStream.h) or
20           std::istream (LIStream.h) in toplevel namespace.
21
22 1999-10-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
23
24         * src/insets/figinset.C: added ifdef guards around the fl_free
25         code that jug commented out. Now it is commented out when
26         compiling with XForms == 0.89.
27
28         * src/support/lyxstring.C: moved the definition of lyxstring::Srep
29         to lyxstring.C, and only keep a forward declaration in
30         lyxstring.h. Simplifies the header file a bit and should help a
31         bit on compile time too. Also changes to Srep will not mandate a
32         recompile of code just using string.
33         (~lyxstring): definition moved here since it uses srep.
34         (size): definition moved here since it uses srep.
35
36         * src/support/lyxstring.h: removed a couple of "inline" that should
37         not be there.
38
39 1999-10-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
40
41         * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
42         the 'ob' argument.
43
44 1999-10-21  Juergen Vigna  <jug@sad.it>
45
46         * src/table.C (SetPWidth): Just a small fix so the alignment is not
47         set to left if I just remove the width entry (or it is empty).
48
49         * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
50         paragraph when having dummy paragraphs.
51
52 1999-10-20  Juergen Vigna  <jug@sad.it>
53
54         * src/insets/figinset.C: just commented some fl_free_form calls
55         and added warnings so that this calls should be activated later
56         again. This avoids for now a segfault, but we have a memory leak!
57
58         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
59         'const char * argument' to 'string argument', this should
60         fix some Asserts() in lyxstring.C.
61
62         * src/lyxfunc.h: Removed the function argAsString(const char *)
63         as it is not used anymore.
64
65 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
66
67         * src/support/lyxstring.C (helper): changed to use
68         sizeof(object->rep->ref).
69         (operator>>): changed to use a pointer instead.
70
71         * src/support/lyxstring.h: changed const reference & to value_type
72         const & lets see if that helps.
73
74 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
75
76         * Makefile.am (rpmdist): fixed to have non static package and
77         verison.
78
79         * src/support/lyxstring.C: removed the compilation guards
80
81         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
82         a bit clearer.
83
84         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
85         conditional compile of lyxstring.Ch
86
87         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
88         stupid check, but it is a lot better than the bastring hack. 
89         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
90
91         * several files: changed string::erase into string::clear. Not
92         really needed.
93         
94         * src/chset.C (encodeString): use a char temporary instead
95
96         * src/table.C (TexEndOfCell): added tostr around
97         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
98         (TexEndOfCell): ditto
99         (TexEndOfCell): ditto
100         (TexEndOfCell): ditto
101         (DocBookEndOfCell): ditto
102         (DocBookEndOfCell): ditto
103         (DocBookEndOfCell): ditto
104         (DocBookEndOfCell): ditto
105
106         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
107
108         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
109
110         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
111         (MenuBuildProg): added tostr around ret
112         (MenuRunChktex): added tostr around ret
113         (DocumentApplyCB): added tostr around ret
114
115         * src/chset.C (encodeString): added tostr around t->ic
116
117         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
118         (makeLaTeXFile): added tostr around tocdepth
119         (makeLaTeXFile): added tostr around ftcound - 1
120
121         * src/insets/insetbib.C (setCounter): added tostr around counter.
122
123         * src/support/lyxstring.h: added an operator+=(int) to catch more
124         mistakes. 
125
126         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
127         (lyxstring): We DON'T allow NULL pointers.
128
129 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
130
131         * src/mathed/math_macro.C (MathMacroArgument::Write,
132         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
133         when writing them out.
134
135         * src/LString.C: remove, since it is not used anymore.
136         
137         * src/support/lyxstring.C: condition the content to
138         USE_INCLUDED_STRING macro.
139
140         * src/mathed/math_symbols.C, src/support/lstrings.C,
141         src/support/lyxstring.C: add `using' directive to specify what
142         we need in <algorithm>. I do not think that we need to
143         conditionalize this, but any thought is appreciated.
144
145         * many files: change all callback functions to "C" linkage
146         functions to please strict C++ compilers like DEC cxx 6.1 in mode
147         strict_ansi. Those who were static are now global. 
148             The case of callbacks which are static class members is
149         trickier, since we have to make C wrappers around them (see
150         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
151         did not finish this yet, since it defeats the purpose of
152         encapsulation, and I am not sure what the best route is.
153
154 1999-10-19  Juergen Vigna  <jug@sad.it>
155
156         * src/support/lyxstring.C (lyxstring): we permit to have a null
157         pointer as assignment value and just don't assign it.
158
159         * src/vspace.C (nextToken): corrected this function substituting
160         find_first(_not)_of with find_last_of.
161
162         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
163                 (TableOptCloseCB) (TableSpeCloseCB):
164         inserted fl_set_focus call for problem with fl_hide_form() in
165         xforms-0.89.
166
167 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
168
169         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
170         string. 
171
172 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
173
174         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
175         LyXLex::next() and not eatline() to get its argument.
176
177 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
178
179         * Makefile.am (rpmdist): added a rpmdist target
180
181         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
182         per Kayvan's instructions.
183
184 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
185
186         * src/Makefile.am: add a definition for localedir, so that locales
187         are found after installation (Kayvan)
188
189 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
190
191         * development/.cvsignore: new file.
192
193 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
194
195         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
196         C++ compiler provides wrappers for C headers and use our alternate
197         version otherwise.
198
199         * configure.in: use LYX_CXX_CHEADERS.
200
201         * src/cheader/: new directory, populated with cname headers from
202         libstdc++-2.8.1. They are a bit old, but probably good enough for
203         what we want (support compilers who lack them).
204         
205         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
206         from includes. It turns out is was stupid.
207  
208 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
209
210         * lib/Makefile.am (install-data-local): forgot a ';'
211         (install-data-local): forgot a '\'
212         (libinstalldirs): needed after all. reintroduced.
213
214 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
215
216         * configure.in (AC_OUTPUT): added lyx.spec
217
218         * development/lyx.spec: removed file
219
220         * development/lyx.spec.in: new file
221
222         * po/*.po: merged with lyx.pot becuase of make distcheck
223         
224         * lib/Makefile.am (dist-hook): added dist-hook so that
225         documentation files will be included when doing a make
226         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
227         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
228         conditional later.
229         more: tried to make install do the right thing, exclude CVS dirs
230         etc.
231
232         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
233         Path would fit in more nicely.
234
235         * all files that used to use pathstack: uses now Path instead.
236         This change was a lot easier than expected.
237         
238         * src/support/path.h: new file
239
240         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
241
242         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
243
244         * src/support/lyxstring.C (getline): Default arg was given for
245         para 3. removed.
246
247         * Configure.cmd: removed file 
248
249 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
250
251         * src/support/DebugStream.[Ch]: remove the explicit std:: before
252         streams classes and types, add the proper 'using' statements when
253         MODERN_STL is defined.
254         
255         * src/debug.h: move the << operator definition after the inclusion
256         of DebugStream.h
257
258         * src/support/filetools.C: include "LAssert.h", which is needed
259         later. 
260
261         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
262         to includes. 
263
264         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
265         include "debug.h" to define a proper ostream.
266
267 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
268
269         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
270           method to the SystemCall class which can kill a process, but it's
271           not fully implemented yet.
272
273         * src/*.C: Changed Systemcalls::Startscript() to startscript()
274
275         * src/support/FileInfo.h: Better documentation  
276
277         * src/lyxfunc.C: Added support for buffer-export html
278         
279         * src/menus.C: Added Export->As HTML...
280         
281         * lib/bind/*.bind: Added short-cut for buffer-export html
282
283         * src/lyxrc.*: Added support for new \tth_command
284         
285         * lib/lyxrc.example: Added stuff for new \tth_command
286
287 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
288
289         * lib/Makefile.am (IMAGES): removed images/README
290         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
291         installes in correct place. Check permisions is installed
292         correctly.
293
294         * src/LaTeX.C: some no-op changes moved declaration of some
295         variables around.
296
297         * src/LaTeX.h (LATEX_H): changed include guard name
298
299 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
300
301         * lib/reLyX/Makefile.am: install noweb2lyx.
302
303         * lib/Makefile.am: install configure. 
304
305         * lib/reLyX/configure.in: declare a config aux dir; set package
306         name to lyx (not sure what the best solution is); generate noweb2lyx.
307
308         * lib/layouts/egs.layout: fix the bibliography layout.
309
310 1999-10-08  Jürgen Vigna <jug@sad.it>
311
312         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
313         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
314         it returned without continuing to search the path.
315         
316 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
317
318         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
319         also fixes a bug. It is not allowed to do tricks with std::strings
320         like: string a("hei"); &a[e]; this will not give what you
321         think... Any reason for the complexity in this func?
322
323 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
324
325         * Updated README and INSTALL a bit, mostly to check that my
326         CVS rights are correctly set up.
327
328 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
329
330         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
331         does not allow '\0' chars but lyxstring and std::string does.
332
333 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
334
335         * autogen.sh (AUTOCONF): let the autogen script create the
336         POTFILES.in file too. POTFILES.in should perhaps now not be
337         included in the cvs module.
338
339         * some more files changed to use C++ includes instead of C ones.
340
341         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
342         not assigned.
343         (Reread): added tostr to nlink. buggy output otherwise.
344         (Reread): added a string() around szMode when assigning to Buffer,
345         without this I got a log of garbled info strings.
346
347         * acconfig.h: commented out the PTR_AS_INT macros. They should not
348         be needed.
349
350         * I have added several ostream & operator<<(ostream &, some_type)
351         functions. This has been done to avoid casting and warnings when
352         outputting enums to lyxerr. This as thus eliminated a lot of
353         explicit casts and has made the code clearer. Among the enums
354         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
355         mathed enums, some font enum the Debug::type enum. 
356
357         * src/support/lyxstring.h (clear): missing method. equivalent of
358         erase(0, npos).
359
360         * all files that contained "stderr": rewrote constructs that used
361         stderr to use lyxerr instead. (except bmtable)
362
363         * src/support/DebugStream.h (level): and the passed t with
364         Debug::ANY to avoid spurious bits set.
365
366         * src/debug.h (Debug::type value): made it accept strings of the
367         type INFO,INIT,KEY.
368
369         * configure.in (Check for programs): Added a check for kpsewhich,
370         the latex generation will use this later to better the dicovery of
371         all used files. 
372
373         * src/BufferView.C (create_view): we don't need to cast this to
374         (void*) that is done automatically.
375         (WorkAreaButtonPress): removed some dead code.
376
377 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
378
379         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
380         is not overwritten when translated (David Sua'rez de Lis).
381
382         * lib/CREDITS: Added David Sua'rez de Lis
383
384         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
385
386         * src/bufferparams.C (BufferParams): default input encoding is now
387         "latin1" 
388
389         * acinclude.m4 (cross_compiling): comment out macro
390         LYX_GXX_STRENGTH_REDUCE. 
391
392         * acconfig.h: make sure that const is not defined (to empty) when
393         we are compiling C++. Remove commented out code using SIZEOF_xx
394         macros.
395         
396         * configure.in : move the test for const and inline as late as
397         possible so that these C tests do not interefere with C++ ones.
398         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
399         has not been proven. 
400
401 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
402
403         * src/table.C (getDocBookAlign): remove bad default value for
404         isColumn parameter.
405
406         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
407         shortcut. 
408         (ShowFileMenu2): ditto.
409
410         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
411         of files to ignore.
412
413 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
414
415         * Most files: finished the change from the old error code to use
416         DebugStream for all lyxerr debugging. Only minor changes remain
417         (e.g. the setting of debug levels using strings instead of number) 
418
419 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
420
421         * src/layout.C (Add): Changed to use compare_no_case instead of
422         strcasecmp.
423
424         * src/FontInfo.C: changed loop variable type too string::size_type.
425
426 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
427
428         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
429         set ETAGS_ARGS to --c++ 
430
431 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
432
433         * src/table.C (DocBookEndOfCell): commented out two unused variables
434
435         * src/paragraph.C: commented out four unused variables. 
436
437         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
438         insed a if clause with type string::size_type.
439
440         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
441         string::size_type.
442
443         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
444
445         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
446         variable, also changed loop to go from 0 to lenght + 1, instead of
447         -1 to length. This should be correct.
448
449         * src/LaTeX.C (scanError): use string::size_type as loop variable
450         type.
451
452         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
453         (l.896) since y_tmp and row was not used anyway.
454
455         * src/insets/insetref.C (escape): use string::size_type as loop
456         variable type.
457
458         * src/insets/insetquotes.C (Width): use string::size_type as loop
459         variable type.
460         (Draw): use string::size_type as loop variable type.
461
462         * src/insets/insetlatexaccent.C (checkContents): use
463         string::size_type as loop variable type.
464
465         * src/insets/insetlabel.C (escape): use string::size_type as loop
466         variable type.
467
468         * src/insets/insetinfo.C: added an extern for current_view.
469
470         * src/insets/insetcommand.C (scanCommand): use string::size_type
471         as loop variable type.
472
473         * most files: removed the RCS tags. With them we had to recompile
474         a lot of files after a simple cvs commit. Also we have never used
475         them for anything meaningful. 
476
477         * most files: tags-query-replace NULL 0. As adviced several plases
478         we now use "0" instead of "NULL" in our code. 
479
480         * src/support/filetools.C (SpaceLess): use string::size_type as
481         loop variable type.
482
483 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
484
485         * src/paragraph.C: fixed up some more string stuff.
486
487 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
488
489         * src/support/filetools.h: make modestr a std::string.
490
491         * src/filetools.C (GetEnv): made ch really const.
492
493         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
494         made code that used these use max/min from <algorithm> instead.
495
496         * changed several c library include files to their equivalent c++
497         library include files. All is not changed yet.
498
499         * created a support subdir in src, put lyxstring and lstrings
500         there + the extra files atexit, fileblock, strerror. Created
501         Makefile.am. edited configure.in and src/Makefile.am to use this
502         new subdir. More files moved to support.
503
504         * imported som of the functions from repository lyx, filetools
505         
506         * ran tags-query-replace on LString -> string, corrected the bogus
507         cases. Tried to make use of lstrings.[hC], debugged a lot. There
508         is still some errors in there. This is errors where too much or
509         too litle get deleted from strings (string::erase, string::substr,
510         string::replace), there can also be some off by one errors, or
511         just plain wrong use of functions from lstrings. Viewing of quotes
512         is wrong. 
513
514         * LyX is now running fairly well with string, but there are
515         certainly some bugs yet (see above) also string is quite different
516         from LString among others in that it does not allow null pointers
517         passed in and will abort if it gets any.
518         
519         * Added the revtex4 files I forgot when setting up the repository.
520
521 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
522
523         * All over: Tried to clean everything up so that only the files
524           that we really need are included in the cvs repository.
525         * Switched to use automake.
526         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
527         * Install has not been checked.
528
529 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
530
531         * po/pt.po: Three errors:
532                l.533 and l.538 format specification error
533                l. 402 duplicate entry, I just deleted it.
534