1 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
4 <ostream> and <istream>.
6 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
7 whether <fstream> provides the latest standard features, or if we
8 have an oldstyle library (like in egcs).
9 (LYX_CXX_STL_STRING): fix the test.
11 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
12 code on MODERN_STL_STREAM.
14 * src/support/lyxstring.h: use L{I,O}stream.h.
16 * src/support/L{I,O}stream.h: new files, designed to setup
17 correctly streams for our use
18 - includes the right header depending on STL capabilities
19 - puts std::ostream and std::endl (for LOStream.h) or
20 std::istream (LIStream.h) in toplevel namespace.
22 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
24 * src/insets/figinset.C: added ifdef guards around the fl_free
25 code that jug commented out. Now it is commented out when
26 compiling with XForms == 0.89.
28 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
29 to lyxstring.C, and only keep a forward declaration in
30 lyxstring.h. Simplifies the header file a bit and should help a
31 bit on compile time too. Also changes to Srep will not mandate a
32 recompile of code just using string.
33 (~lyxstring): definition moved here since it uses srep.
34 (size): definition moved here since it uses srep.
36 * src/support/lyxstring.h: removed a couple of "inline" that should
39 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
41 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
44 1999-10-21 Juergen Vigna <jug@sad.it>
46 * src/table.C (SetPWidth): Just a small fix so the alignment is not
47 set to left if I just remove the width entry (or it is empty).
49 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
50 paragraph when having dummy paragraphs.
52 1999-10-20 Juergen Vigna <jug@sad.it>
54 * src/insets/figinset.C: just commented some fl_free_form calls
55 and added warnings so that this calls should be activated later
56 again. This avoids for now a segfault, but we have a memory leak!
58 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
59 'const char * argument' to 'string argument', this should
60 fix some Asserts() in lyxstring.C.
62 * src/lyxfunc.h: Removed the function argAsString(const char *)
63 as it is not used anymore.
65 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
67 * src/support/lyxstring.C (helper): changed to use
68 sizeof(object->rep->ref).
69 (operator>>): changed to use a pointer instead.
71 * src/support/lyxstring.h: changed const reference & to value_type
72 const & lets see if that helps.
74 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
76 * Makefile.am (rpmdist): fixed to have non static package and
79 * src/support/lyxstring.C: removed the compilation guards
81 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
84 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
85 conditional compile of lyxstring.Ch
87 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
88 stupid check, but it is a lot better than the bastring hack.
89 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
91 * several files: changed string::erase into string::clear. Not
94 * src/chset.C (encodeString): use a char temporary instead
96 * src/table.C (TexEndOfCell): added tostr around
97 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
100 (TexEndOfCell): ditto
101 (DocBookEndOfCell): ditto
102 (DocBookEndOfCell): ditto
103 (DocBookEndOfCell): ditto
104 (DocBookEndOfCell): ditto
106 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
108 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
110 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
111 (MenuBuildProg): added tostr around ret
112 (MenuRunChktex): added tostr around ret
113 (DocumentApplyCB): added tostr around ret
115 * src/chset.C (encodeString): added tostr around t->ic
117 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
118 (makeLaTeXFile): added tostr around tocdepth
119 (makeLaTeXFile): added tostr around ftcound - 1
121 * src/insets/insetbib.C (setCounter): added tostr around counter.
123 * src/support/lyxstring.h: added an operator+=(int) to catch more
126 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
127 (lyxstring): We DON'T allow NULL pointers.
129 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
131 * src/mathed/math_macro.C (MathMacroArgument::Write,
132 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
133 when writing them out.
135 * src/LString.C: remove, since it is not used anymore.
137 * src/support/lyxstring.C: condition the content to
138 USE_INCLUDED_STRING macro.
140 * src/mathed/math_symbols.C, src/support/lstrings.C,
141 src/support/lyxstring.C: add `using' directive to specify what
142 we need in <algorithm>. I do not think that we need to
143 conditionalize this, but any thought is appreciated.
145 * many files: change all callback functions to "C" linkage
146 functions to please strict C++ compilers like DEC cxx 6.1 in mode
147 strict_ansi. Those who were static are now global.
148 The case of callbacks which are static class members is
149 trickier, since we have to make C wrappers around them (see
150 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
151 did not finish this yet, since it defeats the purpose of
152 encapsulation, and I am not sure what the best route is.
154 1999-10-19 Juergen Vigna <jug@sad.it>
156 * src/support/lyxstring.C (lyxstring): we permit to have a null
157 pointer as assignment value and just don't assign it.
159 * src/vspace.C (nextToken): corrected this function substituting
160 find_first(_not)_of with find_last_of.
162 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
163 (TableOptCloseCB) (TableSpeCloseCB):
164 inserted fl_set_focus call for problem with fl_hide_form() in
167 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
169 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
172 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
174 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
175 LyXLex::next() and not eatline() to get its argument.
177 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
179 * Makefile.am (rpmdist): added a rpmdist target
181 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
182 per Kayvan's instructions.
184 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
186 * src/Makefile.am: add a definition for localedir, so that locales
187 are found after installation (Kayvan)
189 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
191 * development/.cvsignore: new file.
193 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
195 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
196 C++ compiler provides wrappers for C headers and use our alternate
199 * configure.in: use LYX_CXX_CHEADERS.
201 * src/cheader/: new directory, populated with cname headers from
202 libstdc++-2.8.1. They are a bit old, but probably good enough for
203 what we want (support compilers who lack them).
205 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
206 from includes. It turns out is was stupid.
208 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
210 * lib/Makefile.am (install-data-local): forgot a ';'
211 (install-data-local): forgot a '\'
212 (libinstalldirs): needed after all. reintroduced.
214 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
216 * configure.in (AC_OUTPUT): added lyx.spec
218 * development/lyx.spec: removed file
220 * development/lyx.spec.in: new file
222 * po/*.po: merged with lyx.pot becuase of make distcheck
224 * lib/Makefile.am (dist-hook): added dist-hook so that
225 documentation files will be included when doing a make
226 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
227 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
229 more: tried to make install do the right thing, exclude CVS dirs
232 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
233 Path would fit in more nicely.
235 * all files that used to use pathstack: uses now Path instead.
236 This change was a lot easier than expected.
238 * src/support/path.h: new file
240 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
242 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
244 * src/support/lyxstring.C (getline): Default arg was given for
247 * Configure.cmd: removed file
249 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
251 * src/support/DebugStream.[Ch]: remove the explicit std:: before
252 streams classes and types, add the proper 'using' statements when
253 MODERN_STL is defined.
255 * src/debug.h: move the << operator definition after the inclusion
258 * src/support/filetools.C: include "LAssert.h", which is needed
261 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
264 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
265 include "debug.h" to define a proper ostream.
267 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
269 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
270 method to the SystemCall class which can kill a process, but it's
271 not fully implemented yet.
273 * src/*.C: Changed Systemcalls::Startscript() to startscript()
275 * src/support/FileInfo.h: Better documentation
277 * src/lyxfunc.C: Added support for buffer-export html
279 * src/menus.C: Added Export->As HTML...
281 * lib/bind/*.bind: Added short-cut for buffer-export html
283 * src/lyxrc.*: Added support for new \tth_command
285 * lib/lyxrc.example: Added stuff for new \tth_command
287 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
289 * lib/Makefile.am (IMAGES): removed images/README
290 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
291 installes in correct place. Check permisions is installed
294 * src/LaTeX.C: some no-op changes moved declaration of some
297 * src/LaTeX.h (LATEX_H): changed include guard name
299 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
301 * lib/reLyX/Makefile.am: install noweb2lyx.
303 * lib/Makefile.am: install configure.
305 * lib/reLyX/configure.in: declare a config aux dir; set package
306 name to lyx (not sure what the best solution is); generate noweb2lyx.
308 * lib/layouts/egs.layout: fix the bibliography layout.
310 1999-10-08 Jürgen Vigna <jug@sad.it>
312 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
313 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
314 it returned without continuing to search the path.
316 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
318 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
319 also fixes a bug. It is not allowed to do tricks with std::strings
320 like: string a("hei"); &a[e]; this will not give what you
321 think... Any reason for the complexity in this func?
323 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
325 * Updated README and INSTALL a bit, mostly to check that my
326 CVS rights are correctly set up.
328 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
330 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
331 does not allow '\0' chars but lyxstring and std::string does.
333 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
335 * autogen.sh (AUTOCONF): let the autogen script create the
336 POTFILES.in file too. POTFILES.in should perhaps now not be
337 included in the cvs module.
339 * some more files changed to use C++ includes instead of C ones.
341 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
343 (Reread): added tostr to nlink. buggy output otherwise.
344 (Reread): added a string() around szMode when assigning to Buffer,
345 without this I got a log of garbled info strings.
347 * acconfig.h: commented out the PTR_AS_INT macros. They should not
350 * I have added several ostream & operator<<(ostream &, some_type)
351 functions. This has been done to avoid casting and warnings when
352 outputting enums to lyxerr. This as thus eliminated a lot of
353 explicit casts and has made the code clearer. Among the enums
354 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
355 mathed enums, some font enum the Debug::type enum.
357 * src/support/lyxstring.h (clear): missing method. equivalent of
360 * all files that contained "stderr": rewrote constructs that used
361 stderr to use lyxerr instead. (except bmtable)
363 * src/support/DebugStream.h (level): and the passed t with
364 Debug::ANY to avoid spurious bits set.
366 * src/debug.h (Debug::type value): made it accept strings of the
369 * configure.in (Check for programs): Added a check for kpsewhich,
370 the latex generation will use this later to better the dicovery of
373 * src/BufferView.C (create_view): we don't need to cast this to
374 (void*) that is done automatically.
375 (WorkAreaButtonPress): removed some dead code.
377 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
379 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
380 is not overwritten when translated (David Sua'rez de Lis).
382 * lib/CREDITS: Added David Sua'rez de Lis
384 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
386 * src/bufferparams.C (BufferParams): default input encoding is now
389 * acinclude.m4 (cross_compiling): comment out macro
390 LYX_GXX_STRENGTH_REDUCE.
392 * acconfig.h: make sure that const is not defined (to empty) when
393 we are compiling C++. Remove commented out code using SIZEOF_xx
396 * configure.in : move the test for const and inline as late as
397 possible so that these C tests do not interefere with C++ ones.
398 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
401 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
403 * src/table.C (getDocBookAlign): remove bad default value for
406 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
408 (ShowFileMenu2): ditto.
410 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
413 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
415 * Most files: finished the change from the old error code to use
416 DebugStream for all lyxerr debugging. Only minor changes remain
417 (e.g. the setting of debug levels using strings instead of number)
419 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
421 * src/layout.C (Add): Changed to use compare_no_case instead of
424 * src/FontInfo.C: changed loop variable type too string::size_type.
426 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
428 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
429 set ETAGS_ARGS to --c++
431 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
433 * src/table.C (DocBookEndOfCell): commented out two unused variables
435 * src/paragraph.C: commented out four unused variables.
437 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
438 insed a if clause with type string::size_type.
440 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
443 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
445 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
446 variable, also changed loop to go from 0 to lenght + 1, instead of
447 -1 to length. This should be correct.
449 * src/LaTeX.C (scanError): use string::size_type as loop variable
452 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
453 (l.896) since y_tmp and row was not used anyway.
455 * src/insets/insetref.C (escape): use string::size_type as loop
458 * src/insets/insetquotes.C (Width): use string::size_type as loop
460 (Draw): use string::size_type as loop variable type.
462 * src/insets/insetlatexaccent.C (checkContents): use
463 string::size_type as loop variable type.
465 * src/insets/insetlabel.C (escape): use string::size_type as loop
468 * src/insets/insetinfo.C: added an extern for current_view.
470 * src/insets/insetcommand.C (scanCommand): use string::size_type
471 as loop variable type.
473 * most files: removed the RCS tags. With them we had to recompile
474 a lot of files after a simple cvs commit. Also we have never used
475 them for anything meaningful.
477 * most files: tags-query-replace NULL 0. As adviced several plases
478 we now use "0" instead of "NULL" in our code.
480 * src/support/filetools.C (SpaceLess): use string::size_type as
483 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
485 * src/paragraph.C: fixed up some more string stuff.
487 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
489 * src/support/filetools.h: make modestr a std::string.
491 * src/filetools.C (GetEnv): made ch really const.
493 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
494 made code that used these use max/min from <algorithm> instead.
496 * changed several c library include files to their equivalent c++
497 library include files. All is not changed yet.
499 * created a support subdir in src, put lyxstring and lstrings
500 there + the extra files atexit, fileblock, strerror. Created
501 Makefile.am. edited configure.in and src/Makefile.am to use this
502 new subdir. More files moved to support.
504 * imported som of the functions from repository lyx, filetools
506 * ran tags-query-replace on LString -> string, corrected the bogus
507 cases. Tried to make use of lstrings.[hC], debugged a lot. There
508 is still some errors in there. This is errors where too much or
509 too litle get deleted from strings (string::erase, string::substr,
510 string::replace), there can also be some off by one errors, or
511 just plain wrong use of functions from lstrings. Viewing of quotes
514 * LyX is now running fairly well with string, but there are
515 certainly some bugs yet (see above) also string is quite different
516 from LString among others in that it does not allow null pointers
517 passed in and will abort if it gets any.
519 * Added the revtex4 files I forgot when setting up the repository.
521 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
523 * All over: Tried to clean everything up so that only the files
524 that we really need are included in the cvs repository.
525 * Switched to use automake.
526 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
527 * Install has not been checked.
529 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
531 * po/pt.po: Three errors:
532 l.533 and l.538 format specification error
533 l. 402 duplicate entry, I just deleted it.