1 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
6 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
7 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
8 remaining static member callbacks.
10 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
13 * src/support/lyxstring.h: declare struct Srep as friend of
14 lyxstring, since DEC cxx complains otherwise.
16 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
18 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
19 the code has shown itself to work
20 (create_ispell_pipe): removed another warning, added a comment
23 * src/minibuffer.C (ExecutingCB): removed code that has been
24 commented out a long time
26 * src/lyxfunc.C (processKeyEvent): removed some very old commented
29 * src/support/lyxstring.h: comment out the three private
30 operators, when compiling with string ansi conforming compilers
33 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
35 (pixmapFromBitmapData): change type of bdata to be unsigned char *
36 (pixmapFromBitmapData): add a reinterpret_cast in the call to
39 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
42 * src/mathed/math_panel.C (create_math_panel): remove explicit
45 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
48 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
49 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
50 to XCreatePixmapFromBitmapData
51 (fl_set_bmtable_data): change the last argument to be unsigned
53 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
54 and bh to be unsigned int, remove explicit casts in call to
57 * images/arrows.xbm: made the arrays unsigned char *
58 * images/varsz.xbm: ditto
59 * images/misc.xbm: ditto
60 * images/greek.xbm: ditto
61 * images/dots.xbm: ditto
62 * images/brel.xbm: ditto
63 * images/bop.xbm: ditto
65 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
67 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
68 (LYX_PROG_CXX): added -pedantic to g++ compile options when
69 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
71 (LYX_CXX_CHEADERS): added <clocale> to the test.
73 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
75 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
77 * src/support/lyxstring.C (append): fixed something that must be a
78 bug, rep->assign was used instead of rep->append.
80 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
83 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
84 lyx insert double chars. Fix spotted by Kayvan.
86 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
88 * Fixed the tth support. I messed up with the Emacs patch apply feature
89 and omitted the changes in lyxrc.C.
91 1999-10-22 Juergen Vigna <jug@sad.it>
93 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
95 * src/lyx_cb.C (MenuInsertRef) +
96 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
97 the form cannot be resized under it limits (fixes a segfault)
99 * src/lyx.C (create_form_form_ref) +
100 * forms/lyx.fd: Changed Gravity on name input field so that it is
103 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
105 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
106 <ostream> and <istream>.
108 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
109 whether <fstream> provides the latest standard features, or if we
110 have an oldstyle library (like in egcs).
111 (LYX_CXX_STL_STRING): fix the test.
113 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
114 code on MODERN_STL_STREAM.
116 * src/support/lyxstring.h: use L{I,O}stream.h.
118 * src/support/L{I,O}stream.h: new files, designed to setup
119 correctly streams for our use
120 - includes the right header depending on STL capabilities
121 - puts std::ostream and std::endl (for LOStream.h) or
122 std::istream (LIStream.h) in toplevel namespace.
124 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
126 * src/insets/figinset.C: added ifdef guards around the fl_free
127 code that jug commented out. Now it is commented out when
128 compiling with XForms == 0.89.
130 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
131 to lyxstring.C, and only keep a forward declaration in
132 lyxstring.h. Simplifies the header file a bit and should help a
133 bit on compile time too. Also changes to Srep will not mandate a
134 recompile of code just using string.
135 (~lyxstring): definition moved here since it uses srep.
136 (size): definition moved here since it uses srep.
138 * src/support/lyxstring.h: removed a couple of "inline" that should
141 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
143 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
146 1999-10-21 Juergen Vigna <jug@sad.it>
148 * src/table.C (SetPWidth): Just a small fix so the alignment is not
149 set to left if I just remove the width entry (or it is empty).
151 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
152 paragraph when having dummy paragraphs.
154 1999-10-20 Juergen Vigna <jug@sad.it>
156 * src/insets/figinset.C: just commented some fl_free_form calls
157 and added warnings so that this calls should be activated later
158 again. This avoids for now a segfault, but we have a memory leak!
160 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
161 'const char * argument' to 'string argument', this should
162 fix some Asserts() in lyxstring.C.
164 * src/lyxfunc.h: Removed the function argAsString(const char *)
165 as it is not used anymore.
167 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
169 * src/support/lyxstring.C (helper): changed to use
170 sizeof(object->rep->ref).
171 (operator>>): changed to use a pointer instead.
173 * src/support/lyxstring.h: changed const reference & to value_type
174 const & lets see if that helps.
176 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
178 * Makefile.am (rpmdist): fixed to have non static package and
181 * src/support/lyxstring.C: removed the compilation guards
183 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
186 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
187 conditional compile of lyxstring.Ch
189 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
190 stupid check, but it is a lot better than the bastring hack.
191 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
193 * several files: changed string::erase into string::clear. Not
196 * src/chset.C (encodeString): use a char temporary instead
198 * src/table.C (TexEndOfCell): added tostr around
199 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
200 (TexEndOfCell): ditto
201 (TexEndOfCell): ditto
202 (TexEndOfCell): ditto
203 (DocBookEndOfCell): ditto
204 (DocBookEndOfCell): ditto
205 (DocBookEndOfCell): ditto
206 (DocBookEndOfCell): ditto
208 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
210 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
212 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
213 (MenuBuildProg): added tostr around ret
214 (MenuRunChktex): added tostr around ret
215 (DocumentApplyCB): added tostr around ret
217 * src/chset.C (encodeString): added tostr around t->ic
219 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
220 (makeLaTeXFile): added tostr around tocdepth
221 (makeLaTeXFile): added tostr around ftcound - 1
223 * src/insets/insetbib.C (setCounter): added tostr around counter.
225 * src/support/lyxstring.h: added an operator+=(int) to catch more
228 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
229 (lyxstring): We DON'T allow NULL pointers.
231 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
233 * src/mathed/math_macro.C (MathMacroArgument::Write,
234 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
235 when writing them out.
237 * src/LString.C: remove, since it is not used anymore.
239 * src/support/lyxstring.C: condition the content to
240 USE_INCLUDED_STRING macro.
242 * src/mathed/math_symbols.C, src/support/lstrings.C,
243 src/support/lyxstring.C: add `using' directive to specify what
244 we need in <algorithm>. I do not think that we need to
245 conditionalize this, but any thought is appreciated.
247 * many files: change all callback functions to "C" linkage
248 functions to please strict C++ compilers like DEC cxx 6.1 in mode
249 strict_ansi. Those who were static are now global.
250 The case of callbacks which are static class members is
251 trickier, since we have to make C wrappers around them (see
252 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
253 did not finish this yet, since it defeats the purpose of
254 encapsulation, and I am not sure what the best route is.
256 1999-10-19 Juergen Vigna <jug@sad.it>
258 * src/support/lyxstring.C (lyxstring): we permit to have a null
259 pointer as assignment value and just don't assign it.
261 * src/vspace.C (nextToken): corrected this function substituting
262 find_first(_not)_of with find_last_of.
264 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
265 (TableOptCloseCB) (TableSpeCloseCB):
266 inserted fl_set_focus call for problem with fl_hide_form() in
269 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
271 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
274 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
276 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
277 LyXLex::next() and not eatline() to get its argument.
279 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
281 * Makefile.am (rpmdist): added a rpmdist target
283 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
284 per Kayvan's instructions.
286 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
288 * src/Makefile.am: add a definition for localedir, so that locales
289 are found after installation (Kayvan)
291 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
293 * development/.cvsignore: new file.
295 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
297 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
298 C++ compiler provides wrappers for C headers and use our alternate
301 * configure.in: use LYX_CXX_CHEADERS.
303 * src/cheader/: new directory, populated with cname headers from
304 libstdc++-2.8.1. They are a bit old, but probably good enough for
305 what we want (support compilers who lack them).
307 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
308 from includes. It turns out is was stupid.
310 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
312 * lib/Makefile.am (install-data-local): forgot a ';'
313 (install-data-local): forgot a '\'
314 (libinstalldirs): needed after all. reintroduced.
316 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
318 * configure.in (AC_OUTPUT): added lyx.spec
320 * development/lyx.spec: removed file
322 * development/lyx.spec.in: new file
324 * po/*.po: merged with lyx.pot becuase of make distcheck
326 * lib/Makefile.am (dist-hook): added dist-hook so that
327 documentation files will be included when doing a make
328 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
329 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
331 more: tried to make install do the right thing, exclude CVS dirs
334 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
335 Path would fit in more nicely.
337 * all files that used to use pathstack: uses now Path instead.
338 This change was a lot easier than expected.
340 * src/support/path.h: new file
342 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
344 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
346 * src/support/lyxstring.C (getline): Default arg was given for
349 * Configure.cmd: removed file
351 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
353 * src/support/DebugStream.[Ch]: remove the explicit std:: before
354 streams classes and types, add the proper 'using' statements when
355 MODERN_STL is defined.
357 * src/debug.h: move the << operator definition after the inclusion
360 * src/support/filetools.C: include "LAssert.h", which is needed
363 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
366 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
367 include "debug.h" to define a proper ostream.
369 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
371 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
372 method to the SystemCall class which can kill a process, but it's
373 not fully implemented yet.
375 * src/*.C: Changed Systemcalls::Startscript() to startscript()
377 * src/support/FileInfo.h: Better documentation
379 * src/lyxfunc.C: Added support for buffer-export html
381 * src/menus.C: Added Export->As HTML...
383 * lib/bind/*.bind: Added short-cut for buffer-export html
385 * src/lyxrc.*: Added support for new \tth_command
387 * lib/lyxrc.example: Added stuff for new \tth_command
389 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
391 * lib/Makefile.am (IMAGES): removed images/README
392 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
393 installes in correct place. Check permisions is installed
396 * src/LaTeX.C: some no-op changes moved declaration of some
399 * src/LaTeX.h (LATEX_H): changed include guard name
401 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
403 * lib/reLyX/Makefile.am: install noweb2lyx.
405 * lib/Makefile.am: install configure.
407 * lib/reLyX/configure.in: declare a config aux dir; set package
408 name to lyx (not sure what the best solution is); generate noweb2lyx.
410 * lib/layouts/egs.layout: fix the bibliography layout.
412 1999-10-08 Jürgen Vigna <jug@sad.it>
414 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
415 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
416 it returned without continuing to search the path.
418 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
420 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
421 also fixes a bug. It is not allowed to do tricks with std::strings
422 like: string a("hei"); &a[e]; this will not give what you
423 think... Any reason for the complexity in this func?
425 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
427 * Updated README and INSTALL a bit, mostly to check that my
428 CVS rights are correctly set up.
430 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
432 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
433 does not allow '\0' chars but lyxstring and std::string does.
435 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
437 * autogen.sh (AUTOCONF): let the autogen script create the
438 POTFILES.in file too. POTFILES.in should perhaps now not be
439 included in the cvs module.
441 * some more files changed to use C++ includes instead of C ones.
443 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
445 (Reread): added tostr to nlink. buggy output otherwise.
446 (Reread): added a string() around szMode when assigning to Buffer,
447 without this I got a log of garbled info strings.
449 * acconfig.h: commented out the PTR_AS_INT macros. They should not
452 * I have added several ostream & operator<<(ostream &, some_type)
453 functions. This has been done to avoid casting and warnings when
454 outputting enums to lyxerr. This as thus eliminated a lot of
455 explicit casts and has made the code clearer. Among the enums
456 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
457 mathed enums, some font enum the Debug::type enum.
459 * src/support/lyxstring.h (clear): missing method. equivalent of
462 * all files that contained "stderr": rewrote constructs that used
463 stderr to use lyxerr instead. (except bmtable)
465 * src/support/DebugStream.h (level): and the passed t with
466 Debug::ANY to avoid spurious bits set.
468 * src/debug.h (Debug::type value): made it accept strings of the
471 * configure.in (Check for programs): Added a check for kpsewhich,
472 the latex generation will use this later to better the dicovery of
475 * src/BufferView.C (create_view): we don't need to cast this to
476 (void*) that is done automatically.
477 (WorkAreaButtonPress): removed some dead code.
479 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
481 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
482 is not overwritten when translated (David Sua'rez de Lis).
484 * lib/CREDITS: Added David Sua'rez de Lis
486 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
488 * src/bufferparams.C (BufferParams): default input encoding is now
491 * acinclude.m4 (cross_compiling): comment out macro
492 LYX_GXX_STRENGTH_REDUCE.
494 * acconfig.h: make sure that const is not defined (to empty) when
495 we are compiling C++. Remove commented out code using SIZEOF_xx
498 * configure.in : move the test for const and inline as late as
499 possible so that these C tests do not interefere with C++ ones.
500 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
503 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
505 * src/table.C (getDocBookAlign): remove bad default value for
508 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
510 (ShowFileMenu2): ditto.
512 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
515 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
517 * Most files: finished the change from the old error code to use
518 DebugStream for all lyxerr debugging. Only minor changes remain
519 (e.g. the setting of debug levels using strings instead of number)
521 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
523 * src/layout.C (Add): Changed to use compare_no_case instead of
526 * src/FontInfo.C: changed loop variable type too string::size_type.
528 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
530 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
531 set ETAGS_ARGS to --c++
533 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
535 * src/table.C (DocBookEndOfCell): commented out two unused variables
537 * src/paragraph.C: commented out four unused variables.
539 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
540 insed a if clause with type string::size_type.
542 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
545 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
547 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
548 variable, also changed loop to go from 0 to lenght + 1, instead of
549 -1 to length. This should be correct.
551 * src/LaTeX.C (scanError): use string::size_type as loop variable
554 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
555 (l.896) since y_tmp and row was not used anyway.
557 * src/insets/insetref.C (escape): use string::size_type as loop
560 * src/insets/insetquotes.C (Width): use string::size_type as loop
562 (Draw): use string::size_type as loop variable type.
564 * src/insets/insetlatexaccent.C (checkContents): use
565 string::size_type as loop variable type.
567 * src/insets/insetlabel.C (escape): use string::size_type as loop
570 * src/insets/insetinfo.C: added an extern for current_view.
572 * src/insets/insetcommand.C (scanCommand): use string::size_type
573 as loop variable type.
575 * most files: removed the RCS tags. With them we had to recompile
576 a lot of files after a simple cvs commit. Also we have never used
577 them for anything meaningful.
579 * most files: tags-query-replace NULL 0. As adviced several plases
580 we now use "0" instead of "NULL" in our code.
582 * src/support/filetools.C (SpaceLess): use string::size_type as
585 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
587 * src/paragraph.C: fixed up some more string stuff.
589 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
591 * src/support/filetools.h: make modestr a std::string.
593 * src/filetools.C (GetEnv): made ch really const.
595 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
596 made code that used these use max/min from <algorithm> instead.
598 * changed several c library include files to their equivalent c++
599 library include files. All is not changed yet.
601 * created a support subdir in src, put lyxstring and lstrings
602 there + the extra files atexit, fileblock, strerror. Created
603 Makefile.am. edited configure.in and src/Makefile.am to use this
604 new subdir. More files moved to support.
606 * imported som of the functions from repository lyx, filetools
608 * ran tags-query-replace on LString -> string, corrected the bogus
609 cases. Tried to make use of lstrings.[hC], debugged a lot. There
610 is still some errors in there. This is errors where too much or
611 too litle get deleted from strings (string::erase, string::substr,
612 string::replace), there can also be some off by one errors, or
613 just plain wrong use of functions from lstrings. Viewing of quotes
616 * LyX is now running fairly well with string, but there are
617 certainly some bugs yet (see above) also string is quite different
618 from LString among others in that it does not allow null pointers
619 passed in and will abort if it gets any.
621 * Added the revtex4 files I forgot when setting up the repository.
623 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
625 * All over: Tried to clean everything up so that only the files
626 that we really need are included in the cvs repository.
627 * Switched to use automake.
628 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
629 * Install has not been checked.
631 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
633 * po/pt.po: Three errors:
634 l.533 and l.538 format specification error
635 l. 402 duplicate entry, I just deleted it.