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