1 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/bufferlist.C: use a vector to store the buffers in. This is
4 an internal change and should not affect any other thing.
6 * src/BufferView.C (waitForX): use XSync instead of the lengthy
9 * src/text.C (Fill): fix potential bug, one off bug.
11 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
13 * src/Makefile.am (lyx_main.o): add more files it depends on.
15 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
17 * src/support/lyxstring.C: use size_t for the reference count,
18 size, reserved memory and xtra.
19 (internal_compare): new private member function. Now the compare
20 functions should work for std::strings that have embedded '\0'
22 (compare): all compare functions rewritten to use
25 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
27 * src/support/lyxstring.C (compare): pass c_str()
31 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
33 * src/support/DebugStream.C: <config.h> was not included correctly.
35 * lib/configure: forgot to re-generate it :( I'll make this file
38 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
40 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
43 * src/support/lyxstring.C: some changes from length() to rep->sz.
44 avoids a function call.
46 * src/support/filetools.C (SpaceLess): yet another version of the
47 algorithm...now per Jean-Marc's suggestions.
49 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
51 * src/layout.C (less_textclass_desc): functor for use in sorting
53 (LyXTextClass::Read): sort the textclasses after reading.
55 * src/support/filetools.C (SpaceLess): new version of the
56 SpaceLess functions. What problems does this one give? Please
59 * images/banner_bw.xbm: made the arrays unsigned char *
61 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
63 * src/support/lyxstring.C (find): remove bogus assertion in the
64 two versions of find where this has not been done yet.
66 * src/support/lyxlib.h: add missing int return type to
69 * src/menus.C (ShowFileMenu): disable exporting to html if no
70 html export command is present.
72 * config/lib_configure.m4: add a test for an HTML converter. The
73 programs checked for are, in this order: tth, latex2html and
76 * lib/configure: generated from config/lib_configure.m4.
78 * src/lyxfunc.C (Dispatch): update and improve the execution of an
79 html converter. The parameters are now passed through $$FName and
80 $$OutName, instead of standard input/output.
82 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
84 * lib/lyxrc.example: update description of \html_command.
85 add "quotes" around \screen_font_xxx font setting examples to help
86 people who use fonts with spaces in their names.
88 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
90 * Distribution files: updates for v1.1.2
92 * src/support/lyxstring.C (find): remove bogus assert and return
93 npos for the same condition.
95 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
97 * added patch for OS/2 from SMiyata.
99 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
101 * src/text2.C (CutSelection): make space_wrapped a bool
102 (CutSelection): dont declare int i until we have to.
103 (alphaCounter): return a char const *.
105 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
107 * src/support/syscall.C (Systemcalls::kill):
108 src/support/filetools.C (PutEnv, PutEnvPath):
109 src/lyx_cb.C (addNewlineAndDepth):
110 src/FontInfo.C (FontInfo::resize): condition some #warning
111 directives with WITH_WARNINGS.
114 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
116 * src/layout.[Ch] + several files: access to class variables
117 limited and made accessor functions instead a lot of code changed
118 becuase of this. Also instead of returning pointers often a const
119 reference is returned instead.
121 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
123 * src/Makefile.am (dist-hook): added used to remove the CVS from
124 cheaders upon creating a dist
125 (EXTRA_DIST): added cheaders
127 * src/support/lstrings.C (tostr(char)): fix it to handle param as
128 a character not as a small integer.
130 * src/support/lyxstring.C (find): removed Assert and added i >=
131 rep->sz to the first if.
133 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
135 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
136 src/LyXView.C src/buffer.C src/bufferparams.C
137 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
138 src/text2.C src/insets/insetinclude.C:
139 lyxlayout renamed to textclasslist.
141 * src/layout.C: some lyxerr changes.
143 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
144 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
145 (LyXLayoutList): removed all traces of this class.
146 (LyXTextClass::Read): rewrote LT_STYLE
147 (LyXTextClass::hasLayout): new function
148 (LyXTextClass::GetLayout): rewritten to return an iterator + has
149 both const and nonconst version.
150 (LyXTextClass::delete_layout): new function.
151 (LyXTextClassList::Style): bug fix. do the right thing if layout
153 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
154 (LyXTextClassList::NameOfLayout): ditto
155 (LyXTextClassList::Load): ditto
157 * src/buffer.C (makeLaTeXFile): new access to layoutlist
159 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
161 * src/LyXAction.C (LookupFunc): added a workaround for sun
162 compiler, on the other hand...we don't know if the current code
163 compiles on sun at all...
165 * src/support/filetools.C (CleanupPath): subst fix
167 * src/insets/insetbib.C (delDatabase): subst fix, this looks
170 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
171 complained about this one?
173 * src/insets/insetinclude.C (Latex): subst fix
175 * src/insets/insetbib.C (getKeys): subst fix
177 * src/LyXSendto.C (SendtoApplyCB): subst fix
179 * src/lyx_main.C (init): subst fix
181 * src/layout.C (Read): subst fix
183 * src/lyx_sendfax_main.C (button_send): subst fix
185 * src/buffer.C (RoffAsciiTable): subst fix
187 * src/lyx_cb.C (MenuFax): subst fix
188 (PrintApplyCB): subst fix
190 1999-10-26 Juergen Vigna <jug@sad.it>
192 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
194 (Read): Cleaned up this code so now we read only format vestion >= 5
196 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
198 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
199 come nobody has complained about this one?
201 * src/insets/insetinclude.C (Latex): subst fix
203 * src/insets/insetbib.C (getKeys): subst fix
205 * src/lyx_main.C (init): subst fix
207 * src/layout.C (Read): subst fix
209 * src/buffer.C (RoffAsciiTable): subst fix
211 * src/lyx_cb.C (MenuFax): subst fix.
213 * src/layout.[hC] + some other files: rewrote to use
214 std::container to store textclasses and layouts in.
215 Simplified, removed a lot of code. Make all classes
216 assignable. Further simplifications and review of type
219 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
220 lastfiles to create the lastfiles partr of the menu.
222 * src/lastfiles.[Ch]: rewritten to use deque to store the
223 lastfiles in. Uses fstream for reading and writing. Simplifies
226 * src/support/syscall.C: remove explicit cast.
228 * src/BufferView.C (CursorToggleCB): removed code snippets that
230 use explicat C++ style casts instead of C style casts. also use
231 u_vdata instea of passing pointers in longs.
233 * src/PaperLayout.C: removed code snippets that were commented out.
235 * src/lyx_gui_misc.C: removed code snippets that were commented out.
237 * src/lyx_main.C: removed code snippets that wer commented out.
239 * src/paragraph.C: removed code snippets that were commented out.
241 * src/lyxvc.C (logClose): use static_cast
243 (viewLog): remove explicit cast to void*
244 (showLog): removed old commented code
246 * src/menus.C: use static_cast instead of C style casts. use
247 u_vdata instead of u_ldata. remove explicit cast to (long) for
248 pointers. Removed old code that was commented out.
250 * src/insets/inset.C: removed old commented func
252 * src/insets/insetref.C (InsetRef): removed old code that had been
253 commented out for a long time.
255 (escape): removed C style cast
257 * src/insets/insetlatexaccent.C (Draw): removed old commented code
259 * src/insets/insetlatex.C (Draw): removed old commented code
260 (Read): rewritten to use string
262 * src/insets/insetlabel.C (escape): removed C style cast
264 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
266 * src/insets/insetindex.C: use static_cast and u_vdata, removed
269 * src/insets/insetinclude.h: removed a couple of stupid bools
271 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
272 (Clone): remove C style cast
273 (getKeys): changed list to lst because of std::list
275 * src/insets/inseterror.C (Draw): removed som old commented code.
277 * src/insets/insetcommand.C (Draw): removed some old commented code.
279 * src/insets/insetbib.C (bibitem_cb): removed code that has been
280 commented out forever.
281 (bibitem_cb): use static_cast instead of C style cast
282 use of vdata changed to u_vdata.
284 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
286 (CloseUrlCB): use static_cast instead of C style cast.
287 (CloseUrlCB): added a fl_free form...it seemed to be missing.
289 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
290 (C_InsetInfo_CloseInfoCB): forward the ob parameter
291 (CloseInfoCB): static_cast from ob->u_vdata instead.
292 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
295 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
296 (C_InsetError_CloseErrorCB): forward the ob parameter
297 (CloseErrorCB): static_cast from ob->u_vdata instead.
299 * src/vspace.h: include LString.h since we use string in this class.
301 * src/vspace.C (lyx_advance): changed name from advance because of
302 nameclash with stl. And since we cannot use namespaces yet...I
303 used a lyx_ prefix instead. Expect this to change when we begin
306 * src/BufferView.[Ch] (BufferView::~BufferView): removed
308 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
309 and removed now defunct constructor and deconstructor.
311 * src/BufferView.h: have backstack as a object not as a pointer.
312 removed initialization from constructor. added include for BackStack
314 * development/lyx.spec.in (%build): add CFLAGS also.
316 * src/screen.C (drawFrame): removed another warning.
318 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
320 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
321 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
322 README and ANNOUNCE a bit for the next release. More work is
325 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
326 unbreakable if we are in freespacing mode (LyX-Code), but not in
329 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
331 * src/BackStack.h: fixed initialization order in constructor
333 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
335 * acinclude.m4 (VERSION): new rules for when a version is
336 development, added also a variable for prerelease.
337 (warnings): we set with_warnings=yes for prereleases
338 (lyx_opt): prereleases compile with same optimization as development
339 (CXXFLAGS): only use pedantic if we are a development version
341 * src/BufferView.C (restorePosition): don't do anything if the
344 * src/BackStack.h: added member empty, use this to test if there
345 is anything to pop...
347 1999-10-25 Juergen Vigna <jug@sad.it>
350 * forms/layout_forms.fd +
351 * forms/latexoptions.fd +
352 * lyx.fd: changed for various form resize issues
354 * src/mathed/math_panel.C +
355 * src/insets/inseterror.C +
356 * src/insets/insetinfo.C +
357 * src/insets/inseturl.C +
358 * src/insets/inseturl.h +
361 * src/PaperLayout.C +
362 * src/ParagraphExtra.C +
363 * src/TableLayout.C +
365 * src/layout_forms.C +
372 * src/menus.C: fixed various resize issues. So now forms can be
373 resized savely or not be resized at all.
375 * forms/form_url.fd +
376 * src/insets/form_url.[Ch]: added because it's cleaner and easier
379 * src/insets/Makefile.am: added files form_url.[Ch]
381 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
383 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
384 (and presumably 6.2).
386 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
387 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
388 remaining static member callbacks.
390 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
393 * src/support/lyxstring.h: declare struct Srep as friend of
394 lyxstring, since DEC cxx complains otherwise.
396 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
398 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
400 * src/LaTeX.C (run): made run_bibtex also depend on files with
402 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
403 are put into the dependency file.
405 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
406 the code has shown itself to work
407 (create_ispell_pipe): removed another warning, added a comment
410 * src/minibuffer.C (ExecutingCB): removed code that has been
411 commented out a long time
413 * src/lyxfunc.C (processKeyEvent): removed some very old commented
414 out code + a warning.
416 * src/support/lyxstring.h: comment out the three private
417 operators, when compiling with string ansi conforming compilers
420 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
422 (pixmapFromBitmapData): change type of bdata to be unsigned char *
423 (pixmapFromBitmapData): add a reinterpret_cast in the call to
426 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
429 * src/mathed/math_panel.C (create_math_panel): remove explicit
432 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
435 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
436 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
437 to XCreatePixmapFromBitmapData
438 (fl_set_bmtable_data): change the last argument to be unsigned
440 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
441 and bh to be unsigned int, remove explicit casts in call to
444 * images/arrows.xbm: made the arrays unsigned char *
445 * images/varsz.xbm: ditto
446 * images/misc.xbm: ditto
447 * images/greek.xbm: ditto
448 * images/dots.xbm: ditto
449 * images/brel.xbm: ditto
450 * images/bop.xbm: ditto
452 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
454 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
455 (LYX_PROG_CXX): added -pedantic to g++ compile options when
456 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
458 (LYX_CXX_CHEADERS): added <clocale> to the test.
460 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
462 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
464 * src/support/lyxstring.C (append): fixed something that must be a
465 bug, rep->assign was used instead of rep->append.
467 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
470 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
471 lyx insert double chars. Fix spotted by Kayvan.
473 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
475 * Fixed the tth support. I messed up with the Emacs patch apply feature
476 and omitted the changes in lyxrc.C.
478 1999-10-22 Juergen Vigna <jug@sad.it>
480 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
482 * src/lyx_cb.C (MenuInsertRef) +
483 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
484 the form cannot be resized under it limits (fixes a segfault)
486 * src/lyx.C (create_form_form_ref) +
487 * forms/lyx.fd: Changed Gravity on name input field so that it is
490 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
492 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
493 <ostream> and <istream>.
495 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
496 whether <fstream> provides the latest standard features, or if we
497 have an oldstyle library (like in egcs).
498 (LYX_CXX_STL_STRING): fix the test.
500 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
501 code on MODERN_STL_STREAM.
503 * src/support/lyxstring.h: use L{I,O}stream.h.
505 * src/support/L{I,O}stream.h: new files, designed to setup
506 correctly streams for our use
507 - includes the right header depending on STL capabilities
508 - puts std::ostream and std::endl (for LOStream.h) or
509 std::istream (LIStream.h) in toplevel namespace.
511 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
513 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
514 was a bib file that had been changed we ensure that bibtex is run.
515 (runBibTeX): enhanced to extract the names of the bib files and
516 getting their absolute path and enter them into the dep file.
517 (findtexfile): static func that is used to look for tex-files,
518 checks for absolute patchs and tries also with kpsewhich.
519 Alternative ways of finding the correct files are wanted. Will
521 (do_popen): function that runs a command using popen and returns
522 the whole output of that command in a string. Should be moved to
525 * src/DepTable.[Ch] (extchanged): new function that returns true if a
526 file with extension ext has changed.
528 * src/insets/figinset.C: added ifdef guards around the fl_free
529 code that jug commented out. Now it is commented out when
530 compiling with XForms == 0.89.
532 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
533 to lyxstring.C, and only keep a forward declaration in
534 lyxstring.h. Simplifies the header file a bit and should help a
535 bit on compile time too. Also changes to Srep will not mandate a
536 recompile of code just using string.
537 (~lyxstring): definition moved here since it uses srep.
538 (size): definition moved here since it uses srep.
540 * src/support/lyxstring.h: removed a couple of "inline" that should
543 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
545 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
548 1999-10-21 Juergen Vigna <jug@sad.it>
550 * src/table.C (SetPWidth): Just a small fix so the alignment is not
551 set to left if I just remove the width entry (or it is empty).
553 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
554 paragraph when having dummy paragraphs.
556 1999-10-20 Juergen Vigna <jug@sad.it>
558 * src/insets/figinset.C: just commented some fl_free_form calls
559 and added warnings so that this calls should be activated later
560 again. This avoids for now a segfault, but we have a memory leak!
562 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
563 'const char * argument' to 'string argument', this should
564 fix some Asserts() in lyxstring.C.
566 * src/lyxfunc.h: Removed the function argAsString(const char *)
567 as it is not used anymore.
569 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
571 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
574 * src/Literate.h: some funcs moved from public to private to make
575 interface clearer. Unneeded args removed.
577 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
579 (scanBuildLogFile): ditto
581 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
582 normal TeX Error. Still room for improvement.
584 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
586 * src/buffer.C (insertErrors): changes to make the error
587 desctription show properly.
589 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
592 * src/support/lyxstring.C (helper): changed to use
593 sizeof(object->rep->ref).
594 (operator>>): changed to use a pointer instead.
596 * src/support/lyxstring.h: changed const reference & to value_type
597 const & lets see if that helps.
599 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
601 * Makefile.am (rpmdist): fixed to have non static package and
604 * src/support/lyxstring.C: removed the compilation guards
606 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
609 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
610 conditional compile of lyxstring.Ch
612 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
613 stupid check, but it is a lot better than the bastring hack.
614 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
616 * several files: changed string::erase into string::clear. Not
619 * src/chset.C (encodeString): use a char temporary instead
621 * src/table.C (TexEndOfCell): added tostr around
622 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
623 (TexEndOfCell): ditto
624 (TexEndOfCell): ditto
625 (TexEndOfCell): ditto
626 (DocBookEndOfCell): ditto
627 (DocBookEndOfCell): ditto
628 (DocBookEndOfCell): ditto
629 (DocBookEndOfCell): ditto
631 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
633 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
635 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
636 (MenuBuildProg): added tostr around ret
637 (MenuRunChktex): added tostr around ret
638 (DocumentApplyCB): added tostr around ret
640 * src/chset.C (encodeString): added tostr around t->ic
642 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
643 (makeLaTeXFile): added tostr around tocdepth
644 (makeLaTeXFile): added tostr around ftcound - 1
646 * src/insets/insetbib.C (setCounter): added tostr around counter.
648 * src/support/lyxstring.h: added an operator+=(int) to catch more
651 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
652 (lyxstring): We DON'T allow NULL pointers.
654 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
656 * src/mathed/math_macro.C (MathMacroArgument::Write,
657 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
658 when writing them out.
660 * src/LString.C: remove, since it is not used anymore.
662 * src/support/lyxstring.C: condition the content to
663 USE_INCLUDED_STRING macro.
665 * src/mathed/math_symbols.C, src/support/lstrings.C,
666 src/support/lyxstring.C: add `using' directive to specify what
667 we need in <algorithm>. I do not think that we need to
668 conditionalize this, but any thought is appreciated.
670 * many files: change all callback functions to "C" linkage
671 functions to please strict C++ compilers like DEC cxx 6.1 in mode
672 strict_ansi. Those who were static are now global.
673 The case of callbacks which are static class members is
674 trickier, since we have to make C wrappers around them (see
675 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
676 did not finish this yet, since it defeats the purpose of
677 encapsulation, and I am not sure what the best route is.
679 1999-10-19 Juergen Vigna <jug@sad.it>
681 * src/support/lyxstring.C (lyxstring): we permit to have a null
682 pointer as assignment value and just don't assign it.
684 * src/vspace.C (nextToken): corrected this function substituting
685 find_first(_not)_of with find_last_of.
687 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
688 (TableOptCloseCB) (TableSpeCloseCB):
689 inserted fl_set_focus call for problem with fl_hide_form() in
692 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
694 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
697 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
699 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
700 LyXLex::next() and not eatline() to get its argument.
702 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
704 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
705 instead, use fstreams for io of the depfile, removed unneeded
706 functions and variables.
708 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
709 vector instead, removed all functions and variables that is not in
712 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
714 * src/buffer.C (insertErrors): use new interface to TeXError
716 * Makefile.am (rpmdist): added a rpmdist target
718 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
719 per Kayvan's instructions.
721 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
723 * src/Makefile.am: add a definition for localedir, so that locales
724 are found after installation (Kayvan)
726 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
728 * development/.cvsignore: new file.
730 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
732 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
733 C++ compiler provides wrappers for C headers and use our alternate
736 * configure.in: use LYX_CXX_CHEADERS.
738 * src/cheader/: new directory, populated with cname headers from
739 libstdc++-2.8.1. They are a bit old, but probably good enough for
740 what we want (support compilers who lack them).
742 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
743 from includes. It turns out is was stupid.
745 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
747 * lib/Makefile.am (install-data-local): forgot a ';'
748 (install-data-local): forgot a '\'
749 (libinstalldirs): needed after all. reintroduced.
751 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
753 * configure.in (AC_OUTPUT): added lyx.spec
755 * development/lyx.spec: removed file
757 * development/lyx.spec.in: new file
759 * po/*.po: merged with lyx.pot becuase of make distcheck
761 * lib/Makefile.am (dist-hook): added dist-hook so that
762 documentation files will be included when doing a make
763 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
764 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
766 more: tried to make install do the right thing, exclude CVS dirs
769 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
770 Path would fit in more nicely.
772 * all files that used to use pathstack: uses now Path instead.
773 This change was a lot easier than expected.
775 * src/support/path.h: new file
777 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
779 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
781 * src/support/lyxstring.C (getline): Default arg was given for
784 * Configure.cmd: removed file
786 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
788 * src/support/DebugStream.[Ch]: remove the explicit std:: before
789 streams classes and types, add the proper 'using' statements when
790 MODERN_STL is defined.
792 * src/debug.h: move the << operator definition after the inclusion
795 * src/support/filetools.C: include "LAssert.h", which is needed
798 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
801 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
802 include "debug.h" to define a proper ostream.
804 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
806 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
807 method to the SystemCall class which can kill a process, but it's
808 not fully implemented yet.
810 * src/*.C: Changed Systemcalls::Startscript() to startscript()
812 * src/support/FileInfo.h: Better documentation
814 * src/lyxfunc.C: Added support for buffer-export html
816 * src/menus.C: Added Export->As HTML...
818 * lib/bind/*.bind: Added short-cut for buffer-export html
820 * src/lyxrc.*: Added support for new \tth_command
822 * lib/lyxrc.example: Added stuff for new \tth_command
824 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
826 * lib/Makefile.am (IMAGES): removed images/README
827 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
828 installes in correct place. Check permisions is installed
831 * src/LaTeX.C: some no-op changes moved declaration of some
834 * src/LaTeX.h (LATEX_H): changed include guard name
836 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
838 * lib/reLyX/Makefile.am: install noweb2lyx.
840 * lib/Makefile.am: install configure.
842 * lib/reLyX/configure.in: declare a config aux dir; set package
843 name to lyx (not sure what the best solution is); generate noweb2lyx.
845 * lib/layouts/egs.layout: fix the bibliography layout.
847 1999-10-08 Jürgen Vigna <jug@sad.it>
849 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
850 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
851 it returned without continuing to search the path.
853 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
855 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
856 also fixes a bug. It is not allowed to do tricks with std::strings
857 like: string a("hei"); &a[e]; this will not give what you
858 think... Any reason for the complexity in this func?
860 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
862 * Updated README and INSTALL a bit, mostly to check that my
863 CVS rights are correctly set up.
865 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
867 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
868 does not allow '\0' chars but lyxstring and std::string does.
870 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
872 * autogen.sh (AUTOCONF): let the autogen script create the
873 POTFILES.in file too. POTFILES.in should perhaps now not be
874 included in the cvs module.
876 * some more files changed to use C++ includes instead of C ones.
878 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
880 (Reread): added tostr to nlink. buggy output otherwise.
881 (Reread): added a string() around szMode when assigning to Buffer,
882 without this I got a log of garbled info strings.
884 * acconfig.h: commented out the PTR_AS_INT macros. They should not
887 * I have added several ostream & operator<<(ostream &, some_type)
888 functions. This has been done to avoid casting and warnings when
889 outputting enums to lyxerr. This as thus eliminated a lot of
890 explicit casts and has made the code clearer. Among the enums
891 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
892 mathed enums, some font enum the Debug::type enum.
894 * src/support/lyxstring.h (clear): missing method. equivalent of
897 * all files that contained "stderr": rewrote constructs that used
898 stderr to use lyxerr instead. (except bmtable)
900 * src/support/DebugStream.h (level): and the passed t with
901 Debug::ANY to avoid spurious bits set.
903 * src/debug.h (Debug::type value): made it accept strings of the
906 * configure.in (Check for programs): Added a check for kpsewhich,
907 the latex generation will use this later to better the dicovery of
910 * src/BufferView.C (create_view): we don't need to cast this to
911 (void*) that is done automatically.
912 (WorkAreaButtonPress): removed some dead code.
914 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
916 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
917 is not overwritten when translated (David Sua'rez de Lis).
919 * lib/CREDITS: Added David Sua'rez de Lis
921 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
923 * src/bufferparams.C (BufferParams): default input encoding is now
926 * acinclude.m4 (cross_compiling): comment out macro
927 LYX_GXX_STRENGTH_REDUCE.
929 * acconfig.h: make sure that const is not defined (to empty) when
930 we are compiling C++. Remove commented out code using SIZEOF_xx
933 * configure.in : move the test for const and inline as late as
934 possible so that these C tests do not interefere with C++ ones.
935 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
938 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
940 * src/table.C (getDocBookAlign): remove bad default value for
943 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
945 (ShowFileMenu2): ditto.
947 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
950 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
952 * Most files: finished the change from the old error code to use
953 DebugStream for all lyxerr debugging. Only minor changes remain
954 (e.g. the setting of debug levels using strings instead of number)
956 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
958 * src/layout.C (Add): Changed to use compare_no_case instead of
961 * src/FontInfo.C: changed loop variable type too string::size_type.
963 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
965 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
966 set ETAGS_ARGS to --c++
968 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
970 * src/table.C (DocBookEndOfCell): commented out two unused variables
972 * src/paragraph.C: commented out four unused variables.
974 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
975 insed a if clause with type string::size_type.
977 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
980 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
982 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
983 variable, also changed loop to go from 0 to lenght + 1, instead of
984 -1 to length. This should be correct.
986 * src/LaTeX.C (scanError): use string::size_type as loop variable
989 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
990 (l.896) since y_tmp and row was not used anyway.
992 * src/insets/insetref.C (escape): use string::size_type as loop
995 * src/insets/insetquotes.C (Width): use string::size_type as loop
997 (Draw): use string::size_type as loop variable type.
999 * src/insets/insetlatexaccent.C (checkContents): use
1000 string::size_type as loop variable type.
1002 * src/insets/insetlabel.C (escape): use string::size_type as loop
1005 * src/insets/insetinfo.C: added an extern for current_view.
1007 * src/insets/insetcommand.C (scanCommand): use string::size_type
1008 as loop variable type.
1010 * most files: removed the RCS tags. With them we had to recompile
1011 a lot of files after a simple cvs commit. Also we have never used
1012 them for anything meaningful.
1014 * most files: tags-query-replace NULL 0. As adviced several plases
1015 we now use "0" instead of "NULL" in our code.
1017 * src/support/filetools.C (SpaceLess): use string::size_type as
1020 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1022 * src/paragraph.C: fixed up some more string stuff.
1024 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1026 * src/support/filetools.h: make modestr a std::string.
1028 * src/filetools.C (GetEnv): made ch really const.
1030 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1031 made code that used these use max/min from <algorithm> instead.
1033 * changed several c library include files to their equivalent c++
1034 library include files. All is not changed yet.
1036 * created a support subdir in src, put lyxstring and lstrings
1037 there + the extra files atexit, fileblock, strerror. Created
1038 Makefile.am. edited configure.in and src/Makefile.am to use this
1039 new subdir. More files moved to support.
1041 * imported som of the functions from repository lyx, filetools
1043 * ran tags-query-replace on LString -> string, corrected the bogus
1044 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1045 is still some errors in there. This is errors where too much or
1046 too litle get deleted from strings (string::erase, string::substr,
1047 string::replace), there can also be some off by one errors, or
1048 just plain wrong use of functions from lstrings. Viewing of quotes
1051 * LyX is now running fairly well with string, but there are
1052 certainly some bugs yet (see above) also string is quite different
1053 from LString among others in that it does not allow null pointers
1054 passed in and will abort if it gets any.
1056 * Added the revtex4 files I forgot when setting up the repository.
1058 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1060 * All over: Tried to clean everything up so that only the files
1061 that we really need are included in the cvs repository.
1062 * Switched to use automake.
1063 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1064 * Install has not been checked.
1066 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1068 * po/pt.po: Three errors:
1069 l.533 and l.538 format specification error
1070 l. 402 duplicate entry, I just deleted it.