1 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
4 nonexisting layout; correctly redirect obsoleted layouts.
6 * lib/lyxrc.example: document \view_dvi_paper_option
8 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
11 * src/lyx_cb.C (RunScript): handle $$FName for command names.
12 (PreviewDVI): handle the view_dvi_paper_option variable.
13 [Both from Roland Krause]
15 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
17 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
18 char const *, int, LyXFont)
19 (text(int, int, string, LyXFont)): ditto
21 * src/text.C (InsertCharInTable): attempt to fix the double-space
22 feature in tables too.
23 (BackspaceInTable): ditto.
24 (GetVisibleRow): make bottom pagebreak line be a onoff line.
26 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
28 * src/text2.C (owner): only complain if owner_ is set and bv != 0
30 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
31 newly found text in textcache to this.
32 (buffer): set the owner of the text put into the textcache to 0
34 * src/insets/figinset.C (draw): fixed the drawing of figures with
37 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
38 drawing of mathframe, hfills, protected space, table lines. I have
39 now no outstanding drawing problems with the new Painter code.
41 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
43 * src/PainterBase.C (ellipse, circle): do not specify the default
46 * src/LColor.h: add using directive.
48 * src/Painter.[Ch]: change return type of methods from Painter& to
49 PainterBase&. Add a using directive.
51 * src/WorkArea.C: wrap xforms callbacks in C functions
54 * lib/layouts/foils.layout: font fix and simplifications from Carl
57 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
59 * a lot of files: The Painter, LColor and WorkArea from the old
60 devel branch has been ported to lyx-devel. Some new files and a
61 lot of #ifdeffed code. The new workarea is enabled by default, but
62 if you want to test the new Painter and LColor you have to compile
63 with USE_PAINTER defined (do this in config.h f.ex.) There are
64 still some rought edges, and I'd like some help to clear those
65 out. It looks stable (loads and displays the Userguide very well).
68 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
70 * src/buffer.C (pop_tag): revert to the previous implementation
71 (use a global variable for both loops).
73 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
75 * src/lyxrc.C (LyXRC): change slightly default date format.
77 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
78 there is an English text with a footnote that starts with a Hebrew
79 paragraph, or vice versa.
82 * src/text.C (LeftMargin): allow for negative values for
83 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
86 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
87 for input encoding (cyrillic)
89 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
91 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
94 * src/toolbar.C (set): ditto
95 * src/insets/insetbib.C (create_form_citation_form): ditto
97 * lib/CREDITS: added Dekel Tsur.
99 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
100 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
101 hebrew supports files from Dekel Tsur.
103 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
104 <tzafrir@technion.ac.il>
106 * src/lyxrc.C: put \date_insert_format at the right place.
108 * src/buffer.C (makeLaTeXFile): fix the handling of
109 BufferParams::sides when writing out latex files.
111 * src/BufferView2.C: add a "using" directive.
113 * src/support/lyxsum.C (sum): when we use lyxstring,
114 ostringstream::str needs an additional .c_str().
116 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
118 * src/support/filetools.C (ChangeExtension): patch from Etienne
121 * src/TextCache.C (show): remove const_cast and make second
122 parameter non-const LyXText *.
124 * src/TextCache.h: use non const LyXText in show.
126 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
129 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
131 * src/support/lyxsum.C: rework to be more flexible.
133 * several places: don't check if a pointer is 0 if you are going
136 * src/text.C: remove some dead code.
138 * src/insets/figinset.C: remove some dead code
140 * src/buffer.C: move the BufferView funcs to BufferView2.C
141 remove all support for insetlatexdel
142 remove support for oldpapersize stuff
143 made some member funcs const
145 * src/kbmap.C: use a std::list to store the bindings in.
147 * src/BufferView2.C: new file
149 * src/kbsequence.[Ch]: new files
151 * src/LyXAction.C + others: remove all trace of buffer-previous
153 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
154 only have one copy in the binary of this table.
156 * hebrew patch: moved some functions from LyXText to more
157 appropriate places. (LyXParagraph, BufferParams, LyXFont)
159 * several files: remove support for XForms older than 0.88
161 remove some #if 0 #endif code
163 * src/TextCache.[Ch]: new file. Holds the textcache.
165 * src/BufferView.C: changes to use the new TextCache interface.
166 (waitForX): remove the now unused code.
168 * src/BackStack.h: remove some commented code
170 * lib/bind/emacs.bind: remove binding for buffer-previous
172 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
174 * applied the hebrew patch.
176 * src/lyxrow.h: make sure that all Row variables are initialized.
178 * src/text2.C (TextHandleUndo): comment out a delete, this might
179 introduce a memory leak, but should also help us to not try to
180 read freed memory. We need to look at this one.
182 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
183 (LyXParagraph): initalize footnotekind.
185 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
186 forgot this when applying the patch. Please heed the warnings.
188 * src/BufferView.C (buffer): a fix for the buffer-reload problem
189 (aka. reformat problem)
191 * src/bufferlist.C (exists): made const, and use const_iterator
192 (isLoaded): new func.
193 (release): use std::find to find the correct buffer.
195 * src/bufferlist.h: made getState a const func.
196 made empty a const func.
197 made exists a const func.
200 2000-02-01 Juergen Vigna <jug@sad.it>
202 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
204 * po/it.po: updated a bit the italian po file and also changed the
205 'file nuovo' for newfile to 'filenuovo' without a space, this did
208 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
209 for the new insert_date command.
211 * src/lyxfunc.C (Dispatch): added support for a insert_date function
212 from jdblair, to insert a date into the current text conforming to
213 a strftime format (for now only considering the locale-set and not
214 the document-language).
216 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
218 * src/lyxfont.C (textWidth): hopefully better fix for the Array
219 Bounds Read error seen by purify. The problem was that islower is
220 a macros which takes an unsigned char and uses it as an index for
221 in array of characters properties (and is thus subject to the
225 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
226 correctly the paper sides radio buttons.
227 (UpdateDocumentButtons): ditto.
229 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
231 * src/kbmap.C (getsym + others): change to return unsigned int,
232 returning a long can give problems on 64 bit systems. (I assume
233 that int is 32bit on 64bit systems)
235 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
237 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
238 LyXLookupString to be zero-terminated. Really fixes problems seen
241 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
243 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
244 write a (char*)0 to the lyxerr stream.
246 * src/lastfiles.C: move algorithm before the using statemets.
248 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
250 * src/lastfiles.C: move using directives in global scope (egcs 1.x
251 complains otherwise).
254 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
257 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
258 that I removed earlier... It is really needed.
260 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
262 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
264 * INSTALL: update xforms home page URL.
266 * lib/configure.m4: fix a bug with unreadable layout files.
268 * src/table.C (calculate_width_of_column): add "using std::max"
271 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
273 * several files: marked several lines with "DEL LINE", this is
274 lines that can be deleted without changing anything.
275 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
276 checks this anyway */
279 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
281 * src/DepTable.C (update): add a "+" at the end when the checksum
282 is different. (debugging string only)
284 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
285 the next inset to not be displayed. This should also fix the list
286 of labels in the "Insert Crossreference" dialog.
288 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
290 * src/support/LSubstring.C (LSubstring): set pos to string::npos
291 when regex was not found.
293 * src/support/lstrings.C (lowercase): use handcoded transform always.
296 * src/text.C (Delete): fixed the crash. cursor.par->prev and
297 old_cursor.par->prev could be 0.
299 * several files: changed post inc/dec to pre inc/dec
301 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
302 write the lastfiles to file.
304 * src/BufferView.C (buffer): only show TextCache info when debugging
306 (resizeCurrentBuffer): ditto
307 (workAreaExpose): ditto
309 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
311 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
313 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
314 a bit better by removing the special case for \i and \j.
316 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
318 * src/lyx_main.C (easyParse): remove test for bad comand line
319 options, since this broke all xforms-related parsing.
321 * src/kbmap.C (getsym): set return type to unsigned long, as
322 declared in header. On an alpha, long is _not_ the same as int.
324 * src/support/LOstream.h: add a "using std::flush;"
326 * src/insets/figinset.C: ditto.
328 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
330 * src/bufferlist.C (write): use blinding fast file copy instead of
331 "a char at a time", now we are doing it the C++ way.
333 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
334 std::list<int> instead.
335 (addpidwait): reflect move to std::list<int>
336 (sigchldchecker): ditto
338 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
341 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
342 that obviously was wrong...
344 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
345 c, this avoids warnings with purify and islower.
347 * src/insets/figinset.C: rename struct queue to struct
348 queue_element and rewrite to use a std::queue. gsqueue is now a
349 std::queue<queue_element>
350 (runqueue): reflect move to std::queue
353 * src/support/lstrings.h (tostr): specialize for bool, otherwise
354 we would get "1" "0" instead of "true" "false. Also make the tostr
357 2000-01-21 Juergen Vigna <jug@sad.it>
359 * src/buffer.C (writeFileAscii): Disabled code for special groff
360 handling of tabulars till I fix this in table.C
362 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
364 * src/support/mkdir.C (mkdir): change second argument of mkdir to
366 * src/support/lyxlib.h: ditto.
368 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
370 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
371 and 'j' look better. This might fix the "macron" bug that has been
374 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
375 functions as one template function. Delete the old versions.
377 * src/support/lyxsum.C: move using std::ifstream inside
380 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
383 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
385 * src/mathed/formula.C: delete #include "bufferlist.h" never used
387 * src/insets/figinset.C (InitFigures): use new instead of malloc
388 to allocate memory for figures and bitmaps.
389 (DoneFigures): use delete[] instead of free to deallocate memory
390 for figures and bitmaps.
391 (runqueue): use new to allocate
392 (getfigdata): use new/delete[] instead of malloc/free
393 (RegisterFigure): ditto
395 * some files: moved some declarations closer to first use, small
396 whitespace changes use preincrement instead of postincrement where
397 it does not make a difference.
399 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
400 step on the way to use stl::containers for key maps.
402 * src/bufferlist.h: add a typedef for const_iterator and const
403 versions of begin and end.
405 * src/bufferlist.[Ch]: change name of member variable _state to
406 state_. (avoid reserved names)
408 (getFileNames): returns the filenames of the buffers in a vector.
410 * configure.in (ALL_LINGUAS): added ro
412 * src/support/putenv.C: new file
414 * src/support/mkdir.C: new file
416 2000-01-20 Allan Rae <rae@lyx.org>
418 * lib/layouts/IEEEtran.layout: Added several theorem environments
420 * lib/templates/IEEEtran.lyx: Example theorem environments and a
421 couple of minor additions.
423 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
424 (except for those in footnotes of course)
426 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
428 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
430 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
431 std::sort and std::lower_bound instead of qsort and handwritten
433 (struct compara): struct that holds the functors used by std::sort
434 and std::lower_bound in MathedLookupBOP.
436 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * src/support/LAssert.h: do not do partial specialization. We do
441 * src/support/lyxlib.h: note that lyx::getUserName() and
442 lyx::date() are not in use right now. Should these be suppressed?
444 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
445 (makeLinuxDocFile): do not put date and user name in linuxdoc
448 * src/support/lyxlib.h (kill): change first argument to long int,
449 since that's what solaris uses.
451 * src/support/kill.C (kill): fix declaration to match prototype.
453 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
454 actually check whether namespaces are supported. This is not what
457 * src/support/lyxsum.C: add a using directive.
459 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
461 * src/support/kill.C: if we have namespace support we don't have
464 * src/support/lyxlib.h: use namespace lyx if supported.
466 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
468 * src/support/date.C: new file
470 * src/support/chdir.C: new file
472 * src/support/getUserName.C: new file
474 * src/support/getcwd.C: new file
476 * src/support/abort.C: new file
478 * src/support/kill.C: new file
480 * src/support/lyxlib.h: moved all the functions in this file
481 insede struct lyx. Added also kill and abort to this struct. This
482 is a way to avoid the "kill is not defined in <csignal>", we make
483 C++ wrappers for functions that are not ANSI C or ANSI C++.
485 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
486 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
487 lyx it has been renamed to sum.
489 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
491 * src/text.C: add using directives for std::min and std::max.
493 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
495 * src/texrow.C (getIdFromRow): actually return something useful in
496 id and pos. Hopefully fixes the bug with positionning of errorbox
499 * src/lyx_main.C (easyParse): output an error and exit if an
500 incorrect command line option has been given.
502 * src/spellchecker.C (ispell_check_word): document a memory leak.
504 * src/bufferlist.C (write): fix mismatched allocation/deletion,
505 where a "struct utimbuf" is allocated with "new" and deleted with
508 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
510 * src/text2.C (CutSelection): don't delete double spaces.
511 (PasteSelection): ditto
512 (CopySelection): ditto
514 * src/text.C (Backspace): don't delete double spaces.
516 * src/lyxlex.C (next): fix a bug that were only present with
517 conformant std::istream::get to read comment lines, use
518 std::istream::getline instead. This seems to fix the problem.
520 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
522 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
523 allowed to insert space before space" editing problem. Please read
524 commends at the beginning of the function. Comments about usage
527 * src/text.C (InsertChar): fix for the "not allowed to insert
528 space before space" editing problem.
530 * src/text2.C (DeleteEmptyParagraphMechanism): when
531 IsEmptyTableRow can only return false this last "else if" will
532 always be a no-op. Commented out.
534 * src/text.C (RedoParagraph): As far as I can understand tmp
535 cursor is not really needed.
537 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
538 present it could only return false anyway.
539 (several functions): Did something not so smart...added a const
540 specifier on a lot of methods.
542 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
543 and add a tmp->text.resize. The LyXParagraph constructor does the
545 (BreakParagraphConservative): ditto
547 * src/support/path.h (Path): add a define so that the wrong usage
548 "Path("/tmp") will be flagged as a compilation error:
549 "`unnamed_Path' undeclared (first use this function)"
551 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
553 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
554 which was bogus for several reasons.
556 * src/LaTeX.C (scanAux): fix the regular expression used to scan
560 * autogen.sh: do not use "type -path" (what's that anyway?).
562 * src/support/filetools.C (findtexfile): remove extraneous space
563 which caused a kpsewhich warning (at least with kpathsea version
566 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
568 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
570 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
572 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
574 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
576 * src/paragraph.C (BreakParagraph): do not reserve space on text
577 if we don't need to (otherwise, if pos_end < pos, we end up
578 reserving huge amounts of memory due to bad unsigned karma).
579 (BreakParagraphConservative): ditto, although I have not seen
580 evidence the bug can happen here.
582 * src/lyxparagraph.h: add a using std::list.
584 2000-01-11 Juergen Vigna <jug@sad.it>
586 * src/menus.C (MenuDocu): output an Alert if the documentation-file
589 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
591 * src/vc-backend.C (doVCCommand): change to be static and take one
592 more parameter: the path to chdir too be fore executing the command.
593 (retrive): new function equiv to "co -r"
595 * src/bufferlist.C (loadLyXFile): implement the missing parts if
596 file_not_found_hook is true.
598 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
600 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
601 if a file is readwrite,readonly...anything else.
603 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
605 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
606 (CreatePostscript): name change from MenuRunDVIPS (or something)
607 (PreviewPostscript): name change from MenuPreviewPS
608 (PreviewDVI): name change from MenuPreviewDVI
610 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
611 \view_pdf_command., \pdf_to_ps_command
613 * lib/configure.m4: added search for PDF viewer, and search for
615 (lyxrc.defaults output): add \pdflatex_command,
616 \view_pdf_command and \pdf_to_ps_command.
618 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
620 * src/bufferlist.C (write): we don't use blocksize for anything so
623 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
625 * src/support/block.h: disable operator T* (), since it causes
626 problems with both compilers I tried. See comments in the file.
628 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
631 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
632 variable LYX_DIR_10x to LYX_DIR_11x.
634 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
636 * INSTALL: document --with-lyxname.
639 * configure.in: new configure flag --with-lyxname which allows to
640 choose the name under which lyx is installed. Default is "lyx", of
641 course. It used to be possible to do this with --program-suffix,
642 but the later has in fact a different meaning for autoconf.
644 * src/support/lstrings.h (lstrchr): reformat a bit.
646 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
647 * src/mathed/math_defs.h: ditto.
649 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
651 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
652 true, decides if we create a backup file or not when saving. New
653 tag and variable \pdf_mode, defaults to false. New tag and
654 variable \pdflatex_command, defaults to pdflatex. New tag and
655 variable \view_pdf_command, defaults to xpdf. New tag and variable
656 \pdf_to_ps_command, defaults to pdf2ps.
658 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
660 * src/bufferlist.C (close): don't call insetUnlock if the buffer
661 does not have a BufferView.
662 (unlockInset): ditto + don't access the_locking_inset if the
663 buffer does not have a BufferView.
665 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
666 certain circumstances so that we don't continue a keyboard
667 operation long after the key was released. Try f.ex. to load a
668 large document, press PageDown for some seconds and then release
669 it. Before this change the document would contine to scroll for
670 some time, with this change it stops imidiatly.
672 * src/support/block.h: don't allocate more space than needed. As
673 long as we don't try to write to the arr[x] in a array_type arr[x]
674 it is perfectly ok. (if you write to it you might segfault).
675 added operator value_type*() so that is possible to pass the array
676 to functions expecting a C-pointer.
678 * lib/Makefile.am (dist-hook): don't fail completely if unable to
681 * intl/*: updated to gettext 0.10.35, tried to add our own
682 required modifications. Please verify.
684 * po/*: updated to gettext 0.10.35, tried to add our own required
685 modifications. Please verify.
687 * src/support/lstrings.C (tostr): go at fixing the problem with
688 cxx and stringstream. When stringstream is used return
689 oss.str().c_str() so that problems with lyxstring and basic_string
690 are avoided. Note that the best solution would be for cxx to use
691 basic_string all the way, but it is not conformant yet. (it seems)
693 * src/lyx_cb.C + other files: moved several global functions to
694 class BufferView, some have been moved to BufferView.[Ch] others
695 are still located in lyx_cb.C. Code changes because of this. (part
696 of "get rid of current_view project".)
698 * src/buffer.C + other files: moved several Buffer functions to
699 class BufferView, the functions are still present in buffer.C.
700 Code changes because of this.
702 * config/lcmessage.m4: updated to most recent. used when creating
705 * config/progtest.m4: updated to most recent. used when creating
708 * config/gettext.m4: updated to most recent. applied patch for
711 * config/gettext.m4.patch: new file that shows what changes we
712 have done to the local copy of gettext.m4.
714 * config/libtool.m4: new file, used in creation of acinclude.m4
716 * config/lyxinclude.m4: new file, this is the lyx created m4
717 macros, used in making acinclude.m4.
719 * autogen.sh: GNU m4 discovered as a separate task not as part of
720 the lib/configure creation.
721 Generate acinlucde from files in config. Actually cat
722 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
723 easier to upgrade .m4 files that really are external.
725 * src/Spacing.h: moved using std::istringstream to right after
726 <sstream>. This should fix the problem seen with some compilers.
728 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
730 * src/lyx_cb.C: began some work to remove the dependency a lot of
731 functions have on BufferView::text, even if not really needed.
732 (GetCurrentTextClass): removed this func, it only hid the
735 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
736 forgot this in last commit.
738 * src/Bullet.C (bulletEntry): use static char const *[] for the
739 tables, becuase of this the return arg had to change to string.
741 (~Bullet): removed unneeded destructor
743 * src/BufferView.C (beforeChange): moved from lyx_cb.C
744 (insetSleep): moved from Buffer
745 (insetWakeup): moved from Buffer
746 (insetUnlock): moved from Buffer
748 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
749 from Buffer to BufferView.
751 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
753 * config/ltmain.sh: updated to version 1.3.4 of libtool
755 * config/ltconfig: updated to version 1.3.4 of libtool
757 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
760 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
761 Did I get that right?
763 * src/lyxlex.h: add a "using" directive or two.
764 * src/Spacing.h: ditto.
765 * src/insets/figinset.C: ditto.
766 * src/support/filetools.C: ditto.
767 * src/support/lstrings.C: ditto.
768 * src/BufferView.C: ditto.
769 * src/bufferlist.C: ditto.
770 * src/lyx_cb.C: ditto.
771 * src/lyxlex.C: ditto.
773 * NEWS: add some changes for 1.1.4.
775 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
777 * src/BufferView.C: first go at a TextCache to speed up switching
780 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
782 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
783 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
784 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
785 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
788 * src/mathed/math_defs.h (MathedRowSt): make sure that all
789 members of the struct are correctly initialized to 0 (detected by
791 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
792 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
794 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
795 pidwait, since it was allocated with "new". This was potentially
796 very bad. Thanks to Michael Schmitt for running purify for us.
799 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
801 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
803 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
805 1999-12-30 Allan Rae <rae@lyx.org>
807 * lib/templates/IEEEtran.lyx: minor change
809 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
810 src/mathed/formula.C (LocalDispatch): askForText changes
812 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
813 know when a user has cancelled input. Fixes annoying problems with
814 inserting labels and version control.
816 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
818 * src/support/lstrings.C (tostr): rewritten to use strstream and
821 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
823 * src/support/filetools.C (IsFileWriteable): use fstream to check
824 (IsDirWriteable): use fileinfo to check
826 * src/support/filetools.h (FilePtr): whole class deleted
828 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
830 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
832 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
834 * src/bufferlist.C (write): use ifstream and ofstream instead of
837 * src/Spacing.h: use istrstream instead of sscanf
839 * src/mathed/math_defs.h: change first arg to istream from FILE*
841 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
843 * src/mathed/math_parser.C: have yyis to be an istream
844 (LexGetArg): use istream (yyis)
846 (mathed_parse): ditto
847 (mathed_parser_file): first arg istream instead of FILE*, set yyis
849 * src/mathed/formula.C (Read): rewritten to use istream
851 * src/mathed/formulamacro.C (Read): rewritten to use istream
853 * src/lyxlex.h (~LyXLex): deleted desturctor
854 (getStream): new function, returns an istream
855 (getFile): deleted funtion
856 (IsOK): return is.good();
858 * src/lyxlex.C (LyXLex): delete file and owns_file
859 (setFile): open an filebuf and assign that to a istream instead of
861 (setStream): new function, takes an istream as arg.
862 (setFile): deleted function
863 (EatLine): rewritten us use istream instead of FILE*
867 * src/table.C (LyXTable): use istream instead of FILE*
868 (Read): rewritten to take an istream instead of FILE*
870 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
872 * src/buffer.C (Dispatch): remove an extraneous break statement.
874 * src/support/filetools.C (QuoteName): change to do simple
875 'quoting'. More work is necessary. Also changed to do nothing
876 under emx (needs fix too).
877 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
879 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
880 config.h.in to the AC_DEFINE_UNQUOTED() call.
881 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
882 needs char * as argument (because Solaris 7 declares it like
885 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
886 remove definition of BZERO.
888 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
890 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
891 defined, "lyxregex.h" if not.
893 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
895 (REGEX): new variable that is set to regex.c lyxregex.h when
896 AM_CONDITIONAL USE_REGEX is set.
897 (libsupport_la_SOURCES): add $(REGEX)
899 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
902 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
905 * configure.in: add call to LYX_REGEX
907 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
908 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
910 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
912 * lib/bind/fi_menus.bind: new file, from
913 pauli.virtanen@saunalahti.fi.
915 * src/buffer.C (getBibkeyList): pass the parameter delim to
916 InsetInclude::getKeys and InsetBibtex::getKeys.
918 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
919 is passed to Buffer::getBibkeyList
921 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
922 instead of the hardcoded comma.
924 * src/insets/insetbib.C (getKeys): make sure that there are not
925 leading blanks in bibtex keys. Normal latex does not care, but
926 harvard.sty seems to dislike blanks at the beginning of citation
927 keys. In particular, the retturn value of the function is
929 * INSTALL: make it clear that libstdc++ is needed and that gcc
930 2.7.x probably does not work.
932 * src/support/filetools.C (findtexfile): make debug message go to
934 * src/insets/insetbib.C (getKeys): ditto
936 * src/debug.C (showTags): make sure that the output is correctly
939 * configure.in: add a comment for TWO_COLOR_ICON define.
941 * acconfig.h: remove all the entries that already defined in
942 configure.in or acinclude.m4.
944 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
945 to avoid user name, date and copyright.
947 1999-12-21 Juergen Vigna <jug@sad.it>
949 * src/table.C (Read): Now read bogus row format informations
950 if the format is < 5 so that afterwards the table can
951 be read by lyx but without any format-info. Fixed the
952 crash we experienced when not doing this.
954 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
956 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
957 (RedoDrawingOfParagraph): ditto
958 (RedoParagraphs): ditto
959 (RemoveTableRow): ditto
961 * src/text.C (Fill): rename arg paperwidth -> paper_width
963 * src/buffer.C (insertLyXFile): rename var filename -> fname
964 (writeFile): rename arg filename -> fname
965 (writeFileAscii): ditto
966 (makeLaTeXFile): ditto
967 (makeLinuxDocFile): ditto
968 (makeDocBookFile): ditto
970 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
973 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
975 * src/bmtable.h: add extern "C" on this file when __cplusplus is
978 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
979 compiled by a C compiler not C++.
981 * src/layout.h (LyXTextClass): added typedef for const_iterator
982 (LyXTextClassList): added typedef for const_iterator + member
983 functions begin and end.
985 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
986 iterators to fill the choice_class.
987 (updateLayoutChoice): rewritten to use iterators to fill the
988 layoutlist in the toolbar.
990 * src/BufferView.h (BufferView::work_area_width): removed unused
993 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
995 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
996 (sgmlCloseTag): ditto
998 * src/support/lstrings.h: return type of countChar changed to
1001 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1002 what version of this func to use. Also made to return unsigned int.
1004 * configure.in: call LYX_STD_COUNT
1006 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1007 conforming std::count.
1009 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1011 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1012 and a subscript would give bad display (patch from Dekel Tsur
1013 <dekel@math.tau.ac.il>).
1015 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
1017 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1020 * src/chset.h: add a few 'using' directives
1022 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1023 triggered when no buffer is active
1025 * src/layout.C: removed `break' after `return' in switch(), since
1028 * src/lyx_main.C (init): make sure LyX can be ran in place even
1029 when libtool has done its magic with shared libraries. Fix the
1030 test for the case when the system directory has not been found.
1032 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1033 name for the latex file.
1034 (MenuMakeHTML): ditto
1036 * src/buffer.h: add an optional boolean argument, which is passed
1039 1999-12-20 Allan Rae <rae@lyx.org>
1041 * lib/templates/IEEEtran.lyx: small correction and update.
1043 * configure.in: Attempted to use LYX_PATH_HEADER
1045 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1047 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1048 input from JMarc. Now use preprocessor to find the header.
1049 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1050 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1051 LYX_STL_STRING_FWD. See comments in file.
1053 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
1055 * The global MiniBuffer * minibuffer variable is dead.
1057 * The global FD_form_main * fd_form_main variable is dead.
1059 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1061 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1063 * src/table.h: add the LOstream.h header
1064 * src/debug.h: ditto
1066 * src/LyXAction.h: change the explaination of the ReadOnly
1067 attribute: is indicates that the function _can_ be used.
1069 * src/LyXAction.C (init): find-replace _can_ be used in read-only
1072 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1074 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1080 * src/paragraph.C (GetWord): assert on pos>=0
1083 * src/support/lyxstring.C: condition the use of an invariant on
1085 * src/support/lyxstring.h: ditto
1087 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1088 Use LAssert.h instead of plain assert().
1090 * src/support/lstrings.h: add LAssert.h, in case it is needed.
1092 * src/lyxfunc.C: do not include LAssert.h, it is not used.
1093 * src/support/filetools.C: ditto
1095 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1098 * INSTALL: document the new configure flags
1100 * configure.in: suppress --with-debug; add --enable-assertions
1102 * acinclude.m4: various changes in alignment of help strings.
1104 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1106 * src/kbmap.C: commented out the use of the hash map in kb_map,
1107 beginning of movement to a stl::container.
1109 * several files: removed code that was not in effect when
1110 MOVE_TEXT was defined.
1112 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1113 for escaping should not be used. We can discuss if the string
1114 should be enclosed in f.ex. [] instead of "".
1116 * src/trans_mgr.C (insert): use the new returned value from
1117 encodeString to get deadkeys and keymaps done correctly.
1119 * src/chset.C (encodeString): changed to return a pair, to tell
1120 what to use if we know the string.
1122 * src/lyxscreen.h (fillArc): new function.
1124 * src/FontInfo.C (resize): rewritten to use more std::string like
1125 structore, especially string::replace.
1127 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1130 * configure.in (chmod +x some scripts): remove config/gcc-hack
1132 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1134 * src/buffer.C (writeFile): change once again the top comment in a
1135 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1136 instead of an hardcoded version number.
1137 (makeDocBookFile): ditto
1139 * src/version.h: add new define LYX_DOCVERSION
1141 * po/de.po: update from Pit Sütterlin
1142 * lib/bind/de_menus.bind: ditto.
1144 * src/lyxfunc.C (Dispatch): call MenuExport()
1145 * src/buffer.C (Dispatch): ditto
1147 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1148 LyXFunc::Dispatch().
1149 (MenuExport): new function, moved from
1150 LyXFunc::Dispatch().
1152 * src/trans_mgr.C (insert): small cleanup
1153 * src/chset.C (loadFile): ditto
1155 * lib/kbd/iso8859-1.cdef: add missing backslashes
1157 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1159 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1160 help with placing the manually drawn accents better.
1162 (Draw): x2 and hg changed to float to minimize rounding errors and
1163 help place the accents better.
1165 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1166 unsigned short to char is just wrong...cast the char to unsigned
1167 char instead so that the two values can compare sanely. This
1168 should also make the display of insetlatexaccents better and
1169 perhaps also some other insets.
1171 (lbearing): new function
1174 1999-12-15 Allan Rae <rae@lyx.org>
1176 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
1177 header that provides a wrapper around the very annoying SGI STL header
1180 * src/support/lyxstring.C, src/LString.h:
1181 removed old SGI-STL-compatability attempts.
1183 * configure.in: Use LYX_STL_STRING_FWD.
1185 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
1186 stl_string_fwd.h is around and try to determine it's location.
1187 Major improvement over previous SGI STL 3.2 compatability.
1188 Three small problems remain with this function due to my zero
1189 knowledge of autoconf. JMarc and lgb see the comments in the code.
1191 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1193 * src/broken_const.h, config/hack-gcc, config/README: removed
1195 * configure.in: remove --with-gcc-hack option; do not call
1198 * INSTALL: remove documentation of --with-broken-const and
1201 * acconfig.h: remove all trace of BROKEN_CONST define
1203 * src/buffer.C (makeDocBookFile): update version number in output
1205 (SimpleDocBookOnePar): fix an assert when trying to a character
1206 access beyond string length
1209 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1211 * po/de.po: fix the Export menu
1213 * lyx.man: update the description of -dbg
1215 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1216 (commandLineHelp): updated
1217 (easyParse): show list of available debug levels if -dbg is passed
1220 * src/Makefile.am: add debug.C
1222 * src/debug.h: moved some code to debug.C
1224 * src/debug.C: new file. Contains code to set and show debug
1227 * src/layout.C: remove 'break' after 'continue' in switch
1228 statements, since these cannot be reached.
1230 1999-12-13 Allan Rae <rae@lyx.org>
1232 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1233 (in_word_set): hash() -> math_hash()
1235 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
1237 * acconfig.h: Added a test for whether we are using exceptions in the
1238 current compilation run. If so USING_EXCEPTIONS is defined.
1240 * config.in: Check for existance of stl_string_fwd.h
1241 * src/LString.h: If compiling --with-included-string and SGI's
1242 STL version 3.2 is present (see above test) we need to block their
1243 forward declaration of string and supply a __get_c_string().
1244 However, it turns out this is only necessary if compiling with
1245 exceptions enabled so I've a bit more to add yet.
1247 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1248 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1249 src/support/LRegex.h, src/undo.h:
1250 Shuffle the order of the included files a little to ensure that
1251 LString.h gets included before anything that includes stl_string_fwd.h
1253 * src/support/lyxstring.C: We need to #include LString.h instead of
1254 lyxstring.h to get the necessary definition of __get_c_string.
1255 (__get_c_string): New function. This is defined static just like SGI's
1256 although why they need to do this I'm not sure. Perhaps it should be
1257 in lstrings.C instead.
1259 * lib/templates/IEEEtran.lyx: New template file.
1261 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1263 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1264 * intl/Makefile.in (MKINSTALLDIRS): ditto
1266 * src/LyXAction.C (init): changed to hold the LFUN data in a
1267 automatic array in stead of in callso to newFunc, this speeds up
1268 compilation a lot. Also all the memory used by the array is
1269 returned when the init is completed.
1271 * a lot of files: compiled with -Wold-style-cast, changed most of
1272 the reported offenders to C++ style casts. Did not change the
1273 offenders in C files.
1275 * src/trans.h (Match): change argument type to unsigned int.
1277 * src/support/DebugStream.C: fix some types on the streambufs so
1278 that it works on a conforming implementation.
1280 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1282 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1284 * src/support/lyxstring.C: remove the inline added earlier since
1285 they cause a bunch of unsatisfied symbols when linking with dec
1286 cxx. Cxx likes to have the body of inlines at the place where they
1289 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1290 accessing negative bounds in array. This fixes the crash when
1291 inserting accented characters.
1292 * src/trans.h (Match): ditto
1294 * src/buffer.C (Dispatch): since this is a void, it should not try
1295 to return anything...
1297 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1299 * src/buffer.h: removed the two friends from Buffer. Some changes
1300 because of this. Buffer::getFileName and Buffer::setFileName
1301 renamed to Buffer::fileName() and Buffer::fileName(...).
1303 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1305 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1306 and Buffer::update(short) to BufferView. This move is currently
1307 controlled by a define MOVE_TEXT, this will be removed when all
1308 shows to be ok. This move paves the way for better separation
1309 between buffer contents and buffer view. One side effect is that
1310 the BufferView needs a rebreak when swiching buffers, if we want
1311 to avoid this we can add a cache that holds pointers to LyXText's
1312 that is not currently in use.
1314 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1317 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1319 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1321 * lyx_main.C: new command line option -x (or --execute) and
1322 -e (or --export). Now direct conversion from .lyx to .tex
1323 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
1324 Unfortunately, X is still needed and the GUI pops up during the
1327 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1329 * src/Spacing.C: add a using directive to bring stream stuff into
1331 * src/paragraph.C: ditto
1332 * src/buffer.C: ditto
1334 * NEWS: updated a bit the new features of 1.1.3 (took a few things
1335 from Lars' announcement).
1337 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1338 example files from Tino Meinen.
1340 1999-12-06 Allan Rae <rae@lyx.org>
1342 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1344 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1346 * src/support/lyxstring.C: added a lot of inline for no good
1349 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1350 latexWriteEndChanges, they were not used.
1352 * src/layout.h (operator<<): output operator for PageSides
1354 * src/mathed/math_iter.C (my_memcpy): slightly changed.
1356 * some example files: loaded in LyX 1.0.4 and saved again to update
1357 certain constructs (table format)
1359 * a lot of files: did the change to use fstream/iostream for all
1360 writing of files. Done with a close look at Andre Poenitz's patch.
1362 * some files: whitespace changes.
1364 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1366 * src/mathed/math_iter.C (my_memcpy): new function. Since the
1367 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1368 architecture, we provide our own. It is used unconditionnally, but
1369 I do not think this is a performance problem. Thanks to Angus
1370 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1371 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1373 (GetInset): use my_memcpy.
1377 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1378 it is easier to understand, but it uses less TeX-only constructs now.
1380 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1381 elements contain spaces
1383 * lib/configure: regenerated
1385 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1386 elements contain spaces; display the list of programs that are
1389 * autogen.sh: make sure lib/configure is executable
1391 * lib/examples/*: rename the tutorial examples to begin with the
1392 two-letters language code.
1394 * src/lyxfunc.C (getStatus): do not query current font if no
1397 * src/lyx_cb.C (RunScript): use QuoteName
1398 (MenuRunDvips): ditto
1399 (PrintApplyCB): ditto
1401 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1402 around argument, so that it works well with the current shell.
1403 Does not work properly with OS/2 shells currently.
1405 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1406 * src/LyXSendto.C (SendtoApplyCB): ditto
1407 * src/lyxfunc.C (Dispatch): ditto
1408 * src/buffer.C (runLaTeX): ditto
1409 (runLiterate): ditto
1410 (buildProgram): ditto
1412 * src/lyx_cb.C (RunScript): ditto
1413 (MenuMakeLaTeX): ditto
1415 * src/buffer.h (getLatexName): new method
1417 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1419 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1421 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1422 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1423 (create_math_panel): ditto
1425 * src/lyxfunc.C (getStatus): re-activate the code which gets
1426 current font and cursor; add test for export to html.
1428 * src/lyxrc.C (read): remove unreachable break statements; add a
1431 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1433 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1435 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1436 introduced by faulty regex.
1437 * src/buffer.C: ditto
1438 * src/lastfiles.C: ditto
1439 * src/paragraph.C: ditto
1440 * src/table.C: ditto
1441 * src/vspace.C: ditto
1442 * src/insets/figinset.C: ditto
1443 Note: most of these is absolutely harmless, except the one in
1444 src/mathed formula.C.
1446 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
1448 * src/ImportNoweb.C (documentclass): fixed bounds for substr
1449 operation, yielding correct results for the reLyX command.
1451 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1453 * src/support/filetools.C (ExpandPath): removed an over eager
1455 (ReplaceEnvironmentPath): ditto
1457 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1458 shows that we are doing something fishy in our code...
1462 * src/lyxrc.C (read): use a double switch trick to get more help
1463 from the compiler. (the same trick is used in layout.C)
1464 (write): new function. opens a ofstream and pass that to output
1465 (output): new function, takes a ostream and writes the lyxrc
1466 elemts to it. uses a dummy switch to make sure no elements are
1469 * src/lyxlex.h: added a struct pushpophelper for use in functions
1470 with more than one exit point.
1472 * src/lyxlex.[Ch] (GetInteger): made it const
1476 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1478 * src/layout.[hC] : LayoutTags splitted into several enums, new
1479 methods created, better error handling cleaner use of lyxlex. Read
1482 * src/bmtable.[Ch]: change some member prototypes because of the
1483 image const changes.
1485 * commandtags.h, src/LyXAction.C (init): new function:
1486 "preferences-save", saves the lyxrc entries into .lyx/preferences.
1487 This file is not read automatically but you can add \input
1488 preferences to your lyxrc if you want to. We need to discuss how
1491 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1492 in .aux, also remove .bib and .bst files from dependencies when
1495 * src/BufferView.C, src/LyXView.C: add const_cast several places
1496 because of changes to images.
1498 * lib/images/*: same change as for images/*
1500 * lib/lyxrc.example: Default for accept_compound is false not no.
1502 * images/*: changed to be const, however I have som misgivings
1503 about this change so it might be changed back.
1505 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1507 * lib/configure, po/POTFILES.in: regenerated
1509 * autogen.sh: autogenerate lib/configure from lib/configure.m4
1511 * config/lib_configure.m4: removed
1513 * lib/configure.m4: new file (was config/lib_configure.m4)
1515 * configure.in: do not test for rtti, since we do not use it.
1517 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1519 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1520 doubling of allocated space scheme. This makes it faster for large
1521 strings end to use less memory for small strings. xtra rememoved.
1523 * src/insets/figinset.C (waitalarm): commented out.
1524 (GhostscriptMsg): use static_cast
1525 (GhostscriptMsg): use new instead of malloc to allocate memory for
1526 cmap. also delete the memory after use.
1528 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1530 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1531 for changes in bibtex database or style.
1532 (runBibTeX): remove all .bib and .bst files from dep before we
1534 (run): use scanAuc in when dep file already exist.
1536 * src/DepTable.C (remove_files_with_extension): new method
1539 * src/DepTable.[Ch]: made many of the methods const.
1541 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1543 * src/bufferparams.C: make sure that the default textclass is
1544 "article". It used to be the first one by description order, but
1545 now the first one is "docbook".
1547 * src/lyx_main.C (setDebuggingLevel): change type of argument to
1548 string; call Debug::value.
1549 (easyParse): pass complete argument to setDebuggingLevel().
1551 * src/debug.h (value): fix the code that parses debug levels.
1553 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1556 * src/LyXAction.C: use Debug::ACTION as debug channel.
1558 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1560 * NEWS: updated for the future 1.1.3 release.
1562 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1563 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1564 it should. This is of course a controversial change (since many
1565 people will find that their lyx workscreen is suddenly full of
1566 red), but done for the sake of correctness.
1568 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1569 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1571 * src/insets/inseterror.h, src/insets/inseturl.h,
1572 src/insets/insetinfo.h, src/insets/figinset.h,
1573 src/mathed/formulamacro.h, src/mathed/math_macro.h
1574 (EditMessage): add a missing const and add _() to make sure that
1577 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1578 src/insets/insetbib.C, src/support/filetools.C: add `using'
1581 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1582 doing 'Insert index of last word' at the beginning of a paragraph.
1584 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1586 * several files: white-space changes.
1588 * src/mathed/formula.C: removed IsAlpha and IsDigit
1590 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1591 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1594 * src/insets/figinset.C (GetPSSizes): don't break when
1595 "EndComments" is seen. But break when a boundingbox is read.
1597 * all classes inherited from Inset: return value of Clone
1598 changed back to Inset *.
1600 * all classes inherited form MathInset: return value of Clone
1601 changed back to MathedInset *.
1603 * src/insets/figinset.C (runqueue): use a ofstream to output the
1604 gs/ps file. Might need some setpresicion or setw. However I can
1605 see no problem with the current code.
1606 (runqueue): use sleep instead of the alarm/signal code. I just
1607 can't see the difference.
1609 * src/paragraph.C (LyXParagraph): reserve space in the new
1610 paragraph and resize the inserted paragraph to just fit.
1612 * src/lyxfunc.h (operator|=): added operator for func_status.
1614 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1615 check for readable file.
1617 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1618 check for readable file.
1619 (MenuMakeLinuxDoc): ditto
1620 (MenuMakeDocBook): ditto
1621 (MenuMakeAscii): ditto
1622 (InsertAsciiFile): split the test for openable and readable
1624 * src/bmtable.C (draw_bitmaptable): use
1625 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1627 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1628 findtexfile from LaTeX to filetools.
1630 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1631 instead of FilePtr. Needs to be verified by a literate user.
1633 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1635 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1636 (EditMessage): likewise.
1638 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1639 respectively as \textasciitilde and \textasciicircum.
1641 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1643 * src/support/lyxstring.h: made the methods that take iterators
1646 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1647 (regexMatch): made is use the real regex class.
1649 * src/support/Makefile.am: changed to use libtool
1651 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1653 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1655 (MathIsInset ++): changed several macros to be inline functions
1658 * src/mathed/Makefile.am: changed to use libtool
1660 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1662 * src/insets/inset* : Clone changed to const and return type is
1663 the true insettype not just Inset*.
1665 * src/insets/Makefile.am: changed to use libtool
1667 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1669 * src/undo.[Ch] : added empty() and changed some of the method
1672 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1674 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1675 setID use block<> for the bullets array, added const several places.
1677 * src/lyxfunc.C (getStatus): new function
1679 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1680 LyXAction, added const to several funtions.
1682 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1683 a std::map, and to store the dir items in a vector.
1685 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1688 * src/LyXView.[Ch] + other files : changed currentView to view.
1690 * src/LyXAction.[Ch] : ported from the old devel branch.
1692 * src/.cvsignore: added .libs and a.out
1694 * configure.in : changes to use libtool.
1696 * acinclude.m4 : inserted libtool.m4
1698 * .cvsignore: added libtool
1700 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1702 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1703 file name in insets and mathed directories (otherwise the
1704 dependency is not taken in account under cygwin).
1706 * src/text2.C (InsertString[AB]): make sure that we do not try to
1707 read characters past the string length.
1709 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1711 * lib/doc/LaTeXConfig.lyx.in,
1712 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1714 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1715 file saying who created them and when this heppened; this is
1716 useless and annoys tools like cvs.
1718 * lib/layouts/g-brief-{en,de}.layout,
1719 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1720 from Thomas Hartkens <thomas@hartkens.de>.
1722 * src/{insets,mathed}/Makefile.am: do not declare an empty
1723 LDFLAGS, so that it can be set at configure time (useful on Irix
1726 * lib/reLyX/configure.in: make sure that the prefix is set
1727 correctly in LYX_DIR.
1729 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1731 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1732 be used by 'command-sequence' this allows to bind a key to a
1733 sequence of LyX-commands
1734 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1736 * src/LyXAction.C: add "command-sequence"
1738 * src/LyXFunction.C: handling of "command-sequence"
1740 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1741 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1743 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1745 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1747 * src/buffer.C (writeFile): Do not output a comment giving user
1748 and date at the beginning of a .lyx file. This is useless and
1749 annoys cvs anyway; update version number to 1.1.
1751 * src/Makefile.am (LYX_DIR): add this definition, so that a
1752 default path is hardcoded in LyX.
1754 * configure.in: Use LYX_GNU_GETTEXT.
1756 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1757 AM_GNU_GETTEXT with a bug fixed.
1759 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1761 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1763 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1764 which is used to point to LyX data is now LYX_DIR_11x.
1766 * lyx.man: convert to a unix text file; small updates.
1768 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1770 * src/support/LSubstring.[Ch]: made the second arg of most of the
1771 constructors be a const reference.
1773 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1776 * src/support/lyxstring.[Ch] (swap): added missing member function
1777 and specialization of swap(str, str);
1779 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1781 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1782 trace of the old one.
1784 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1785 put the member definitions in undo.C.
1787 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1788 NEW_TEXT and have now only code that was included when this was
1791 * src/intl.C (LCombo): use static_cast
1793 (DispatchCallback): ditto
1795 * src/definitions.h: removed whole file
1797 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1799 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
1800 parsing and stores in a std:map. a regex defines the file format.
1801 removed unneeded members.
1803 * src/bufferparams.h: added several enums from definitions.h here.
1804 Removed unsused destructor. Changed some types to use proper enum
1805 types. use block to have the temp_bullets and user_defined_bullets
1806 and to make the whole class assignable.
1808 * src/bufferparams.C (Copy): removed this functions, use a default
1811 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
1814 * src/buffer.C (readLyXformat2): commend out all that have with
1815 oldpapersize to do. also comment out all that hve to do with
1816 insetlatex and insetlatexdel.
1817 (setOldPaperStuff): commented out
1819 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
1821 * src/LyXAction.C: remove use of inset-latex-insert
1823 * src/mathed/math_panel.C (button_cb): use static_cast
1825 * src/insets/Makefile.am (insets_o_SOURCES): removed
1828 * src/support/lyxstring.C (helper): use the unsigned long
1829 specifier, UL, instead of a static_cast.
1831 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
1833 * src/support/block.h: new file. to be used as a c-style array in
1834 classes, so that the class can be assignable.
1836 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1838 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
1839 NULL, make sure to return an empty string (it is not possible to
1840 set a string to NULL).
1842 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1844 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
1846 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
1848 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
1849 link line, so that Irix users (for example) can set it explicitely to
1852 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
1853 it can be overidden at make time (static or dynamic link, for
1856 * src/vc-backend.C, src/LaTeXFeatures.h,
1857 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
1858 statements to bring templates to global namespace.
1860 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1862 * src/support/lyxstring.C (operator[] const): make it standard
1865 * src/minibuffer.C (Init): changed to reflect that more
1866 information is given from the lyxvc and need not be provided here.
1868 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
1870 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
1872 * src/LyXView.C (UpdateTimerCB): use static_cast
1873 (KeyPressMask_raw_callback): ditto
1875 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
1876 buffer_, a lot of changes because of this. currentBuffer() ->
1877 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
1878 also changes to other files because of this.
1880 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1882 * src/vc-backend.[Ch]: new files. The backends for vc handling,
1883 have no support for RCS and partial support for CVS, will be
1886 * src/insets/ several files: changes because of function name
1887 changes in Bufferview and LyXView.
1889 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
1891 * src/support/LSubstring.[Ch]: new files. These implement a
1892 Substring that can be very convenient to use. i.e. is this
1894 string a = "Mary had a little sheep";
1895 Substring(a, "sheep") = "lamb";
1896 a is now "Mary has a little lamb".
1898 * src/support/LRegex.[Ch]: a regex class that can be used to pick
1899 out patterns and subpatterns of strings. It is used by LSubstring
1900 and also by vc-backend.C
1902 * src/support/lyxstring.C: went over all the assertions used and
1903 tried to correct the wrong ones and flag which of them is required
1904 by the standard. some bugs found because of this. Also removed a
1905 couple of assertions.
1907 * src/support/Makefile.am (libsupport_a_SOURCES): added
1908 LSubstring.[Ch] and LRegex.[Ch]
1910 * src/support/FileInfo.h: have struct stat buf as an object and
1911 not a pointer to one, some changes because of this.
1913 * src/LaTeXFeatures.C (getTClassPreamble): also use the
1914 information in layout when adding the layouts preamble to the
1917 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
1920 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
1921 because of bug in OS/2.
1923 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1925 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
1926 \verbatim@font instead of \ttfamily, so that it can be redefined.
1928 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
1929 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
1930 src/layout.h, src/text2.C: add 'using' directive to bring the
1931 STL templates we need from the std:: namespace to the global one.
1932 Needed by DEC cxx in strict ansi mode.
1934 * src/support/LIstream.h,src/support/LOstream.h,
1935 src/support/lyxstring.h,src/table.h,
1936 src/lyxlookup.h: do not include <config.h> in header
1937 files. This should be done in the .C files only.
1939 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
1943 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1945 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
1946 from Kayvan to fix the tth invokation.
1948 * development/lyx.spec.in: updates from Kayvan to reflect the
1949 changes of file names.
1951 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1953 * src/text2.C (InsertStringB): use std::copy
1954 (InsertStringA): use std::copy
1956 * src/bufferlist.C: use a vector to store the buffers in. This is
1957 an internal change and should not affect any other thing.
1959 * src/BufferView.C (waitForX): use XSync instead of the lengthy
1962 * src/text.C (Fill): fix potential bug, one off bug.
1964 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1966 * src/Makefile.am (lyx_main.o): add more files it depends on.
1968 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
1970 * src/support/lyxstring.C: use size_t for the reference count,
1971 size, reserved memory and xtra.
1972 (internal_compare): new private member function. Now the compare
1973 functions should work for std::strings that have embedded '\0'
1975 (compare): all compare functions rewritten to use
1978 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1980 * src/support/lyxstring.C (compare): pass c_str()
1981 (compare): pass c_str
1982 (compare): pass c_str
1984 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1986 * src/support/DebugStream.C: <config.h> was not included correctly.
1988 * lib/configure: forgot to re-generate it :( I'll make this file
1989 auto generated soon.
1991 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1993 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
1996 * src/support/lyxstring.C: some changes from length() to rep->sz.
1997 avoids a function call.
1999 * src/support/filetools.C (SpaceLess): yet another version of the
2000 algorithm...now per Jean-Marc's suggestions.
2002 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2004 * src/layout.C (less_textclass_desc): functor for use in sorting
2006 (LyXTextClass::Read): sort the textclasses after reading.
2008 * src/support/filetools.C (SpaceLess): new version of the
2009 SpaceLess functions. What problems does this one give? Please
2012 * images/banner_bw.xbm: made the arrays unsigned char *
2014 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2016 * src/support/lyxstring.C (find): remove bogus assertion in the
2017 two versions of find where this has not been done yet.
2019 * src/support/lyxlib.h: add missing int return type to
2022 * src/menus.C (ShowFileMenu): disable exporting to html if no
2023 html export command is present.
2025 * config/lib_configure.m4: add a test for an HTML converter. The
2026 programs checked for are, in this order: tth, latex2html and
2029 * lib/configure: generated from config/lib_configure.m4.
2031 * src/lyxfunc.C (Dispatch): update and improve the execution of an
2032 html converter. The parameters are now passed through $$FName and
2033 $$OutName, instead of standard input/output.
2035 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2037 * lib/lyxrc.example: update description of \html_command.
2038 add "quotes" around \screen_font_xxx font setting examples to help
2039 people who use fonts with spaces in their names.
2041 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2043 * Distribution files: updates for v1.1.2
2045 * src/support/lyxstring.C (find): remove bogus assert and return
2046 npos for the same condition.
2048 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2050 * added patch for OS/2 from SMiyata.
2052 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2054 * src/text2.C (CutSelection): make space_wrapped a bool
2055 (CutSelection): dont declare int i until we have to.
2056 (alphaCounter): return a char const *.
2058 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2060 * src/support/syscall.C (Systemcalls::kill):
2061 src/support/filetools.C (PutEnv, PutEnvPath):
2062 src/lyx_cb.C (addNewlineAndDepth):
2063 src/FontInfo.C (FontInfo::resize): condition some #warning
2064 directives with WITH_WARNINGS.
2067 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2069 * src/layout.[Ch] + several files: access to class variables
2070 limited and made accessor functions instead a lot of code changed
2071 becuase of this. Also instead of returning pointers often a const
2072 reference is returned instead.
2074 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2076 * src/Makefile.am (dist-hook): added used to remove the CVS from
2077 cheaders upon creating a dist
2078 (EXTRA_DIST): added cheaders
2080 * src/support/lstrings.C (tostr(char)): fix it to handle param as
2081 a character not as a small integer.
2083 * src/support/lyxstring.C (find): removed Assert and added i >=
2084 rep->sz to the first if.
2086 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2088 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2089 src/LyXView.C src/buffer.C src/bufferparams.C
2090 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
2091 src/text2.C src/insets/insetinclude.C:
2092 lyxlayout renamed to textclasslist.
2094 * src/layout.C: some lyxerr changes.
2096 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2097 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2098 (LyXLayoutList): removed all traces of this class.
2099 (LyXTextClass::Read): rewrote LT_STYLE
2100 (LyXTextClass::hasLayout): new function
2101 (LyXTextClass::GetLayout): rewritten to return an iterator + has
2102 both const and nonconst version.
2103 (LyXTextClass::delete_layout): new function.
2104 (LyXTextClassList::Style): bug fix. do the right thing if layout
2106 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2107 (LyXTextClassList::NameOfLayout): ditto
2108 (LyXTextClassList::Load): ditto
2110 * src/buffer.C (makeLaTeXFile): new access to layoutlist
2112 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2114 * src/LyXAction.C (LookupFunc): added a workaround for sun
2115 compiler, on the other hand...we don't know if the current code
2116 compiles on sun at all...
2118 * src/support/filetools.C (CleanupPath): subst fix
2120 * src/insets/insetbib.C (delDatabase): subst fix, this looks
2123 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2124 complained about this one?
2126 * src/insets/insetinclude.C (Latex): subst fix
2128 * src/insets/insetbib.C (getKeys): subst fix
2130 * src/LyXSendto.C (SendtoApplyCB): subst fix
2132 * src/lyx_main.C (init): subst fix
2134 * src/layout.C (Read): subst fix
2136 * src/lyx_sendfax_main.C (button_send): subst fix
2138 * src/buffer.C (RoffAsciiTable): subst fix
2140 * src/lyx_cb.C (MenuFax): subst fix
2141 (PrintApplyCB): subst fix
2143 1999-10-26 Juergen Vigna <jug@sad.it>
2145 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2147 (Read): Cleaned up this code so now we read only format vestion >= 5
2149 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2151 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2152 come nobody has complained about this one?
2154 * src/insets/insetinclude.C (Latex): subst fix
2156 * src/insets/insetbib.C (getKeys): subst fix
2158 * src/lyx_main.C (init): subst fix
2160 * src/layout.C (Read): subst fix
2162 * src/buffer.C (RoffAsciiTable): subst fix
2164 * src/lyx_cb.C (MenuFax): subst fix.
2166 * src/layout.[hC] + some other files: rewrote to use
2167 std::container to store textclasses and layouts in.
2168 Simplified, removed a lot of code. Make all classes
2169 assignable. Further simplifications and review of type
2170 use still to be one.
2172 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2173 lastfiles to create the lastfiles partr of the menu.
2175 * src/lastfiles.[Ch]: rewritten to use deque to store the
2176 lastfiles in. Uses fstream for reading and writing. Simplifies
2179 * src/support/syscall.C: remove explicit cast.
2181 * src/BufferView.C (CursorToggleCB): removed code snippets that
2183 use explicat C++ style casts instead of C style casts. also use
2184 u_vdata instea of passing pointers in longs.
2186 * src/PaperLayout.C: removed code snippets that were commented out.
2188 * src/lyx_gui_misc.C: removed code snippets that were commented out.
2190 * src/lyx_main.C: removed code snippets that wer commented out.
2192 * src/paragraph.C: removed code snippets that were commented out.
2194 * src/lyxvc.C (logClose): use static_cast
2196 (viewLog): remove explicit cast to void*
2197 (showLog): removed old commented code
2199 * src/menus.C: use static_cast instead of C style casts. use
2200 u_vdata instead of u_ldata. remove explicit cast to (long) for
2201 pointers. Removed old code that was commented out.
2203 * src/insets/inset.C: removed old commented func
2205 * src/insets/insetref.C (InsetRef): removed old code that had been
2206 commented out for a long time.
2208 (escape): removed C style cast
2210 * src/insets/insetlatexaccent.C (Draw): removed old commented code
2212 * src/insets/insetlatex.C (Draw): removed old commented code
2213 (Read): rewritten to use string
2215 * src/insets/insetlabel.C (escape): removed C style cast
2217 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2219 * src/insets/insetindex.C: use static_cast and u_vdata, removed
2222 * src/insets/insetinclude.h: removed a couple of stupid bools
2224 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2225 (Clone): remove C style cast
2226 (getKeys): changed list to lst because of std::list
2228 * src/insets/inseterror.C (Draw): removed som old commented code.
2230 * src/insets/insetcommand.C (Draw): removed some old commented code.
2232 * src/insets/insetbib.C (bibitem_cb): removed code that has been
2233 commented out forever.
2234 (bibitem_cb): use static_cast instead of C style cast
2235 use of vdata changed to u_vdata.
2237 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2239 (CloseUrlCB): use static_cast instead of C style cast.
2240 (CloseUrlCB): added a fl_free form...it seemed to be missing.
2242 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2243 (C_InsetInfo_CloseInfoCB): forward the ob parameter
2244 (CloseInfoCB): static_cast from ob->u_vdata instead.
2245 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2248 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2249 (C_InsetError_CloseErrorCB): forward the ob parameter
2250 (CloseErrorCB): static_cast from ob->u_vdata instead.
2252 * src/vspace.h: include LString.h since we use string in this class.
2254 * src/vspace.C (lyx_advance): changed name from advance because of
2255 nameclash with stl. And since we cannot use namespaces yet...I
2256 used a lyx_ prefix instead. Expect this to change when we begin
2259 * src/BufferView.[Ch] (BufferView::~BufferView): removed
2261 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2262 and removed now defunct constructor and deconstructor.
2264 * src/BufferView.h: have backstack as a object not as a pointer.
2265 removed initialization from constructor. added include for BackStack
2267 * development/lyx.spec.in (%build): add CFLAGS also.
2269 * src/screen.C (drawFrame): removed another warning.
2271 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2273 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2274 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2275 README and ANNOUNCE a bit for the next release. More work is
2278 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2279 unbreakable if we are in freespacing mode (LyX-Code), but not in
2282 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
2284 * src/BackStack.h: fixed initialization order in constructor
2286 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2288 * acinclude.m4 (VERSION): new rules for when a version is
2289 development, added also a variable for prerelease.
2290 (warnings): we set with_warnings=yes for prereleases
2291 (lyx_opt): prereleases compile with same optimization as development
2292 (CXXFLAGS): only use pedantic if we are a development version
2294 * src/BufferView.C (restorePosition): don't do anything if the
2297 * src/BackStack.h: added member empty, use this to test if there
2298 is anything to pop...
2300 1999-10-25 Juergen Vigna <jug@sad.it>
2303 * forms/layout_forms.fd +
2304 * forms/latexoptions.fd +
2305 * lyx.fd: changed for various form resize issues
2307 * src/mathed/math_panel.C +
2308 * src/insets/inseterror.C +
2309 * src/insets/insetinfo.C +
2310 * src/insets/inseturl.C +
2311 * src/insets/inseturl.h +
2314 * src/PaperLayout.C +
2315 * src/ParagraphExtra.C +
2316 * src/TableLayout.C +
2318 * src/layout_forms.C +
2325 * src/menus.C: fixed various resize issues. So now forms can be
2326 resized savely or not be resized at all.
2328 * forms/form_url.fd +
2329 * src/insets/form_url.[Ch]: added because it's cleaner and easier
2332 * src/insets/Makefile.am: added files form_url.[Ch]
2334 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2336 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2337 (and presumably 6.2).
2339 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2340 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2341 remaining static member callbacks.
2343 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2346 * src/support/lyxstring.h: declare struct Srep as friend of
2347 lyxstring, since DEC cxx complains otherwise.
2349 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2351 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2353 * src/LaTeX.C (run): made run_bibtex also depend on files with
2355 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2356 are put into the dependency file.
2358 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2359 the code has shown itself to work
2360 (create_ispell_pipe): removed another warning, added a comment
2363 * src/minibuffer.C (ExecutingCB): removed code that has been
2364 commented out a long time
2366 * src/lyxfunc.C (processKeyEvent): removed some very old commented
2367 out code + a warning.
2369 * src/support/lyxstring.h: comment out the three private
2370 operators, when compiling with string ansi conforming compilers
2373 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2375 (pixmapFromBitmapData): change type of bdata to be unsigned char *
2376 (pixmapFromBitmapData): add a reinterpret_cast in the call to
2379 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2382 * src/mathed/math_panel.C (create_math_panel): remove explicit
2385 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2388 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2389 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2390 to XCreatePixmapFromBitmapData
2391 (fl_set_bmtable_data): change the last argument to be unsigned
2393 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2394 and bh to be unsigned int, remove explicit casts in call to
2395 XReadBitmapFileData.
2397 * images/arrows.xbm: made the arrays unsigned char *
2398 * images/varsz.xbm: ditto
2399 * images/misc.xbm: ditto
2400 * images/greek.xbm: ditto
2401 * images/dots.xbm: ditto
2402 * images/brel.xbm: ditto
2403 * images/bop.xbm: ditto
2405 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2407 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
2408 (LYX_PROG_CXX): added -pedantic to g++ compile options when
2409 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2411 (LYX_CXX_CHEADERS): added <clocale> to the test.
2413 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
2415 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2417 * src/support/lyxstring.C (append): fixed something that must be a
2418 bug, rep->assign was used instead of rep->append.
2420 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2423 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2424 lyx insert double chars. Fix spotted by Kayvan.
2426 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2428 * Fixed the tth support. I messed up with the Emacs patch apply feature
2429 and omitted the changes in lyxrc.C.
2431 1999-10-22 Juergen Vigna <jug@sad.it>
2433 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2435 * src/lyx_cb.C (MenuInsertRef) +
2436 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2437 the form cannot be resized under it limits (fixes a segfault)
2439 * src/lyx.C (create_form_form_ref) +
2440 * forms/lyx.fd: Changed Gravity on name input field so that it is
2443 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2445 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2446 <ostream> and <istream>.
2448 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2449 whether <fstream> provides the latest standard features, or if we
2450 have an oldstyle library (like in egcs).
2451 (LYX_CXX_STL_STRING): fix the test.
2453 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2454 code on MODERN_STL_STREAM.
2456 * src/support/lyxstring.h: use L{I,O}stream.h.
2458 * src/support/L{I,O}stream.h: new files, designed to setup
2459 correctly streams for our use
2460 - includes the right header depending on STL capabilities
2461 - puts std::ostream and std::endl (for LOStream.h) or
2462 std::istream (LIStream.h) in toplevel namespace.
2464 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2466 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2467 was a bib file that had been changed we ensure that bibtex is run.
2468 (runBibTeX): enhanced to extract the names of the bib files and
2469 getting their absolute path and enter them into the dep file.
2470 (findtexfile): static func that is used to look for tex-files,
2471 checks for absolute patchs and tries also with kpsewhich.
2472 Alternative ways of finding the correct files are wanted. Will
2474 (do_popen): function that runs a command using popen and returns
2475 the whole output of that command in a string. Should be moved to
2478 * src/DepTable.[Ch] (extchanged): new function that returns true if a
2479 file with extension ext has changed.
2481 * src/insets/figinset.C: added ifdef guards around the fl_free
2482 code that jug commented out. Now it is commented out when
2483 compiling with XForms == 0.89.
2485 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2486 to lyxstring.C, and only keep a forward declaration in
2487 lyxstring.h. Simplifies the header file a bit and should help a
2488 bit on compile time too. Also changes to Srep will not mandate a
2489 recompile of code just using string.
2490 (~lyxstring): definition moved here since it uses srep.
2491 (size): definition moved here since it uses srep.
2493 * src/support/lyxstring.h: removed a couple of "inline" that should
2496 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2498 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2501 1999-10-21 Juergen Vigna <jug@sad.it>
2503 * src/table.C (SetPWidth): Just a small fix so the alignment is not
2504 set to left if I just remove the width entry (or it is empty).
2506 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2507 paragraph when having dummy paragraphs.
2509 1999-10-20 Juergen Vigna <jug@sad.it>
2511 * src/insets/figinset.C: just commented some fl_free_form calls
2512 and added warnings so that this calls should be activated later
2513 again. This avoids for now a segfault, but we have a memory leak!
2515 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2516 'const char * argument' to 'string argument', this should
2517 fix some Asserts() in lyxstring.C.
2519 * src/lyxfunc.h: Removed the function argAsString(const char *)
2520 as it is not used anymore.
2522 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
2524 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2527 * src/Literate.h: some funcs moved from public to private to make
2528 interface clearer. Unneeded args removed.
2530 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2532 (scanBuildLogFile): ditto
2534 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2535 normal TeX Error. Still room for improvement.
2537 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2539 * src/buffer.C (insertErrors): changes to make the error
2540 desctription show properly.
2542 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2545 * src/support/lyxstring.C (helper): changed to use
2546 sizeof(object->rep->ref).
2547 (operator>>): changed to use a pointer instead.
2549 * src/support/lyxstring.h: changed const reference & to value_type
2550 const & lets see if that helps.
2552 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2554 * Makefile.am (rpmdist): fixed to have non static package and
2557 * src/support/lyxstring.C: removed the compilation guards
2559 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2562 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2563 conditional compile of lyxstring.Ch
2565 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2566 stupid check, but it is a lot better than the bastring hack.
2567 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2569 * several files: changed string::erase into string::clear. Not
2572 * src/chset.C (encodeString): use a char temporary instead
2574 * src/table.C (TexEndOfCell): added tostr around
2575 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2576 (TexEndOfCell): ditto
2577 (TexEndOfCell): ditto
2578 (TexEndOfCell): ditto
2579 (DocBookEndOfCell): ditto
2580 (DocBookEndOfCell): ditto
2581 (DocBookEndOfCell): ditto
2582 (DocBookEndOfCell): ditto
2584 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2586 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2588 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2589 (MenuBuildProg): added tostr around ret
2590 (MenuRunChktex): added tostr around ret
2591 (DocumentApplyCB): added tostr around ret
2593 * src/chset.C (encodeString): added tostr around t->ic
2595 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2596 (makeLaTeXFile): added tostr around tocdepth
2597 (makeLaTeXFile): added tostr around ftcound - 1
2599 * src/insets/insetbib.C (setCounter): added tostr around counter.
2601 * src/support/lyxstring.h: added an operator+=(int) to catch more
2604 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2605 (lyxstring): We DON'T allow NULL pointers.
2607 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2609 * src/mathed/math_macro.C (MathMacroArgument::Write,
2610 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2611 when writing them out.
2613 * src/LString.C: remove, since it is not used anymore.
2615 * src/support/lyxstring.C: condition the content to
2616 USE_INCLUDED_STRING macro.
2618 * src/mathed/math_symbols.C, src/support/lstrings.C,
2619 src/support/lyxstring.C: add `using' directive to specify what
2620 we need in <algorithm>. I do not think that we need to
2621 conditionalize this, but any thought is appreciated.
2623 * many files: change all callback functions to "C" linkage
2624 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2625 strict_ansi. Those who were static are now global.
2626 The case of callbacks which are static class members is
2627 trickier, since we have to make C wrappers around them (see
2628 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2629 did not finish this yet, since it defeats the purpose of
2630 encapsulation, and I am not sure what the best route is.
2632 1999-10-19 Juergen Vigna <jug@sad.it>
2634 * src/support/lyxstring.C (lyxstring): we permit to have a null
2635 pointer as assignment value and just don't assign it.
2637 * src/vspace.C (nextToken): corrected this function substituting
2638 find_first(_not)_of with find_last_of.
2640 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2641 (TableOptCloseCB) (TableSpeCloseCB):
2642 inserted fl_set_focus call for problem with fl_hide_form() in
2645 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2647 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2650 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2652 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2653 LyXLex::next() and not eatline() to get its argument.
2655 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2657 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2658 instead, use fstreams for io of the depfile, removed unneeded
2659 functions and variables.
2661 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2662 vector instead, removed all functions and variables that is not in
2665 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2667 * src/buffer.C (insertErrors): use new interface to TeXError
2669 * Makefile.am (rpmdist): added a rpmdist target
2671 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2672 per Kayvan's instructions.
2674 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2676 * src/Makefile.am: add a definition for localedir, so that locales
2677 are found after installation (Kayvan)
2679 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2681 * development/.cvsignore: new file.
2683 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2685 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2686 C++ compiler provides wrappers for C headers and use our alternate
2689 * configure.in: use LYX_CXX_CHEADERS.
2691 * src/cheader/: new directory, populated with cname headers from
2692 libstdc++-2.8.1. They are a bit old, but probably good enough for
2693 what we want (support compilers who lack them).
2695 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2696 from includes. It turns out is was stupid.
2698 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2700 * lib/Makefile.am (install-data-local): forgot a ';'
2701 (install-data-local): forgot a '\'
2702 (libinstalldirs): needed after all. reintroduced.
2704 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2706 * configure.in (AC_OUTPUT): added lyx.spec
2708 * development/lyx.spec: removed file
2710 * development/lyx.spec.in: new file
2712 * po/*.po: merged with lyx.pot becuase of make distcheck
2714 * lib/Makefile.am (dist-hook): added dist-hook so that
2715 documentation files will be included when doing a make
2716 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2717 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2719 more: tried to make install do the right thing, exclude CVS dirs
2722 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2723 Path would fit in more nicely.
2725 * all files that used to use pathstack: uses now Path instead.
2726 This change was a lot easier than expected.
2728 * src/support/path.h: new file
2730 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2732 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2734 * src/support/lyxstring.C (getline): Default arg was given for
2737 * Configure.cmd: removed file
2739 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2741 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2742 streams classes and types, add the proper 'using' statements when
2743 MODERN_STL is defined.
2745 * src/debug.h: move the << operator definition after the inclusion
2748 * src/support/filetools.C: include "LAssert.h", which is needed
2751 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2754 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2755 include "debug.h" to define a proper ostream.
2757 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2759 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2760 method to the SystemCall class which can kill a process, but it's
2761 not fully implemented yet.
2763 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2765 * src/support/FileInfo.h: Better documentation
2767 * src/lyxfunc.C: Added support for buffer-export html
2769 * src/menus.C: Added Export->As HTML...
2771 * lib/bind/*.bind: Added short-cut for buffer-export html
2773 * src/lyxrc.*: Added support for new \tth_command
2775 * lib/lyxrc.example: Added stuff for new \tth_command
2777 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2779 * lib/Makefile.am (IMAGES): removed images/README
2780 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2781 installes in correct place. Check permisions is installed
2784 * src/LaTeX.C: some no-op changes moved declaration of some
2787 * src/LaTeX.h (LATEX_H): changed include guard name
2789 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2791 * lib/reLyX/Makefile.am: install noweb2lyx.
2793 * lib/Makefile.am: install configure.
2795 * lib/reLyX/configure.in: declare a config aux dir; set package
2796 name to lyx (not sure what the best solution is); generate noweb2lyx.
2798 * lib/layouts/egs.layout: fix the bibliography layout.
2800 1999-10-08 Jürgen Vigna <jug@sad.it>
2802 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
2803 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
2804 it returned without continuing to search the path.
2806 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2808 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
2809 also fixes a bug. It is not allowed to do tricks with std::strings
2810 like: string a("hei"); &a[e]; this will not give what you
2811 think... Any reason for the complexity in this func?
2813 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
2815 * Updated README and INSTALL a bit, mostly to check that my
2816 CVS rights are correctly set up.
2818 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2820 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
2821 does not allow '\0' chars but lyxstring and std::string does.
2823 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2825 * autogen.sh (AUTOCONF): let the autogen script create the
2826 POTFILES.in file too. POTFILES.in should perhaps now not be
2827 included in the cvs module.
2829 * some more files changed to use C++ includes instead of C ones.
2831 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
2833 (Reread): added tostr to nlink. buggy output otherwise.
2834 (Reread): added a string() around szMode when assigning to Buffer,
2835 without this I got a log of garbled info strings.
2837 * acconfig.h: commented out the PTR_AS_INT macros. They should not
2840 * I have added several ostream & operator<<(ostream &, some_type)
2841 functions. This has been done to avoid casting and warnings when
2842 outputting enums to lyxerr. This as thus eliminated a lot of
2843 explicit casts and has made the code clearer. Among the enums
2844 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
2845 mathed enums, some font enum the Debug::type enum.
2847 * src/support/lyxstring.h (clear): missing method. equivalent of
2850 * all files that contained "stderr": rewrote constructs that used
2851 stderr to use lyxerr instead. (except bmtable)
2853 * src/support/DebugStream.h (level): and the passed t with
2854 Debug::ANY to avoid spurious bits set.
2856 * src/debug.h (Debug::type value): made it accept strings of the
2859 * configure.in (Check for programs): Added a check for kpsewhich,
2860 the latex generation will use this later to better the dicovery of
2863 * src/BufferView.C (create_view): we don't need to cast this to
2864 (void*) that is done automatically.
2865 (WorkAreaButtonPress): removed some dead code.
2867 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2869 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
2870 is not overwritten when translated (David Sua'rez de Lis).
2872 * lib/CREDITS: Added David Sua'rez de Lis
2874 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
2876 * src/bufferparams.C (BufferParams): default input encoding is now
2879 * acinclude.m4 (cross_compiling): comment out macro
2880 LYX_GXX_STRENGTH_REDUCE.
2882 * acconfig.h: make sure that const is not defined (to empty) when
2883 we are compiling C++. Remove commented out code using SIZEOF_xx
2886 * configure.in : move the test for const and inline as late as
2887 possible so that these C tests do not interefere with C++ ones.
2888 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
2889 has not been proven.
2891 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2893 * src/table.C (getDocBookAlign): remove bad default value for
2896 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
2898 (ShowFileMenu2): ditto.
2900 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
2903 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2905 * Most files: finished the change from the old error code to use
2906 DebugStream for all lyxerr debugging. Only minor changes remain
2907 (e.g. the setting of debug levels using strings instead of number)
2909 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2911 * src/layout.C (Add): Changed to use compare_no_case instead of
2914 * src/FontInfo.C: changed loop variable type too string::size_type.
2916 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2918 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
2919 set ETAGS_ARGS to --c++
2921 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
2923 * src/table.C (DocBookEndOfCell): commented out two unused variables
2925 * src/paragraph.C: commented out four unused variables.
2927 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
2928 insed a if clause with type string::size_type.
2930 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
2933 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
2935 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
2936 variable, also changed loop to go from 0 to lenght + 1, instead of
2937 -1 to length. This should be correct.
2939 * src/LaTeX.C (scanError): use string::size_type as loop variable
2942 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
2943 (l.896) since y_tmp and row was not used anyway.
2945 * src/insets/insetref.C (escape): use string::size_type as loop
2948 * src/insets/insetquotes.C (Width): use string::size_type as loop
2950 (Draw): use string::size_type as loop variable type.
2952 * src/insets/insetlatexaccent.C (checkContents): use
2953 string::size_type as loop variable type.
2955 * src/insets/insetlabel.C (escape): use string::size_type as loop
2958 * src/insets/insetinfo.C: added an extern for current_view.
2960 * src/insets/insetcommand.C (scanCommand): use string::size_type
2961 as loop variable type.
2963 * most files: removed the RCS tags. With them we had to recompile
2964 a lot of files after a simple cvs commit. Also we have never used
2965 them for anything meaningful.
2967 * most files: tags-query-replace NULL 0. As adviced several plases
2968 we now use "0" instead of "NULL" in our code.
2970 * src/support/filetools.C (SpaceLess): use string::size_type as
2973 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2975 * src/paragraph.C: fixed up some more string stuff.
2977 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2979 * src/support/filetools.h: make modestr a std::string.
2981 * src/filetools.C (GetEnv): made ch really const.
2983 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
2984 made code that used these use max/min from <algorithm> instead.
2986 * changed several c library include files to their equivalent c++
2987 library include files. All is not changed yet.
2989 * created a support subdir in src, put lyxstring and lstrings
2990 there + the extra files atexit, fileblock, strerror. Created
2991 Makefile.am. edited configure.in and src/Makefile.am to use this
2992 new subdir. More files moved to support.
2994 * imported som of the functions from repository lyx, filetools
2996 * ran tags-query-replace on LString -> string, corrected the bogus
2997 cases. Tried to make use of lstrings.[hC], debugged a lot. There
2998 is still some errors in there. This is errors where too much or
2999 too litle get deleted from strings (string::erase, string::substr,
3000 string::replace), there can also be some off by one errors, or
3001 just plain wrong use of functions from lstrings. Viewing of quotes
3004 * LyX is now running fairly well with string, but there are
3005 certainly some bugs yet (see above) also string is quite different
3006 from LString among others in that it does not allow null pointers
3007 passed in and will abort if it gets any.
3009 * Added the revtex4 files I forgot when setting up the repository.
3011 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3013 * All over: Tried to clean everything up so that only the files
3014 that we really need are included in the cvs repository.
3015 * Switched to use automake.
3016 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3017 * Install has not been checked.
3019 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3021 * po/pt.po: Three errors:
3022 l.533 and l.538 format specification error
3023 l. 402 duplicate entry, I just deleted it.