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