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