1 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
4 \verbatim@font instead of \ttfamily, so that it can be redefined.
6 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
7 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
8 src/layout.h, src/text2.C: add 'using' directive to bring the
9 STL templates we need from the std:: namespace to the global one.
10 Needed by DEC cxx in strict ansi mode.
12 * src/support/LIstream.h,src/support/LOstream.h,
13 src/support/lyxstring.h,src/table.h,
14 src/lyxlookup.h: do not include <config.h> in header
15 files. This should be done in the .C files only.
17 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
21 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
23 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
24 from Kayvan to fix the tth invokation.
26 * development/lyx.spec.in: updates from Kayvan to reflect the
27 changes of file names.
29 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
31 * src/text2.C (InsertStringB): use std::copy
32 (InsertStringA): use std::copy
34 * src/bufferlist.C: use a vector to store the buffers in. This is
35 an internal change and should not affect any other thing.
37 * src/BufferView.C (waitForX): use XSync instead of the lengthy
40 * src/text.C (Fill): fix potential bug, one off bug.
42 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
44 * src/Makefile.am (lyx_main.o): add more files it depends on.
46 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
48 * src/support/lyxstring.C: use size_t for the reference count,
49 size, reserved memory and xtra.
50 (internal_compare): new private member function. Now the compare
51 functions should work for std::strings that have embedded '\0'
53 (compare): all compare functions rewritten to use
56 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
58 * src/support/lyxstring.C (compare): pass c_str()
62 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
64 * src/support/DebugStream.C: <config.h> was not included correctly.
66 * lib/configure: forgot to re-generate it :( I'll make this file
69 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
71 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
74 * src/support/lyxstring.C: some changes from length() to rep->sz.
75 avoids a function call.
77 * src/support/filetools.C (SpaceLess): yet another version of the
78 algorithm...now per Jean-Marc's suggestions.
80 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
82 * src/layout.C (less_textclass_desc): functor for use in sorting
84 (LyXTextClass::Read): sort the textclasses after reading.
86 * src/support/filetools.C (SpaceLess): new version of the
87 SpaceLess functions. What problems does this one give? Please
90 * images/banner_bw.xbm: made the arrays unsigned char *
92 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
94 * src/support/lyxstring.C (find): remove bogus assertion in the
95 two versions of find where this has not been done yet.
97 * src/support/lyxlib.h: add missing int return type to
100 * src/menus.C (ShowFileMenu): disable exporting to html if no
101 html export command is present.
103 * config/lib_configure.m4: add a test for an HTML converter. The
104 programs checked for are, in this order: tth, latex2html and
107 * lib/configure: generated from config/lib_configure.m4.
109 * src/lyxfunc.C (Dispatch): update and improve the execution of an
110 html converter. The parameters are now passed through $$FName and
111 $$OutName, instead of standard input/output.
113 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
115 * lib/lyxrc.example: update description of \html_command.
116 add "quotes" around \screen_font_xxx font setting examples to help
117 people who use fonts with spaces in their names.
119 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
121 * Distribution files: updates for v1.1.2
123 * src/support/lyxstring.C (find): remove bogus assert and return
124 npos for the same condition.
126 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
128 * added patch for OS/2 from SMiyata.
130 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
132 * src/text2.C (CutSelection): make space_wrapped a bool
133 (CutSelection): dont declare int i until we have to.
134 (alphaCounter): return a char const *.
136 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
138 * src/support/syscall.C (Systemcalls::kill):
139 src/support/filetools.C (PutEnv, PutEnvPath):
140 src/lyx_cb.C (addNewlineAndDepth):
141 src/FontInfo.C (FontInfo::resize): condition some #warning
142 directives with WITH_WARNINGS.
145 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
147 * src/layout.[Ch] + several files: access to class variables
148 limited and made accessor functions instead a lot of code changed
149 becuase of this. Also instead of returning pointers often a const
150 reference is returned instead.
152 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
154 * src/Makefile.am (dist-hook): added used to remove the CVS from
155 cheaders upon creating a dist
156 (EXTRA_DIST): added cheaders
158 * src/support/lstrings.C (tostr(char)): fix it to handle param as
159 a character not as a small integer.
161 * src/support/lyxstring.C (find): removed Assert and added i >=
162 rep->sz to the first if.
164 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
166 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
167 src/LyXView.C src/buffer.C src/bufferparams.C
168 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
169 src/text2.C src/insets/insetinclude.C:
170 lyxlayout renamed to textclasslist.
172 * src/layout.C: some lyxerr changes.
174 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
175 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
176 (LyXLayoutList): removed all traces of this class.
177 (LyXTextClass::Read): rewrote LT_STYLE
178 (LyXTextClass::hasLayout): new function
179 (LyXTextClass::GetLayout): rewritten to return an iterator + has
180 both const and nonconst version.
181 (LyXTextClass::delete_layout): new function.
182 (LyXTextClassList::Style): bug fix. do the right thing if layout
184 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
185 (LyXTextClassList::NameOfLayout): ditto
186 (LyXTextClassList::Load): ditto
188 * src/buffer.C (makeLaTeXFile): new access to layoutlist
190 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
192 * src/LyXAction.C (LookupFunc): added a workaround for sun
193 compiler, on the other hand...we don't know if the current code
194 compiles on sun at all...
196 * src/support/filetools.C (CleanupPath): subst fix
198 * src/insets/insetbib.C (delDatabase): subst fix, this looks
201 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
202 complained about this one?
204 * src/insets/insetinclude.C (Latex): subst fix
206 * src/insets/insetbib.C (getKeys): subst fix
208 * src/LyXSendto.C (SendtoApplyCB): subst fix
210 * src/lyx_main.C (init): subst fix
212 * src/layout.C (Read): subst fix
214 * src/lyx_sendfax_main.C (button_send): subst fix
216 * src/buffer.C (RoffAsciiTable): subst fix
218 * src/lyx_cb.C (MenuFax): subst fix
219 (PrintApplyCB): subst fix
221 1999-10-26 Juergen Vigna <jug@sad.it>
223 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
225 (Read): Cleaned up this code so now we read only format vestion >= 5
227 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
229 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
230 come nobody has complained about this one?
232 * src/insets/insetinclude.C (Latex): subst fix
234 * src/insets/insetbib.C (getKeys): subst fix
236 * src/lyx_main.C (init): subst fix
238 * src/layout.C (Read): subst fix
240 * src/buffer.C (RoffAsciiTable): subst fix
242 * src/lyx_cb.C (MenuFax): subst fix.
244 * src/layout.[hC] + some other files: rewrote to use
245 std::container to store textclasses and layouts in.
246 Simplified, removed a lot of code. Make all classes
247 assignable. Further simplifications and review of type
250 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
251 lastfiles to create the lastfiles partr of the menu.
253 * src/lastfiles.[Ch]: rewritten to use deque to store the
254 lastfiles in. Uses fstream for reading and writing. Simplifies
257 * src/support/syscall.C: remove explicit cast.
259 * src/BufferView.C (CursorToggleCB): removed code snippets that
261 use explicat C++ style casts instead of C style casts. also use
262 u_vdata instea of passing pointers in longs.
264 * src/PaperLayout.C: removed code snippets that were commented out.
266 * src/lyx_gui_misc.C: removed code snippets that were commented out.
268 * src/lyx_main.C: removed code snippets that wer commented out.
270 * src/paragraph.C: removed code snippets that were commented out.
272 * src/lyxvc.C (logClose): use static_cast
274 (viewLog): remove explicit cast to void*
275 (showLog): removed old commented code
277 * src/menus.C: use static_cast instead of C style casts. use
278 u_vdata instead of u_ldata. remove explicit cast to (long) for
279 pointers. Removed old code that was commented out.
281 * src/insets/inset.C: removed old commented func
283 * src/insets/insetref.C (InsetRef): removed old code that had been
284 commented out for a long time.
286 (escape): removed C style cast
288 * src/insets/insetlatexaccent.C (Draw): removed old commented code
290 * src/insets/insetlatex.C (Draw): removed old commented code
291 (Read): rewritten to use string
293 * src/insets/insetlabel.C (escape): removed C style cast
295 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
297 * src/insets/insetindex.C: use static_cast and u_vdata, removed
300 * src/insets/insetinclude.h: removed a couple of stupid bools
302 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
303 (Clone): remove C style cast
304 (getKeys): changed list to lst because of std::list
306 * src/insets/inseterror.C (Draw): removed som old commented code.
308 * src/insets/insetcommand.C (Draw): removed some old commented code.
310 * src/insets/insetbib.C (bibitem_cb): removed code that has been
311 commented out forever.
312 (bibitem_cb): use static_cast instead of C style cast
313 use of vdata changed to u_vdata.
315 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
317 (CloseUrlCB): use static_cast instead of C style cast.
318 (CloseUrlCB): added a fl_free form...it seemed to be missing.
320 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
321 (C_InsetInfo_CloseInfoCB): forward the ob parameter
322 (CloseInfoCB): static_cast from ob->u_vdata instead.
323 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
326 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
327 (C_InsetError_CloseErrorCB): forward the ob parameter
328 (CloseErrorCB): static_cast from ob->u_vdata instead.
330 * src/vspace.h: include LString.h since we use string in this class.
332 * src/vspace.C (lyx_advance): changed name from advance because of
333 nameclash with stl. And since we cannot use namespaces yet...I
334 used a lyx_ prefix instead. Expect this to change when we begin
337 * src/BufferView.[Ch] (BufferView::~BufferView): removed
339 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
340 and removed now defunct constructor and deconstructor.
342 * src/BufferView.h: have backstack as a object not as a pointer.
343 removed initialization from constructor. added include for BackStack
345 * development/lyx.spec.in (%build): add CFLAGS also.
347 * src/screen.C (drawFrame): removed another warning.
349 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
351 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
352 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
353 README and ANNOUNCE a bit for the next release. More work is
356 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
357 unbreakable if we are in freespacing mode (LyX-Code), but not in
360 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
362 * src/BackStack.h: fixed initialization order in constructor
364 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
366 * acinclude.m4 (VERSION): new rules for when a version is
367 development, added also a variable for prerelease.
368 (warnings): we set with_warnings=yes for prereleases
369 (lyx_opt): prereleases compile with same optimization as development
370 (CXXFLAGS): only use pedantic if we are a development version
372 * src/BufferView.C (restorePosition): don't do anything if the
375 * src/BackStack.h: added member empty, use this to test if there
376 is anything to pop...
378 1999-10-25 Juergen Vigna <jug@sad.it>
381 * forms/layout_forms.fd +
382 * forms/latexoptions.fd +
383 * lyx.fd: changed for various form resize issues
385 * src/mathed/math_panel.C +
386 * src/insets/inseterror.C +
387 * src/insets/insetinfo.C +
388 * src/insets/inseturl.C +
389 * src/insets/inseturl.h +
392 * src/PaperLayout.C +
393 * src/ParagraphExtra.C +
394 * src/TableLayout.C +
396 * src/layout_forms.C +
403 * src/menus.C: fixed various resize issues. So now forms can be
404 resized savely or not be resized at all.
406 * forms/form_url.fd +
407 * src/insets/form_url.[Ch]: added because it's cleaner and easier
410 * src/insets/Makefile.am: added files form_url.[Ch]
412 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
414 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
415 (and presumably 6.2).
417 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
418 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
419 remaining static member callbacks.
421 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
424 * src/support/lyxstring.h: declare struct Srep as friend of
425 lyxstring, since DEC cxx complains otherwise.
427 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
429 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
431 * src/LaTeX.C (run): made run_bibtex also depend on files with
433 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
434 are put into the dependency file.
436 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
437 the code has shown itself to work
438 (create_ispell_pipe): removed another warning, added a comment
441 * src/minibuffer.C (ExecutingCB): removed code that has been
442 commented out a long time
444 * src/lyxfunc.C (processKeyEvent): removed some very old commented
445 out code + a warning.
447 * src/support/lyxstring.h: comment out the three private
448 operators, when compiling with string ansi conforming compilers
451 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
453 (pixmapFromBitmapData): change type of bdata to be unsigned char *
454 (pixmapFromBitmapData): add a reinterpret_cast in the call to
457 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
460 * src/mathed/math_panel.C (create_math_panel): remove explicit
463 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
466 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
467 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
468 to XCreatePixmapFromBitmapData
469 (fl_set_bmtable_data): change the last argument to be unsigned
471 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
472 and bh to be unsigned int, remove explicit casts in call to
475 * images/arrows.xbm: made the arrays unsigned char *
476 * images/varsz.xbm: ditto
477 * images/misc.xbm: ditto
478 * images/greek.xbm: ditto
479 * images/dots.xbm: ditto
480 * images/brel.xbm: ditto
481 * images/bop.xbm: ditto
483 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
485 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
486 (LYX_PROG_CXX): added -pedantic to g++ compile options when
487 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
489 (LYX_CXX_CHEADERS): added <clocale> to the test.
491 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
493 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
495 * src/support/lyxstring.C (append): fixed something that must be a
496 bug, rep->assign was used instead of rep->append.
498 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
501 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
502 lyx insert double chars. Fix spotted by Kayvan.
504 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
506 * Fixed the tth support. I messed up with the Emacs patch apply feature
507 and omitted the changes in lyxrc.C.
509 1999-10-22 Juergen Vigna <jug@sad.it>
511 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
513 * src/lyx_cb.C (MenuInsertRef) +
514 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
515 the form cannot be resized under it limits (fixes a segfault)
517 * src/lyx.C (create_form_form_ref) +
518 * forms/lyx.fd: Changed Gravity on name input field so that it is
521 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
523 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
524 <ostream> and <istream>.
526 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
527 whether <fstream> provides the latest standard features, or if we
528 have an oldstyle library (like in egcs).
529 (LYX_CXX_STL_STRING): fix the test.
531 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
532 code on MODERN_STL_STREAM.
534 * src/support/lyxstring.h: use L{I,O}stream.h.
536 * src/support/L{I,O}stream.h: new files, designed to setup
537 correctly streams for our use
538 - includes the right header depending on STL capabilities
539 - puts std::ostream and std::endl (for LOStream.h) or
540 std::istream (LIStream.h) in toplevel namespace.
542 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
544 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
545 was a bib file that had been changed we ensure that bibtex is run.
546 (runBibTeX): enhanced to extract the names of the bib files and
547 getting their absolute path and enter them into the dep file.
548 (findtexfile): static func that is used to look for tex-files,
549 checks for absolute patchs and tries also with kpsewhich.
550 Alternative ways of finding the correct files are wanted. Will
552 (do_popen): function that runs a command using popen and returns
553 the whole output of that command in a string. Should be moved to
556 * src/DepTable.[Ch] (extchanged): new function that returns true if a
557 file with extension ext has changed.
559 * src/insets/figinset.C: added ifdef guards around the fl_free
560 code that jug commented out. Now it is commented out when
561 compiling with XForms == 0.89.
563 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
564 to lyxstring.C, and only keep a forward declaration in
565 lyxstring.h. Simplifies the header file a bit and should help a
566 bit on compile time too. Also changes to Srep will not mandate a
567 recompile of code just using string.
568 (~lyxstring): definition moved here since it uses srep.
569 (size): definition moved here since it uses srep.
571 * src/support/lyxstring.h: removed a couple of "inline" that should
574 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
576 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
579 1999-10-21 Juergen Vigna <jug@sad.it>
581 * src/table.C (SetPWidth): Just a small fix so the alignment is not
582 set to left if I just remove the width entry (or it is empty).
584 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
585 paragraph when having dummy paragraphs.
587 1999-10-20 Juergen Vigna <jug@sad.it>
589 * src/insets/figinset.C: just commented some fl_free_form calls
590 and added warnings so that this calls should be activated later
591 again. This avoids for now a segfault, but we have a memory leak!
593 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
594 'const char * argument' to 'string argument', this should
595 fix some Asserts() in lyxstring.C.
597 * src/lyxfunc.h: Removed the function argAsString(const char *)
598 as it is not used anymore.
600 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
602 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
605 * src/Literate.h: some funcs moved from public to private to make
606 interface clearer. Unneeded args removed.
608 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
610 (scanBuildLogFile): ditto
612 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
613 normal TeX Error. Still room for improvement.
615 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
617 * src/buffer.C (insertErrors): changes to make the error
618 desctription show properly.
620 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
623 * src/support/lyxstring.C (helper): changed to use
624 sizeof(object->rep->ref).
625 (operator>>): changed to use a pointer instead.
627 * src/support/lyxstring.h: changed const reference & to value_type
628 const & lets see if that helps.
630 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
632 * Makefile.am (rpmdist): fixed to have non static package and
635 * src/support/lyxstring.C: removed the compilation guards
637 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
640 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
641 conditional compile of lyxstring.Ch
643 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
644 stupid check, but it is a lot better than the bastring hack.
645 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
647 * several files: changed string::erase into string::clear. Not
650 * src/chset.C (encodeString): use a char temporary instead
652 * src/table.C (TexEndOfCell): added tostr around
653 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
654 (TexEndOfCell): ditto
655 (TexEndOfCell): ditto
656 (TexEndOfCell): ditto
657 (DocBookEndOfCell): ditto
658 (DocBookEndOfCell): ditto
659 (DocBookEndOfCell): ditto
660 (DocBookEndOfCell): ditto
662 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
664 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
666 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
667 (MenuBuildProg): added tostr around ret
668 (MenuRunChktex): added tostr around ret
669 (DocumentApplyCB): added tostr around ret
671 * src/chset.C (encodeString): added tostr around t->ic
673 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
674 (makeLaTeXFile): added tostr around tocdepth
675 (makeLaTeXFile): added tostr around ftcound - 1
677 * src/insets/insetbib.C (setCounter): added tostr around counter.
679 * src/support/lyxstring.h: added an operator+=(int) to catch more
682 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
683 (lyxstring): We DON'T allow NULL pointers.
685 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
687 * src/mathed/math_macro.C (MathMacroArgument::Write,
688 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
689 when writing them out.
691 * src/LString.C: remove, since it is not used anymore.
693 * src/support/lyxstring.C: condition the content to
694 USE_INCLUDED_STRING macro.
696 * src/mathed/math_symbols.C, src/support/lstrings.C,
697 src/support/lyxstring.C: add `using' directive to specify what
698 we need in <algorithm>. I do not think that we need to
699 conditionalize this, but any thought is appreciated.
701 * many files: change all callback functions to "C" linkage
702 functions to please strict C++ compilers like DEC cxx 6.1 in mode
703 strict_ansi. Those who were static are now global.
704 The case of callbacks which are static class members is
705 trickier, since we have to make C wrappers around them (see
706 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
707 did not finish this yet, since it defeats the purpose of
708 encapsulation, and I am not sure what the best route is.
710 1999-10-19 Juergen Vigna <jug@sad.it>
712 * src/support/lyxstring.C (lyxstring): we permit to have a null
713 pointer as assignment value and just don't assign it.
715 * src/vspace.C (nextToken): corrected this function substituting
716 find_first(_not)_of with find_last_of.
718 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
719 (TableOptCloseCB) (TableSpeCloseCB):
720 inserted fl_set_focus call for problem with fl_hide_form() in
723 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
725 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
728 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
730 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
731 LyXLex::next() and not eatline() to get its argument.
733 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
735 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
736 instead, use fstreams for io of the depfile, removed unneeded
737 functions and variables.
739 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
740 vector instead, removed all functions and variables that is not in
743 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
745 * src/buffer.C (insertErrors): use new interface to TeXError
747 * Makefile.am (rpmdist): added a rpmdist target
749 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
750 per Kayvan's instructions.
752 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
754 * src/Makefile.am: add a definition for localedir, so that locales
755 are found after installation (Kayvan)
757 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
759 * development/.cvsignore: new file.
761 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
763 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
764 C++ compiler provides wrappers for C headers and use our alternate
767 * configure.in: use LYX_CXX_CHEADERS.
769 * src/cheader/: new directory, populated with cname headers from
770 libstdc++-2.8.1. They are a bit old, but probably good enough for
771 what we want (support compilers who lack them).
773 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
774 from includes. It turns out is was stupid.
776 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
778 * lib/Makefile.am (install-data-local): forgot a ';'
779 (install-data-local): forgot a '\'
780 (libinstalldirs): needed after all. reintroduced.
782 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
784 * configure.in (AC_OUTPUT): added lyx.spec
786 * development/lyx.spec: removed file
788 * development/lyx.spec.in: new file
790 * po/*.po: merged with lyx.pot becuase of make distcheck
792 * lib/Makefile.am (dist-hook): added dist-hook so that
793 documentation files will be included when doing a make
794 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
795 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
797 more: tried to make install do the right thing, exclude CVS dirs
800 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
801 Path would fit in more nicely.
803 * all files that used to use pathstack: uses now Path instead.
804 This change was a lot easier than expected.
806 * src/support/path.h: new file
808 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
810 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
812 * src/support/lyxstring.C (getline): Default arg was given for
815 * Configure.cmd: removed file
817 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
819 * src/support/DebugStream.[Ch]: remove the explicit std:: before
820 streams classes and types, add the proper 'using' statements when
821 MODERN_STL is defined.
823 * src/debug.h: move the << operator definition after the inclusion
826 * src/support/filetools.C: include "LAssert.h", which is needed
829 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
832 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
833 include "debug.h" to define a proper ostream.
835 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
837 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
838 method to the SystemCall class which can kill a process, but it's
839 not fully implemented yet.
841 * src/*.C: Changed Systemcalls::Startscript() to startscript()
843 * src/support/FileInfo.h: Better documentation
845 * src/lyxfunc.C: Added support for buffer-export html
847 * src/menus.C: Added Export->As HTML...
849 * lib/bind/*.bind: Added short-cut for buffer-export html
851 * src/lyxrc.*: Added support for new \tth_command
853 * lib/lyxrc.example: Added stuff for new \tth_command
855 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
857 * lib/Makefile.am (IMAGES): removed images/README
858 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
859 installes in correct place. Check permisions is installed
862 * src/LaTeX.C: some no-op changes moved declaration of some
865 * src/LaTeX.h (LATEX_H): changed include guard name
867 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
869 * lib/reLyX/Makefile.am: install noweb2lyx.
871 * lib/Makefile.am: install configure.
873 * lib/reLyX/configure.in: declare a config aux dir; set package
874 name to lyx (not sure what the best solution is); generate noweb2lyx.
876 * lib/layouts/egs.layout: fix the bibliography layout.
878 1999-10-08 Jürgen Vigna <jug@sad.it>
880 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
881 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
882 it returned without continuing to search the path.
884 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
886 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
887 also fixes a bug. It is not allowed to do tricks with std::strings
888 like: string a("hei"); &a[e]; this will not give what you
889 think... Any reason for the complexity in this func?
891 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
893 * Updated README and INSTALL a bit, mostly to check that my
894 CVS rights are correctly set up.
896 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
898 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
899 does not allow '\0' chars but lyxstring and std::string does.
901 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
903 * autogen.sh (AUTOCONF): let the autogen script create the
904 POTFILES.in file too. POTFILES.in should perhaps now not be
905 included in the cvs module.
907 * some more files changed to use C++ includes instead of C ones.
909 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
911 (Reread): added tostr to nlink. buggy output otherwise.
912 (Reread): added a string() around szMode when assigning to Buffer,
913 without this I got a log of garbled info strings.
915 * acconfig.h: commented out the PTR_AS_INT macros. They should not
918 * I have added several ostream & operator<<(ostream &, some_type)
919 functions. This has been done to avoid casting and warnings when
920 outputting enums to lyxerr. This as thus eliminated a lot of
921 explicit casts and has made the code clearer. Among the enums
922 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
923 mathed enums, some font enum the Debug::type enum.
925 * src/support/lyxstring.h (clear): missing method. equivalent of
928 * all files that contained "stderr": rewrote constructs that used
929 stderr to use lyxerr instead. (except bmtable)
931 * src/support/DebugStream.h (level): and the passed t with
932 Debug::ANY to avoid spurious bits set.
934 * src/debug.h (Debug::type value): made it accept strings of the
937 * configure.in (Check for programs): Added a check for kpsewhich,
938 the latex generation will use this later to better the dicovery of
941 * src/BufferView.C (create_view): we don't need to cast this to
942 (void*) that is done automatically.
943 (WorkAreaButtonPress): removed some dead code.
945 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
947 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
948 is not overwritten when translated (David Sua'rez de Lis).
950 * lib/CREDITS: Added David Sua'rez de Lis
952 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
954 * src/bufferparams.C (BufferParams): default input encoding is now
957 * acinclude.m4 (cross_compiling): comment out macro
958 LYX_GXX_STRENGTH_REDUCE.
960 * acconfig.h: make sure that const is not defined (to empty) when
961 we are compiling C++. Remove commented out code using SIZEOF_xx
964 * configure.in : move the test for const and inline as late as
965 possible so that these C tests do not interefere with C++ ones.
966 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
969 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
971 * src/table.C (getDocBookAlign): remove bad default value for
974 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
976 (ShowFileMenu2): ditto.
978 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
981 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
983 * Most files: finished the change from the old error code to use
984 DebugStream for all lyxerr debugging. Only minor changes remain
985 (e.g. the setting of debug levels using strings instead of number)
987 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
989 * src/layout.C (Add): Changed to use compare_no_case instead of
992 * src/FontInfo.C: changed loop variable type too string::size_type.
994 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
996 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
997 set ETAGS_ARGS to --c++
999 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1001 * src/table.C (DocBookEndOfCell): commented out two unused variables
1003 * src/paragraph.C: commented out four unused variables.
1005 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1006 insed a if clause with type string::size_type.
1008 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1011 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1013 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1014 variable, also changed loop to go from 0 to lenght + 1, instead of
1015 -1 to length. This should be correct.
1017 * src/LaTeX.C (scanError): use string::size_type as loop variable
1020 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1021 (l.896) since y_tmp and row was not used anyway.
1023 * src/insets/insetref.C (escape): use string::size_type as loop
1026 * src/insets/insetquotes.C (Width): use string::size_type as loop
1028 (Draw): use string::size_type as loop variable type.
1030 * src/insets/insetlatexaccent.C (checkContents): use
1031 string::size_type as loop variable type.
1033 * src/insets/insetlabel.C (escape): use string::size_type as loop
1036 * src/insets/insetinfo.C: added an extern for current_view.
1038 * src/insets/insetcommand.C (scanCommand): use string::size_type
1039 as loop variable type.
1041 * most files: removed the RCS tags. With them we had to recompile
1042 a lot of files after a simple cvs commit. Also we have never used
1043 them for anything meaningful.
1045 * most files: tags-query-replace NULL 0. As adviced several plases
1046 we now use "0" instead of "NULL" in our code.
1048 * src/support/filetools.C (SpaceLess): use string::size_type as
1051 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1053 * src/paragraph.C: fixed up some more string stuff.
1055 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1057 * src/support/filetools.h: make modestr a std::string.
1059 * src/filetools.C (GetEnv): made ch really const.
1061 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1062 made code that used these use max/min from <algorithm> instead.
1064 * changed several c library include files to their equivalent c++
1065 library include files. All is not changed yet.
1067 * created a support subdir in src, put lyxstring and lstrings
1068 there + the extra files atexit, fileblock, strerror. Created
1069 Makefile.am. edited configure.in and src/Makefile.am to use this
1070 new subdir. More files moved to support.
1072 * imported som of the functions from repository lyx, filetools
1074 * ran tags-query-replace on LString -> string, corrected the bogus
1075 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1076 is still some errors in there. This is errors where too much or
1077 too litle get deleted from strings (string::erase, string::substr,
1078 string::replace), there can also be some off by one errors, or
1079 just plain wrong use of functions from lstrings. Viewing of quotes
1082 * LyX is now running fairly well with string, but there are
1083 certainly some bugs yet (see above) also string is quite different
1084 from LString among others in that it does not allow null pointers
1085 passed in and will abort if it gets any.
1087 * Added the revtex4 files I forgot when setting up the repository.
1089 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1091 * All over: Tried to clean everything up so that only the files
1092 that we really need are included in the cvs repository.
1093 * Switched to use automake.
1094 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1095 * Install has not been checked.
1097 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1099 * po/pt.po: Three errors:
1100 l.533 and l.538 format specification error
1101 l. 402 duplicate entry, I just deleted it.