1 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/support/lyxstring.h: comment out the three private
4 operators, when compiling with string ansi conforming compilers
7 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
9 (pixmapFromBitmapData): change type of bdata to be unsigned char *
10 (pixmapFromBitmapData): add a reinterpret_cast in the call to
13 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
16 * src/mathed/math_panel.C (create_math_panel): remove explicit
19 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
22 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
23 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
24 to XCreatePixmapFromBitmapData
25 (fl_set_bmtable_data): change the last argument to be unsigned
27 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
28 and bh to be unsigned int, remove explicit casts in call to
31 * images/arrows.xbm: made the arrays unsigned char *
32 * images/varsz.xbm: ditto
33 * images/misc.xbm: ditto
34 * images/greek.xbm: ditto
35 * images/dots.xbm: ditto
36 * images/brel.xbm: ditto
37 * images/bop.xbm: ditto
39 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
41 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
42 (LYX_PROG_CXX): added -pedantic to g++ compile options when
43 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
45 (LYX_CXX_CHEADERS): added <clocale> to the test.
47 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
49 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
51 * src/support/lyxstring.C (append): fixed something that must be a
52 bug, rep->assign was used instead of rep->append.
54 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
57 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
58 lyx insert double chars. Fix spotted by Kayvan.
60 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
62 * Fixed the tth support. I messed up with the Emacs patch apply feature
63 and omitted the changes in lyxrc.C.
65 1999-10-22 Juergen Vigna <jug@sad.it>
67 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
69 * src/lyx_cb.C (MenuInsertRef) +
70 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
71 the form cannot be resized under it limits (fixes a segfault)
73 * src/lyx.C (create_form_form_ref) +
74 * forms/lyx.fd: Changed Gravity on name input field so that it is
77 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
79 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
80 <ostream> and <istream>.
82 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
83 whether <fstream> provides the latest standard features, or if we
84 have an oldstyle library (like in egcs).
85 (LYX_CXX_STL_STRING): fix the test.
87 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
88 code on MODERN_STL_STREAM.
90 * src/support/lyxstring.h: use L{I,O}stream.h.
92 * src/support/L{I,O}stream.h: new files, designed to setup
93 correctly streams for our use
94 - includes the right header depending on STL capabilities
95 - puts std::ostream and std::endl (for LOStream.h) or
96 std::istream (LIStream.h) in toplevel namespace.
98 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
100 * src/insets/figinset.C: added ifdef guards around the fl_free
101 code that jug commented out. Now it is commented out when
102 compiling with XForms == 0.89.
104 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
105 to lyxstring.C, and only keep a forward declaration in
106 lyxstring.h. Simplifies the header file a bit and should help a
107 bit on compile time too. Also changes to Srep will not mandate a
108 recompile of code just using string.
109 (~lyxstring): definition moved here since it uses srep.
110 (size): definition moved here since it uses srep.
112 * src/support/lyxstring.h: removed a couple of "inline" that should
115 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
117 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
120 1999-10-21 Juergen Vigna <jug@sad.it>
122 * src/table.C (SetPWidth): Just a small fix so the alignment is not
123 set to left if I just remove the width entry (or it is empty).
125 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
126 paragraph when having dummy paragraphs.
128 1999-10-20 Juergen Vigna <jug@sad.it>
130 * src/insets/figinset.C: just commented some fl_free_form calls
131 and added warnings so that this calls should be activated later
132 again. This avoids for now a segfault, but we have a memory leak!
134 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
135 'const char * argument' to 'string argument', this should
136 fix some Asserts() in lyxstring.C.
138 * src/lyxfunc.h: Removed the function argAsString(const char *)
139 as it is not used anymore.
141 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
143 * src/support/lyxstring.C (helper): changed to use
144 sizeof(object->rep->ref).
145 (operator>>): changed to use a pointer instead.
147 * src/support/lyxstring.h: changed const reference & to value_type
148 const & lets see if that helps.
150 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
152 * Makefile.am (rpmdist): fixed to have non static package and
155 * src/support/lyxstring.C: removed the compilation guards
157 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
160 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
161 conditional compile of lyxstring.Ch
163 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
164 stupid check, but it is a lot better than the bastring hack.
165 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
167 * several files: changed string::erase into string::clear. Not
170 * src/chset.C (encodeString): use a char temporary instead
172 * src/table.C (TexEndOfCell): added tostr around
173 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
174 (TexEndOfCell): ditto
175 (TexEndOfCell): ditto
176 (TexEndOfCell): ditto
177 (DocBookEndOfCell): ditto
178 (DocBookEndOfCell): ditto
179 (DocBookEndOfCell): ditto
180 (DocBookEndOfCell): ditto
182 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
184 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
186 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
187 (MenuBuildProg): added tostr around ret
188 (MenuRunChktex): added tostr around ret
189 (DocumentApplyCB): added tostr around ret
191 * src/chset.C (encodeString): added tostr around t->ic
193 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
194 (makeLaTeXFile): added tostr around tocdepth
195 (makeLaTeXFile): added tostr around ftcound - 1
197 * src/insets/insetbib.C (setCounter): added tostr around counter.
199 * src/support/lyxstring.h: added an operator+=(int) to catch more
202 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
203 (lyxstring): We DON'T allow NULL pointers.
205 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
207 * src/mathed/math_macro.C (MathMacroArgument::Write,
208 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
209 when writing them out.
211 * src/LString.C: remove, since it is not used anymore.
213 * src/support/lyxstring.C: condition the content to
214 USE_INCLUDED_STRING macro.
216 * src/mathed/math_symbols.C, src/support/lstrings.C,
217 src/support/lyxstring.C: add `using' directive to specify what
218 we need in <algorithm>. I do not think that we need to
219 conditionalize this, but any thought is appreciated.
221 * many files: change all callback functions to "C" linkage
222 functions to please strict C++ compilers like DEC cxx 6.1 in mode
223 strict_ansi. Those who were static are now global.
224 The case of callbacks which are static class members is
225 trickier, since we have to make C wrappers around them (see
226 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
227 did not finish this yet, since it defeats the purpose of
228 encapsulation, and I am not sure what the best route is.
230 1999-10-19 Juergen Vigna <jug@sad.it>
232 * src/support/lyxstring.C (lyxstring): we permit to have a null
233 pointer as assignment value and just don't assign it.
235 * src/vspace.C (nextToken): corrected this function substituting
236 find_first(_not)_of with find_last_of.
238 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
239 (TableOptCloseCB) (TableSpeCloseCB):
240 inserted fl_set_focus call for problem with fl_hide_form() in
243 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
245 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
248 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
250 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
251 LyXLex::next() and not eatline() to get its argument.
253 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
255 * Makefile.am (rpmdist): added a rpmdist target
257 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
258 per Kayvan's instructions.
260 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
262 * src/Makefile.am: add a definition for localedir, so that locales
263 are found after installation (Kayvan)
265 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
267 * development/.cvsignore: new file.
269 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
271 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
272 C++ compiler provides wrappers for C headers and use our alternate
275 * configure.in: use LYX_CXX_CHEADERS.
277 * src/cheader/: new directory, populated with cname headers from
278 libstdc++-2.8.1. They are a bit old, but probably good enough for
279 what we want (support compilers who lack them).
281 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
282 from includes. It turns out is was stupid.
284 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
286 * lib/Makefile.am (install-data-local): forgot a ';'
287 (install-data-local): forgot a '\'
288 (libinstalldirs): needed after all. reintroduced.
290 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
292 * configure.in (AC_OUTPUT): added lyx.spec
294 * development/lyx.spec: removed file
296 * development/lyx.spec.in: new file
298 * po/*.po: merged with lyx.pot becuase of make distcheck
300 * lib/Makefile.am (dist-hook): added dist-hook so that
301 documentation files will be included when doing a make
302 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
303 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
305 more: tried to make install do the right thing, exclude CVS dirs
308 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
309 Path would fit in more nicely.
311 * all files that used to use pathstack: uses now Path instead.
312 This change was a lot easier than expected.
314 * src/support/path.h: new file
316 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
318 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
320 * src/support/lyxstring.C (getline): Default arg was given for
323 * Configure.cmd: removed file
325 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
327 * src/support/DebugStream.[Ch]: remove the explicit std:: before
328 streams classes and types, add the proper 'using' statements when
329 MODERN_STL is defined.
331 * src/debug.h: move the << operator definition after the inclusion
334 * src/support/filetools.C: include "LAssert.h", which is needed
337 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
340 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
341 include "debug.h" to define a proper ostream.
343 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
345 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
346 method to the SystemCall class which can kill a process, but it's
347 not fully implemented yet.
349 * src/*.C: Changed Systemcalls::Startscript() to startscript()
351 * src/support/FileInfo.h: Better documentation
353 * src/lyxfunc.C: Added support for buffer-export html
355 * src/menus.C: Added Export->As HTML...
357 * lib/bind/*.bind: Added short-cut for buffer-export html
359 * src/lyxrc.*: Added support for new \tth_command
361 * lib/lyxrc.example: Added stuff for new \tth_command
363 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
365 * lib/Makefile.am (IMAGES): removed images/README
366 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
367 installes in correct place. Check permisions is installed
370 * src/LaTeX.C: some no-op changes moved declaration of some
373 * src/LaTeX.h (LATEX_H): changed include guard name
375 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
377 * lib/reLyX/Makefile.am: install noweb2lyx.
379 * lib/Makefile.am: install configure.
381 * lib/reLyX/configure.in: declare a config aux dir; set package
382 name to lyx (not sure what the best solution is); generate noweb2lyx.
384 * lib/layouts/egs.layout: fix the bibliography layout.
386 1999-10-08 Jürgen Vigna <jug@sad.it>
388 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
389 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
390 it returned without continuing to search the path.
392 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
394 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
395 also fixes a bug. It is not allowed to do tricks with std::strings
396 like: string a("hei"); &a[e]; this will not give what you
397 think... Any reason for the complexity in this func?
399 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
401 * Updated README and INSTALL a bit, mostly to check that my
402 CVS rights are correctly set up.
404 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
406 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
407 does not allow '\0' chars but lyxstring and std::string does.
409 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
411 * autogen.sh (AUTOCONF): let the autogen script create the
412 POTFILES.in file too. POTFILES.in should perhaps now not be
413 included in the cvs module.
415 * some more files changed to use C++ includes instead of C ones.
417 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
419 (Reread): added tostr to nlink. buggy output otherwise.
420 (Reread): added a string() around szMode when assigning to Buffer,
421 without this I got a log of garbled info strings.
423 * acconfig.h: commented out the PTR_AS_INT macros. They should not
426 * I have added several ostream & operator<<(ostream &, some_type)
427 functions. This has been done to avoid casting and warnings when
428 outputting enums to lyxerr. This as thus eliminated a lot of
429 explicit casts and has made the code clearer. Among the enums
430 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
431 mathed enums, some font enum the Debug::type enum.
433 * src/support/lyxstring.h (clear): missing method. equivalent of
436 * all files that contained "stderr": rewrote constructs that used
437 stderr to use lyxerr instead. (except bmtable)
439 * src/support/DebugStream.h (level): and the passed t with
440 Debug::ANY to avoid spurious bits set.
442 * src/debug.h (Debug::type value): made it accept strings of the
445 * configure.in (Check for programs): Added a check for kpsewhich,
446 the latex generation will use this later to better the dicovery of
449 * src/BufferView.C (create_view): we don't need to cast this to
450 (void*) that is done automatically.
451 (WorkAreaButtonPress): removed some dead code.
453 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
455 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
456 is not overwritten when translated (David Sua'rez de Lis).
458 * lib/CREDITS: Added David Sua'rez de Lis
460 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
462 * src/bufferparams.C (BufferParams): default input encoding is now
465 * acinclude.m4 (cross_compiling): comment out macro
466 LYX_GXX_STRENGTH_REDUCE.
468 * acconfig.h: make sure that const is not defined (to empty) when
469 we are compiling C++. Remove commented out code using SIZEOF_xx
472 * configure.in : move the test for const and inline as late as
473 possible so that these C tests do not interefere with C++ ones.
474 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
477 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
479 * src/table.C (getDocBookAlign): remove bad default value for
482 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
484 (ShowFileMenu2): ditto.
486 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
489 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
491 * Most files: finished the change from the old error code to use
492 DebugStream for all lyxerr debugging. Only minor changes remain
493 (e.g. the setting of debug levels using strings instead of number)
495 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
497 * src/layout.C (Add): Changed to use compare_no_case instead of
500 * src/FontInfo.C: changed loop variable type too string::size_type.
502 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
504 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
505 set ETAGS_ARGS to --c++
507 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
509 * src/table.C (DocBookEndOfCell): commented out two unused variables
511 * src/paragraph.C: commented out four unused variables.
513 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
514 insed a if clause with type string::size_type.
516 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
519 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
521 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
522 variable, also changed loop to go from 0 to lenght + 1, instead of
523 -1 to length. This should be correct.
525 * src/LaTeX.C (scanError): use string::size_type as loop variable
528 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
529 (l.896) since y_tmp and row was not used anyway.
531 * src/insets/insetref.C (escape): use string::size_type as loop
534 * src/insets/insetquotes.C (Width): use string::size_type as loop
536 (Draw): use string::size_type as loop variable type.
538 * src/insets/insetlatexaccent.C (checkContents): use
539 string::size_type as loop variable type.
541 * src/insets/insetlabel.C (escape): use string::size_type as loop
544 * src/insets/insetinfo.C: added an extern for current_view.
546 * src/insets/insetcommand.C (scanCommand): use string::size_type
547 as loop variable type.
549 * most files: removed the RCS tags. With them we had to recompile
550 a lot of files after a simple cvs commit. Also we have never used
551 them for anything meaningful.
553 * most files: tags-query-replace NULL 0. As adviced several plases
554 we now use "0" instead of "NULL" in our code.
556 * src/support/filetools.C (SpaceLess): use string::size_type as
559 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
561 * src/paragraph.C: fixed up some more string stuff.
563 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
565 * src/support/filetools.h: make modestr a std::string.
567 * src/filetools.C (GetEnv): made ch really const.
569 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
570 made code that used these use max/min from <algorithm> instead.
572 * changed several c library include files to their equivalent c++
573 library include files. All is not changed yet.
575 * created a support subdir in src, put lyxstring and lstrings
576 there + the extra files atexit, fileblock, strerror. Created
577 Makefile.am. edited configure.in and src/Makefile.am to use this
578 new subdir. More files moved to support.
580 * imported som of the functions from repository lyx, filetools
582 * ran tags-query-replace on LString -> string, corrected the bogus
583 cases. Tried to make use of lstrings.[hC], debugged a lot. There
584 is still some errors in there. This is errors where too much or
585 too litle get deleted from strings (string::erase, string::substr,
586 string::replace), there can also be some off by one errors, or
587 just plain wrong use of functions from lstrings. Viewing of quotes
590 * LyX is now running fairly well with string, but there are
591 certainly some bugs yet (see above) also string is quite different
592 from LString among others in that it does not allow null pointers
593 passed in and will abort if it gets any.
595 * Added the revtex4 files I forgot when setting up the repository.
597 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
599 * All over: Tried to clean everything up so that only the files
600 that we really need are included in the cvs repository.
601 * Switched to use automake.
602 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
603 * Install has not been checked.
605 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
607 * po/pt.po: Three errors:
608 l.533 and l.538 format specification error
609 l. 402 duplicate entry, I just deleted it.