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