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