1 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/support/filetools.C (ExpandPath): removed an over eager
5 (ReplaceEnvironmentPath): ditto
7 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
8 shows that we are doing something fishy in our code...
12 * src/lyxrc.C (read): use a double switch trick to get more help
13 from the compiler. (the same trick is used in layout.C)
14 (write): new function. opens a ofstream and pass that to output
15 (output): new function, takes a ostream and writes the lyxrc
16 elemts to it. uses a dummy switch to make sure no elements are
19 * src/lyxlex.h: added a struct pushpophelper for use in functions
20 with more than one exit point.
22 * src/lyxlex.[Ch] (GetInteger): made it const
26 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
28 * src/layout.[hC] : LayoutTags splitted into several enums, new
29 methods created, better error handling cleaner use of lyxlex. Read
32 * src/bmtable.[Ch]: change some member prototypes because of the
35 * commandtags.h, src/LyXAction.C (init): new function:
36 "preferences-save", saves the lyxrc entries into .lyx/preferences.
37 This file is not read automatically but you can add \input
38 preferences to your lyxrc if you want to. We need to discuss how
41 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
42 in .aux, also remove .bib and .bst files from dependencies when
45 * src/BufferView.C, src/LyXView.C: add const_cast several places
46 because of changes to images.
48 * lib/images/*: same change as for images/*
50 * lib/lyxrc.example: Default for accept_compound is false not no.
52 * images/*: changed to be const, however I have som misgivings
53 about this change so it might be changed back.
55 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
57 * lib/configure, po/POTFILES.in: regenerated
59 * autogen.sh: autogenerate lib/configure from lib/configure.m4
61 * config/lib_configure.m4: removed
63 * lib/configure.m4: new file (was config/lib_configure.m4)
65 * configure.in: do not test for rtti, since we do not use it.
67 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
69 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
70 doubling of allocated space scheme. This makes it faster for large
71 strings end to use less memory for small strings. xtra rememoved.
73 * src/insets/figinset.C (waitalarm): commented out.
74 (GhostscriptMsg): use static_cast
75 (GhostscriptMsg): use new instead of malloc to allocate memory for
76 cmap. also delete the memory after use.
78 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
80 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
81 for changes in bibtex database or style.
82 (runBibTeX): remove all .bib and .bst files from dep before we
84 (run): use scanAuc in when dep file already exist.
86 * src/DepTable.C (remove_files_with_extension): new method
89 * src/DepTable.[Ch]: made many of the methods const.
91 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
93 * src/bufferparams.C: make sure that the default textclass is
94 "article". It used to be the first one by description order, but
95 now the first one is "docbook".
97 * src/lyx_main.C (setDebuggingLevel): change type of argument to
98 string; call Debug::value.
99 (easyParse): pass complete argument to setDebuggingLevel().
101 * src/debug.h (value): fix the code that parses debug levels.
103 * src/debug.h: add new debug type ACTION, reserved for LyXAction
106 * src/LyXAction.C: use Debug::ACTION as debug channel.
108 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
110 * NEWS: updated for the future 1.1.3 release.
112 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
113 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
114 it should. This is of course a controversial change (since many
115 people will find that their lyx workscreen is suddenly full of
116 red), but done for the sake of correctness.
118 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
119 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
121 * src/insets/inseterror.h, src/insets/inseturl.h,
122 src/insets/insetinfo.h, src/insets/figinset.h,
123 src/mathed/formulamacro.h, src/mathed/math_macro.h
124 (EditMessage): add a missing const and add _() to make sure that
127 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
128 src/insets/insetbib.C, src/support/filetools.C: add `using'
131 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
132 doing 'Insert index of last word' at the beginning of a paragraph.
134 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
136 * several files: white-space changes.
138 * src/mathed/formula.C: removed IsAlpha and IsDigit
140 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
141 .bib file. use a ifstream instead of FilePtr when parsing the .bib
144 * src/insets/figinset.C (GetPSSizes): don't break when
145 "EndComments" is seen. But break when a boundingbox is read.
147 * all classes inherited from Inset: return value of Clone
148 changed back to Inset *.
150 * all classes inherited form MathInset: return value of Clone
151 changed back to MathedInset *.
153 * src/insets/figinset.C (runqueue): use a ofstream to output the
154 gs/ps file. Might need some setpresicion or setw. However I can
155 see no problem with the current code.
156 (runqueue): use sleep instead of the alarm/signal code. I just
157 can't see the difference.
159 * src/paragraph.C (LyXParagraph): reserve space in the new
160 paragraph and resize the inserted paragraph to just fit.
162 * src/lyxfunc.h (operator|=): added operator for func_status.
164 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
165 check for readable file.
167 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
168 check for readable file.
169 (MenuMakeLinuxDoc): ditto
170 (MenuMakeDocBook): ditto
171 (MenuMakeAscii): ditto
172 (InsertAsciiFile): split the test for openable and readable
174 * src/bmtable.C (draw_bitmaptable): use
175 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
177 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
178 findtexfile from LaTeX to filetools.
180 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
181 instead of FilePtr. Needs to be verified by a literate user.
183 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
185 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
186 (EditMessage): likewise.
188 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
189 respectively as \textasciitilde and \textasciicircum.
191 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
193 * src/support/lyxstring.h: made the methods that take iterators
196 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
197 (regexMatch): made is use the real regex class.
199 * src/support/Makefile.am: changed to use libtool
201 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
203 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
205 (MathIsInset ++): changed several macros to be inline functions
208 * src/mathed/Makefile.am: changed to use libtool
210 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
212 * src/insets/inset* : Clone changed to const and return type is
213 the true insettype not just Inset*.
215 * src/insets/Makefile.am: changed to use libtool
217 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
219 * src/undo.[Ch] : added empty() and changed some of the method
222 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
224 * src/lyxparagraph.h: use id() and id(...) instead of getID and
225 setID use block<> for the bullets array, added const several places.
227 * src/lyxfunc.C (getStatus): new function
229 * src/lyxfunc.[Ch] : small changes to take advantage of the new
230 LyXAction, added const to several funtions.
232 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
233 a std::map, and to store the dir items in a vector.
235 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
238 * src/LyXView.[Ch] + other files : changed currentView to view.
240 * src/LyXAction.[Ch] : ported from the old devel branch.
242 * src/.cvsignore: added .libs and a.out
244 * configure.in : changes to use libtool.
246 * acinclude.m4 : inserted libtool.m4
248 * .cvsignore: added libtool
250 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
252 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
253 file name in insets and mathed directories (otherwise the
254 dependency is not taken in account under cygwin).
256 * src/text2.C (InsertString[AB]): make sure that we do not try to
257 read characters past the string length.
259 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
261 * lib/doc/LaTeXConfig.lyx.in,
262 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
264 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
265 file saying who created them and when this heppened; this is
266 useless and annoys tools like cvs.
268 * lib/layouts/g-brief-{en,de}.layout,
269 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
270 from Thomas Hartkens <thomas@hartkens.de>.
272 * src/{insets,mathed}/Makefile.am: do not declare an empty
273 LDFLAGS, so that it can be set at configure time (useful on Irix
276 * lib/reLyX/configure.in: make sure that the prefix is set
277 correctly in LYX_DIR.
279 1999-11-18 Andre' Poenitz <poenitz@mathematik.tu-chemnitz.de>
281 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
282 be used by 'command-sequence' this allows to bind a key to a
283 sequence of LyX-commands
284 (Example: 'command-sequence math-insert alpha; math-insert beta;")
286 * src/LyXAction.C: add "command-sequence"
288 * src/LyXFunction.C: handling of "command-sequence"
290 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
291 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
293 * src/lyxserver.C, src/minibuffer.C: Use this new interface
295 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
297 * src/buffer.C (writeFile): Do not output a comment giving user
298 and date at the beginning of a .lyx file. This is useless and
299 annoys cvs anyway; update version number to 1.1.
301 * src/Makefile.am (LYX_DIR): add this definition, so that a
302 default path is hardcoded in LyX.
304 * configure.in: Use LYX_GNU_GETTEXT.
306 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
307 AM_GNU_GETTEXT with a bug fixed.
309 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
311 * src/chset.C: add "using std::ifstream;" to please dec cxx.
313 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
314 which is used to point to LyX data is now LYX_DIR_11x.
316 * lyx.man: convert to a unix text file; small updates.
318 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
320 * src/support/LSubstring.[Ch]: made the second arg of most of the
321 constructors be a const reference.
323 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
326 * src/support/lyxstring.[Ch] (swap): added missing member function
327 and specialization of swap(str, str);
329 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
331 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
332 trace of the old one.
334 * src/undo.[Ch]: made the undostack use std::list to store undo's in
335 put the member definitions in undo.C.
337 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
338 NEW_TEXT and have now only code that was included when this was
341 * src/intl.C (LCombo): use static_cast
343 (DispatchCallback): ditto
345 * src/definitions.h: removed whole file
347 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
349 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
350 parsing and stores in a std:map. a regex defines the file format.
351 removed unneeded members.
353 * src/bufferparams.h: added several enums from definitions.h here.
354 Removed unsused destructor. Changed some types to use proper enum
355 types. use block to have the temp_bullets and user_defined_bullets
356 and to make the whole class assignable.
358 * src/bufferparams.C (Copy): removed this functions, use a default
361 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
364 * src/buffer.C (readLyXformat2): commend out all that have with
365 oldpapersize to do. also comment out all that hve to do with
366 insetlatex and insetlatexdel.
367 (setOldPaperStuff): commented out
369 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
371 * src/LyXAction.C: remove use of inset-latex-insert
373 * src/mathed/math_panel.C (button_cb): use static_cast
375 * src/insets/Makefile.am (insets_o_SOURCES): removed
378 * src/support/lyxstring.C (helper): use the unsigned long
379 specifier, UL, instead of a static_cast.
381 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
383 * src/support/block.h: new file. to be used as a c-style array in
384 classes, so that the class can be assignable.
386 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
388 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
389 NULL, make sure to return an empty string (it is not possible to
390 set a string to NULL).
392 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
394 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
396 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
398 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
399 link line, so that Irix users (for example) can set it explicitely to
402 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
403 it can be overidden at make time (static or dynamic link, for
406 * src/vc-backend.C, src/LaTeXFeatures.h,
407 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
408 statements to bring templates to global namespace.
410 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
412 * src/support/lyxstring.C (operator[] const): make it standard
415 * src/minibuffer.C (Init): changed to reflect that more
416 information is given from the lyxvc and need not be provided here.
418 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
420 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
422 * src/LyXView.C (UpdateTimerCB): use static_cast
423 (KeyPressMask_raw_callback): ditto
425 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
426 buffer_, a lot of changes because of this. currentBuffer() ->
427 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
428 also changes to other files because of this.
430 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
432 * src/vc-backend.[Ch]: new files. The backends for vc handling,
433 have no support for RCS and partial support for CVS, will be
436 * src/insets/ several files: changes because of function name
437 changes in Bufferview and LyXView.
439 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
441 * src/support/LSubstring.[Ch]: new files. These implement a
442 Substring that can be very convenient to use. i.e. is this
444 string a = "Mary had a little sheep";
445 Substring(a, "sheep") = "lamb";
446 a is now "Mary has a little lamb".
448 * src/support/LRegex.[Ch]: a regex class that can be used to pick
449 out patterns and subpatterns of strings. It is used by LSubstring
450 and also by vc-backend.C
452 * src/support/lyxstring.C: went over all the assertions used and
453 tried to correct the wrong ones and flag which of them is required
454 by the standard. some bugs found because of this. Also removed a
455 couple of assertions.
457 * src/support/Makefile.am (libsupport_a_SOURCES): added
458 LSubstring.[Ch] and LRegex.[Ch]
460 * src/support/FileInfo.h: have struct stat buf as an object and
461 not a pointer to one, some changes because of this.
463 * src/LaTeXFeatures.C (getTClassPreamble): also use the
464 information in layout when adding the layouts preamble to the
467 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
470 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
471 because of bug in OS/2.
473 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
475 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
476 \verbatim@font instead of \ttfamily, so that it can be redefined.
478 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
479 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
480 src/layout.h, src/text2.C: add 'using' directive to bring the
481 STL templates we need from the std:: namespace to the global one.
482 Needed by DEC cxx in strict ansi mode.
484 * src/support/LIstream.h,src/support/LOstream.h,
485 src/support/lyxstring.h,src/table.h,
486 src/lyxlookup.h: do not include <config.h> in header
487 files. This should be done in the .C files only.
489 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
493 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
495 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
496 from Kayvan to fix the tth invokation.
498 * development/lyx.spec.in: updates from Kayvan to reflect the
499 changes of file names.
501 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
503 * src/text2.C (InsertStringB): use std::copy
504 (InsertStringA): use std::copy
506 * src/bufferlist.C: use a vector to store the buffers in. This is
507 an internal change and should not affect any other thing.
509 * src/BufferView.C (waitForX): use XSync instead of the lengthy
512 * src/text.C (Fill): fix potential bug, one off bug.
514 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
516 * src/Makefile.am (lyx_main.o): add more files it depends on.
518 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
520 * src/support/lyxstring.C: use size_t for the reference count,
521 size, reserved memory and xtra.
522 (internal_compare): new private member function. Now the compare
523 functions should work for std::strings that have embedded '\0'
525 (compare): all compare functions rewritten to use
528 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
530 * src/support/lyxstring.C (compare): pass c_str()
531 (compare): pass c_str
532 (compare): pass c_str
534 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
536 * src/support/DebugStream.C: <config.h> was not included correctly.
538 * lib/configure: forgot to re-generate it :( I'll make this file
541 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
543 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
546 * src/support/lyxstring.C: some changes from length() to rep->sz.
547 avoids a function call.
549 * src/support/filetools.C (SpaceLess): yet another version of the
550 algorithm...now per Jean-Marc's suggestions.
552 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
554 * src/layout.C (less_textclass_desc): functor for use in sorting
556 (LyXTextClass::Read): sort the textclasses after reading.
558 * src/support/filetools.C (SpaceLess): new version of the
559 SpaceLess functions. What problems does this one give? Please
562 * images/banner_bw.xbm: made the arrays unsigned char *
564 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
566 * src/support/lyxstring.C (find): remove bogus assertion in the
567 two versions of find where this has not been done yet.
569 * src/support/lyxlib.h: add missing int return type to
572 * src/menus.C (ShowFileMenu): disable exporting to html if no
573 html export command is present.
575 * config/lib_configure.m4: add a test for an HTML converter. The
576 programs checked for are, in this order: tth, latex2html and
579 * lib/configure: generated from config/lib_configure.m4.
581 * src/lyxfunc.C (Dispatch): update and improve the execution of an
582 html converter. The parameters are now passed through $$FName and
583 $$OutName, instead of standard input/output.
585 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
587 * lib/lyxrc.example: update description of \html_command.
588 add "quotes" around \screen_font_xxx font setting examples to help
589 people who use fonts with spaces in their names.
591 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
593 * Distribution files: updates for v1.1.2
595 * src/support/lyxstring.C (find): remove bogus assert and return
596 npos for the same condition.
598 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
600 * added patch for OS/2 from SMiyata.
602 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
604 * src/text2.C (CutSelection): make space_wrapped a bool
605 (CutSelection): dont declare int i until we have to.
606 (alphaCounter): return a char const *.
608 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
610 * src/support/syscall.C (Systemcalls::kill):
611 src/support/filetools.C (PutEnv, PutEnvPath):
612 src/lyx_cb.C (addNewlineAndDepth):
613 src/FontInfo.C (FontInfo::resize): condition some #warning
614 directives with WITH_WARNINGS.
617 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
619 * src/layout.[Ch] + several files: access to class variables
620 limited and made accessor functions instead a lot of code changed
621 becuase of this. Also instead of returning pointers often a const
622 reference is returned instead.
624 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
626 * src/Makefile.am (dist-hook): added used to remove the CVS from
627 cheaders upon creating a dist
628 (EXTRA_DIST): added cheaders
630 * src/support/lstrings.C (tostr(char)): fix it to handle param as
631 a character not as a small integer.
633 * src/support/lyxstring.C (find): removed Assert and added i >=
634 rep->sz to the first if.
636 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
638 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
639 src/LyXView.C src/buffer.C src/bufferparams.C
640 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
641 src/text2.C src/insets/insetinclude.C:
642 lyxlayout renamed to textclasslist.
644 * src/layout.C: some lyxerr changes.
646 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
647 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
648 (LyXLayoutList): removed all traces of this class.
649 (LyXTextClass::Read): rewrote LT_STYLE
650 (LyXTextClass::hasLayout): new function
651 (LyXTextClass::GetLayout): rewritten to return an iterator + has
652 both const and nonconst version.
653 (LyXTextClass::delete_layout): new function.
654 (LyXTextClassList::Style): bug fix. do the right thing if layout
656 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
657 (LyXTextClassList::NameOfLayout): ditto
658 (LyXTextClassList::Load): ditto
660 * src/buffer.C (makeLaTeXFile): new access to layoutlist
662 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
664 * src/LyXAction.C (LookupFunc): added a workaround for sun
665 compiler, on the other hand...we don't know if the current code
666 compiles on sun at all...
668 * src/support/filetools.C (CleanupPath): subst fix
670 * src/insets/insetbib.C (delDatabase): subst fix, this looks
673 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
674 complained about this one?
676 * src/insets/insetinclude.C (Latex): subst fix
678 * src/insets/insetbib.C (getKeys): subst fix
680 * src/LyXSendto.C (SendtoApplyCB): subst fix
682 * src/lyx_main.C (init): subst fix
684 * src/layout.C (Read): subst fix
686 * src/lyx_sendfax_main.C (button_send): subst fix
688 * src/buffer.C (RoffAsciiTable): subst fix
690 * src/lyx_cb.C (MenuFax): subst fix
691 (PrintApplyCB): subst fix
693 1999-10-26 Juergen Vigna <jug@sad.it>
695 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
697 (Read): Cleaned up this code so now we read only format vestion >= 5
699 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
701 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
702 come nobody has complained about this one?
704 * src/insets/insetinclude.C (Latex): subst fix
706 * src/insets/insetbib.C (getKeys): subst fix
708 * src/lyx_main.C (init): subst fix
710 * src/layout.C (Read): subst fix
712 * src/buffer.C (RoffAsciiTable): subst fix
714 * src/lyx_cb.C (MenuFax): subst fix.
716 * src/layout.[hC] + some other files: rewrote to use
717 std::container to store textclasses and layouts in.
718 Simplified, removed a lot of code. Make all classes
719 assignable. Further simplifications and review of type
722 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
723 lastfiles to create the lastfiles partr of the menu.
725 * src/lastfiles.[Ch]: rewritten to use deque to store the
726 lastfiles in. Uses fstream for reading and writing. Simplifies
729 * src/support/syscall.C: remove explicit cast.
731 * src/BufferView.C (CursorToggleCB): removed code snippets that
733 use explicat C++ style casts instead of C style casts. also use
734 u_vdata instea of passing pointers in longs.
736 * src/PaperLayout.C: removed code snippets that were commented out.
738 * src/lyx_gui_misc.C: removed code snippets that were commented out.
740 * src/lyx_main.C: removed code snippets that wer commented out.
742 * src/paragraph.C: removed code snippets that were commented out.
744 * src/lyxvc.C (logClose): use static_cast
746 (viewLog): remove explicit cast to void*
747 (showLog): removed old commented code
749 * src/menus.C: use static_cast instead of C style casts. use
750 u_vdata instead of u_ldata. remove explicit cast to (long) for
751 pointers. Removed old code that was commented out.
753 * src/insets/inset.C: removed old commented func
755 * src/insets/insetref.C (InsetRef): removed old code that had been
756 commented out for a long time.
758 (escape): removed C style cast
760 * src/insets/insetlatexaccent.C (Draw): removed old commented code
762 * src/insets/insetlatex.C (Draw): removed old commented code
763 (Read): rewritten to use string
765 * src/insets/insetlabel.C (escape): removed C style cast
767 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
769 * src/insets/insetindex.C: use static_cast and u_vdata, removed
772 * src/insets/insetinclude.h: removed a couple of stupid bools
774 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
775 (Clone): remove C style cast
776 (getKeys): changed list to lst because of std::list
778 * src/insets/inseterror.C (Draw): removed som old commented code.
780 * src/insets/insetcommand.C (Draw): removed some old commented code.
782 * src/insets/insetbib.C (bibitem_cb): removed code that has been
783 commented out forever.
784 (bibitem_cb): use static_cast instead of C style cast
785 use of vdata changed to u_vdata.
787 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
789 (CloseUrlCB): use static_cast instead of C style cast.
790 (CloseUrlCB): added a fl_free form...it seemed to be missing.
792 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
793 (C_InsetInfo_CloseInfoCB): forward the ob parameter
794 (CloseInfoCB): static_cast from ob->u_vdata instead.
795 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
798 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
799 (C_InsetError_CloseErrorCB): forward the ob parameter
800 (CloseErrorCB): static_cast from ob->u_vdata instead.
802 * src/vspace.h: include LString.h since we use string in this class.
804 * src/vspace.C (lyx_advance): changed name from advance because of
805 nameclash with stl. And since we cannot use namespaces yet...I
806 used a lyx_ prefix instead. Expect this to change when we begin
809 * src/BufferView.[Ch] (BufferView::~BufferView): removed
811 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
812 and removed now defunct constructor and deconstructor.
814 * src/BufferView.h: have backstack as a object not as a pointer.
815 removed initialization from constructor. added include for BackStack
817 * development/lyx.spec.in (%build): add CFLAGS also.
819 * src/screen.C (drawFrame): removed another warning.
821 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
823 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
824 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
825 README and ANNOUNCE a bit for the next release. More work is
828 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
829 unbreakable if we are in freespacing mode (LyX-Code), but not in
832 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
834 * src/BackStack.h: fixed initialization order in constructor
836 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
838 * acinclude.m4 (VERSION): new rules for when a version is
839 development, added also a variable for prerelease.
840 (warnings): we set with_warnings=yes for prereleases
841 (lyx_opt): prereleases compile with same optimization as development
842 (CXXFLAGS): only use pedantic if we are a development version
844 * src/BufferView.C (restorePosition): don't do anything if the
847 * src/BackStack.h: added member empty, use this to test if there
848 is anything to pop...
850 1999-10-25 Juergen Vigna <jug@sad.it>
853 * forms/layout_forms.fd +
854 * forms/latexoptions.fd +
855 * lyx.fd: changed for various form resize issues
857 * src/mathed/math_panel.C +
858 * src/insets/inseterror.C +
859 * src/insets/insetinfo.C +
860 * src/insets/inseturl.C +
861 * src/insets/inseturl.h +
864 * src/PaperLayout.C +
865 * src/ParagraphExtra.C +
866 * src/TableLayout.C +
868 * src/layout_forms.C +
875 * src/menus.C: fixed various resize issues. So now forms can be
876 resized savely or not be resized at all.
878 * forms/form_url.fd +
879 * src/insets/form_url.[Ch]: added because it's cleaner and easier
882 * src/insets/Makefile.am: added files form_url.[Ch]
884 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
886 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
887 (and presumably 6.2).
889 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
890 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
891 remaining static member callbacks.
893 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
896 * src/support/lyxstring.h: declare struct Srep as friend of
897 lyxstring, since DEC cxx complains otherwise.
899 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
901 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
903 * src/LaTeX.C (run): made run_bibtex also depend on files with
905 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
906 are put into the dependency file.
908 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
909 the code has shown itself to work
910 (create_ispell_pipe): removed another warning, added a comment
913 * src/minibuffer.C (ExecutingCB): removed code that has been
914 commented out a long time
916 * src/lyxfunc.C (processKeyEvent): removed some very old commented
917 out code + a warning.
919 * src/support/lyxstring.h: comment out the three private
920 operators, when compiling with string ansi conforming compilers
923 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
925 (pixmapFromBitmapData): change type of bdata to be unsigned char *
926 (pixmapFromBitmapData): add a reinterpret_cast in the call to
929 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
932 * src/mathed/math_panel.C (create_math_panel): remove explicit
935 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
938 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
939 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
940 to XCreatePixmapFromBitmapData
941 (fl_set_bmtable_data): change the last argument to be unsigned
943 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
944 and bh to be unsigned int, remove explicit casts in call to
947 * images/arrows.xbm: made the arrays unsigned char *
948 * images/varsz.xbm: ditto
949 * images/misc.xbm: ditto
950 * images/greek.xbm: ditto
951 * images/dots.xbm: ditto
952 * images/brel.xbm: ditto
953 * images/bop.xbm: ditto
955 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
957 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
958 (LYX_PROG_CXX): added -pedantic to g++ compile options when
959 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
961 (LYX_CXX_CHEADERS): added <clocale> to the test.
963 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
965 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
967 * src/support/lyxstring.C (append): fixed something that must be a
968 bug, rep->assign was used instead of rep->append.
970 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
973 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
974 lyx insert double chars. Fix spotted by Kayvan.
976 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
978 * Fixed the tth support. I messed up with the Emacs patch apply feature
979 and omitted the changes in lyxrc.C.
981 1999-10-22 Juergen Vigna <jug@sad.it>
983 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
985 * src/lyx_cb.C (MenuInsertRef) +
986 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
987 the form cannot be resized under it limits (fixes a segfault)
989 * src/lyx.C (create_form_form_ref) +
990 * forms/lyx.fd: Changed Gravity on name input field so that it is
993 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
995 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
996 <ostream> and <istream>.
998 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
999 whether <fstream> provides the latest standard features, or if we
1000 have an oldstyle library (like in egcs).
1001 (LYX_CXX_STL_STRING): fix the test.
1003 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1004 code on MODERN_STL_STREAM.
1006 * src/support/lyxstring.h: use L{I,O}stream.h.
1008 * src/support/L{I,O}stream.h: new files, designed to setup
1009 correctly streams for our use
1010 - includes the right header depending on STL capabilities
1011 - puts std::ostream and std::endl (for LOStream.h) or
1012 std::istream (LIStream.h) in toplevel namespace.
1014 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1016 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1017 was a bib file that had been changed we ensure that bibtex is run.
1018 (runBibTeX): enhanced to extract the names of the bib files and
1019 getting their absolute path and enter them into the dep file.
1020 (findtexfile): static func that is used to look for tex-files,
1021 checks for absolute patchs and tries also with kpsewhich.
1022 Alternative ways of finding the correct files are wanted. Will
1024 (do_popen): function that runs a command using popen and returns
1025 the whole output of that command in a string. Should be moved to
1028 * src/DepTable.[Ch] (extchanged): new function that returns true if a
1029 file with extension ext has changed.
1031 * src/insets/figinset.C: added ifdef guards around the fl_free
1032 code that jug commented out. Now it is commented out when
1033 compiling with XForms == 0.89.
1035 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1036 to lyxstring.C, and only keep a forward declaration in
1037 lyxstring.h. Simplifies the header file a bit and should help a
1038 bit on compile time too. Also changes to Srep will not mandate a
1039 recompile of code just using string.
1040 (~lyxstring): definition moved here since it uses srep.
1041 (size): definition moved here since it uses srep.
1043 * src/support/lyxstring.h: removed a couple of "inline" that should
1046 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1048 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1051 1999-10-21 Juergen Vigna <jug@sad.it>
1053 * src/table.C (SetPWidth): Just a small fix so the alignment is not
1054 set to left if I just remove the width entry (or it is empty).
1056 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1057 paragraph when having dummy paragraphs.
1059 1999-10-20 Juergen Vigna <jug@sad.it>
1061 * src/insets/figinset.C: just commented some fl_free_form calls
1062 and added warnings so that this calls should be activated later
1063 again. This avoids for now a segfault, but we have a memory leak!
1065 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1066 'const char * argument' to 'string argument', this should
1067 fix some Asserts() in lyxstring.C.
1069 * src/lyxfunc.h: Removed the function argAsString(const char *)
1070 as it is not used anymore.
1072 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1074 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1077 * src/Literate.h: some funcs moved from public to private to make
1078 interface clearer. Unneeded args removed.
1080 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1082 (scanBuildLogFile): ditto
1084 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1085 normal TeX Error. Still room for improvement.
1087 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1089 * src/buffer.C (insertErrors): changes to make the error
1090 desctription show properly.
1092 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1095 * src/support/lyxstring.C (helper): changed to use
1096 sizeof(object->rep->ref).
1097 (operator>>): changed to use a pointer instead.
1099 * src/support/lyxstring.h: changed const reference & to value_type
1100 const & lets see if that helps.
1102 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
1104 * Makefile.am (rpmdist): fixed to have non static package and
1107 * src/support/lyxstring.C: removed the compilation guards
1109 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
1112 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
1113 conditional compile of lyxstring.Ch
1115 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
1116 stupid check, but it is a lot better than the bastring hack.
1117 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
1119 * several files: changed string::erase into string::clear. Not
1122 * src/chset.C (encodeString): use a char temporary instead
1124 * src/table.C (TexEndOfCell): added tostr around
1125 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
1126 (TexEndOfCell): ditto
1127 (TexEndOfCell): ditto
1128 (TexEndOfCell): ditto
1129 (DocBookEndOfCell): ditto
1130 (DocBookEndOfCell): ditto
1131 (DocBookEndOfCell): ditto
1132 (DocBookEndOfCell): ditto
1134 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
1136 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
1138 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
1139 (MenuBuildProg): added tostr around ret
1140 (MenuRunChktex): added tostr around ret
1141 (DocumentApplyCB): added tostr around ret
1143 * src/chset.C (encodeString): added tostr around t->ic
1145 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
1146 (makeLaTeXFile): added tostr around tocdepth
1147 (makeLaTeXFile): added tostr around ftcound - 1
1149 * src/insets/insetbib.C (setCounter): added tostr around counter.
1151 * src/support/lyxstring.h: added an operator+=(int) to catch more
1154 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
1155 (lyxstring): We DON'T allow NULL pointers.
1157 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1159 * src/mathed/math_macro.C (MathMacroArgument::Write,
1160 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
1161 when writing them out.
1163 * src/LString.C: remove, since it is not used anymore.
1165 * src/support/lyxstring.C: condition the content to
1166 USE_INCLUDED_STRING macro.
1168 * src/mathed/math_symbols.C, src/support/lstrings.C,
1169 src/support/lyxstring.C: add `using' directive to specify what
1170 we need in <algorithm>. I do not think that we need to
1171 conditionalize this, but any thought is appreciated.
1173 * many files: change all callback functions to "C" linkage
1174 functions to please strict C++ compilers like DEC cxx 6.1 in mode
1175 strict_ansi. Those who were static are now global.
1176 The case of callbacks which are static class members is
1177 trickier, since we have to make C wrappers around them (see
1178 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
1179 did not finish this yet, since it defeats the purpose of
1180 encapsulation, and I am not sure what the best route is.
1182 1999-10-19 Juergen Vigna <jug@sad.it>
1184 * src/support/lyxstring.C (lyxstring): we permit to have a null
1185 pointer as assignment value and just don't assign it.
1187 * src/vspace.C (nextToken): corrected this function substituting
1188 find_first(_not)_of with find_last_of.
1190 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
1191 (TableOptCloseCB) (TableSpeCloseCB):
1192 inserted fl_set_focus call for problem with fl_hide_form() in
1195 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1197 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
1200 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1202 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
1203 LyXLex::next() and not eatline() to get its argument.
1205 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1207 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
1208 instead, use fstreams for io of the depfile, removed unneeded
1209 functions and variables.
1211 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
1212 vector instead, removed all functions and variables that is not in
1215 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1217 * src/buffer.C (insertErrors): use new interface to TeXError
1219 * Makefile.am (rpmdist): added a rpmdist target
1221 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
1222 per Kayvan's instructions.
1224 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1226 * src/Makefile.am: add a definition for localedir, so that locales
1227 are found after installation (Kayvan)
1229 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1231 * development/.cvsignore: new file.
1233 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1235 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
1236 C++ compiler provides wrappers for C headers and use our alternate
1239 * configure.in: use LYX_CXX_CHEADERS.
1241 * src/cheader/: new directory, populated with cname headers from
1242 libstdc++-2.8.1. They are a bit old, but probably good enough for
1243 what we want (support compilers who lack them).
1245 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
1246 from includes. It turns out is was stupid.
1248 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1250 * lib/Makefile.am (install-data-local): forgot a ';'
1251 (install-data-local): forgot a '\'
1252 (libinstalldirs): needed after all. reintroduced.
1254 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1256 * configure.in (AC_OUTPUT): added lyx.spec
1258 * development/lyx.spec: removed file
1260 * development/lyx.spec.in: new file
1262 * po/*.po: merged with lyx.pot becuase of make distcheck
1264 * lib/Makefile.am (dist-hook): added dist-hook so that
1265 documentation files will be included when doing a make
1266 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
1267 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
1269 more: tried to make install do the right thing, exclude CVS dirs
1272 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
1273 Path would fit in more nicely.
1275 * all files that used to use pathstack: uses now Path instead.
1276 This change was a lot easier than expected.
1278 * src/support/path.h: new file
1280 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
1282 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
1284 * src/support/lyxstring.C (getline): Default arg was given for
1287 * Configure.cmd: removed file
1289 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1291 * src/support/DebugStream.[Ch]: remove the explicit std:: before
1292 streams classes and types, add the proper 'using' statements when
1293 MODERN_STL is defined.
1295 * src/debug.h: move the << operator definition after the inclusion
1298 * src/support/filetools.C: include "LAssert.h", which is needed
1301 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
1304 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
1305 include "debug.h" to define a proper ostream.
1307 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1309 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
1310 method to the SystemCall class which can kill a process, but it's
1311 not fully implemented yet.
1313 * src/*.C: Changed Systemcalls::Startscript() to startscript()
1315 * src/support/FileInfo.h: Better documentation
1317 * src/lyxfunc.C: Added support for buffer-export html
1319 * src/menus.C: Added Export->As HTML...
1321 * lib/bind/*.bind: Added short-cut for buffer-export html
1323 * src/lyxrc.*: Added support for new \tth_command
1325 * lib/lyxrc.example: Added stuff for new \tth_command
1327 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1329 * lib/Makefile.am (IMAGES): removed images/README
1330 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
1331 installes in correct place. Check permisions is installed
1334 * src/LaTeX.C: some no-op changes moved declaration of some
1337 * src/LaTeX.h (LATEX_H): changed include guard name
1339 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1341 * lib/reLyX/Makefile.am: install noweb2lyx.
1343 * lib/Makefile.am: install configure.
1345 * lib/reLyX/configure.in: declare a config aux dir; set package
1346 name to lyx (not sure what the best solution is); generate noweb2lyx.
1348 * lib/layouts/egs.layout: fix the bibliography layout.
1350 1999-10-08 Jürgen Vigna <jug@sad.it>
1352 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
1353 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
1354 it returned without continuing to search the path.
1356 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1358 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
1359 also fixes a bug. It is not allowed to do tricks with std::strings
1360 like: string a("hei"); &a[e]; this will not give what you
1361 think... Any reason for the complexity in this func?
1363 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
1365 * Updated README and INSTALL a bit, mostly to check that my
1366 CVS rights are correctly set up.
1368 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
1370 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
1371 does not allow '\0' chars but lyxstring and std::string does.
1373 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1375 * autogen.sh (AUTOCONF): let the autogen script create the
1376 POTFILES.in file too. POTFILES.in should perhaps now not be
1377 included in the cvs module.
1379 * some more files changed to use C++ includes instead of C ones.
1381 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
1383 (Reread): added tostr to nlink. buggy output otherwise.
1384 (Reread): added a string() around szMode when assigning to Buffer,
1385 without this I got a log of garbled info strings.
1387 * acconfig.h: commented out the PTR_AS_INT macros. They should not
1390 * I have added several ostream & operator<<(ostream &, some_type)
1391 functions. This has been done to avoid casting and warnings when
1392 outputting enums to lyxerr. This as thus eliminated a lot of
1393 explicit casts and has made the code clearer. Among the enums
1394 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
1395 mathed enums, some font enum the Debug::type enum.
1397 * src/support/lyxstring.h (clear): missing method. equivalent of
1400 * all files that contained "stderr": rewrote constructs that used
1401 stderr to use lyxerr instead. (except bmtable)
1403 * src/support/DebugStream.h (level): and the passed t with
1404 Debug::ANY to avoid spurious bits set.
1406 * src/debug.h (Debug::type value): made it accept strings of the
1409 * configure.in (Check for programs): Added a check for kpsewhich,
1410 the latex generation will use this later to better the dicovery of
1413 * src/BufferView.C (create_view): we don't need to cast this to
1414 (void*) that is done automatically.
1415 (WorkAreaButtonPress): removed some dead code.
1417 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1419 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1420 is not overwritten when translated (David Sua'rez de Lis).
1422 * lib/CREDITS: Added David Sua'rez de Lis
1424 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1426 * src/bufferparams.C (BufferParams): default input encoding is now
1429 * acinclude.m4 (cross_compiling): comment out macro
1430 LYX_GXX_STRENGTH_REDUCE.
1432 * acconfig.h: make sure that const is not defined (to empty) when
1433 we are compiling C++. Remove commented out code using SIZEOF_xx
1436 * configure.in : move the test for const and inline as late as
1437 possible so that these C tests do not interefere with C++ ones.
1438 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1439 has not been proven.
1441 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1443 * src/table.C (getDocBookAlign): remove bad default value for
1446 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1448 (ShowFileMenu2): ditto.
1450 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1453 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1455 * Most files: finished the change from the old error code to use
1456 DebugStream for all lyxerr debugging. Only minor changes remain
1457 (e.g. the setting of debug levels using strings instead of number)
1459 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1461 * src/layout.C (Add): Changed to use compare_no_case instead of
1464 * src/FontInfo.C: changed loop variable type too string::size_type.
1466 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1468 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1469 set ETAGS_ARGS to --c++
1471 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1473 * src/table.C (DocBookEndOfCell): commented out two unused variables
1475 * src/paragraph.C: commented out four unused variables.
1477 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1478 insed a if clause with type string::size_type.
1480 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1483 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1485 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1486 variable, also changed loop to go from 0 to lenght + 1, instead of
1487 -1 to length. This should be correct.
1489 * src/LaTeX.C (scanError): use string::size_type as loop variable
1492 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1493 (l.896) since y_tmp and row was not used anyway.
1495 * src/insets/insetref.C (escape): use string::size_type as loop
1498 * src/insets/insetquotes.C (Width): use string::size_type as loop
1500 (Draw): use string::size_type as loop variable type.
1502 * src/insets/insetlatexaccent.C (checkContents): use
1503 string::size_type as loop variable type.
1505 * src/insets/insetlabel.C (escape): use string::size_type as loop
1508 * src/insets/insetinfo.C: added an extern for current_view.
1510 * src/insets/insetcommand.C (scanCommand): use string::size_type
1511 as loop variable type.
1513 * most files: removed the RCS tags. With them we had to recompile
1514 a lot of files after a simple cvs commit. Also we have never used
1515 them for anything meaningful.
1517 * most files: tags-query-replace NULL 0. As adviced several plases
1518 we now use "0" instead of "NULL" in our code.
1520 * src/support/filetools.C (SpaceLess): use string::size_type as
1523 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1525 * src/paragraph.C: fixed up some more string stuff.
1527 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1529 * src/support/filetools.h: make modestr a std::string.
1531 * src/filetools.C (GetEnv): made ch really const.
1533 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1534 made code that used these use max/min from <algorithm> instead.
1536 * changed several c library include files to their equivalent c++
1537 library include files. All is not changed yet.
1539 * created a support subdir in src, put lyxstring and lstrings
1540 there + the extra files atexit, fileblock, strerror. Created
1541 Makefile.am. edited configure.in and src/Makefile.am to use this
1542 new subdir. More files moved to support.
1544 * imported som of the functions from repository lyx, filetools
1546 * ran tags-query-replace on LString -> string, corrected the bogus
1547 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1548 is still some errors in there. This is errors where too much or
1549 too litle get deleted from strings (string::erase, string::substr,
1550 string::replace), there can also be some off by one errors, or
1551 just plain wrong use of functions from lstrings. Viewing of quotes
1554 * LyX is now running fairly well with string, but there are
1555 certainly some bugs yet (see above) also string is quite different
1556 from LString among others in that it does not allow null pointers
1557 passed in and will abort if it gets any.
1559 * Added the revtex4 files I forgot when setting up the repository.
1561 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1563 * All over: Tried to clean everything up so that only the files
1564 that we really need are included in the cvs repository.
1565 * Switched to use automake.
1566 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1567 * Install has not been checked.
1569 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1571 * po/pt.po: Three errors:
1572 l.533 and l.538 format specification error
1573 l. 402 duplicate entry, I just deleted it.