1 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
4 to lyxstring.C, and only keep a forward declaration in
5 lyxstring.h. Simplifies the header file a bit and should help a
6 bit on compile time too. Also changes to Srep will not mandate a
7 recompile of code just using string.
8 (~lyxstring): definition moved here since it uses srep.
9 (size): definition moved here since it uses srep.
11 * src/support/lyxstring.h: removed a couple of "inline" that should
14 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
16 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
19 1999-10-21 Juergen Vigna <jug@sad.it>
21 * src/table.C (SetPWidth): Just a small fix so the alignment is not
22 set to left if I just remove the width entry (or it is empty).
24 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
25 paragraph when having dummy paragraphs.
27 1999-10-20 Juergen Vigna <jug@sad.it>
29 * src/insets/figinset.C: just commented some fl_free_form calls
30 and added warnings so that this calls should be activated later
31 again. This avoids for now a segfault, but we have a memory leak!
33 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
34 'const char * argument' to 'string argument', this should
35 fix some Asserts() in lyxstring.C.
37 * src/lyxfunc.h: Removed the function argAsString(const char *)
38 as it is not used anymore.
40 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
42 * src/support/lyxstring.C (helper): changed to use
43 sizeof(object->rep->ref).
44 (operator>>): changed to use a pointer instead.
46 * src/support/lyxstring.h: changed const reference & to value_type
47 const & lets see if that helps.
49 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
51 * Makefile.am (rpmdist): fixed to have non static package and
54 * src/support/lyxstring.C: removed the compilation guards
56 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
59 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
60 conditional compile of lyxstring.Ch
62 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
63 stupid check, but it is a lot better than the bastring hack.
64 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
66 * several files: changed string::erase into string::clear. Not
69 * src/chset.C (encodeString): use a char temporary instead
71 * src/table.C (TexEndOfCell): added tostr around
72 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
76 (DocBookEndOfCell): ditto
77 (DocBookEndOfCell): ditto
78 (DocBookEndOfCell): ditto
79 (DocBookEndOfCell): ditto
81 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
83 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
85 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
86 (MenuBuildProg): added tostr around ret
87 (MenuRunChktex): added tostr around ret
88 (DocumentApplyCB): added tostr around ret
90 * src/chset.C (encodeString): added tostr around t->ic
92 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
93 (makeLaTeXFile): added tostr around tocdepth
94 (makeLaTeXFile): added tostr around ftcound - 1
96 * src/insets/insetbib.C (setCounter): added tostr around counter.
98 * src/support/lyxstring.h: added an operator+=(int) to catch more
101 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
102 (lyxstring): We DON'T allow NULL pointers.
104 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
106 * src/mathed/math_macro.C (MathMacroArgument::Write,
107 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
108 when writing them out.
110 * src/LString.C: remove, since it is not used anymore.
112 * src/support/lyxstring.C: condition the content to
113 USE_INCLUDED_STRING macro.
115 * src/mathed/math_symbols.C, src/support/lstrings.C,
116 src/support/lyxstring.C: add `using' directive to specify what
117 we need in <algorithm>. I do not think that we need to
118 conditionalize this, but any thought is appreciated.
120 * many files: change all callback functions to "C" linkage
121 functions to please strict C++ compilers like DEC cxx 6.1 in mode
122 strict_ansi. Those who were static are now global.
123 The case of callbacks which are static class members is
124 trickier, since we have to make C wrappers around them (see
125 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
126 did not finish this yet, since it defeats the purpose of
127 encapsulation, and I am not sure what the best route is.
129 1999-10-19 Juergen Vigna <jug@sad.it>
131 * src/support/lyxstring.C (lyxstring): we permit to have a null
132 pointer as assignment value and just don't assign it.
134 * src/vspace.C (nextToken): corrected this function substituting
135 find_first(_not)_of with find_last_of.
137 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
138 (TableOptCloseCB) (TableSpeCloseCB):
139 inserted fl_set_focus call for problem with fl_hide_form() in
142 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
144 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
147 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
149 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
150 LyXLex::next() and not eatline() to get its argument.
152 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
154 * Makefile.am (rpmdist): added a rpmdist target
156 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
157 per Kayvan's instructions.
159 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
161 * src/Makefile.am: add a definition for localedir, so that locales
162 are found after installation (Kayvan)
164 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
166 * development/.cvsignore: new file.
168 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
170 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
171 C++ compiler provides wrappers for C headers and use our alternate
174 * configure.in: use LYX_CXX_CHEADERS.
176 * src/cheader/: new directory, populated with cname headers from
177 libstdc++-2.8.1. They are a bit old, but probably good enough for
178 what we want (support compilers who lack them).
180 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
181 from includes. It turns out is was stupid.
183 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
185 * lib/Makefile.am (install-data-local): forgot a ';'
186 (install-data-local): forgot a '\'
187 (libinstalldirs): needed after all. reintroduced.
189 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
191 * configure.in (AC_OUTPUT): added lyx.spec
193 * development/lyx.spec: removed file
195 * development/lyx.spec.in: new file
197 * po/*.po: merged with lyx.pot becuase of make distcheck
199 * lib/Makefile.am (dist-hook): added dist-hook so that
200 documentation files will be included when doing a make
201 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
202 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
204 more: tried to make install do the right thing, exclude CVS dirs
207 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
208 Path would fit in more nicely.
210 * all files that used to use pathstack: uses now Path instead.
211 This change was a lot easier than expected.
213 * src/support/path.h: new file
215 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
217 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
219 * src/support/lyxstring.C (getline): Default arg was given for
222 * Configure.cmd: removed file
224 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
226 * src/support/DebugStream.[Ch]: remove the explicit std:: before
227 streams classes and types, add the proper 'using' statements when
228 MODERN_STL is defined.
230 * src/debug.h: move the << operator definition after the inclusion
233 * src/support/filetools.C: include "LAssert.h", which is needed
236 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
239 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
240 include "debug.h" to define a proper ostream.
242 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
244 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
245 method to the SystemCall class which can kill a process, but it's
246 not fully implemented yet.
248 * src/*.C: Changed Systemcalls::Startscript() to startscript()
250 * src/support/FileInfo.h: Better documentation
252 * src/lyxfunc.C: Added support for buffer-export html
254 * src/menus.C: Added Export->As HTML...
256 * lib/bind/*.bind: Added short-cut for buffer-export html
258 * src/lyxrc.*: Added support for new \tth_command
260 * lib/lyxrc.example: Added stuff for new \tth_command
262 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
264 * lib/Makefile.am (IMAGES): removed images/README
265 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
266 installes in correct place. Check permisions is installed
269 * src/LaTeX.C: some no-op changes moved declaration of some
272 * src/LaTeX.h (LATEX_H): changed include guard name
274 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
276 * lib/reLyX/Makefile.am: install noweb2lyx.
278 * lib/Makefile.am: install configure.
280 * lib/reLyX/configure.in: declare a config aux dir; set package
281 name to lyx (not sure what the best solution is); generate noweb2lyx.
283 * lib/layouts/egs.layout: fix the bibliography layout.
285 1999-10-08 Jürgen Vigna <jug@sad.it>
287 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
288 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
289 it returned without continuing to search the path.
291 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
293 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
294 also fixes a bug. It is not allowed to do tricks with std::strings
295 like: string a("hei"); &a[e]; this will not give what you
296 think... Any reason for the complexity in this func?
298 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
300 * Updated README and INSTALL a bit, mostly to check that my
301 CVS rights are correctly set up.
303 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
305 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
306 does not allow '\0' chars but lyxstring and std::string does.
308 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
310 * autogen.sh (AUTOCONF): let the autogen script create the
311 POTFILES.in file too. POTFILES.in should perhaps now not be
312 included in the cvs module.
314 * some more files changed to use C++ includes instead of C ones.
316 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
318 (Reread): added tostr to nlink. buggy output otherwise.
319 (Reread): added a string() around szMode when assigning to Buffer,
320 without this I got a log of garbled info strings.
322 * acconfig.h: commented out the PTR_AS_INT macros. They should not
325 * I have added several ostream & operator<<(ostream &, some_type)
326 functions. This has been done to avoid casting and warnings when
327 outputting enums to lyxerr. This as thus eliminated a lot of
328 explicit casts and has made the code clearer. Among the enums
329 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
330 mathed enums, some font enum the Debug::type enum.
332 * src/support/lyxstring.h (clear): missing method. equivalent of
335 * all files that contained "stderr": rewrote constructs that used
336 stderr to use lyxerr instead. (except bmtable)
338 * src/support/DebugStream.h (level): and the passed t with
339 Debug::ANY to avoid spurious bits set.
341 * src/debug.h (Debug::type value): made it accept strings of the
344 * configure.in (Check for programs): Added a check for kpsewhich,
345 the latex generation will use this later to better the dicovery of
348 * src/BufferView.C (create_view): we don't need to cast this to
349 (void*) that is done automatically.
350 (WorkAreaButtonPress): removed some dead code.
352 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
354 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
355 is not overwritten when translated (David Sua'rez de Lis).
357 * lib/CREDITS: Added David Sua'rez de Lis
359 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
361 * src/bufferparams.C (BufferParams): default input encoding is now
364 * acinclude.m4 (cross_compiling): comment out macro
365 LYX_GXX_STRENGTH_REDUCE.
367 * acconfig.h: make sure that const is not defined (to empty) when
368 we are compiling C++. Remove commented out code using SIZEOF_xx
371 * configure.in : move the test for const and inline as late as
372 possible so that these C tests do not interefere with C++ ones.
373 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
376 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
378 * src/table.C (getDocBookAlign): remove bad default value for
381 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
383 (ShowFileMenu2): ditto.
385 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
388 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
390 * Most files: finished the change from the old error code to use
391 DebugStream for all lyxerr debugging. Only minor changes remain
392 (e.g. the setting of debug levels using strings instead of number)
394 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
396 * src/layout.C (Add): Changed to use compare_no_case instead of
399 * src/FontInfo.C: changed loop variable type too string::size_type.
401 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
403 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
404 set ETAGS_ARGS to --c++
406 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
408 * src/table.C (DocBookEndOfCell): commented out two unused variables
410 * src/paragraph.C: commented out four unused variables.
412 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
413 insed a if clause with type string::size_type.
415 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
418 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
420 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
421 variable, also changed loop to go from 0 to lenght + 1, instead of
422 -1 to length. This should be correct.
424 * src/LaTeX.C (scanError): use string::size_type as loop variable
427 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
428 (l.896) since y_tmp and row was not used anyway.
430 * src/insets/insetref.C (escape): use string::size_type as loop
433 * src/insets/insetquotes.C (Width): use string::size_type as loop
435 (Draw): use string::size_type as loop variable type.
437 * src/insets/insetlatexaccent.C (checkContents): use
438 string::size_type as loop variable type.
440 * src/insets/insetlabel.C (escape): use string::size_type as loop
443 * src/insets/insetinfo.C: added an extern for current_view.
445 * src/insets/insetcommand.C (scanCommand): use string::size_type
446 as loop variable type.
448 * most files: removed the RCS tags. With them we had to recompile
449 a lot of files after a simple cvs commit. Also we have never used
450 them for anything meaningful.
452 * most files: tags-query-replace NULL 0. As adviced several plases
453 we now use "0" instead of "NULL" in our code.
455 * src/support/filetools.C (SpaceLess): use string::size_type as
458 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
460 * src/paragraph.C: fixed up some more string stuff.
462 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
464 * src/support/filetools.h: make modestr a std::string.
466 * src/filetools.C (GetEnv): made ch really const.
468 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
469 made code that used these use max/min from <algorithm> instead.
471 * changed several c library include files to their equivalent c++
472 library include files. All is not changed yet.
474 * created a support subdir in src, put lyxstring and lstrings
475 there + the extra files atexit, fileblock, strerror. Created
476 Makefile.am. edited configure.in and src/Makefile.am to use this
477 new subdir. More files moved to support.
479 * imported som of the functions from repository lyx, filetools
481 * ran tags-query-replace on LString -> string, corrected the bogus
482 cases. Tried to make use of lstrings.[hC], debugged a lot. There
483 is still some errors in there. This is errors where too much or
484 too litle get deleted from strings (string::erase, string::substr,
485 string::replace), there can also be some off by one errors, or
486 just plain wrong use of functions from lstrings. Viewing of quotes
489 * LyX is now running fairly well with string, but there are
490 certainly some bugs yet (see above) also string is quite different
491 from LString among others in that it does not allow null pointers
492 passed in and will abort if it gets any.
494 * Added the revtex4 files I forgot when setting up the repository.
496 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
498 * All over: Tried to clean everything up so that only the files
499 that we really need are included in the cvs repository.
500 * Switched to use automake.
501 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
502 * Install has not been checked.
504 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
506 * po/pt.po: Three errors:
507 l.533 and l.538 format specification error
508 l. 402 duplicate entry, I just deleted it.