1 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/support/LIstream.h,src/support/LOstream.h,
4 src/support/lyxstring.h,src/table.h,
5 src/lyxlookup.h: do not include <config.h> in header
6 files. This should be done in the .C files only.
8 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
12 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
14 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
15 from Kayvan to fix the tth invokation.
17 * development/lyx.spec.in: updates from Kayvan to reflect the
18 changes of file names.
20 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
22 * src/text2.C (InsertStringB): use std::copy
23 (InsertStringA): use std::copy
25 * src/bufferlist.C: use a vector to store the buffers in. This is
26 an internal change and should not affect any other thing.
28 * src/BufferView.C (waitForX): use XSync instead of the lengthy
31 * src/text.C (Fill): fix potential bug, one off bug.
33 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
35 * src/Makefile.am (lyx_main.o): add more files it depends on.
37 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
39 * src/support/lyxstring.C: use size_t for the reference count,
40 size, reserved memory and xtra.
41 (internal_compare): new private member function. Now the compare
42 functions should work for std::strings that have embedded '\0'
44 (compare): all compare functions rewritten to use
47 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
49 * src/support/lyxstring.C (compare): pass c_str()
53 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
55 * src/support/DebugStream.C: <config.h> was not included correctly.
57 * lib/configure: forgot to re-generate it :( I'll make this file
60 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
62 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
65 * src/support/lyxstring.C: some changes from length() to rep->sz.
66 avoids a function call.
68 * src/support/filetools.C (SpaceLess): yet another version of the
69 algorithm...now per Jean-Marc's suggestions.
71 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
73 * src/layout.C (less_textclass_desc): functor for use in sorting
75 (LyXTextClass::Read): sort the textclasses after reading.
77 * src/support/filetools.C (SpaceLess): new version of the
78 SpaceLess functions. What problems does this one give? Please
81 * images/banner_bw.xbm: made the arrays unsigned char *
83 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
85 * src/support/lyxstring.C (find): remove bogus assertion in the
86 two versions of find where this has not been done yet.
88 * src/support/lyxlib.h: add missing int return type to
91 * src/menus.C (ShowFileMenu): disable exporting to html if no
92 html export command is present.
94 * config/lib_configure.m4: add a test for an HTML converter. The
95 programs checked for are, in this order: tth, latex2html and
98 * lib/configure: generated from config/lib_configure.m4.
100 * src/lyxfunc.C (Dispatch): update and improve the execution of an
101 html converter. The parameters are now passed through $$FName and
102 $$OutName, instead of standard input/output.
104 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
106 * lib/lyxrc.example: update description of \html_command.
107 add "quotes" around \screen_font_xxx font setting examples to help
108 people who use fonts with spaces in their names.
110 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
112 * Distribution files: updates for v1.1.2
114 * src/support/lyxstring.C (find): remove bogus assert and return
115 npos for the same condition.
117 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
119 * added patch for OS/2 from SMiyata.
121 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
123 * src/text2.C (CutSelection): make space_wrapped a bool
124 (CutSelection): dont declare int i until we have to.
125 (alphaCounter): return a char const *.
127 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
129 * src/support/syscall.C (Systemcalls::kill):
130 src/support/filetools.C (PutEnv, PutEnvPath):
131 src/lyx_cb.C (addNewlineAndDepth):
132 src/FontInfo.C (FontInfo::resize): condition some #warning
133 directives with WITH_WARNINGS.
136 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
138 * src/layout.[Ch] + several files: access to class variables
139 limited and made accessor functions instead a lot of code changed
140 becuase of this. Also instead of returning pointers often a const
141 reference is returned instead.
143 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
145 * src/Makefile.am (dist-hook): added used to remove the CVS from
146 cheaders upon creating a dist
147 (EXTRA_DIST): added cheaders
149 * src/support/lstrings.C (tostr(char)): fix it to handle param as
150 a character not as a small integer.
152 * src/support/lyxstring.C (find): removed Assert and added i >=
153 rep->sz to the first if.
155 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
157 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
158 src/LyXView.C src/buffer.C src/bufferparams.C
159 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
160 src/text2.C src/insets/insetinclude.C:
161 lyxlayout renamed to textclasslist.
163 * src/layout.C: some lyxerr changes.
165 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
166 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
167 (LyXLayoutList): removed all traces of this class.
168 (LyXTextClass::Read): rewrote LT_STYLE
169 (LyXTextClass::hasLayout): new function
170 (LyXTextClass::GetLayout): rewritten to return an iterator + has
171 both const and nonconst version.
172 (LyXTextClass::delete_layout): new function.
173 (LyXTextClassList::Style): bug fix. do the right thing if layout
175 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
176 (LyXTextClassList::NameOfLayout): ditto
177 (LyXTextClassList::Load): ditto
179 * src/buffer.C (makeLaTeXFile): new access to layoutlist
181 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
183 * src/LyXAction.C (LookupFunc): added a workaround for sun
184 compiler, on the other hand...we don't know if the current code
185 compiles on sun at all...
187 * src/support/filetools.C (CleanupPath): subst fix
189 * src/insets/insetbib.C (delDatabase): subst fix, this looks
192 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
193 complained about this one?
195 * src/insets/insetinclude.C (Latex): subst fix
197 * src/insets/insetbib.C (getKeys): subst fix
199 * src/LyXSendto.C (SendtoApplyCB): subst fix
201 * src/lyx_main.C (init): subst fix
203 * src/layout.C (Read): subst fix
205 * src/lyx_sendfax_main.C (button_send): subst fix
207 * src/buffer.C (RoffAsciiTable): subst fix
209 * src/lyx_cb.C (MenuFax): subst fix
210 (PrintApplyCB): subst fix
212 1999-10-26 Juergen Vigna <jug@sad.it>
214 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
216 (Read): Cleaned up this code so now we read only format vestion >= 5
218 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
220 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
221 come nobody has complained about this one?
223 * src/insets/insetinclude.C (Latex): subst fix
225 * src/insets/insetbib.C (getKeys): subst fix
227 * src/lyx_main.C (init): subst fix
229 * src/layout.C (Read): subst fix
231 * src/buffer.C (RoffAsciiTable): subst fix
233 * src/lyx_cb.C (MenuFax): subst fix.
235 * src/layout.[hC] + some other files: rewrote to use
236 std::container to store textclasses and layouts in.
237 Simplified, removed a lot of code. Make all classes
238 assignable. Further simplifications and review of type
241 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
242 lastfiles to create the lastfiles partr of the menu.
244 * src/lastfiles.[Ch]: rewritten to use deque to store the
245 lastfiles in. Uses fstream for reading and writing. Simplifies
248 * src/support/syscall.C: remove explicit cast.
250 * src/BufferView.C (CursorToggleCB): removed code snippets that
252 use explicat C++ style casts instead of C style casts. also use
253 u_vdata instea of passing pointers in longs.
255 * src/PaperLayout.C: removed code snippets that were commented out.
257 * src/lyx_gui_misc.C: removed code snippets that were commented out.
259 * src/lyx_main.C: removed code snippets that wer commented out.
261 * src/paragraph.C: removed code snippets that were commented out.
263 * src/lyxvc.C (logClose): use static_cast
265 (viewLog): remove explicit cast to void*
266 (showLog): removed old commented code
268 * src/menus.C: use static_cast instead of C style casts. use
269 u_vdata instead of u_ldata. remove explicit cast to (long) for
270 pointers. Removed old code that was commented out.
272 * src/insets/inset.C: removed old commented func
274 * src/insets/insetref.C (InsetRef): removed old code that had been
275 commented out for a long time.
277 (escape): removed C style cast
279 * src/insets/insetlatexaccent.C (Draw): removed old commented code
281 * src/insets/insetlatex.C (Draw): removed old commented code
282 (Read): rewritten to use string
284 * src/insets/insetlabel.C (escape): removed C style cast
286 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
288 * src/insets/insetindex.C: use static_cast and u_vdata, removed
291 * src/insets/insetinclude.h: removed a couple of stupid bools
293 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
294 (Clone): remove C style cast
295 (getKeys): changed list to lst because of std::list
297 * src/insets/inseterror.C (Draw): removed som old commented code.
299 * src/insets/insetcommand.C (Draw): removed some old commented code.
301 * src/insets/insetbib.C (bibitem_cb): removed code that has been
302 commented out forever.
303 (bibitem_cb): use static_cast instead of C style cast
304 use of vdata changed to u_vdata.
306 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
308 (CloseUrlCB): use static_cast instead of C style cast.
309 (CloseUrlCB): added a fl_free form...it seemed to be missing.
311 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
312 (C_InsetInfo_CloseInfoCB): forward the ob parameter
313 (CloseInfoCB): static_cast from ob->u_vdata instead.
314 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
317 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
318 (C_InsetError_CloseErrorCB): forward the ob parameter
319 (CloseErrorCB): static_cast from ob->u_vdata instead.
321 * src/vspace.h: include LString.h since we use string in this class.
323 * src/vspace.C (lyx_advance): changed name from advance because of
324 nameclash with stl. And since we cannot use namespaces yet...I
325 used a lyx_ prefix instead. Expect this to change when we begin
328 * src/BufferView.[Ch] (BufferView::~BufferView): removed
330 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
331 and removed now defunct constructor and deconstructor.
333 * src/BufferView.h: have backstack as a object not as a pointer.
334 removed initialization from constructor. added include for BackStack
336 * development/lyx.spec.in (%build): add CFLAGS also.
338 * src/screen.C (drawFrame): removed another warning.
340 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
342 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
343 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
344 README and ANNOUNCE a bit for the next release. More work is
347 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
348 unbreakable if we are in freespacing mode (LyX-Code), but not in
351 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
353 * src/BackStack.h: fixed initialization order in constructor
355 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
357 * acinclude.m4 (VERSION): new rules for when a version is
358 development, added also a variable for prerelease.
359 (warnings): we set with_warnings=yes for prereleases
360 (lyx_opt): prereleases compile with same optimization as development
361 (CXXFLAGS): only use pedantic if we are a development version
363 * src/BufferView.C (restorePosition): don't do anything if the
366 * src/BackStack.h: added member empty, use this to test if there
367 is anything to pop...
369 1999-10-25 Juergen Vigna <jug@sad.it>
372 * forms/layout_forms.fd +
373 * forms/latexoptions.fd +
374 * lyx.fd: changed for various form resize issues
376 * src/mathed/math_panel.C +
377 * src/insets/inseterror.C +
378 * src/insets/insetinfo.C +
379 * src/insets/inseturl.C +
380 * src/insets/inseturl.h +
383 * src/PaperLayout.C +
384 * src/ParagraphExtra.C +
385 * src/TableLayout.C +
387 * src/layout_forms.C +
394 * src/menus.C: fixed various resize issues. So now forms can be
395 resized savely or not be resized at all.
397 * forms/form_url.fd +
398 * src/insets/form_url.[Ch]: added because it's cleaner and easier
401 * src/insets/Makefile.am: added files form_url.[Ch]
403 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
405 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
406 (and presumably 6.2).
408 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
409 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
410 remaining static member callbacks.
412 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
415 * src/support/lyxstring.h: declare struct Srep as friend of
416 lyxstring, since DEC cxx complains otherwise.
418 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
420 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
422 * src/LaTeX.C (run): made run_bibtex also depend on files with
424 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
425 are put into the dependency file.
427 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
428 the code has shown itself to work
429 (create_ispell_pipe): removed another warning, added a comment
432 * src/minibuffer.C (ExecutingCB): removed code that has been
433 commented out a long time
435 * src/lyxfunc.C (processKeyEvent): removed some very old commented
436 out code + a warning.
438 * src/support/lyxstring.h: comment out the three private
439 operators, when compiling with string ansi conforming compilers
442 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
444 (pixmapFromBitmapData): change type of bdata to be unsigned char *
445 (pixmapFromBitmapData): add a reinterpret_cast in the call to
448 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
451 * src/mathed/math_panel.C (create_math_panel): remove explicit
454 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
457 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
458 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
459 to XCreatePixmapFromBitmapData
460 (fl_set_bmtable_data): change the last argument to be unsigned
462 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
463 and bh to be unsigned int, remove explicit casts in call to
466 * images/arrows.xbm: made the arrays unsigned char *
467 * images/varsz.xbm: ditto
468 * images/misc.xbm: ditto
469 * images/greek.xbm: ditto
470 * images/dots.xbm: ditto
471 * images/brel.xbm: ditto
472 * images/bop.xbm: ditto
474 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
476 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
477 (LYX_PROG_CXX): added -pedantic to g++ compile options when
478 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
480 (LYX_CXX_CHEADERS): added <clocale> to the test.
482 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
484 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
486 * src/support/lyxstring.C (append): fixed something that must be a
487 bug, rep->assign was used instead of rep->append.
489 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
492 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
493 lyx insert double chars. Fix spotted by Kayvan.
495 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
497 * Fixed the tth support. I messed up with the Emacs patch apply feature
498 and omitted the changes in lyxrc.C.
500 1999-10-22 Juergen Vigna <jug@sad.it>
502 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
504 * src/lyx_cb.C (MenuInsertRef) +
505 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
506 the form cannot be resized under it limits (fixes a segfault)
508 * src/lyx.C (create_form_form_ref) +
509 * forms/lyx.fd: Changed Gravity on name input field so that it is
512 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
514 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
515 <ostream> and <istream>.
517 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
518 whether <fstream> provides the latest standard features, or if we
519 have an oldstyle library (like in egcs).
520 (LYX_CXX_STL_STRING): fix the test.
522 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
523 code on MODERN_STL_STREAM.
525 * src/support/lyxstring.h: use L{I,O}stream.h.
527 * src/support/L{I,O}stream.h: new files, designed to setup
528 correctly streams for our use
529 - includes the right header depending on STL capabilities
530 - puts std::ostream and std::endl (for LOStream.h) or
531 std::istream (LIStream.h) in toplevel namespace.
533 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
535 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
536 was a bib file that had been changed we ensure that bibtex is run.
537 (runBibTeX): enhanced to extract the names of the bib files and
538 getting their absolute path and enter them into the dep file.
539 (findtexfile): static func that is used to look for tex-files,
540 checks for absolute patchs and tries also with kpsewhich.
541 Alternative ways of finding the correct files are wanted. Will
543 (do_popen): function that runs a command using popen and returns
544 the whole output of that command in a string. Should be moved to
547 * src/DepTable.[Ch] (extchanged): new function that returns true if a
548 file with extension ext has changed.
550 * src/insets/figinset.C: added ifdef guards around the fl_free
551 code that jug commented out. Now it is commented out when
552 compiling with XForms == 0.89.
554 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
555 to lyxstring.C, and only keep a forward declaration in
556 lyxstring.h. Simplifies the header file a bit and should help a
557 bit on compile time too. Also changes to Srep will not mandate a
558 recompile of code just using string.
559 (~lyxstring): definition moved here since it uses srep.
560 (size): definition moved here since it uses srep.
562 * src/support/lyxstring.h: removed a couple of "inline" that should
565 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
567 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
570 1999-10-21 Juergen Vigna <jug@sad.it>
572 * src/table.C (SetPWidth): Just a small fix so the alignment is not
573 set to left if I just remove the width entry (or it is empty).
575 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
576 paragraph when having dummy paragraphs.
578 1999-10-20 Juergen Vigna <jug@sad.it>
580 * src/insets/figinset.C: just commented some fl_free_form calls
581 and added warnings so that this calls should be activated later
582 again. This avoids for now a segfault, but we have a memory leak!
584 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
585 'const char * argument' to 'string argument', this should
586 fix some Asserts() in lyxstring.C.
588 * src/lyxfunc.h: Removed the function argAsString(const char *)
589 as it is not used anymore.
591 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
593 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
596 * src/Literate.h: some funcs moved from public to private to make
597 interface clearer. Unneeded args removed.
599 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
601 (scanBuildLogFile): ditto
603 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
604 normal TeX Error. Still room for improvement.
606 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
608 * src/buffer.C (insertErrors): changes to make the error
609 desctription show properly.
611 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
614 * src/support/lyxstring.C (helper): changed to use
615 sizeof(object->rep->ref).
616 (operator>>): changed to use a pointer instead.
618 * src/support/lyxstring.h: changed const reference & to value_type
619 const & lets see if that helps.
621 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
623 * Makefile.am (rpmdist): fixed to have non static package and
626 * src/support/lyxstring.C: removed the compilation guards
628 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
631 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
632 conditional compile of lyxstring.Ch
634 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
635 stupid check, but it is a lot better than the bastring hack.
636 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
638 * several files: changed string::erase into string::clear. Not
641 * src/chset.C (encodeString): use a char temporary instead
643 * src/table.C (TexEndOfCell): added tostr around
644 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
645 (TexEndOfCell): ditto
646 (TexEndOfCell): ditto
647 (TexEndOfCell): ditto
648 (DocBookEndOfCell): ditto
649 (DocBookEndOfCell): ditto
650 (DocBookEndOfCell): ditto
651 (DocBookEndOfCell): ditto
653 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
655 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
657 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
658 (MenuBuildProg): added tostr around ret
659 (MenuRunChktex): added tostr around ret
660 (DocumentApplyCB): added tostr around ret
662 * src/chset.C (encodeString): added tostr around t->ic
664 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
665 (makeLaTeXFile): added tostr around tocdepth
666 (makeLaTeXFile): added tostr around ftcound - 1
668 * src/insets/insetbib.C (setCounter): added tostr around counter.
670 * src/support/lyxstring.h: added an operator+=(int) to catch more
673 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
674 (lyxstring): We DON'T allow NULL pointers.
676 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
678 * src/mathed/math_macro.C (MathMacroArgument::Write,
679 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
680 when writing them out.
682 * src/LString.C: remove, since it is not used anymore.
684 * src/support/lyxstring.C: condition the content to
685 USE_INCLUDED_STRING macro.
687 * src/mathed/math_symbols.C, src/support/lstrings.C,
688 src/support/lyxstring.C: add `using' directive to specify what
689 we need in <algorithm>. I do not think that we need to
690 conditionalize this, but any thought is appreciated.
692 * many files: change all callback functions to "C" linkage
693 functions to please strict C++ compilers like DEC cxx 6.1 in mode
694 strict_ansi. Those who were static are now global.
695 The case of callbacks which are static class members is
696 trickier, since we have to make C wrappers around them (see
697 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
698 did not finish this yet, since it defeats the purpose of
699 encapsulation, and I am not sure what the best route is.
701 1999-10-19 Juergen Vigna <jug@sad.it>
703 * src/support/lyxstring.C (lyxstring): we permit to have a null
704 pointer as assignment value and just don't assign it.
706 * src/vspace.C (nextToken): corrected this function substituting
707 find_first(_not)_of with find_last_of.
709 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
710 (TableOptCloseCB) (TableSpeCloseCB):
711 inserted fl_set_focus call for problem with fl_hide_form() in
714 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
716 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
719 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
721 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
722 LyXLex::next() and not eatline() to get its argument.
724 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
726 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
727 instead, use fstreams for io of the depfile, removed unneeded
728 functions and variables.
730 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
731 vector instead, removed all functions and variables that is not in
734 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
736 * src/buffer.C (insertErrors): use new interface to TeXError
738 * Makefile.am (rpmdist): added a rpmdist target
740 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
741 per Kayvan's instructions.
743 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
745 * src/Makefile.am: add a definition for localedir, so that locales
746 are found after installation (Kayvan)
748 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
750 * development/.cvsignore: new file.
752 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
754 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
755 C++ compiler provides wrappers for C headers and use our alternate
758 * configure.in: use LYX_CXX_CHEADERS.
760 * src/cheader/: new directory, populated with cname headers from
761 libstdc++-2.8.1. They are a bit old, but probably good enough for
762 what we want (support compilers who lack them).
764 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
765 from includes. It turns out is was stupid.
767 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
769 * lib/Makefile.am (install-data-local): forgot a ';'
770 (install-data-local): forgot a '\'
771 (libinstalldirs): needed after all. reintroduced.
773 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
775 * configure.in (AC_OUTPUT): added lyx.spec
777 * development/lyx.spec: removed file
779 * development/lyx.spec.in: new file
781 * po/*.po: merged with lyx.pot becuase of make distcheck
783 * lib/Makefile.am (dist-hook): added dist-hook so that
784 documentation files will be included when doing a make
785 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
786 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
788 more: tried to make install do the right thing, exclude CVS dirs
791 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
792 Path would fit in more nicely.
794 * all files that used to use pathstack: uses now Path instead.
795 This change was a lot easier than expected.
797 * src/support/path.h: new file
799 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
801 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
803 * src/support/lyxstring.C (getline): Default arg was given for
806 * Configure.cmd: removed file
808 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
810 * src/support/DebugStream.[Ch]: remove the explicit std:: before
811 streams classes and types, add the proper 'using' statements when
812 MODERN_STL is defined.
814 * src/debug.h: move the << operator definition after the inclusion
817 * src/support/filetools.C: include "LAssert.h", which is needed
820 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
823 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
824 include "debug.h" to define a proper ostream.
826 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
828 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
829 method to the SystemCall class which can kill a process, but it's
830 not fully implemented yet.
832 * src/*.C: Changed Systemcalls::Startscript() to startscript()
834 * src/support/FileInfo.h: Better documentation
836 * src/lyxfunc.C: Added support for buffer-export html
838 * src/menus.C: Added Export->As HTML...
840 * lib/bind/*.bind: Added short-cut for buffer-export html
842 * src/lyxrc.*: Added support for new \tth_command
844 * lib/lyxrc.example: Added stuff for new \tth_command
846 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
848 * lib/Makefile.am (IMAGES): removed images/README
849 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
850 installes in correct place. Check permisions is installed
853 * src/LaTeX.C: some no-op changes moved declaration of some
856 * src/LaTeX.h (LATEX_H): changed include guard name
858 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
860 * lib/reLyX/Makefile.am: install noweb2lyx.
862 * lib/Makefile.am: install configure.
864 * lib/reLyX/configure.in: declare a config aux dir; set package
865 name to lyx (not sure what the best solution is); generate noweb2lyx.
867 * lib/layouts/egs.layout: fix the bibliography layout.
869 1999-10-08 Jürgen Vigna <jug@sad.it>
871 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
872 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
873 it returned without continuing to search the path.
875 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
877 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
878 also fixes a bug. It is not allowed to do tricks with std::strings
879 like: string a("hei"); &a[e]; this will not give what you
880 think... Any reason for the complexity in this func?
882 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
884 * Updated README and INSTALL a bit, mostly to check that my
885 CVS rights are correctly set up.
887 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
889 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
890 does not allow '\0' chars but lyxstring and std::string does.
892 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
894 * autogen.sh (AUTOCONF): let the autogen script create the
895 POTFILES.in file too. POTFILES.in should perhaps now not be
896 included in the cvs module.
898 * some more files changed to use C++ includes instead of C ones.
900 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
902 (Reread): added tostr to nlink. buggy output otherwise.
903 (Reread): added a string() around szMode when assigning to Buffer,
904 without this I got a log of garbled info strings.
906 * acconfig.h: commented out the PTR_AS_INT macros. They should not
909 * I have added several ostream & operator<<(ostream &, some_type)
910 functions. This has been done to avoid casting and warnings when
911 outputting enums to lyxerr. This as thus eliminated a lot of
912 explicit casts and has made the code clearer. Among the enums
913 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
914 mathed enums, some font enum the Debug::type enum.
916 * src/support/lyxstring.h (clear): missing method. equivalent of
919 * all files that contained "stderr": rewrote constructs that used
920 stderr to use lyxerr instead. (except bmtable)
922 * src/support/DebugStream.h (level): and the passed t with
923 Debug::ANY to avoid spurious bits set.
925 * src/debug.h (Debug::type value): made it accept strings of the
928 * configure.in (Check for programs): Added a check for kpsewhich,
929 the latex generation will use this later to better the dicovery of
932 * src/BufferView.C (create_view): we don't need to cast this to
933 (void*) that is done automatically.
934 (WorkAreaButtonPress): removed some dead code.
936 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
938 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
939 is not overwritten when translated (David Sua'rez de Lis).
941 * lib/CREDITS: Added David Sua'rez de Lis
943 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
945 * src/bufferparams.C (BufferParams): default input encoding is now
948 * acinclude.m4 (cross_compiling): comment out macro
949 LYX_GXX_STRENGTH_REDUCE.
951 * acconfig.h: make sure that const is not defined (to empty) when
952 we are compiling C++. Remove commented out code using SIZEOF_xx
955 * configure.in : move the test for const and inline as late as
956 possible so that these C tests do not interefere with C++ ones.
957 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
960 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
962 * src/table.C (getDocBookAlign): remove bad default value for
965 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
967 (ShowFileMenu2): ditto.
969 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
972 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
974 * Most files: finished the change from the old error code to use
975 DebugStream for all lyxerr debugging. Only minor changes remain
976 (e.g. the setting of debug levels using strings instead of number)
978 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
980 * src/layout.C (Add): Changed to use compare_no_case instead of
983 * src/FontInfo.C: changed loop variable type too string::size_type.
985 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
987 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
988 set ETAGS_ARGS to --c++
990 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
992 * src/table.C (DocBookEndOfCell): commented out two unused variables
994 * src/paragraph.C: commented out four unused variables.
996 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
997 insed a if clause with type string::size_type.
999 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1002 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1004 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1005 variable, also changed loop to go from 0 to lenght + 1, instead of
1006 -1 to length. This should be correct.
1008 * src/LaTeX.C (scanError): use string::size_type as loop variable
1011 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1012 (l.896) since y_tmp and row was not used anyway.
1014 * src/insets/insetref.C (escape): use string::size_type as loop
1017 * src/insets/insetquotes.C (Width): use string::size_type as loop
1019 (Draw): use string::size_type as loop variable type.
1021 * src/insets/insetlatexaccent.C (checkContents): use
1022 string::size_type as loop variable type.
1024 * src/insets/insetlabel.C (escape): use string::size_type as loop
1027 * src/insets/insetinfo.C: added an extern for current_view.
1029 * src/insets/insetcommand.C (scanCommand): use string::size_type
1030 as loop variable type.
1032 * most files: removed the RCS tags. With them we had to recompile
1033 a lot of files after a simple cvs commit. Also we have never used
1034 them for anything meaningful.
1036 * most files: tags-query-replace NULL 0. As adviced several plases
1037 we now use "0" instead of "NULL" in our code.
1039 * src/support/filetools.C (SpaceLess): use string::size_type as
1042 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1044 * src/paragraph.C: fixed up some more string stuff.
1046 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1048 * src/support/filetools.h: make modestr a std::string.
1050 * src/filetools.C (GetEnv): made ch really const.
1052 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1053 made code that used these use max/min from <algorithm> instead.
1055 * changed several c library include files to their equivalent c++
1056 library include files. All is not changed yet.
1058 * created a support subdir in src, put lyxstring and lstrings
1059 there + the extra files atexit, fileblock, strerror. Created
1060 Makefile.am. edited configure.in and src/Makefile.am to use this
1061 new subdir. More files moved to support.
1063 * imported som of the functions from repository lyx, filetools
1065 * ran tags-query-replace on LString -> string, corrected the bogus
1066 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1067 is still some errors in there. This is errors where too much or
1068 too litle get deleted from strings (string::erase, string::substr,
1069 string::replace), there can also be some off by one errors, or
1070 just plain wrong use of functions from lstrings. Viewing of quotes
1073 * LyX is now running fairly well with string, but there are
1074 certainly some bugs yet (see above) also string is quite different
1075 from LString among others in that it does not allow null pointers
1076 passed in and will abort if it gets any.
1078 * Added the revtex4 files I forgot when setting up the repository.
1080 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1082 * All over: Tried to clean everything up so that only the files
1083 that we really need are included in the cvs repository.
1084 * Switched to use automake.
1085 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1086 * Install has not been checked.
1088 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1090 * po/pt.po: Three errors:
1091 l.533 and l.538 format specification error
1092 l. 402 duplicate entry, I just deleted it.