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