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