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