1 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/LaTeX.C (scanAux): fix the regular expression used to scan
7 * autogen.sh: do not use "type -path" (what's that anyway?).
9 * src/support/filetools.C (findtexfile): remove extraneous space
10 which caused a kpsewhich warning (at least with kpathsea version
13 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
15 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
17 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
19 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
21 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
23 * src/paragraph.C (BreakParagraph): do not reserve space on text
24 if we don't need to (otherwise, if pos_end < pos, we end up
25 reserving huge amounts of memory due to bad unsigned karma).
26 (BreakParagraphConservative): ditto, although I have not seen
27 evidence the bug can happen here.
29 * src/lyxparagraph.h: add a using std::list.
31 2000-01-11 Juergen Vigna <jug@sad.it>
33 * src/menus.C (MenuDocu): output an Alert if the documentation-file
36 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
38 * src/vc-backend.C (doVCCommand): change to be static and take one
39 more parameter: the path to chdir too be fore executing the command.
40 (retrive): new function equiv to "co -r"
42 * src/bufferlist.C (loadLyXFile): implement the missing parts if
43 file_not_found_hook is true.
45 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
47 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
48 if a file is readwrite,readonly...anything else.
50 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
52 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
53 (CreatePostscript): name change from MenuRunDVIPS (or something)
54 (PreviewPostscript): name change from MenuPreviewPS
55 (PreviewDVI): name change from MenuPreviewDVI
57 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
58 \view_pdf_command., \pdf_to_ps_command
60 * lib/configure.m4: added search for PDF viewer, and search for
62 (lyxrc.defaults output): add \pdflatex_command,
63 \view_pdf_command and \pdf_to_ps_command.
65 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
67 * src/bufferlist.C (write): we don't use blocksize for anything so
70 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
72 * src/support/block.h: disable operator T* (), since it causes
73 problems with both compilers I tried. See comments in the file.
75 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
78 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
79 variable LYX_DIR_10x to LYX_DIR_11x.
81 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
83 * INSTALL: document --with-lyxname.
86 * configure.in: new configure flag --with-lyxname which allows to
87 choose the name under which lyx is installed. Default is "lyx", of
88 course. It used to be possible to do this with --program-suffix,
89 but the later has in fact a different meaning for autoconf.
91 * src/support/lstrings.h (lstrchr): reformat a bit.
93 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
94 * src/mathed/math_defs.h: ditto.
96 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
98 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
99 true, decides if we create a backup file or not when saving. New
100 tag and variable \pdf_mode, defaults to false. New tag and
101 variable \pdflatex_command, defaults to pdflatex. New tag and
102 variable \view_pdf_command, defaults to xpdf. New tag and variable
103 \pdf_to_ps_command, defaults to pdf2ps.
105 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
107 * src/bufferlist.C (close): don't call insetUnlock if the buffer
108 does not have a BufferView.
109 (unlockInset): ditto + don't access the_locking_inset if the
110 buffer does not have a BufferView.
112 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
113 certain circumstances so that we don't continue a keyboard
114 operation long after the key was released. Try f.ex. to load a
115 large document, press PageDown for some seconds and then release
116 it. Before this change the document would contine to scroll for
117 some time, with this change it stops imidiatly.
119 * src/support/block.h: don't allocate more space than needed. As
120 long as we don't try to write to the arr[x] in a array_type arr[x]
121 it is perfectly ok. (if you write to it you might segfault).
122 added operator value_type*() so that is possible to pass the array
123 to functions expecting a C-pointer.
125 * lib/Makefile.am (dist-hook): don't fail completely if unable to
128 * intl/*: updated to gettext 0.10.35, tried to add our own
129 required modifications. Please verify.
131 * po/*: updated to gettext 0.10.35, tried to add our own required
132 modifications. Please verify.
134 * src/support/lstrings.C (tostr): go at fixing the problem with
135 cxx and stringstream. When stringstream is used return
136 oss.str().c_str() so that problems with lyxstring and basic_string
137 are avoided. Note that the best solution would be for cxx to use
138 basic_string all the way, but it is not conformant yet. (it seems)
140 * src/lyx_cb.C + other files: moved several global functions to
141 class BufferView, some have been moved to BufferView.[Ch] others
142 are still located in lyx_cb.C. Code changes because of this. (part
143 of "get rid of current_view project".)
145 * src/buffer.C + other files: moved several Buffer functions to
146 class BufferView, the functions are still present in buffer.C.
147 Code changes because of this.
149 * config/lcmessage.m4: updated to most recent. used when creating
152 * config/progtest.m4: updated to most recent. used when creating
155 * config/gettext.m4: updated to most recent. applied patch for
158 * config/gettext.m4.patch: new file that shows what changes we
159 have done to the local copy of gettext.m4.
161 * config/libtool.m4: new file, used in creation of acinclude.m4
163 * config/lyxinclude.m4: new file, this is the lyx created m4
164 macros, used in making acinclude.m4.
166 * autogen.sh: GNU m4 discovered as a separate task not as part of
167 the lib/configure creation.
168 Generate acinlucde from files in config. Actually cat
169 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
170 easier to upgrade .m4 files that really are external.
172 * src/Spacing.h: moved using std::istringstream to right after
173 <sstream>. This should fix the problem seen with some compilers.
175 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
177 * src/lyx_cb.C: began some work to remove the dependency a lot of
178 functions have on BufferView::text, even if not really needed.
179 (GetCurrentTextClass): removed this func, it only hid the
182 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
183 forgot this in last commit.
185 * src/Bullet.C (bulletEntry): use static char const *[] for the
186 tables, becuase of this the return arg had to change to string.
188 (~Bullet): removed unneeded destructor
190 * src/BufferView.C (beforeChange): moved from lyx_cb.C
191 (insetSleep): moved from Buffer
192 (insetWakeup): moved from Buffer
193 (insetUnlock): moved from Buffer
195 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
196 from Buffer to BufferView.
198 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
200 * config/ltmain.sh: updated to version 1.3.4 of libtool
202 * config/ltconfig: updated to version 1.3.4 of libtool
204 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
207 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
208 Did I get that right?
210 * src/lyxlex.h: add a "using" directive or two.
211 * src/Spacing.h: ditto.
212 * src/insets/figinset.C: ditto.
213 * src/support/filetools.C: ditto.
214 * src/support/lstrings.C: ditto.
215 * src/BufferView.C: ditto.
216 * src/bufferlist.C: ditto.
217 * src/lyx_cb.C: ditto.
218 * src/lyxlex.C: ditto.
220 * NEWS: add some changes for 1.1.4.
222 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
224 * src/BufferView.C: first go at a TextCache to speed up switching
227 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
229 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
230 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
231 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
232 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
235 * src/mathed/math_defs.h (MathedRowSt): make sure that all
236 members of the struct are correctly initialized to 0 (detected by
238 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
239 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
241 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
242 pidwait, since it was allocated with "new". This was potentially
243 very bad. Thanks to Michael Schmitt for running purify for us.
246 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
248 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
250 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
252 1999-12-30 Allan Rae <rae@lyx.org>
254 * lib/templates/IEEEtran.lyx: minor change
256 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
257 src/mathed/formula.C (LocalDispatch): askForText changes
259 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
260 know when a user has cancelled input. Fixes annoying problems with
261 inserting labels and version control.
263 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
265 * src/support/lstrings.C (tostr): rewritten to use strstream and
268 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
270 * src/support/filetools.C (IsFileWriteable): use fstream to check
271 (IsDirWriteable): use fileinfo to check
273 * src/support/filetools.h (FilePtr): whole class deleted
275 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
277 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
279 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
281 * src/bufferlist.C (write): use ifstream and ofstream instead of
284 * src/Spacing.h: use istrstream instead of sscanf
286 * src/mathed/math_defs.h: change first arg to istream from FILE*
288 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
290 * src/mathed/math_parser.C: have yyis to be an istream
291 (LexGetArg): use istream (yyis)
293 (mathed_parse): ditto
294 (mathed_parser_file): first arg istream instead of FILE*, set yyis
296 * src/mathed/formula.C (Read): rewritten to use istream
298 * src/mathed/formulamacro.C (Read): rewritten to use istream
300 * src/lyxlex.h (~LyXLex): deleted desturctor
301 (getStream): new function, returns an istream
302 (getFile): deleted funtion
303 (IsOK): return is.good();
305 * src/lyxlex.C (LyXLex): delete file and owns_file
306 (setFile): open an filebuf and assign that to a istream instead of
308 (setStream): new function, takes an istream as arg.
309 (setFile): deleted function
310 (EatLine): rewritten us use istream instead of FILE*
314 * src/table.C (LyXTable): use istream instead of FILE*
315 (Read): rewritten to take an istream instead of FILE*
317 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
319 * src/buffer.C (Dispatch): remove an extraneous break statement.
321 * src/support/filetools.C (QuoteName): change to do simple
322 'quoting'. More work is necessary. Also changed to do nothing
323 under emx (needs fix too).
324 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
326 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
327 config.h.in to the AC_DEFINE_UNQUOTED() call.
328 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
329 needs char * as argument (because Solaris 7 declares it like
332 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
333 remove definition of BZERO.
335 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
337 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
338 defined, "lyxregex.h" if not.
340 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
342 (REGEX): new variable that is set to regex.c lyxregex.h when
343 AM_CONDITIONAL USE_REGEX is set.
344 (libsupport_la_SOURCES): add $(REGEX)
346 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
349 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
352 * configure.in: add call to LYX_REGEX
354 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
355 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
357 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
359 * lib/bind/fi_menus.bind: new file, from
360 pauli.virtanen@saunalahti.fi.
362 * src/buffer.C (getBibkeyList): pass the parameter delim to
363 InsetInclude::getKeys and InsetBibtex::getKeys.
365 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
366 is passed to Buffer::getBibkeyList
368 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
369 instead of the hardcoded comma.
371 * src/insets/insetbib.C (getKeys): make sure that there are not
372 leading blanks in bibtex keys. Normal latex does not care, but
373 harvard.sty seems to dislike blanks at the beginning of citation
374 keys. In particular, the retturn value of the function is
376 * INSTALL: make it clear that libstdc++ is needed and that gcc
377 2.7.x probably does not work.
379 * src/support/filetools.C (findtexfile): make debug message go to
381 * src/insets/insetbib.C (getKeys): ditto
383 * src/debug.C (showTags): make sure that the output is correctly
386 * configure.in: add a comment for TWO_COLOR_ICON define.
388 * acconfig.h: remove all the entries that already defined in
389 configure.in or acinclude.m4.
391 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
392 to avoid user name, date and copyright.
394 1999-12-21 Juergen Vigna <jug@sad.it>
396 * src/table.C (Read): Now read bogus row format informations
397 if the format is < 5 so that afterwards the table can
398 be read by lyx but without any format-info. Fixed the
399 crash we experienced when not doing this.
401 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
403 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
404 (RedoDrawingOfParagraph): ditto
405 (RedoParagraphs): ditto
406 (RemoveTableRow): ditto
408 * src/text.C (Fill): rename arg paperwidth -> paper_width
410 * src/buffer.C (insertLyXFile): rename var filename -> fname
411 (writeFile): rename arg filename -> fname
412 (writeFileAscii): ditto
413 (makeLaTeXFile): ditto
414 (makeLinuxDocFile): ditto
415 (makeDocBookFile): ditto
417 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
420 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
422 * src/bmtable.h: add extern "C" on this file when __cplusplus is
425 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
426 compiled by a C compiler not C++.
428 * src/layout.h (LyXTextClass): added typedef for const_iterator
429 (LyXTextClassList): added typedef for const_iterator + member
430 functions begin and end.
432 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
433 iterators to fill the choice_class.
434 (updateLayoutChoice): rewritten to use iterators to fill the
435 layoutlist in the toolbar.
437 * src/BufferView.h (BufferView::work_area_width): removed unused
440 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
442 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
443 (sgmlCloseTag): ditto
445 * src/support/lstrings.h: return type of countChar changed to
448 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
449 what version of this func to use. Also made to return unsigned int.
451 * configure.in: call LYX_STD_COUNT
453 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
454 conforming std::count.
456 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
458 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
459 and a subscript would give bad display (patch from Dekel Tsur
460 <dekel@math.tau.ac.il>).
462 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
464 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
467 * src/chset.h: add a few 'using' directives
469 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
470 triggered when no buffer is active
472 * src/layout.C: removed `break' after `return' in switch(), since
475 * src/lyx_main.C (init): make sure LyX can be ran in place even
476 when libtool has done its magic with shared libraries. Fix the
477 test for the case when the system directory has not been found.
479 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
480 name for the latex file.
481 (MenuMakeHTML): ditto
483 * src/buffer.h: add an optional boolean argument, which is passed
486 1999-12-20 Allan Rae <rae@lyx.org>
488 * lib/templates/IEEEtran.lyx: small correction and update.
490 * configure.in: Attempted to use LYX_PATH_HEADER
492 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
494 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
495 input from JMarc. Now use preprocessor to find the header.
496 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
497 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
498 LYX_STL_STRING_FWD. See comments in file.
500 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
502 * The global MiniBuffer * minibuffer variable is dead.
504 * The global FD_form_main * fd_form_main variable is dead.
506 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
508 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
510 * src/table.h: add the LOstream.h header
513 * src/LyXAction.h: change the explaination of the ReadOnly
514 attribute: is indicates that the function _can_ be used.
516 * src/LyXAction.C (init): find-replace _can_ be used in read-only
519 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
521 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
527 * src/paragraph.C (GetWord): assert on pos>=0
530 * src/support/lyxstring.C: condition the use of an invariant on
532 * src/support/lyxstring.h: ditto
534 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
535 Use LAssert.h instead of plain assert().
537 * src/support/lstrings.h: add LAssert.h, in case it is needed.
539 * src/lyxfunc.C: do not include LAssert.h, it is not used.
540 * src/support/filetools.C: ditto
542 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
545 * INSTALL: document the new configure flags
547 * configure.in: suppress --with-debug; add --enable-assertions
549 * acinclude.m4: various changes in alignment of help strings.
551 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
553 * src/kbmap.C: commented out the use of the hash map in kb_map,
554 beginning of movement to a stl::container.
556 * several files: removed code that was not in effect when
557 MOVE_TEXT was defined.
559 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
560 for escaping should not be used. We can discuss if the string
561 should be enclosed in f.ex. [] instead of "".
563 * src/trans_mgr.C (insert): use the new returned value from
564 encodeString to get deadkeys and keymaps done correctly.
566 * src/chset.C (encodeString): changed to return a pair, to tell
567 what to use if we know the string.
569 * src/lyxscreen.h (fillArc): new function.
571 * src/FontInfo.C (resize): rewritten to use more std::string like
572 structore, especially string::replace.
574 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
577 * configure.in (chmod +x some scripts): remove config/gcc-hack
579 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
581 * src/buffer.C (writeFile): change once again the top comment in a
582 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
583 instead of an hardcoded version number.
584 (makeDocBookFile): ditto
586 * src/version.h: add new define LYX_DOCVERSION
588 * po/de.po: update from Pit Sütterlin
589 * lib/bind/de_menus.bind: ditto.
591 * src/lyxfunc.C (Dispatch): call MenuExport()
592 * src/buffer.C (Dispatch): ditto
594 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
596 (MenuExport): new function, moved from
599 * src/trans_mgr.C (insert): small cleanup
600 * src/chset.C (loadFile): ditto
602 * lib/kbd/iso8859-1.cdef: add missing backslashes
604 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
606 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
607 help with placing the manually drawn accents better.
609 (Draw): x2 and hg changed to float to minimize rounding errors and
610 help place the accents better.
612 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
613 unsigned short to char is just wrong...cast the char to unsigned
614 char instead so that the two values can compare sanely. This
615 should also make the display of insetlatexaccents better and
616 perhaps also some other insets.
618 (lbearing): new function
621 1999-12-15 Allan Rae <rae@lyx.org>
623 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
624 header that provides a wrapper around the very annoying SGI STL header
627 * src/support/lyxstring.C, src/LString.h:
628 removed old SGI-STL-compatability attempts.
630 * configure.in: Use LYX_STL_STRING_FWD.
632 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
633 stl_string_fwd.h is around and try to determine it's location.
634 Major improvement over previous SGI STL 3.2 compatability.
635 Three small problems remain with this function due to my zero
636 knowledge of autoconf. JMarc and lgb see the comments in the code.
638 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
640 * src/broken_const.h, config/hack-gcc, config/README: removed
642 * configure.in: remove --with-gcc-hack option; do not call
645 * INSTALL: remove documentation of --with-broken-const and
648 * acconfig.h: remove all trace of BROKEN_CONST define
650 * src/buffer.C (makeDocBookFile): update version number in output
652 (SimpleDocBookOnePar): fix an assert when trying to a character
653 access beyond string length
656 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
658 * po/de.po: fix the Export menu
660 * lyx.man: update the description of -dbg
662 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
663 (commandLineHelp): updated
664 (easyParse): show list of available debug levels if -dbg is passed
667 * src/Makefile.am: add debug.C
669 * src/debug.h: moved some code to debug.C
671 * src/debug.C: new file. Contains code to set and show debug
674 * src/layout.C: remove 'break' after 'continue' in switch
675 statements, since these cannot be reached.
677 1999-12-13 Allan Rae <rae@lyx.org>
679 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
680 (in_word_set): hash() -> math_hash()
682 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
684 * acconfig.h: Added a test for whether we are using exceptions in the
685 current compilation run. If so USING_EXCEPTIONS is defined.
687 * config.in: Check for existance of stl_string_fwd.h
688 * src/LString.h: If compiling --with-included-string and SGI's
689 STL version 3.2 is present (see above test) we need to block their
690 forward declaration of string and supply a __get_c_string().
691 However, it turns out this is only necessary if compiling with
692 exceptions enabled so I've a bit more to add yet.
694 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
695 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
696 src/support/LRegex.h, src/undo.h:
697 Shuffle the order of the included files a little to ensure that
698 LString.h gets included before anything that includes stl_string_fwd.h
700 * src/support/lyxstring.C: We need to #include LString.h instead of
701 lyxstring.h to get the necessary definition of __get_c_string.
702 (__get_c_string): New function. This is defined static just like SGI's
703 although why they need to do this I'm not sure. Perhaps it should be
704 in lstrings.C instead.
706 * lib/templates/IEEEtran.lyx: New template file.
708 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
710 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
711 * intl/Makefile.in (MKINSTALLDIRS): ditto
713 * src/LyXAction.C (init): changed to hold the LFUN data in a
714 automatic array in stead of in callso to newFunc, this speeds up
715 compilation a lot. Also all the memory used by the array is
716 returned when the init is completed.
718 * a lot of files: compiled with -Wold-style-cast, changed most of
719 the reported offenders to C++ style casts. Did not change the
720 offenders in C files.
722 * src/trans.h (Match): change argument type to unsigned int.
724 * src/support/DebugStream.C: fix some types on the streambufs so
725 that it works on a conforming implementation.
727 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
729 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
731 * src/support/lyxstring.C: remove the inline added earlier since
732 they cause a bunch of unsatisfied symbols when linking with dec
733 cxx. Cxx likes to have the body of inlines at the place where they
736 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
737 accessing negative bounds in array. This fixes the crash when
738 inserting accented characters.
739 * src/trans.h (Match): ditto
741 * src/buffer.C (Dispatch): since this is a void, it should not try
742 to return anything...
744 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
746 * src/buffer.h: removed the two friends from Buffer. Some changes
747 because of this. Buffer::getFileName and Buffer::setFileName
748 renamed to Buffer::fileName() and Buffer::fileName(...).
750 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
752 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
753 and Buffer::update(short) to BufferView. This move is currently
754 controlled by a define MOVE_TEXT, this will be removed when all
755 shows to be ok. This move paves the way for better separation
756 between buffer contents and buffer view. One side effect is that
757 the BufferView needs a rebreak when swiching buffers, if we want
758 to avoid this we can add a cache that holds pointers to LyXText's
759 that is not currently in use.
761 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
764 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
766 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
768 * lyx_main.C: new command line option -x (or --execute) and
769 -e (or --export). Now direct conversion from .lyx to .tex
770 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
771 Unfortunately, X is still needed and the GUI pops up during the
774 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
776 * src/Spacing.C: add a using directive to bring stream stuff into
778 * src/paragraph.C: ditto
779 * src/buffer.C: ditto
781 * NEWS: updated a bit the new features of 1.1.3 (took a few things
782 from Lars' announcement).
784 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
785 example files from Tino Meinen.
787 1999-12-06 Allan Rae <rae@lyx.org>
789 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
791 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
793 * src/support/lyxstring.C: added a lot of inline for no good
796 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
797 latexWriteEndChanges, they were not used.
799 * src/layout.h (operator<<): output operator for PageSides
801 * src/mathed/math_iter.C (my_memcpy): slightly changed.
803 * some example files: loaded in LyX 1.0.4 and saved again to update
804 certain constructs (table format)
806 * a lot of files: did the change to use fstream/iostream for all
807 writing of files. Done with a close look at Andre Poenitz's patch.
809 * some files: whitespace changes.
811 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
813 * src/mathed/math_iter.C (my_memcpy): new function. Since the
814 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
815 architecture, we provide our own. It is used unconditionnally, but
816 I do not think this is a performance problem. Thanks to Angus
817 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
818 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
820 (GetInset): use my_memcpy.
824 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
825 it is easier to understand, but it uses less TeX-only constructs now.
827 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
828 elements contain spaces
830 * lib/configure: regenerated
832 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
833 elements contain spaces; display the list of programs that are
836 * autogen.sh: make sure lib/configure is executable
838 * lib/examples/*: rename the tutorial examples to begin with the
839 two-letters language code.
841 * src/lyxfunc.C (getStatus): do not query current font if no
844 * src/lyx_cb.C (RunScript): use QuoteName
845 (MenuRunDvips): ditto
846 (PrintApplyCB): ditto
848 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
849 around argument, so that it works well with the current shell.
850 Does not work properly with OS/2 shells currently.
852 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
853 * src/LyXSendto.C (SendtoApplyCB): ditto
854 * src/lyxfunc.C (Dispatch): ditto
855 * src/buffer.C (runLaTeX): ditto
857 (buildProgram): ditto
859 * src/lyx_cb.C (RunScript): ditto
860 (MenuMakeLaTeX): ditto
862 * src/buffer.h (getLatexName): new method
864 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
866 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
868 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
869 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
870 (create_math_panel): ditto
872 * src/lyxfunc.C (getStatus): re-activate the code which gets
873 current font and cursor; add test for export to html.
875 * src/lyxrc.C (read): remove unreachable break statements; add a
878 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
880 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
882 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
883 introduced by faulty regex.
884 * src/buffer.C: ditto
885 * src/lastfiles.C: ditto
886 * src/paragraph.C: ditto
888 * src/vspace.C: ditto
889 * src/insets/figinset.C: ditto
890 Note: most of these is absolutely harmless, except the one in
891 src/mathed formula.C.
893 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
895 * src/ImportNoweb.C (documentclass): fixed bounds for substr
896 operation, yielding correct results for the reLyX command.
898 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
900 * src/support/filetools.C (ExpandPath): removed an over eager
902 (ReplaceEnvironmentPath): ditto
904 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
905 shows that we are doing something fishy in our code...
909 * src/lyxrc.C (read): use a double switch trick to get more help
910 from the compiler. (the same trick is used in layout.C)
911 (write): new function. opens a ofstream and pass that to output
912 (output): new function, takes a ostream and writes the lyxrc
913 elemts to it. uses a dummy switch to make sure no elements are
916 * src/lyxlex.h: added a struct pushpophelper for use in functions
917 with more than one exit point.
919 * src/lyxlex.[Ch] (GetInteger): made it const
923 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
925 * src/layout.[hC] : LayoutTags splitted into several enums, new
926 methods created, better error handling cleaner use of lyxlex. Read
929 * src/bmtable.[Ch]: change some member prototypes because of the
932 * commandtags.h, src/LyXAction.C (init): new function:
933 "preferences-save", saves the lyxrc entries into .lyx/preferences.
934 This file is not read automatically but you can add \input
935 preferences to your lyxrc if you want to. We need to discuss how
938 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
939 in .aux, also remove .bib and .bst files from dependencies when
942 * src/BufferView.C, src/LyXView.C: add const_cast several places
943 because of changes to images.
945 * lib/images/*: same change as for images/*
947 * lib/lyxrc.example: Default for accept_compound is false not no.
949 * images/*: changed to be const, however I have som misgivings
950 about this change so it might be changed back.
952 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
954 * lib/configure, po/POTFILES.in: regenerated
956 * autogen.sh: autogenerate lib/configure from lib/configure.m4
958 * config/lib_configure.m4: removed
960 * lib/configure.m4: new file (was config/lib_configure.m4)
962 * configure.in: do not test for rtti, since we do not use it.
964 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
966 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
967 doubling of allocated space scheme. This makes it faster for large
968 strings end to use less memory for small strings. xtra rememoved.
970 * src/insets/figinset.C (waitalarm): commented out.
971 (GhostscriptMsg): use static_cast
972 (GhostscriptMsg): use new instead of malloc to allocate memory for
973 cmap. also delete the memory after use.
975 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
977 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
978 for changes in bibtex database or style.
979 (runBibTeX): remove all .bib and .bst files from dep before we
981 (run): use scanAuc in when dep file already exist.
983 * src/DepTable.C (remove_files_with_extension): new method
986 * src/DepTable.[Ch]: made many of the methods const.
988 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
990 * src/bufferparams.C: make sure that the default textclass is
991 "article". It used to be the first one by description order, but
992 now the first one is "docbook".
994 * src/lyx_main.C (setDebuggingLevel): change type of argument to
995 string; call Debug::value.
996 (easyParse): pass complete argument to setDebuggingLevel().
998 * src/debug.h (value): fix the code that parses debug levels.
1000 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1003 * src/LyXAction.C: use Debug::ACTION as debug channel.
1005 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1007 * NEWS: updated for the future 1.1.3 release.
1009 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1010 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1011 it should. This is of course a controversial change (since many
1012 people will find that their lyx workscreen is suddenly full of
1013 red), but done for the sake of correctness.
1015 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1016 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1018 * src/insets/inseterror.h, src/insets/inseturl.h,
1019 src/insets/insetinfo.h, src/insets/figinset.h,
1020 src/mathed/formulamacro.h, src/mathed/math_macro.h
1021 (EditMessage): add a missing const and add _() to make sure that
1024 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1025 src/insets/insetbib.C, src/support/filetools.C: add `using'
1028 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1029 doing 'Insert index of last word' at the beginning of a paragraph.
1031 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1033 * several files: white-space changes.
1035 * src/mathed/formula.C: removed IsAlpha and IsDigit
1037 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1038 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1041 * src/insets/figinset.C (GetPSSizes): don't break when
1042 "EndComments" is seen. But break when a boundingbox is read.
1044 * all classes inherited from Inset: return value of Clone
1045 changed back to Inset *.
1047 * all classes inherited form MathInset: return value of Clone
1048 changed back to MathedInset *.
1050 * src/insets/figinset.C (runqueue): use a ofstream to output the
1051 gs/ps file. Might need some setpresicion or setw. However I can
1052 see no problem with the current code.
1053 (runqueue): use sleep instead of the alarm/signal code. I just
1054 can't see the difference.
1056 * src/paragraph.C (LyXParagraph): reserve space in the new
1057 paragraph and resize the inserted paragraph to just fit.
1059 * src/lyxfunc.h (operator|=): added operator for func_status.
1061 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1062 check for readable file.
1064 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1065 check for readable file.
1066 (MenuMakeLinuxDoc): ditto
1067 (MenuMakeDocBook): ditto
1068 (MenuMakeAscii): ditto
1069 (InsertAsciiFile): split the test for openable and readable
1071 * src/bmtable.C (draw_bitmaptable): use
1072 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1074 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1075 findtexfile from LaTeX to filetools.
1077 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1078 instead of FilePtr. Needs to be verified by a literate user.
1080 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1082 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1083 (EditMessage): likewise.
1085 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1086 respectively as \textasciitilde and \textasciicircum.
1088 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1090 * src/support/lyxstring.h: made the methods that take iterators
1093 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1094 (regexMatch): made is use the real regex class.
1096 * src/support/Makefile.am: changed to use libtool
1098 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1100 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1102 (MathIsInset ++): changed several macros to be inline functions
1105 * src/mathed/Makefile.am: changed to use libtool
1107 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1109 * src/insets/inset* : Clone changed to const and return type is
1110 the true insettype not just Inset*.
1112 * src/insets/Makefile.am: changed to use libtool
1114 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1116 * src/undo.[Ch] : added empty() and changed some of the method
1119 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1121 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1122 setID use block<> for the bullets array, added const several places.
1124 * src/lyxfunc.C (getStatus): new function
1126 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1127 LyXAction, added const to several funtions.
1129 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1130 a std::map, and to store the dir items in a vector.
1132 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1135 * src/LyXView.[Ch] + other files : changed currentView to view.
1137 * src/LyXAction.[Ch] : ported from the old devel branch.
1139 * src/.cvsignore: added .libs and a.out
1141 * configure.in : changes to use libtool.
1143 * acinclude.m4 : inserted libtool.m4
1145 * .cvsignore: added libtool
1147 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1149 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1150 file name in insets and mathed directories (otherwise the
1151 dependency is not taken in account under cygwin).
1153 * src/text2.C (InsertString[AB]): make sure that we do not try to
1154 read characters past the string length.
1156 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1158 * lib/doc/LaTeXConfig.lyx.in,
1159 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1161 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1162 file saying who created them and when this heppened; this is
1163 useless and annoys tools like cvs.
1165 * lib/layouts/g-brief-{en,de}.layout,
1166 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1167 from Thomas Hartkens <thomas@hartkens.de>.
1169 * src/{insets,mathed}/Makefile.am: do not declare an empty
1170 LDFLAGS, so that it can be set at configure time (useful on Irix
1173 * lib/reLyX/configure.in: make sure that the prefix is set
1174 correctly in LYX_DIR.
1176 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1178 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1179 be used by 'command-sequence' this allows to bind a key to a
1180 sequence of LyX-commands
1181 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1183 * src/LyXAction.C: add "command-sequence"
1185 * src/LyXFunction.C: handling of "command-sequence"
1187 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1188 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1190 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1192 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1194 * src/buffer.C (writeFile): Do not output a comment giving user
1195 and date at the beginning of a .lyx file. This is useless and
1196 annoys cvs anyway; update version number to 1.1.
1198 * src/Makefile.am (LYX_DIR): add this definition, so that a
1199 default path is hardcoded in LyX.
1201 * configure.in: Use LYX_GNU_GETTEXT.
1203 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1204 AM_GNU_GETTEXT with a bug fixed.
1206 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1208 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1210 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1211 which is used to point to LyX data is now LYX_DIR_11x.
1213 * lyx.man: convert to a unix text file; small updates.
1215 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1217 * src/support/LSubstring.[Ch]: made the second arg of most of the
1218 constructors be a const reference.
1220 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1223 * src/support/lyxstring.[Ch] (swap): added missing member function
1224 and specialization of swap(str, str);
1226 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1228 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1229 trace of the old one.
1231 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1232 put the member definitions in undo.C.
1234 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1235 NEW_TEXT and have now only code that was included when this was
1238 * src/intl.C (LCombo): use static_cast
1240 (DispatchCallback): ditto
1242 * src/definitions.h: removed whole file
1244 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1246 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
1247 parsing and stores in a std:map. a regex defines the file format.
1248 removed unneeded members.
1250 * src/bufferparams.h: added several enums from definitions.h here.
1251 Removed unsused destructor. Changed some types to use proper enum
1252 types. use block to have the temp_bullets and user_defined_bullets
1253 and to make the whole class assignable.
1255 * src/bufferparams.C (Copy): removed this functions, use a default
1258 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
1261 * src/buffer.C (readLyXformat2): commend out all that have with
1262 oldpapersize to do. also comment out all that hve to do with
1263 insetlatex and insetlatexdel.
1264 (setOldPaperStuff): commented out
1266 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
1268 * src/LyXAction.C: remove use of inset-latex-insert
1270 * src/mathed/math_panel.C (button_cb): use static_cast
1272 * src/insets/Makefile.am (insets_o_SOURCES): removed
1275 * src/support/lyxstring.C (helper): use the unsigned long
1276 specifier, UL, instead of a static_cast.
1278 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
1280 * src/support/block.h: new file. to be used as a c-style array in
1281 classes, so that the class can be assignable.
1283 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1285 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
1286 NULL, make sure to return an empty string (it is not possible to
1287 set a string to NULL).
1289 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1291 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
1293 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
1295 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
1296 link line, so that Irix users (for example) can set it explicitely to
1299 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
1300 it can be overidden at make time (static or dynamic link, for
1303 * src/vc-backend.C, src/LaTeXFeatures.h,
1304 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
1305 statements to bring templates to global namespace.
1307 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1309 * src/support/lyxstring.C (operator[] const): make it standard
1312 * src/minibuffer.C (Init): changed to reflect that more
1313 information is given from the lyxvc and need not be provided here.
1315 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
1317 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
1319 * src/LyXView.C (UpdateTimerCB): use static_cast
1320 (KeyPressMask_raw_callback): ditto
1322 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
1323 buffer_, a lot of changes because of this. currentBuffer() ->
1324 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
1325 also changes to other files because of this.
1327 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1329 * src/vc-backend.[Ch]: new files. The backends for vc handling,
1330 have no support for RCS and partial support for CVS, will be
1333 * src/insets/ several files: changes because of function name
1334 changes in Bufferview and LyXView.
1336 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
1338 * src/support/LSubstring.[Ch]: new files. These implement a
1339 Substring that can be very convenient to use. i.e. is this
1341 string a = "Mary had a little sheep";
1342 Substring(a, "sheep") = "lamb";
1343 a is now "Mary has a little lamb".
1345 * src/support/LRegex.[Ch]: a regex class that can be used to pick
1346 out patterns and subpatterns of strings. It is used by LSubstring
1347 and also by vc-backend.C
1349 * src/support/lyxstring.C: went over all the assertions used and
1350 tried to correct the wrong ones and flag which of them is required
1351 by the standard. some bugs found because of this. Also removed a
1352 couple of assertions.
1354 * src/support/Makefile.am (libsupport_a_SOURCES): added
1355 LSubstring.[Ch] and LRegex.[Ch]
1357 * src/support/FileInfo.h: have struct stat buf as an object and
1358 not a pointer to one, some changes because of this.
1360 * src/LaTeXFeatures.C (getTClassPreamble): also use the
1361 information in layout when adding the layouts preamble to the
1364 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
1367 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
1368 because of bug in OS/2.
1370 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1372 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
1373 \verbatim@font instead of \ttfamily, so that it can be redefined.
1375 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
1376 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
1377 src/layout.h, src/text2.C: add 'using' directive to bring the
1378 STL templates we need from the std:: namespace to the global one.
1379 Needed by DEC cxx in strict ansi mode.
1381 * src/support/LIstream.h,src/support/LOstream.h,
1382 src/support/lyxstring.h,src/table.h,
1383 src/lyxlookup.h: do not include <config.h> in header
1384 files. This should be done in the .C files only.
1386 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
1390 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1392 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
1393 from Kayvan to fix the tth invokation.
1395 * development/lyx.spec.in: updates from Kayvan to reflect the
1396 changes of file names.
1398 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1400 * src/text2.C (InsertStringB): use std::copy
1401 (InsertStringA): use std::copy
1403 * src/bufferlist.C: use a vector to store the buffers in. This is
1404 an internal change and should not affect any other thing.
1406 * src/BufferView.C (waitForX): use XSync instead of the lengthy
1409 * src/text.C (Fill): fix potential bug, one off bug.
1411 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1413 * src/Makefile.am (lyx_main.o): add more files it depends on.
1415 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
1417 * src/support/lyxstring.C: use size_t for the reference count,
1418 size, reserved memory and xtra.
1419 (internal_compare): new private member function. Now the compare
1420 functions should work for std::strings that have embedded '\0'
1422 (compare): all compare functions rewritten to use
1425 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1427 * src/support/lyxstring.C (compare): pass c_str()
1428 (compare): pass c_str
1429 (compare): pass c_str
1431 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1433 * src/support/DebugStream.C: <config.h> was not included correctly.
1435 * lib/configure: forgot to re-generate it :( I'll make this file
1436 auto generated soon.
1438 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1440 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
1443 * src/support/lyxstring.C: some changes from length() to rep->sz.
1444 avoids a function call.
1446 * src/support/filetools.C (SpaceLess): yet another version of the
1447 algorithm...now per Jean-Marc's suggestions.
1449 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1451 * src/layout.C (less_textclass_desc): functor for use in sorting
1453 (LyXTextClass::Read): sort the textclasses after reading.
1455 * src/support/filetools.C (SpaceLess): new version of the
1456 SpaceLess functions. What problems does this one give? Please
1459 * images/banner_bw.xbm: made the arrays unsigned char *
1461 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1463 * src/support/lyxstring.C (find): remove bogus assertion in the
1464 two versions of find where this has not been done yet.
1466 * src/support/lyxlib.h: add missing int return type to
1469 * src/menus.C (ShowFileMenu): disable exporting to html if no
1470 html export command is present.
1472 * config/lib_configure.m4: add a test for an HTML converter. The
1473 programs checked for are, in this order: tth, latex2html and
1476 * lib/configure: generated from config/lib_configure.m4.
1478 * src/lyxfunc.C (Dispatch): update and improve the execution of an
1479 html converter. The parameters are now passed through $$FName and
1480 $$OutName, instead of standard input/output.
1482 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
1484 * lib/lyxrc.example: update description of \html_command.
1485 add "quotes" around \screen_font_xxx font setting examples to help
1486 people who use fonts with spaces in their names.
1488 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1490 * Distribution files: updates for v1.1.2
1492 * src/support/lyxstring.C (find): remove bogus assert and return
1493 npos for the same condition.
1495 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1497 * added patch for OS/2 from SMiyata.
1499 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1501 * src/text2.C (CutSelection): make space_wrapped a bool
1502 (CutSelection): dont declare int i until we have to.
1503 (alphaCounter): return a char const *.
1505 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1507 * src/support/syscall.C (Systemcalls::kill):
1508 src/support/filetools.C (PutEnv, PutEnvPath):
1509 src/lyx_cb.C (addNewlineAndDepth):
1510 src/FontInfo.C (FontInfo::resize): condition some #warning
1511 directives with WITH_WARNINGS.
1514 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1516 * src/layout.[Ch] + several files: access to class variables
1517 limited and made accessor functions instead a lot of code changed
1518 becuase of this. Also instead of returning pointers often a const
1519 reference is returned instead.
1521 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
1523 * src/Makefile.am (dist-hook): added used to remove the CVS from
1524 cheaders upon creating a dist
1525 (EXTRA_DIST): added cheaders
1527 * src/support/lstrings.C (tostr(char)): fix it to handle param as
1528 a character not as a small integer.
1530 * src/support/lyxstring.C (find): removed Assert and added i >=
1531 rep->sz to the first if.
1533 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1535 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
1536 src/LyXView.C src/buffer.C src/bufferparams.C
1537 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
1538 src/text2.C src/insets/insetinclude.C:
1539 lyxlayout renamed to textclasslist.
1541 * src/layout.C: some lyxerr changes.
1543 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
1544 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
1545 (LyXLayoutList): removed all traces of this class.
1546 (LyXTextClass::Read): rewrote LT_STYLE
1547 (LyXTextClass::hasLayout): new function
1548 (LyXTextClass::GetLayout): rewritten to return an iterator + has
1549 both const and nonconst version.
1550 (LyXTextClass::delete_layout): new function.
1551 (LyXTextClassList::Style): bug fix. do the right thing if layout
1553 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
1554 (LyXTextClassList::NameOfLayout): ditto
1555 (LyXTextClassList::Load): ditto
1557 * src/buffer.C (makeLaTeXFile): new access to layoutlist
1559 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
1561 * src/LyXAction.C (LookupFunc): added a workaround for sun
1562 compiler, on the other hand...we don't know if the current code
1563 compiles on sun at all...
1565 * src/support/filetools.C (CleanupPath): subst fix
1567 * src/insets/insetbib.C (delDatabase): subst fix, this looks
1570 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
1571 complained about this one?
1573 * src/insets/insetinclude.C (Latex): subst fix
1575 * src/insets/insetbib.C (getKeys): subst fix
1577 * src/LyXSendto.C (SendtoApplyCB): subst fix
1579 * src/lyx_main.C (init): subst fix
1581 * src/layout.C (Read): subst fix
1583 * src/lyx_sendfax_main.C (button_send): subst fix
1585 * src/buffer.C (RoffAsciiTable): subst fix
1587 * src/lyx_cb.C (MenuFax): subst fix
1588 (PrintApplyCB): subst fix
1590 1999-10-26 Juergen Vigna <jug@sad.it>
1592 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
1594 (Read): Cleaned up this code so now we read only format vestion >= 5
1596 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1598 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
1599 come nobody has complained about this one?
1601 * src/insets/insetinclude.C (Latex): subst fix
1603 * src/insets/insetbib.C (getKeys): subst fix
1605 * src/lyx_main.C (init): subst fix
1607 * src/layout.C (Read): subst fix
1609 * src/buffer.C (RoffAsciiTable): subst fix
1611 * src/lyx_cb.C (MenuFax): subst fix.
1613 * src/layout.[hC] + some other files: rewrote to use
1614 std::container to store textclasses and layouts in.
1615 Simplified, removed a lot of code. Make all classes
1616 assignable. Further simplifications and review of type
1617 use still to be one.
1619 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
1620 lastfiles to create the lastfiles partr of the menu.
1622 * src/lastfiles.[Ch]: rewritten to use deque to store the
1623 lastfiles in. Uses fstream for reading and writing. Simplifies
1626 * src/support/syscall.C: remove explicit cast.
1628 * src/BufferView.C (CursorToggleCB): removed code snippets that
1630 use explicat C++ style casts instead of C style casts. also use
1631 u_vdata instea of passing pointers in longs.
1633 * src/PaperLayout.C: removed code snippets that were commented out.
1635 * src/lyx_gui_misc.C: removed code snippets that were commented out.
1637 * src/lyx_main.C: removed code snippets that wer commented out.
1639 * src/paragraph.C: removed code snippets that were commented out.
1641 * src/lyxvc.C (logClose): use static_cast
1643 (viewLog): remove explicit cast to void*
1644 (showLog): removed old commented code
1646 * src/menus.C: use static_cast instead of C style casts. use
1647 u_vdata instead of u_ldata. remove explicit cast to (long) for
1648 pointers. Removed old code that was commented out.
1650 * src/insets/inset.C: removed old commented func
1652 * src/insets/insetref.C (InsetRef): removed old code that had been
1653 commented out for a long time.
1655 (escape): removed C style cast
1657 * src/insets/insetlatexaccent.C (Draw): removed old commented code
1659 * src/insets/insetlatex.C (Draw): removed old commented code
1660 (Read): rewritten to use string
1662 * src/insets/insetlabel.C (escape): removed C style cast
1664 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
1666 * src/insets/insetindex.C: use static_cast and u_vdata, removed
1669 * src/insets/insetinclude.h: removed a couple of stupid bools
1671 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
1672 (Clone): remove C style cast
1673 (getKeys): changed list to lst because of std::list
1675 * src/insets/inseterror.C (Draw): removed som old commented code.
1677 * src/insets/insetcommand.C (Draw): removed some old commented code.
1679 * src/insets/insetbib.C (bibitem_cb): removed code that has been
1680 commented out forever.
1681 (bibitem_cb): use static_cast instead of C style cast
1682 use of vdata changed to u_vdata.
1684 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
1686 (CloseUrlCB): use static_cast instead of C style cast.
1687 (CloseUrlCB): added a fl_free form...it seemed to be missing.
1689 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
1690 (C_InsetInfo_CloseInfoCB): forward the ob parameter
1691 (CloseInfoCB): static_cast from ob->u_vdata instead.
1692 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
1695 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
1696 (C_InsetError_CloseErrorCB): forward the ob parameter
1697 (CloseErrorCB): static_cast from ob->u_vdata instead.
1699 * src/vspace.h: include LString.h since we use string in this class.
1701 * src/vspace.C (lyx_advance): changed name from advance because of
1702 nameclash with stl. And since we cannot use namespaces yet...I
1703 used a lyx_ prefix instead. Expect this to change when we begin
1706 * src/BufferView.[Ch] (BufferView::~BufferView): removed
1708 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
1709 and removed now defunct constructor and deconstructor.
1711 * src/BufferView.h: have backstack as a object not as a pointer.
1712 removed initialization from constructor. added include for BackStack
1714 * development/lyx.spec.in (%build): add CFLAGS also.
1716 * src/screen.C (drawFrame): removed another warning.
1718 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1720 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
1721 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
1722 README and ANNOUNCE a bit for the next release. More work is
1725 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
1726 unbreakable if we are in freespacing mode (LyX-Code), but not in
1729 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1731 * src/BackStack.h: fixed initialization order in constructor
1733 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
1735 * acinclude.m4 (VERSION): new rules for when a version is
1736 development, added also a variable for prerelease.
1737 (warnings): we set with_warnings=yes for prereleases
1738 (lyx_opt): prereleases compile with same optimization as development
1739 (CXXFLAGS): only use pedantic if we are a development version
1741 * src/BufferView.C (restorePosition): don't do anything if the
1744 * src/BackStack.h: added member empty, use this to test if there
1745 is anything to pop...
1747 1999-10-25 Juergen Vigna <jug@sad.it>
1750 * forms/layout_forms.fd +
1751 * forms/latexoptions.fd +
1752 * lyx.fd: changed for various form resize issues
1754 * src/mathed/math_panel.C +
1755 * src/insets/inseterror.C +
1756 * src/insets/insetinfo.C +
1757 * src/insets/inseturl.C +
1758 * src/insets/inseturl.h +
1761 * src/PaperLayout.C +
1762 * src/ParagraphExtra.C +
1763 * src/TableLayout.C +
1765 * src/layout_forms.C +
1772 * src/menus.C: fixed various resize issues. So now forms can be
1773 resized savely or not be resized at all.
1775 * forms/form_url.fd +
1776 * src/insets/form_url.[Ch]: added because it's cleaner and easier
1779 * src/insets/Makefile.am: added files form_url.[Ch]
1781 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1783 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
1784 (and presumably 6.2).
1786 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
1787 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
1788 remaining static member callbacks.
1790 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
1793 * src/support/lyxstring.h: declare struct Srep as friend of
1794 lyxstring, since DEC cxx complains otherwise.
1796 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1798 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1800 * src/LaTeX.C (run): made run_bibtex also depend on files with
1802 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
1803 are put into the dependency file.
1805 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
1806 the code has shown itself to work
1807 (create_ispell_pipe): removed another warning, added a comment
1810 * src/minibuffer.C (ExecutingCB): removed code that has been
1811 commented out a long time
1813 * src/lyxfunc.C (processKeyEvent): removed some very old commented
1814 out code + a warning.
1816 * src/support/lyxstring.h: comment out the three private
1817 operators, when compiling with string ansi conforming compilers
1820 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
1822 (pixmapFromBitmapData): change type of bdata to be unsigned char *
1823 (pixmapFromBitmapData): add a reinterpret_cast in the call to
1826 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
1829 * src/mathed/math_panel.C (create_math_panel): remove explicit
1832 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
1835 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
1836 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
1837 to XCreatePixmapFromBitmapData
1838 (fl_set_bmtable_data): change the last argument to be unsigned
1840 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
1841 and bh to be unsigned int, remove explicit casts in call to
1842 XReadBitmapFileData.
1844 * images/arrows.xbm: made the arrays unsigned char *
1845 * images/varsz.xbm: ditto
1846 * images/misc.xbm: ditto
1847 * images/greek.xbm: ditto
1848 * images/dots.xbm: ditto
1849 * images/brel.xbm: ditto
1850 * images/bop.xbm: ditto
1852 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
1854 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
1855 (LYX_PROG_CXX): added -pedantic to g++ compile options when
1856 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
1858 (LYX_CXX_CHEADERS): added <clocale> to the test.
1860 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
1862 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
1864 * src/support/lyxstring.C (append): fixed something that must be a
1865 bug, rep->assign was used instead of rep->append.
1867 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
1870 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
1871 lyx insert double chars. Fix spotted by Kayvan.
1873 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1875 * Fixed the tth support. I messed up with the Emacs patch apply feature
1876 and omitted the changes in lyxrc.C.
1878 1999-10-22 Juergen Vigna <jug@sad.it>
1880 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
1882 * src/lyx_cb.C (MenuInsertRef) +
1883 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
1884 the form cannot be resized under it limits (fixes a segfault)
1886 * src/lyx.C (create_form_form_ref) +
1887 * forms/lyx.fd: Changed Gravity on name input field so that it is
1890 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1892 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1893 <ostream> and <istream>.
1895 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1896 whether <fstream> provides the latest standard features, or if we
1897 have an oldstyle library (like in egcs).
1898 (LYX_CXX_STL_STRING): fix the test.
1900 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1901 code on MODERN_STL_STREAM.
1903 * src/support/lyxstring.h: use L{I,O}stream.h.
1905 * src/support/L{I,O}stream.h: new files, designed to setup
1906 correctly streams for our use
1907 - includes the right header depending on STL capabilities
1908 - puts std::ostream and std::endl (for LOStream.h) or
1909 std::istream (LIStream.h) in toplevel namespace.
1911 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1913 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1914 was a bib file that had been changed we ensure that bibtex is run.
1915 (runBibTeX): enhanced to extract the names of the bib files and
1916 getting their absolute path and enter them into the dep file.
1917 (findtexfile): static func that is used to look for tex-files,
1918 checks for absolute patchs and tries also with kpsewhich.
1919 Alternative ways of finding the correct files are wanted. Will
1921 (do_popen): function that runs a command using popen and returns
1922 the whole output of that command in a string. Should be moved to
1925 * src/DepTable.[Ch] (extchanged): new function that returns true if a
1926 file with extension ext has changed.
1928 * src/insets/figinset.C: added ifdef guards around the fl_free
1929 code that jug commented out. Now it is commented out when
1930 compiling with XForms == 0.89.
1932 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1933 to lyxstring.C, and only keep a forward declaration in
1934 lyxstring.h. Simplifies the header file a bit and should help a
1935 bit on compile time too. Also changes to Srep will not mandate a
1936 recompile of code just using string.
1937 (~lyxstring): definition moved here since it uses srep.
1938 (size): definition moved here since it uses srep.
1940 * src/support/lyxstring.h: removed a couple of "inline" that should
1943 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1945 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1948 1999-10-21 Juergen Vigna <jug@sad.it>
1950 * src/table.C (SetPWidth): Just a small fix so the alignment is not
1951 set to left if I just remove the width entry (or it is empty).
1953 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1954 paragraph when having dummy paragraphs.
1956 1999-10-20 Juergen Vigna <jug@sad.it>
1958 * src/insets/figinset.C: just commented some fl_free_form calls
1959 and added warnings so that this calls should be activated later
1960 again. This avoids for now a segfault, but we have a memory leak!
1962 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1963 'const char * argument' to 'string argument', this should
1964 fix some Asserts() in lyxstring.C.
1966 * src/lyxfunc.h: Removed the function argAsString(const char *)
1967 as it is not used anymore.
1969 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1971 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1974 * src/Literate.h: some funcs moved from public to private to make
1975 interface clearer. Unneeded args removed.
1977 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1979 (scanBuildLogFile): ditto
1981 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1982 normal TeX Error. Still room for improvement.
1984 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1986 * src/buffer.C (insertErrors): changes to make the error
1987 desctription show properly.
1989 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1992 * src/support/lyxstring.C (helper): changed to use
1993 sizeof(object->rep->ref).
1994 (operator>>): changed to use a pointer instead.
1996 * src/support/lyxstring.h: changed const reference & to value_type
1997 const & lets see if that helps.
1999 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2001 * Makefile.am (rpmdist): fixed to have non static package and
2004 * src/support/lyxstring.C: removed the compilation guards
2006 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2009 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2010 conditional compile of lyxstring.Ch
2012 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2013 stupid check, but it is a lot better than the bastring hack.
2014 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2016 * several files: changed string::erase into string::clear. Not
2019 * src/chset.C (encodeString): use a char temporary instead
2021 * src/table.C (TexEndOfCell): added tostr around
2022 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2023 (TexEndOfCell): ditto
2024 (TexEndOfCell): ditto
2025 (TexEndOfCell): ditto
2026 (DocBookEndOfCell): ditto
2027 (DocBookEndOfCell): ditto
2028 (DocBookEndOfCell): ditto
2029 (DocBookEndOfCell): ditto
2031 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2033 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2035 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2036 (MenuBuildProg): added tostr around ret
2037 (MenuRunChktex): added tostr around ret
2038 (DocumentApplyCB): added tostr around ret
2040 * src/chset.C (encodeString): added tostr around t->ic
2042 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2043 (makeLaTeXFile): added tostr around tocdepth
2044 (makeLaTeXFile): added tostr around ftcound - 1
2046 * src/insets/insetbib.C (setCounter): added tostr around counter.
2048 * src/support/lyxstring.h: added an operator+=(int) to catch more
2051 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2052 (lyxstring): We DON'T allow NULL pointers.
2054 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2056 * src/mathed/math_macro.C (MathMacroArgument::Write,
2057 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2058 when writing them out.
2060 * src/LString.C: remove, since it is not used anymore.
2062 * src/support/lyxstring.C: condition the content to
2063 USE_INCLUDED_STRING macro.
2065 * src/mathed/math_symbols.C, src/support/lstrings.C,
2066 src/support/lyxstring.C: add `using' directive to specify what
2067 we need in <algorithm>. I do not think that we need to
2068 conditionalize this, but any thought is appreciated.
2070 * many files: change all callback functions to "C" linkage
2071 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2072 strict_ansi. Those who were static are now global.
2073 The case of callbacks which are static class members is
2074 trickier, since we have to make C wrappers around them (see
2075 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2076 did not finish this yet, since it defeats the purpose of
2077 encapsulation, and I am not sure what the best route is.
2079 1999-10-19 Juergen Vigna <jug@sad.it>
2081 * src/support/lyxstring.C (lyxstring): we permit to have a null
2082 pointer as assignment value and just don't assign it.
2084 * src/vspace.C (nextToken): corrected this function substituting
2085 find_first(_not)_of with find_last_of.
2087 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2088 (TableOptCloseCB) (TableSpeCloseCB):
2089 inserted fl_set_focus call for problem with fl_hide_form() in
2092 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2094 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2097 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2099 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2100 LyXLex::next() and not eatline() to get its argument.
2102 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2104 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2105 instead, use fstreams for io of the depfile, removed unneeded
2106 functions and variables.
2108 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2109 vector instead, removed all functions and variables that is not in
2112 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2114 * src/buffer.C (insertErrors): use new interface to TeXError
2116 * Makefile.am (rpmdist): added a rpmdist target
2118 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2119 per Kayvan's instructions.
2121 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2123 * src/Makefile.am: add a definition for localedir, so that locales
2124 are found after installation (Kayvan)
2126 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2128 * development/.cvsignore: new file.
2130 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2132 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2133 C++ compiler provides wrappers for C headers and use our alternate
2136 * configure.in: use LYX_CXX_CHEADERS.
2138 * src/cheader/: new directory, populated with cname headers from
2139 libstdc++-2.8.1. They are a bit old, but probably good enough for
2140 what we want (support compilers who lack them).
2142 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2143 from includes. It turns out is was stupid.
2145 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2147 * lib/Makefile.am (install-data-local): forgot a ';'
2148 (install-data-local): forgot a '\'
2149 (libinstalldirs): needed after all. reintroduced.
2151 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2153 * configure.in (AC_OUTPUT): added lyx.spec
2155 * development/lyx.spec: removed file
2157 * development/lyx.spec.in: new file
2159 * po/*.po: merged with lyx.pot becuase of make distcheck
2161 * lib/Makefile.am (dist-hook): added dist-hook so that
2162 documentation files will be included when doing a make
2163 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2164 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2166 more: tried to make install do the right thing, exclude CVS dirs
2169 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2170 Path would fit in more nicely.
2172 * all files that used to use pathstack: uses now Path instead.
2173 This change was a lot easier than expected.
2175 * src/support/path.h: new file
2177 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2179 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2181 * src/support/lyxstring.C (getline): Default arg was given for
2184 * Configure.cmd: removed file
2186 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2188 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2189 streams classes and types, add the proper 'using' statements when
2190 MODERN_STL is defined.
2192 * src/debug.h: move the << operator definition after the inclusion
2195 * src/support/filetools.C: include "LAssert.h", which is needed
2198 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2201 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2202 include "debug.h" to define a proper ostream.
2204 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2206 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2207 method to the SystemCall class which can kill a process, but it's
2208 not fully implemented yet.
2210 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2212 * src/support/FileInfo.h: Better documentation
2214 * src/lyxfunc.C: Added support for buffer-export html
2216 * src/menus.C: Added Export->As HTML...
2218 * lib/bind/*.bind: Added short-cut for buffer-export html
2220 * src/lyxrc.*: Added support for new \tth_command
2222 * lib/lyxrc.example: Added stuff for new \tth_command
2224 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2226 * lib/Makefile.am (IMAGES): removed images/README
2227 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2228 installes in correct place. Check permisions is installed
2231 * src/LaTeX.C: some no-op changes moved declaration of some
2234 * src/LaTeX.h (LATEX_H): changed include guard name
2236 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2238 * lib/reLyX/Makefile.am: install noweb2lyx.
2240 * lib/Makefile.am: install configure.
2242 * lib/reLyX/configure.in: declare a config aux dir; set package
2243 name to lyx (not sure what the best solution is); generate noweb2lyx.
2245 * lib/layouts/egs.layout: fix the bibliography layout.
2247 1999-10-08 Jürgen Vigna <jug@sad.it>
2249 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
2250 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
2251 it returned without continuing to search the path.
2253 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2255 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
2256 also fixes a bug. It is not allowed to do tricks with std::strings
2257 like: string a("hei"); &a[e]; this will not give what you
2258 think... Any reason for the complexity in this func?
2260 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
2262 * Updated README and INSTALL a bit, mostly to check that my
2263 CVS rights are correctly set up.
2265 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2267 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
2268 does not allow '\0' chars but lyxstring and std::string does.
2270 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2272 * autogen.sh (AUTOCONF): let the autogen script create the
2273 POTFILES.in file too. POTFILES.in should perhaps now not be
2274 included in the cvs module.
2276 * some more files changed to use C++ includes instead of C ones.
2278 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
2280 (Reread): added tostr to nlink. buggy output otherwise.
2281 (Reread): added a string() around szMode when assigning to Buffer,
2282 without this I got a log of garbled info strings.
2284 * acconfig.h: commented out the PTR_AS_INT macros. They should not
2287 * I have added several ostream & operator<<(ostream &, some_type)
2288 functions. This has been done to avoid casting and warnings when
2289 outputting enums to lyxerr. This as thus eliminated a lot of
2290 explicit casts and has made the code clearer. Among the enums
2291 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
2292 mathed enums, some font enum the Debug::type enum.
2294 * src/support/lyxstring.h (clear): missing method. equivalent of
2297 * all files that contained "stderr": rewrote constructs that used
2298 stderr to use lyxerr instead. (except bmtable)
2300 * src/support/DebugStream.h (level): and the passed t with
2301 Debug::ANY to avoid spurious bits set.
2303 * src/debug.h (Debug::type value): made it accept strings of the
2306 * configure.in (Check for programs): Added a check for kpsewhich,
2307 the latex generation will use this later to better the dicovery of
2310 * src/BufferView.C (create_view): we don't need to cast this to
2311 (void*) that is done automatically.
2312 (WorkAreaButtonPress): removed some dead code.
2314 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2316 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
2317 is not overwritten when translated (David Sua'rez de Lis).
2319 * lib/CREDITS: Added David Sua'rez de Lis
2321 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
2323 * src/bufferparams.C (BufferParams): default input encoding is now
2326 * acinclude.m4 (cross_compiling): comment out macro
2327 LYX_GXX_STRENGTH_REDUCE.
2329 * acconfig.h: make sure that const is not defined (to empty) when
2330 we are compiling C++. Remove commented out code using SIZEOF_xx
2333 * configure.in : move the test for const and inline as late as
2334 possible so that these C tests do not interefere with C++ ones.
2335 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
2336 has not been proven.
2338 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2340 * src/table.C (getDocBookAlign): remove bad default value for
2343 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
2345 (ShowFileMenu2): ditto.
2347 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
2350 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2352 * Most files: finished the change from the old error code to use
2353 DebugStream for all lyxerr debugging. Only minor changes remain
2354 (e.g. the setting of debug levels using strings instead of number)
2356 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2358 * src/layout.C (Add): Changed to use compare_no_case instead of
2361 * src/FontInfo.C: changed loop variable type too string::size_type.
2363 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2365 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
2366 set ETAGS_ARGS to --c++
2368 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
2370 * src/table.C (DocBookEndOfCell): commented out two unused variables
2372 * src/paragraph.C: commented out four unused variables.
2374 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
2375 insed a if clause with type string::size_type.
2377 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
2380 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
2382 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
2383 variable, also changed loop to go from 0 to lenght + 1, instead of
2384 -1 to length. This should be correct.
2386 * src/LaTeX.C (scanError): use string::size_type as loop variable
2389 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
2390 (l.896) since y_tmp and row was not used anyway.
2392 * src/insets/insetref.C (escape): use string::size_type as loop
2395 * src/insets/insetquotes.C (Width): use string::size_type as loop
2397 (Draw): use string::size_type as loop variable type.
2399 * src/insets/insetlatexaccent.C (checkContents): use
2400 string::size_type as loop variable type.
2402 * src/insets/insetlabel.C (escape): use string::size_type as loop
2405 * src/insets/insetinfo.C: added an extern for current_view.
2407 * src/insets/insetcommand.C (scanCommand): use string::size_type
2408 as loop variable type.
2410 * most files: removed the RCS tags. With them we had to recompile
2411 a lot of files after a simple cvs commit. Also we have never used
2412 them for anything meaningful.
2414 * most files: tags-query-replace NULL 0. As adviced several plases
2415 we now use "0" instead of "NULL" in our code.
2417 * src/support/filetools.C (SpaceLess): use string::size_type as
2420 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2422 * src/paragraph.C: fixed up some more string stuff.
2424 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2426 * src/support/filetools.h: make modestr a std::string.
2428 * src/filetools.C (GetEnv): made ch really const.
2430 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
2431 made code that used these use max/min from <algorithm> instead.
2433 * changed several c library include files to their equivalent c++
2434 library include files. All is not changed yet.
2436 * created a support subdir in src, put lyxstring and lstrings
2437 there + the extra files atexit, fileblock, strerror. Created
2438 Makefile.am. edited configure.in and src/Makefile.am to use this
2439 new subdir. More files moved to support.
2441 * imported som of the functions from repository lyx, filetools
2443 * ran tags-query-replace on LString -> string, corrected the bogus
2444 cases. Tried to make use of lstrings.[hC], debugged a lot. There
2445 is still some errors in there. This is errors where too much or
2446 too litle get deleted from strings (string::erase, string::substr,
2447 string::replace), there can also be some off by one errors, or
2448 just plain wrong use of functions from lstrings. Viewing of quotes
2451 * LyX is now running fairly well with string, but there are
2452 certainly some bugs yet (see above) also string is quite different
2453 from LString among others in that it does not allow null pointers
2454 passed in and will abort if it gets any.
2456 * Added the revtex4 files I forgot when setting up the repository.
2458 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2460 * All over: Tried to clean everything up so that only the files
2461 that we really need are included in the cvs repository.
2462 * Switched to use automake.
2463 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
2464 * Install has not been checked.
2466 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2468 * po/pt.po: Three errors:
2469 l.533 and l.538 format specification error
2470 l. 402 duplicate entry, I just deleted it.