1 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/paragraph.C (BreakParagraph): do not reserve space on text
4 if we don't need to (otherwise, if pos_end < pos, we end up
5 reserving huge amounts of memory due to bad unsigned karma).
6 (BreakParagraphConservative): ditto, although I have not seen
7 evidence the bug can happen here.
9 * src/lyxparagraph.h: add a using std::list.
11 2000-01-11 Juergen Vigna <jug@sad.it>
13 * src/menus.C (MenuDocu): output an Alert if the documentation-file
16 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
18 * src/vc-backend.C (doVCCommand): change to be static and take one
19 more parameter: the path to chdir too be fore executing the command.
20 (retrive): new function equiv to "co -r"
22 * src/bufferlist.C (loadLyXFile): implement the missing parts if
23 file_not_found_hook is true.
25 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
27 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
28 if a file is readwrite,readonly...anything else.
30 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
32 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
33 (CreatePostscript): name change from MenuRunDVIPS (or something)
34 (PreviewPostscript): name change from MenuPreviewPS
35 (PreviewDVI): name change from MenuPreviewDVI
37 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
38 \view_pdf_command., \pdf_to_ps_command
40 * lib/configure.m4: added search for PDF viewer, and search for
42 (lyxrc.defaults output): add \pdflatex_command,
43 \view_pdf_command and \pdf_to_ps_command.
45 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
47 * src/bufferlist.C (write): we don't use blocksize for anything so
50 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
52 * src/support/block.h: disable operator T* (), since it causes
53 problems with both compilers I tried. See comments in the file.
55 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
58 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
59 variable LYX_DIR_10x to LYX_DIR_11x.
61 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
63 * INSTALL: document --with-lyxname.
66 * configure.in: new configure flag --with-lyxname which allows to
67 choose the name under which lyx is installed. Default is "lyx", of
68 course. It used to be possible to do this with --program-suffix,
69 but the later has in fact a different meaning for autoconf.
71 * src/support/lstrings.h (lstrchr): reformat a bit.
73 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
74 * src/mathed/math_defs.h: ditto.
76 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
78 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
79 true, decides if we create a backup file or not when saving. New
80 tag and variable \pdf_mode, defaults to false. New tag and
81 variable \pdflatex_command, defaults to pdflatex. New tag and
82 variable \view_pdf_command, defaults to xpdf. New tag and variable
83 \pdf_to_ps_command, defaults to pdf2ps.
85 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
87 * src/bufferlist.C (close): don't call insetUnlock if the buffer
88 does not have a BufferView.
89 (unlockInset): ditto + don't access the_locking_inset if the
90 buffer does not have a BufferView.
92 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
93 certain circumstances so that we don't continue a keyboard
94 operation long after the key was released. Try f.ex. to load a
95 large document, press PageDown for some seconds and then release
96 it. Before this change the document would contine to scroll for
97 some time, with this change it stops imidiatly.
99 * src/support/block.h: don't allocate more space than needed. As
100 long as we don't try to write to the arr[x] in a array_type arr[x]
101 it is perfectly ok. (if you write to it you might segfault).
102 added operator value_type*() so that is possible to pass the array
103 to functions expecting a C-pointer.
105 * lib/Makefile.am (dist-hook): don't fail completely if unable to
108 * intl/*: updated to gettext 0.10.35, tried to add our own
109 required modifications. Please verify.
111 * po/*: updated to gettext 0.10.35, tried to add our own required
112 modifications. Please verify.
114 * src/support/lstrings.C (tostr): go at fixing the problem with
115 cxx and stringstream. When stringstream is used return
116 oss.str().c_str() so that problems with lyxstring and basic_string
117 are avoided. Note that the best solution would be for cxx to use
118 basic_string all the way, but it is not conformant yet. (it seems)
120 * src/lyx_cb.C + other files: moved several global functions to
121 class BufferView, some have been moved to BufferView.[Ch] others
122 are still located in lyx_cb.C. Code changes because of this. (part
123 of "get rid of current_view project".)
125 * src/buffer.C + other files: moved several Buffer functions to
126 class BufferView, the functions are still present in buffer.C.
127 Code changes because of this.
129 * config/lcmessage.m4: updated to most recent. used when creating
132 * config/progtest.m4: updated to most recent. used when creating
135 * config/gettext.m4: updated to most recent. applied patch for
138 * config/gettext.m4.patch: new file that shows what changes we
139 have done to the local copy of gettext.m4.
141 * config/libtool.m4: new file, used in creation of acinclude.m4
143 * config/lyxinclude.m4: new file, this is the lyx created m4
144 macros, used in making acinclude.m4.
146 * autogen.sh: GNU m4 discovered as a separate task not as part of
147 the lib/configure creation.
148 Generate acinlucde from files in config. Actually cat
149 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
150 easier to upgrade .m4 files that really are external.
152 * src/Spacing.h: moved using std::istringstream to right after
153 <sstream>. This should fix the problem seen with some compilers.
155 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
157 * src/lyx_cb.C: began some work to remove the dependency a lot of
158 functions have on BufferView::text, even if not really needed.
159 (GetCurrentTextClass): removed this func, it only hid the
162 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
163 forgot this in last commit.
165 * src/Bullet.C (bulletEntry): use static char const *[] for the
166 tables, becuase of this the return arg had to change to string.
168 (~Bullet): removed unneeded destructor
170 * src/BufferView.C (beforeChange): moved from lyx_cb.C
171 (insetSleep): moved from Buffer
172 (insetWakeup): moved from Buffer
173 (insetUnlock): moved from Buffer
175 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
176 from Buffer to BufferView.
178 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
180 * config/ltmain.sh: updated to version 1.3.4 of libtool
182 * config/ltconfig: updated to version 1.3.4 of libtool
184 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
187 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
188 Did I get that right?
190 * src/lyxlex.h: add a "using" directive or two.
191 * src/Spacing.h: ditto.
192 * src/insets/figinset.C: ditto.
193 * src/support/filetools.C: ditto.
194 * src/support/lstrings.C: ditto.
195 * src/BufferView.C: ditto.
196 * src/bufferlist.C: ditto.
197 * src/lyx_cb.C: ditto.
198 * src/lyxlex.C: ditto.
200 * NEWS: add some changes for 1.1.4.
202 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
204 * src/BufferView.C: first go at a TextCache to speed up switching
207 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
209 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
210 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
211 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
212 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
215 * src/mathed/math_defs.h (MathedRowSt): make sure that all
216 members of the struct are correctly initialized to 0 (detected by
218 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
219 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
221 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
222 pidwait, since it was allocated with "new". This was potentially
223 very bad. Thanks to Michael Schmitt for running purify for us.
226 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
228 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
230 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
232 1999-12-30 Allan Rae <rae@lyx.org>
234 * lib/templates/IEEEtran.lyx: minor change
236 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
237 src/mathed/formula.C (LocalDispatch): askForText changes
239 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
240 know when a user has cancelled input. Fixes annoying problems with
241 inserting labels and version control.
243 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
245 * src/support/lstrings.C (tostr): rewritten to use strstream and
248 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
250 * src/support/filetools.C (IsFileWriteable): use fstream to check
251 (IsDirWriteable): use fileinfo to check
253 * src/support/filetools.h (FilePtr): whole class deleted
255 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
257 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
259 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
261 * src/bufferlist.C (write): use ifstream and ofstream instead of
264 * src/Spacing.h: use istrstream instead of sscanf
266 * src/mathed/math_defs.h: change first arg to istream from FILE*
268 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
270 * src/mathed/math_parser.C: have yyis to be an istream
271 (LexGetArg): use istream (yyis)
273 (mathed_parse): ditto
274 (mathed_parser_file): first arg istream instead of FILE*, set yyis
276 * src/mathed/formula.C (Read): rewritten to use istream
278 * src/mathed/formulamacro.C (Read): rewritten to use istream
280 * src/lyxlex.h (~LyXLex): deleted desturctor
281 (getStream): new function, returns an istream
282 (getFile): deleted funtion
283 (IsOK): return is.good();
285 * src/lyxlex.C (LyXLex): delete file and owns_file
286 (setFile): open an filebuf and assign that to a istream instead of
288 (setStream): new function, takes an istream as arg.
289 (setFile): deleted function
290 (EatLine): rewritten us use istream instead of FILE*
294 * src/table.C (LyXTable): use istream instead of FILE*
295 (Read): rewritten to take an istream instead of FILE*
297 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
299 * src/buffer.C (Dispatch): remove an extraneous break statement.
301 * src/support/filetools.C (QuoteName): change to do simple
302 'quoting'. More work is necessary. Also changed to do nothing
303 under emx (needs fix too).
304 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
306 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
307 config.h.in to the AC_DEFINE_UNQUOTED() call.
308 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
309 needs char * as argument (because Solaris 7 declares it like
312 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
313 remove definition of BZERO.
315 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
317 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
318 defined, "lyxregex.h" if not.
320 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
322 (REGEX): new variable that is set to regex.c lyxregex.h when
323 AM_CONDITIONAL USE_REGEX is set.
324 (libsupport_la_SOURCES): add $(REGEX)
326 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
329 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
332 * configure.in: add call to LYX_REGEX
334 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
335 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
337 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
339 * lib/bind/fi_menus.bind: new file, from
340 pauli.virtanen@saunalahti.fi.
342 * src/buffer.C (getBibkeyList): pass the parameter delim to
343 InsetInclude::getKeys and InsetBibtex::getKeys.
345 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
346 is passed to Buffer::getBibkeyList
348 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
349 instead of the hardcoded comma.
351 * src/insets/insetbib.C (getKeys): make sure that there are not
352 leading blanks in bibtex keys. Normal latex does not care, but
353 harvard.sty seems to dislike blanks at the beginning of citation
354 keys. In particular, the retturn value of the function is
356 * INSTALL: make it clear that libstdc++ is needed and that gcc
357 2.7.x probably does not work.
359 * src/support/filetools.C (findtexfile): make debug message go to
361 * src/insets/insetbib.C (getKeys): ditto
363 * src/debug.C (showTags): make sure that the output is correctly
366 * configure.in: add a comment for TWO_COLOR_ICON define.
368 * acconfig.h: remove all the entries that already defined in
369 configure.in or acinclude.m4.
371 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
372 to avoid user name, date and copyright.
374 1999-12-21 Juergen Vigna <jug@sad.it>
376 * src/table.C (Read): Now read bogus row format informations
377 if the format is < 5 so that afterwards the table can
378 be read by lyx but without any format-info. Fixed the
379 crash we experienced when not doing this.
381 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
383 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
384 (RedoDrawingOfParagraph): ditto
385 (RedoParagraphs): ditto
386 (RemoveTableRow): ditto
388 * src/text.C (Fill): rename arg paperwidth -> paper_width
390 * src/buffer.C (insertLyXFile): rename var filename -> fname
391 (writeFile): rename arg filename -> fname
392 (writeFileAscii): ditto
393 (makeLaTeXFile): ditto
394 (makeLinuxDocFile): ditto
395 (makeDocBookFile): ditto
397 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
400 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
402 * src/bmtable.h: add extern "C" on this file when __cplusplus is
405 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
406 compiled by a C compiler not C++.
408 * src/layout.h (LyXTextClass): added typedef for const_iterator
409 (LyXTextClassList): added typedef for const_iterator + member
410 functions begin and end.
412 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
413 iterators to fill the choice_class.
414 (updateLayoutChoice): rewritten to use iterators to fill the
415 layoutlist in the toolbar.
417 * src/BufferView.h (BufferView::work_area_width): removed unused
420 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
422 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
423 (sgmlCloseTag): ditto
425 * src/support/lstrings.h: return type of countChar changed to
428 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
429 what version of this func to use. Also made to return unsigned int.
431 * configure.in: call LYX_STD_COUNT
433 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
434 conforming std::count.
436 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
439 and a subscript would give bad display (patch from Dekel Tsur
440 <dekel@math.tau.ac.il>).
442 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
444 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
447 * src/chset.h: add a few 'using' directives
449 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
450 triggered when no buffer is active
452 * src/layout.C: removed `break' after `return' in switch(), since
455 * src/lyx_main.C (init): make sure LyX can be ran in place even
456 when libtool has done its magic with shared libraries. Fix the
457 test for the case when the system directory has not been found.
459 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
460 name for the latex file.
461 (MenuMakeHTML): ditto
463 * src/buffer.h: add an optional boolean argument, which is passed
466 1999-12-20 Allan Rae <rae@lyx.org>
468 * lib/templates/IEEEtran.lyx: small correction and update.
470 * configure.in: Attempted to use LYX_PATH_HEADER
472 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
474 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
475 input from JMarc. Now use preprocessor to find the header.
476 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
477 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
478 LYX_STL_STRING_FWD. See comments in file.
480 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
482 * The global MiniBuffer * minibuffer variable is dead.
484 * The global FD_form_main * fd_form_main variable is dead.
486 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
488 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
490 * src/table.h: add the LOstream.h header
493 * src/LyXAction.h: change the explaination of the ReadOnly
494 attribute: is indicates that the function _can_ be used.
496 * src/LyXAction.C (init): find-replace _can_ be used in read-only
499 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
501 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
507 * src/paragraph.C (GetWord): assert on pos>=0
510 * src/support/lyxstring.C: condition the use of an invariant on
512 * src/support/lyxstring.h: ditto
514 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
515 Use LAssert.h instead of plain assert().
517 * src/support/lstrings.h: add LAssert.h, in case it is needed.
519 * src/lyxfunc.C: do not include LAssert.h, it is not used.
520 * src/support/filetools.C: ditto
522 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
525 * INSTALL: document the new configure flags
527 * configure.in: suppress --with-debug; add --enable-assertions
529 * acinclude.m4: various changes in alignment of help strings.
531 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
533 * src/kbmap.C: commented out the use of the hash map in kb_map,
534 beginning of movement to a stl::container.
536 * several files: removed code that was not in effect when
537 MOVE_TEXT was defined.
539 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
540 for escaping should not be used. We can discuss if the string
541 should be enclosed in f.ex. [] instead of "".
543 * src/trans_mgr.C (insert): use the new returned value from
544 encodeString to get deadkeys and keymaps done correctly.
546 * src/chset.C (encodeString): changed to return a pair, to tell
547 what to use if we know the string.
549 * src/lyxscreen.h (fillArc): new function.
551 * src/FontInfo.C (resize): rewritten to use more std::string like
552 structore, especially string::replace.
554 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
557 * configure.in (chmod +x some scripts): remove config/gcc-hack
559 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
561 * src/buffer.C (writeFile): change once again the top comment in a
562 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
563 instead of an hardcoded version number.
564 (makeDocBookFile): ditto
566 * src/version.h: add new define LYX_DOCVERSION
568 * po/de.po: update from Pit Sütterlin
569 * lib/bind/de_menus.bind: ditto.
571 * src/lyxfunc.C (Dispatch): call MenuExport()
572 * src/buffer.C (Dispatch): ditto
574 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
576 (MenuExport): new function, moved from
579 * src/trans_mgr.C (insert): small cleanup
580 * src/chset.C (loadFile): ditto
582 * lib/kbd/iso8859-1.cdef: add missing backslashes
584 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
586 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
587 help with placing the manually drawn accents better.
589 (Draw): x2 and hg changed to float to minimize rounding errors and
590 help place the accents better.
592 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
593 unsigned short to char is just wrong...cast the char to unsigned
594 char instead so that the two values can compare sanely. This
595 should also make the display of insetlatexaccents better and
596 perhaps also some other insets.
598 (lbearing): new function
601 1999-12-15 Allan Rae <rae@lyx.org>
603 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
604 header that provides a wrapper around the very annoying SGI STL header
607 * src/support/lyxstring.C, src/LString.h:
608 removed old SGI-STL-compatability attempts.
610 * configure.in: Use LYX_STL_STRING_FWD.
612 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
613 stl_string_fwd.h is around and try to determine it's location.
614 Major improvement over previous SGI STL 3.2 compatability.
615 Three small problems remain with this function due to my zero
616 knowledge of autoconf. JMarc and lgb see the comments in the code.
618 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
620 * src/broken_const.h, config/hack-gcc, config/README: removed
622 * configure.in: remove --with-gcc-hack option; do not call
625 * INSTALL: remove documentation of --with-broken-const and
628 * acconfig.h: remove all trace of BROKEN_CONST define
630 * src/buffer.C (makeDocBookFile): update version number in output
632 (SimpleDocBookOnePar): fix an assert when trying to a character
633 access beyond string length
636 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
638 * po/de.po: fix the Export menu
640 * lyx.man: update the description of -dbg
642 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
643 (commandLineHelp): updated
644 (easyParse): show list of available debug levels if -dbg is passed
647 * src/Makefile.am: add debug.C
649 * src/debug.h: moved some code to debug.C
651 * src/debug.C: new file. Contains code to set and show debug
654 * src/layout.C: remove 'break' after 'continue' in switch
655 statements, since these cannot be reached.
657 1999-12-13 Allan Rae <rae@lyx.org>
659 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
660 (in_word_set): hash() -> math_hash()
662 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
664 * acconfig.h: Added a test for whether we are using exceptions in the
665 current compilation run. If so USING_EXCEPTIONS is defined.
667 * config.in: Check for existance of stl_string_fwd.h
668 * src/LString.h: If compiling --with-included-string and SGI's
669 STL version 3.2 is present (see above test) we need to block their
670 forward declaration of string and supply a __get_c_string().
671 However, it turns out this is only necessary if compiling with
672 exceptions enabled so I've a bit more to add yet.
674 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
675 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
676 src/support/LRegex.h, src/undo.h:
677 Shuffle the order of the included files a little to ensure that
678 LString.h gets included before anything that includes stl_string_fwd.h
680 * src/support/lyxstring.C: We need to #include LString.h instead of
681 lyxstring.h to get the necessary definition of __get_c_string.
682 (__get_c_string): New function. This is defined static just like SGI's
683 although why they need to do this I'm not sure. Perhaps it should be
684 in lstrings.C instead.
686 * lib/templates/IEEEtran.lyx: New template file.
688 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
690 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
691 * intl/Makefile.in (MKINSTALLDIRS): ditto
693 * src/LyXAction.C (init): changed to hold the LFUN data in a
694 automatic array in stead of in callso to newFunc, this speeds up
695 compilation a lot. Also all the memory used by the array is
696 returned when the init is completed.
698 * a lot of files: compiled with -Wold-style-cast, changed most of
699 the reported offenders to C++ style casts. Did not change the
700 offenders in C files.
702 * src/trans.h (Match): change argument type to unsigned int.
704 * src/support/DebugStream.C: fix some types on the streambufs so
705 that it works on a conforming implementation.
707 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
709 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
711 * src/support/lyxstring.C: remove the inline added earlier since
712 they cause a bunch of unsatisfied symbols when linking with dec
713 cxx. Cxx likes to have the body of inlines at the place where they
716 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
717 accessing negative bounds in array. This fixes the crash when
718 inserting accented characters.
719 * src/trans.h (Match): ditto
721 * src/buffer.C (Dispatch): since this is a void, it should not try
722 to return anything...
724 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
726 * src/buffer.h: removed the two friends from Buffer. Some changes
727 because of this. Buffer::getFileName and Buffer::setFileName
728 renamed to Buffer::fileName() and Buffer::fileName(...).
730 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
732 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
733 and Buffer::update(short) to BufferView. This move is currently
734 controlled by a define MOVE_TEXT, this will be removed when all
735 shows to be ok. This move paves the way for better separation
736 between buffer contents and buffer view. One side effect is that
737 the BufferView needs a rebreak when swiching buffers, if we want
738 to avoid this we can add a cache that holds pointers to LyXText's
739 that is not currently in use.
741 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
744 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
746 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
748 * lyx_main.C: new command line option -x (or --execute) and
749 -e (or --export). Now direct conversion from .lyx to .tex
750 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
751 Unfortunately, X is still needed and the GUI pops up during the
754 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
756 * src/Spacing.C: add a using directive to bring stream stuff into
758 * src/paragraph.C: ditto
759 * src/buffer.C: ditto
761 * NEWS: updated a bit the new features of 1.1.3 (took a few things
762 from Lars' announcement).
764 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
765 example files from Tino Meinen.
767 1999-12-06 Allan Rae <rae@lyx.org>
769 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
771 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
773 * src/support/lyxstring.C: added a lot of inline for no good
776 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
777 latexWriteEndChanges, they were not used.
779 * src/layout.h (operator<<): output operator for PageSides
781 * src/mathed/math_iter.C (my_memcpy): slightly changed.
783 * some example files: loaded in LyX 1.0.4 and saved again to update
784 certain constructs (table format)
786 * a lot of files: did the change to use fstream/iostream for all
787 writing of files. Done with a close look at Andre Poenitz's patch.
789 * some files: whitespace changes.
791 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
793 * src/mathed/math_iter.C (my_memcpy): new function. Since the
794 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
795 architecture, we provide our own. It is used unconditionnally, but
796 I do not think this is a performance problem. Thanks to Angus
797 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
798 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
800 (GetInset): use my_memcpy.
804 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
805 it is easier to understand, but it uses less TeX-only constructs now.
807 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
808 elements contain spaces
810 * lib/configure: regenerated
812 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
813 elements contain spaces; display the list of programs that are
816 * autogen.sh: make sure lib/configure is executable
818 * lib/examples/*: rename the tutorial examples to begin with the
819 two-letters language code.
821 * src/lyxfunc.C (getStatus): do not query current font if no
824 * src/lyx_cb.C (RunScript): use QuoteName
825 (MenuRunDvips): ditto
826 (PrintApplyCB): ditto
828 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
829 around argument, so that it works well with the current shell.
830 Does not work properly with OS/2 shells currently.
832 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
833 * src/LyXSendto.C (SendtoApplyCB): ditto
834 * src/lyxfunc.C (Dispatch): ditto
835 * src/buffer.C (runLaTeX): ditto
837 (buildProgram): ditto
839 * src/lyx_cb.C (RunScript): ditto
840 (MenuMakeLaTeX): ditto
842 * src/buffer.h (getLatexName): new method
844 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
846 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
848 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
849 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
850 (create_math_panel): ditto
852 * src/lyxfunc.C (getStatus): re-activate the code which gets
853 current font and cursor; add test for export to html.
855 * src/lyxrc.C (read): remove unreachable break statements; add a
858 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
860 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
862 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
863 introduced by faulty regex.
864 * src/buffer.C: ditto
865 * src/lastfiles.C: ditto
866 * src/paragraph.C: ditto
868 * src/vspace.C: ditto
869 * src/insets/figinset.C: ditto
870 Note: most of these is absolutely harmless, except the one in
871 src/mathed formula.C.
873 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
875 * src/ImportNoweb.C (documentclass): fixed bounds for substr
876 operation, yielding correct results for the reLyX command.
878 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
880 * src/support/filetools.C (ExpandPath): removed an over eager
882 (ReplaceEnvironmentPath): ditto
884 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
885 shows that we are doing something fishy in our code...
889 * src/lyxrc.C (read): use a double switch trick to get more help
890 from the compiler. (the same trick is used in layout.C)
891 (write): new function. opens a ofstream and pass that to output
892 (output): new function, takes a ostream and writes the lyxrc
893 elemts to it. uses a dummy switch to make sure no elements are
896 * src/lyxlex.h: added a struct pushpophelper for use in functions
897 with more than one exit point.
899 * src/lyxlex.[Ch] (GetInteger): made it const
903 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
905 * src/layout.[hC] : LayoutTags splitted into several enums, new
906 methods created, better error handling cleaner use of lyxlex. Read
909 * src/bmtable.[Ch]: change some member prototypes because of the
912 * commandtags.h, src/LyXAction.C (init): new function:
913 "preferences-save", saves the lyxrc entries into .lyx/preferences.
914 This file is not read automatically but you can add \input
915 preferences to your lyxrc if you want to. We need to discuss how
918 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
919 in .aux, also remove .bib and .bst files from dependencies when
922 * src/BufferView.C, src/LyXView.C: add const_cast several places
923 because of changes to images.
925 * lib/images/*: same change as for images/*
927 * lib/lyxrc.example: Default for accept_compound is false not no.
929 * images/*: changed to be const, however I have som misgivings
930 about this change so it might be changed back.
932 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
934 * lib/configure, po/POTFILES.in: regenerated
936 * autogen.sh: autogenerate lib/configure from lib/configure.m4
938 * config/lib_configure.m4: removed
940 * lib/configure.m4: new file (was config/lib_configure.m4)
942 * configure.in: do not test for rtti, since we do not use it.
944 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
946 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
947 doubling of allocated space scheme. This makes it faster for large
948 strings end to use less memory for small strings. xtra rememoved.
950 * src/insets/figinset.C (waitalarm): commented out.
951 (GhostscriptMsg): use static_cast
952 (GhostscriptMsg): use new instead of malloc to allocate memory for
953 cmap. also delete the memory after use.
955 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
957 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
958 for changes in bibtex database or style.
959 (runBibTeX): remove all .bib and .bst files from dep before we
961 (run): use scanAuc in when dep file already exist.
963 * src/DepTable.C (remove_files_with_extension): new method
966 * src/DepTable.[Ch]: made many of the methods const.
968 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
970 * src/bufferparams.C: make sure that the default textclass is
971 "article". It used to be the first one by description order, but
972 now the first one is "docbook".
974 * src/lyx_main.C (setDebuggingLevel): change type of argument to
975 string; call Debug::value.
976 (easyParse): pass complete argument to setDebuggingLevel().
978 * src/debug.h (value): fix the code that parses debug levels.
980 * src/debug.h: add new debug type ACTION, reserved for LyXAction
983 * src/LyXAction.C: use Debug::ACTION as debug channel.
985 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
987 * NEWS: updated for the future 1.1.3 release.
989 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
990 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
991 it should. This is of course a controversial change (since many
992 people will find that their lyx workscreen is suddenly full of
993 red), but done for the sake of correctness.
995 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
996 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
998 * src/insets/inseterror.h, src/insets/inseturl.h,
999 src/insets/insetinfo.h, src/insets/figinset.h,
1000 src/mathed/formulamacro.h, src/mathed/math_macro.h
1001 (EditMessage): add a missing const and add _() to make sure that
1004 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1005 src/insets/insetbib.C, src/support/filetools.C: add `using'
1008 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1009 doing 'Insert index of last word' at the beginning of a paragraph.
1011 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1013 * several files: white-space changes.
1015 * src/mathed/formula.C: removed IsAlpha and IsDigit
1017 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1018 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1021 * src/insets/figinset.C (GetPSSizes): don't break when
1022 "EndComments" is seen. But break when a boundingbox is read.
1024 * all classes inherited from Inset: return value of Clone
1025 changed back to Inset *.
1027 * all classes inherited form MathInset: return value of Clone
1028 changed back to MathedInset *.
1030 * src/insets/figinset.C (runqueue): use a ofstream to output the
1031 gs/ps file. Might need some setpresicion or setw. However I can
1032 see no problem with the current code.
1033 (runqueue): use sleep instead of the alarm/signal code. I just
1034 can't see the difference.
1036 * src/paragraph.C (LyXParagraph): reserve space in the new
1037 paragraph and resize the inserted paragraph to just fit.
1039 * src/lyxfunc.h (operator|=): added operator for func_status.
1041 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1042 check for readable file.
1044 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1045 check for readable file.
1046 (MenuMakeLinuxDoc): ditto
1047 (MenuMakeDocBook): ditto
1048 (MenuMakeAscii): ditto
1049 (InsertAsciiFile): split the test for openable and readable
1051 * src/bmtable.C (draw_bitmaptable): use
1052 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1054 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1055 findtexfile from LaTeX to filetools.
1057 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1058 instead of FilePtr. Needs to be verified by a literate user.
1060 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1062 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1063 (EditMessage): likewise.
1065 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1066 respectively as \textasciitilde and \textasciicircum.
1068 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1070 * src/support/lyxstring.h: made the methods that take iterators
1073 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1074 (regexMatch): made is use the real regex class.
1076 * src/support/Makefile.am: changed to use libtool
1078 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1080 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1082 (MathIsInset ++): changed several macros to be inline functions
1085 * src/mathed/Makefile.am: changed to use libtool
1087 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1089 * src/insets/inset* : Clone changed to const and return type is
1090 the true insettype not just Inset*.
1092 * src/insets/Makefile.am: changed to use libtool
1094 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1096 * src/undo.[Ch] : added empty() and changed some of the method
1099 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1101 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1102 setID use block<> for the bullets array, added const several places.
1104 * src/lyxfunc.C (getStatus): new function
1106 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1107 LyXAction, added const to several funtions.
1109 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1110 a std::map, and to store the dir items in a vector.
1112 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1115 * src/LyXView.[Ch] + other files : changed currentView to view.
1117 * src/LyXAction.[Ch] : ported from the old devel branch.
1119 * src/.cvsignore: added .libs and a.out
1121 * configure.in : changes to use libtool.
1123 * acinclude.m4 : inserted libtool.m4
1125 * .cvsignore: added libtool
1127 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1129 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1130 file name in insets and mathed directories (otherwise the
1131 dependency is not taken in account under cygwin).
1133 * src/text2.C (InsertString[AB]): make sure that we do not try to
1134 read characters past the string length.
1136 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1138 * lib/doc/LaTeXConfig.lyx.in,
1139 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1141 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1142 file saying who created them and when this heppened; this is
1143 useless and annoys tools like cvs.
1145 * lib/layouts/g-brief-{en,de}.layout,
1146 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1147 from Thomas Hartkens <thomas@hartkens.de>.
1149 * src/{insets,mathed}/Makefile.am: do not declare an empty
1150 LDFLAGS, so that it can be set at configure time (useful on Irix
1153 * lib/reLyX/configure.in: make sure that the prefix is set
1154 correctly in LYX_DIR.
1156 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1158 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1159 be used by 'command-sequence' this allows to bind a key to a
1160 sequence of LyX-commands
1161 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1163 * src/LyXAction.C: add "command-sequence"
1165 * src/LyXFunction.C: handling of "command-sequence"
1167 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1168 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1170 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1172 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1174 * src/buffer.C (writeFile): Do not output a comment giving user
1175 and date at the beginning of a .lyx file. This is useless and
1176 annoys cvs anyway; update version number to 1.1.
1178 * src/Makefile.am (LYX_DIR): add this definition, so that a
1179 default path is hardcoded in LyX.
1181 * configure.in: Use LYX_GNU_GETTEXT.
1183 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1184 AM_GNU_GETTEXT with a bug fixed.
1186 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1188 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1190 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1191 which is used to point to LyX data is now LYX_DIR_11x.
1193 * lyx.man: convert to a unix text file; small updates.
1195 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1197 * src/support/LSubstring.[Ch]: made the second arg of most of the
1198 constructors be a const reference.
1200 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1203 * src/support/lyxstring.[Ch] (swap): added missing member function
1204 and specialization of swap(str, str);
1206 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1208 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1209 trace of the old one.
1211 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1212 put the member definitions in undo.C.
1214 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1215 NEW_TEXT and have now only code that was included when this was
1218 * src/intl.C (LCombo): use static_cast
1220 (DispatchCallback): ditto
1222 * src/definitions.h: removed whole file
1224 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1226 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
1227 parsing and stores in a std:map. a regex defines the file format.
1228 removed unneeded members.
1230 * src/bufferparams.h: added several enums from definitions.h here.
1231 Removed unsused destructor. Changed some types to use proper enum
1232 types. use block to have the temp_bullets and user_defined_bullets
1233 and to make the whole class assignable.
1235 * src/bufferparams.C (Copy): removed this functions, use a default
1238 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
1241 * src/buffer.C (readLyXformat2): commend out all that have with
1242 oldpapersize to do. also comment out all that hve to do with
1243 insetlatex and insetlatexdel.
1244 (setOldPaperStuff): commented out
1246 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
1248 * src/LyXAction.C: remove use of inset-latex-insert
1250 * src/mathed/math_panel.C (button_cb): use static_cast
1252 * src/insets/Makefile.am (insets_o_SOURCES): removed
1255 * src/support/lyxstring.C (helper): use the unsigned long
1256 specifier, UL, instead of a static_cast.
1258 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
1260 * src/support/block.h: new file. to be used as a c-style array in
1261 classes, so that the class can be assignable.
1263 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1265 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
1266 NULL, make sure to return an empty string (it is not possible to
1267 set a string to NULL).
1269 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1271 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
1273 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
1275 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
1276 link line, so that Irix users (for example) can set it explicitely to
1279 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
1280 it can be overidden at make time (static or dynamic link, for
1283 * src/vc-backend.C, src/LaTeXFeatures.h,
1284 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
1285 statements to bring templates to global namespace.
1287 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1289 * src/support/lyxstring.C (operator[] const): make it standard
1292 * src/minibuffer.C (Init): changed to reflect that more
1293 information is given from the lyxvc and need not be provided here.
1295 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
1297 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
1299 * src/LyXView.C (UpdateTimerCB): use static_cast
1300 (KeyPressMask_raw_callback): ditto
1302 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
1303 buffer_, a lot of changes because of this. currentBuffer() ->
1304 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
1305 also changes to other files because of this.
1307 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1309 * src/vc-backend.[Ch]: new files. The backends for vc handling,
1310 have no support for RCS and partial support for CVS, will be
1313 * src/insets/ several files: changes because of function name
1314 changes in Bufferview and LyXView.
1316 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
1318 * src/support/LSubstring.[Ch]: new files. These implement a
1319 Substring that can be very convenient to use. i.e. is this
1321 string a = "Mary had a little sheep";
1322 Substring(a, "sheep") = "lamb";
1323 a is now "Mary has a little lamb".
1325 * src/support/LRegex.[Ch]: a regex class that can be used to pick
1326 out patterns and subpatterns of strings. It is used by LSubstring
1327 and also by vc-backend.C
1329 * src/support/lyxstring.C: went over all the assertions used and
1330 tried to correct the wrong ones and flag which of them is required
1331 by the standard. some bugs found because of this. Also removed a
1332 couple of assertions.
1334 * src/support/Makefile.am (libsupport_a_SOURCES): added
1335 LSubstring.[Ch] and LRegex.[Ch]
1337 * src/support/FileInfo.h: have struct stat buf as an object and
1338 not a pointer to one, some changes because of this.
1340 * src/LaTeXFeatures.C (getTClassPreamble): also use the
1341 information in layout when adding the layouts preamble to the
1344 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
1347 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
1348 because of bug in OS/2.
1350 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1352 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
1353 \verbatim@font instead of \ttfamily, so that it can be redefined.
1355 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
1356 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
1357 src/layout.h, src/text2.C: add 'using' directive to bring the
1358 STL templates we need from the std:: namespace to the global one.
1359 Needed by DEC cxx in strict ansi mode.
1361 * src/support/LIstream.h,src/support/LOstream.h,
1362 src/support/lyxstring.h,src/table.h,
1363 src/lyxlookup.h: do not include <config.h> in header
1364 files. This should be done in the .C files only.
1366 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
1370 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1372 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
1373 from Kayvan to fix the tth invokation.
1375 * development/lyx.spec.in: updates from Kayvan to reflect the
1376 changes of file names.
1378 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1380 * src/text2.C (InsertStringB): use std::copy
1381 (InsertStringA): use std::copy
1383 * src/bufferlist.C: use a vector to store the buffers in. This is
1384 an internal change and should not affect any other thing.
1386 * src/BufferView.C (waitForX): use XSync instead of the lengthy
1389 * src/text.C (Fill): fix potential bug, one off bug.
1391 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1393 * src/Makefile.am (lyx_main.o): add more files it depends on.
1395 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
1397 * src/support/lyxstring.C: use size_t for the reference count,
1398 size, reserved memory and xtra.
1399 (internal_compare): new private member function. Now the compare
1400 functions should work for std::strings that have embedded '\0'
1402 (compare): all compare functions rewritten to use
1405 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1407 * src/support/lyxstring.C (compare): pass c_str()
1408 (compare): pass c_str
1409 (compare): pass c_str
1411 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1413 * src/support/DebugStream.C: <config.h> was not included correctly.
1415 * lib/configure: forgot to re-generate it :( I'll make this file
1416 auto generated soon.
1418 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1420 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
1423 * src/support/lyxstring.C: some changes from length() to rep->sz.
1424 avoids a function call.
1426 * src/support/filetools.C (SpaceLess): yet another version of the
1427 algorithm...now per Jean-Marc's suggestions.
1429 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1431 * src/layout.C (less_textclass_desc): functor for use in sorting
1433 (LyXTextClass::Read): sort the textclasses after reading.
1435 * src/support/filetools.C (SpaceLess): new version of the
1436 SpaceLess functions. What problems does this one give? Please
1439 * images/banner_bw.xbm: made the arrays unsigned char *
1441 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1443 * src/support/lyxstring.C (find): remove bogus assertion in the
1444 two versions of find where this has not been done yet.
1446 * src/support/lyxlib.h: add missing int return type to
1449 * src/menus.C (ShowFileMenu): disable exporting to html if no
1450 html export command is present.
1452 * config/lib_configure.m4: add a test for an HTML converter. The
1453 programs checked for are, in this order: tth, latex2html and
1456 * lib/configure: generated from config/lib_configure.m4.
1458 * src/lyxfunc.C (Dispatch): update and improve the execution of an
1459 html converter. The parameters are now passed through $$FName and
1460 $$OutName, instead of standard input/output.
1462 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
1464 * lib/lyxrc.example: update description of \html_command.
1465 add "quotes" around \screen_font_xxx font setting examples to help
1466 people who use fonts with spaces in their names.
1468 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1470 * Distribution files: updates for v1.1.2
1472 * src/support/lyxstring.C (find): remove bogus assert and return
1473 npos for the same condition.
1475 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1477 * added patch for OS/2 from SMiyata.
1479 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1481 * src/text2.C (CutSelection): make space_wrapped a bool
1482 (CutSelection): dont declare int i until we have to.
1483 (alphaCounter): return a char const *.
1485 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1487 * src/support/syscall.C (Systemcalls::kill):
1488 src/support/filetools.C (PutEnv, PutEnvPath):
1489 src/lyx_cb.C (addNewlineAndDepth):
1490 src/FontInfo.C (FontInfo::resize): condition some #warning
1491 directives with WITH_WARNINGS.
1494 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1496 * src/layout.[Ch] + several files: access to class variables
1497 limited and made accessor functions instead a lot of code changed
1498 becuase of this. Also instead of returning pointers often a const
1499 reference is returned instead.
1501 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
1503 * src/Makefile.am (dist-hook): added used to remove the CVS from
1504 cheaders upon creating a dist
1505 (EXTRA_DIST): added cheaders
1507 * src/support/lstrings.C (tostr(char)): fix it to handle param as
1508 a character not as a small integer.
1510 * src/support/lyxstring.C (find): removed Assert and added i >=
1511 rep->sz to the first if.
1513 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1515 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
1516 src/LyXView.C src/buffer.C src/bufferparams.C
1517 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
1518 src/text2.C src/insets/insetinclude.C:
1519 lyxlayout renamed to textclasslist.
1521 * src/layout.C: some lyxerr changes.
1523 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
1524 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
1525 (LyXLayoutList): removed all traces of this class.
1526 (LyXTextClass::Read): rewrote LT_STYLE
1527 (LyXTextClass::hasLayout): new function
1528 (LyXTextClass::GetLayout): rewritten to return an iterator + has
1529 both const and nonconst version.
1530 (LyXTextClass::delete_layout): new function.
1531 (LyXTextClassList::Style): bug fix. do the right thing if layout
1533 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
1534 (LyXTextClassList::NameOfLayout): ditto
1535 (LyXTextClassList::Load): ditto
1537 * src/buffer.C (makeLaTeXFile): new access to layoutlist
1539 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
1541 * src/LyXAction.C (LookupFunc): added a workaround for sun
1542 compiler, on the other hand...we don't know if the current code
1543 compiles on sun at all...
1545 * src/support/filetools.C (CleanupPath): subst fix
1547 * src/insets/insetbib.C (delDatabase): subst fix, this looks
1550 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
1551 complained about this one?
1553 * src/insets/insetinclude.C (Latex): subst fix
1555 * src/insets/insetbib.C (getKeys): subst fix
1557 * src/LyXSendto.C (SendtoApplyCB): subst fix
1559 * src/lyx_main.C (init): subst fix
1561 * src/layout.C (Read): subst fix
1563 * src/lyx_sendfax_main.C (button_send): subst fix
1565 * src/buffer.C (RoffAsciiTable): subst fix
1567 * src/lyx_cb.C (MenuFax): subst fix
1568 (PrintApplyCB): subst fix
1570 1999-10-26 Juergen Vigna <jug@sad.it>
1572 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
1574 (Read): Cleaned up this code so now we read only format vestion >= 5
1576 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1578 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
1579 come nobody has complained about this one?
1581 * src/insets/insetinclude.C (Latex): subst fix
1583 * src/insets/insetbib.C (getKeys): subst fix
1585 * src/lyx_main.C (init): subst fix
1587 * src/layout.C (Read): subst fix
1589 * src/buffer.C (RoffAsciiTable): subst fix
1591 * src/lyx_cb.C (MenuFax): subst fix.
1593 * src/layout.[hC] + some other files: rewrote to use
1594 std::container to store textclasses and layouts in.
1595 Simplified, removed a lot of code. Make all classes
1596 assignable. Further simplifications and review of type
1597 use still to be one.
1599 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
1600 lastfiles to create the lastfiles partr of the menu.
1602 * src/lastfiles.[Ch]: rewritten to use deque to store the
1603 lastfiles in. Uses fstream for reading and writing. Simplifies
1606 * src/support/syscall.C: remove explicit cast.
1608 * src/BufferView.C (CursorToggleCB): removed code snippets that
1610 use explicat C++ style casts instead of C style casts. also use
1611 u_vdata instea of passing pointers in longs.
1613 * src/PaperLayout.C: removed code snippets that were commented out.
1615 * src/lyx_gui_misc.C: removed code snippets that were commented out.
1617 * src/lyx_main.C: removed code snippets that wer commented out.
1619 * src/paragraph.C: removed code snippets that were commented out.
1621 * src/lyxvc.C (logClose): use static_cast
1623 (viewLog): remove explicit cast to void*
1624 (showLog): removed old commented code
1626 * src/menus.C: use static_cast instead of C style casts. use
1627 u_vdata instead of u_ldata. remove explicit cast to (long) for
1628 pointers. Removed old code that was commented out.
1630 * src/insets/inset.C: removed old commented func
1632 * src/insets/insetref.C (InsetRef): removed old code that had been
1633 commented out for a long time.
1635 (escape): removed C style cast
1637 * src/insets/insetlatexaccent.C (Draw): removed old commented code
1639 * src/insets/insetlatex.C (Draw): removed old commented code
1640 (Read): rewritten to use string
1642 * src/insets/insetlabel.C (escape): removed C style cast
1644 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
1646 * src/insets/insetindex.C: use static_cast and u_vdata, removed
1649 * src/insets/insetinclude.h: removed a couple of stupid bools
1651 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
1652 (Clone): remove C style cast
1653 (getKeys): changed list to lst because of std::list
1655 * src/insets/inseterror.C (Draw): removed som old commented code.
1657 * src/insets/insetcommand.C (Draw): removed some old commented code.
1659 * src/insets/insetbib.C (bibitem_cb): removed code that has been
1660 commented out forever.
1661 (bibitem_cb): use static_cast instead of C style cast
1662 use of vdata changed to u_vdata.
1664 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
1666 (CloseUrlCB): use static_cast instead of C style cast.
1667 (CloseUrlCB): added a fl_free form...it seemed to be missing.
1669 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
1670 (C_InsetInfo_CloseInfoCB): forward the ob parameter
1671 (CloseInfoCB): static_cast from ob->u_vdata instead.
1672 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
1675 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
1676 (C_InsetError_CloseErrorCB): forward the ob parameter
1677 (CloseErrorCB): static_cast from ob->u_vdata instead.
1679 * src/vspace.h: include LString.h since we use string in this class.
1681 * src/vspace.C (lyx_advance): changed name from advance because of
1682 nameclash with stl. And since we cannot use namespaces yet...I
1683 used a lyx_ prefix instead. Expect this to change when we begin
1686 * src/BufferView.[Ch] (BufferView::~BufferView): removed
1688 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
1689 and removed now defunct constructor and deconstructor.
1691 * src/BufferView.h: have backstack as a object not as a pointer.
1692 removed initialization from constructor. added include for BackStack
1694 * development/lyx.spec.in (%build): add CFLAGS also.
1696 * src/screen.C (drawFrame): removed another warning.
1698 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1700 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
1701 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
1702 README and ANNOUNCE a bit for the next release. More work is
1705 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
1706 unbreakable if we are in freespacing mode (LyX-Code), but not in
1709 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1711 * src/BackStack.h: fixed initialization order in constructor
1713 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
1715 * acinclude.m4 (VERSION): new rules for when a version is
1716 development, added also a variable for prerelease.
1717 (warnings): we set with_warnings=yes for prereleases
1718 (lyx_opt): prereleases compile with same optimization as development
1719 (CXXFLAGS): only use pedantic if we are a development version
1721 * src/BufferView.C (restorePosition): don't do anything if the
1724 * src/BackStack.h: added member empty, use this to test if there
1725 is anything to pop...
1727 1999-10-25 Juergen Vigna <jug@sad.it>
1730 * forms/layout_forms.fd +
1731 * forms/latexoptions.fd +
1732 * lyx.fd: changed for various form resize issues
1734 * src/mathed/math_panel.C +
1735 * src/insets/inseterror.C +
1736 * src/insets/insetinfo.C +
1737 * src/insets/inseturl.C +
1738 * src/insets/inseturl.h +
1741 * src/PaperLayout.C +
1742 * src/ParagraphExtra.C +
1743 * src/TableLayout.C +
1745 * src/layout_forms.C +
1752 * src/menus.C: fixed various resize issues. So now forms can be
1753 resized savely or not be resized at all.
1755 * forms/form_url.fd +
1756 * src/insets/form_url.[Ch]: added because it's cleaner and easier
1759 * src/insets/Makefile.am: added files form_url.[Ch]
1761 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1763 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
1764 (and presumably 6.2).
1766 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
1767 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
1768 remaining static member callbacks.
1770 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
1773 * src/support/lyxstring.h: declare struct Srep as friend of
1774 lyxstring, since DEC cxx complains otherwise.
1776 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1778 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1780 * src/LaTeX.C (run): made run_bibtex also depend on files with
1782 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
1783 are put into the dependency file.
1785 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
1786 the code has shown itself to work
1787 (create_ispell_pipe): removed another warning, added a comment
1790 * src/minibuffer.C (ExecutingCB): removed code that has been
1791 commented out a long time
1793 * src/lyxfunc.C (processKeyEvent): removed some very old commented
1794 out code + a warning.
1796 * src/support/lyxstring.h: comment out the three private
1797 operators, when compiling with string ansi conforming compilers
1800 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
1802 (pixmapFromBitmapData): change type of bdata to be unsigned char *
1803 (pixmapFromBitmapData): add a reinterpret_cast in the call to
1806 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
1809 * src/mathed/math_panel.C (create_math_panel): remove explicit
1812 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
1815 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
1816 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
1817 to XCreatePixmapFromBitmapData
1818 (fl_set_bmtable_data): change the last argument to be unsigned
1820 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
1821 and bh to be unsigned int, remove explicit casts in call to
1822 XReadBitmapFileData.
1824 * images/arrows.xbm: made the arrays unsigned char *
1825 * images/varsz.xbm: ditto
1826 * images/misc.xbm: ditto
1827 * images/greek.xbm: ditto
1828 * images/dots.xbm: ditto
1829 * images/brel.xbm: ditto
1830 * images/bop.xbm: ditto
1832 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
1834 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
1835 (LYX_PROG_CXX): added -pedantic to g++ compile options when
1836 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
1838 (LYX_CXX_CHEADERS): added <clocale> to the test.
1840 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
1842 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
1844 * src/support/lyxstring.C (append): fixed something that must be a
1845 bug, rep->assign was used instead of rep->append.
1847 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
1850 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
1851 lyx insert double chars. Fix spotted by Kayvan.
1853 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1855 * Fixed the tth support. I messed up with the Emacs patch apply feature
1856 and omitted the changes in lyxrc.C.
1858 1999-10-22 Juergen Vigna <jug@sad.it>
1860 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
1862 * src/lyx_cb.C (MenuInsertRef) +
1863 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
1864 the form cannot be resized under it limits (fixes a segfault)
1866 * src/lyx.C (create_form_form_ref) +
1867 * forms/lyx.fd: Changed Gravity on name input field so that it is
1870 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1872 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1873 <ostream> and <istream>.
1875 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1876 whether <fstream> provides the latest standard features, or if we
1877 have an oldstyle library (like in egcs).
1878 (LYX_CXX_STL_STRING): fix the test.
1880 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1881 code on MODERN_STL_STREAM.
1883 * src/support/lyxstring.h: use L{I,O}stream.h.
1885 * src/support/L{I,O}stream.h: new files, designed to setup
1886 correctly streams for our use
1887 - includes the right header depending on STL capabilities
1888 - puts std::ostream and std::endl (for LOStream.h) or
1889 std::istream (LIStream.h) in toplevel namespace.
1891 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1893 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1894 was a bib file that had been changed we ensure that bibtex is run.
1895 (runBibTeX): enhanced to extract the names of the bib files and
1896 getting their absolute path and enter them into the dep file.
1897 (findtexfile): static func that is used to look for tex-files,
1898 checks for absolute patchs and tries also with kpsewhich.
1899 Alternative ways of finding the correct files are wanted. Will
1901 (do_popen): function that runs a command using popen and returns
1902 the whole output of that command in a string. Should be moved to
1905 * src/DepTable.[Ch] (extchanged): new function that returns true if a
1906 file with extension ext has changed.
1908 * src/insets/figinset.C: added ifdef guards around the fl_free
1909 code that jug commented out. Now it is commented out when
1910 compiling with XForms == 0.89.
1912 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1913 to lyxstring.C, and only keep a forward declaration in
1914 lyxstring.h. Simplifies the header file a bit and should help a
1915 bit on compile time too. Also changes to Srep will not mandate a
1916 recompile of code just using string.
1917 (~lyxstring): definition moved here since it uses srep.
1918 (size): definition moved here since it uses srep.
1920 * src/support/lyxstring.h: removed a couple of "inline" that should
1923 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1925 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1928 1999-10-21 Juergen Vigna <jug@sad.it>
1930 * src/table.C (SetPWidth): Just a small fix so the alignment is not
1931 set to left if I just remove the width entry (or it is empty).
1933 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1934 paragraph when having dummy paragraphs.
1936 1999-10-20 Juergen Vigna <jug@sad.it>
1938 * src/insets/figinset.C: just commented some fl_free_form calls
1939 and added warnings so that this calls should be activated later
1940 again. This avoids for now a segfault, but we have a memory leak!
1942 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1943 'const char * argument' to 'string argument', this should
1944 fix some Asserts() in lyxstring.C.
1946 * src/lyxfunc.h: Removed the function argAsString(const char *)
1947 as it is not used anymore.
1949 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1951 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1954 * src/Literate.h: some funcs moved from public to private to make
1955 interface clearer. Unneeded args removed.
1957 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1959 (scanBuildLogFile): ditto
1961 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1962 normal TeX Error. Still room for improvement.
1964 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1966 * src/buffer.C (insertErrors): changes to make the error
1967 desctription show properly.
1969 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1972 * src/support/lyxstring.C (helper): changed to use
1973 sizeof(object->rep->ref).
1974 (operator>>): changed to use a pointer instead.
1976 * src/support/lyxstring.h: changed const reference & to value_type
1977 const & lets see if that helps.
1979 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
1981 * Makefile.am (rpmdist): fixed to have non static package and
1984 * src/support/lyxstring.C: removed the compilation guards
1986 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
1989 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
1990 conditional compile of lyxstring.Ch
1992 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
1993 stupid check, but it is a lot better than the bastring hack.
1994 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
1996 * several files: changed string::erase into string::clear. Not
1999 * src/chset.C (encodeString): use a char temporary instead
2001 * src/table.C (TexEndOfCell): added tostr around
2002 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2003 (TexEndOfCell): ditto
2004 (TexEndOfCell): ditto
2005 (TexEndOfCell): ditto
2006 (DocBookEndOfCell): ditto
2007 (DocBookEndOfCell): ditto
2008 (DocBookEndOfCell): ditto
2009 (DocBookEndOfCell): ditto
2011 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2013 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2015 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2016 (MenuBuildProg): added tostr around ret
2017 (MenuRunChktex): added tostr around ret
2018 (DocumentApplyCB): added tostr around ret
2020 * src/chset.C (encodeString): added tostr around t->ic
2022 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2023 (makeLaTeXFile): added tostr around tocdepth
2024 (makeLaTeXFile): added tostr around ftcound - 1
2026 * src/insets/insetbib.C (setCounter): added tostr around counter.
2028 * src/support/lyxstring.h: added an operator+=(int) to catch more
2031 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2032 (lyxstring): We DON'T allow NULL pointers.
2034 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2036 * src/mathed/math_macro.C (MathMacroArgument::Write,
2037 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2038 when writing them out.
2040 * src/LString.C: remove, since it is not used anymore.
2042 * src/support/lyxstring.C: condition the content to
2043 USE_INCLUDED_STRING macro.
2045 * src/mathed/math_symbols.C, src/support/lstrings.C,
2046 src/support/lyxstring.C: add `using' directive to specify what
2047 we need in <algorithm>. I do not think that we need to
2048 conditionalize this, but any thought is appreciated.
2050 * many files: change all callback functions to "C" linkage
2051 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2052 strict_ansi. Those who were static are now global.
2053 The case of callbacks which are static class members is
2054 trickier, since we have to make C wrappers around them (see
2055 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2056 did not finish this yet, since it defeats the purpose of
2057 encapsulation, and I am not sure what the best route is.
2059 1999-10-19 Juergen Vigna <jug@sad.it>
2061 * src/support/lyxstring.C (lyxstring): we permit to have a null
2062 pointer as assignment value and just don't assign it.
2064 * src/vspace.C (nextToken): corrected this function substituting
2065 find_first(_not)_of with find_last_of.
2067 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2068 (TableOptCloseCB) (TableSpeCloseCB):
2069 inserted fl_set_focus call for problem with fl_hide_form() in
2072 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2074 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2077 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2079 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2080 LyXLex::next() and not eatline() to get its argument.
2082 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2084 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2085 instead, use fstreams for io of the depfile, removed unneeded
2086 functions and variables.
2088 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2089 vector instead, removed all functions and variables that is not in
2092 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2094 * src/buffer.C (insertErrors): use new interface to TeXError
2096 * Makefile.am (rpmdist): added a rpmdist target
2098 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2099 per Kayvan's instructions.
2101 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2103 * src/Makefile.am: add a definition for localedir, so that locales
2104 are found after installation (Kayvan)
2106 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2108 * development/.cvsignore: new file.
2110 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2112 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2113 C++ compiler provides wrappers for C headers and use our alternate
2116 * configure.in: use LYX_CXX_CHEADERS.
2118 * src/cheader/: new directory, populated with cname headers from
2119 libstdc++-2.8.1. They are a bit old, but probably good enough for
2120 what we want (support compilers who lack them).
2122 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2123 from includes. It turns out is was stupid.
2125 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2127 * lib/Makefile.am (install-data-local): forgot a ';'
2128 (install-data-local): forgot a '\'
2129 (libinstalldirs): needed after all. reintroduced.
2131 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2133 * configure.in (AC_OUTPUT): added lyx.spec
2135 * development/lyx.spec: removed file
2137 * development/lyx.spec.in: new file
2139 * po/*.po: merged with lyx.pot becuase of make distcheck
2141 * lib/Makefile.am (dist-hook): added dist-hook so that
2142 documentation files will be included when doing a make
2143 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2144 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2146 more: tried to make install do the right thing, exclude CVS dirs
2149 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2150 Path would fit in more nicely.
2152 * all files that used to use pathstack: uses now Path instead.
2153 This change was a lot easier than expected.
2155 * src/support/path.h: new file
2157 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2159 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2161 * src/support/lyxstring.C (getline): Default arg was given for
2164 * Configure.cmd: removed file
2166 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2168 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2169 streams classes and types, add the proper 'using' statements when
2170 MODERN_STL is defined.
2172 * src/debug.h: move the << operator definition after the inclusion
2175 * src/support/filetools.C: include "LAssert.h", which is needed
2178 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2181 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2182 include "debug.h" to define a proper ostream.
2184 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2186 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2187 method to the SystemCall class which can kill a process, but it's
2188 not fully implemented yet.
2190 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2192 * src/support/FileInfo.h: Better documentation
2194 * src/lyxfunc.C: Added support for buffer-export html
2196 * src/menus.C: Added Export->As HTML...
2198 * lib/bind/*.bind: Added short-cut for buffer-export html
2200 * src/lyxrc.*: Added support for new \tth_command
2202 * lib/lyxrc.example: Added stuff for new \tth_command
2204 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2206 * lib/Makefile.am (IMAGES): removed images/README
2207 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2208 installes in correct place. Check permisions is installed
2211 * src/LaTeX.C: some no-op changes moved declaration of some
2214 * src/LaTeX.h (LATEX_H): changed include guard name
2216 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2218 * lib/reLyX/Makefile.am: install noweb2lyx.
2220 * lib/Makefile.am: install configure.
2222 * lib/reLyX/configure.in: declare a config aux dir; set package
2223 name to lyx (not sure what the best solution is); generate noweb2lyx.
2225 * lib/layouts/egs.layout: fix the bibliography layout.
2227 1999-10-08 Jürgen Vigna <jug@sad.it>
2229 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
2230 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
2231 it returned without continuing to search the path.
2233 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2235 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
2236 also fixes a bug. It is not allowed to do tricks with std::strings
2237 like: string a("hei"); &a[e]; this will not give what you
2238 think... Any reason for the complexity in this func?
2240 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
2242 * Updated README and INSTALL a bit, mostly to check that my
2243 CVS rights are correctly set up.
2245 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2247 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
2248 does not allow '\0' chars but lyxstring and std::string does.
2250 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2252 * autogen.sh (AUTOCONF): let the autogen script create the
2253 POTFILES.in file too. POTFILES.in should perhaps now not be
2254 included in the cvs module.
2256 * some more files changed to use C++ includes instead of C ones.
2258 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
2260 (Reread): added tostr to nlink. buggy output otherwise.
2261 (Reread): added a string() around szMode when assigning to Buffer,
2262 without this I got a log of garbled info strings.
2264 * acconfig.h: commented out the PTR_AS_INT macros. They should not
2267 * I have added several ostream & operator<<(ostream &, some_type)
2268 functions. This has been done to avoid casting and warnings when
2269 outputting enums to lyxerr. This as thus eliminated a lot of
2270 explicit casts and has made the code clearer. Among the enums
2271 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
2272 mathed enums, some font enum the Debug::type enum.
2274 * src/support/lyxstring.h (clear): missing method. equivalent of
2277 * all files that contained "stderr": rewrote constructs that used
2278 stderr to use lyxerr instead. (except bmtable)
2280 * src/support/DebugStream.h (level): and the passed t with
2281 Debug::ANY to avoid spurious bits set.
2283 * src/debug.h (Debug::type value): made it accept strings of the
2286 * configure.in (Check for programs): Added a check for kpsewhich,
2287 the latex generation will use this later to better the dicovery of
2290 * src/BufferView.C (create_view): we don't need to cast this to
2291 (void*) that is done automatically.
2292 (WorkAreaButtonPress): removed some dead code.
2294 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2296 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
2297 is not overwritten when translated (David Sua'rez de Lis).
2299 * lib/CREDITS: Added David Sua'rez de Lis
2301 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
2303 * src/bufferparams.C (BufferParams): default input encoding is now
2306 * acinclude.m4 (cross_compiling): comment out macro
2307 LYX_GXX_STRENGTH_REDUCE.
2309 * acconfig.h: make sure that const is not defined (to empty) when
2310 we are compiling C++. Remove commented out code using SIZEOF_xx
2313 * configure.in : move the test for const and inline as late as
2314 possible so that these C tests do not interefere with C++ ones.
2315 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
2316 has not been proven.
2318 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2320 * src/table.C (getDocBookAlign): remove bad default value for
2323 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
2325 (ShowFileMenu2): ditto.
2327 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
2330 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2332 * Most files: finished the change from the old error code to use
2333 DebugStream for all lyxerr debugging. Only minor changes remain
2334 (e.g. the setting of debug levels using strings instead of number)
2336 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2338 * src/layout.C (Add): Changed to use compare_no_case instead of
2341 * src/FontInfo.C: changed loop variable type too string::size_type.
2343 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2345 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
2346 set ETAGS_ARGS to --c++
2348 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
2350 * src/table.C (DocBookEndOfCell): commented out two unused variables
2352 * src/paragraph.C: commented out four unused variables.
2354 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
2355 insed a if clause with type string::size_type.
2357 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
2360 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
2362 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
2363 variable, also changed loop to go from 0 to lenght + 1, instead of
2364 -1 to length. This should be correct.
2366 * src/LaTeX.C (scanError): use string::size_type as loop variable
2369 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
2370 (l.896) since y_tmp and row was not used anyway.
2372 * src/insets/insetref.C (escape): use string::size_type as loop
2375 * src/insets/insetquotes.C (Width): use string::size_type as loop
2377 (Draw): use string::size_type as loop variable type.
2379 * src/insets/insetlatexaccent.C (checkContents): use
2380 string::size_type as loop variable type.
2382 * src/insets/insetlabel.C (escape): use string::size_type as loop
2385 * src/insets/insetinfo.C: added an extern for current_view.
2387 * src/insets/insetcommand.C (scanCommand): use string::size_type
2388 as loop variable type.
2390 * most files: removed the RCS tags. With them we had to recompile
2391 a lot of files after a simple cvs commit. Also we have never used
2392 them for anything meaningful.
2394 * most files: tags-query-replace NULL 0. As adviced several plases
2395 we now use "0" instead of "NULL" in our code.
2397 * src/support/filetools.C (SpaceLess): use string::size_type as
2400 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2402 * src/paragraph.C: fixed up some more string stuff.
2404 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2406 * src/support/filetools.h: make modestr a std::string.
2408 * src/filetools.C (GetEnv): made ch really const.
2410 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
2411 made code that used these use max/min from <algorithm> instead.
2413 * changed several c library include files to their equivalent c++
2414 library include files. All is not changed yet.
2416 * created a support subdir in src, put lyxstring and lstrings
2417 there + the extra files atexit, fileblock, strerror. Created
2418 Makefile.am. edited configure.in and src/Makefile.am to use this
2419 new subdir. More files moved to support.
2421 * imported som of the functions from repository lyx, filetools
2423 * ran tags-query-replace on LString -> string, corrected the bogus
2424 cases. Tried to make use of lstrings.[hC], debugged a lot. There
2425 is still some errors in there. This is errors where too much or
2426 too litle get deleted from strings (string::erase, string::substr,
2427 string::replace), there can also be some off by one errors, or
2428 just plain wrong use of functions from lstrings. Viewing of quotes
2431 * LyX is now running fairly well with string, but there are
2432 certainly some bugs yet (see above) also string is quite different
2433 from LString among others in that it does not allow null pointers
2434 passed in and will abort if it gets any.
2436 * Added the revtex4 files I forgot when setting up the repository.
2438 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2440 * All over: Tried to clean everything up so that only the files
2441 that we really need are included in the cvs repository.
2442 * Switched to use automake.
2443 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
2444 * Install has not been checked.
2446 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2448 * po/pt.po: Three errors:
2449 l.533 and l.538 format specification error
2450 l. 402 duplicate entry, I just deleted it.