1 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
4 the code has shown itself to work
5 (create_ispell_pipe): removed another warning, added a comment
8 * src/minibuffer.C (ExecutingCB): removed code that has been
9 commented out a long time
11 * src/lyxfunc.C (processKeyEvent): removed some very old commented
14 * src/support/lyxstring.h: comment out the three private
15 operators, when compiling with string ansi conforming compilers
18 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
20 (pixmapFromBitmapData): change type of bdata to be unsigned char *
21 (pixmapFromBitmapData): add a reinterpret_cast in the call to
24 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
27 * src/mathed/math_panel.C (create_math_panel): remove explicit
30 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
33 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
34 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
35 to XCreatePixmapFromBitmapData
36 (fl_set_bmtable_data): change the last argument to be unsigned
38 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
39 and bh to be unsigned int, remove explicit casts in call to
42 * images/arrows.xbm: made the arrays unsigned char *
43 * images/varsz.xbm: ditto
44 * images/misc.xbm: ditto
45 * images/greek.xbm: ditto
46 * images/dots.xbm: ditto
47 * images/brel.xbm: ditto
48 * images/bop.xbm: ditto
50 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
52 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
53 (LYX_PROG_CXX): added -pedantic to g++ compile options when
54 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
56 (LYX_CXX_CHEADERS): added <clocale> to the test.
58 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
60 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
62 * src/support/lyxstring.C (append): fixed something that must be a
63 bug, rep->assign was used instead of rep->append.
65 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
68 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
69 lyx insert double chars. Fix spotted by Kayvan.
71 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
73 * Fixed the tth support. I messed up with the Emacs patch apply feature
74 and omitted the changes in lyxrc.C.
76 1999-10-22 Juergen Vigna <jug@sad.it>
78 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
80 * src/lyx_cb.C (MenuInsertRef) +
81 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
82 the form cannot be resized under it limits (fixes a segfault)
84 * src/lyx.C (create_form_form_ref) +
85 * forms/lyx.fd: Changed Gravity on name input field so that it is
88 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
90 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
91 <ostream> and <istream>.
93 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
94 whether <fstream> provides the latest standard features, or if we
95 have an oldstyle library (like in egcs).
96 (LYX_CXX_STL_STRING): fix the test.
98 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
99 code on MODERN_STL_STREAM.
101 * src/support/lyxstring.h: use L{I,O}stream.h.
103 * src/support/L{I,O}stream.h: new files, designed to setup
104 correctly streams for our use
105 - includes the right header depending on STL capabilities
106 - puts std::ostream and std::endl (for LOStream.h) or
107 std::istream (LIStream.h) in toplevel namespace.
109 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
111 * src/insets/figinset.C: added ifdef guards around the fl_free
112 code that jug commented out. Now it is commented out when
113 compiling with XForms == 0.89.
115 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
116 to lyxstring.C, and only keep a forward declaration in
117 lyxstring.h. Simplifies the header file a bit and should help a
118 bit on compile time too. Also changes to Srep will not mandate a
119 recompile of code just using string.
120 (~lyxstring): definition moved here since it uses srep.
121 (size): definition moved here since it uses srep.
123 * src/support/lyxstring.h: removed a couple of "inline" that should
126 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
128 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
131 1999-10-21 Juergen Vigna <jug@sad.it>
133 * src/table.C (SetPWidth): Just a small fix so the alignment is not
134 set to left if I just remove the width entry (or it is empty).
136 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
137 paragraph when having dummy paragraphs.
139 1999-10-20 Juergen Vigna <jug@sad.it>
141 * src/insets/figinset.C: just commented some fl_free_form calls
142 and added warnings so that this calls should be activated later
143 again. This avoids for now a segfault, but we have a memory leak!
145 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
146 'const char * argument' to 'string argument', this should
147 fix some Asserts() in lyxstring.C.
149 * src/lyxfunc.h: Removed the function argAsString(const char *)
150 as it is not used anymore.
152 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
154 * src/support/lyxstring.C (helper): changed to use
155 sizeof(object->rep->ref).
156 (operator>>): changed to use a pointer instead.
158 * src/support/lyxstring.h: changed const reference & to value_type
159 const & lets see if that helps.
161 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
163 * Makefile.am (rpmdist): fixed to have non static package and
166 * src/support/lyxstring.C: removed the compilation guards
168 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
171 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
172 conditional compile of lyxstring.Ch
174 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
175 stupid check, but it is a lot better than the bastring hack.
176 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
178 * several files: changed string::erase into string::clear. Not
181 * src/chset.C (encodeString): use a char temporary instead
183 * src/table.C (TexEndOfCell): added tostr around
184 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
185 (TexEndOfCell): ditto
186 (TexEndOfCell): ditto
187 (TexEndOfCell): ditto
188 (DocBookEndOfCell): ditto
189 (DocBookEndOfCell): ditto
190 (DocBookEndOfCell): ditto
191 (DocBookEndOfCell): ditto
193 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
195 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
197 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
198 (MenuBuildProg): added tostr around ret
199 (MenuRunChktex): added tostr around ret
200 (DocumentApplyCB): added tostr around ret
202 * src/chset.C (encodeString): added tostr around t->ic
204 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
205 (makeLaTeXFile): added tostr around tocdepth
206 (makeLaTeXFile): added tostr around ftcound - 1
208 * src/insets/insetbib.C (setCounter): added tostr around counter.
210 * src/support/lyxstring.h: added an operator+=(int) to catch more
213 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
214 (lyxstring): We DON'T allow NULL pointers.
216 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
218 * src/mathed/math_macro.C (MathMacroArgument::Write,
219 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
220 when writing them out.
222 * src/LString.C: remove, since it is not used anymore.
224 * src/support/lyxstring.C: condition the content to
225 USE_INCLUDED_STRING macro.
227 * src/mathed/math_symbols.C, src/support/lstrings.C,
228 src/support/lyxstring.C: add `using' directive to specify what
229 we need in <algorithm>. I do not think that we need to
230 conditionalize this, but any thought is appreciated.
232 * many files: change all callback functions to "C" linkage
233 functions to please strict C++ compilers like DEC cxx 6.1 in mode
234 strict_ansi. Those who were static are now global.
235 The case of callbacks which are static class members is
236 trickier, since we have to make C wrappers around them (see
237 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
238 did not finish this yet, since it defeats the purpose of
239 encapsulation, and I am not sure what the best route is.
241 1999-10-19 Juergen Vigna <jug@sad.it>
243 * src/support/lyxstring.C (lyxstring): we permit to have a null
244 pointer as assignment value and just don't assign it.
246 * src/vspace.C (nextToken): corrected this function substituting
247 find_first(_not)_of with find_last_of.
249 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
250 (TableOptCloseCB) (TableSpeCloseCB):
251 inserted fl_set_focus call for problem with fl_hide_form() in
254 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
256 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
259 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
261 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
262 LyXLex::next() and not eatline() to get its argument.
264 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
266 * Makefile.am (rpmdist): added a rpmdist target
268 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
269 per Kayvan's instructions.
271 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
273 * src/Makefile.am: add a definition for localedir, so that locales
274 are found after installation (Kayvan)
276 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
278 * development/.cvsignore: new file.
280 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
282 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
283 C++ compiler provides wrappers for C headers and use our alternate
286 * configure.in: use LYX_CXX_CHEADERS.
288 * src/cheader/: new directory, populated with cname headers from
289 libstdc++-2.8.1. They are a bit old, but probably good enough for
290 what we want (support compilers who lack them).
292 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
293 from includes. It turns out is was stupid.
295 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
297 * lib/Makefile.am (install-data-local): forgot a ';'
298 (install-data-local): forgot a '\'
299 (libinstalldirs): needed after all. reintroduced.
301 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
303 * configure.in (AC_OUTPUT): added lyx.spec
305 * development/lyx.spec: removed file
307 * development/lyx.spec.in: new file
309 * po/*.po: merged with lyx.pot becuase of make distcheck
311 * lib/Makefile.am (dist-hook): added dist-hook so that
312 documentation files will be included when doing a make
313 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
314 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
316 more: tried to make install do the right thing, exclude CVS dirs
319 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
320 Path would fit in more nicely.
322 * all files that used to use pathstack: uses now Path instead.
323 This change was a lot easier than expected.
325 * src/support/path.h: new file
327 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
329 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
331 * src/support/lyxstring.C (getline): Default arg was given for
334 * Configure.cmd: removed file
336 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
338 * src/support/DebugStream.[Ch]: remove the explicit std:: before
339 streams classes and types, add the proper 'using' statements when
340 MODERN_STL is defined.
342 * src/debug.h: move the << operator definition after the inclusion
345 * src/support/filetools.C: include "LAssert.h", which is needed
348 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
351 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
352 include "debug.h" to define a proper ostream.
354 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
356 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
357 method to the SystemCall class which can kill a process, but it's
358 not fully implemented yet.
360 * src/*.C: Changed Systemcalls::Startscript() to startscript()
362 * src/support/FileInfo.h: Better documentation
364 * src/lyxfunc.C: Added support for buffer-export html
366 * src/menus.C: Added Export->As HTML...
368 * lib/bind/*.bind: Added short-cut for buffer-export html
370 * src/lyxrc.*: Added support for new \tth_command
372 * lib/lyxrc.example: Added stuff for new \tth_command
374 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
376 * lib/Makefile.am (IMAGES): removed images/README
377 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
378 installes in correct place. Check permisions is installed
381 * src/LaTeX.C: some no-op changes moved declaration of some
384 * src/LaTeX.h (LATEX_H): changed include guard name
386 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
388 * lib/reLyX/Makefile.am: install noweb2lyx.
390 * lib/Makefile.am: install configure.
392 * lib/reLyX/configure.in: declare a config aux dir; set package
393 name to lyx (not sure what the best solution is); generate noweb2lyx.
395 * lib/layouts/egs.layout: fix the bibliography layout.
397 1999-10-08 Jürgen Vigna <jug@sad.it>
399 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
400 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
401 it returned without continuing to search the path.
403 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
405 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
406 also fixes a bug. It is not allowed to do tricks with std::strings
407 like: string a("hei"); &a[e]; this will not give what you
408 think... Any reason for the complexity in this func?
410 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
412 * Updated README and INSTALL a bit, mostly to check that my
413 CVS rights are correctly set up.
415 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
417 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
418 does not allow '\0' chars but lyxstring and std::string does.
420 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
422 * autogen.sh (AUTOCONF): let the autogen script create the
423 POTFILES.in file too. POTFILES.in should perhaps now not be
424 included in the cvs module.
426 * some more files changed to use C++ includes instead of C ones.
428 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
430 (Reread): added tostr to nlink. buggy output otherwise.
431 (Reread): added a string() around szMode when assigning to Buffer,
432 without this I got a log of garbled info strings.
434 * acconfig.h: commented out the PTR_AS_INT macros. They should not
437 * I have added several ostream & operator<<(ostream &, some_type)
438 functions. This has been done to avoid casting and warnings when
439 outputting enums to lyxerr. This as thus eliminated a lot of
440 explicit casts and has made the code clearer. Among the enums
441 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
442 mathed enums, some font enum the Debug::type enum.
444 * src/support/lyxstring.h (clear): missing method. equivalent of
447 * all files that contained "stderr": rewrote constructs that used
448 stderr to use lyxerr instead. (except bmtable)
450 * src/support/DebugStream.h (level): and the passed t with
451 Debug::ANY to avoid spurious bits set.
453 * src/debug.h (Debug::type value): made it accept strings of the
456 * configure.in (Check for programs): Added a check for kpsewhich,
457 the latex generation will use this later to better the dicovery of
460 * src/BufferView.C (create_view): we don't need to cast this to
461 (void*) that is done automatically.
462 (WorkAreaButtonPress): removed some dead code.
464 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
466 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
467 is not overwritten when translated (David Sua'rez de Lis).
469 * lib/CREDITS: Added David Sua'rez de Lis
471 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
473 * src/bufferparams.C (BufferParams): default input encoding is now
476 * acinclude.m4 (cross_compiling): comment out macro
477 LYX_GXX_STRENGTH_REDUCE.
479 * acconfig.h: make sure that const is not defined (to empty) when
480 we are compiling C++. Remove commented out code using SIZEOF_xx
483 * configure.in : move the test for const and inline as late as
484 possible so that these C tests do not interefere with C++ ones.
485 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
488 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
490 * src/table.C (getDocBookAlign): remove bad default value for
493 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
495 (ShowFileMenu2): ditto.
497 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
500 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
502 * Most files: finished the change from the old error code to use
503 DebugStream for all lyxerr debugging. Only minor changes remain
504 (e.g. the setting of debug levels using strings instead of number)
506 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
508 * src/layout.C (Add): Changed to use compare_no_case instead of
511 * src/FontInfo.C: changed loop variable type too string::size_type.
513 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
515 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
516 set ETAGS_ARGS to --c++
518 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
520 * src/table.C (DocBookEndOfCell): commented out two unused variables
522 * src/paragraph.C: commented out four unused variables.
524 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
525 insed a if clause with type string::size_type.
527 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
530 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
532 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
533 variable, also changed loop to go from 0 to lenght + 1, instead of
534 -1 to length. This should be correct.
536 * src/LaTeX.C (scanError): use string::size_type as loop variable
539 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
540 (l.896) since y_tmp and row was not used anyway.
542 * src/insets/insetref.C (escape): use string::size_type as loop
545 * src/insets/insetquotes.C (Width): use string::size_type as loop
547 (Draw): use string::size_type as loop variable type.
549 * src/insets/insetlatexaccent.C (checkContents): use
550 string::size_type as loop variable type.
552 * src/insets/insetlabel.C (escape): use string::size_type as loop
555 * src/insets/insetinfo.C: added an extern for current_view.
557 * src/insets/insetcommand.C (scanCommand): use string::size_type
558 as loop variable type.
560 * most files: removed the RCS tags. With them we had to recompile
561 a lot of files after a simple cvs commit. Also we have never used
562 them for anything meaningful.
564 * most files: tags-query-replace NULL 0. As adviced several plases
565 we now use "0" instead of "NULL" in our code.
567 * src/support/filetools.C (SpaceLess): use string::size_type as
570 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
572 * src/paragraph.C: fixed up some more string stuff.
574 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
576 * src/support/filetools.h: make modestr a std::string.
578 * src/filetools.C (GetEnv): made ch really const.
580 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
581 made code that used these use max/min from <algorithm> instead.
583 * changed several c library include files to their equivalent c++
584 library include files. All is not changed yet.
586 * created a support subdir in src, put lyxstring and lstrings
587 there + the extra files atexit, fileblock, strerror. Created
588 Makefile.am. edited configure.in and src/Makefile.am to use this
589 new subdir. More files moved to support.
591 * imported som of the functions from repository lyx, filetools
593 * ran tags-query-replace on LString -> string, corrected the bogus
594 cases. Tried to make use of lstrings.[hC], debugged a lot. There
595 is still some errors in there. This is errors where too much or
596 too litle get deleted from strings (string::erase, string::substr,
597 string::replace), there can also be some off by one errors, or
598 just plain wrong use of functions from lstrings. Viewing of quotes
601 * LyX is now running fairly well with string, but there are
602 certainly some bugs yet (see above) also string is quite different
603 from LString among others in that it does not allow null pointers
604 passed in and will abort if it gets any.
606 * Added the revtex4 files I forgot when setting up the repository.
608 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
610 * All over: Tried to clean everything up so that only the files
611 that we really need are included in the cvs repository.
612 * Switched to use automake.
613 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
614 * Install has not been checked.
616 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
618 * po/pt.po: Three errors:
619 l.533 and l.538 format specification error
620 l. 402 duplicate entry, I just deleted it.