1 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
4 resize due to wrong pixmap beeing used. Also took the opurtunity
5 to make the LyXScreen stateless on regard to WorkArea and some
6 general cleanup in the same files.
8 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
10 * src/Makefile.am: add missing direction.h
12 * src/PainterBase.h: made the width functions const.
14 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
17 * src/insets/insetcommand.C (draw): draw Editable as buttons.
19 * src/insets/insetlatexaccent.C (draw): make the accents draw
20 better, at present this will only work well with iso8859-1.
22 * several files: remove the old drawing code, now we use the new
25 * several files: remove support for mono_video, reverse_video and
28 2000-02-17 Juergen Vigna <jug@sad.it>
30 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
31 int ** as we have to return the pointer, otherwise we have only
32 NULL pointers in the returning function.
34 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
36 * src/LaTeX.C (operator()): quote file name when running latex.
38 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
40 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
41 (bubble tip), this removes our special handling of this.
43 * Remove all code that is unused now that we have the new
44 workarea. (Code that are not active when NEW_WA is defined.)
46 * Make the uses of XSync not conditionalized on define USE_XSYNC.
48 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
50 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
51 nonexisting layout; correctly redirect obsoleted layouts.
53 * lib/lyxrc.example: document \view_dvi_paper_option
55 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
58 * src/lyx_cb.C (RunScript): handle $$FName for command names.
59 (PreviewDVI): handle the view_dvi_paper_option variable.
60 [Both from Roland Krause]
62 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
64 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
65 char const *, int, LyXFont)
66 (text(int, int, string, LyXFont)): ditto
68 * src/text.C (InsertCharInTable): attempt to fix the double-space
69 feature in tables too.
70 (BackspaceInTable): ditto.
71 (GetVisibleRow): make bottom pagebreak line be a onoff line.
73 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
75 * src/text2.C (owner): only complain if owner_ is set and bv != 0
77 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
78 newly found text in textcache to this.
79 (buffer): set the owner of the text put into the textcache to 0
81 * src/insets/figinset.C (draw): fixed the drawing of figures with
84 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
85 drawing of mathframe, hfills, protected space, table lines. I have
86 now no outstanding drawing problems with the new Painter code.
88 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
90 * src/PainterBase.C (ellipse, circle): do not specify the default
93 * src/LColor.h: add using directive.
95 * src/Painter.[Ch]: change return type of methods from Painter& to
96 PainterBase&. Add a using directive.
98 * src/WorkArea.C: wrap xforms callbacks in C functions
101 * lib/layouts/foils.layout: font fix and simplifications from Carl
104 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
106 * a lot of files: The Painter, LColor and WorkArea from the old
107 devel branch has been ported to lyx-devel. Some new files and a
108 lot of #ifdeffed code. The new workarea is enabled by default, but
109 if you want to test the new Painter and LColor you have to compile
110 with USE_PAINTER defined (do this in config.h f.ex.) There are
111 still some rought edges, and I'd like some help to clear those
112 out. It looks stable (loads and displays the Userguide very well).
115 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
117 * src/buffer.C (pop_tag): revert to the previous implementation
118 (use a global variable for both loops).
120 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
122 * src/lyxrc.C (LyXRC): change slightly default date format.
124 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
125 there is an English text with a footnote that starts with a Hebrew
126 paragraph, or vice versa.
127 (TeXFootnote): ditto.
129 * src/text.C (LeftMargin): allow for negative values for
130 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
133 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
134 for input encoding (cyrillic)
136 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
138 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
141 * src/toolbar.C (set): ditto
142 * src/insets/insetbib.C (create_form_citation_form): ditto
144 * lib/CREDITS: added Dekel Tsur.
146 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
147 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
148 hebrew supports files from Dekel Tsur.
150 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
151 <tzafrir@technion.ac.il>
153 * src/lyxrc.C: put \date_insert_format at the right place.
155 * src/buffer.C (makeLaTeXFile): fix the handling of
156 BufferParams::sides when writing out latex files.
158 * src/BufferView2.C: add a "using" directive.
160 * src/support/lyxsum.C (sum): when we use lyxstring,
161 ostringstream::str needs an additional .c_str().
163 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
165 * src/support/filetools.C (ChangeExtension): patch from Etienne
168 * src/TextCache.C (show): remove const_cast and make second
169 parameter non-const LyXText *.
171 * src/TextCache.h: use non const LyXText in show.
173 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
176 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
178 * src/support/lyxsum.C: rework to be more flexible.
180 * several places: don't check if a pointer is 0 if you are going
183 * src/text.C: remove some dead code.
185 * src/insets/figinset.C: remove some dead code
187 * src/buffer.C: move the BufferView funcs to BufferView2.C
188 remove all support for insetlatexdel
189 remove support for oldpapersize stuff
190 made some member funcs const
192 * src/kbmap.C: use a std::list to store the bindings in.
194 * src/BufferView2.C: new file
196 * src/kbsequence.[Ch]: new files
198 * src/LyXAction.C + others: remove all trace of buffer-previous
200 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
201 only have one copy in the binary of this table.
203 * hebrew patch: moved some functions from LyXText to more
204 appropriate places. (LyXParagraph, BufferParams, LyXFont)
206 * several files: remove support for XForms older than 0.88
208 remove some #if 0 #endif code
210 * src/TextCache.[Ch]: new file. Holds the textcache.
212 * src/BufferView.C: changes to use the new TextCache interface.
213 (waitForX): remove the now unused code.
215 * src/BackStack.h: remove some commented code
217 * lib/bind/emacs.bind: remove binding for buffer-previous
219 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
221 * applied the hebrew patch.
223 * src/lyxrow.h: make sure that all Row variables are initialized.
225 * src/text2.C (TextHandleUndo): comment out a delete, this might
226 introduce a memory leak, but should also help us to not try to
227 read freed memory. We need to look at this one.
229 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
230 (LyXParagraph): initalize footnotekind.
232 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
233 forgot this when applying the patch. Please heed the warnings.
235 * src/BufferView.C (buffer): a fix for the buffer-reload problem
236 (aka. reformat problem)
238 * src/bufferlist.C (exists): made const, and use const_iterator
239 (isLoaded): new func.
240 (release): use std::find to find the correct buffer.
242 * src/bufferlist.h: made getState a const func.
243 made empty a const func.
244 made exists a const func.
247 2000-02-01 Juergen Vigna <jug@sad.it>
249 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
251 * po/it.po: updated a bit the italian po file and also changed the
252 'file nuovo' for newfile to 'filenuovo' without a space, this did
255 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
256 for the new insert_date command.
258 * src/lyxfunc.C (Dispatch): added support for a insert_date function
259 from jdblair, to insert a date into the current text conforming to
260 a strftime format (for now only considering the locale-set and not
261 the document-language).
263 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
265 * src/lyxfont.C (textWidth): hopefully better fix for the Array
266 Bounds Read error seen by purify. The problem was that islower is
267 a macros which takes an unsigned char and uses it as an index for
268 in array of characters properties (and is thus subject to the
272 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
273 correctly the paper sides radio buttons.
274 (UpdateDocumentButtons): ditto.
276 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
278 * src/kbmap.C (getsym + others): change to return unsigned int,
279 returning a long can give problems on 64 bit systems. (I assume
280 that int is 32bit on 64bit systems)
282 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
284 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
285 LyXLookupString to be zero-terminated. Really fixes problems seen
288 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
290 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
291 write a (char*)0 to the lyxerr stream.
293 * src/lastfiles.C: move algorithm before the using statemets.
295 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
297 * src/lastfiles.C: move using directives in global scope (egcs 1.x
298 complains otherwise).
301 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
304 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
305 that I removed earlier... It is really needed.
307 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
309 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
311 * INSTALL: update xforms home page URL.
313 * lib/configure.m4: fix a bug with unreadable layout files.
315 * src/table.C (calculate_width_of_column): add "using std::max"
318 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
320 * several files: marked several lines with "DEL LINE", this is
321 lines that can be deleted without changing anything.
322 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
323 checks this anyway */
326 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
328 * src/DepTable.C (update): add a "+" at the end when the checksum
329 is different. (debugging string only)
331 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
332 the next inset to not be displayed. This should also fix the list
333 of labels in the "Insert Crossreference" dialog.
335 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
337 * src/support/LSubstring.C (LSubstring): set pos to string::npos
338 when regex was not found.
340 * src/support/lstrings.C (lowercase): use handcoded transform always.
343 * src/text.C (Delete): fixed the crash. cursor.par->prev and
344 old_cursor.par->prev could be 0.
346 * several files: changed post inc/dec to pre inc/dec
348 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
349 write the lastfiles to file.
351 * src/BufferView.C (buffer): only show TextCache info when debugging
353 (resizeCurrentBuffer): ditto
354 (workAreaExpose): ditto
356 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
358 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
360 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
361 a bit better by removing the special case for \i and \j.
363 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
365 * src/lyx_main.C (easyParse): remove test for bad comand line
366 options, since this broke all xforms-related parsing.
368 * src/kbmap.C (getsym): set return type to unsigned long, as
369 declared in header. On an alpha, long is _not_ the same as int.
371 * src/support/LOstream.h: add a "using std::flush;"
373 * src/insets/figinset.C: ditto.
375 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
377 * src/bufferlist.C (write): use blinding fast file copy instead of
378 "a char at a time", now we are doing it the C++ way.
380 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
381 std::list<int> instead.
382 (addpidwait): reflect move to std::list<int>
383 (sigchldchecker): ditto
385 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
388 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
389 that obviously was wrong...
391 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
392 c, this avoids warnings with purify and islower.
394 * src/insets/figinset.C: rename struct queue to struct
395 queue_element and rewrite to use a std::queue. gsqueue is now a
396 std::queue<queue_element>
397 (runqueue): reflect move to std::queue
400 * src/support/lstrings.h (tostr): specialize for bool, otherwise
401 we would get "1" "0" instead of "true" "false. Also make the tostr
404 2000-01-21 Juergen Vigna <jug@sad.it>
406 * src/buffer.C (writeFileAscii): Disabled code for special groff
407 handling of tabulars till I fix this in table.C
409 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
411 * src/support/mkdir.C (mkdir): change second argument of mkdir to
413 * src/support/lyxlib.h: ditto.
415 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
417 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
418 and 'j' look better. This might fix the "macron" bug that has been
421 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
422 functions as one template function. Delete the old versions.
424 * src/support/lyxsum.C: move using std::ifstream inside
427 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
430 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
432 * src/mathed/formula.C: delete #include "bufferlist.h" never used
434 * src/insets/figinset.C (InitFigures): use new instead of malloc
435 to allocate memory for figures and bitmaps.
436 (DoneFigures): use delete[] instead of free to deallocate memory
437 for figures and bitmaps.
438 (runqueue): use new to allocate
439 (getfigdata): use new/delete[] instead of malloc/free
440 (RegisterFigure): ditto
442 * some files: moved some declarations closer to first use, small
443 whitespace changes use preincrement instead of postincrement where
444 it does not make a difference.
446 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
447 step on the way to use stl::containers for key maps.
449 * src/bufferlist.h: add a typedef for const_iterator and const
450 versions of begin and end.
452 * src/bufferlist.[Ch]: change name of member variable _state to
453 state_. (avoid reserved names)
455 (getFileNames): returns the filenames of the buffers in a vector.
457 * configure.in (ALL_LINGUAS): added ro
459 * src/support/putenv.C: new file
461 * src/support/mkdir.C: new file
463 2000-01-20 Allan Rae <rae@lyx.org>
465 * lib/layouts/IEEEtran.layout: Added several theorem environments
467 * lib/templates/IEEEtran.lyx: Example theorem environments and a
468 couple of minor additions.
470 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
471 (except for those in footnotes of course)
473 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
475 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
477 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
478 std::sort and std::lower_bound instead of qsort and handwritten
480 (struct compara): struct that holds the functors used by std::sort
481 and std::lower_bound in MathedLookupBOP.
483 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
485 * src/support/LAssert.h: do not do partial specialization. We do
488 * src/support/lyxlib.h: note that lyx::getUserName() and
489 lyx::date() are not in use right now. Should these be suppressed?
491 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
492 (makeLinuxDocFile): do not put date and user name in linuxdoc
495 * src/support/lyxlib.h (kill): change first argument to long int,
496 since that's what solaris uses.
498 * src/support/kill.C (kill): fix declaration to match prototype.
500 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
501 actually check whether namespaces are supported. This is not what
504 * src/support/lyxsum.C: add a using directive.
506 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
508 * src/support/kill.C: if we have namespace support we don't have
511 * src/support/lyxlib.h: use namespace lyx if supported.
513 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
515 * src/support/date.C: new file
517 * src/support/chdir.C: new file
519 * src/support/getUserName.C: new file
521 * src/support/getcwd.C: new file
523 * src/support/abort.C: new file
525 * src/support/kill.C: new file
527 * src/support/lyxlib.h: moved all the functions in this file
528 insede struct lyx. Added also kill and abort to this struct. This
529 is a way to avoid the "kill is not defined in <csignal>", we make
530 C++ wrappers for functions that are not ANSI C or ANSI C++.
532 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
533 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
534 lyx it has been renamed to sum.
536 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
538 * src/text.C: add using directives for std::min and std::max.
540 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
542 * src/texrow.C (getIdFromRow): actually return something useful in
543 id and pos. Hopefully fixes the bug with positionning of errorbox
546 * src/lyx_main.C (easyParse): output an error and exit if an
547 incorrect command line option has been given.
549 * src/spellchecker.C (ispell_check_word): document a memory leak.
551 * src/bufferlist.C (write): fix mismatched allocation/deletion,
552 where a "struct utimbuf" is allocated with "new" and deleted with
555 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
557 * src/text2.C (CutSelection): don't delete double spaces.
558 (PasteSelection): ditto
559 (CopySelection): ditto
561 * src/text.C (Backspace): don't delete double spaces.
563 * src/lyxlex.C (next): fix a bug that were only present with
564 conformant std::istream::get to read comment lines, use
565 std::istream::getline instead. This seems to fix the problem.
567 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
569 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
570 allowed to insert space before space" editing problem. Please read
571 commends at the beginning of the function. Comments about usage
574 * src/text.C (InsertChar): fix for the "not allowed to insert
575 space before space" editing problem.
577 * src/text2.C (DeleteEmptyParagraphMechanism): when
578 IsEmptyTableRow can only return false this last "else if" will
579 always be a no-op. Commented out.
581 * src/text.C (RedoParagraph): As far as I can understand tmp
582 cursor is not really needed.
584 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
585 present it could only return false anyway.
586 (several functions): Did something not so smart...added a const
587 specifier on a lot of methods.
589 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
590 and add a tmp->text.resize. The LyXParagraph constructor does the
592 (BreakParagraphConservative): ditto
594 * src/support/path.h (Path): add a define so that the wrong usage
595 "Path("/tmp") will be flagged as a compilation error:
596 "`unnamed_Path' undeclared (first use this function)"
598 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
600 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
601 which was bogus for several reasons.
603 * src/LaTeX.C (scanAux): fix the regular expression used to scan
607 * autogen.sh: do not use "type -path" (what's that anyway?).
609 * src/support/filetools.C (findtexfile): remove extraneous space
610 which caused a kpsewhich warning (at least with kpathsea version
613 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
615 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
617 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
619 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
621 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
623 * src/paragraph.C (BreakParagraph): do not reserve space on text
624 if we don't need to (otherwise, if pos_end < pos, we end up
625 reserving huge amounts of memory due to bad unsigned karma).
626 (BreakParagraphConservative): ditto, although I have not seen
627 evidence the bug can happen here.
629 * src/lyxparagraph.h: add a using std::list.
631 2000-01-11 Juergen Vigna <jug@sad.it>
633 * src/menus.C (MenuDocu): output an Alert if the documentation-file
636 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
638 * src/vc-backend.C (doVCCommand): change to be static and take one
639 more parameter: the path to chdir too be fore executing the command.
640 (retrive): new function equiv to "co -r"
642 * src/bufferlist.C (loadLyXFile): implement the missing parts if
643 file_not_found_hook is true.
645 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
647 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
648 if a file is readwrite,readonly...anything else.
650 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
652 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
653 (CreatePostscript): name change from MenuRunDVIPS (or something)
654 (PreviewPostscript): name change from MenuPreviewPS
655 (PreviewDVI): name change from MenuPreviewDVI
657 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
658 \view_pdf_command., \pdf_to_ps_command
660 * lib/configure.m4: added search for PDF viewer, and search for
662 (lyxrc.defaults output): add \pdflatex_command,
663 \view_pdf_command and \pdf_to_ps_command.
665 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
667 * src/bufferlist.C (write): we don't use blocksize for anything so
670 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
672 * src/support/block.h: disable operator T* (), since it causes
673 problems with both compilers I tried. See comments in the file.
675 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
678 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
679 variable LYX_DIR_10x to LYX_DIR_11x.
681 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
683 * INSTALL: document --with-lyxname.
686 * configure.in: new configure flag --with-lyxname which allows to
687 choose the name under which lyx is installed. Default is "lyx", of
688 course. It used to be possible to do this with --program-suffix,
689 but the later has in fact a different meaning for autoconf.
691 * src/support/lstrings.h (lstrchr): reformat a bit.
693 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
694 * src/mathed/math_defs.h: ditto.
696 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
698 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
699 true, decides if we create a backup file or not when saving. New
700 tag and variable \pdf_mode, defaults to false. New tag and
701 variable \pdflatex_command, defaults to pdflatex. New tag and
702 variable \view_pdf_command, defaults to xpdf. New tag and variable
703 \pdf_to_ps_command, defaults to pdf2ps.
705 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
707 * src/bufferlist.C (close): don't call insetUnlock if the buffer
708 does not have a BufferView.
709 (unlockInset): ditto + don't access the_locking_inset if the
710 buffer does not have a BufferView.
712 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
713 certain circumstances so that we don't continue a keyboard
714 operation long after the key was released. Try f.ex. to load a
715 large document, press PageDown for some seconds and then release
716 it. Before this change the document would contine to scroll for
717 some time, with this change it stops imidiatly.
719 * src/support/block.h: don't allocate more space than needed. As
720 long as we don't try to write to the arr[x] in a array_type arr[x]
721 it is perfectly ok. (if you write to it you might segfault).
722 added operator value_type*() so that is possible to pass the array
723 to functions expecting a C-pointer.
725 * lib/Makefile.am (dist-hook): don't fail completely if unable to
728 * intl/*: updated to gettext 0.10.35, tried to add our own
729 required modifications. Please verify.
731 * po/*: updated to gettext 0.10.35, tried to add our own required
732 modifications. Please verify.
734 * src/support/lstrings.C (tostr): go at fixing the problem with
735 cxx and stringstream. When stringstream is used return
736 oss.str().c_str() so that problems with lyxstring and basic_string
737 are avoided. Note that the best solution would be for cxx to use
738 basic_string all the way, but it is not conformant yet. (it seems)
740 * src/lyx_cb.C + other files: moved several global functions to
741 class BufferView, some have been moved to BufferView.[Ch] others
742 are still located in lyx_cb.C. Code changes because of this. (part
743 of "get rid of current_view project".)
745 * src/buffer.C + other files: moved several Buffer functions to
746 class BufferView, the functions are still present in buffer.C.
747 Code changes because of this.
749 * config/lcmessage.m4: updated to most recent. used when creating
752 * config/progtest.m4: updated to most recent. used when creating
755 * config/gettext.m4: updated to most recent. applied patch for
758 * config/gettext.m4.patch: new file that shows what changes we
759 have done to the local copy of gettext.m4.
761 * config/libtool.m4: new file, used in creation of acinclude.m4
763 * config/lyxinclude.m4: new file, this is the lyx created m4
764 macros, used in making acinclude.m4.
766 * autogen.sh: GNU m4 discovered as a separate task not as part of
767 the lib/configure creation.
768 Generate acinlucde from files in config. Actually cat
769 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
770 easier to upgrade .m4 files that really are external.
772 * src/Spacing.h: moved using std::istringstream to right after
773 <sstream>. This should fix the problem seen with some compilers.
775 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
777 * src/lyx_cb.C: began some work to remove the dependency a lot of
778 functions have on BufferView::text, even if not really needed.
779 (GetCurrentTextClass): removed this func, it only hid the
782 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
783 forgot this in last commit.
785 * src/Bullet.C (bulletEntry): use static char const *[] for the
786 tables, becuase of this the return arg had to change to string.
788 (~Bullet): removed unneeded destructor
790 * src/BufferView.C (beforeChange): moved from lyx_cb.C
791 (insetSleep): moved from Buffer
792 (insetWakeup): moved from Buffer
793 (insetUnlock): moved from Buffer
795 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
796 from Buffer to BufferView.
798 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
800 * config/ltmain.sh: updated to version 1.3.4 of libtool
802 * config/ltconfig: updated to version 1.3.4 of libtool
804 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
807 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
808 Did I get that right?
810 * src/lyxlex.h: add a "using" directive or two.
811 * src/Spacing.h: ditto.
812 * src/insets/figinset.C: ditto.
813 * src/support/filetools.C: ditto.
814 * src/support/lstrings.C: ditto.
815 * src/BufferView.C: ditto.
816 * src/bufferlist.C: ditto.
817 * src/lyx_cb.C: ditto.
818 * src/lyxlex.C: ditto.
820 * NEWS: add some changes for 1.1.4.
822 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
824 * src/BufferView.C: first go at a TextCache to speed up switching
827 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
829 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
830 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
831 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
832 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
835 * src/mathed/math_defs.h (MathedRowSt): make sure that all
836 members of the struct are correctly initialized to 0 (detected by
838 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
839 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
841 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
842 pidwait, since it was allocated with "new". This was potentially
843 very bad. Thanks to Michael Schmitt for running purify for us.
846 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
848 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
850 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
852 1999-12-30 Allan Rae <rae@lyx.org>
854 * lib/templates/IEEEtran.lyx: minor change
856 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
857 src/mathed/formula.C (LocalDispatch): askForText changes
859 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
860 know when a user has cancelled input. Fixes annoying problems with
861 inserting labels and version control.
863 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
865 * src/support/lstrings.C (tostr): rewritten to use strstream and
868 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
870 * src/support/filetools.C (IsFileWriteable): use fstream to check
871 (IsDirWriteable): use fileinfo to check
873 * src/support/filetools.h (FilePtr): whole class deleted
875 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
877 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
879 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
881 * src/bufferlist.C (write): use ifstream and ofstream instead of
884 * src/Spacing.h: use istrstream instead of sscanf
886 * src/mathed/math_defs.h: change first arg to istream from FILE*
888 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
890 * src/mathed/math_parser.C: have yyis to be an istream
891 (LexGetArg): use istream (yyis)
893 (mathed_parse): ditto
894 (mathed_parser_file): first arg istream instead of FILE*, set yyis
896 * src/mathed/formula.C (Read): rewritten to use istream
898 * src/mathed/formulamacro.C (Read): rewritten to use istream
900 * src/lyxlex.h (~LyXLex): deleted desturctor
901 (getStream): new function, returns an istream
902 (getFile): deleted funtion
903 (IsOK): return is.good();
905 * src/lyxlex.C (LyXLex): delete file and owns_file
906 (setFile): open an filebuf and assign that to a istream instead of
908 (setStream): new function, takes an istream as arg.
909 (setFile): deleted function
910 (EatLine): rewritten us use istream instead of FILE*
914 * src/table.C (LyXTable): use istream instead of FILE*
915 (Read): rewritten to take an istream instead of FILE*
917 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
919 * src/buffer.C (Dispatch): remove an extraneous break statement.
921 * src/support/filetools.C (QuoteName): change to do simple
922 'quoting'. More work is necessary. Also changed to do nothing
923 under emx (needs fix too).
924 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
926 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
927 config.h.in to the AC_DEFINE_UNQUOTED() call.
928 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
929 needs char * as argument (because Solaris 7 declares it like
932 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
933 remove definition of BZERO.
935 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
937 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
938 defined, "lyxregex.h" if not.
940 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
942 (REGEX): new variable that is set to regex.c lyxregex.h when
943 AM_CONDITIONAL USE_REGEX is set.
944 (libsupport_la_SOURCES): add $(REGEX)
946 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
949 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
952 * configure.in: add call to LYX_REGEX
954 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
955 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
957 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
959 * lib/bind/fi_menus.bind: new file, from
960 pauli.virtanen@saunalahti.fi.
962 * src/buffer.C (getBibkeyList): pass the parameter delim to
963 InsetInclude::getKeys and InsetBibtex::getKeys.
965 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
966 is passed to Buffer::getBibkeyList
968 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
969 instead of the hardcoded comma.
971 * src/insets/insetbib.C (getKeys): make sure that there are not
972 leading blanks in bibtex keys. Normal latex does not care, but
973 harvard.sty seems to dislike blanks at the beginning of citation
974 keys. In particular, the retturn value of the function is
976 * INSTALL: make it clear that libstdc++ is needed and that gcc
977 2.7.x probably does not work.
979 * src/support/filetools.C (findtexfile): make debug message go to
981 * src/insets/insetbib.C (getKeys): ditto
983 * src/debug.C (showTags): make sure that the output is correctly
986 * configure.in: add a comment for TWO_COLOR_ICON define.
988 * acconfig.h: remove all the entries that already defined in
989 configure.in or acinclude.m4.
991 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
992 to avoid user name, date and copyright.
994 1999-12-21 Juergen Vigna <jug@sad.it>
996 * src/table.C (Read): Now read bogus row format informations
997 if the format is < 5 so that afterwards the table can
998 be read by lyx but without any format-info. Fixed the
999 crash we experienced when not doing this.
1001 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
1003 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
1004 (RedoDrawingOfParagraph): ditto
1005 (RedoParagraphs): ditto
1006 (RemoveTableRow): ditto
1008 * src/text.C (Fill): rename arg paperwidth -> paper_width
1010 * src/buffer.C (insertLyXFile): rename var filename -> fname
1011 (writeFile): rename arg filename -> fname
1012 (writeFileAscii): ditto
1013 (makeLaTeXFile): ditto
1014 (makeLinuxDocFile): ditto
1015 (makeDocBookFile): ditto
1017 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
1020 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
1022 * src/bmtable.h: add extern "C" on this file when __cplusplus is
1025 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
1026 compiled by a C compiler not C++.
1028 * src/layout.h (LyXTextClass): added typedef for const_iterator
1029 (LyXTextClassList): added typedef for const_iterator + member
1030 functions begin and end.
1032 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
1033 iterators to fill the choice_class.
1034 (updateLayoutChoice): rewritten to use iterators to fill the
1035 layoutlist in the toolbar.
1037 * src/BufferView.h (BufferView::work_area_width): removed unused
1040 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
1042 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
1043 (sgmlCloseTag): ditto
1045 * src/support/lstrings.h: return type of countChar changed to
1048 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1049 what version of this func to use. Also made to return unsigned int.
1051 * configure.in: call LYX_STD_COUNT
1053 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1054 conforming std::count.
1056 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1058 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1059 and a subscript would give bad display (patch from Dekel Tsur
1060 <dekel@math.tau.ac.il>).
1062 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
1064 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1067 * src/chset.h: add a few 'using' directives
1069 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1070 triggered when no buffer is active
1072 * src/layout.C: removed `break' after `return' in switch(), since
1075 * src/lyx_main.C (init): make sure LyX can be ran in place even
1076 when libtool has done its magic with shared libraries. Fix the
1077 test for the case when the system directory has not been found.
1079 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1080 name for the latex file.
1081 (MenuMakeHTML): ditto
1083 * src/buffer.h: add an optional boolean argument, which is passed
1086 1999-12-20 Allan Rae <rae@lyx.org>
1088 * lib/templates/IEEEtran.lyx: small correction and update.
1090 * configure.in: Attempted to use LYX_PATH_HEADER
1092 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1094 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1095 input from JMarc. Now use preprocessor to find the header.
1096 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1097 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1098 LYX_STL_STRING_FWD. See comments in file.
1100 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
1102 * The global MiniBuffer * minibuffer variable is dead.
1104 * The global FD_form_main * fd_form_main variable is dead.
1106 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1108 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1110 * src/table.h: add the LOstream.h header
1111 * src/debug.h: ditto
1113 * src/LyXAction.h: change the explaination of the ReadOnly
1114 attribute: is indicates that the function _can_ be used.
1116 * src/LyXAction.C (init): find-replace _can_ be used in read-only
1119 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1121 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1127 * src/paragraph.C (GetWord): assert on pos>=0
1130 * src/support/lyxstring.C: condition the use of an invariant on
1132 * src/support/lyxstring.h: ditto
1134 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1135 Use LAssert.h instead of plain assert().
1137 * src/support/lstrings.h: add LAssert.h, in case it is needed.
1139 * src/lyxfunc.C: do not include LAssert.h, it is not used.
1140 * src/support/filetools.C: ditto
1142 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1145 * INSTALL: document the new configure flags
1147 * configure.in: suppress --with-debug; add --enable-assertions
1149 * acinclude.m4: various changes in alignment of help strings.
1151 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1153 * src/kbmap.C: commented out the use of the hash map in kb_map,
1154 beginning of movement to a stl::container.
1156 * several files: removed code that was not in effect when
1157 MOVE_TEXT was defined.
1159 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1160 for escaping should not be used. We can discuss if the string
1161 should be enclosed in f.ex. [] instead of "".
1163 * src/trans_mgr.C (insert): use the new returned value from
1164 encodeString to get deadkeys and keymaps done correctly.
1166 * src/chset.C (encodeString): changed to return a pair, to tell
1167 what to use if we know the string.
1169 * src/lyxscreen.h (fillArc): new function.
1171 * src/FontInfo.C (resize): rewritten to use more std::string like
1172 structore, especially string::replace.
1174 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1177 * configure.in (chmod +x some scripts): remove config/gcc-hack
1179 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1181 * src/buffer.C (writeFile): change once again the top comment in a
1182 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1183 instead of an hardcoded version number.
1184 (makeDocBookFile): ditto
1186 * src/version.h: add new define LYX_DOCVERSION
1188 * po/de.po: update from Pit Sütterlin
1189 * lib/bind/de_menus.bind: ditto.
1191 * src/lyxfunc.C (Dispatch): call MenuExport()
1192 * src/buffer.C (Dispatch): ditto
1194 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1195 LyXFunc::Dispatch().
1196 (MenuExport): new function, moved from
1197 LyXFunc::Dispatch().
1199 * src/trans_mgr.C (insert): small cleanup
1200 * src/chset.C (loadFile): ditto
1202 * lib/kbd/iso8859-1.cdef: add missing backslashes
1204 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1206 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1207 help with placing the manually drawn accents better.
1209 (Draw): x2 and hg changed to float to minimize rounding errors and
1210 help place the accents better.
1212 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1213 unsigned short to char is just wrong...cast the char to unsigned
1214 char instead so that the two values can compare sanely. This
1215 should also make the display of insetlatexaccents better and
1216 perhaps also some other insets.
1218 (lbearing): new function
1221 1999-12-15 Allan Rae <rae@lyx.org>
1223 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
1224 header that provides a wrapper around the very annoying SGI STL header
1227 * src/support/lyxstring.C, src/LString.h:
1228 removed old SGI-STL-compatability attempts.
1230 * configure.in: Use LYX_STL_STRING_FWD.
1232 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
1233 stl_string_fwd.h is around and try to determine it's location.
1234 Major improvement over previous SGI STL 3.2 compatability.
1235 Three small problems remain with this function due to my zero
1236 knowledge of autoconf. JMarc and lgb see the comments in the code.
1238 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1240 * src/broken_const.h, config/hack-gcc, config/README: removed
1242 * configure.in: remove --with-gcc-hack option; do not call
1245 * INSTALL: remove documentation of --with-broken-const and
1248 * acconfig.h: remove all trace of BROKEN_CONST define
1250 * src/buffer.C (makeDocBookFile): update version number in output
1252 (SimpleDocBookOnePar): fix an assert when trying to a character
1253 access beyond string length
1256 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1258 * po/de.po: fix the Export menu
1260 * lyx.man: update the description of -dbg
1262 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1263 (commandLineHelp): updated
1264 (easyParse): show list of available debug levels if -dbg is passed
1267 * src/Makefile.am: add debug.C
1269 * src/debug.h: moved some code to debug.C
1271 * src/debug.C: new file. Contains code to set and show debug
1274 * src/layout.C: remove 'break' after 'continue' in switch
1275 statements, since these cannot be reached.
1277 1999-12-13 Allan Rae <rae@lyx.org>
1279 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1280 (in_word_set): hash() -> math_hash()
1282 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
1284 * acconfig.h: Added a test for whether we are using exceptions in the
1285 current compilation run. If so USING_EXCEPTIONS is defined.
1287 * config.in: Check for existance of stl_string_fwd.h
1288 * src/LString.h: If compiling --with-included-string and SGI's
1289 STL version 3.2 is present (see above test) we need to block their
1290 forward declaration of string and supply a __get_c_string().
1291 However, it turns out this is only necessary if compiling with
1292 exceptions enabled so I've a bit more to add yet.
1294 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1295 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1296 src/support/LRegex.h, src/undo.h:
1297 Shuffle the order of the included files a little to ensure that
1298 LString.h gets included before anything that includes stl_string_fwd.h
1300 * src/support/lyxstring.C: We need to #include LString.h instead of
1301 lyxstring.h to get the necessary definition of __get_c_string.
1302 (__get_c_string): New function. This is defined static just like SGI's
1303 although why they need to do this I'm not sure. Perhaps it should be
1304 in lstrings.C instead.
1306 * lib/templates/IEEEtran.lyx: New template file.
1308 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1310 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1311 * intl/Makefile.in (MKINSTALLDIRS): ditto
1313 * src/LyXAction.C (init): changed to hold the LFUN data in a
1314 automatic array in stead of in callso to newFunc, this speeds up
1315 compilation a lot. Also all the memory used by the array is
1316 returned when the init is completed.
1318 * a lot of files: compiled with -Wold-style-cast, changed most of
1319 the reported offenders to C++ style casts. Did not change the
1320 offenders in C files.
1322 * src/trans.h (Match): change argument type to unsigned int.
1324 * src/support/DebugStream.C: fix some types on the streambufs so
1325 that it works on a conforming implementation.
1327 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1329 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1331 * src/support/lyxstring.C: remove the inline added earlier since
1332 they cause a bunch of unsatisfied symbols when linking with dec
1333 cxx. Cxx likes to have the body of inlines at the place where they
1336 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1337 accessing negative bounds in array. This fixes the crash when
1338 inserting accented characters.
1339 * src/trans.h (Match): ditto
1341 * src/buffer.C (Dispatch): since this is a void, it should not try
1342 to return anything...
1344 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1346 * src/buffer.h: removed the two friends from Buffer. Some changes
1347 because of this. Buffer::getFileName and Buffer::setFileName
1348 renamed to Buffer::fileName() and Buffer::fileName(...).
1350 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1352 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1353 and Buffer::update(short) to BufferView. This move is currently
1354 controlled by a define MOVE_TEXT, this will be removed when all
1355 shows to be ok. This move paves the way for better separation
1356 between buffer contents and buffer view. One side effect is that
1357 the BufferView needs a rebreak when swiching buffers, if we want
1358 to avoid this we can add a cache that holds pointers to LyXText's
1359 that is not currently in use.
1361 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1364 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1366 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1368 * lyx_main.C: new command line option -x (or --execute) and
1369 -e (or --export). Now direct conversion from .lyx to .tex
1370 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
1371 Unfortunately, X is still needed and the GUI pops up during the
1374 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1376 * src/Spacing.C: add a using directive to bring stream stuff into
1378 * src/paragraph.C: ditto
1379 * src/buffer.C: ditto
1381 * NEWS: updated a bit the new features of 1.1.3 (took a few things
1382 from Lars' announcement).
1384 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1385 example files from Tino Meinen.
1387 1999-12-06 Allan Rae <rae@lyx.org>
1389 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1391 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1393 * src/support/lyxstring.C: added a lot of inline for no good
1396 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1397 latexWriteEndChanges, they were not used.
1399 * src/layout.h (operator<<): output operator for PageSides
1401 * src/mathed/math_iter.C (my_memcpy): slightly changed.
1403 * some example files: loaded in LyX 1.0.4 and saved again to update
1404 certain constructs (table format)
1406 * a lot of files: did the change to use fstream/iostream for all
1407 writing of files. Done with a close look at Andre Poenitz's patch.
1409 * some files: whitespace changes.
1411 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1413 * src/mathed/math_iter.C (my_memcpy): new function. Since the
1414 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1415 architecture, we provide our own. It is used unconditionnally, but
1416 I do not think this is a performance problem. Thanks to Angus
1417 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1418 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1420 (GetInset): use my_memcpy.
1424 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1425 it is easier to understand, but it uses less TeX-only constructs now.
1427 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1428 elements contain spaces
1430 * lib/configure: regenerated
1432 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1433 elements contain spaces; display the list of programs that are
1436 * autogen.sh: make sure lib/configure is executable
1438 * lib/examples/*: rename the tutorial examples to begin with the
1439 two-letters language code.
1441 * src/lyxfunc.C (getStatus): do not query current font if no
1444 * src/lyx_cb.C (RunScript): use QuoteName
1445 (MenuRunDvips): ditto
1446 (PrintApplyCB): ditto
1448 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1449 around argument, so that it works well with the current shell.
1450 Does not work properly with OS/2 shells currently.
1452 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1453 * src/LyXSendto.C (SendtoApplyCB): ditto
1454 * src/lyxfunc.C (Dispatch): ditto
1455 * src/buffer.C (runLaTeX): ditto
1456 (runLiterate): ditto
1457 (buildProgram): ditto
1459 * src/lyx_cb.C (RunScript): ditto
1460 (MenuMakeLaTeX): ditto
1462 * src/buffer.h (getLatexName): new method
1464 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1466 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1468 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1469 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1470 (create_math_panel): ditto
1472 * src/lyxfunc.C (getStatus): re-activate the code which gets
1473 current font and cursor; add test for export to html.
1475 * src/lyxrc.C (read): remove unreachable break statements; add a
1478 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1480 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1482 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1483 introduced by faulty regex.
1484 * src/buffer.C: ditto
1485 * src/lastfiles.C: ditto
1486 * src/paragraph.C: ditto
1487 * src/table.C: ditto
1488 * src/vspace.C: ditto
1489 * src/insets/figinset.C: ditto
1490 Note: most of these is absolutely harmless, except the one in
1491 src/mathed formula.C.
1493 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
1495 * src/ImportNoweb.C (documentclass): fixed bounds for substr
1496 operation, yielding correct results for the reLyX command.
1498 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1500 * src/support/filetools.C (ExpandPath): removed an over eager
1502 (ReplaceEnvironmentPath): ditto
1504 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1505 shows that we are doing something fishy in our code...
1509 * src/lyxrc.C (read): use a double switch trick to get more help
1510 from the compiler. (the same trick is used in layout.C)
1511 (write): new function. opens a ofstream and pass that to output
1512 (output): new function, takes a ostream and writes the lyxrc
1513 elemts to it. uses a dummy switch to make sure no elements are
1516 * src/lyxlex.h: added a struct pushpophelper for use in functions
1517 with more than one exit point.
1519 * src/lyxlex.[Ch] (GetInteger): made it const
1523 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1525 * src/layout.[hC] : LayoutTags splitted into several enums, new
1526 methods created, better error handling cleaner use of lyxlex. Read
1529 * src/bmtable.[Ch]: change some member prototypes because of the
1530 image const changes.
1532 * commandtags.h, src/LyXAction.C (init): new function:
1533 "preferences-save", saves the lyxrc entries into .lyx/preferences.
1534 This file is not read automatically but you can add \input
1535 preferences to your lyxrc if you want to. We need to discuss how
1538 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1539 in .aux, also remove .bib and .bst files from dependencies when
1542 * src/BufferView.C, src/LyXView.C: add const_cast several places
1543 because of changes to images.
1545 * lib/images/*: same change as for images/*
1547 * lib/lyxrc.example: Default for accept_compound is false not no.
1549 * images/*: changed to be const, however I have som misgivings
1550 about this change so it might be changed back.
1552 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1554 * lib/configure, po/POTFILES.in: regenerated
1556 * autogen.sh: autogenerate lib/configure from lib/configure.m4
1558 * config/lib_configure.m4: removed
1560 * lib/configure.m4: new file (was config/lib_configure.m4)
1562 * configure.in: do not test for rtti, since we do not use it.
1564 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1566 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1567 doubling of allocated space scheme. This makes it faster for large
1568 strings end to use less memory for small strings. xtra rememoved.
1570 * src/insets/figinset.C (waitalarm): commented out.
1571 (GhostscriptMsg): use static_cast
1572 (GhostscriptMsg): use new instead of malloc to allocate memory for
1573 cmap. also delete the memory after use.
1575 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1577 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1578 for changes in bibtex database or style.
1579 (runBibTeX): remove all .bib and .bst files from dep before we
1581 (run): use scanAuc in when dep file already exist.
1583 * src/DepTable.C (remove_files_with_extension): new method
1586 * src/DepTable.[Ch]: made many of the methods const.
1588 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1590 * src/bufferparams.C: make sure that the default textclass is
1591 "article". It used to be the first one by description order, but
1592 now the first one is "docbook".
1594 * src/lyx_main.C (setDebuggingLevel): change type of argument to
1595 string; call Debug::value.
1596 (easyParse): pass complete argument to setDebuggingLevel().
1598 * src/debug.h (value): fix the code that parses debug levels.
1600 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1603 * src/LyXAction.C: use Debug::ACTION as debug channel.
1605 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1607 * NEWS: updated for the future 1.1.3 release.
1609 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1610 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1611 it should. This is of course a controversial change (since many
1612 people will find that their lyx workscreen is suddenly full of
1613 red), but done for the sake of correctness.
1615 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1616 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1618 * src/insets/inseterror.h, src/insets/inseturl.h,
1619 src/insets/insetinfo.h, src/insets/figinset.h,
1620 src/mathed/formulamacro.h, src/mathed/math_macro.h
1621 (EditMessage): add a missing const and add _() to make sure that
1624 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1625 src/insets/insetbib.C, src/support/filetools.C: add `using'
1628 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1629 doing 'Insert index of last word' at the beginning of a paragraph.
1631 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1633 * several files: white-space changes.
1635 * src/mathed/formula.C: removed IsAlpha and IsDigit
1637 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1638 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1641 * src/insets/figinset.C (GetPSSizes): don't break when
1642 "EndComments" is seen. But break when a boundingbox is read.
1644 * all classes inherited from Inset: return value of Clone
1645 changed back to Inset *.
1647 * all classes inherited form MathInset: return value of Clone
1648 changed back to MathedInset *.
1650 * src/insets/figinset.C (runqueue): use a ofstream to output the
1651 gs/ps file. Might need some setpresicion or setw. However I can
1652 see no problem with the current code.
1653 (runqueue): use sleep instead of the alarm/signal code. I just
1654 can't see the difference.
1656 * src/paragraph.C (LyXParagraph): reserve space in the new
1657 paragraph and resize the inserted paragraph to just fit.
1659 * src/lyxfunc.h (operator|=): added operator for func_status.
1661 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1662 check for readable file.
1664 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1665 check for readable file.
1666 (MenuMakeLinuxDoc): ditto
1667 (MenuMakeDocBook): ditto
1668 (MenuMakeAscii): ditto
1669 (InsertAsciiFile): split the test for openable and readable
1671 * src/bmtable.C (draw_bitmaptable): use
1672 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1674 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1675 findtexfile from LaTeX to filetools.
1677 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1678 instead of FilePtr. Needs to be verified by a literate user.
1680 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1682 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1683 (EditMessage): likewise.
1685 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1686 respectively as \textasciitilde and \textasciicircum.
1688 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1690 * src/support/lyxstring.h: made the methods that take iterators
1693 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1694 (regexMatch): made is use the real regex class.
1696 * src/support/Makefile.am: changed to use libtool
1698 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1700 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1702 (MathIsInset ++): changed several macros to be inline functions
1705 * src/mathed/Makefile.am: changed to use libtool
1707 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1709 * src/insets/inset* : Clone changed to const and return type is
1710 the true insettype not just Inset*.
1712 * src/insets/Makefile.am: changed to use libtool
1714 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1716 * src/undo.[Ch] : added empty() and changed some of the method
1719 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1721 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1722 setID use block<> for the bullets array, added const several places.
1724 * src/lyxfunc.C (getStatus): new function
1726 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1727 LyXAction, added const to several funtions.
1729 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1730 a std::map, and to store the dir items in a vector.
1732 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1735 * src/LyXView.[Ch] + other files : changed currentView to view.
1737 * src/LyXAction.[Ch] : ported from the old devel branch.
1739 * src/.cvsignore: added .libs and a.out
1741 * configure.in : changes to use libtool.
1743 * acinclude.m4 : inserted libtool.m4
1745 * .cvsignore: added libtool
1747 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1749 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1750 file name in insets and mathed directories (otherwise the
1751 dependency is not taken in account under cygwin).
1753 * src/text2.C (InsertString[AB]): make sure that we do not try to
1754 read characters past the string length.
1756 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1758 * lib/doc/LaTeXConfig.lyx.in,
1759 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1761 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1762 file saying who created them and when this heppened; this is
1763 useless and annoys tools like cvs.
1765 * lib/layouts/g-brief-{en,de}.layout,
1766 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1767 from Thomas Hartkens <thomas@hartkens.de>.
1769 * src/{insets,mathed}/Makefile.am: do not declare an empty
1770 LDFLAGS, so that it can be set at configure time (useful on Irix
1773 * lib/reLyX/configure.in: make sure that the prefix is set
1774 correctly in LYX_DIR.
1776 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1778 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1779 be used by 'command-sequence' this allows to bind a key to a
1780 sequence of LyX-commands
1781 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1783 * src/LyXAction.C: add "command-sequence"
1785 * src/LyXFunction.C: handling of "command-sequence"
1787 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1788 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1790 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1792 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1794 * src/buffer.C (writeFile): Do not output a comment giving user
1795 and date at the beginning of a .lyx file. This is useless and
1796 annoys cvs anyway; update version number to 1.1.
1798 * src/Makefile.am (LYX_DIR): add this definition, so that a
1799 default path is hardcoded in LyX.
1801 * configure.in: Use LYX_GNU_GETTEXT.
1803 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1804 AM_GNU_GETTEXT with a bug fixed.
1806 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1808 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1810 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1811 which is used to point to LyX data is now LYX_DIR_11x.
1813 * lyx.man: convert to a unix text file; small updates.
1815 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1817 * src/support/LSubstring.[Ch]: made the second arg of most of the
1818 constructors be a const reference.
1820 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1823 * src/support/lyxstring.[Ch] (swap): added missing member function
1824 and specialization of swap(str, str);
1826 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1828 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1829 trace of the old one.
1831 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1832 put the member definitions in undo.C.
1834 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1835 NEW_TEXT and have now only code that was included when this was
1838 * src/intl.C (LCombo): use static_cast
1840 (DispatchCallback): ditto
1842 * src/definitions.h: removed whole file
1844 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1846 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
1847 parsing and stores in a std:map. a regex defines the file format.
1848 removed unneeded members.
1850 * src/bufferparams.h: added several enums from definitions.h here.
1851 Removed unsused destructor. Changed some types to use proper enum
1852 types. use block to have the temp_bullets and user_defined_bullets
1853 and to make the whole class assignable.
1855 * src/bufferparams.C (Copy): removed this functions, use a default
1858 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
1861 * src/buffer.C (readLyXformat2): commend out all that have with
1862 oldpapersize to do. also comment out all that hve to do with
1863 insetlatex and insetlatexdel.
1864 (setOldPaperStuff): commented out
1866 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
1868 * src/LyXAction.C: remove use of inset-latex-insert
1870 * src/mathed/math_panel.C (button_cb): use static_cast
1872 * src/insets/Makefile.am (insets_o_SOURCES): removed
1875 * src/support/lyxstring.C (helper): use the unsigned long
1876 specifier, UL, instead of a static_cast.
1878 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
1880 * src/support/block.h: new file. to be used as a c-style array in
1881 classes, so that the class can be assignable.
1883 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1885 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
1886 NULL, make sure to return an empty string (it is not possible to
1887 set a string to NULL).
1889 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1891 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
1893 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
1895 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
1896 link line, so that Irix users (for example) can set it explicitely to
1899 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
1900 it can be overidden at make time (static or dynamic link, for
1903 * src/vc-backend.C, src/LaTeXFeatures.h,
1904 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
1905 statements to bring templates to global namespace.
1907 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1909 * src/support/lyxstring.C (operator[] const): make it standard
1912 * src/minibuffer.C (Init): changed to reflect that more
1913 information is given from the lyxvc and need not be provided here.
1915 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
1917 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
1919 * src/LyXView.C (UpdateTimerCB): use static_cast
1920 (KeyPressMask_raw_callback): ditto
1922 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
1923 buffer_, a lot of changes because of this. currentBuffer() ->
1924 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
1925 also changes to other files because of this.
1927 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1929 * src/vc-backend.[Ch]: new files. The backends for vc handling,
1930 have no support for RCS and partial support for CVS, will be
1933 * src/insets/ several files: changes because of function name
1934 changes in Bufferview and LyXView.
1936 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
1938 * src/support/LSubstring.[Ch]: new files. These implement a
1939 Substring that can be very convenient to use. i.e. is this
1941 string a = "Mary had a little sheep";
1942 Substring(a, "sheep") = "lamb";
1943 a is now "Mary has a little lamb".
1945 * src/support/LRegex.[Ch]: a regex class that can be used to pick
1946 out patterns and subpatterns of strings. It is used by LSubstring
1947 and also by vc-backend.C
1949 * src/support/lyxstring.C: went over all the assertions used and
1950 tried to correct the wrong ones and flag which of them is required
1951 by the standard. some bugs found because of this. Also removed a
1952 couple of assertions.
1954 * src/support/Makefile.am (libsupport_a_SOURCES): added
1955 LSubstring.[Ch] and LRegex.[Ch]
1957 * src/support/FileInfo.h: have struct stat buf as an object and
1958 not a pointer to one, some changes because of this.
1960 * src/LaTeXFeatures.C (getTClassPreamble): also use the
1961 information in layout when adding the layouts preamble to the
1964 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
1967 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
1968 because of bug in OS/2.
1970 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1972 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
1973 \verbatim@font instead of \ttfamily, so that it can be redefined.
1975 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
1976 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
1977 src/layout.h, src/text2.C: add 'using' directive to bring the
1978 STL templates we need from the std:: namespace to the global one.
1979 Needed by DEC cxx in strict ansi mode.
1981 * src/support/LIstream.h,src/support/LOstream.h,
1982 src/support/lyxstring.h,src/table.h,
1983 src/lyxlookup.h: do not include <config.h> in header
1984 files. This should be done in the .C files only.
1986 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
1990 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1992 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
1993 from Kayvan to fix the tth invokation.
1995 * development/lyx.spec.in: updates from Kayvan to reflect the
1996 changes of file names.
1998 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2000 * src/text2.C (InsertStringB): use std::copy
2001 (InsertStringA): use std::copy
2003 * src/bufferlist.C: use a vector to store the buffers in. This is
2004 an internal change and should not affect any other thing.
2006 * src/BufferView.C (waitForX): use XSync instead of the lengthy
2009 * src/text.C (Fill): fix potential bug, one off bug.
2011 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2013 * src/Makefile.am (lyx_main.o): add more files it depends on.
2015 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
2017 * src/support/lyxstring.C: use size_t for the reference count,
2018 size, reserved memory and xtra.
2019 (internal_compare): new private member function. Now the compare
2020 functions should work for std::strings that have embedded '\0'
2022 (compare): all compare functions rewritten to use
2025 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2027 * src/support/lyxstring.C (compare): pass c_str()
2028 (compare): pass c_str
2029 (compare): pass c_str
2031 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2033 * src/support/DebugStream.C: <config.h> was not included correctly.
2035 * lib/configure: forgot to re-generate it :( I'll make this file
2036 auto generated soon.
2038 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2040 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
2043 * src/support/lyxstring.C: some changes from length() to rep->sz.
2044 avoids a function call.
2046 * src/support/filetools.C (SpaceLess): yet another version of the
2047 algorithm...now per Jean-Marc's suggestions.
2049 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2051 * src/layout.C (less_textclass_desc): functor for use in sorting
2053 (LyXTextClass::Read): sort the textclasses after reading.
2055 * src/support/filetools.C (SpaceLess): new version of the
2056 SpaceLess functions. What problems does this one give? Please
2059 * images/banner_bw.xbm: made the arrays unsigned char *
2061 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2063 * src/support/lyxstring.C (find): remove bogus assertion in the
2064 two versions of find where this has not been done yet.
2066 * src/support/lyxlib.h: add missing int return type to
2069 * src/menus.C (ShowFileMenu): disable exporting to html if no
2070 html export command is present.
2072 * config/lib_configure.m4: add a test for an HTML converter. The
2073 programs checked for are, in this order: tth, latex2html and
2076 * lib/configure: generated from config/lib_configure.m4.
2078 * src/lyxfunc.C (Dispatch): update and improve the execution of an
2079 html converter. The parameters are now passed through $$FName and
2080 $$OutName, instead of standard input/output.
2082 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2084 * lib/lyxrc.example: update description of \html_command.
2085 add "quotes" around \screen_font_xxx font setting examples to help
2086 people who use fonts with spaces in their names.
2088 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2090 * Distribution files: updates for v1.1.2
2092 * src/support/lyxstring.C (find): remove bogus assert and return
2093 npos for the same condition.
2095 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2097 * added patch for OS/2 from SMiyata.
2099 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2101 * src/text2.C (CutSelection): make space_wrapped a bool
2102 (CutSelection): dont declare int i until we have to.
2103 (alphaCounter): return a char const *.
2105 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2107 * src/support/syscall.C (Systemcalls::kill):
2108 src/support/filetools.C (PutEnv, PutEnvPath):
2109 src/lyx_cb.C (addNewlineAndDepth):
2110 src/FontInfo.C (FontInfo::resize): condition some #warning
2111 directives with WITH_WARNINGS.
2114 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2116 * src/layout.[Ch] + several files: access to class variables
2117 limited and made accessor functions instead a lot of code changed
2118 becuase of this. Also instead of returning pointers often a const
2119 reference is returned instead.
2121 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2123 * src/Makefile.am (dist-hook): added used to remove the CVS from
2124 cheaders upon creating a dist
2125 (EXTRA_DIST): added cheaders
2127 * src/support/lstrings.C (tostr(char)): fix it to handle param as
2128 a character not as a small integer.
2130 * src/support/lyxstring.C (find): removed Assert and added i >=
2131 rep->sz to the first if.
2133 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2135 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2136 src/LyXView.C src/buffer.C src/bufferparams.C
2137 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
2138 src/text2.C src/insets/insetinclude.C:
2139 lyxlayout renamed to textclasslist.
2141 * src/layout.C: some lyxerr changes.
2143 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2144 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2145 (LyXLayoutList): removed all traces of this class.
2146 (LyXTextClass::Read): rewrote LT_STYLE
2147 (LyXTextClass::hasLayout): new function
2148 (LyXTextClass::GetLayout): rewritten to return an iterator + has
2149 both const and nonconst version.
2150 (LyXTextClass::delete_layout): new function.
2151 (LyXTextClassList::Style): bug fix. do the right thing if layout
2153 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2154 (LyXTextClassList::NameOfLayout): ditto
2155 (LyXTextClassList::Load): ditto
2157 * src/buffer.C (makeLaTeXFile): new access to layoutlist
2159 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2161 * src/LyXAction.C (LookupFunc): added a workaround for sun
2162 compiler, on the other hand...we don't know if the current code
2163 compiles on sun at all...
2165 * src/support/filetools.C (CleanupPath): subst fix
2167 * src/insets/insetbib.C (delDatabase): subst fix, this looks
2170 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2171 complained about this one?
2173 * src/insets/insetinclude.C (Latex): subst fix
2175 * src/insets/insetbib.C (getKeys): subst fix
2177 * src/LyXSendto.C (SendtoApplyCB): subst fix
2179 * src/lyx_main.C (init): subst fix
2181 * src/layout.C (Read): subst fix
2183 * src/lyx_sendfax_main.C (button_send): subst fix
2185 * src/buffer.C (RoffAsciiTable): subst fix
2187 * src/lyx_cb.C (MenuFax): subst fix
2188 (PrintApplyCB): subst fix
2190 1999-10-26 Juergen Vigna <jug@sad.it>
2192 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2194 (Read): Cleaned up this code so now we read only format vestion >= 5
2196 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2198 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2199 come nobody has complained about this one?
2201 * src/insets/insetinclude.C (Latex): subst fix
2203 * src/insets/insetbib.C (getKeys): subst fix
2205 * src/lyx_main.C (init): subst fix
2207 * src/layout.C (Read): subst fix
2209 * src/buffer.C (RoffAsciiTable): subst fix
2211 * src/lyx_cb.C (MenuFax): subst fix.
2213 * src/layout.[hC] + some other files: rewrote to use
2214 std::container to store textclasses and layouts in.
2215 Simplified, removed a lot of code. Make all classes
2216 assignable. Further simplifications and review of type
2217 use still to be one.
2219 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2220 lastfiles to create the lastfiles partr of the menu.
2222 * src/lastfiles.[Ch]: rewritten to use deque to store the
2223 lastfiles in. Uses fstream for reading and writing. Simplifies
2226 * src/support/syscall.C: remove explicit cast.
2228 * src/BufferView.C (CursorToggleCB): removed code snippets that
2230 use explicat C++ style casts instead of C style casts. also use
2231 u_vdata instea of passing pointers in longs.
2233 * src/PaperLayout.C: removed code snippets that were commented out.
2235 * src/lyx_gui_misc.C: removed code snippets that were commented out.
2237 * src/lyx_main.C: removed code snippets that wer commented out.
2239 * src/paragraph.C: removed code snippets that were commented out.
2241 * src/lyxvc.C (logClose): use static_cast
2243 (viewLog): remove explicit cast to void*
2244 (showLog): removed old commented code
2246 * src/menus.C: use static_cast instead of C style casts. use
2247 u_vdata instead of u_ldata. remove explicit cast to (long) for
2248 pointers. Removed old code that was commented out.
2250 * src/insets/inset.C: removed old commented func
2252 * src/insets/insetref.C (InsetRef): removed old code that had been
2253 commented out for a long time.
2255 (escape): removed C style cast
2257 * src/insets/insetlatexaccent.C (Draw): removed old commented code
2259 * src/insets/insetlatex.C (Draw): removed old commented code
2260 (Read): rewritten to use string
2262 * src/insets/insetlabel.C (escape): removed C style cast
2264 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2266 * src/insets/insetindex.C: use static_cast and u_vdata, removed
2269 * src/insets/insetinclude.h: removed a couple of stupid bools
2271 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2272 (Clone): remove C style cast
2273 (getKeys): changed list to lst because of std::list
2275 * src/insets/inseterror.C (Draw): removed som old commented code.
2277 * src/insets/insetcommand.C (Draw): removed some old commented code.
2279 * src/insets/insetbib.C (bibitem_cb): removed code that has been
2280 commented out forever.
2281 (bibitem_cb): use static_cast instead of C style cast
2282 use of vdata changed to u_vdata.
2284 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2286 (CloseUrlCB): use static_cast instead of C style cast.
2287 (CloseUrlCB): added a fl_free form...it seemed to be missing.
2289 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2290 (C_InsetInfo_CloseInfoCB): forward the ob parameter
2291 (CloseInfoCB): static_cast from ob->u_vdata instead.
2292 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2295 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2296 (C_InsetError_CloseErrorCB): forward the ob parameter
2297 (CloseErrorCB): static_cast from ob->u_vdata instead.
2299 * src/vspace.h: include LString.h since we use string in this class.
2301 * src/vspace.C (lyx_advance): changed name from advance because of
2302 nameclash with stl. And since we cannot use namespaces yet...I
2303 used a lyx_ prefix instead. Expect this to change when we begin
2306 * src/BufferView.[Ch] (BufferView::~BufferView): removed
2308 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2309 and removed now defunct constructor and deconstructor.
2311 * src/BufferView.h: have backstack as a object not as a pointer.
2312 removed initialization from constructor. added include for BackStack
2314 * development/lyx.spec.in (%build): add CFLAGS also.
2316 * src/screen.C (drawFrame): removed another warning.
2318 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2320 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2321 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2322 README and ANNOUNCE a bit for the next release. More work is
2325 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2326 unbreakable if we are in freespacing mode (LyX-Code), but not in
2329 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
2331 * src/BackStack.h: fixed initialization order in constructor
2333 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2335 * acinclude.m4 (VERSION): new rules for when a version is
2336 development, added also a variable for prerelease.
2337 (warnings): we set with_warnings=yes for prereleases
2338 (lyx_opt): prereleases compile with same optimization as development
2339 (CXXFLAGS): only use pedantic if we are a development version
2341 * src/BufferView.C (restorePosition): don't do anything if the
2344 * src/BackStack.h: added member empty, use this to test if there
2345 is anything to pop...
2347 1999-10-25 Juergen Vigna <jug@sad.it>
2350 * forms/layout_forms.fd +
2351 * forms/latexoptions.fd +
2352 * lyx.fd: changed for various form resize issues
2354 * src/mathed/math_panel.C +
2355 * src/insets/inseterror.C +
2356 * src/insets/insetinfo.C +
2357 * src/insets/inseturl.C +
2358 * src/insets/inseturl.h +
2361 * src/PaperLayout.C +
2362 * src/ParagraphExtra.C +
2363 * src/TableLayout.C +
2365 * src/layout_forms.C +
2372 * src/menus.C: fixed various resize issues. So now forms can be
2373 resized savely or not be resized at all.
2375 * forms/form_url.fd +
2376 * src/insets/form_url.[Ch]: added because it's cleaner and easier
2379 * src/insets/Makefile.am: added files form_url.[Ch]
2381 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2383 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2384 (and presumably 6.2).
2386 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2387 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2388 remaining static member callbacks.
2390 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2393 * src/support/lyxstring.h: declare struct Srep as friend of
2394 lyxstring, since DEC cxx complains otherwise.
2396 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2398 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2400 * src/LaTeX.C (run): made run_bibtex also depend on files with
2402 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2403 are put into the dependency file.
2405 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2406 the code has shown itself to work
2407 (create_ispell_pipe): removed another warning, added a comment
2410 * src/minibuffer.C (ExecutingCB): removed code that has been
2411 commented out a long time
2413 * src/lyxfunc.C (processKeyEvent): removed some very old commented
2414 out code + a warning.
2416 * src/support/lyxstring.h: comment out the three private
2417 operators, when compiling with string ansi conforming compilers
2420 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2422 (pixmapFromBitmapData): change type of bdata to be unsigned char *
2423 (pixmapFromBitmapData): add a reinterpret_cast in the call to
2426 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2429 * src/mathed/math_panel.C (create_math_panel): remove explicit
2432 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2435 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2436 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2437 to XCreatePixmapFromBitmapData
2438 (fl_set_bmtable_data): change the last argument to be unsigned
2440 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2441 and bh to be unsigned int, remove explicit casts in call to
2442 XReadBitmapFileData.
2444 * images/arrows.xbm: made the arrays unsigned char *
2445 * images/varsz.xbm: ditto
2446 * images/misc.xbm: ditto
2447 * images/greek.xbm: ditto
2448 * images/dots.xbm: ditto
2449 * images/brel.xbm: ditto
2450 * images/bop.xbm: ditto
2452 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2454 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
2455 (LYX_PROG_CXX): added -pedantic to g++ compile options when
2456 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2458 (LYX_CXX_CHEADERS): added <clocale> to the test.
2460 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
2462 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2464 * src/support/lyxstring.C (append): fixed something that must be a
2465 bug, rep->assign was used instead of rep->append.
2467 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2470 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2471 lyx insert double chars. Fix spotted by Kayvan.
2473 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2475 * Fixed the tth support. I messed up with the Emacs patch apply feature
2476 and omitted the changes in lyxrc.C.
2478 1999-10-22 Juergen Vigna <jug@sad.it>
2480 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2482 * src/lyx_cb.C (MenuInsertRef) +
2483 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2484 the form cannot be resized under it limits (fixes a segfault)
2486 * src/lyx.C (create_form_form_ref) +
2487 * forms/lyx.fd: Changed Gravity on name input field so that it is
2490 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2492 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2493 <ostream> and <istream>.
2495 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2496 whether <fstream> provides the latest standard features, or if we
2497 have an oldstyle library (like in egcs).
2498 (LYX_CXX_STL_STRING): fix the test.
2500 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2501 code on MODERN_STL_STREAM.
2503 * src/support/lyxstring.h: use L{I,O}stream.h.
2505 * src/support/L{I,O}stream.h: new files, designed to setup
2506 correctly streams for our use
2507 - includes the right header depending on STL capabilities
2508 - puts std::ostream and std::endl (for LOStream.h) or
2509 std::istream (LIStream.h) in toplevel namespace.
2511 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2513 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2514 was a bib file that had been changed we ensure that bibtex is run.
2515 (runBibTeX): enhanced to extract the names of the bib files and
2516 getting their absolute path and enter them into the dep file.
2517 (findtexfile): static func that is used to look for tex-files,
2518 checks for absolute patchs and tries also with kpsewhich.
2519 Alternative ways of finding the correct files are wanted. Will
2521 (do_popen): function that runs a command using popen and returns
2522 the whole output of that command in a string. Should be moved to
2525 * src/DepTable.[Ch] (extchanged): new function that returns true if a
2526 file with extension ext has changed.
2528 * src/insets/figinset.C: added ifdef guards around the fl_free
2529 code that jug commented out. Now it is commented out when
2530 compiling with XForms == 0.89.
2532 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2533 to lyxstring.C, and only keep a forward declaration in
2534 lyxstring.h. Simplifies the header file a bit and should help a
2535 bit on compile time too. Also changes to Srep will not mandate a
2536 recompile of code just using string.
2537 (~lyxstring): definition moved here since it uses srep.
2538 (size): definition moved here since it uses srep.
2540 * src/support/lyxstring.h: removed a couple of "inline" that should
2543 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2545 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2548 1999-10-21 Juergen Vigna <jug@sad.it>
2550 * src/table.C (SetPWidth): Just a small fix so the alignment is not
2551 set to left if I just remove the width entry (or it is empty).
2553 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2554 paragraph when having dummy paragraphs.
2556 1999-10-20 Juergen Vigna <jug@sad.it>
2558 * src/insets/figinset.C: just commented some fl_free_form calls
2559 and added warnings so that this calls should be activated later
2560 again. This avoids for now a segfault, but we have a memory leak!
2562 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2563 'const char * argument' to 'string argument', this should
2564 fix some Asserts() in lyxstring.C.
2566 * src/lyxfunc.h: Removed the function argAsString(const char *)
2567 as it is not used anymore.
2569 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
2571 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2574 * src/Literate.h: some funcs moved from public to private to make
2575 interface clearer. Unneeded args removed.
2577 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2579 (scanBuildLogFile): ditto
2581 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2582 normal TeX Error. Still room for improvement.
2584 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2586 * src/buffer.C (insertErrors): changes to make the error
2587 desctription show properly.
2589 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2592 * src/support/lyxstring.C (helper): changed to use
2593 sizeof(object->rep->ref).
2594 (operator>>): changed to use a pointer instead.
2596 * src/support/lyxstring.h: changed const reference & to value_type
2597 const & lets see if that helps.
2599 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2601 * Makefile.am (rpmdist): fixed to have non static package and
2604 * src/support/lyxstring.C: removed the compilation guards
2606 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2609 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2610 conditional compile of lyxstring.Ch
2612 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2613 stupid check, but it is a lot better than the bastring hack.
2614 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2616 * several files: changed string::erase into string::clear. Not
2619 * src/chset.C (encodeString): use a char temporary instead
2621 * src/table.C (TexEndOfCell): added tostr around
2622 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2623 (TexEndOfCell): ditto
2624 (TexEndOfCell): ditto
2625 (TexEndOfCell): ditto
2626 (DocBookEndOfCell): ditto
2627 (DocBookEndOfCell): ditto
2628 (DocBookEndOfCell): ditto
2629 (DocBookEndOfCell): ditto
2631 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2633 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2635 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2636 (MenuBuildProg): added tostr around ret
2637 (MenuRunChktex): added tostr around ret
2638 (DocumentApplyCB): added tostr around ret
2640 * src/chset.C (encodeString): added tostr around t->ic
2642 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2643 (makeLaTeXFile): added tostr around tocdepth
2644 (makeLaTeXFile): added tostr around ftcound - 1
2646 * src/insets/insetbib.C (setCounter): added tostr around counter.
2648 * src/support/lyxstring.h: added an operator+=(int) to catch more
2651 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2652 (lyxstring): We DON'T allow NULL pointers.
2654 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2656 * src/mathed/math_macro.C (MathMacroArgument::Write,
2657 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2658 when writing them out.
2660 * src/LString.C: remove, since it is not used anymore.
2662 * src/support/lyxstring.C: condition the content to
2663 USE_INCLUDED_STRING macro.
2665 * src/mathed/math_symbols.C, src/support/lstrings.C,
2666 src/support/lyxstring.C: add `using' directive to specify what
2667 we need in <algorithm>. I do not think that we need to
2668 conditionalize this, but any thought is appreciated.
2670 * many files: change all callback functions to "C" linkage
2671 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2672 strict_ansi. Those who were static are now global.
2673 The case of callbacks which are static class members is
2674 trickier, since we have to make C wrappers around them (see
2675 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2676 did not finish this yet, since it defeats the purpose of
2677 encapsulation, and I am not sure what the best route is.
2679 1999-10-19 Juergen Vigna <jug@sad.it>
2681 * src/support/lyxstring.C (lyxstring): we permit to have a null
2682 pointer as assignment value and just don't assign it.
2684 * src/vspace.C (nextToken): corrected this function substituting
2685 find_first(_not)_of with find_last_of.
2687 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2688 (TableOptCloseCB) (TableSpeCloseCB):
2689 inserted fl_set_focus call for problem with fl_hide_form() in
2692 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2694 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2697 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2699 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2700 LyXLex::next() and not eatline() to get its argument.
2702 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2704 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2705 instead, use fstreams for io of the depfile, removed unneeded
2706 functions and variables.
2708 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2709 vector instead, removed all functions and variables that is not in
2712 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2714 * src/buffer.C (insertErrors): use new interface to TeXError
2716 * Makefile.am (rpmdist): added a rpmdist target
2718 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2719 per Kayvan's instructions.
2721 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2723 * src/Makefile.am: add a definition for localedir, so that locales
2724 are found after installation (Kayvan)
2726 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2728 * development/.cvsignore: new file.
2730 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2732 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2733 C++ compiler provides wrappers for C headers and use our alternate
2736 * configure.in: use LYX_CXX_CHEADERS.
2738 * src/cheader/: new directory, populated with cname headers from
2739 libstdc++-2.8.1. They are a bit old, but probably good enough for
2740 what we want (support compilers who lack them).
2742 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2743 from includes. It turns out is was stupid.
2745 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2747 * lib/Makefile.am (install-data-local): forgot a ';'
2748 (install-data-local): forgot a '\'
2749 (libinstalldirs): needed after all. reintroduced.
2751 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2753 * configure.in (AC_OUTPUT): added lyx.spec
2755 * development/lyx.spec: removed file
2757 * development/lyx.spec.in: new file
2759 * po/*.po: merged with lyx.pot becuase of make distcheck
2761 * lib/Makefile.am (dist-hook): added dist-hook so that
2762 documentation files will be included when doing a make
2763 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2764 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2766 more: tried to make install do the right thing, exclude CVS dirs
2769 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2770 Path would fit in more nicely.
2772 * all files that used to use pathstack: uses now Path instead.
2773 This change was a lot easier than expected.
2775 * src/support/path.h: new file
2777 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2779 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2781 * src/support/lyxstring.C (getline): Default arg was given for
2784 * Configure.cmd: removed file
2786 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2788 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2789 streams classes and types, add the proper 'using' statements when
2790 MODERN_STL is defined.
2792 * src/debug.h: move the << operator definition after the inclusion
2795 * src/support/filetools.C: include "LAssert.h", which is needed
2798 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2801 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2802 include "debug.h" to define a proper ostream.
2804 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2806 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2807 method to the SystemCall class which can kill a process, but it's
2808 not fully implemented yet.
2810 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2812 * src/support/FileInfo.h: Better documentation
2814 * src/lyxfunc.C: Added support for buffer-export html
2816 * src/menus.C: Added Export->As HTML...
2818 * lib/bind/*.bind: Added short-cut for buffer-export html
2820 * src/lyxrc.*: Added support for new \tth_command
2822 * lib/lyxrc.example: Added stuff for new \tth_command
2824 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2826 * lib/Makefile.am (IMAGES): removed images/README
2827 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2828 installes in correct place. Check permisions is installed
2831 * src/LaTeX.C: some no-op changes moved declaration of some
2834 * src/LaTeX.h (LATEX_H): changed include guard name
2836 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2838 * lib/reLyX/Makefile.am: install noweb2lyx.
2840 * lib/Makefile.am: install configure.
2842 * lib/reLyX/configure.in: declare a config aux dir; set package
2843 name to lyx (not sure what the best solution is); generate noweb2lyx.
2845 * lib/layouts/egs.layout: fix the bibliography layout.
2847 1999-10-08 Jürgen Vigna <jug@sad.it>
2849 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
2850 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
2851 it returned without continuing to search the path.
2853 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2855 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
2856 also fixes a bug. It is not allowed to do tricks with std::strings
2857 like: string a("hei"); &a[e]; this will not give what you
2858 think... Any reason for the complexity in this func?
2860 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
2862 * Updated README and INSTALL a bit, mostly to check that my
2863 CVS rights are correctly set up.
2865 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2867 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
2868 does not allow '\0' chars but lyxstring and std::string does.
2870 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2872 * autogen.sh (AUTOCONF): let the autogen script create the
2873 POTFILES.in file too. POTFILES.in should perhaps now not be
2874 included in the cvs module.
2876 * some more files changed to use C++ includes instead of C ones.
2878 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
2880 (Reread): added tostr to nlink. buggy output otherwise.
2881 (Reread): added a string() around szMode when assigning to Buffer,
2882 without this I got a log of garbled info strings.
2884 * acconfig.h: commented out the PTR_AS_INT macros. They should not
2887 * I have added several ostream & operator<<(ostream &, some_type)
2888 functions. This has been done to avoid casting and warnings when
2889 outputting enums to lyxerr. This as thus eliminated a lot of
2890 explicit casts and has made the code clearer. Among the enums
2891 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
2892 mathed enums, some font enum the Debug::type enum.
2894 * src/support/lyxstring.h (clear): missing method. equivalent of
2897 * all files that contained "stderr": rewrote constructs that used
2898 stderr to use lyxerr instead. (except bmtable)
2900 * src/support/DebugStream.h (level): and the passed t with
2901 Debug::ANY to avoid spurious bits set.
2903 * src/debug.h (Debug::type value): made it accept strings of the
2906 * configure.in (Check for programs): Added a check for kpsewhich,
2907 the latex generation will use this later to better the dicovery of
2910 * src/BufferView.C (create_view): we don't need to cast this to
2911 (void*) that is done automatically.
2912 (WorkAreaButtonPress): removed some dead code.
2914 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2916 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
2917 is not overwritten when translated (David Sua'rez de Lis).
2919 * lib/CREDITS: Added David Sua'rez de Lis
2921 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
2923 * src/bufferparams.C (BufferParams): default input encoding is now
2926 * acinclude.m4 (cross_compiling): comment out macro
2927 LYX_GXX_STRENGTH_REDUCE.
2929 * acconfig.h: make sure that const is not defined (to empty) when
2930 we are compiling C++. Remove commented out code using SIZEOF_xx
2933 * configure.in : move the test for const and inline as late as
2934 possible so that these C tests do not interefere with C++ ones.
2935 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
2936 has not been proven.
2938 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2940 * src/table.C (getDocBookAlign): remove bad default value for
2943 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
2945 (ShowFileMenu2): ditto.
2947 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
2950 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2952 * Most files: finished the change from the old error code to use
2953 DebugStream for all lyxerr debugging. Only minor changes remain
2954 (e.g. the setting of debug levels using strings instead of number)
2956 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2958 * src/layout.C (Add): Changed to use compare_no_case instead of
2961 * src/FontInfo.C: changed loop variable type too string::size_type.
2963 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2965 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
2966 set ETAGS_ARGS to --c++
2968 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
2970 * src/table.C (DocBookEndOfCell): commented out two unused variables
2972 * src/paragraph.C: commented out four unused variables.
2974 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
2975 insed a if clause with type string::size_type.
2977 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
2980 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
2982 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
2983 variable, also changed loop to go from 0 to lenght + 1, instead of
2984 -1 to length. This should be correct.
2986 * src/LaTeX.C (scanError): use string::size_type as loop variable
2989 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
2990 (l.896) since y_tmp and row was not used anyway.
2992 * src/insets/insetref.C (escape): use string::size_type as loop
2995 * src/insets/insetquotes.C (Width): use string::size_type as loop
2997 (Draw): use string::size_type as loop variable type.
2999 * src/insets/insetlatexaccent.C (checkContents): use
3000 string::size_type as loop variable type.
3002 * src/insets/insetlabel.C (escape): use string::size_type as loop
3005 * src/insets/insetinfo.C: added an extern for current_view.
3007 * src/insets/insetcommand.C (scanCommand): use string::size_type
3008 as loop variable type.
3010 * most files: removed the RCS tags. With them we had to recompile
3011 a lot of files after a simple cvs commit. Also we have never used
3012 them for anything meaningful.
3014 * most files: tags-query-replace NULL 0. As adviced several plases
3015 we now use "0" instead of "NULL" in our code.
3017 * src/support/filetools.C (SpaceLess): use string::size_type as
3020 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
3022 * src/paragraph.C: fixed up some more string stuff.
3024 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3026 * src/support/filetools.h: make modestr a std::string.
3028 * src/filetools.C (GetEnv): made ch really const.
3030 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
3031 made code that used these use max/min from <algorithm> instead.
3033 * changed several c library include files to their equivalent c++
3034 library include files. All is not changed yet.
3036 * created a support subdir in src, put lyxstring and lstrings
3037 there + the extra files atexit, fileblock, strerror. Created
3038 Makefile.am. edited configure.in and src/Makefile.am to use this
3039 new subdir. More files moved to support.
3041 * imported som of the functions from repository lyx, filetools
3043 * ran tags-query-replace on LString -> string, corrected the bogus
3044 cases. Tried to make use of lstrings.[hC], debugged a lot. There
3045 is still some errors in there. This is errors where too much or
3046 too litle get deleted from strings (string::erase, string::substr,
3047 string::replace), there can also be some off by one errors, or
3048 just plain wrong use of functions from lstrings. Viewing of quotes
3051 * LyX is now running fairly well with string, but there are
3052 certainly some bugs yet (see above) also string is quite different
3053 from LString among others in that it does not allow null pointers
3054 passed in and will abort if it gets any.
3056 * Added the revtex4 files I forgot when setting up the repository.
3058 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3060 * All over: Tried to clean everything up so that only the files
3061 that we really need are included in the cvs repository.
3062 * Switched to use automake.
3063 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3064 * Install has not been checked.
3066 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3068 * po/pt.po: Three errors:
3069 l.533 and l.538 format specification error
3070 l. 402 duplicate entry, I just deleted it.