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