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