1 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
5 * src/support/lyxstring.C (append): fixed something that must be a
6 bug, rep->assign was used instead of rep->append.
8 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
11 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
12 lyx insert double chars. Fix spotted by Kayvan.
14 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
16 * Fixed the tth support. I messed up with the Emacs patch apply feature
17 and omitted the changes in lyxrc.C.
19 1999-10-22 Juergen Vigna <jug@sad.it>
21 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
23 * src/lyx_cb.C (MenuInsertRef) +
24 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
25 the form cannot be resized under it limits (fixes a segfault)
27 * src/lyx.C (create_form_form_ref) +
28 * forms/lyx.fd: Changed Gravity on name input field so that it is
31 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
33 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
34 <ostream> and <istream>.
36 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
37 whether <fstream> provides the latest standard features, or if we
38 have an oldstyle library (like in egcs).
39 (LYX_CXX_STL_STRING): fix the test.
41 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
42 code on MODERN_STL_STREAM.
44 * src/support/lyxstring.h: use L{I,O}stream.h.
46 * src/support/L{I,O}stream.h: new files, designed to setup
47 correctly streams for our use
48 - includes the right header depending on STL capabilities
49 - puts std::ostream and std::endl (for LOStream.h) or
50 std::istream (LIStream.h) in toplevel namespace.
52 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
54 * src/insets/figinset.C: added ifdef guards around the fl_free
55 code that jug commented out. Now it is commented out when
56 compiling with XForms == 0.89.
58 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
59 to lyxstring.C, and only keep a forward declaration in
60 lyxstring.h. Simplifies the header file a bit and should help a
61 bit on compile time too. Also changes to Srep will not mandate a
62 recompile of code just using string.
63 (~lyxstring): definition moved here since it uses srep.
64 (size): definition moved here since it uses srep.
66 * src/support/lyxstring.h: removed a couple of "inline" that should
69 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
71 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
74 1999-10-21 Juergen Vigna <jug@sad.it>
76 * src/table.C (SetPWidth): Just a small fix so the alignment is not
77 set to left if I just remove the width entry (or it is empty).
79 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
80 paragraph when having dummy paragraphs.
82 1999-10-20 Juergen Vigna <jug@sad.it>
84 * src/insets/figinset.C: just commented some fl_free_form calls
85 and added warnings so that this calls should be activated later
86 again. This avoids for now a segfault, but we have a memory leak!
88 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
89 'const char * argument' to 'string argument', this should
90 fix some Asserts() in lyxstring.C.
92 * src/lyxfunc.h: Removed the function argAsString(const char *)
93 as it is not used anymore.
95 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
97 * src/support/lyxstring.C (helper): changed to use
98 sizeof(object->rep->ref).
99 (operator>>): changed to use a pointer instead.
101 * src/support/lyxstring.h: changed const reference & to value_type
102 const & lets see if that helps.
104 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
106 * Makefile.am (rpmdist): fixed to have non static package and
109 * src/support/lyxstring.C: removed the compilation guards
111 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
114 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
115 conditional compile of lyxstring.Ch
117 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
118 stupid check, but it is a lot better than the bastring hack.
119 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
121 * several files: changed string::erase into string::clear. Not
124 * src/chset.C (encodeString): use a char temporary instead
126 * src/table.C (TexEndOfCell): added tostr around
127 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
128 (TexEndOfCell): ditto
129 (TexEndOfCell): ditto
130 (TexEndOfCell): ditto
131 (DocBookEndOfCell): ditto
132 (DocBookEndOfCell): ditto
133 (DocBookEndOfCell): ditto
134 (DocBookEndOfCell): ditto
136 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
138 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
140 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
141 (MenuBuildProg): added tostr around ret
142 (MenuRunChktex): added tostr around ret
143 (DocumentApplyCB): added tostr around ret
145 * src/chset.C (encodeString): added tostr around t->ic
147 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
148 (makeLaTeXFile): added tostr around tocdepth
149 (makeLaTeXFile): added tostr around ftcound - 1
151 * src/insets/insetbib.C (setCounter): added tostr around counter.
153 * src/support/lyxstring.h: added an operator+=(int) to catch more
156 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
157 (lyxstring): We DON'T allow NULL pointers.
159 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
161 * src/mathed/math_macro.C (MathMacroArgument::Write,
162 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
163 when writing them out.
165 * src/LString.C: remove, since it is not used anymore.
167 * src/support/lyxstring.C: condition the content to
168 USE_INCLUDED_STRING macro.
170 * src/mathed/math_symbols.C, src/support/lstrings.C,
171 src/support/lyxstring.C: add `using' directive to specify what
172 we need in <algorithm>. I do not think that we need to
173 conditionalize this, but any thought is appreciated.
175 * many files: change all callback functions to "C" linkage
176 functions to please strict C++ compilers like DEC cxx 6.1 in mode
177 strict_ansi. Those who were static are now global.
178 The case of callbacks which are static class members is
179 trickier, since we have to make C wrappers around them (see
180 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
181 did not finish this yet, since it defeats the purpose of
182 encapsulation, and I am not sure what the best route is.
184 1999-10-19 Juergen Vigna <jug@sad.it>
186 * src/support/lyxstring.C (lyxstring): we permit to have a null
187 pointer as assignment value and just don't assign it.
189 * src/vspace.C (nextToken): corrected this function substituting
190 find_first(_not)_of with find_last_of.
192 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
193 (TableOptCloseCB) (TableSpeCloseCB):
194 inserted fl_set_focus call for problem with fl_hide_form() in
197 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
199 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
202 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
204 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
205 LyXLex::next() and not eatline() to get its argument.
207 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
209 * Makefile.am (rpmdist): added a rpmdist target
211 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
212 per Kayvan's instructions.
214 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
216 * src/Makefile.am: add a definition for localedir, so that locales
217 are found after installation (Kayvan)
219 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
221 * development/.cvsignore: new file.
223 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
225 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
226 C++ compiler provides wrappers for C headers and use our alternate
229 * configure.in: use LYX_CXX_CHEADERS.
231 * src/cheader/: new directory, populated with cname headers from
232 libstdc++-2.8.1. They are a bit old, but probably good enough for
233 what we want (support compilers who lack them).
235 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
236 from includes. It turns out is was stupid.
238 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
240 * lib/Makefile.am (install-data-local): forgot a ';'
241 (install-data-local): forgot a '\'
242 (libinstalldirs): needed after all. reintroduced.
244 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
246 * configure.in (AC_OUTPUT): added lyx.spec
248 * development/lyx.spec: removed file
250 * development/lyx.spec.in: new file
252 * po/*.po: merged with lyx.pot becuase of make distcheck
254 * lib/Makefile.am (dist-hook): added dist-hook so that
255 documentation files will be included when doing a make
256 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
257 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
259 more: tried to make install do the right thing, exclude CVS dirs
262 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
263 Path would fit in more nicely.
265 * all files that used to use pathstack: uses now Path instead.
266 This change was a lot easier than expected.
268 * src/support/path.h: new file
270 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
272 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
274 * src/support/lyxstring.C (getline): Default arg was given for
277 * Configure.cmd: removed file
279 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
281 * src/support/DebugStream.[Ch]: remove the explicit std:: before
282 streams classes and types, add the proper 'using' statements when
283 MODERN_STL is defined.
285 * src/debug.h: move the << operator definition after the inclusion
288 * src/support/filetools.C: include "LAssert.h", which is needed
291 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
294 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
295 include "debug.h" to define a proper ostream.
297 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
299 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
300 method to the SystemCall class which can kill a process, but it's
301 not fully implemented yet.
303 * src/*.C: Changed Systemcalls::Startscript() to startscript()
305 * src/support/FileInfo.h: Better documentation
307 * src/lyxfunc.C: Added support for buffer-export html
309 * src/menus.C: Added Export->As HTML...
311 * lib/bind/*.bind: Added short-cut for buffer-export html
313 * src/lyxrc.*: Added support for new \tth_command
315 * lib/lyxrc.example: Added stuff for new \tth_command
317 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
319 * lib/Makefile.am (IMAGES): removed images/README
320 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
321 installes in correct place. Check permisions is installed
324 * src/LaTeX.C: some no-op changes moved declaration of some
327 * src/LaTeX.h (LATEX_H): changed include guard name
329 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
331 * lib/reLyX/Makefile.am: install noweb2lyx.
333 * lib/Makefile.am: install configure.
335 * lib/reLyX/configure.in: declare a config aux dir; set package
336 name to lyx (not sure what the best solution is); generate noweb2lyx.
338 * lib/layouts/egs.layout: fix the bibliography layout.
340 1999-10-08 Jürgen Vigna <jug@sad.it>
342 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
343 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
344 it returned without continuing to search the path.
346 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
348 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
349 also fixes a bug. It is not allowed to do tricks with std::strings
350 like: string a("hei"); &a[e]; this will not give what you
351 think... Any reason for the complexity in this func?
353 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
355 * Updated README and INSTALL a bit, mostly to check that my
356 CVS rights are correctly set up.
358 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
360 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
361 does not allow '\0' chars but lyxstring and std::string does.
363 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
365 * autogen.sh (AUTOCONF): let the autogen script create the
366 POTFILES.in file too. POTFILES.in should perhaps now not be
367 included in the cvs module.
369 * some more files changed to use C++ includes instead of C ones.
371 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
373 (Reread): added tostr to nlink. buggy output otherwise.
374 (Reread): added a string() around szMode when assigning to Buffer,
375 without this I got a log of garbled info strings.
377 * acconfig.h: commented out the PTR_AS_INT macros. They should not
380 * I have added several ostream & operator<<(ostream &, some_type)
381 functions. This has been done to avoid casting and warnings when
382 outputting enums to lyxerr. This as thus eliminated a lot of
383 explicit casts and has made the code clearer. Among the enums
384 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
385 mathed enums, some font enum the Debug::type enum.
387 * src/support/lyxstring.h (clear): missing method. equivalent of
390 * all files that contained "stderr": rewrote constructs that used
391 stderr to use lyxerr instead. (except bmtable)
393 * src/support/DebugStream.h (level): and the passed t with
394 Debug::ANY to avoid spurious bits set.
396 * src/debug.h (Debug::type value): made it accept strings of the
399 * configure.in (Check for programs): Added a check for kpsewhich,
400 the latex generation will use this later to better the dicovery of
403 * src/BufferView.C (create_view): we don't need to cast this to
404 (void*) that is done automatically.
405 (WorkAreaButtonPress): removed some dead code.
407 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
409 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
410 is not overwritten when translated (David Sua'rez de Lis).
412 * lib/CREDITS: Added David Sua'rez de Lis
414 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
416 * src/bufferparams.C (BufferParams): default input encoding is now
419 * acinclude.m4 (cross_compiling): comment out macro
420 LYX_GXX_STRENGTH_REDUCE.
422 * acconfig.h: make sure that const is not defined (to empty) when
423 we are compiling C++. Remove commented out code using SIZEOF_xx
426 * configure.in : move the test for const and inline as late as
427 possible so that these C tests do not interefere with C++ ones.
428 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
431 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
433 * src/table.C (getDocBookAlign): remove bad default value for
436 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
438 (ShowFileMenu2): ditto.
440 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
443 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
445 * Most files: finished the change from the old error code to use
446 DebugStream for all lyxerr debugging. Only minor changes remain
447 (e.g. the setting of debug levels using strings instead of number)
449 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
451 * src/layout.C (Add): Changed to use compare_no_case instead of
454 * src/FontInfo.C: changed loop variable type too string::size_type.
456 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
458 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
459 set ETAGS_ARGS to --c++
461 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
463 * src/table.C (DocBookEndOfCell): commented out two unused variables
465 * src/paragraph.C: commented out four unused variables.
467 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
468 insed a if clause with type string::size_type.
470 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
473 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
475 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
476 variable, also changed loop to go from 0 to lenght + 1, instead of
477 -1 to length. This should be correct.
479 * src/LaTeX.C (scanError): use string::size_type as loop variable
482 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
483 (l.896) since y_tmp and row was not used anyway.
485 * src/insets/insetref.C (escape): use string::size_type as loop
488 * src/insets/insetquotes.C (Width): use string::size_type as loop
490 (Draw): use string::size_type as loop variable type.
492 * src/insets/insetlatexaccent.C (checkContents): use
493 string::size_type as loop variable type.
495 * src/insets/insetlabel.C (escape): use string::size_type as loop
498 * src/insets/insetinfo.C: added an extern for current_view.
500 * src/insets/insetcommand.C (scanCommand): use string::size_type
501 as loop variable type.
503 * most files: removed the RCS tags. With them we had to recompile
504 a lot of files after a simple cvs commit. Also we have never used
505 them for anything meaningful.
507 * most files: tags-query-replace NULL 0. As adviced several plases
508 we now use "0" instead of "NULL" in our code.
510 * src/support/filetools.C (SpaceLess): use string::size_type as
513 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
515 * src/paragraph.C: fixed up some more string stuff.
517 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
519 * src/support/filetools.h: make modestr a std::string.
521 * src/filetools.C (GetEnv): made ch really const.
523 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
524 made code that used these use max/min from <algorithm> instead.
526 * changed several c library include files to their equivalent c++
527 library include files. All is not changed yet.
529 * created a support subdir in src, put lyxstring and lstrings
530 there + the extra files atexit, fileblock, strerror. Created
531 Makefile.am. edited configure.in and src/Makefile.am to use this
532 new subdir. More files moved to support.
534 * imported som of the functions from repository lyx, filetools
536 * ran tags-query-replace on LString -> string, corrected the bogus
537 cases. Tried to make use of lstrings.[hC], debugged a lot. There
538 is still some errors in there. This is errors where too much or
539 too litle get deleted from strings (string::erase, string::substr,
540 string::replace), there can also be some off by one errors, or
541 just plain wrong use of functions from lstrings. Viewing of quotes
544 * LyX is now running fairly well with string, but there are
545 certainly some bugs yet (see above) also string is quite different
546 from LString among others in that it does not allow null pointers
547 passed in and will abort if it gets any.
549 * Added the revtex4 files I forgot when setting up the repository.
551 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
553 * All over: Tried to clean everything up so that only the files
554 that we really need are included in the cvs repository.
555 * Switched to use automake.
556 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
557 * Install has not been checked.
559 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
561 * po/pt.po: Three errors:
562 l.533 and l.538 format specification error
563 l. 402 duplicate entry, I just deleted it.