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