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