1 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
4 NULL, make sure to return an empty string (it is not possible to
7 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
11 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
13 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
14 link line, so that Irix users (for example) can set it explicitely to
17 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
18 it can be overidden at make time (static or dynamic link, for
21 * src/vc-backend.C, src/LaTeXFeatures.h,
22 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
23 statements to bring templates to global namespace.
25 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
27 * src/support/lyxstring.C (operator[] const): make it standard
30 * src/minibuffer.C (Init): changed to reflect that more
31 information is given from the lyxvc and need not be provided here.
33 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
35 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
37 * src/LyXView.C (UpdateTimerCB): use static_cast
38 (KeyPressMask_raw_callback): ditto
40 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
41 buffer_, a lot of changes because of this. currentBuffer() ->
42 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
43 also changes to other files because of this.
45 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
47 * src/vc-backend.[Ch]: new files. The backends for vc handling,
48 have no support for RCS and partial support for CVS, will be
51 * src/insets/ several files: changes because of function name
52 changes in Bufferview and LyXView.
54 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
56 * src/support/LSubstring.[Ch]: new files. These implement a
57 Substring that can be very convenient to use. i.e. is this
59 string a = "Mary had a little sheep";
60 Substring(a, "sheep") = "lamb";
61 a is now "Mary has a little lamb".
63 * src/support/LRegex.[Ch]: a regex class that can be used to pick
64 out patterns and subpatterns of strings. It is used by LSubstring
65 and also by vc-backend.C
67 * src/support/lyxstring.C: went over all the assertions used and
68 tried to correct the wrong ones and flag which of them is required
69 by the standard. some bugs found because of this. Also removed a
72 * src/support/Makefile.am (libsupport_a_SOURCES): added
73 LSubstring.[Ch] and LRegex.[Ch]
75 * src/support/FileInfo.h: have struct stat buf as an object and
76 not a pointer to one, some changes because of this.
78 * src/LaTeXFeatures.C (getTClassPreamble): also use the
79 information in layout when addint he layouts preamble to the
82 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
85 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
86 because of bug in OS/2.
88 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
90 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
91 \verbatim@font instead of \ttfamily, so that it can be redefined.
93 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
94 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
95 src/layout.h, src/text2.C: add 'using' directive to bring the
96 STL templates we need from the std:: namespace to the global one.
97 Needed by DEC cxx in strict ansi mode.
99 * src/support/LIstream.h,src/support/LOstream.h,
100 src/support/lyxstring.h,src/table.h,
101 src/lyxlookup.h: do not include <config.h> in header
102 files. This should be done in the .C files only.
104 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
108 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
110 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
111 from Kayvan to fix the tth invokation.
113 * development/lyx.spec.in: updates from Kayvan to reflect the
114 changes of file names.
116 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
118 * src/text2.C (InsertStringB): use std::copy
119 (InsertStringA): use std::copy
121 * src/bufferlist.C: use a vector to store the buffers in. This is
122 an internal change and should not affect any other thing.
124 * src/BufferView.C (waitForX): use XSync instead of the lengthy
127 * src/text.C (Fill): fix potential bug, one off bug.
129 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
131 * src/Makefile.am (lyx_main.o): add more files it depends on.
133 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
135 * src/support/lyxstring.C: use size_t for the reference count,
136 size, reserved memory and xtra.
137 (internal_compare): new private member function. Now the compare
138 functions should work for std::strings that have embedded '\0'
140 (compare): all compare functions rewritten to use
143 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
145 * src/support/lyxstring.C (compare): pass c_str()
146 (compare): pass c_str
147 (compare): pass c_str
149 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
151 * src/support/DebugStream.C: <config.h> was not included correctly.
153 * lib/configure: forgot to re-generate it :( I'll make this file
156 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
158 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
161 * src/support/lyxstring.C: some changes from length() to rep->sz.
162 avoids a function call.
164 * src/support/filetools.C (SpaceLess): yet another version of the
165 algorithm...now per Jean-Marc's suggestions.
167 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
169 * src/layout.C (less_textclass_desc): functor for use in sorting
171 (LyXTextClass::Read): sort the textclasses after reading.
173 * src/support/filetools.C (SpaceLess): new version of the
174 SpaceLess functions. What problems does this one give? Please
177 * images/banner_bw.xbm: made the arrays unsigned char *
179 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
181 * src/support/lyxstring.C (find): remove bogus assertion in the
182 two versions of find where this has not been done yet.
184 * src/support/lyxlib.h: add missing int return type to
187 * src/menus.C (ShowFileMenu): disable exporting to html if no
188 html export command is present.
190 * config/lib_configure.m4: add a test for an HTML converter. The
191 programs checked for are, in this order: tth, latex2html and
194 * lib/configure: generated from config/lib_configure.m4.
196 * src/lyxfunc.C (Dispatch): update and improve the execution of an
197 html converter. The parameters are now passed through $$FName and
198 $$OutName, instead of standard input/output.
200 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
202 * lib/lyxrc.example: update description of \html_command.
203 add "quotes" around \screen_font_xxx font setting examples to help
204 people who use fonts with spaces in their names.
206 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
208 * Distribution files: updates for v1.1.2
210 * src/support/lyxstring.C (find): remove bogus assert and return
211 npos for the same condition.
213 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
215 * added patch for OS/2 from SMiyata.
217 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
219 * src/text2.C (CutSelection): make space_wrapped a bool
220 (CutSelection): dont declare int i until we have to.
221 (alphaCounter): return a char const *.
223 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
225 * src/support/syscall.C (Systemcalls::kill):
226 src/support/filetools.C (PutEnv, PutEnvPath):
227 src/lyx_cb.C (addNewlineAndDepth):
228 src/FontInfo.C (FontInfo::resize): condition some #warning
229 directives with WITH_WARNINGS.
232 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
234 * src/layout.[Ch] + several files: access to class variables
235 limited and made accessor functions instead a lot of code changed
236 becuase of this. Also instead of returning pointers often a const
237 reference is returned instead.
239 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
241 * src/Makefile.am (dist-hook): added used to remove the CVS from
242 cheaders upon creating a dist
243 (EXTRA_DIST): added cheaders
245 * src/support/lstrings.C (tostr(char)): fix it to handle param as
246 a character not as a small integer.
248 * src/support/lyxstring.C (find): removed Assert and added i >=
249 rep->sz to the first if.
251 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
253 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
254 src/LyXView.C src/buffer.C src/bufferparams.C
255 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
256 src/text2.C src/insets/insetinclude.C:
257 lyxlayout renamed to textclasslist.
259 * src/layout.C: some lyxerr changes.
261 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
262 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
263 (LyXLayoutList): removed all traces of this class.
264 (LyXTextClass::Read): rewrote LT_STYLE
265 (LyXTextClass::hasLayout): new function
266 (LyXTextClass::GetLayout): rewritten to return an iterator + has
267 both const and nonconst version.
268 (LyXTextClass::delete_layout): new function.
269 (LyXTextClassList::Style): bug fix. do the right thing if layout
271 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
272 (LyXTextClassList::NameOfLayout): ditto
273 (LyXTextClassList::Load): ditto
275 * src/buffer.C (makeLaTeXFile): new access to layoutlist
277 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
279 * src/LyXAction.C (LookupFunc): added a workaround for sun
280 compiler, on the other hand...we don't know if the current code
281 compiles on sun at all...
283 * src/support/filetools.C (CleanupPath): subst fix
285 * src/insets/insetbib.C (delDatabase): subst fix, this looks
288 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
289 complained about this one?
291 * src/insets/insetinclude.C (Latex): subst fix
293 * src/insets/insetbib.C (getKeys): subst fix
295 * src/LyXSendto.C (SendtoApplyCB): subst fix
297 * src/lyx_main.C (init): subst fix
299 * src/layout.C (Read): subst fix
301 * src/lyx_sendfax_main.C (button_send): subst fix
303 * src/buffer.C (RoffAsciiTable): subst fix
305 * src/lyx_cb.C (MenuFax): subst fix
306 (PrintApplyCB): subst fix
308 1999-10-26 Juergen Vigna <jug@sad.it>
310 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
312 (Read): Cleaned up this code so now we read only format vestion >= 5
314 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
316 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
317 come nobody has complained about this one?
319 * src/insets/insetinclude.C (Latex): subst fix
321 * src/insets/insetbib.C (getKeys): subst fix
323 * src/lyx_main.C (init): subst fix
325 * src/layout.C (Read): subst fix
327 * src/buffer.C (RoffAsciiTable): subst fix
329 * src/lyx_cb.C (MenuFax): subst fix.
331 * src/layout.[hC] + some other files: rewrote to use
332 std::container to store textclasses and layouts in.
333 Simplified, removed a lot of code. Make all classes
334 assignable. Further simplifications and review of type
337 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
338 lastfiles to create the lastfiles partr of the menu.
340 * src/lastfiles.[Ch]: rewritten to use deque to store the
341 lastfiles in. Uses fstream for reading and writing. Simplifies
344 * src/support/syscall.C: remove explicit cast.
346 * src/BufferView.C (CursorToggleCB): removed code snippets that
348 use explicat C++ style casts instead of C style casts. also use
349 u_vdata instea of passing pointers in longs.
351 * src/PaperLayout.C: removed code snippets that were commented out.
353 * src/lyx_gui_misc.C: removed code snippets that were commented out.
355 * src/lyx_main.C: removed code snippets that wer commented out.
357 * src/paragraph.C: removed code snippets that were commented out.
359 * src/lyxvc.C (logClose): use static_cast
361 (viewLog): remove explicit cast to void*
362 (showLog): removed old commented code
364 * src/menus.C: use static_cast instead of C style casts. use
365 u_vdata instead of u_ldata. remove explicit cast to (long) for
366 pointers. Removed old code that was commented out.
368 * src/insets/inset.C: removed old commented func
370 * src/insets/insetref.C (InsetRef): removed old code that had been
371 commented out for a long time.
373 (escape): removed C style cast
375 * src/insets/insetlatexaccent.C (Draw): removed old commented code
377 * src/insets/insetlatex.C (Draw): removed old commented code
378 (Read): rewritten to use string
380 * src/insets/insetlabel.C (escape): removed C style cast
382 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
384 * src/insets/insetindex.C: use static_cast and u_vdata, removed
387 * src/insets/insetinclude.h: removed a couple of stupid bools
389 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
390 (Clone): remove C style cast
391 (getKeys): changed list to lst because of std::list
393 * src/insets/inseterror.C (Draw): removed som old commented code.
395 * src/insets/insetcommand.C (Draw): removed some old commented code.
397 * src/insets/insetbib.C (bibitem_cb): removed code that has been
398 commented out forever.
399 (bibitem_cb): use static_cast instead of C style cast
400 use of vdata changed to u_vdata.
402 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
404 (CloseUrlCB): use static_cast instead of C style cast.
405 (CloseUrlCB): added a fl_free form...it seemed to be missing.
407 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
408 (C_InsetInfo_CloseInfoCB): forward the ob parameter
409 (CloseInfoCB): static_cast from ob->u_vdata instead.
410 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
413 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
414 (C_InsetError_CloseErrorCB): forward the ob parameter
415 (CloseErrorCB): static_cast from ob->u_vdata instead.
417 * src/vspace.h: include LString.h since we use string in this class.
419 * src/vspace.C (lyx_advance): changed name from advance because of
420 nameclash with stl. And since we cannot use namespaces yet...I
421 used a lyx_ prefix instead. Expect this to change when we begin
424 * src/BufferView.[Ch] (BufferView::~BufferView): removed
426 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
427 and removed now defunct constructor and deconstructor.
429 * src/BufferView.h: have backstack as a object not as a pointer.
430 removed initialization from constructor. added include for BackStack
432 * development/lyx.spec.in (%build): add CFLAGS also.
434 * src/screen.C (drawFrame): removed another warning.
436 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
439 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
440 README and ANNOUNCE a bit for the next release. More work is
443 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
444 unbreakable if we are in freespacing mode (LyX-Code), but not in
447 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
449 * src/BackStack.h: fixed initialization order in constructor
451 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
453 * acinclude.m4 (VERSION): new rules for when a version is
454 development, added also a variable for prerelease.
455 (warnings): we set with_warnings=yes for prereleases
456 (lyx_opt): prereleases compile with same optimization as development
457 (CXXFLAGS): only use pedantic if we are a development version
459 * src/BufferView.C (restorePosition): don't do anything if the
462 * src/BackStack.h: added member empty, use this to test if there
463 is anything to pop...
465 1999-10-25 Juergen Vigna <jug@sad.it>
468 * forms/layout_forms.fd +
469 * forms/latexoptions.fd +
470 * lyx.fd: changed for various form resize issues
472 * src/mathed/math_panel.C +
473 * src/insets/inseterror.C +
474 * src/insets/insetinfo.C +
475 * src/insets/inseturl.C +
476 * src/insets/inseturl.h +
479 * src/PaperLayout.C +
480 * src/ParagraphExtra.C +
481 * src/TableLayout.C +
483 * src/layout_forms.C +
490 * src/menus.C: fixed various resize issues. So now forms can be
491 resized savely or not be resized at all.
493 * forms/form_url.fd +
494 * src/insets/form_url.[Ch]: added because it's cleaner and easier
497 * src/insets/Makefile.am: added files form_url.[Ch]
499 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
501 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
502 (and presumably 6.2).
504 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
505 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
506 remaining static member callbacks.
508 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
511 * src/support/lyxstring.h: declare struct Srep as friend of
512 lyxstring, since DEC cxx complains otherwise.
514 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
516 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
518 * src/LaTeX.C (run): made run_bibtex also depend on files with
520 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
521 are put into the dependency file.
523 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
524 the code has shown itself to work
525 (create_ispell_pipe): removed another warning, added a comment
528 * src/minibuffer.C (ExecutingCB): removed code that has been
529 commented out a long time
531 * src/lyxfunc.C (processKeyEvent): removed some very old commented
532 out code + a warning.
534 * src/support/lyxstring.h: comment out the three private
535 operators, when compiling with string ansi conforming compilers
538 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
540 (pixmapFromBitmapData): change type of bdata to be unsigned char *
541 (pixmapFromBitmapData): add a reinterpret_cast in the call to
544 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
547 * src/mathed/math_panel.C (create_math_panel): remove explicit
550 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
553 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
554 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
555 to XCreatePixmapFromBitmapData
556 (fl_set_bmtable_data): change the last argument to be unsigned
558 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
559 and bh to be unsigned int, remove explicit casts in call to
562 * images/arrows.xbm: made the arrays unsigned char *
563 * images/varsz.xbm: ditto
564 * images/misc.xbm: ditto
565 * images/greek.xbm: ditto
566 * images/dots.xbm: ditto
567 * images/brel.xbm: ditto
568 * images/bop.xbm: ditto
570 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
572 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
573 (LYX_PROG_CXX): added -pedantic to g++ compile options when
574 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
576 (LYX_CXX_CHEADERS): added <clocale> to the test.
578 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
580 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
582 * src/support/lyxstring.C (append): fixed something that must be a
583 bug, rep->assign was used instead of rep->append.
585 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
588 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
589 lyx insert double chars. Fix spotted by Kayvan.
591 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
593 * Fixed the tth support. I messed up with the Emacs patch apply feature
594 and omitted the changes in lyxrc.C.
596 1999-10-22 Juergen Vigna <jug@sad.it>
598 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
600 * src/lyx_cb.C (MenuInsertRef) +
601 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
602 the form cannot be resized under it limits (fixes a segfault)
604 * src/lyx.C (create_form_form_ref) +
605 * forms/lyx.fd: Changed Gravity on name input field so that it is
608 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
610 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
611 <ostream> and <istream>.
613 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
614 whether <fstream> provides the latest standard features, or if we
615 have an oldstyle library (like in egcs).
616 (LYX_CXX_STL_STRING): fix the test.
618 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
619 code on MODERN_STL_STREAM.
621 * src/support/lyxstring.h: use L{I,O}stream.h.
623 * src/support/L{I,O}stream.h: new files, designed to setup
624 correctly streams for our use
625 - includes the right header depending on STL capabilities
626 - puts std::ostream and std::endl (for LOStream.h) or
627 std::istream (LIStream.h) in toplevel namespace.
629 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
631 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
632 was a bib file that had been changed we ensure that bibtex is run.
633 (runBibTeX): enhanced to extract the names of the bib files and
634 getting their absolute path and enter them into the dep file.
635 (findtexfile): static func that is used to look for tex-files,
636 checks for absolute patchs and tries also with kpsewhich.
637 Alternative ways of finding the correct files are wanted. Will
639 (do_popen): function that runs a command using popen and returns
640 the whole output of that command in a string. Should be moved to
643 * src/DepTable.[Ch] (extchanged): new function that returns true if a
644 file with extension ext has changed.
646 * src/insets/figinset.C: added ifdef guards around the fl_free
647 code that jug commented out. Now it is commented out when
648 compiling with XForms == 0.89.
650 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
651 to lyxstring.C, and only keep a forward declaration in
652 lyxstring.h. Simplifies the header file a bit and should help a
653 bit on compile time too. Also changes to Srep will not mandate a
654 recompile of code just using string.
655 (~lyxstring): definition moved here since it uses srep.
656 (size): definition moved here since it uses srep.
658 * src/support/lyxstring.h: removed a couple of "inline" that should
661 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
663 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
666 1999-10-21 Juergen Vigna <jug@sad.it>
668 * src/table.C (SetPWidth): Just a small fix so the alignment is not
669 set to left if I just remove the width entry (or it is empty).
671 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
672 paragraph when having dummy paragraphs.
674 1999-10-20 Juergen Vigna <jug@sad.it>
676 * src/insets/figinset.C: just commented some fl_free_form calls
677 and added warnings so that this calls should be activated later
678 again. This avoids for now a segfault, but we have a memory leak!
680 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
681 'const char * argument' to 'string argument', this should
682 fix some Asserts() in lyxstring.C.
684 * src/lyxfunc.h: Removed the function argAsString(const char *)
685 as it is not used anymore.
687 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
689 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
692 * src/Literate.h: some funcs moved from public to private to make
693 interface clearer. Unneeded args removed.
695 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
697 (scanBuildLogFile): ditto
699 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
700 normal TeX Error. Still room for improvement.
702 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
704 * src/buffer.C (insertErrors): changes to make the error
705 desctription show properly.
707 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
710 * src/support/lyxstring.C (helper): changed to use
711 sizeof(object->rep->ref).
712 (operator>>): changed to use a pointer instead.
714 * src/support/lyxstring.h: changed const reference & to value_type
715 const & lets see if that helps.
717 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
719 * Makefile.am (rpmdist): fixed to have non static package and
722 * src/support/lyxstring.C: removed the compilation guards
724 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
727 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
728 conditional compile of lyxstring.Ch
730 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
731 stupid check, but it is a lot better than the bastring hack.
732 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
734 * several files: changed string::erase into string::clear. Not
737 * src/chset.C (encodeString): use a char temporary instead
739 * src/table.C (TexEndOfCell): added tostr around
740 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
741 (TexEndOfCell): ditto
742 (TexEndOfCell): ditto
743 (TexEndOfCell): ditto
744 (DocBookEndOfCell): ditto
745 (DocBookEndOfCell): ditto
746 (DocBookEndOfCell): ditto
747 (DocBookEndOfCell): ditto
749 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
751 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
753 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
754 (MenuBuildProg): added tostr around ret
755 (MenuRunChktex): added tostr around ret
756 (DocumentApplyCB): added tostr around ret
758 * src/chset.C (encodeString): added tostr around t->ic
760 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
761 (makeLaTeXFile): added tostr around tocdepth
762 (makeLaTeXFile): added tostr around ftcound - 1
764 * src/insets/insetbib.C (setCounter): added tostr around counter.
766 * src/support/lyxstring.h: added an operator+=(int) to catch more
769 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
770 (lyxstring): We DON'T allow NULL pointers.
772 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
774 * src/mathed/math_macro.C (MathMacroArgument::Write,
775 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
776 when writing them out.
778 * src/LString.C: remove, since it is not used anymore.
780 * src/support/lyxstring.C: condition the content to
781 USE_INCLUDED_STRING macro.
783 * src/mathed/math_symbols.C, src/support/lstrings.C,
784 src/support/lyxstring.C: add `using' directive to specify what
785 we need in <algorithm>. I do not think that we need to
786 conditionalize this, but any thought is appreciated.
788 * many files: change all callback functions to "C" linkage
789 functions to please strict C++ compilers like DEC cxx 6.1 in mode
790 strict_ansi. Those who were static are now global.
791 The case of callbacks which are static class members is
792 trickier, since we have to make C wrappers around them (see
793 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
794 did not finish this yet, since it defeats the purpose of
795 encapsulation, and I am not sure what the best route is.
797 1999-10-19 Juergen Vigna <jug@sad.it>
799 * src/support/lyxstring.C (lyxstring): we permit to have a null
800 pointer as assignment value and just don't assign it.
802 * src/vspace.C (nextToken): corrected this function substituting
803 find_first(_not)_of with find_last_of.
805 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
806 (TableOptCloseCB) (TableSpeCloseCB):
807 inserted fl_set_focus call for problem with fl_hide_form() in
810 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
812 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
815 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
817 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
818 LyXLex::next() and not eatline() to get its argument.
820 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
822 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
823 instead, use fstreams for io of the depfile, removed unneeded
824 functions and variables.
826 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
827 vector instead, removed all functions and variables that is not in
830 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
832 * src/buffer.C (insertErrors): use new interface to TeXError
834 * Makefile.am (rpmdist): added a rpmdist target
836 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
837 per Kayvan's instructions.
839 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
841 * src/Makefile.am: add a definition for localedir, so that locales
842 are found after installation (Kayvan)
844 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
846 * development/.cvsignore: new file.
848 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
850 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
851 C++ compiler provides wrappers for C headers and use our alternate
854 * configure.in: use LYX_CXX_CHEADERS.
856 * src/cheader/: new directory, populated with cname headers from
857 libstdc++-2.8.1. They are a bit old, but probably good enough for
858 what we want (support compilers who lack them).
860 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
861 from includes. It turns out is was stupid.
863 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
865 * lib/Makefile.am (install-data-local): forgot a ';'
866 (install-data-local): forgot a '\'
867 (libinstalldirs): needed after all. reintroduced.
869 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
871 * configure.in (AC_OUTPUT): added lyx.spec
873 * development/lyx.spec: removed file
875 * development/lyx.spec.in: new file
877 * po/*.po: merged with lyx.pot becuase of make distcheck
879 * lib/Makefile.am (dist-hook): added dist-hook so that
880 documentation files will be included when doing a make
881 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
882 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
884 more: tried to make install do the right thing, exclude CVS dirs
887 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
888 Path would fit in more nicely.
890 * all files that used to use pathstack: uses now Path instead.
891 This change was a lot easier than expected.
893 * src/support/path.h: new file
895 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
897 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
899 * src/support/lyxstring.C (getline): Default arg was given for
902 * Configure.cmd: removed file
904 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
906 * src/support/DebugStream.[Ch]: remove the explicit std:: before
907 streams classes and types, add the proper 'using' statements when
908 MODERN_STL is defined.
910 * src/debug.h: move the << operator definition after the inclusion
913 * src/support/filetools.C: include "LAssert.h", which is needed
916 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
919 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
920 include "debug.h" to define a proper ostream.
922 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
924 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
925 method to the SystemCall class which can kill a process, but it's
926 not fully implemented yet.
928 * src/*.C: Changed Systemcalls::Startscript() to startscript()
930 * src/support/FileInfo.h: Better documentation
932 * src/lyxfunc.C: Added support for buffer-export html
934 * src/menus.C: Added Export->As HTML...
936 * lib/bind/*.bind: Added short-cut for buffer-export html
938 * src/lyxrc.*: Added support for new \tth_command
940 * lib/lyxrc.example: Added stuff for new \tth_command
942 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
944 * lib/Makefile.am (IMAGES): removed images/README
945 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
946 installes in correct place. Check permisions is installed
949 * src/LaTeX.C: some no-op changes moved declaration of some
952 * src/LaTeX.h (LATEX_H): changed include guard name
954 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
956 * lib/reLyX/Makefile.am: install noweb2lyx.
958 * lib/Makefile.am: install configure.
960 * lib/reLyX/configure.in: declare a config aux dir; set package
961 name to lyx (not sure what the best solution is); generate noweb2lyx.
963 * lib/layouts/egs.layout: fix the bibliography layout.
965 1999-10-08 Jürgen Vigna <jug@sad.it>
967 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
968 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
969 it returned without continuing to search the path.
971 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
973 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
974 also fixes a bug. It is not allowed to do tricks with std::strings
975 like: string a("hei"); &a[e]; this will not give what you
976 think... Any reason for the complexity in this func?
978 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
980 * Updated README and INSTALL a bit, mostly to check that my
981 CVS rights are correctly set up.
983 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
985 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
986 does not allow '\0' chars but lyxstring and std::string does.
988 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
990 * autogen.sh (AUTOCONF): let the autogen script create the
991 POTFILES.in file too. POTFILES.in should perhaps now not be
992 included in the cvs module.
994 * some more files changed to use C++ includes instead of C ones.
996 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
998 (Reread): added tostr to nlink. buggy output otherwise.
999 (Reread): added a string() around szMode when assigning to Buffer,
1000 without this I got a log of garbled info strings.
1002 * acconfig.h: commented out the PTR_AS_INT macros. They should not
1005 * I have added several ostream & operator<<(ostream &, some_type)
1006 functions. This has been done to avoid casting and warnings when
1007 outputting enums to lyxerr. This as thus eliminated a lot of
1008 explicit casts and has made the code clearer. Among the enums
1009 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
1010 mathed enums, some font enum the Debug::type enum.
1012 * src/support/lyxstring.h (clear): missing method. equivalent of
1015 * all files that contained "stderr": rewrote constructs that used
1016 stderr to use lyxerr instead. (except bmtable)
1018 * src/support/DebugStream.h (level): and the passed t with
1019 Debug::ANY to avoid spurious bits set.
1021 * src/debug.h (Debug::type value): made it accept strings of the
1024 * configure.in (Check for programs): Added a check for kpsewhich,
1025 the latex generation will use this later to better the dicovery of
1028 * src/BufferView.C (create_view): we don't need to cast this to
1029 (void*) that is done automatically.
1030 (WorkAreaButtonPress): removed some dead code.
1032 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1034 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1035 is not overwritten when translated (David Sua'rez de Lis).
1037 * lib/CREDITS: Added David Sua'rez de Lis
1039 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1041 * src/bufferparams.C (BufferParams): default input encoding is now
1044 * acinclude.m4 (cross_compiling): comment out macro
1045 LYX_GXX_STRENGTH_REDUCE.
1047 * acconfig.h: make sure that const is not defined (to empty) when
1048 we are compiling C++. Remove commented out code using SIZEOF_xx
1051 * configure.in : move the test for const and inline as late as
1052 possible so that these C tests do not interefere with C++ ones.
1053 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1054 has not been proven.
1056 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1058 * src/table.C (getDocBookAlign): remove bad default value for
1061 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1063 (ShowFileMenu2): ditto.
1065 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1068 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1070 * Most files: finished the change from the old error code to use
1071 DebugStream for all lyxerr debugging. Only minor changes remain
1072 (e.g. the setting of debug levels using strings instead of number)
1074 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1076 * src/layout.C (Add): Changed to use compare_no_case instead of
1079 * src/FontInfo.C: changed loop variable type too string::size_type.
1081 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1083 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1084 set ETAGS_ARGS to --c++
1086 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1088 * src/table.C (DocBookEndOfCell): commented out two unused variables
1090 * src/paragraph.C: commented out four unused variables.
1092 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1093 insed a if clause with type string::size_type.
1095 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1098 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1100 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1101 variable, also changed loop to go from 0 to lenght + 1, instead of
1102 -1 to length. This should be correct.
1104 * src/LaTeX.C (scanError): use string::size_type as loop variable
1107 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1108 (l.896) since y_tmp and row was not used anyway.
1110 * src/insets/insetref.C (escape): use string::size_type as loop
1113 * src/insets/insetquotes.C (Width): use string::size_type as loop
1115 (Draw): use string::size_type as loop variable type.
1117 * src/insets/insetlatexaccent.C (checkContents): use
1118 string::size_type as loop variable type.
1120 * src/insets/insetlabel.C (escape): use string::size_type as loop
1123 * src/insets/insetinfo.C: added an extern for current_view.
1125 * src/insets/insetcommand.C (scanCommand): use string::size_type
1126 as loop variable type.
1128 * most files: removed the RCS tags. With them we had to recompile
1129 a lot of files after a simple cvs commit. Also we have never used
1130 them for anything meaningful.
1132 * most files: tags-query-replace NULL 0. As adviced several plases
1133 we now use "0" instead of "NULL" in our code.
1135 * src/support/filetools.C (SpaceLess): use string::size_type as
1138 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1140 * src/paragraph.C: fixed up some more string stuff.
1142 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1144 * src/support/filetools.h: make modestr a std::string.
1146 * src/filetools.C (GetEnv): made ch really const.
1148 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1149 made code that used these use max/min from <algorithm> instead.
1151 * changed several c library include files to their equivalent c++
1152 library include files. All is not changed yet.
1154 * created a support subdir in src, put lyxstring and lstrings
1155 there + the extra files atexit, fileblock, strerror. Created
1156 Makefile.am. edited configure.in and src/Makefile.am to use this
1157 new subdir. More files moved to support.
1159 * imported som of the functions from repository lyx, filetools
1161 * ran tags-query-replace on LString -> string, corrected the bogus
1162 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1163 is still some errors in there. This is errors where too much or
1164 too litle get deleted from strings (string::erase, string::substr,
1165 string::replace), there can also be some off by one errors, or
1166 just plain wrong use of functions from lstrings. Viewing of quotes
1169 * LyX is now running fairly well with string, but there are
1170 certainly some bugs yet (see above) also string is quite different
1171 from LString among others in that it does not allow null pointers
1172 passed in and will abort if it gets any.
1174 * Added the revtex4 files I forgot when setting up the repository.
1176 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1178 * All over: Tried to clean everything up so that only the files
1179 that we really need are included in the cvs repository.
1180 * Switched to use automake.
1181 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1182 * Install has not been checked.
1184 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1186 * po/pt.po: Three errors:
1187 l.533 and l.538 format specification error
1188 l. 402 duplicate entry, I just deleted it.