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