1 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * src/support/date.C: new file
5 * src/support/chdir.C: new file
7 * src/support/getUserName.C: new file
9 * src/support/getcwd.C: new file
11 * src/support/abort.C: new file
13 * src/support/kill.C: new file
15 * src/support/lyxlib.h: moved all the functions in this file
16 insede struct lyx. Added also kill and abort to this struct. This
17 is a way to avoid the "kill is not defined in <csignal>", we make
18 C++ wrappers for functions that are not ANSI C or ANSI C++.
20 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
21 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
22 lyx it has been renamed to sum.
24 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
26 * src/text.C: add using directives for std::min and std::max.
28 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
30 * src/texrow.C (getIdFromRow): actually return something useful in
31 id and pos. Hopefully fixes the bug with positionning of errorbox
34 * src/lyx_main.C (easyParse): output an error and exit if an
35 incorrect command line option has been given.
37 * src/spellchecker.C (ispell_check_word): document a memory leak.
39 * src/bufferlist.C (write): fix mismatched allocation/deletion,
40 where a "struct utimbuf" is allocated with "new" and deleted with
43 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
45 * src/text2.C (CutSelection): don't delete double spaces.
46 (PasteSelection): ditto
47 (CopySelection): ditto
49 * src/text.C (Backspace): don't delete double spaces.
51 * src/lyxlex.C (next): fix a bug that were only present with
52 conformant std::istream::get to read comment lines, use
53 std::istream::getline instead. This seems to fix the problem.
55 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
57 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
58 allowed to insert space before space" editing problem. Please read
59 commends at the beginning of the function. Comments about usage
62 * src/text.C (InsertChar): fix for the "not allowed to insert
63 space before space" editing problem.
65 * src/text2.C (DeleteEmptyParagraphMechanism): when
66 IsEmptyTableRow can only return false this last "else if" will
67 always be a no-op. Commented out.
69 * src/text.C (RedoParagraph): As far as I can understand tmp
70 cursor is not really needed.
72 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
73 present it could only return false anyway.
74 (several functions): Did something not so smart...added a const
75 specifier on a lot of methods.
77 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
78 and add a tmp->text.resize. The LyXParagraph constructor does the
80 (BreakParagraphConservative): ditto
82 * src/support/path.h (Path): add a define so that the wrong usage
83 "Path("/tmp") will be flagged as a compilation error:
84 "`unnamed_Path' undeclared (first use this function)"
86 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
88 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
89 which was bogus for several reasons.
91 * src/LaTeX.C (scanAux): fix the regular expression used to scan
95 * autogen.sh: do not use "type -path" (what's that anyway?).
97 * src/support/filetools.C (findtexfile): remove extraneous space
98 which caused a kpsewhich warning (at least with kpathsea version
101 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
103 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
105 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
107 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
109 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
111 * src/paragraph.C (BreakParagraph): do not reserve space on text
112 if we don't need to (otherwise, if pos_end < pos, we end up
113 reserving huge amounts of memory due to bad unsigned karma).
114 (BreakParagraphConservative): ditto, although I have not seen
115 evidence the bug can happen here.
117 * src/lyxparagraph.h: add a using std::list.
119 2000-01-11 Juergen Vigna <jug@sad.it>
121 * src/menus.C (MenuDocu): output an Alert if the documentation-file
124 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
126 * src/vc-backend.C (doVCCommand): change to be static and take one
127 more parameter: the path to chdir too be fore executing the command.
128 (retrive): new function equiv to "co -r"
130 * src/bufferlist.C (loadLyXFile): implement the missing parts if
131 file_not_found_hook is true.
133 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
135 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
136 if a file is readwrite,readonly...anything else.
138 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
140 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
141 (CreatePostscript): name change from MenuRunDVIPS (or something)
142 (PreviewPostscript): name change from MenuPreviewPS
143 (PreviewDVI): name change from MenuPreviewDVI
145 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
146 \view_pdf_command., \pdf_to_ps_command
148 * lib/configure.m4: added search for PDF viewer, and search for
150 (lyxrc.defaults output): add \pdflatex_command,
151 \view_pdf_command and \pdf_to_ps_command.
153 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
155 * src/bufferlist.C (write): we don't use blocksize for anything so
158 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
160 * src/support/block.h: disable operator T* (), since it causes
161 problems with both compilers I tried. See comments in the file.
163 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
166 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
167 variable LYX_DIR_10x to LYX_DIR_11x.
169 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
171 * INSTALL: document --with-lyxname.
174 * configure.in: new configure flag --with-lyxname which allows to
175 choose the name under which lyx is installed. Default is "lyx", of
176 course. It used to be possible to do this with --program-suffix,
177 but the later has in fact a different meaning for autoconf.
179 * src/support/lstrings.h (lstrchr): reformat a bit.
181 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
182 * src/mathed/math_defs.h: ditto.
184 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
186 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
187 true, decides if we create a backup file or not when saving. New
188 tag and variable \pdf_mode, defaults to false. New tag and
189 variable \pdflatex_command, defaults to pdflatex. New tag and
190 variable \view_pdf_command, defaults to xpdf. New tag and variable
191 \pdf_to_ps_command, defaults to pdf2ps.
193 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
195 * src/bufferlist.C (close): don't call insetUnlock if the buffer
196 does not have a BufferView.
197 (unlockInset): ditto + don't access the_locking_inset if the
198 buffer does not have a BufferView.
200 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
201 certain circumstances so that we don't continue a keyboard
202 operation long after the key was released. Try f.ex. to load a
203 large document, press PageDown for some seconds and then release
204 it. Before this change the document would contine to scroll for
205 some time, with this change it stops imidiatly.
207 * src/support/block.h: don't allocate more space than needed. As
208 long as we don't try to write to the arr[x] in a array_type arr[x]
209 it is perfectly ok. (if you write to it you might segfault).
210 added operator value_type*() so that is possible to pass the array
211 to functions expecting a C-pointer.
213 * lib/Makefile.am (dist-hook): don't fail completely if unable to
216 * intl/*: updated to gettext 0.10.35, tried to add our own
217 required modifications. Please verify.
219 * po/*: updated to gettext 0.10.35, tried to add our own required
220 modifications. Please verify.
222 * src/support/lstrings.C (tostr): go at fixing the problem with
223 cxx and stringstream. When stringstream is used return
224 oss.str().c_str() so that problems with lyxstring and basic_string
225 are avoided. Note that the best solution would be for cxx to use
226 basic_string all the way, but it is not conformant yet. (it seems)
228 * src/lyx_cb.C + other files: moved several global functions to
229 class BufferView, some have been moved to BufferView.[Ch] others
230 are still located in lyx_cb.C. Code changes because of this. (part
231 of "get rid of current_view project".)
233 * src/buffer.C + other files: moved several Buffer functions to
234 class BufferView, the functions are still present in buffer.C.
235 Code changes because of this.
237 * config/lcmessage.m4: updated to most recent. used when creating
240 * config/progtest.m4: updated to most recent. used when creating
243 * config/gettext.m4: updated to most recent. applied patch for
246 * config/gettext.m4.patch: new file that shows what changes we
247 have done to the local copy of gettext.m4.
249 * config/libtool.m4: new file, used in creation of acinclude.m4
251 * config/lyxinclude.m4: new file, this is the lyx created m4
252 macros, used in making acinclude.m4.
254 * autogen.sh: GNU m4 discovered as a separate task not as part of
255 the lib/configure creation.
256 Generate acinlucde from files in config. Actually cat
257 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
258 easier to upgrade .m4 files that really are external.
260 * src/Spacing.h: moved using std::istringstream to right after
261 <sstream>. This should fix the problem seen with some compilers.
263 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
265 * src/lyx_cb.C: began some work to remove the dependency a lot of
266 functions have on BufferView::text, even if not really needed.
267 (GetCurrentTextClass): removed this func, it only hid the
270 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
271 forgot this in last commit.
273 * src/Bullet.C (bulletEntry): use static char const *[] for the
274 tables, becuase of this the return arg had to change to string.
276 (~Bullet): removed unneeded destructor
278 * src/BufferView.C (beforeChange): moved from lyx_cb.C
279 (insetSleep): moved from Buffer
280 (insetWakeup): moved from Buffer
281 (insetUnlock): moved from Buffer
283 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
284 from Buffer to BufferView.
286 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
288 * config/ltmain.sh: updated to version 1.3.4 of libtool
290 * config/ltconfig: updated to version 1.3.4 of libtool
292 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
295 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
296 Did I get that right?
298 * src/lyxlex.h: add a "using" directive or two.
299 * src/Spacing.h: ditto.
300 * src/insets/figinset.C: ditto.
301 * src/support/filetools.C: ditto.
302 * src/support/lstrings.C: ditto.
303 * src/BufferView.C: ditto.
304 * src/bufferlist.C: ditto.
305 * src/lyx_cb.C: ditto.
306 * src/lyxlex.C: ditto.
308 * NEWS: add some changes for 1.1.4.
310 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
312 * src/BufferView.C: first go at a TextCache to speed up switching
315 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
317 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
318 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
319 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
320 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
323 * src/mathed/math_defs.h (MathedRowSt): make sure that all
324 members of the struct are correctly initialized to 0 (detected by
326 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
327 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
329 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
330 pidwait, since it was allocated with "new". This was potentially
331 very bad. Thanks to Michael Schmitt for running purify for us.
334 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
336 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
338 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
340 1999-12-30 Allan Rae <rae@lyx.org>
342 * lib/templates/IEEEtran.lyx: minor change
344 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
345 src/mathed/formula.C (LocalDispatch): askForText changes
347 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
348 know when a user has cancelled input. Fixes annoying problems with
349 inserting labels and version control.
351 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
353 * src/support/lstrings.C (tostr): rewritten to use strstream and
356 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
358 * src/support/filetools.C (IsFileWriteable): use fstream to check
359 (IsDirWriteable): use fileinfo to check
361 * src/support/filetools.h (FilePtr): whole class deleted
363 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
365 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
367 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
369 * src/bufferlist.C (write): use ifstream and ofstream instead of
372 * src/Spacing.h: use istrstream instead of sscanf
374 * src/mathed/math_defs.h: change first arg to istream from FILE*
376 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
378 * src/mathed/math_parser.C: have yyis to be an istream
379 (LexGetArg): use istream (yyis)
381 (mathed_parse): ditto
382 (mathed_parser_file): first arg istream instead of FILE*, set yyis
384 * src/mathed/formula.C (Read): rewritten to use istream
386 * src/mathed/formulamacro.C (Read): rewritten to use istream
388 * src/lyxlex.h (~LyXLex): deleted desturctor
389 (getStream): new function, returns an istream
390 (getFile): deleted funtion
391 (IsOK): return is.good();
393 * src/lyxlex.C (LyXLex): delete file and owns_file
394 (setFile): open an filebuf and assign that to a istream instead of
396 (setStream): new function, takes an istream as arg.
397 (setFile): deleted function
398 (EatLine): rewritten us use istream instead of FILE*
402 * src/table.C (LyXTable): use istream instead of FILE*
403 (Read): rewritten to take an istream instead of FILE*
405 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
407 * src/buffer.C (Dispatch): remove an extraneous break statement.
409 * src/support/filetools.C (QuoteName): change to do simple
410 'quoting'. More work is necessary. Also changed to do nothing
411 under emx (needs fix too).
412 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
414 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
415 config.h.in to the AC_DEFINE_UNQUOTED() call.
416 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
417 needs char * as argument (because Solaris 7 declares it like
420 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
421 remove definition of BZERO.
423 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
425 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
426 defined, "lyxregex.h" if not.
428 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
430 (REGEX): new variable that is set to regex.c lyxregex.h when
431 AM_CONDITIONAL USE_REGEX is set.
432 (libsupport_la_SOURCES): add $(REGEX)
434 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
437 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
440 * configure.in: add call to LYX_REGEX
442 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
443 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
445 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
447 * lib/bind/fi_menus.bind: new file, from
448 pauli.virtanen@saunalahti.fi.
450 * src/buffer.C (getBibkeyList): pass the parameter delim to
451 InsetInclude::getKeys and InsetBibtex::getKeys.
453 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
454 is passed to Buffer::getBibkeyList
456 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
457 instead of the hardcoded comma.
459 * src/insets/insetbib.C (getKeys): make sure that there are not
460 leading blanks in bibtex keys. Normal latex does not care, but
461 harvard.sty seems to dislike blanks at the beginning of citation
462 keys. In particular, the retturn value of the function is
464 * INSTALL: make it clear that libstdc++ is needed and that gcc
465 2.7.x probably does not work.
467 * src/support/filetools.C (findtexfile): make debug message go to
469 * src/insets/insetbib.C (getKeys): ditto
471 * src/debug.C (showTags): make sure that the output is correctly
474 * configure.in: add a comment for TWO_COLOR_ICON define.
476 * acconfig.h: remove all the entries that already defined in
477 configure.in or acinclude.m4.
479 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
480 to avoid user name, date and copyright.
482 1999-12-21 Juergen Vigna <jug@sad.it>
484 * src/table.C (Read): Now read bogus row format informations
485 if the format is < 5 so that afterwards the table can
486 be read by lyx but without any format-info. Fixed the
487 crash we experienced when not doing this.
489 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
491 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
492 (RedoDrawingOfParagraph): ditto
493 (RedoParagraphs): ditto
494 (RemoveTableRow): ditto
496 * src/text.C (Fill): rename arg paperwidth -> paper_width
498 * src/buffer.C (insertLyXFile): rename var filename -> fname
499 (writeFile): rename arg filename -> fname
500 (writeFileAscii): ditto
501 (makeLaTeXFile): ditto
502 (makeLinuxDocFile): ditto
503 (makeDocBookFile): ditto
505 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
508 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
510 * src/bmtable.h: add extern "C" on this file when __cplusplus is
513 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
514 compiled by a C compiler not C++.
516 * src/layout.h (LyXTextClass): added typedef for const_iterator
517 (LyXTextClassList): added typedef for const_iterator + member
518 functions begin and end.
520 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
521 iterators to fill the choice_class.
522 (updateLayoutChoice): rewritten to use iterators to fill the
523 layoutlist in the toolbar.
525 * src/BufferView.h (BufferView::work_area_width): removed unused
528 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
530 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
531 (sgmlCloseTag): ditto
533 * src/support/lstrings.h: return type of countChar changed to
536 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
537 what version of this func to use. Also made to return unsigned int.
539 * configure.in: call LYX_STD_COUNT
541 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
542 conforming std::count.
544 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
546 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
547 and a subscript would give bad display (patch from Dekel Tsur
548 <dekel@math.tau.ac.il>).
550 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
552 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
555 * src/chset.h: add a few 'using' directives
557 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
558 triggered when no buffer is active
560 * src/layout.C: removed `break' after `return' in switch(), since
563 * src/lyx_main.C (init): make sure LyX can be ran in place even
564 when libtool has done its magic with shared libraries. Fix the
565 test for the case when the system directory has not been found.
567 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
568 name for the latex file.
569 (MenuMakeHTML): ditto
571 * src/buffer.h: add an optional boolean argument, which is passed
574 1999-12-20 Allan Rae <rae@lyx.org>
576 * lib/templates/IEEEtran.lyx: small correction and update.
578 * configure.in: Attempted to use LYX_PATH_HEADER
580 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
582 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
583 input from JMarc. Now use preprocessor to find the header.
584 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
585 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
586 LYX_STL_STRING_FWD. See comments in file.
588 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
590 * The global MiniBuffer * minibuffer variable is dead.
592 * The global FD_form_main * fd_form_main variable is dead.
594 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
596 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
598 * src/table.h: add the LOstream.h header
601 * src/LyXAction.h: change the explaination of the ReadOnly
602 attribute: is indicates that the function _can_ be used.
604 * src/LyXAction.C (init): find-replace _can_ be used in read-only
607 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
609 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
615 * src/paragraph.C (GetWord): assert on pos>=0
618 * src/support/lyxstring.C: condition the use of an invariant on
620 * src/support/lyxstring.h: ditto
622 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
623 Use LAssert.h instead of plain assert().
625 * src/support/lstrings.h: add LAssert.h, in case it is needed.
627 * src/lyxfunc.C: do not include LAssert.h, it is not used.
628 * src/support/filetools.C: ditto
630 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
633 * INSTALL: document the new configure flags
635 * configure.in: suppress --with-debug; add --enable-assertions
637 * acinclude.m4: various changes in alignment of help strings.
639 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
641 * src/kbmap.C: commented out the use of the hash map in kb_map,
642 beginning of movement to a stl::container.
644 * several files: removed code that was not in effect when
645 MOVE_TEXT was defined.
647 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
648 for escaping should not be used. We can discuss if the string
649 should be enclosed in f.ex. [] instead of "".
651 * src/trans_mgr.C (insert): use the new returned value from
652 encodeString to get deadkeys and keymaps done correctly.
654 * src/chset.C (encodeString): changed to return a pair, to tell
655 what to use if we know the string.
657 * src/lyxscreen.h (fillArc): new function.
659 * src/FontInfo.C (resize): rewritten to use more std::string like
660 structore, especially string::replace.
662 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
665 * configure.in (chmod +x some scripts): remove config/gcc-hack
667 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
669 * src/buffer.C (writeFile): change once again the top comment in a
670 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
671 instead of an hardcoded version number.
672 (makeDocBookFile): ditto
674 * src/version.h: add new define LYX_DOCVERSION
676 * po/de.po: update from Pit Sütterlin
677 * lib/bind/de_menus.bind: ditto.
679 * src/lyxfunc.C (Dispatch): call MenuExport()
680 * src/buffer.C (Dispatch): ditto
682 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
684 (MenuExport): new function, moved from
687 * src/trans_mgr.C (insert): small cleanup
688 * src/chset.C (loadFile): ditto
690 * lib/kbd/iso8859-1.cdef: add missing backslashes
692 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
694 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
695 help with placing the manually drawn accents better.
697 (Draw): x2 and hg changed to float to minimize rounding errors and
698 help place the accents better.
700 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
701 unsigned short to char is just wrong...cast the char to unsigned
702 char instead so that the two values can compare sanely. This
703 should also make the display of insetlatexaccents better and
704 perhaps also some other insets.
706 (lbearing): new function
709 1999-12-15 Allan Rae <rae@lyx.org>
711 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
712 header that provides a wrapper around the very annoying SGI STL header
715 * src/support/lyxstring.C, src/LString.h:
716 removed old SGI-STL-compatability attempts.
718 * configure.in: Use LYX_STL_STRING_FWD.
720 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
721 stl_string_fwd.h is around and try to determine it's location.
722 Major improvement over previous SGI STL 3.2 compatability.
723 Three small problems remain with this function due to my zero
724 knowledge of autoconf. JMarc and lgb see the comments in the code.
726 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
728 * src/broken_const.h, config/hack-gcc, config/README: removed
730 * configure.in: remove --with-gcc-hack option; do not call
733 * INSTALL: remove documentation of --with-broken-const and
736 * acconfig.h: remove all trace of BROKEN_CONST define
738 * src/buffer.C (makeDocBookFile): update version number in output
740 (SimpleDocBookOnePar): fix an assert when trying to a character
741 access beyond string length
744 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
746 * po/de.po: fix the Export menu
748 * lyx.man: update the description of -dbg
750 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
751 (commandLineHelp): updated
752 (easyParse): show list of available debug levels if -dbg is passed
755 * src/Makefile.am: add debug.C
757 * src/debug.h: moved some code to debug.C
759 * src/debug.C: new file. Contains code to set and show debug
762 * src/layout.C: remove 'break' after 'continue' in switch
763 statements, since these cannot be reached.
765 1999-12-13 Allan Rae <rae@lyx.org>
767 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
768 (in_word_set): hash() -> math_hash()
770 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
772 * acconfig.h: Added a test for whether we are using exceptions in the
773 current compilation run. If so USING_EXCEPTIONS is defined.
775 * config.in: Check for existance of stl_string_fwd.h
776 * src/LString.h: If compiling --with-included-string and SGI's
777 STL version 3.2 is present (see above test) we need to block their
778 forward declaration of string and supply a __get_c_string().
779 However, it turns out this is only necessary if compiling with
780 exceptions enabled so I've a bit more to add yet.
782 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
783 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
784 src/support/LRegex.h, src/undo.h:
785 Shuffle the order of the included files a little to ensure that
786 LString.h gets included before anything that includes stl_string_fwd.h
788 * src/support/lyxstring.C: We need to #include LString.h instead of
789 lyxstring.h to get the necessary definition of __get_c_string.
790 (__get_c_string): New function. This is defined static just like SGI's
791 although why they need to do this I'm not sure. Perhaps it should be
792 in lstrings.C instead.
794 * lib/templates/IEEEtran.lyx: New template file.
796 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
798 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
799 * intl/Makefile.in (MKINSTALLDIRS): ditto
801 * src/LyXAction.C (init): changed to hold the LFUN data in a
802 automatic array in stead of in callso to newFunc, this speeds up
803 compilation a lot. Also all the memory used by the array is
804 returned when the init is completed.
806 * a lot of files: compiled with -Wold-style-cast, changed most of
807 the reported offenders to C++ style casts. Did not change the
808 offenders in C files.
810 * src/trans.h (Match): change argument type to unsigned int.
812 * src/support/DebugStream.C: fix some types on the streambufs so
813 that it works on a conforming implementation.
815 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
817 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
819 * src/support/lyxstring.C: remove the inline added earlier since
820 they cause a bunch of unsatisfied symbols when linking with dec
821 cxx. Cxx likes to have the body of inlines at the place where they
824 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
825 accessing negative bounds in array. This fixes the crash when
826 inserting accented characters.
827 * src/trans.h (Match): ditto
829 * src/buffer.C (Dispatch): since this is a void, it should not try
830 to return anything...
832 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
834 * src/buffer.h: removed the two friends from Buffer. Some changes
835 because of this. Buffer::getFileName and Buffer::setFileName
836 renamed to Buffer::fileName() and Buffer::fileName(...).
838 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
840 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
841 and Buffer::update(short) to BufferView. This move is currently
842 controlled by a define MOVE_TEXT, this will be removed when all
843 shows to be ok. This move paves the way for better separation
844 between buffer contents and buffer view. One side effect is that
845 the BufferView needs a rebreak when swiching buffers, if we want
846 to avoid this we can add a cache that holds pointers to LyXText's
847 that is not currently in use.
849 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
852 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
854 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
856 * lyx_main.C: new command line option -x (or --execute) and
857 -e (or --export). Now direct conversion from .lyx to .tex
858 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
859 Unfortunately, X is still needed and the GUI pops up during the
862 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
864 * src/Spacing.C: add a using directive to bring stream stuff into
866 * src/paragraph.C: ditto
867 * src/buffer.C: ditto
869 * NEWS: updated a bit the new features of 1.1.3 (took a few things
870 from Lars' announcement).
872 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
873 example files from Tino Meinen.
875 1999-12-06 Allan Rae <rae@lyx.org>
877 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
879 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
881 * src/support/lyxstring.C: added a lot of inline for no good
884 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
885 latexWriteEndChanges, they were not used.
887 * src/layout.h (operator<<): output operator for PageSides
889 * src/mathed/math_iter.C (my_memcpy): slightly changed.
891 * some example files: loaded in LyX 1.0.4 and saved again to update
892 certain constructs (table format)
894 * a lot of files: did the change to use fstream/iostream for all
895 writing of files. Done with a close look at Andre Poenitz's patch.
897 * some files: whitespace changes.
899 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
901 * src/mathed/math_iter.C (my_memcpy): new function. Since the
902 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
903 architecture, we provide our own. It is used unconditionnally, but
904 I do not think this is a performance problem. Thanks to Angus
905 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
906 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
908 (GetInset): use my_memcpy.
912 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
913 it is easier to understand, but it uses less TeX-only constructs now.
915 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
916 elements contain spaces
918 * lib/configure: regenerated
920 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
921 elements contain spaces; display the list of programs that are
924 * autogen.sh: make sure lib/configure is executable
926 * lib/examples/*: rename the tutorial examples to begin with the
927 two-letters language code.
929 * src/lyxfunc.C (getStatus): do not query current font if no
932 * src/lyx_cb.C (RunScript): use QuoteName
933 (MenuRunDvips): ditto
934 (PrintApplyCB): ditto
936 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
937 around argument, so that it works well with the current shell.
938 Does not work properly with OS/2 shells currently.
940 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
941 * src/LyXSendto.C (SendtoApplyCB): ditto
942 * src/lyxfunc.C (Dispatch): ditto
943 * src/buffer.C (runLaTeX): ditto
945 (buildProgram): ditto
947 * src/lyx_cb.C (RunScript): ditto
948 (MenuMakeLaTeX): ditto
950 * src/buffer.h (getLatexName): new method
952 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
954 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
956 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
957 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
958 (create_math_panel): ditto
960 * src/lyxfunc.C (getStatus): re-activate the code which gets
961 current font and cursor; add test for export to html.
963 * src/lyxrc.C (read): remove unreachable break statements; add a
966 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
968 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
970 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
971 introduced by faulty regex.
972 * src/buffer.C: ditto
973 * src/lastfiles.C: ditto
974 * src/paragraph.C: ditto
976 * src/vspace.C: ditto
977 * src/insets/figinset.C: ditto
978 Note: most of these is absolutely harmless, except the one in
979 src/mathed formula.C.
981 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
983 * src/ImportNoweb.C (documentclass): fixed bounds for substr
984 operation, yielding correct results for the reLyX command.
986 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
988 * src/support/filetools.C (ExpandPath): removed an over eager
990 (ReplaceEnvironmentPath): ditto
992 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
993 shows that we are doing something fishy in our code...
997 * src/lyxrc.C (read): use a double switch trick to get more help
998 from the compiler. (the same trick is used in layout.C)
999 (write): new function. opens a ofstream and pass that to output
1000 (output): new function, takes a ostream and writes the lyxrc
1001 elemts to it. uses a dummy switch to make sure no elements are
1004 * src/lyxlex.h: added a struct pushpophelper for use in functions
1005 with more than one exit point.
1007 * src/lyxlex.[Ch] (GetInteger): made it const
1011 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1013 * src/layout.[hC] : LayoutTags splitted into several enums, new
1014 methods created, better error handling cleaner use of lyxlex. Read
1017 * src/bmtable.[Ch]: change some member prototypes because of the
1018 image const changes.
1020 * commandtags.h, src/LyXAction.C (init): new function:
1021 "preferences-save", saves the lyxrc entries into .lyx/preferences.
1022 This file is not read automatically but you can add \input
1023 preferences to your lyxrc if you want to. We need to discuss how
1026 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1027 in .aux, also remove .bib and .bst files from dependencies when
1030 * src/BufferView.C, src/LyXView.C: add const_cast several places
1031 because of changes to images.
1033 * lib/images/*: same change as for images/*
1035 * lib/lyxrc.example: Default for accept_compound is false not no.
1037 * images/*: changed to be const, however I have som misgivings
1038 about this change so it might be changed back.
1040 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1042 * lib/configure, po/POTFILES.in: regenerated
1044 * autogen.sh: autogenerate lib/configure from lib/configure.m4
1046 * config/lib_configure.m4: removed
1048 * lib/configure.m4: new file (was config/lib_configure.m4)
1050 * configure.in: do not test for rtti, since we do not use it.
1052 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1054 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1055 doubling of allocated space scheme. This makes it faster for large
1056 strings end to use less memory for small strings. xtra rememoved.
1058 * src/insets/figinset.C (waitalarm): commented out.
1059 (GhostscriptMsg): use static_cast
1060 (GhostscriptMsg): use new instead of malloc to allocate memory for
1061 cmap. also delete the memory after use.
1063 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1065 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1066 for changes in bibtex database or style.
1067 (runBibTeX): remove all .bib and .bst files from dep before we
1069 (run): use scanAuc in when dep file already exist.
1071 * src/DepTable.C (remove_files_with_extension): new method
1074 * src/DepTable.[Ch]: made many of the methods const.
1076 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1078 * src/bufferparams.C: make sure that the default textclass is
1079 "article". It used to be the first one by description order, but
1080 now the first one is "docbook".
1082 * src/lyx_main.C (setDebuggingLevel): change type of argument to
1083 string; call Debug::value.
1084 (easyParse): pass complete argument to setDebuggingLevel().
1086 * src/debug.h (value): fix the code that parses debug levels.
1088 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1091 * src/LyXAction.C: use Debug::ACTION as debug channel.
1093 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1095 * NEWS: updated for the future 1.1.3 release.
1097 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1098 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1099 it should. This is of course a controversial change (since many
1100 people will find that their lyx workscreen is suddenly full of
1101 red), but done for the sake of correctness.
1103 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1104 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1106 * src/insets/inseterror.h, src/insets/inseturl.h,
1107 src/insets/insetinfo.h, src/insets/figinset.h,
1108 src/mathed/formulamacro.h, src/mathed/math_macro.h
1109 (EditMessage): add a missing const and add _() to make sure that
1112 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1113 src/insets/insetbib.C, src/support/filetools.C: add `using'
1116 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1117 doing 'Insert index of last word' at the beginning of a paragraph.
1119 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1121 * several files: white-space changes.
1123 * src/mathed/formula.C: removed IsAlpha and IsDigit
1125 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1126 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1129 * src/insets/figinset.C (GetPSSizes): don't break when
1130 "EndComments" is seen. But break when a boundingbox is read.
1132 * all classes inherited from Inset: return value of Clone
1133 changed back to Inset *.
1135 * all classes inherited form MathInset: return value of Clone
1136 changed back to MathedInset *.
1138 * src/insets/figinset.C (runqueue): use a ofstream to output the
1139 gs/ps file. Might need some setpresicion or setw. However I can
1140 see no problem with the current code.
1141 (runqueue): use sleep instead of the alarm/signal code. I just
1142 can't see the difference.
1144 * src/paragraph.C (LyXParagraph): reserve space in the new
1145 paragraph and resize the inserted paragraph to just fit.
1147 * src/lyxfunc.h (operator|=): added operator for func_status.
1149 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1150 check for readable file.
1152 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1153 check for readable file.
1154 (MenuMakeLinuxDoc): ditto
1155 (MenuMakeDocBook): ditto
1156 (MenuMakeAscii): ditto
1157 (InsertAsciiFile): split the test for openable and readable
1159 * src/bmtable.C (draw_bitmaptable): use
1160 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1162 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1163 findtexfile from LaTeX to filetools.
1165 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1166 instead of FilePtr. Needs to be verified by a literate user.
1168 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1170 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1171 (EditMessage): likewise.
1173 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1174 respectively as \textasciitilde and \textasciicircum.
1176 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1178 * src/support/lyxstring.h: made the methods that take iterators
1181 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1182 (regexMatch): made is use the real regex class.
1184 * src/support/Makefile.am: changed to use libtool
1186 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1188 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1190 (MathIsInset ++): changed several macros to be inline functions
1193 * src/mathed/Makefile.am: changed to use libtool
1195 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1197 * src/insets/inset* : Clone changed to const and return type is
1198 the true insettype not just Inset*.
1200 * src/insets/Makefile.am: changed to use libtool
1202 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1204 * src/undo.[Ch] : added empty() and changed some of the method
1207 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1209 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1210 setID use block<> for the bullets array, added const several places.
1212 * src/lyxfunc.C (getStatus): new function
1214 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1215 LyXAction, added const to several funtions.
1217 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1218 a std::map, and to store the dir items in a vector.
1220 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1223 * src/LyXView.[Ch] + other files : changed currentView to view.
1225 * src/LyXAction.[Ch] : ported from the old devel branch.
1227 * src/.cvsignore: added .libs and a.out
1229 * configure.in : changes to use libtool.
1231 * acinclude.m4 : inserted libtool.m4
1233 * .cvsignore: added libtool
1235 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1237 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1238 file name in insets and mathed directories (otherwise the
1239 dependency is not taken in account under cygwin).
1241 * src/text2.C (InsertString[AB]): make sure that we do not try to
1242 read characters past the string length.
1244 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1246 * lib/doc/LaTeXConfig.lyx.in,
1247 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1249 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1250 file saying who created them and when this heppened; this is
1251 useless and annoys tools like cvs.
1253 * lib/layouts/g-brief-{en,de}.layout,
1254 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1255 from Thomas Hartkens <thomas@hartkens.de>.
1257 * src/{insets,mathed}/Makefile.am: do not declare an empty
1258 LDFLAGS, so that it can be set at configure time (useful on Irix
1261 * lib/reLyX/configure.in: make sure that the prefix is set
1262 correctly in LYX_DIR.
1264 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1266 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1267 be used by 'command-sequence' this allows to bind a key to a
1268 sequence of LyX-commands
1269 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1271 * src/LyXAction.C: add "command-sequence"
1273 * src/LyXFunction.C: handling of "command-sequence"
1275 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1276 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1278 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1280 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1282 * src/buffer.C (writeFile): Do not output a comment giving user
1283 and date at the beginning of a .lyx file. This is useless and
1284 annoys cvs anyway; update version number to 1.1.
1286 * src/Makefile.am (LYX_DIR): add this definition, so that a
1287 default path is hardcoded in LyX.
1289 * configure.in: Use LYX_GNU_GETTEXT.
1291 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1292 AM_GNU_GETTEXT with a bug fixed.
1294 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1296 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1298 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1299 which is used to point to LyX data is now LYX_DIR_11x.
1301 * lyx.man: convert to a unix text file; small updates.
1303 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1305 * src/support/LSubstring.[Ch]: made the second arg of most of the
1306 constructors be a const reference.
1308 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1311 * src/support/lyxstring.[Ch] (swap): added missing member function
1312 and specialization of swap(str, str);
1314 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1316 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1317 trace of the old one.
1319 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1320 put the member definitions in undo.C.
1322 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1323 NEW_TEXT and have now only code that was included when this was
1326 * src/intl.C (LCombo): use static_cast
1328 (DispatchCallback): ditto
1330 * src/definitions.h: removed whole file
1332 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1334 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
1335 parsing and stores in a std:map. a regex defines the file format.
1336 removed unneeded members.
1338 * src/bufferparams.h: added several enums from definitions.h here.
1339 Removed unsused destructor. Changed some types to use proper enum
1340 types. use block to have the temp_bullets and user_defined_bullets
1341 and to make the whole class assignable.
1343 * src/bufferparams.C (Copy): removed this functions, use a default
1346 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
1349 * src/buffer.C (readLyXformat2): commend out all that have with
1350 oldpapersize to do. also comment out all that hve to do with
1351 insetlatex and insetlatexdel.
1352 (setOldPaperStuff): commented out
1354 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
1356 * src/LyXAction.C: remove use of inset-latex-insert
1358 * src/mathed/math_panel.C (button_cb): use static_cast
1360 * src/insets/Makefile.am (insets_o_SOURCES): removed
1363 * src/support/lyxstring.C (helper): use the unsigned long
1364 specifier, UL, instead of a static_cast.
1366 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
1368 * src/support/block.h: new file. to be used as a c-style array in
1369 classes, so that the class can be assignable.
1371 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1373 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
1374 NULL, make sure to return an empty string (it is not possible to
1375 set a string to NULL).
1377 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1379 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
1381 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
1383 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
1384 link line, so that Irix users (for example) can set it explicitely to
1387 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
1388 it can be overidden at make time (static or dynamic link, for
1391 * src/vc-backend.C, src/LaTeXFeatures.h,
1392 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
1393 statements to bring templates to global namespace.
1395 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1397 * src/support/lyxstring.C (operator[] const): make it standard
1400 * src/minibuffer.C (Init): changed to reflect that more
1401 information is given from the lyxvc and need not be provided here.
1403 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
1405 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
1407 * src/LyXView.C (UpdateTimerCB): use static_cast
1408 (KeyPressMask_raw_callback): ditto
1410 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
1411 buffer_, a lot of changes because of this. currentBuffer() ->
1412 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
1413 also changes to other files because of this.
1415 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1417 * src/vc-backend.[Ch]: new files. The backends for vc handling,
1418 have no support for RCS and partial support for CVS, will be
1421 * src/insets/ several files: changes because of function name
1422 changes in Bufferview and LyXView.
1424 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
1426 * src/support/LSubstring.[Ch]: new files. These implement a
1427 Substring that can be very convenient to use. i.e. is this
1429 string a = "Mary had a little sheep";
1430 Substring(a, "sheep") = "lamb";
1431 a is now "Mary has a little lamb".
1433 * src/support/LRegex.[Ch]: a regex class that can be used to pick
1434 out patterns and subpatterns of strings. It is used by LSubstring
1435 and also by vc-backend.C
1437 * src/support/lyxstring.C: went over all the assertions used and
1438 tried to correct the wrong ones and flag which of them is required
1439 by the standard. some bugs found because of this. Also removed a
1440 couple of assertions.
1442 * src/support/Makefile.am (libsupport_a_SOURCES): added
1443 LSubstring.[Ch] and LRegex.[Ch]
1445 * src/support/FileInfo.h: have struct stat buf as an object and
1446 not a pointer to one, some changes because of this.
1448 * src/LaTeXFeatures.C (getTClassPreamble): also use the
1449 information in layout when adding the layouts preamble to the
1452 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
1455 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
1456 because of bug in OS/2.
1458 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1460 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
1461 \verbatim@font instead of \ttfamily, so that it can be redefined.
1463 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
1464 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
1465 src/layout.h, src/text2.C: add 'using' directive to bring the
1466 STL templates we need from the std:: namespace to the global one.
1467 Needed by DEC cxx in strict ansi mode.
1469 * src/support/LIstream.h,src/support/LOstream.h,
1470 src/support/lyxstring.h,src/table.h,
1471 src/lyxlookup.h: do not include <config.h> in header
1472 files. This should be done in the .C files only.
1474 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
1478 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1480 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
1481 from Kayvan to fix the tth invokation.
1483 * development/lyx.spec.in: updates from Kayvan to reflect the
1484 changes of file names.
1486 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1488 * src/text2.C (InsertStringB): use std::copy
1489 (InsertStringA): use std::copy
1491 * src/bufferlist.C: use a vector to store the buffers in. This is
1492 an internal change and should not affect any other thing.
1494 * src/BufferView.C (waitForX): use XSync instead of the lengthy
1497 * src/text.C (Fill): fix potential bug, one off bug.
1499 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1501 * src/Makefile.am (lyx_main.o): add more files it depends on.
1503 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
1505 * src/support/lyxstring.C: use size_t for the reference count,
1506 size, reserved memory and xtra.
1507 (internal_compare): new private member function. Now the compare
1508 functions should work for std::strings that have embedded '\0'
1510 (compare): all compare functions rewritten to use
1513 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1515 * src/support/lyxstring.C (compare): pass c_str()
1516 (compare): pass c_str
1517 (compare): pass c_str
1519 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1521 * src/support/DebugStream.C: <config.h> was not included correctly.
1523 * lib/configure: forgot to re-generate it :( I'll make this file
1524 auto generated soon.
1526 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1528 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
1531 * src/support/lyxstring.C: some changes from length() to rep->sz.
1532 avoids a function call.
1534 * src/support/filetools.C (SpaceLess): yet another version of the
1535 algorithm...now per Jean-Marc's suggestions.
1537 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1539 * src/layout.C (less_textclass_desc): functor for use in sorting
1541 (LyXTextClass::Read): sort the textclasses after reading.
1543 * src/support/filetools.C (SpaceLess): new version of the
1544 SpaceLess functions. What problems does this one give? Please
1547 * images/banner_bw.xbm: made the arrays unsigned char *
1549 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1551 * src/support/lyxstring.C (find): remove bogus assertion in the
1552 two versions of find where this has not been done yet.
1554 * src/support/lyxlib.h: add missing int return type to
1557 * src/menus.C (ShowFileMenu): disable exporting to html if no
1558 html export command is present.
1560 * config/lib_configure.m4: add a test for an HTML converter. The
1561 programs checked for are, in this order: tth, latex2html and
1564 * lib/configure: generated from config/lib_configure.m4.
1566 * src/lyxfunc.C (Dispatch): update and improve the execution of an
1567 html converter. The parameters are now passed through $$FName and
1568 $$OutName, instead of standard input/output.
1570 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
1572 * lib/lyxrc.example: update description of \html_command.
1573 add "quotes" around \screen_font_xxx font setting examples to help
1574 people who use fonts with spaces in their names.
1576 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1578 * Distribution files: updates for v1.1.2
1580 * src/support/lyxstring.C (find): remove bogus assert and return
1581 npos for the same condition.
1583 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1585 * added patch for OS/2 from SMiyata.
1587 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1589 * src/text2.C (CutSelection): make space_wrapped a bool
1590 (CutSelection): dont declare int i until we have to.
1591 (alphaCounter): return a char const *.
1593 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1595 * src/support/syscall.C (Systemcalls::kill):
1596 src/support/filetools.C (PutEnv, PutEnvPath):
1597 src/lyx_cb.C (addNewlineAndDepth):
1598 src/FontInfo.C (FontInfo::resize): condition some #warning
1599 directives with WITH_WARNINGS.
1602 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1604 * src/layout.[Ch] + several files: access to class variables
1605 limited and made accessor functions instead a lot of code changed
1606 becuase of this. Also instead of returning pointers often a const
1607 reference is returned instead.
1609 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
1611 * src/Makefile.am (dist-hook): added used to remove the CVS from
1612 cheaders upon creating a dist
1613 (EXTRA_DIST): added cheaders
1615 * src/support/lstrings.C (tostr(char)): fix it to handle param as
1616 a character not as a small integer.
1618 * src/support/lyxstring.C (find): removed Assert and added i >=
1619 rep->sz to the first if.
1621 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1623 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
1624 src/LyXView.C src/buffer.C src/bufferparams.C
1625 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
1626 src/text2.C src/insets/insetinclude.C:
1627 lyxlayout renamed to textclasslist.
1629 * src/layout.C: some lyxerr changes.
1631 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
1632 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
1633 (LyXLayoutList): removed all traces of this class.
1634 (LyXTextClass::Read): rewrote LT_STYLE
1635 (LyXTextClass::hasLayout): new function
1636 (LyXTextClass::GetLayout): rewritten to return an iterator + has
1637 both const and nonconst version.
1638 (LyXTextClass::delete_layout): new function.
1639 (LyXTextClassList::Style): bug fix. do the right thing if layout
1641 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
1642 (LyXTextClassList::NameOfLayout): ditto
1643 (LyXTextClassList::Load): ditto
1645 * src/buffer.C (makeLaTeXFile): new access to layoutlist
1647 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
1649 * src/LyXAction.C (LookupFunc): added a workaround for sun
1650 compiler, on the other hand...we don't know if the current code
1651 compiles on sun at all...
1653 * src/support/filetools.C (CleanupPath): subst fix
1655 * src/insets/insetbib.C (delDatabase): subst fix, this looks
1658 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
1659 complained about this one?
1661 * src/insets/insetinclude.C (Latex): subst fix
1663 * src/insets/insetbib.C (getKeys): subst fix
1665 * src/LyXSendto.C (SendtoApplyCB): subst fix
1667 * src/lyx_main.C (init): subst fix
1669 * src/layout.C (Read): subst fix
1671 * src/lyx_sendfax_main.C (button_send): subst fix
1673 * src/buffer.C (RoffAsciiTable): subst fix
1675 * src/lyx_cb.C (MenuFax): subst fix
1676 (PrintApplyCB): subst fix
1678 1999-10-26 Juergen Vigna <jug@sad.it>
1680 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
1682 (Read): Cleaned up this code so now we read only format vestion >= 5
1684 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1686 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
1687 come nobody has complained about this one?
1689 * src/insets/insetinclude.C (Latex): subst fix
1691 * src/insets/insetbib.C (getKeys): subst fix
1693 * src/lyx_main.C (init): subst fix
1695 * src/layout.C (Read): subst fix
1697 * src/buffer.C (RoffAsciiTable): subst fix
1699 * src/lyx_cb.C (MenuFax): subst fix.
1701 * src/layout.[hC] + some other files: rewrote to use
1702 std::container to store textclasses and layouts in.
1703 Simplified, removed a lot of code. Make all classes
1704 assignable. Further simplifications and review of type
1705 use still to be one.
1707 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
1708 lastfiles to create the lastfiles partr of the menu.
1710 * src/lastfiles.[Ch]: rewritten to use deque to store the
1711 lastfiles in. Uses fstream for reading and writing. Simplifies
1714 * src/support/syscall.C: remove explicit cast.
1716 * src/BufferView.C (CursorToggleCB): removed code snippets that
1718 use explicat C++ style casts instead of C style casts. also use
1719 u_vdata instea of passing pointers in longs.
1721 * src/PaperLayout.C: removed code snippets that were commented out.
1723 * src/lyx_gui_misc.C: removed code snippets that were commented out.
1725 * src/lyx_main.C: removed code snippets that wer commented out.
1727 * src/paragraph.C: removed code snippets that were commented out.
1729 * src/lyxvc.C (logClose): use static_cast
1731 (viewLog): remove explicit cast to void*
1732 (showLog): removed old commented code
1734 * src/menus.C: use static_cast instead of C style casts. use
1735 u_vdata instead of u_ldata. remove explicit cast to (long) for
1736 pointers. Removed old code that was commented out.
1738 * src/insets/inset.C: removed old commented func
1740 * src/insets/insetref.C (InsetRef): removed old code that had been
1741 commented out for a long time.
1743 (escape): removed C style cast
1745 * src/insets/insetlatexaccent.C (Draw): removed old commented code
1747 * src/insets/insetlatex.C (Draw): removed old commented code
1748 (Read): rewritten to use string
1750 * src/insets/insetlabel.C (escape): removed C style cast
1752 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
1754 * src/insets/insetindex.C: use static_cast and u_vdata, removed
1757 * src/insets/insetinclude.h: removed a couple of stupid bools
1759 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
1760 (Clone): remove C style cast
1761 (getKeys): changed list to lst because of std::list
1763 * src/insets/inseterror.C (Draw): removed som old commented code.
1765 * src/insets/insetcommand.C (Draw): removed some old commented code.
1767 * src/insets/insetbib.C (bibitem_cb): removed code that has been
1768 commented out forever.
1769 (bibitem_cb): use static_cast instead of C style cast
1770 use of vdata changed to u_vdata.
1772 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
1774 (CloseUrlCB): use static_cast instead of C style cast.
1775 (CloseUrlCB): added a fl_free form...it seemed to be missing.
1777 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
1778 (C_InsetInfo_CloseInfoCB): forward the ob parameter
1779 (CloseInfoCB): static_cast from ob->u_vdata instead.
1780 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
1783 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
1784 (C_InsetError_CloseErrorCB): forward the ob parameter
1785 (CloseErrorCB): static_cast from ob->u_vdata instead.
1787 * src/vspace.h: include LString.h since we use string in this class.
1789 * src/vspace.C (lyx_advance): changed name from advance because of
1790 nameclash with stl. And since we cannot use namespaces yet...I
1791 used a lyx_ prefix instead. Expect this to change when we begin
1794 * src/BufferView.[Ch] (BufferView::~BufferView): removed
1796 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
1797 and removed now defunct constructor and deconstructor.
1799 * src/BufferView.h: have backstack as a object not as a pointer.
1800 removed initialization from constructor. added include for BackStack
1802 * development/lyx.spec.in (%build): add CFLAGS also.
1804 * src/screen.C (drawFrame): removed another warning.
1806 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1808 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
1809 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
1810 README and ANNOUNCE a bit for the next release. More work is
1813 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
1814 unbreakable if we are in freespacing mode (LyX-Code), but not in
1817 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1819 * src/BackStack.h: fixed initialization order in constructor
1821 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
1823 * acinclude.m4 (VERSION): new rules for when a version is
1824 development, added also a variable for prerelease.
1825 (warnings): we set with_warnings=yes for prereleases
1826 (lyx_opt): prereleases compile with same optimization as development
1827 (CXXFLAGS): only use pedantic if we are a development version
1829 * src/BufferView.C (restorePosition): don't do anything if the
1832 * src/BackStack.h: added member empty, use this to test if there
1833 is anything to pop...
1835 1999-10-25 Juergen Vigna <jug@sad.it>
1838 * forms/layout_forms.fd +
1839 * forms/latexoptions.fd +
1840 * lyx.fd: changed for various form resize issues
1842 * src/mathed/math_panel.C +
1843 * src/insets/inseterror.C +
1844 * src/insets/insetinfo.C +
1845 * src/insets/inseturl.C +
1846 * src/insets/inseturl.h +
1849 * src/PaperLayout.C +
1850 * src/ParagraphExtra.C +
1851 * src/TableLayout.C +
1853 * src/layout_forms.C +
1860 * src/menus.C: fixed various resize issues. So now forms can be
1861 resized savely or not be resized at all.
1863 * forms/form_url.fd +
1864 * src/insets/form_url.[Ch]: added because it's cleaner and easier
1867 * src/insets/Makefile.am: added files form_url.[Ch]
1869 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1871 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
1872 (and presumably 6.2).
1874 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
1875 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
1876 remaining static member callbacks.
1878 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
1881 * src/support/lyxstring.h: declare struct Srep as friend of
1882 lyxstring, since DEC cxx complains otherwise.
1884 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1886 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1888 * src/LaTeX.C (run): made run_bibtex also depend on files with
1890 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
1891 are put into the dependency file.
1893 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
1894 the code has shown itself to work
1895 (create_ispell_pipe): removed another warning, added a comment
1898 * src/minibuffer.C (ExecutingCB): removed code that has been
1899 commented out a long time
1901 * src/lyxfunc.C (processKeyEvent): removed some very old commented
1902 out code + a warning.
1904 * src/support/lyxstring.h: comment out the three private
1905 operators, when compiling with string ansi conforming compilers
1908 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
1910 (pixmapFromBitmapData): change type of bdata to be unsigned char *
1911 (pixmapFromBitmapData): add a reinterpret_cast in the call to
1914 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
1917 * src/mathed/math_panel.C (create_math_panel): remove explicit
1920 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
1923 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
1924 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
1925 to XCreatePixmapFromBitmapData
1926 (fl_set_bmtable_data): change the last argument to be unsigned
1928 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
1929 and bh to be unsigned int, remove explicit casts in call to
1930 XReadBitmapFileData.
1932 * images/arrows.xbm: made the arrays unsigned char *
1933 * images/varsz.xbm: ditto
1934 * images/misc.xbm: ditto
1935 * images/greek.xbm: ditto
1936 * images/dots.xbm: ditto
1937 * images/brel.xbm: ditto
1938 * images/bop.xbm: ditto
1940 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
1942 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
1943 (LYX_PROG_CXX): added -pedantic to g++ compile options when
1944 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
1946 (LYX_CXX_CHEADERS): added <clocale> to the test.
1948 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
1950 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
1952 * src/support/lyxstring.C (append): fixed something that must be a
1953 bug, rep->assign was used instead of rep->append.
1955 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
1958 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
1959 lyx insert double chars. Fix spotted by Kayvan.
1961 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1963 * Fixed the tth support. I messed up with the Emacs patch apply feature
1964 and omitted the changes in lyxrc.C.
1966 1999-10-22 Juergen Vigna <jug@sad.it>
1968 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
1970 * src/lyx_cb.C (MenuInsertRef) +
1971 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
1972 the form cannot be resized under it limits (fixes a segfault)
1974 * src/lyx.C (create_form_form_ref) +
1975 * forms/lyx.fd: Changed Gravity on name input field so that it is
1978 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1980 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1981 <ostream> and <istream>.
1983 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1984 whether <fstream> provides the latest standard features, or if we
1985 have an oldstyle library (like in egcs).
1986 (LYX_CXX_STL_STRING): fix the test.
1988 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1989 code on MODERN_STL_STREAM.
1991 * src/support/lyxstring.h: use L{I,O}stream.h.
1993 * src/support/L{I,O}stream.h: new files, designed to setup
1994 correctly streams for our use
1995 - includes the right header depending on STL capabilities
1996 - puts std::ostream and std::endl (for LOStream.h) or
1997 std::istream (LIStream.h) in toplevel namespace.
1999 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2001 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2002 was a bib file that had been changed we ensure that bibtex is run.
2003 (runBibTeX): enhanced to extract the names of the bib files and
2004 getting their absolute path and enter them into the dep file.
2005 (findtexfile): static func that is used to look for tex-files,
2006 checks for absolute patchs and tries also with kpsewhich.
2007 Alternative ways of finding the correct files are wanted. Will
2009 (do_popen): function that runs a command using popen and returns
2010 the whole output of that command in a string. Should be moved to
2013 * src/DepTable.[Ch] (extchanged): new function that returns true if a
2014 file with extension ext has changed.
2016 * src/insets/figinset.C: added ifdef guards around the fl_free
2017 code that jug commented out. Now it is commented out when
2018 compiling with XForms == 0.89.
2020 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2021 to lyxstring.C, and only keep a forward declaration in
2022 lyxstring.h. Simplifies the header file a bit and should help a
2023 bit on compile time too. Also changes to Srep will not mandate a
2024 recompile of code just using string.
2025 (~lyxstring): definition moved here since it uses srep.
2026 (size): definition moved here since it uses srep.
2028 * src/support/lyxstring.h: removed a couple of "inline" that should
2031 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2033 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2036 1999-10-21 Juergen Vigna <jug@sad.it>
2038 * src/table.C (SetPWidth): Just a small fix so the alignment is not
2039 set to left if I just remove the width entry (or it is empty).
2041 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2042 paragraph when having dummy paragraphs.
2044 1999-10-20 Juergen Vigna <jug@sad.it>
2046 * src/insets/figinset.C: just commented some fl_free_form calls
2047 and added warnings so that this calls should be activated later
2048 again. This avoids for now a segfault, but we have a memory leak!
2050 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2051 'const char * argument' to 'string argument', this should
2052 fix some Asserts() in lyxstring.C.
2054 * src/lyxfunc.h: Removed the function argAsString(const char *)
2055 as it is not used anymore.
2057 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
2059 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2062 * src/Literate.h: some funcs moved from public to private to make
2063 interface clearer. Unneeded args removed.
2065 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2067 (scanBuildLogFile): ditto
2069 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2070 normal TeX Error. Still room for improvement.
2072 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2074 * src/buffer.C (insertErrors): changes to make the error
2075 desctription show properly.
2077 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2080 * src/support/lyxstring.C (helper): changed to use
2081 sizeof(object->rep->ref).
2082 (operator>>): changed to use a pointer instead.
2084 * src/support/lyxstring.h: changed const reference & to value_type
2085 const & lets see if that helps.
2087 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2089 * Makefile.am (rpmdist): fixed to have non static package and
2092 * src/support/lyxstring.C: removed the compilation guards
2094 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2097 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2098 conditional compile of lyxstring.Ch
2100 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2101 stupid check, but it is a lot better than the bastring hack.
2102 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2104 * several files: changed string::erase into string::clear. Not
2107 * src/chset.C (encodeString): use a char temporary instead
2109 * src/table.C (TexEndOfCell): added tostr around
2110 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2111 (TexEndOfCell): ditto
2112 (TexEndOfCell): ditto
2113 (TexEndOfCell): ditto
2114 (DocBookEndOfCell): ditto
2115 (DocBookEndOfCell): ditto
2116 (DocBookEndOfCell): ditto
2117 (DocBookEndOfCell): ditto
2119 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2121 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2123 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2124 (MenuBuildProg): added tostr around ret
2125 (MenuRunChktex): added tostr around ret
2126 (DocumentApplyCB): added tostr around ret
2128 * src/chset.C (encodeString): added tostr around t->ic
2130 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2131 (makeLaTeXFile): added tostr around tocdepth
2132 (makeLaTeXFile): added tostr around ftcound - 1
2134 * src/insets/insetbib.C (setCounter): added tostr around counter.
2136 * src/support/lyxstring.h: added an operator+=(int) to catch more
2139 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2140 (lyxstring): We DON'T allow NULL pointers.
2142 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2144 * src/mathed/math_macro.C (MathMacroArgument::Write,
2145 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2146 when writing them out.
2148 * src/LString.C: remove, since it is not used anymore.
2150 * src/support/lyxstring.C: condition the content to
2151 USE_INCLUDED_STRING macro.
2153 * src/mathed/math_symbols.C, src/support/lstrings.C,
2154 src/support/lyxstring.C: add `using' directive to specify what
2155 we need in <algorithm>. I do not think that we need to
2156 conditionalize this, but any thought is appreciated.
2158 * many files: change all callback functions to "C" linkage
2159 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2160 strict_ansi. Those who were static are now global.
2161 The case of callbacks which are static class members is
2162 trickier, since we have to make C wrappers around them (see
2163 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2164 did not finish this yet, since it defeats the purpose of
2165 encapsulation, and I am not sure what the best route is.
2167 1999-10-19 Juergen Vigna <jug@sad.it>
2169 * src/support/lyxstring.C (lyxstring): we permit to have a null
2170 pointer as assignment value and just don't assign it.
2172 * src/vspace.C (nextToken): corrected this function substituting
2173 find_first(_not)_of with find_last_of.
2175 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2176 (TableOptCloseCB) (TableSpeCloseCB):
2177 inserted fl_set_focus call for problem with fl_hide_form() in
2180 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2182 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2185 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2187 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2188 LyXLex::next() and not eatline() to get its argument.
2190 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2192 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2193 instead, use fstreams for io of the depfile, removed unneeded
2194 functions and variables.
2196 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2197 vector instead, removed all functions and variables that is not in
2200 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2202 * src/buffer.C (insertErrors): use new interface to TeXError
2204 * Makefile.am (rpmdist): added a rpmdist target
2206 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2207 per Kayvan's instructions.
2209 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2211 * src/Makefile.am: add a definition for localedir, so that locales
2212 are found after installation (Kayvan)
2214 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2216 * development/.cvsignore: new file.
2218 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2220 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2221 C++ compiler provides wrappers for C headers and use our alternate
2224 * configure.in: use LYX_CXX_CHEADERS.
2226 * src/cheader/: new directory, populated with cname headers from
2227 libstdc++-2.8.1. They are a bit old, but probably good enough for
2228 what we want (support compilers who lack them).
2230 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2231 from includes. It turns out is was stupid.
2233 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2235 * lib/Makefile.am (install-data-local): forgot a ';'
2236 (install-data-local): forgot a '\'
2237 (libinstalldirs): needed after all. reintroduced.
2239 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2241 * configure.in (AC_OUTPUT): added lyx.spec
2243 * development/lyx.spec: removed file
2245 * development/lyx.spec.in: new file
2247 * po/*.po: merged with lyx.pot becuase of make distcheck
2249 * lib/Makefile.am (dist-hook): added dist-hook so that
2250 documentation files will be included when doing a make
2251 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2252 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2254 more: tried to make install do the right thing, exclude CVS dirs
2257 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2258 Path would fit in more nicely.
2260 * all files that used to use pathstack: uses now Path instead.
2261 This change was a lot easier than expected.
2263 * src/support/path.h: new file
2265 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2267 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2269 * src/support/lyxstring.C (getline): Default arg was given for
2272 * Configure.cmd: removed file
2274 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2276 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2277 streams classes and types, add the proper 'using' statements when
2278 MODERN_STL is defined.
2280 * src/debug.h: move the << operator definition after the inclusion
2283 * src/support/filetools.C: include "LAssert.h", which is needed
2286 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2289 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2290 include "debug.h" to define a proper ostream.
2292 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2294 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2295 method to the SystemCall class which can kill a process, but it's
2296 not fully implemented yet.
2298 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2300 * src/support/FileInfo.h: Better documentation
2302 * src/lyxfunc.C: Added support for buffer-export html
2304 * src/menus.C: Added Export->As HTML...
2306 * lib/bind/*.bind: Added short-cut for buffer-export html
2308 * src/lyxrc.*: Added support for new \tth_command
2310 * lib/lyxrc.example: Added stuff for new \tth_command
2312 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2314 * lib/Makefile.am (IMAGES): removed images/README
2315 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2316 installes in correct place. Check permisions is installed
2319 * src/LaTeX.C: some no-op changes moved declaration of some
2322 * src/LaTeX.h (LATEX_H): changed include guard name
2324 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2326 * lib/reLyX/Makefile.am: install noweb2lyx.
2328 * lib/Makefile.am: install configure.
2330 * lib/reLyX/configure.in: declare a config aux dir; set package
2331 name to lyx (not sure what the best solution is); generate noweb2lyx.
2333 * lib/layouts/egs.layout: fix the bibliography layout.
2335 1999-10-08 Jürgen Vigna <jug@sad.it>
2337 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
2338 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
2339 it returned without continuing to search the path.
2341 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2343 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
2344 also fixes a bug. It is not allowed to do tricks with std::strings
2345 like: string a("hei"); &a[e]; this will not give what you
2346 think... Any reason for the complexity in this func?
2348 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
2350 * Updated README and INSTALL a bit, mostly to check that my
2351 CVS rights are correctly set up.
2353 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2355 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
2356 does not allow '\0' chars but lyxstring and std::string does.
2358 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2360 * autogen.sh (AUTOCONF): let the autogen script create the
2361 POTFILES.in file too. POTFILES.in should perhaps now not be
2362 included in the cvs module.
2364 * some more files changed to use C++ includes instead of C ones.
2366 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
2368 (Reread): added tostr to nlink. buggy output otherwise.
2369 (Reread): added a string() around szMode when assigning to Buffer,
2370 without this I got a log of garbled info strings.
2372 * acconfig.h: commented out the PTR_AS_INT macros. They should not
2375 * I have added several ostream & operator<<(ostream &, some_type)
2376 functions. This has been done to avoid casting and warnings when
2377 outputting enums to lyxerr. This as thus eliminated a lot of
2378 explicit casts and has made the code clearer. Among the enums
2379 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
2380 mathed enums, some font enum the Debug::type enum.
2382 * src/support/lyxstring.h (clear): missing method. equivalent of
2385 * all files that contained "stderr": rewrote constructs that used
2386 stderr to use lyxerr instead. (except bmtable)
2388 * src/support/DebugStream.h (level): and the passed t with
2389 Debug::ANY to avoid spurious bits set.
2391 * src/debug.h (Debug::type value): made it accept strings of the
2394 * configure.in (Check for programs): Added a check for kpsewhich,
2395 the latex generation will use this later to better the dicovery of
2398 * src/BufferView.C (create_view): we don't need to cast this to
2399 (void*) that is done automatically.
2400 (WorkAreaButtonPress): removed some dead code.
2402 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2404 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
2405 is not overwritten when translated (David Sua'rez de Lis).
2407 * lib/CREDITS: Added David Sua'rez de Lis
2409 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
2411 * src/bufferparams.C (BufferParams): default input encoding is now
2414 * acinclude.m4 (cross_compiling): comment out macro
2415 LYX_GXX_STRENGTH_REDUCE.
2417 * acconfig.h: make sure that const is not defined (to empty) when
2418 we are compiling C++. Remove commented out code using SIZEOF_xx
2421 * configure.in : move the test for const and inline as late as
2422 possible so that these C tests do not interefere with C++ ones.
2423 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
2424 has not been proven.
2426 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2428 * src/table.C (getDocBookAlign): remove bad default value for
2431 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
2433 (ShowFileMenu2): ditto.
2435 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
2438 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2440 * Most files: finished the change from the old error code to use
2441 DebugStream for all lyxerr debugging. Only minor changes remain
2442 (e.g. the setting of debug levels using strings instead of number)
2444 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2446 * src/layout.C (Add): Changed to use compare_no_case instead of
2449 * src/FontInfo.C: changed loop variable type too string::size_type.
2451 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2453 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
2454 set ETAGS_ARGS to --c++
2456 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
2458 * src/table.C (DocBookEndOfCell): commented out two unused variables
2460 * src/paragraph.C: commented out four unused variables.
2462 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
2463 insed a if clause with type string::size_type.
2465 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
2468 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
2470 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
2471 variable, also changed loop to go from 0 to lenght + 1, instead of
2472 -1 to length. This should be correct.
2474 * src/LaTeX.C (scanError): use string::size_type as loop variable
2477 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
2478 (l.896) since y_tmp and row was not used anyway.
2480 * src/insets/insetref.C (escape): use string::size_type as loop
2483 * src/insets/insetquotes.C (Width): use string::size_type as loop
2485 (Draw): use string::size_type as loop variable type.
2487 * src/insets/insetlatexaccent.C (checkContents): use
2488 string::size_type as loop variable type.
2490 * src/insets/insetlabel.C (escape): use string::size_type as loop
2493 * src/insets/insetinfo.C: added an extern for current_view.
2495 * src/insets/insetcommand.C (scanCommand): use string::size_type
2496 as loop variable type.
2498 * most files: removed the RCS tags. With them we had to recompile
2499 a lot of files after a simple cvs commit. Also we have never used
2500 them for anything meaningful.
2502 * most files: tags-query-replace NULL 0. As adviced several plases
2503 we now use "0" instead of "NULL" in our code.
2505 * src/support/filetools.C (SpaceLess): use string::size_type as
2508 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2510 * src/paragraph.C: fixed up some more string stuff.
2512 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2514 * src/support/filetools.h: make modestr a std::string.
2516 * src/filetools.C (GetEnv): made ch really const.
2518 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
2519 made code that used these use max/min from <algorithm> instead.
2521 * changed several c library include files to their equivalent c++
2522 library include files. All is not changed yet.
2524 * created a support subdir in src, put lyxstring and lstrings
2525 there + the extra files atexit, fileblock, strerror. Created
2526 Makefile.am. edited configure.in and src/Makefile.am to use this
2527 new subdir. More files moved to support.
2529 * imported som of the functions from repository lyx, filetools
2531 * ran tags-query-replace on LString -> string, corrected the bogus
2532 cases. Tried to make use of lstrings.[hC], debugged a lot. There
2533 is still some errors in there. This is errors where too much or
2534 too litle get deleted from strings (string::erase, string::substr,
2535 string::replace), there can also be some off by one errors, or
2536 just plain wrong use of functions from lstrings. Viewing of quotes
2539 * LyX is now running fairly well with string, but there are
2540 certainly some bugs yet (see above) also string is quite different
2541 from LString among others in that it does not allow null pointers
2542 passed in and will abort if it gets any.
2544 * Added the revtex4 files I forgot when setting up the repository.
2546 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2548 * All over: Tried to clean everything up so that only the files
2549 that we really need are included in the cvs repository.
2550 * Switched to use automake.
2551 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
2552 * Install has not been checked.
2554 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2556 * po/pt.po: Three errors:
2557 l.533 and l.538 format specification error
2558 l. 402 duplicate entry, I just deleted it.