1 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
4 introduced by faulty regex.
6 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
8 * src/ImportNoweb.C (documentclass): fixed bounds for substr
9 operation, yielding correct results for the reLyX command.
11 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
13 * src/support/filetools.C (ExpandPath): removed an over eager
15 (ReplaceEnvironmentPath): ditto
17 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
18 shows that we are doing something fishy in our code...
22 * src/lyxrc.C (read): use a double switch trick to get more help
23 from the compiler. (the same trick is used in layout.C)
24 (write): new function. opens a ofstream and pass that to output
25 (output): new function, takes a ostream and writes the lyxrc
26 elemts to it. uses a dummy switch to make sure no elements are
29 * src/lyxlex.h: added a struct pushpophelper for use in functions
30 with more than one exit point.
32 * src/lyxlex.[Ch] (GetInteger): made it const
36 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
38 * src/layout.[hC] : LayoutTags splitted into several enums, new
39 methods created, better error handling cleaner use of lyxlex. Read
42 * src/bmtable.[Ch]: change some member prototypes because of the
45 * commandtags.h, src/LyXAction.C (init): new function:
46 "preferences-save", saves the lyxrc entries into .lyx/preferences.
47 This file is not read automatically but you can add \input
48 preferences to your lyxrc if you want to. We need to discuss how
51 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
52 in .aux, also remove .bib and .bst files from dependencies when
55 * src/BufferView.C, src/LyXView.C: add const_cast several places
56 because of changes to images.
58 * lib/images/*: same change as for images/*
60 * lib/lyxrc.example: Default for accept_compound is false not no.
62 * images/*: changed to be const, however I have som misgivings
63 about this change so it might be changed back.
65 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
67 * lib/configure, po/POTFILES.in: regenerated
69 * autogen.sh: autogenerate lib/configure from lib/configure.m4
71 * config/lib_configure.m4: removed
73 * lib/configure.m4: new file (was config/lib_configure.m4)
75 * configure.in: do not test for rtti, since we do not use it.
77 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
79 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
80 doubling of allocated space scheme. This makes it faster for large
81 strings end to use less memory for small strings. xtra rememoved.
83 * src/insets/figinset.C (waitalarm): commented out.
84 (GhostscriptMsg): use static_cast
85 (GhostscriptMsg): use new instead of malloc to allocate memory for
86 cmap. also delete the memory after use.
88 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
90 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
91 for changes in bibtex database or style.
92 (runBibTeX): remove all .bib and .bst files from dep before we
94 (run): use scanAuc in when dep file already exist.
96 * src/DepTable.C (remove_files_with_extension): new method
99 * src/DepTable.[Ch]: made many of the methods const.
101 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
103 * src/bufferparams.C: make sure that the default textclass is
104 "article". It used to be the first one by description order, but
105 now the first one is "docbook".
107 * src/lyx_main.C (setDebuggingLevel): change type of argument to
108 string; call Debug::value.
109 (easyParse): pass complete argument to setDebuggingLevel().
111 * src/debug.h (value): fix the code that parses debug levels.
113 * src/debug.h: add new debug type ACTION, reserved for LyXAction
116 * src/LyXAction.C: use Debug::ACTION as debug channel.
118 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
120 * NEWS: updated for the future 1.1.3 release.
122 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
123 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
124 it should. This is of course a controversial change (since many
125 people will find that their lyx workscreen is suddenly full of
126 red), but done for the sake of correctness.
128 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
129 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
131 * src/insets/inseterror.h, src/insets/inseturl.h,
132 src/insets/insetinfo.h, src/insets/figinset.h,
133 src/mathed/formulamacro.h, src/mathed/math_macro.h
134 (EditMessage): add a missing const and add _() to make sure that
137 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
138 src/insets/insetbib.C, src/support/filetools.C: add `using'
141 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
142 doing 'Insert index of last word' at the beginning of a paragraph.
144 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
146 * several files: white-space changes.
148 * src/mathed/formula.C: removed IsAlpha and IsDigit
150 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
151 .bib file. use a ifstream instead of FilePtr when parsing the .bib
154 * src/insets/figinset.C (GetPSSizes): don't break when
155 "EndComments" is seen. But break when a boundingbox is read.
157 * all classes inherited from Inset: return value of Clone
158 changed back to Inset *.
160 * all classes inherited form MathInset: return value of Clone
161 changed back to MathedInset *.
163 * src/insets/figinset.C (runqueue): use a ofstream to output the
164 gs/ps file. Might need some setpresicion or setw. However I can
165 see no problem with the current code.
166 (runqueue): use sleep instead of the alarm/signal code. I just
167 can't see the difference.
169 * src/paragraph.C (LyXParagraph): reserve space in the new
170 paragraph and resize the inserted paragraph to just fit.
172 * src/lyxfunc.h (operator|=): added operator for func_status.
174 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
175 check for readable file.
177 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
178 check for readable file.
179 (MenuMakeLinuxDoc): ditto
180 (MenuMakeDocBook): ditto
181 (MenuMakeAscii): ditto
182 (InsertAsciiFile): split the test for openable and readable
184 * src/bmtable.C (draw_bitmaptable): use
185 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
187 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
188 findtexfile from LaTeX to filetools.
190 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
191 instead of FilePtr. Needs to be verified by a literate user.
193 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
195 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
196 (EditMessage): likewise.
198 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
199 respectively as \textasciitilde and \textasciicircum.
201 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
203 * src/support/lyxstring.h: made the methods that take iterators
206 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
207 (regexMatch): made is use the real regex class.
209 * src/support/Makefile.am: changed to use libtool
211 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
213 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
215 (MathIsInset ++): changed several macros to be inline functions
218 * src/mathed/Makefile.am: changed to use libtool
220 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
222 * src/insets/inset* : Clone changed to const and return type is
223 the true insettype not just Inset*.
225 * src/insets/Makefile.am: changed to use libtool
227 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
229 * src/undo.[Ch] : added empty() and changed some of the method
232 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
234 * src/lyxparagraph.h: use id() and id(...) instead of getID and
235 setID use block<> for the bullets array, added const several places.
237 * src/lyxfunc.C (getStatus): new function
239 * src/lyxfunc.[Ch] : small changes to take advantage of the new
240 LyXAction, added const to several funtions.
242 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
243 a std::map, and to store the dir items in a vector.
245 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
248 * src/LyXView.[Ch] + other files : changed currentView to view.
250 * src/LyXAction.[Ch] : ported from the old devel branch.
252 * src/.cvsignore: added .libs and a.out
254 * configure.in : changes to use libtool.
256 * acinclude.m4 : inserted libtool.m4
258 * .cvsignore: added libtool
260 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
262 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
263 file name in insets and mathed directories (otherwise the
264 dependency is not taken in account under cygwin).
266 * src/text2.C (InsertString[AB]): make sure that we do not try to
267 read characters past the string length.
269 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
271 * lib/doc/LaTeXConfig.lyx.in,
272 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
274 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
275 file saying who created them and when this heppened; this is
276 useless and annoys tools like cvs.
278 * lib/layouts/g-brief-{en,de}.layout,
279 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
280 from Thomas Hartkens <thomas@hartkens.de>.
282 * src/{insets,mathed}/Makefile.am: do not declare an empty
283 LDFLAGS, so that it can be set at configure time (useful on Irix
286 * lib/reLyX/configure.in: make sure that the prefix is set
287 correctly in LYX_DIR.
289 1999-11-18 Andre' Poenitz <poenitz@mathematik.tu-chemnitz.de>
291 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
292 be used by 'command-sequence' this allows to bind a key to a
293 sequence of LyX-commands
294 (Example: 'command-sequence math-insert alpha; math-insert beta;")
296 * src/LyXAction.C: add "command-sequence"
298 * src/LyXFunction.C: handling of "command-sequence"
300 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
301 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
303 * src/lyxserver.C, src/minibuffer.C: Use this new interface
305 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
307 * src/buffer.C (writeFile): Do not output a comment giving user
308 and date at the beginning of a .lyx file. This is useless and
309 annoys cvs anyway; update version number to 1.1.
311 * src/Makefile.am (LYX_DIR): add this definition, so that a
312 default path is hardcoded in LyX.
314 * configure.in: Use LYX_GNU_GETTEXT.
316 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
317 AM_GNU_GETTEXT with a bug fixed.
319 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
321 * src/chset.C: add "using std::ifstream;" to please dec cxx.
323 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
324 which is used to point to LyX data is now LYX_DIR_11x.
326 * lyx.man: convert to a unix text file; small updates.
328 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
330 * src/support/LSubstring.[Ch]: made the second arg of most of the
331 constructors be a const reference.
333 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
336 * src/support/lyxstring.[Ch] (swap): added missing member function
337 and specialization of swap(str, str);
339 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
341 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
342 trace of the old one.
344 * src/undo.[Ch]: made the undostack use std::list to store undo's in
345 put the member definitions in undo.C.
347 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
348 NEW_TEXT and have now only code that was included when this was
351 * src/intl.C (LCombo): use static_cast
353 (DispatchCallback): ditto
355 * src/definitions.h: removed whole file
357 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
359 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
360 parsing and stores in a std:map. a regex defines the file format.
361 removed unneeded members.
363 * src/bufferparams.h: added several enums from definitions.h here.
364 Removed unsused destructor. Changed some types to use proper enum
365 types. use block to have the temp_bullets and user_defined_bullets
366 and to make the whole class assignable.
368 * src/bufferparams.C (Copy): removed this functions, use a default
371 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
374 * src/buffer.C (readLyXformat2): commend out all that have with
375 oldpapersize to do. also comment out all that hve to do with
376 insetlatex and insetlatexdel.
377 (setOldPaperStuff): commented out
379 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
381 * src/LyXAction.C: remove use of inset-latex-insert
383 * src/mathed/math_panel.C (button_cb): use static_cast
385 * src/insets/Makefile.am (insets_o_SOURCES): removed
388 * src/support/lyxstring.C (helper): use the unsigned long
389 specifier, UL, instead of a static_cast.
391 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
393 * src/support/block.h: new file. to be used as a c-style array in
394 classes, so that the class can be assignable.
396 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
398 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
399 NULL, make sure to return an empty string (it is not possible to
400 set a string to NULL).
402 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
404 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
406 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
408 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
409 link line, so that Irix users (for example) can set it explicitely to
412 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
413 it can be overidden at make time (static or dynamic link, for
416 * src/vc-backend.C, src/LaTeXFeatures.h,
417 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
418 statements to bring templates to global namespace.
420 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
422 * src/support/lyxstring.C (operator[] const): make it standard
425 * src/minibuffer.C (Init): changed to reflect that more
426 information is given from the lyxvc and need not be provided here.
428 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
430 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
432 * src/LyXView.C (UpdateTimerCB): use static_cast
433 (KeyPressMask_raw_callback): ditto
435 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
436 buffer_, a lot of changes because of this. currentBuffer() ->
437 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
438 also changes to other files because of this.
440 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
442 * src/vc-backend.[Ch]: new files. The backends for vc handling,
443 have no support for RCS and partial support for CVS, will be
446 * src/insets/ several files: changes because of function name
447 changes in Bufferview and LyXView.
449 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
451 * src/support/LSubstring.[Ch]: new files. These implement a
452 Substring that can be very convenient to use. i.e. is this
454 string a = "Mary had a little sheep";
455 Substring(a, "sheep") = "lamb";
456 a is now "Mary has a little lamb".
458 * src/support/LRegex.[Ch]: a regex class that can be used to pick
459 out patterns and subpatterns of strings. It is used by LSubstring
460 and also by vc-backend.C
462 * src/support/lyxstring.C: went over all the assertions used and
463 tried to correct the wrong ones and flag which of them is required
464 by the standard. some bugs found because of this. Also removed a
465 couple of assertions.
467 * src/support/Makefile.am (libsupport_a_SOURCES): added
468 LSubstring.[Ch] and LRegex.[Ch]
470 * src/support/FileInfo.h: have struct stat buf as an object and
471 not a pointer to one, some changes because of this.
473 * src/LaTeXFeatures.C (getTClassPreamble): also use the
474 information in layout when adding the layouts preamble to the
477 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
480 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
481 because of bug in OS/2.
483 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
485 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
486 \verbatim@font instead of \ttfamily, so that it can be redefined.
488 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
489 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
490 src/layout.h, src/text2.C: add 'using' directive to bring the
491 STL templates we need from the std:: namespace to the global one.
492 Needed by DEC cxx in strict ansi mode.
494 * src/support/LIstream.h,src/support/LOstream.h,
495 src/support/lyxstring.h,src/table.h,
496 src/lyxlookup.h: do not include <config.h> in header
497 files. This should be done in the .C files only.
499 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
503 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
505 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
506 from Kayvan to fix the tth invokation.
508 * development/lyx.spec.in: updates from Kayvan to reflect the
509 changes of file names.
511 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
513 * src/text2.C (InsertStringB): use std::copy
514 (InsertStringA): use std::copy
516 * src/bufferlist.C: use a vector to store the buffers in. This is
517 an internal change and should not affect any other thing.
519 * src/BufferView.C (waitForX): use XSync instead of the lengthy
522 * src/text.C (Fill): fix potential bug, one off bug.
524 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
526 * src/Makefile.am (lyx_main.o): add more files it depends on.
528 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
530 * src/support/lyxstring.C: use size_t for the reference count,
531 size, reserved memory and xtra.
532 (internal_compare): new private member function. Now the compare
533 functions should work for std::strings that have embedded '\0'
535 (compare): all compare functions rewritten to use
538 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
540 * src/support/lyxstring.C (compare): pass c_str()
541 (compare): pass c_str
542 (compare): pass c_str
544 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
546 * src/support/DebugStream.C: <config.h> was not included correctly.
548 * lib/configure: forgot to re-generate it :( I'll make this file
551 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
553 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
556 * src/support/lyxstring.C: some changes from length() to rep->sz.
557 avoids a function call.
559 * src/support/filetools.C (SpaceLess): yet another version of the
560 algorithm...now per Jean-Marc's suggestions.
562 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
564 * src/layout.C (less_textclass_desc): functor for use in sorting
566 (LyXTextClass::Read): sort the textclasses after reading.
568 * src/support/filetools.C (SpaceLess): new version of the
569 SpaceLess functions. What problems does this one give? Please
572 * images/banner_bw.xbm: made the arrays unsigned char *
574 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
576 * src/support/lyxstring.C (find): remove bogus assertion in the
577 two versions of find where this has not been done yet.
579 * src/support/lyxlib.h: add missing int return type to
582 * src/menus.C (ShowFileMenu): disable exporting to html if no
583 html export command is present.
585 * config/lib_configure.m4: add a test for an HTML converter. The
586 programs checked for are, in this order: tth, latex2html and
589 * lib/configure: generated from config/lib_configure.m4.
591 * src/lyxfunc.C (Dispatch): update and improve the execution of an
592 html converter. The parameters are now passed through $$FName and
593 $$OutName, instead of standard input/output.
595 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
597 * lib/lyxrc.example: update description of \html_command.
598 add "quotes" around \screen_font_xxx font setting examples to help
599 people who use fonts with spaces in their names.
601 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
603 * Distribution files: updates for v1.1.2
605 * src/support/lyxstring.C (find): remove bogus assert and return
606 npos for the same condition.
608 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
610 * added patch for OS/2 from SMiyata.
612 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
614 * src/text2.C (CutSelection): make space_wrapped a bool
615 (CutSelection): dont declare int i until we have to.
616 (alphaCounter): return a char const *.
618 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
620 * src/support/syscall.C (Systemcalls::kill):
621 src/support/filetools.C (PutEnv, PutEnvPath):
622 src/lyx_cb.C (addNewlineAndDepth):
623 src/FontInfo.C (FontInfo::resize): condition some #warning
624 directives with WITH_WARNINGS.
627 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
629 * src/layout.[Ch] + several files: access to class variables
630 limited and made accessor functions instead a lot of code changed
631 becuase of this. Also instead of returning pointers often a const
632 reference is returned instead.
634 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
636 * src/Makefile.am (dist-hook): added used to remove the CVS from
637 cheaders upon creating a dist
638 (EXTRA_DIST): added cheaders
640 * src/support/lstrings.C (tostr(char)): fix it to handle param as
641 a character not as a small integer.
643 * src/support/lyxstring.C (find): removed Assert and added i >=
644 rep->sz to the first if.
646 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
648 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
649 src/LyXView.C src/buffer.C src/bufferparams.C
650 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
651 src/text2.C src/insets/insetinclude.C:
652 lyxlayout renamed to textclasslist.
654 * src/layout.C: some lyxerr changes.
656 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
657 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
658 (LyXLayoutList): removed all traces of this class.
659 (LyXTextClass::Read): rewrote LT_STYLE
660 (LyXTextClass::hasLayout): new function
661 (LyXTextClass::GetLayout): rewritten to return an iterator + has
662 both const and nonconst version.
663 (LyXTextClass::delete_layout): new function.
664 (LyXTextClassList::Style): bug fix. do the right thing if layout
666 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
667 (LyXTextClassList::NameOfLayout): ditto
668 (LyXTextClassList::Load): ditto
670 * src/buffer.C (makeLaTeXFile): new access to layoutlist
672 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
674 * src/LyXAction.C (LookupFunc): added a workaround for sun
675 compiler, on the other hand...we don't know if the current code
676 compiles on sun at all...
678 * src/support/filetools.C (CleanupPath): subst fix
680 * src/insets/insetbib.C (delDatabase): subst fix, this looks
683 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
684 complained about this one?
686 * src/insets/insetinclude.C (Latex): subst fix
688 * src/insets/insetbib.C (getKeys): subst fix
690 * src/LyXSendto.C (SendtoApplyCB): subst fix
692 * src/lyx_main.C (init): subst fix
694 * src/layout.C (Read): subst fix
696 * src/lyx_sendfax_main.C (button_send): subst fix
698 * src/buffer.C (RoffAsciiTable): subst fix
700 * src/lyx_cb.C (MenuFax): subst fix
701 (PrintApplyCB): subst fix
703 1999-10-26 Juergen Vigna <jug@sad.it>
705 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
707 (Read): Cleaned up this code so now we read only format vestion >= 5
709 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
711 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
712 come nobody has complained about this one?
714 * src/insets/insetinclude.C (Latex): subst fix
716 * src/insets/insetbib.C (getKeys): subst fix
718 * src/lyx_main.C (init): subst fix
720 * src/layout.C (Read): subst fix
722 * src/buffer.C (RoffAsciiTable): subst fix
724 * src/lyx_cb.C (MenuFax): subst fix.
726 * src/layout.[hC] + some other files: rewrote to use
727 std::container to store textclasses and layouts in.
728 Simplified, removed a lot of code. Make all classes
729 assignable. Further simplifications and review of type
732 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
733 lastfiles to create the lastfiles partr of the menu.
735 * src/lastfiles.[Ch]: rewritten to use deque to store the
736 lastfiles in. Uses fstream for reading and writing. Simplifies
739 * src/support/syscall.C: remove explicit cast.
741 * src/BufferView.C (CursorToggleCB): removed code snippets that
743 use explicat C++ style casts instead of C style casts. also use
744 u_vdata instea of passing pointers in longs.
746 * src/PaperLayout.C: removed code snippets that were commented out.
748 * src/lyx_gui_misc.C: removed code snippets that were commented out.
750 * src/lyx_main.C: removed code snippets that wer commented out.
752 * src/paragraph.C: removed code snippets that were commented out.
754 * src/lyxvc.C (logClose): use static_cast
756 (viewLog): remove explicit cast to void*
757 (showLog): removed old commented code
759 * src/menus.C: use static_cast instead of C style casts. use
760 u_vdata instead of u_ldata. remove explicit cast to (long) for
761 pointers. Removed old code that was commented out.
763 * src/insets/inset.C: removed old commented func
765 * src/insets/insetref.C (InsetRef): removed old code that had been
766 commented out for a long time.
768 (escape): removed C style cast
770 * src/insets/insetlatexaccent.C (Draw): removed old commented code
772 * src/insets/insetlatex.C (Draw): removed old commented code
773 (Read): rewritten to use string
775 * src/insets/insetlabel.C (escape): removed C style cast
777 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
779 * src/insets/insetindex.C: use static_cast and u_vdata, removed
782 * src/insets/insetinclude.h: removed a couple of stupid bools
784 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
785 (Clone): remove C style cast
786 (getKeys): changed list to lst because of std::list
788 * src/insets/inseterror.C (Draw): removed som old commented code.
790 * src/insets/insetcommand.C (Draw): removed some old commented code.
792 * src/insets/insetbib.C (bibitem_cb): removed code that has been
793 commented out forever.
794 (bibitem_cb): use static_cast instead of C style cast
795 use of vdata changed to u_vdata.
797 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
799 (CloseUrlCB): use static_cast instead of C style cast.
800 (CloseUrlCB): added a fl_free form...it seemed to be missing.
802 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
803 (C_InsetInfo_CloseInfoCB): forward the ob parameter
804 (CloseInfoCB): static_cast from ob->u_vdata instead.
805 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
808 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
809 (C_InsetError_CloseErrorCB): forward the ob parameter
810 (CloseErrorCB): static_cast from ob->u_vdata instead.
812 * src/vspace.h: include LString.h since we use string in this class.
814 * src/vspace.C (lyx_advance): changed name from advance because of
815 nameclash with stl. And since we cannot use namespaces yet...I
816 used a lyx_ prefix instead. Expect this to change when we begin
819 * src/BufferView.[Ch] (BufferView::~BufferView): removed
821 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
822 and removed now defunct constructor and deconstructor.
824 * src/BufferView.h: have backstack as a object not as a pointer.
825 removed initialization from constructor. added include for BackStack
827 * development/lyx.spec.in (%build): add CFLAGS also.
829 * src/screen.C (drawFrame): removed another warning.
831 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
833 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
834 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
835 README and ANNOUNCE a bit for the next release. More work is
838 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
839 unbreakable if we are in freespacing mode (LyX-Code), but not in
842 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
844 * src/BackStack.h: fixed initialization order in constructor
846 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
848 * acinclude.m4 (VERSION): new rules for when a version is
849 development, added also a variable for prerelease.
850 (warnings): we set with_warnings=yes for prereleases
851 (lyx_opt): prereleases compile with same optimization as development
852 (CXXFLAGS): only use pedantic if we are a development version
854 * src/BufferView.C (restorePosition): don't do anything if the
857 * src/BackStack.h: added member empty, use this to test if there
858 is anything to pop...
860 1999-10-25 Juergen Vigna <jug@sad.it>
863 * forms/layout_forms.fd +
864 * forms/latexoptions.fd +
865 * lyx.fd: changed for various form resize issues
867 * src/mathed/math_panel.C +
868 * src/insets/inseterror.C +
869 * src/insets/insetinfo.C +
870 * src/insets/inseturl.C +
871 * src/insets/inseturl.h +
874 * src/PaperLayout.C +
875 * src/ParagraphExtra.C +
876 * src/TableLayout.C +
878 * src/layout_forms.C +
885 * src/menus.C: fixed various resize issues. So now forms can be
886 resized savely or not be resized at all.
888 * forms/form_url.fd +
889 * src/insets/form_url.[Ch]: added because it's cleaner and easier
892 * src/insets/Makefile.am: added files form_url.[Ch]
894 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
896 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
897 (and presumably 6.2).
899 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
900 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
901 remaining static member callbacks.
903 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
906 * src/support/lyxstring.h: declare struct Srep as friend of
907 lyxstring, since DEC cxx complains otherwise.
909 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
911 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
913 * src/LaTeX.C (run): made run_bibtex also depend on files with
915 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
916 are put into the dependency file.
918 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
919 the code has shown itself to work
920 (create_ispell_pipe): removed another warning, added a comment
923 * src/minibuffer.C (ExecutingCB): removed code that has been
924 commented out a long time
926 * src/lyxfunc.C (processKeyEvent): removed some very old commented
927 out code + a warning.
929 * src/support/lyxstring.h: comment out the three private
930 operators, when compiling with string ansi conforming compilers
933 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
935 (pixmapFromBitmapData): change type of bdata to be unsigned char *
936 (pixmapFromBitmapData): add a reinterpret_cast in the call to
939 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
942 * src/mathed/math_panel.C (create_math_panel): remove explicit
945 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
948 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
949 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
950 to XCreatePixmapFromBitmapData
951 (fl_set_bmtable_data): change the last argument to be unsigned
953 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
954 and bh to be unsigned int, remove explicit casts in call to
957 * images/arrows.xbm: made the arrays unsigned char *
958 * images/varsz.xbm: ditto
959 * images/misc.xbm: ditto
960 * images/greek.xbm: ditto
961 * images/dots.xbm: ditto
962 * images/brel.xbm: ditto
963 * images/bop.xbm: ditto
965 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
967 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
968 (LYX_PROG_CXX): added -pedantic to g++ compile options when
969 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
971 (LYX_CXX_CHEADERS): added <clocale> to the test.
973 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
975 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
977 * src/support/lyxstring.C (append): fixed something that must be a
978 bug, rep->assign was used instead of rep->append.
980 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
983 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
984 lyx insert double chars. Fix spotted by Kayvan.
986 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
988 * Fixed the tth support. I messed up with the Emacs patch apply feature
989 and omitted the changes in lyxrc.C.
991 1999-10-22 Juergen Vigna <jug@sad.it>
993 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
995 * src/lyx_cb.C (MenuInsertRef) +
996 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
997 the form cannot be resized under it limits (fixes a segfault)
999 * src/lyx.C (create_form_form_ref) +
1000 * forms/lyx.fd: Changed Gravity on name input field so that it is
1003 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1005 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1006 <ostream> and <istream>.
1008 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1009 whether <fstream> provides the latest standard features, or if we
1010 have an oldstyle library (like in egcs).
1011 (LYX_CXX_STL_STRING): fix the test.
1013 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1014 code on MODERN_STL_STREAM.
1016 * src/support/lyxstring.h: use L{I,O}stream.h.
1018 * src/support/L{I,O}stream.h: new files, designed to setup
1019 correctly streams for our use
1020 - includes the right header depending on STL capabilities
1021 - puts std::ostream and std::endl (for LOStream.h) or
1022 std::istream (LIStream.h) in toplevel namespace.
1024 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1026 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1027 was a bib file that had been changed we ensure that bibtex is run.
1028 (runBibTeX): enhanced to extract the names of the bib files and
1029 getting their absolute path and enter them into the dep file.
1030 (findtexfile): static func that is used to look for tex-files,
1031 checks for absolute patchs and tries also with kpsewhich.
1032 Alternative ways of finding the correct files are wanted. Will
1034 (do_popen): function that runs a command using popen and returns
1035 the whole output of that command in a string. Should be moved to
1038 * src/DepTable.[Ch] (extchanged): new function that returns true if a
1039 file with extension ext has changed.
1041 * src/insets/figinset.C: added ifdef guards around the fl_free
1042 code that jug commented out. Now it is commented out when
1043 compiling with XForms == 0.89.
1045 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1046 to lyxstring.C, and only keep a forward declaration in
1047 lyxstring.h. Simplifies the header file a bit and should help a
1048 bit on compile time too. Also changes to Srep will not mandate a
1049 recompile of code just using string.
1050 (~lyxstring): definition moved here since it uses srep.
1051 (size): definition moved here since it uses srep.
1053 * src/support/lyxstring.h: removed a couple of "inline" that should
1056 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1058 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1061 1999-10-21 Juergen Vigna <jug@sad.it>
1063 * src/table.C (SetPWidth): Just a small fix so the alignment is not
1064 set to left if I just remove the width entry (or it is empty).
1066 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1067 paragraph when having dummy paragraphs.
1069 1999-10-20 Juergen Vigna <jug@sad.it>
1071 * src/insets/figinset.C: just commented some fl_free_form calls
1072 and added warnings so that this calls should be activated later
1073 again. This avoids for now a segfault, but we have a memory leak!
1075 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1076 'const char * argument' to 'string argument', this should
1077 fix some Asserts() in lyxstring.C.
1079 * src/lyxfunc.h: Removed the function argAsString(const char *)
1080 as it is not used anymore.
1082 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1084 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1087 * src/Literate.h: some funcs moved from public to private to make
1088 interface clearer. Unneeded args removed.
1090 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1092 (scanBuildLogFile): ditto
1094 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1095 normal TeX Error. Still room for improvement.
1097 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1099 * src/buffer.C (insertErrors): changes to make the error
1100 desctription show properly.
1102 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1105 * src/support/lyxstring.C (helper): changed to use
1106 sizeof(object->rep->ref).
1107 (operator>>): changed to use a pointer instead.
1109 * src/support/lyxstring.h: changed const reference & to value_type
1110 const & lets see if that helps.
1112 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
1114 * Makefile.am (rpmdist): fixed to have non static package and
1117 * src/support/lyxstring.C: removed the compilation guards
1119 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
1122 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
1123 conditional compile of lyxstring.Ch
1125 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
1126 stupid check, but it is a lot better than the bastring hack.
1127 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
1129 * several files: changed string::erase into string::clear. Not
1132 * src/chset.C (encodeString): use a char temporary instead
1134 * src/table.C (TexEndOfCell): added tostr around
1135 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
1136 (TexEndOfCell): ditto
1137 (TexEndOfCell): ditto
1138 (TexEndOfCell): ditto
1139 (DocBookEndOfCell): ditto
1140 (DocBookEndOfCell): ditto
1141 (DocBookEndOfCell): ditto
1142 (DocBookEndOfCell): ditto
1144 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
1146 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
1148 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
1149 (MenuBuildProg): added tostr around ret
1150 (MenuRunChktex): added tostr around ret
1151 (DocumentApplyCB): added tostr around ret
1153 * src/chset.C (encodeString): added tostr around t->ic
1155 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
1156 (makeLaTeXFile): added tostr around tocdepth
1157 (makeLaTeXFile): added tostr around ftcound - 1
1159 * src/insets/insetbib.C (setCounter): added tostr around counter.
1161 * src/support/lyxstring.h: added an operator+=(int) to catch more
1164 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
1165 (lyxstring): We DON'T allow NULL pointers.
1167 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1169 * src/mathed/math_macro.C (MathMacroArgument::Write,
1170 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
1171 when writing them out.
1173 * src/LString.C: remove, since it is not used anymore.
1175 * src/support/lyxstring.C: condition the content to
1176 USE_INCLUDED_STRING macro.
1178 * src/mathed/math_symbols.C, src/support/lstrings.C,
1179 src/support/lyxstring.C: add `using' directive to specify what
1180 we need in <algorithm>. I do not think that we need to
1181 conditionalize this, but any thought is appreciated.
1183 * many files: change all callback functions to "C" linkage
1184 functions to please strict C++ compilers like DEC cxx 6.1 in mode
1185 strict_ansi. Those who were static are now global.
1186 The case of callbacks which are static class members is
1187 trickier, since we have to make C wrappers around them (see
1188 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
1189 did not finish this yet, since it defeats the purpose of
1190 encapsulation, and I am not sure what the best route is.
1192 1999-10-19 Juergen Vigna <jug@sad.it>
1194 * src/support/lyxstring.C (lyxstring): we permit to have a null
1195 pointer as assignment value and just don't assign it.
1197 * src/vspace.C (nextToken): corrected this function substituting
1198 find_first(_not)_of with find_last_of.
1200 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
1201 (TableOptCloseCB) (TableSpeCloseCB):
1202 inserted fl_set_focus call for problem with fl_hide_form() in
1205 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1207 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
1210 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1212 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
1213 LyXLex::next() and not eatline() to get its argument.
1215 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1217 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
1218 instead, use fstreams for io of the depfile, removed unneeded
1219 functions and variables.
1221 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
1222 vector instead, removed all functions and variables that is not in
1225 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1227 * src/buffer.C (insertErrors): use new interface to TeXError
1229 * Makefile.am (rpmdist): added a rpmdist target
1231 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
1232 per Kayvan's instructions.
1234 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1236 * src/Makefile.am: add a definition for localedir, so that locales
1237 are found after installation (Kayvan)
1239 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1241 * development/.cvsignore: new file.
1243 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1245 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
1246 C++ compiler provides wrappers for C headers and use our alternate
1249 * configure.in: use LYX_CXX_CHEADERS.
1251 * src/cheader/: new directory, populated with cname headers from
1252 libstdc++-2.8.1. They are a bit old, but probably good enough for
1253 what we want (support compilers who lack them).
1255 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
1256 from includes. It turns out is was stupid.
1258 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1260 * lib/Makefile.am (install-data-local): forgot a ';'
1261 (install-data-local): forgot a '\'
1262 (libinstalldirs): needed after all. reintroduced.
1264 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1266 * configure.in (AC_OUTPUT): added lyx.spec
1268 * development/lyx.spec: removed file
1270 * development/lyx.spec.in: new file
1272 * po/*.po: merged with lyx.pot becuase of make distcheck
1274 * lib/Makefile.am (dist-hook): added dist-hook so that
1275 documentation files will be included when doing a make
1276 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
1277 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
1279 more: tried to make install do the right thing, exclude CVS dirs
1282 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
1283 Path would fit in more nicely.
1285 * all files that used to use pathstack: uses now Path instead.
1286 This change was a lot easier than expected.
1288 * src/support/path.h: new file
1290 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
1292 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
1294 * src/support/lyxstring.C (getline): Default arg was given for
1297 * Configure.cmd: removed file
1299 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1301 * src/support/DebugStream.[Ch]: remove the explicit std:: before
1302 streams classes and types, add the proper 'using' statements when
1303 MODERN_STL is defined.
1305 * src/debug.h: move the << operator definition after the inclusion
1308 * src/support/filetools.C: include "LAssert.h", which is needed
1311 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
1314 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
1315 include "debug.h" to define a proper ostream.
1317 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1319 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
1320 method to the SystemCall class which can kill a process, but it's
1321 not fully implemented yet.
1323 * src/*.C: Changed Systemcalls::Startscript() to startscript()
1325 * src/support/FileInfo.h: Better documentation
1327 * src/lyxfunc.C: Added support for buffer-export html
1329 * src/menus.C: Added Export->As HTML...
1331 * lib/bind/*.bind: Added short-cut for buffer-export html
1333 * src/lyxrc.*: Added support for new \tth_command
1335 * lib/lyxrc.example: Added stuff for new \tth_command
1337 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1339 * lib/Makefile.am (IMAGES): removed images/README
1340 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
1341 installes in correct place. Check permisions is installed
1344 * src/LaTeX.C: some no-op changes moved declaration of some
1347 * src/LaTeX.h (LATEX_H): changed include guard name
1349 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1351 * lib/reLyX/Makefile.am: install noweb2lyx.
1353 * lib/Makefile.am: install configure.
1355 * lib/reLyX/configure.in: declare a config aux dir; set package
1356 name to lyx (not sure what the best solution is); generate noweb2lyx.
1358 * lib/layouts/egs.layout: fix the bibliography layout.
1360 1999-10-08 Jürgen Vigna <jug@sad.it>
1362 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
1363 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
1364 it returned without continuing to search the path.
1366 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1368 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
1369 also fixes a bug. It is not allowed to do tricks with std::strings
1370 like: string a("hei"); &a[e]; this will not give what you
1371 think... Any reason for the complexity in this func?
1373 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
1375 * Updated README and INSTALL a bit, mostly to check that my
1376 CVS rights are correctly set up.
1378 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
1380 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
1381 does not allow '\0' chars but lyxstring and std::string does.
1383 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1385 * autogen.sh (AUTOCONF): let the autogen script create the
1386 POTFILES.in file too. POTFILES.in should perhaps now not be
1387 included in the cvs module.
1389 * some more files changed to use C++ includes instead of C ones.
1391 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
1393 (Reread): added tostr to nlink. buggy output otherwise.
1394 (Reread): added a string() around szMode when assigning to Buffer,
1395 without this I got a log of garbled info strings.
1397 * acconfig.h: commented out the PTR_AS_INT macros. They should not
1400 * I have added several ostream & operator<<(ostream &, some_type)
1401 functions. This has been done to avoid casting and warnings when
1402 outputting enums to lyxerr. This as thus eliminated a lot of
1403 explicit casts and has made the code clearer. Among the enums
1404 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
1405 mathed enums, some font enum the Debug::type enum.
1407 * src/support/lyxstring.h (clear): missing method. equivalent of
1410 * all files that contained "stderr": rewrote constructs that used
1411 stderr to use lyxerr instead. (except bmtable)
1413 * src/support/DebugStream.h (level): and the passed t with
1414 Debug::ANY to avoid spurious bits set.
1416 * src/debug.h (Debug::type value): made it accept strings of the
1419 * configure.in (Check for programs): Added a check for kpsewhich,
1420 the latex generation will use this later to better the dicovery of
1423 * src/BufferView.C (create_view): we don't need to cast this to
1424 (void*) that is done automatically.
1425 (WorkAreaButtonPress): removed some dead code.
1427 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1429 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1430 is not overwritten when translated (David Sua'rez de Lis).
1432 * lib/CREDITS: Added David Sua'rez de Lis
1434 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1436 * src/bufferparams.C (BufferParams): default input encoding is now
1439 * acinclude.m4 (cross_compiling): comment out macro
1440 LYX_GXX_STRENGTH_REDUCE.
1442 * acconfig.h: make sure that const is not defined (to empty) when
1443 we are compiling C++. Remove commented out code using SIZEOF_xx
1446 * configure.in : move the test for const and inline as late as
1447 possible so that these C tests do not interefere with C++ ones.
1448 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1449 has not been proven.
1451 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1453 * src/table.C (getDocBookAlign): remove bad default value for
1456 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1458 (ShowFileMenu2): ditto.
1460 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1463 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1465 * Most files: finished the change from the old error code to use
1466 DebugStream for all lyxerr debugging. Only minor changes remain
1467 (e.g. the setting of debug levels using strings instead of number)
1469 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1471 * src/layout.C (Add): Changed to use compare_no_case instead of
1474 * src/FontInfo.C: changed loop variable type too string::size_type.
1476 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1478 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1479 set ETAGS_ARGS to --c++
1481 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1483 * src/table.C (DocBookEndOfCell): commented out two unused variables
1485 * src/paragraph.C: commented out four unused variables.
1487 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1488 insed a if clause with type string::size_type.
1490 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1493 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1495 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1496 variable, also changed loop to go from 0 to lenght + 1, instead of
1497 -1 to length. This should be correct.
1499 * src/LaTeX.C (scanError): use string::size_type as loop variable
1502 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1503 (l.896) since y_tmp and row was not used anyway.
1505 * src/insets/insetref.C (escape): use string::size_type as loop
1508 * src/insets/insetquotes.C (Width): use string::size_type as loop
1510 (Draw): use string::size_type as loop variable type.
1512 * src/insets/insetlatexaccent.C (checkContents): use
1513 string::size_type as loop variable type.
1515 * src/insets/insetlabel.C (escape): use string::size_type as loop
1518 * src/insets/insetinfo.C: added an extern for current_view.
1520 * src/insets/insetcommand.C (scanCommand): use string::size_type
1521 as loop variable type.
1523 * most files: removed the RCS tags. With them we had to recompile
1524 a lot of files after a simple cvs commit. Also we have never used
1525 them for anything meaningful.
1527 * most files: tags-query-replace NULL 0. As adviced several plases
1528 we now use "0" instead of "NULL" in our code.
1530 * src/support/filetools.C (SpaceLess): use string::size_type as
1533 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1535 * src/paragraph.C: fixed up some more string stuff.
1537 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1539 * src/support/filetools.h: make modestr a std::string.
1541 * src/filetools.C (GetEnv): made ch really const.
1543 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1544 made code that used these use max/min from <algorithm> instead.
1546 * changed several c library include files to their equivalent c++
1547 library include files. All is not changed yet.
1549 * created a support subdir in src, put lyxstring and lstrings
1550 there + the extra files atexit, fileblock, strerror. Created
1551 Makefile.am. edited configure.in and src/Makefile.am to use this
1552 new subdir. More files moved to support.
1554 * imported som of the functions from repository lyx, filetools
1556 * ran tags-query-replace on LString -> string, corrected the bogus
1557 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1558 is still some errors in there. This is errors where too much or
1559 too litle get deleted from strings (string::erase, string::substr,
1560 string::replace), there can also be some off by one errors, or
1561 just plain wrong use of functions from lstrings. Viewing of quotes
1564 * LyX is now running fairly well with string, but there are
1565 certainly some bugs yet (see above) also string is quite different
1566 from LString among others in that it does not allow null pointers
1567 passed in and will abort if it gets any.
1569 * Added the revtex4 files I forgot when setting up the repository.
1571 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1573 * All over: Tried to clean everything up so that only the files
1574 that we really need are included in the cvs repository.
1575 * Switched to use automake.
1576 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1577 * Install has not been checked.
1579 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1581 * po/pt.po: Three errors:
1582 l.533 and l.538 format specification error
1583 l. 402 duplicate entry, I just deleted it.