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