1 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
4 from Kayvan to fix the tth invokation.
6 * development/lyx.spec.in: updates from Kayvan to reflect the
9 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
11 * src/text2.C (InsertStringB): use std::copy
12 (InsertStringA): use std::copy
14 * src/bufferlist.C: use a vector to store the buffers in. This is
15 an internal change and should not affect any other thing.
17 * src/BufferView.C (waitForX): use XSync instead of the lengthy
20 * src/text.C (Fill): fix potential bug, one off bug.
22 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
24 * src/Makefile.am (lyx_main.o): add more files it depends on.
26 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
28 * src/support/lyxstring.C: use size_t for the reference count,
29 size, reserved memory and xtra.
30 (internal_compare): new private member function. Now the compare
31 functions should work for std::strings that have embedded '\0'
33 (compare): all compare functions rewritten to use
36 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
38 * src/support/lyxstring.C (compare): pass c_str()
42 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
44 * src/support/DebugStream.C: <config.h> was not included correctly.
46 * lib/configure: forgot to re-generate it :( I'll make this file
49 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
51 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
54 * src/support/lyxstring.C: some changes from length() to rep->sz.
55 avoids a function call.
57 * src/support/filetools.C (SpaceLess): yet another version of the
58 algorithm...now per Jean-Marc's suggestions.
60 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
62 * src/layout.C (less_textclass_desc): functor for use in sorting
64 (LyXTextClass::Read): sort the textclasses after reading.
66 * src/support/filetools.C (SpaceLess): new version of the
67 SpaceLess functions. What problems does this one give? Please
70 * images/banner_bw.xbm: made the arrays unsigned char *
72 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
74 * src/support/lyxstring.C (find): remove bogus assertion in the
75 two versions of find where this has not been done yet.
77 * src/support/lyxlib.h: add missing int return type to
80 * src/menus.C (ShowFileMenu): disable exporting to html if no
81 html export command is present.
83 * config/lib_configure.m4: add a test for an HTML converter. The
84 programs checked for are, in this order: tth, latex2html and
87 * lib/configure: generated from config/lib_configure.m4.
89 * src/lyxfunc.C (Dispatch): update and improve the execution of an
90 html converter. The parameters are now passed through $$FName and
91 $$OutName, instead of standard input/output.
93 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
95 * lib/lyxrc.example: update description of \html_command.
96 add "quotes" around \screen_font_xxx font setting examples to help
97 people who use fonts with spaces in their names.
99 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
101 * Distribution files: updates for v1.1.2
103 * src/support/lyxstring.C (find): remove bogus assert and return
104 npos for the same condition.
106 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
108 * added patch for OS/2 from SMiyata.
110 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
112 * src/text2.C (CutSelection): make space_wrapped a bool
113 (CutSelection): dont declare int i until we have to.
114 (alphaCounter): return a char const *.
116 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
118 * src/support/syscall.C (Systemcalls::kill):
119 src/support/filetools.C (PutEnv, PutEnvPath):
120 src/lyx_cb.C (addNewlineAndDepth):
121 src/FontInfo.C (FontInfo::resize): condition some #warning
122 directives with WITH_WARNINGS.
125 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
127 * src/layout.[Ch] + several files: access to class variables
128 limited and made accessor functions instead a lot of code changed
129 becuase of this. Also instead of returning pointers often a const
130 reference is returned instead.
132 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
134 * src/Makefile.am (dist-hook): added used to remove the CVS from
135 cheaders upon creating a dist
136 (EXTRA_DIST): added cheaders
138 * src/support/lstrings.C (tostr(char)): fix it to handle param as
139 a character not as a small integer.
141 * src/support/lyxstring.C (find): removed Assert and added i >=
142 rep->sz to the first if.
144 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
146 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
147 src/LyXView.C src/buffer.C src/bufferparams.C
148 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
149 src/text2.C src/insets/insetinclude.C:
150 lyxlayout renamed to textclasslist.
152 * src/layout.C: some lyxerr changes.
154 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
155 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
156 (LyXLayoutList): removed all traces of this class.
157 (LyXTextClass::Read): rewrote LT_STYLE
158 (LyXTextClass::hasLayout): new function
159 (LyXTextClass::GetLayout): rewritten to return an iterator + has
160 both const and nonconst version.
161 (LyXTextClass::delete_layout): new function.
162 (LyXTextClassList::Style): bug fix. do the right thing if layout
164 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
165 (LyXTextClassList::NameOfLayout): ditto
166 (LyXTextClassList::Load): ditto
168 * src/buffer.C (makeLaTeXFile): new access to layoutlist
170 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
172 * src/LyXAction.C (LookupFunc): added a workaround for sun
173 compiler, on the other hand...we don't know if the current code
174 compiles on sun at all...
176 * src/support/filetools.C (CleanupPath): subst fix
178 * src/insets/insetbib.C (delDatabase): subst fix, this looks
181 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
182 complained about this one?
184 * src/insets/insetinclude.C (Latex): subst fix
186 * src/insets/insetbib.C (getKeys): subst fix
188 * src/LyXSendto.C (SendtoApplyCB): subst fix
190 * src/lyx_main.C (init): subst fix
192 * src/layout.C (Read): subst fix
194 * src/lyx_sendfax_main.C (button_send): subst fix
196 * src/buffer.C (RoffAsciiTable): subst fix
198 * src/lyx_cb.C (MenuFax): subst fix
199 (PrintApplyCB): subst fix
201 1999-10-26 Juergen Vigna <jug@sad.it>
203 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
205 (Read): Cleaned up this code so now we read only format vestion >= 5
207 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
209 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
210 come nobody has complained about this one?
212 * src/insets/insetinclude.C (Latex): subst fix
214 * src/insets/insetbib.C (getKeys): subst fix
216 * src/lyx_main.C (init): subst fix
218 * src/layout.C (Read): subst fix
220 * src/buffer.C (RoffAsciiTable): subst fix
222 * src/lyx_cb.C (MenuFax): subst fix.
224 * src/layout.[hC] + some other files: rewrote to use
225 std::container to store textclasses and layouts in.
226 Simplified, removed a lot of code. Make all classes
227 assignable. Further simplifications and review of type
230 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
231 lastfiles to create the lastfiles partr of the menu.
233 * src/lastfiles.[Ch]: rewritten to use deque to store the
234 lastfiles in. Uses fstream for reading and writing. Simplifies
237 * src/support/syscall.C: remove explicit cast.
239 * src/BufferView.C (CursorToggleCB): removed code snippets that
241 use explicat C++ style casts instead of C style casts. also use
242 u_vdata instea of passing pointers in longs.
244 * src/PaperLayout.C: removed code snippets that were commented out.
246 * src/lyx_gui_misc.C: removed code snippets that were commented out.
248 * src/lyx_main.C: removed code snippets that wer commented out.
250 * src/paragraph.C: removed code snippets that were commented out.
252 * src/lyxvc.C (logClose): use static_cast
254 (viewLog): remove explicit cast to void*
255 (showLog): removed old commented code
257 * src/menus.C: use static_cast instead of C style casts. use
258 u_vdata instead of u_ldata. remove explicit cast to (long) for
259 pointers. Removed old code that was commented out.
261 * src/insets/inset.C: removed old commented func
263 * src/insets/insetref.C (InsetRef): removed old code that had been
264 commented out for a long time.
266 (escape): removed C style cast
268 * src/insets/insetlatexaccent.C (Draw): removed old commented code
270 * src/insets/insetlatex.C (Draw): removed old commented code
271 (Read): rewritten to use string
273 * src/insets/insetlabel.C (escape): removed C style cast
275 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
277 * src/insets/insetindex.C: use static_cast and u_vdata, removed
280 * src/insets/insetinclude.h: removed a couple of stupid bools
282 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
283 (Clone): remove C style cast
284 (getKeys): changed list to lst because of std::list
286 * src/insets/inseterror.C (Draw): removed som old commented code.
288 * src/insets/insetcommand.C (Draw): removed some old commented code.
290 * src/insets/insetbib.C (bibitem_cb): removed code that has been
291 commented out forever.
292 (bibitem_cb): use static_cast instead of C style cast
293 use of vdata changed to u_vdata.
295 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
297 (CloseUrlCB): use static_cast instead of C style cast.
298 (CloseUrlCB): added a fl_free form...it seemed to be missing.
300 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
301 (C_InsetInfo_CloseInfoCB): forward the ob parameter
302 (CloseInfoCB): static_cast from ob->u_vdata instead.
303 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
306 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
307 (C_InsetError_CloseErrorCB): forward the ob parameter
308 (CloseErrorCB): static_cast from ob->u_vdata instead.
310 * src/vspace.h: include LString.h since we use string in this class.
312 * src/vspace.C (lyx_advance): changed name from advance because of
313 nameclash with stl. And since we cannot use namespaces yet...I
314 used a lyx_ prefix instead. Expect this to change when we begin
317 * src/BufferView.[Ch] (BufferView::~BufferView): removed
319 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
320 and removed now defunct constructor and deconstructor.
322 * src/BufferView.h: have backstack as a object not as a pointer.
323 removed initialization from constructor. added include for BackStack
325 * development/lyx.spec.in (%build): add CFLAGS also.
327 * src/screen.C (drawFrame): removed another warning.
329 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
331 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
332 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
333 README and ANNOUNCE a bit for the next release. More work is
336 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
337 unbreakable if we are in freespacing mode (LyX-Code), but not in
340 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
342 * src/BackStack.h: fixed initialization order in constructor
344 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
346 * acinclude.m4 (VERSION): new rules for when a version is
347 development, added also a variable for prerelease.
348 (warnings): we set with_warnings=yes for prereleases
349 (lyx_opt): prereleases compile with same optimization as development
350 (CXXFLAGS): only use pedantic if we are a development version
352 * src/BufferView.C (restorePosition): don't do anything if the
355 * src/BackStack.h: added member empty, use this to test if there
356 is anything to pop...
358 1999-10-25 Juergen Vigna <jug@sad.it>
361 * forms/layout_forms.fd +
362 * forms/latexoptions.fd +
363 * lyx.fd: changed for various form resize issues
365 * src/mathed/math_panel.C +
366 * src/insets/inseterror.C +
367 * src/insets/insetinfo.C +
368 * src/insets/inseturl.C +
369 * src/insets/inseturl.h +
372 * src/PaperLayout.C +
373 * src/ParagraphExtra.C +
374 * src/TableLayout.C +
376 * src/layout_forms.C +
383 * src/menus.C: fixed various resize issues. So now forms can be
384 resized savely or not be resized at all.
386 * forms/form_url.fd +
387 * src/insets/form_url.[Ch]: added because it's cleaner and easier
390 * src/insets/Makefile.am: added files form_url.[Ch]
392 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
394 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
395 (and presumably 6.2).
397 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
398 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
399 remaining static member callbacks.
401 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
404 * src/support/lyxstring.h: declare struct Srep as friend of
405 lyxstring, since DEC cxx complains otherwise.
407 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
409 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
411 * src/LaTeX.C (run): made run_bibtex also depend on files with
413 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
414 are put into the dependency file.
416 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
417 the code has shown itself to work
418 (create_ispell_pipe): removed another warning, added a comment
421 * src/minibuffer.C (ExecutingCB): removed code that has been
422 commented out a long time
424 * src/lyxfunc.C (processKeyEvent): removed some very old commented
425 out code + a warning.
427 * src/support/lyxstring.h: comment out the three private
428 operators, when compiling with string ansi conforming compilers
431 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
433 (pixmapFromBitmapData): change type of bdata to be unsigned char *
434 (pixmapFromBitmapData): add a reinterpret_cast in the call to
437 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
440 * src/mathed/math_panel.C (create_math_panel): remove explicit
443 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
446 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
447 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
448 to XCreatePixmapFromBitmapData
449 (fl_set_bmtable_data): change the last argument to be unsigned
451 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
452 and bh to be unsigned int, remove explicit casts in call to
455 * images/arrows.xbm: made the arrays unsigned char *
456 * images/varsz.xbm: ditto
457 * images/misc.xbm: ditto
458 * images/greek.xbm: ditto
459 * images/dots.xbm: ditto
460 * images/brel.xbm: ditto
461 * images/bop.xbm: ditto
463 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
465 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
466 (LYX_PROG_CXX): added -pedantic to g++ compile options when
467 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
469 (LYX_CXX_CHEADERS): added <clocale> to the test.
471 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
473 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
475 * src/support/lyxstring.C (append): fixed something that must be a
476 bug, rep->assign was used instead of rep->append.
478 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
481 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
482 lyx insert double chars. Fix spotted by Kayvan.
484 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
486 * Fixed the tth support. I messed up with the Emacs patch apply feature
487 and omitted the changes in lyxrc.C.
489 1999-10-22 Juergen Vigna <jug@sad.it>
491 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
493 * src/lyx_cb.C (MenuInsertRef) +
494 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
495 the form cannot be resized under it limits (fixes a segfault)
497 * src/lyx.C (create_form_form_ref) +
498 * forms/lyx.fd: Changed Gravity on name input field so that it is
501 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
503 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
504 <ostream> and <istream>.
506 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
507 whether <fstream> provides the latest standard features, or if we
508 have an oldstyle library (like in egcs).
509 (LYX_CXX_STL_STRING): fix the test.
511 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
512 code on MODERN_STL_STREAM.
514 * src/support/lyxstring.h: use L{I,O}stream.h.
516 * src/support/L{I,O}stream.h: new files, designed to setup
517 correctly streams for our use
518 - includes the right header depending on STL capabilities
519 - puts std::ostream and std::endl (for LOStream.h) or
520 std::istream (LIStream.h) in toplevel namespace.
522 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
524 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
525 was a bib file that had been changed we ensure that bibtex is run.
526 (runBibTeX): enhanced to extract the names of the bib files and
527 getting their absolute path and enter them into the dep file.
528 (findtexfile): static func that is used to look for tex-files,
529 checks for absolute patchs and tries also with kpsewhich.
530 Alternative ways of finding the correct files are wanted. Will
532 (do_popen): function that runs a command using popen and returns
533 the whole output of that command in a string. Should be moved to
536 * src/DepTable.[Ch] (extchanged): new function that returns true if a
537 file with extension ext has changed.
539 * src/insets/figinset.C: added ifdef guards around the fl_free
540 code that jug commented out. Now it is commented out when
541 compiling with XForms == 0.89.
543 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
544 to lyxstring.C, and only keep a forward declaration in
545 lyxstring.h. Simplifies the header file a bit and should help a
546 bit on compile time too. Also changes to Srep will not mandate a
547 recompile of code just using string.
548 (~lyxstring): definition moved here since it uses srep.
549 (size): definition moved here since it uses srep.
551 * src/support/lyxstring.h: removed a couple of "inline" that should
554 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
556 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
559 1999-10-21 Juergen Vigna <jug@sad.it>
561 * src/table.C (SetPWidth): Just a small fix so the alignment is not
562 set to left if I just remove the width entry (or it is empty).
564 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
565 paragraph when having dummy paragraphs.
567 1999-10-20 Juergen Vigna <jug@sad.it>
569 * src/insets/figinset.C: just commented some fl_free_form calls
570 and added warnings so that this calls should be activated later
571 again. This avoids for now a segfault, but we have a memory leak!
573 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
574 'const char * argument' to 'string argument', this should
575 fix some Asserts() in lyxstring.C.
577 * src/lyxfunc.h: Removed the function argAsString(const char *)
578 as it is not used anymore.
580 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
582 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
585 * src/Literate.h: some funcs moved from public to private to make
586 interface clearer. Unneeded args removed.
588 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
590 (scanBuildLogFile): ditto
592 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
593 normal TeX Error. Still room for improvement.
595 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
597 * src/buffer.C (insertErrors): changes to make the error
598 desctription show properly.
600 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
603 * src/support/lyxstring.C (helper): changed to use
604 sizeof(object->rep->ref).
605 (operator>>): changed to use a pointer instead.
607 * src/support/lyxstring.h: changed const reference & to value_type
608 const & lets see if that helps.
610 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
612 * Makefile.am (rpmdist): fixed to have non static package and
615 * src/support/lyxstring.C: removed the compilation guards
617 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
620 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
621 conditional compile of lyxstring.Ch
623 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
624 stupid check, but it is a lot better than the bastring hack.
625 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
627 * several files: changed string::erase into string::clear. Not
630 * src/chset.C (encodeString): use a char temporary instead
632 * src/table.C (TexEndOfCell): added tostr around
633 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
634 (TexEndOfCell): ditto
635 (TexEndOfCell): ditto
636 (TexEndOfCell): ditto
637 (DocBookEndOfCell): ditto
638 (DocBookEndOfCell): ditto
639 (DocBookEndOfCell): ditto
640 (DocBookEndOfCell): ditto
642 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
644 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
646 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
647 (MenuBuildProg): added tostr around ret
648 (MenuRunChktex): added tostr around ret
649 (DocumentApplyCB): added tostr around ret
651 * src/chset.C (encodeString): added tostr around t->ic
653 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
654 (makeLaTeXFile): added tostr around tocdepth
655 (makeLaTeXFile): added tostr around ftcound - 1
657 * src/insets/insetbib.C (setCounter): added tostr around counter.
659 * src/support/lyxstring.h: added an operator+=(int) to catch more
662 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
663 (lyxstring): We DON'T allow NULL pointers.
665 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
667 * src/mathed/math_macro.C (MathMacroArgument::Write,
668 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
669 when writing them out.
671 * src/LString.C: remove, since it is not used anymore.
673 * src/support/lyxstring.C: condition the content to
674 USE_INCLUDED_STRING macro.
676 * src/mathed/math_symbols.C, src/support/lstrings.C,
677 src/support/lyxstring.C: add `using' directive to specify what
678 we need in <algorithm>. I do not think that we need to
679 conditionalize this, but any thought is appreciated.
681 * many files: change all callback functions to "C" linkage
682 functions to please strict C++ compilers like DEC cxx 6.1 in mode
683 strict_ansi. Those who were static are now global.
684 The case of callbacks which are static class members is
685 trickier, since we have to make C wrappers around them (see
686 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
687 did not finish this yet, since it defeats the purpose of
688 encapsulation, and I am not sure what the best route is.
690 1999-10-19 Juergen Vigna <jug@sad.it>
692 * src/support/lyxstring.C (lyxstring): we permit to have a null
693 pointer as assignment value and just don't assign it.
695 * src/vspace.C (nextToken): corrected this function substituting
696 find_first(_not)_of with find_last_of.
698 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
699 (TableOptCloseCB) (TableSpeCloseCB):
700 inserted fl_set_focus call for problem with fl_hide_form() in
703 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
705 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
708 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
710 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
711 LyXLex::next() and not eatline() to get its argument.
713 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
715 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
716 instead, use fstreams for io of the depfile, removed unneeded
717 functions and variables.
719 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
720 vector instead, removed all functions and variables that is not in
723 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
725 * src/buffer.C (insertErrors): use new interface to TeXError
727 * Makefile.am (rpmdist): added a rpmdist target
729 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
730 per Kayvan's instructions.
732 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
734 * src/Makefile.am: add a definition for localedir, so that locales
735 are found after installation (Kayvan)
737 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
739 * development/.cvsignore: new file.
741 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
743 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
744 C++ compiler provides wrappers for C headers and use our alternate
747 * configure.in: use LYX_CXX_CHEADERS.
749 * src/cheader/: new directory, populated with cname headers from
750 libstdc++-2.8.1. They are a bit old, but probably good enough for
751 what we want (support compilers who lack them).
753 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
754 from includes. It turns out is was stupid.
756 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
758 * lib/Makefile.am (install-data-local): forgot a ';'
759 (install-data-local): forgot a '\'
760 (libinstalldirs): needed after all. reintroduced.
762 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
764 * configure.in (AC_OUTPUT): added lyx.spec
766 * development/lyx.spec: removed file
768 * development/lyx.spec.in: new file
770 * po/*.po: merged with lyx.pot becuase of make distcheck
772 * lib/Makefile.am (dist-hook): added dist-hook so that
773 documentation files will be included when doing a make
774 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
775 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
777 more: tried to make install do the right thing, exclude CVS dirs
780 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
781 Path would fit in more nicely.
783 * all files that used to use pathstack: uses now Path instead.
784 This change was a lot easier than expected.
786 * src/support/path.h: new file
788 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
790 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
792 * src/support/lyxstring.C (getline): Default arg was given for
795 * Configure.cmd: removed file
797 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
799 * src/support/DebugStream.[Ch]: remove the explicit std:: before
800 streams classes and types, add the proper 'using' statements when
801 MODERN_STL is defined.
803 * src/debug.h: move the << operator definition after the inclusion
806 * src/support/filetools.C: include "LAssert.h", which is needed
809 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
812 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
813 include "debug.h" to define a proper ostream.
815 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
817 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
818 method to the SystemCall class which can kill a process, but it's
819 not fully implemented yet.
821 * src/*.C: Changed Systemcalls::Startscript() to startscript()
823 * src/support/FileInfo.h: Better documentation
825 * src/lyxfunc.C: Added support for buffer-export html
827 * src/menus.C: Added Export->As HTML...
829 * lib/bind/*.bind: Added short-cut for buffer-export html
831 * src/lyxrc.*: Added support for new \tth_command
833 * lib/lyxrc.example: Added stuff for new \tth_command
835 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
837 * lib/Makefile.am (IMAGES): removed images/README
838 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
839 installes in correct place. Check permisions is installed
842 * src/LaTeX.C: some no-op changes moved declaration of some
845 * src/LaTeX.h (LATEX_H): changed include guard name
847 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
849 * lib/reLyX/Makefile.am: install noweb2lyx.
851 * lib/Makefile.am: install configure.
853 * lib/reLyX/configure.in: declare a config aux dir; set package
854 name to lyx (not sure what the best solution is); generate noweb2lyx.
856 * lib/layouts/egs.layout: fix the bibliography layout.
858 1999-10-08 Jürgen Vigna <jug@sad.it>
860 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
861 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
862 it returned without continuing to search the path.
864 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
866 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
867 also fixes a bug. It is not allowed to do tricks with std::strings
868 like: string a("hei"); &a[e]; this will not give what you
869 think... Any reason for the complexity in this func?
871 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
873 * Updated README and INSTALL a bit, mostly to check that my
874 CVS rights are correctly set up.
876 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
878 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
879 does not allow '\0' chars but lyxstring and std::string does.
881 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
883 * autogen.sh (AUTOCONF): let the autogen script create the
884 POTFILES.in file too. POTFILES.in should perhaps now not be
885 included in the cvs module.
887 * some more files changed to use C++ includes instead of C ones.
889 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
891 (Reread): added tostr to nlink. buggy output otherwise.
892 (Reread): added a string() around szMode when assigning to Buffer,
893 without this I got a log of garbled info strings.
895 * acconfig.h: commented out the PTR_AS_INT macros. They should not
898 * I have added several ostream & operator<<(ostream &, some_type)
899 functions. This has been done to avoid casting and warnings when
900 outputting enums to lyxerr. This as thus eliminated a lot of
901 explicit casts and has made the code clearer. Among the enums
902 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
903 mathed enums, some font enum the Debug::type enum.
905 * src/support/lyxstring.h (clear): missing method. equivalent of
908 * all files that contained "stderr": rewrote constructs that used
909 stderr to use lyxerr instead. (except bmtable)
911 * src/support/DebugStream.h (level): and the passed t with
912 Debug::ANY to avoid spurious bits set.
914 * src/debug.h (Debug::type value): made it accept strings of the
917 * configure.in (Check for programs): Added a check for kpsewhich,
918 the latex generation will use this later to better the dicovery of
921 * src/BufferView.C (create_view): we don't need to cast this to
922 (void*) that is done automatically.
923 (WorkAreaButtonPress): removed some dead code.
925 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
927 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
928 is not overwritten when translated (David Sua'rez de Lis).
930 * lib/CREDITS: Added David Sua'rez de Lis
932 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
934 * src/bufferparams.C (BufferParams): default input encoding is now
937 * acinclude.m4 (cross_compiling): comment out macro
938 LYX_GXX_STRENGTH_REDUCE.
940 * acconfig.h: make sure that const is not defined (to empty) when
941 we are compiling C++. Remove commented out code using SIZEOF_xx
944 * configure.in : move the test for const and inline as late as
945 possible so that these C tests do not interefere with C++ ones.
946 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
949 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
951 * src/table.C (getDocBookAlign): remove bad default value for
954 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
956 (ShowFileMenu2): ditto.
958 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
961 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
963 * Most files: finished the change from the old error code to use
964 DebugStream for all lyxerr debugging. Only minor changes remain
965 (e.g. the setting of debug levels using strings instead of number)
967 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
969 * src/layout.C (Add): Changed to use compare_no_case instead of
972 * src/FontInfo.C: changed loop variable type too string::size_type.
974 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
976 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
977 set ETAGS_ARGS to --c++
979 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
981 * src/table.C (DocBookEndOfCell): commented out two unused variables
983 * src/paragraph.C: commented out four unused variables.
985 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
986 insed a if clause with type string::size_type.
988 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
991 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
993 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
994 variable, also changed loop to go from 0 to lenght + 1, instead of
995 -1 to length. This should be correct.
997 * src/LaTeX.C (scanError): use string::size_type as loop variable
1000 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1001 (l.896) since y_tmp and row was not used anyway.
1003 * src/insets/insetref.C (escape): use string::size_type as loop
1006 * src/insets/insetquotes.C (Width): use string::size_type as loop
1008 (Draw): use string::size_type as loop variable type.
1010 * src/insets/insetlatexaccent.C (checkContents): use
1011 string::size_type as loop variable type.
1013 * src/insets/insetlabel.C (escape): use string::size_type as loop
1016 * src/insets/insetinfo.C: added an extern for current_view.
1018 * src/insets/insetcommand.C (scanCommand): use string::size_type
1019 as loop variable type.
1021 * most files: removed the RCS tags. With them we had to recompile
1022 a lot of files after a simple cvs commit. Also we have never used
1023 them for anything meaningful.
1025 * most files: tags-query-replace NULL 0. As adviced several plases
1026 we now use "0" instead of "NULL" in our code.
1028 * src/support/filetools.C (SpaceLess): use string::size_type as
1031 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1033 * src/paragraph.C: fixed up some more string stuff.
1035 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1037 * src/support/filetools.h: make modestr a std::string.
1039 * src/filetools.C (GetEnv): made ch really const.
1041 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1042 made code that used these use max/min from <algorithm> instead.
1044 * changed several c library include files to their equivalent c++
1045 library include files. All is not changed yet.
1047 * created a support subdir in src, put lyxstring and lstrings
1048 there + the extra files atexit, fileblock, strerror. Created
1049 Makefile.am. edited configure.in and src/Makefile.am to use this
1050 new subdir. More files moved to support.
1052 * imported som of the functions from repository lyx, filetools
1054 * ran tags-query-replace on LString -> string, corrected the bogus
1055 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1056 is still some errors in there. This is errors where too much or
1057 too litle get deleted from strings (string::erase, string::substr,
1058 string::replace), there can also be some off by one errors, or
1059 just plain wrong use of functions from lstrings. Viewing of quotes
1062 * LyX is now running fairly well with string, but there are
1063 certainly some bugs yet (see above) also string is quite different
1064 from LString among others in that it does not allow null pointers
1065 passed in and will abort if it gets any.
1067 * Added the revtex4 files I forgot when setting up the repository.
1069 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1071 * All over: Tried to clean everything up so that only the files
1072 that we really need are included in the cvs repository.
1073 * Switched to use automake.
1074 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1075 * Install has not been checked.
1077 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1079 * po/pt.po: Three errors:
1080 l.533 and l.538 format specification error
1081 l. 402 duplicate entry, I just deleted it.