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