1 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/support/lyxstring.C (compare): pass c_str()
7 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9 * src/support/DebugStream.C: <config.h> was not included correctly.
11 * lib/configure: forgot to re-generate it :( I'll make this file
14 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
16 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
19 * src/support/lyxstring.C: some changes from length() to rep->sz.
20 avoids a function call.
22 * src/support/filetools.C (SpaceLess): yet another version of the
23 algorithm...now per Jean-Marc's suggestions.
25 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
27 * src/layout.C (less_textclass_desc): functor for use in sorting
29 (LyXTextClass::Read): sort the textclasses after reading.
31 * src/support/filetools.C (SpaceLess): new version of the
32 SpaceLess functions. What problems does this one give? Please
35 * images/banner_bw.xbm: made the arrays unsigned char *
37 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
39 * src/support/lyxstring.C (find): remove bogus assertion in the
40 two versions of find where this has not been done yet.
42 * src/support/lyxlib.h: add missing int return type to
45 * src/menus.C (ShowFileMenu): disable exporting to html if no
46 html export command is present.
48 * config/lib_configure.m4: add a test for an HTML converter. The
49 programs checked for are, in this order: tth, latex2html and
52 * lib/configure: generated from config/lib_configure.m4.
54 * src/lyxfunc.C (Dispatch): update and improve the execution of an
55 html converter. The parameters are now passed through $$FName and
56 $$OutName, instead of standard input/output.
58 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
60 * lib/lyxrc.example: update description of \html_command.
61 add "quotes" around \screen_font_xxx font setting examples to help
62 people who use fonts with spaces in their names.
64 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
66 * Distribution files: updates for v1.1.2
68 * src/support/lyxstring.C (find): remove bogus assert and return
69 npos for the same condition.
71 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
73 * added patch for OS/2 from SMiyata.
75 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
77 * src/text2.C (CutSelection): make space_wrapped a bool
78 (CutSelection): dont declare int i until we have to.
79 (alphaCounter): return a char const *.
81 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
83 * src/support/syscall.C (Systemcalls::kill):
84 src/support/filetools.C (PutEnv, PutEnvPath):
85 src/lyx_cb.C (addNewlineAndDepth):
86 src/FontInfo.C (FontInfo::resize): condition some #warning
87 directives with WITH_WARNINGS.
90 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
92 * src/layout.[Ch] + several files: access to class variables
93 limited and made accessor functions instead a lot of code changed
94 becuase of this. Also instead of returning pointers often a const
95 reference is returned instead.
97 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
99 * src/Makefile.am (dist-hook): added used to remove the CVS from
100 cheaders upon creating a dist
101 (EXTRA_DIST): added cheaders
103 * src/support/lstrings.C (tostr(char)): fix it to handle param as
104 a character not as a small integer.
106 * src/support/lyxstring.C (find): removed Assert and added i >=
107 rep->sz to the first if.
109 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
111 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
112 src/LyXView.C src/buffer.C src/bufferparams.C
113 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
114 src/text2.C src/insets/insetinclude.C:
115 lyxlayout renamed to textclasslist.
117 * src/layout.C: some lyxerr changes.
119 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
120 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
121 (LyXLayoutList): removed all traces of this class.
122 (LyXTextClass::Read): rewrote LT_STYLE
123 (LyXTextClass::hasLayout): new function
124 (LyXTextClass::GetLayout): rewritten to return an iterator + has
125 both const and nonconst version.
126 (LyXTextClass::delete_layout): new function.
127 (LyXTextClassList::Style): bug fix. do the right thing if layout
129 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
130 (LyXTextClassList::NameOfLayout): ditto
131 (LyXTextClassList::Load): ditto
133 * src/buffer.C (makeLaTeXFile): new access to layoutlist
135 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
137 * src/LyXAction.C (LookupFunc): added a workaround for sun
138 compiler, on the other hand...we don't know if the current code
139 compiles on sun at all...
141 * src/support/filetools.C (CleanupPath): subst fix
143 * src/insets/insetbib.C (delDatabase): subst fix, this looks
146 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
147 complained about this one?
149 * src/insets/insetinclude.C (Latex): subst fix
151 * src/insets/insetbib.C (getKeys): subst fix
153 * src/LyXSendto.C (SendtoApplyCB): subst fix
155 * src/lyx_main.C (init): subst fix
157 * src/layout.C (Read): subst fix
159 * src/lyx_sendfax_main.C (button_send): subst fix
161 * src/buffer.C (RoffAsciiTable): subst fix
163 * src/lyx_cb.C (MenuFax): subst fix
164 (PrintApplyCB): subst fix
166 1999-10-26 Juergen Vigna <jug@sad.it>
168 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
170 (Read): Cleaned up this code so now we read only format vestion >= 5
172 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
174 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
175 come nobody has complained about this one?
177 * src/insets/insetinclude.C (Latex): subst fix
179 * src/insets/insetbib.C (getKeys): subst fix
181 * src/lyx_main.C (init): subst fix
183 * src/layout.C (Read): subst fix
185 * src/buffer.C (RoffAsciiTable): subst fix
187 * src/lyx_cb.C (MenuFax): subst fix.
189 * src/layout.[hC] + some other files: rewrote to use
190 std::container to store textclasses and layouts in.
191 Simplified, removed a lot of code. Make all classes
192 assignable. Further simplifications and review of type
195 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
196 lastfiles to create the lastfiles partr of the menu.
198 * src/lastfiles.[Ch]: rewritten to use deque to store the
199 lastfiles in. Uses fstream for reading and writing. Simplifies
202 * src/support/syscall.C: remove explicit cast.
204 * src/BufferView.C (CursorToggleCB): removed code snippets that
206 use explicat C++ style casts instead of C style casts. also use
207 u_vdata instea of passing pointers in longs.
209 * src/PaperLayout.C: removed code snippets that were commented out.
211 * src/lyx_gui_misc.C: removed code snippets that were commented out.
213 * src/lyx_main.C: removed code snippets that wer commented out.
215 * src/paragraph.C: removed code snippets that were commented out.
217 * src/lyxvc.C (logClose): use static_cast
219 (viewLog): remove explicit cast to void*
220 (showLog): removed old commented code
222 * src/menus.C: use static_cast instead of C style casts. use
223 u_vdata instead of u_ldata. remove explicit cast to (long) for
224 pointers. Removed old code that was commented out.
226 * src/insets/inset.C: removed old commented func
228 * src/insets/insetref.C (InsetRef): removed old code that had been
229 commented out for a long time.
231 (escape): removed C style cast
233 * src/insets/insetlatexaccent.C (Draw): removed old commented code
235 * src/insets/insetlatex.C (Draw): removed old commented code
236 (Read): rewritten to use string
238 * src/insets/insetlabel.C (escape): removed C style cast
240 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
242 * src/insets/insetindex.C: use static_cast and u_vdata, removed
245 * src/insets/insetinclude.h: removed a couple of stupid bools
247 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
248 (Clone): remove C style cast
249 (getKeys): changed list to lst because of std::list
251 * src/insets/inseterror.C (Draw): removed som old commented code.
253 * src/insets/insetcommand.C (Draw): removed some old commented code.
255 * src/insets/insetbib.C (bibitem_cb): removed code that has been
256 commented out forever.
257 (bibitem_cb): use static_cast instead of C style cast
258 use of vdata changed to u_vdata.
260 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
262 (CloseUrlCB): use static_cast instead of C style cast.
263 (CloseUrlCB): added a fl_free form...it seemed to be missing.
265 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
266 (C_InsetInfo_CloseInfoCB): forward the ob parameter
267 (CloseInfoCB): static_cast from ob->u_vdata instead.
268 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
271 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
272 (C_InsetError_CloseErrorCB): forward the ob parameter
273 (CloseErrorCB): static_cast from ob->u_vdata instead.
275 * src/vspace.h: include LString.h since we use string in this class.
277 * src/vspace.C (lyx_advance): changed name from advance because of
278 nameclash with stl. And since we cannot use namespaces yet...I
279 used a lyx_ prefix instead. Expect this to change when we begin
282 * src/BufferView.[Ch] (BufferView::~BufferView): removed
284 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
285 and removed now defunct constructor and deconstructor.
287 * src/BufferView.h: have backstack as a object not as a pointer.
288 removed initialization from constructor. added include for BackStack
290 * development/lyx.spec.in (%build): add CFLAGS also.
292 * src/screen.C (drawFrame): removed another warning.
294 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
296 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
297 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
298 README and ANNOUNCE a bit for the next release. More work is
301 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
302 unbreakable if we are in freespacing mode (LyX-Code), but not in
305 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
307 * src/BackStack.h: fixed initialization order in constructor
309 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
311 * acinclude.m4 (VERSION): new rules for when a version is
312 development, added also a variable for prerelease.
313 (warnings): we set with_warnings=yes for prereleases
314 (lyx_opt): prereleases compile with same optimization as development
315 (CXXFLAGS): only use pedantic if we are a development version
317 * src/BufferView.C (restorePosition): don't do anything if the
320 * src/BackStack.h: added member empty, use this to test if there
321 is anything to pop...
323 1999-10-25 Juergen Vigna <jug@sad.it>
326 * forms/layout_forms.fd +
327 * forms/latexoptions.fd +
328 * lyx.fd: changed for various form resize issues
330 * src/mathed/math_panel.C +
331 * src/insets/inseterror.C +
332 * src/insets/insetinfo.C +
333 * src/insets/inseturl.C +
334 * src/insets/inseturl.h +
337 * src/PaperLayout.C +
338 * src/ParagraphExtra.C +
339 * src/TableLayout.C +
341 * src/layout_forms.C +
348 * src/menus.C: fixed various resize issues. So now forms can be
349 resized savely or not be resized at all.
351 * forms/form_url.fd +
352 * src/insets/form_url.[Ch]: added because it's cleaner and easier
355 * src/insets/Makefile.am: added files form_url.[Ch]
357 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
359 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
360 (and presumably 6.2).
362 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
363 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
364 remaining static member callbacks.
366 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
369 * src/support/lyxstring.h: declare struct Srep as friend of
370 lyxstring, since DEC cxx complains otherwise.
372 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
374 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
376 * src/LaTeX.C (run): made run_bibtex also depend on files with
378 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
379 are put into the dependency file.
381 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
382 the code has shown itself to work
383 (create_ispell_pipe): removed another warning, added a comment
386 * src/minibuffer.C (ExecutingCB): removed code that has been
387 commented out a long time
389 * src/lyxfunc.C (processKeyEvent): removed some very old commented
390 out code + a warning.
392 * src/support/lyxstring.h: comment out the three private
393 operators, when compiling with string ansi conforming compilers
396 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
398 (pixmapFromBitmapData): change type of bdata to be unsigned char *
399 (pixmapFromBitmapData): add a reinterpret_cast in the call to
402 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
405 * src/mathed/math_panel.C (create_math_panel): remove explicit
408 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
411 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
412 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
413 to XCreatePixmapFromBitmapData
414 (fl_set_bmtable_data): change the last argument to be unsigned
416 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
417 and bh to be unsigned int, remove explicit casts in call to
420 * images/arrows.xbm: made the arrays unsigned char *
421 * images/varsz.xbm: ditto
422 * images/misc.xbm: ditto
423 * images/greek.xbm: ditto
424 * images/dots.xbm: ditto
425 * images/brel.xbm: ditto
426 * images/bop.xbm: ditto
428 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
430 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
431 (LYX_PROG_CXX): added -pedantic to g++ compile options when
432 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
434 (LYX_CXX_CHEADERS): added <clocale> to the test.
436 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
438 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
440 * src/support/lyxstring.C (append): fixed something that must be a
441 bug, rep->assign was used instead of rep->append.
443 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
446 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
447 lyx insert double chars. Fix spotted by Kayvan.
449 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
451 * Fixed the tth support. I messed up with the Emacs patch apply feature
452 and omitted the changes in lyxrc.C.
454 1999-10-22 Juergen Vigna <jug@sad.it>
456 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
458 * src/lyx_cb.C (MenuInsertRef) +
459 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
460 the form cannot be resized under it limits (fixes a segfault)
462 * src/lyx.C (create_form_form_ref) +
463 * forms/lyx.fd: Changed Gravity on name input field so that it is
466 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
468 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
469 <ostream> and <istream>.
471 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
472 whether <fstream> provides the latest standard features, or if we
473 have an oldstyle library (like in egcs).
474 (LYX_CXX_STL_STRING): fix the test.
476 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
477 code on MODERN_STL_STREAM.
479 * src/support/lyxstring.h: use L{I,O}stream.h.
481 * src/support/L{I,O}stream.h: new files, designed to setup
482 correctly streams for our use
483 - includes the right header depending on STL capabilities
484 - puts std::ostream and std::endl (for LOStream.h) or
485 std::istream (LIStream.h) in toplevel namespace.
487 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
489 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
490 was a bib file that had been changed we ensure that bibtex is run.
491 (runBibTeX): enhanced to extract the names of the bib files and
492 getting their absolute path and enter them into the dep file.
493 (findtexfile): static func that is used to look for tex-files,
494 checks for absolute patchs and tries also with kpsewhich.
495 Alternative ways of finding the correct files are wanted. Will
497 (do_popen): function that runs a command using popen and returns
498 the whole output of that command in a string. Should be moved to
501 * src/DepTable.[Ch] (extchanged): new function that returns true if a
502 file with extension ext has changed.
504 * src/insets/figinset.C: added ifdef guards around the fl_free
505 code that jug commented out. Now it is commented out when
506 compiling with XForms == 0.89.
508 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
509 to lyxstring.C, and only keep a forward declaration in
510 lyxstring.h. Simplifies the header file a bit and should help a
511 bit on compile time too. Also changes to Srep will not mandate a
512 recompile of code just using string.
513 (~lyxstring): definition moved here since it uses srep.
514 (size): definition moved here since it uses srep.
516 * src/support/lyxstring.h: removed a couple of "inline" that should
519 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
521 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
524 1999-10-21 Juergen Vigna <jug@sad.it>
526 * src/table.C (SetPWidth): Just a small fix so the alignment is not
527 set to left if I just remove the width entry (or it is empty).
529 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
530 paragraph when having dummy paragraphs.
532 1999-10-20 Juergen Vigna <jug@sad.it>
534 * src/insets/figinset.C: just commented some fl_free_form calls
535 and added warnings so that this calls should be activated later
536 again. This avoids for now a segfault, but we have a memory leak!
538 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
539 'const char * argument' to 'string argument', this should
540 fix some Asserts() in lyxstring.C.
542 * src/lyxfunc.h: Removed the function argAsString(const char *)
543 as it is not used anymore.
545 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
547 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
550 * src/Literate.h: some funcs moved from public to private to make
551 interface clearer. Unneeded args removed.
553 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
555 (scanBuildLogFile): ditto
557 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
558 normal TeX Error. Still room for improvement.
560 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
562 * src/buffer.C (insertErrors): changes to make the error
563 desctription show properly.
565 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
568 * src/support/lyxstring.C (helper): changed to use
569 sizeof(object->rep->ref).
570 (operator>>): changed to use a pointer instead.
572 * src/support/lyxstring.h: changed const reference & to value_type
573 const & lets see if that helps.
575 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
577 * Makefile.am (rpmdist): fixed to have non static package and
580 * src/support/lyxstring.C: removed the compilation guards
582 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
585 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
586 conditional compile of lyxstring.Ch
588 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
589 stupid check, but it is a lot better than the bastring hack.
590 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
592 * several files: changed string::erase into string::clear. Not
595 * src/chset.C (encodeString): use a char temporary instead
597 * src/table.C (TexEndOfCell): added tostr around
598 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
599 (TexEndOfCell): ditto
600 (TexEndOfCell): ditto
601 (TexEndOfCell): ditto
602 (DocBookEndOfCell): ditto
603 (DocBookEndOfCell): ditto
604 (DocBookEndOfCell): ditto
605 (DocBookEndOfCell): ditto
607 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
609 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
611 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
612 (MenuBuildProg): added tostr around ret
613 (MenuRunChktex): added tostr around ret
614 (DocumentApplyCB): added tostr around ret
616 * src/chset.C (encodeString): added tostr around t->ic
618 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
619 (makeLaTeXFile): added tostr around tocdepth
620 (makeLaTeXFile): added tostr around ftcound - 1
622 * src/insets/insetbib.C (setCounter): added tostr around counter.
624 * src/support/lyxstring.h: added an operator+=(int) to catch more
627 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
628 (lyxstring): We DON'T allow NULL pointers.
630 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
632 * src/mathed/math_macro.C (MathMacroArgument::Write,
633 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
634 when writing them out.
636 * src/LString.C: remove, since it is not used anymore.
638 * src/support/lyxstring.C: condition the content to
639 USE_INCLUDED_STRING macro.
641 * src/mathed/math_symbols.C, src/support/lstrings.C,
642 src/support/lyxstring.C: add `using' directive to specify what
643 we need in <algorithm>. I do not think that we need to
644 conditionalize this, but any thought is appreciated.
646 * many files: change all callback functions to "C" linkage
647 functions to please strict C++ compilers like DEC cxx 6.1 in mode
648 strict_ansi. Those who were static are now global.
649 The case of callbacks which are static class members is
650 trickier, since we have to make C wrappers around them (see
651 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
652 did not finish this yet, since it defeats the purpose of
653 encapsulation, and I am not sure what the best route is.
655 1999-10-19 Juergen Vigna <jug@sad.it>
657 * src/support/lyxstring.C (lyxstring): we permit to have a null
658 pointer as assignment value and just don't assign it.
660 * src/vspace.C (nextToken): corrected this function substituting
661 find_first(_not)_of with find_last_of.
663 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
664 (TableOptCloseCB) (TableSpeCloseCB):
665 inserted fl_set_focus call for problem with fl_hide_form() in
668 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
670 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
673 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
675 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
676 LyXLex::next() and not eatline() to get its argument.
678 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
680 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
681 instead, use fstreams for io of the depfile, removed unneeded
682 functions and variables.
684 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
685 vector instead, removed all functions and variables that is not in
688 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
690 * src/buffer.C (insertErrors): use new interface to TeXError
692 * Makefile.am (rpmdist): added a rpmdist target
694 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
695 per Kayvan's instructions.
697 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
699 * src/Makefile.am: add a definition for localedir, so that locales
700 are found after installation (Kayvan)
702 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
704 * development/.cvsignore: new file.
706 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
708 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
709 C++ compiler provides wrappers for C headers and use our alternate
712 * configure.in: use LYX_CXX_CHEADERS.
714 * src/cheader/: new directory, populated with cname headers from
715 libstdc++-2.8.1. They are a bit old, but probably good enough for
716 what we want (support compilers who lack them).
718 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
719 from includes. It turns out is was stupid.
721 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
723 * lib/Makefile.am (install-data-local): forgot a ';'
724 (install-data-local): forgot a '\'
725 (libinstalldirs): needed after all. reintroduced.
727 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
729 * configure.in (AC_OUTPUT): added lyx.spec
731 * development/lyx.spec: removed file
733 * development/lyx.spec.in: new file
735 * po/*.po: merged with lyx.pot becuase of make distcheck
737 * lib/Makefile.am (dist-hook): added dist-hook so that
738 documentation files will be included when doing a make
739 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
740 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
742 more: tried to make install do the right thing, exclude CVS dirs
745 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
746 Path would fit in more nicely.
748 * all files that used to use pathstack: uses now Path instead.
749 This change was a lot easier than expected.
751 * src/support/path.h: new file
753 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
755 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
757 * src/support/lyxstring.C (getline): Default arg was given for
760 * Configure.cmd: removed file
762 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
764 * src/support/DebugStream.[Ch]: remove the explicit std:: before
765 streams classes and types, add the proper 'using' statements when
766 MODERN_STL is defined.
768 * src/debug.h: move the << operator definition after the inclusion
771 * src/support/filetools.C: include "LAssert.h", which is needed
774 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
777 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
778 include "debug.h" to define a proper ostream.
780 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
782 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
783 method to the SystemCall class which can kill a process, but it's
784 not fully implemented yet.
786 * src/*.C: Changed Systemcalls::Startscript() to startscript()
788 * src/support/FileInfo.h: Better documentation
790 * src/lyxfunc.C: Added support for buffer-export html
792 * src/menus.C: Added Export->As HTML...
794 * lib/bind/*.bind: Added short-cut for buffer-export html
796 * src/lyxrc.*: Added support for new \tth_command
798 * lib/lyxrc.example: Added stuff for new \tth_command
800 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
802 * lib/Makefile.am (IMAGES): removed images/README
803 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
804 installes in correct place. Check permisions is installed
807 * src/LaTeX.C: some no-op changes moved declaration of some
810 * src/LaTeX.h (LATEX_H): changed include guard name
812 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
814 * lib/reLyX/Makefile.am: install noweb2lyx.
816 * lib/Makefile.am: install configure.
818 * lib/reLyX/configure.in: declare a config aux dir; set package
819 name to lyx (not sure what the best solution is); generate noweb2lyx.
821 * lib/layouts/egs.layout: fix the bibliography layout.
823 1999-10-08 Jürgen Vigna <jug@sad.it>
825 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
826 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
827 it returned without continuing to search the path.
829 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
831 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
832 also fixes a bug. It is not allowed to do tricks with std::strings
833 like: string a("hei"); &a[e]; this will not give what you
834 think... Any reason for the complexity in this func?
836 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
838 * Updated README and INSTALL a bit, mostly to check that my
839 CVS rights are correctly set up.
841 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
843 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
844 does not allow '\0' chars but lyxstring and std::string does.
846 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
848 * autogen.sh (AUTOCONF): let the autogen script create the
849 POTFILES.in file too. POTFILES.in should perhaps now not be
850 included in the cvs module.
852 * some more files changed to use C++ includes instead of C ones.
854 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
856 (Reread): added tostr to nlink. buggy output otherwise.
857 (Reread): added a string() around szMode when assigning to Buffer,
858 without this I got a log of garbled info strings.
860 * acconfig.h: commented out the PTR_AS_INT macros. They should not
863 * I have added several ostream & operator<<(ostream &, some_type)
864 functions. This has been done to avoid casting and warnings when
865 outputting enums to lyxerr. This as thus eliminated a lot of
866 explicit casts and has made the code clearer. Among the enums
867 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
868 mathed enums, some font enum the Debug::type enum.
870 * src/support/lyxstring.h (clear): missing method. equivalent of
873 * all files that contained "stderr": rewrote constructs that used
874 stderr to use lyxerr instead. (except bmtable)
876 * src/support/DebugStream.h (level): and the passed t with
877 Debug::ANY to avoid spurious bits set.
879 * src/debug.h (Debug::type value): made it accept strings of the
882 * configure.in (Check for programs): Added a check for kpsewhich,
883 the latex generation will use this later to better the dicovery of
886 * src/BufferView.C (create_view): we don't need to cast this to
887 (void*) that is done automatically.
888 (WorkAreaButtonPress): removed some dead code.
890 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
892 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
893 is not overwritten when translated (David Sua'rez de Lis).
895 * lib/CREDITS: Added David Sua'rez de Lis
897 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
899 * src/bufferparams.C (BufferParams): default input encoding is now
902 * acinclude.m4 (cross_compiling): comment out macro
903 LYX_GXX_STRENGTH_REDUCE.
905 * acconfig.h: make sure that const is not defined (to empty) when
906 we are compiling C++. Remove commented out code using SIZEOF_xx
909 * configure.in : move the test for const and inline as late as
910 possible so that these C tests do not interefere with C++ ones.
911 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
914 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
916 * src/table.C (getDocBookAlign): remove bad default value for
919 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
921 (ShowFileMenu2): ditto.
923 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
926 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
928 * Most files: finished the change from the old error code to use
929 DebugStream for all lyxerr debugging. Only minor changes remain
930 (e.g. the setting of debug levels using strings instead of number)
932 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
934 * src/layout.C (Add): Changed to use compare_no_case instead of
937 * src/FontInfo.C: changed loop variable type too string::size_type.
939 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
941 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
942 set ETAGS_ARGS to --c++
944 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
946 * src/table.C (DocBookEndOfCell): commented out two unused variables
948 * src/paragraph.C: commented out four unused variables.
950 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
951 insed a if clause with type string::size_type.
953 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
956 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
958 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
959 variable, also changed loop to go from 0 to lenght + 1, instead of
960 -1 to length. This should be correct.
962 * src/LaTeX.C (scanError): use string::size_type as loop variable
965 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
966 (l.896) since y_tmp and row was not used anyway.
968 * src/insets/insetref.C (escape): use string::size_type as loop
971 * src/insets/insetquotes.C (Width): use string::size_type as loop
973 (Draw): use string::size_type as loop variable type.
975 * src/insets/insetlatexaccent.C (checkContents): use
976 string::size_type as loop variable type.
978 * src/insets/insetlabel.C (escape): use string::size_type as loop
981 * src/insets/insetinfo.C: added an extern for current_view.
983 * src/insets/insetcommand.C (scanCommand): use string::size_type
984 as loop variable type.
986 * most files: removed the RCS tags. With them we had to recompile
987 a lot of files after a simple cvs commit. Also we have never used
988 them for anything meaningful.
990 * most files: tags-query-replace NULL 0. As adviced several plases
991 we now use "0" instead of "NULL" in our code.
993 * src/support/filetools.C (SpaceLess): use string::size_type as
996 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
998 * src/paragraph.C: fixed up some more string stuff.
1000 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1002 * src/support/filetools.h: make modestr a std::string.
1004 * src/filetools.C (GetEnv): made ch really const.
1006 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1007 made code that used these use max/min from <algorithm> instead.
1009 * changed several c library include files to their equivalent c++
1010 library include files. All is not changed yet.
1012 * created a support subdir in src, put lyxstring and lstrings
1013 there + the extra files atexit, fileblock, strerror. Created
1014 Makefile.am. edited configure.in and src/Makefile.am to use this
1015 new subdir. More files moved to support.
1017 * imported som of the functions from repository lyx, filetools
1019 * ran tags-query-replace on LString -> string, corrected the bogus
1020 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1021 is still some errors in there. This is errors where too much or
1022 too litle get deleted from strings (string::erase, string::substr,
1023 string::replace), there can also be some off by one errors, or
1024 just plain wrong use of functions from lstrings. Viewing of quotes
1027 * LyX is now running fairly well with string, but there are
1028 certainly some bugs yet (see above) also string is quite different
1029 from LString among others in that it does not allow null pointers
1030 passed in and will abort if it gets any.
1032 * Added the revtex4 files I forgot when setting up the repository.
1034 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1036 * All over: Tried to clean everything up so that only the files
1037 that we really need are included in the cvs repository.
1038 * Switched to use automake.
1039 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1040 * Install has not been checked.
1042 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1044 * po/pt.po: Three errors:
1045 l.533 and l.538 format specification error
1046 l. 402 duplicate entry, I just deleted it.