1 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
9 * src/paragraph.C (GetWord): assert on pos>=0
12 * src/support/lyxstring.C: condition the use of an invariant on
14 * src/support/lyxstring.h: ditto
16 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by
17 ENABLE_ASSERTIONS. Use LAssert.h instead of plain assert().
19 * src/support/lstrings.h: add LAssert.h, in case it is needed.
21 * src/lyxfunc.C: do not include LAssert.h, it is not used.
22 * src/support/filetools.C: ditto
24 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
27 * INSTALL: document the new configure flags
29 * configure.in: suppress --with-debug; add --enable-assertions
31 * acinclude.m4: various changes in alignment of help strings.
33 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
35 * src/kbmap.C: commented out the use of the hash map in kb_map,
36 beginning of movement to a stl::container.
38 * several files: removed code that was not in effect when
39 MOVE_TEXT was defined.
41 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
42 for escaping should not be used. We can discuss if the string
43 should be enclosed in f.ex. [] instead of "".
45 * src/trans_mgr.C (insert): use the new returned value from
46 encodeString to get deadkeys and keymaps done correctly.
48 * src/chset.C (encodeString): changed to return a pair, to tell
49 what to use if we know the string.
51 * src/lyxscreen.h (fillArc): new function.
53 * src/FontInfo.C (resize): rewritten to use more std::string like
54 structore, especially string::replace.
56 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
59 * configure.in (chmod +x some scripts): remove config/gcc-hack
61 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
63 * src/buffer.C (writeFile): change once again the top comment in a
64 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
65 instead of an hardcoded version number.
66 (makeDocBookFile): ditto
68 * src/version.h: add new define LYX_DOCVERSION
70 * po/de.po: update from Pit Sütterlin
71 * lib/bind/de_menus.bind: ditto.
73 * src/lyxfunc.C (Dispatch): call MenuExport()
74 * src/buffer.C (Dispatch): ditto
76 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
78 (MenuExport): new function, moved from
81 * src/trans_mgr.C (insert): small cleanup
82 * src/chset.C (loadFile): ditto
84 * lib/kbd/iso8859-1.cdef: add missing backslashes
86 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
88 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
89 help with placing the manually drawn accents better.
91 (Draw): x2 and hg changed to float to minimize rounding errors and
92 help place the accents better.
94 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
95 unsigned short to char is just wrong...cast the char to unsigned
96 char instead so that the two values can compare sanely. This
97 should also make the display of insetlatexaccents better and
98 perhaps also some other insets.
100 (lbearing): new function
103 1999-12-15 Allan Rae <rae@lyx.org>
105 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
106 header that provides a wrapper around the very annoying SGI STL header
109 * src/support/lyxstring.C, src/LString.h:
110 removed old SGI-STL-compatability attempts.
112 * configure.in: Use LYX_STL_STRING_FWD.
114 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
115 stl_string_fwd.h is around and try to determine it's location.
116 Major improvement over previous SGI STL 3.2 compatability.
117 Three small problems remain with this function due to my zero
118 knowledge of autoconf. JMarc and lgb see the comments in the code.
120 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
122 * src/broken_const.h, config/hack-gcc, config/README: removed
124 * configure.in: remove --with-gcc-hack option; do not call
127 * INSTALL: remove documentation of --with-broken-const and
130 * acconfig.h: remove all trace of BROKEN_CONST define
132 * src/buffer.C (makeDocBookFile): update version number in output
134 (SimpleDocBookOnePar): fix an assert when trying to a character
135 access beyond string length
138 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
140 * po/de.po: fix the Export menu
142 * lyx.man: update the description of -dbg
144 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
145 (commandLineHelp): updated
146 (easyParse): show list of available debug levels if -dbg is passed
149 * src/Makefile.am: add debug.C
151 * src/debug.h: moved some code to debug.C
153 * src/debug.C: new file. Contains code to set and show debug
156 * src/layout.C: remove 'break' after 'continue' in switch
157 statements, since these cannot be reached.
159 1999-12-13 Allan Rae <rae@lyx.org>
161 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
162 (in_word_set): hash() -> math_hash()
164 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
166 * acconfig.h: Added a test for whether we are using exceptions in the
167 current compilation run. If so USING_EXCEPTIONS is defined.
169 * config.in: Check for existance of stl_string_fwd.h
170 * src/LString.h: If compiling --with-included-string and SGI's
171 STL version 3.2 is present (see above test) we need to block their
172 forward declaration of string and supply a __get_c_string().
173 However, it turns out this is only necessary if compiling with
174 exceptions enabled so I've a bit more to add yet.
176 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
177 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
178 src/support/LRegex.h, src/undo.h:
179 Shuffle the order of the included files a little to ensure that
180 LString.h gets included before anything that includes stl_string_fwd.h
182 * src/support/lyxstring.C: We need to #include LString.h instead of
183 lyxstring.h to get the necessary definition of __get_c_string.
184 (__get_c_string): New function. This is defined static just like SGI's
185 although why they need to do this I'm not sure. Perhaps it should be
186 in lstrings.C instead.
188 * lib/templates/IEEEtran.lyx: New template file.
190 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
192 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
193 * intl/Makefile.in (MKINSTALLDIRS): ditto
195 * src/LyXAction.C (init): changed to hold the LFUN data in a
196 automatic array in stead of in callso to newFunc, this speeds up
197 compilation a lot. Also all the memory used by the array is
198 returned when the init is completed.
200 * a lot of files: compiled with -Wold-style-cast, changed most of
201 the reported offenders to C++ style casts. Did not change the
202 offenders in C files.
204 * src/trans.h (Match): change argument type to unsigned int.
206 * src/support/DebugStream.C: fix some types on the streambufs so
207 that it works on a conforming implementation.
209 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
211 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
213 * src/support/lyxstring.C: remove the inline added earlier since
214 they cause a bunch of unsatisfied symbols when linking with dec
215 cxx. Cxx likes to have the body of inlines at the place where they
218 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
219 accessing negative bounds in array. This fixes the crash when
220 inserting accented characters.
221 * src/trans.h (Match): ditto
223 * src/buffer.C (Dispatch): since this is a void, it should not try
224 to return anything...
226 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
228 * src/buffer.h: removed the two friends from Buffer. Some changes
229 because of this. Buffer::getFileName and Buffer::setFileName
230 renamed to Buffer::fileName() and Buffer::fileName(...).
232 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
234 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
235 and Buffer::update(short) to BufferView. This move is currently
236 controlled by a define MOVE_TEXT, this will be removed when all
237 shows to be ok. This move paves the way for better separation
238 between buffer contents and buffer view. One side effect is that
239 the BufferView needs a rebreak when swiching buffers, if we want
240 to avoid this we can add a cache that holds pointers to LyXText's
241 that is not currently in use.
243 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
246 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
248 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
250 * lyx_main.C: new command line option -x (or --execute) and
251 -e (or --export). Now direct conversion from .lyx to .tex
252 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
253 Unfortunately, X is still needed and the GUI pops up during the
256 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
258 * src/Spacing.C: add a using directive to bring stream stuff into
260 * src/paragraph.C: ditto
261 * src/buffer.C: ditto
263 * NEWS: updated a bit the new features of 1.1.3 (took a few things
264 from Lars' announcement).
266 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
267 example files from Tino Meinen.
269 1999-12-06 Allan Rae <rae@lyx.org>
271 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
273 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
275 * src/support/lyxstring.C: added a lot of inline for no good
278 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
279 latexWriteEndChanges, they were not used.
281 * src/layout.h (operator<<): output operator for PageSides
283 * src/mathed/math_iter.C (my_memcpy): slightly changed.
285 * some example files: loaded in LyX 1.0.4 and saved again to update
286 certain constructs (table format)
288 * a lot of files: did the change to use fstream/iostream for all
289 writing of files. Done with a close look at Andre Poenitz's patch.
291 * some files: whitespace changes.
293 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
295 * src/mathed/math_iter.C (my_memcpy): new function. Since the
296 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
297 architecture, we provide our own. It is used unconditionnally, but
298 I do not think this is a performance problem. Thanks to Angus
299 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
300 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
302 (GetInset): use my_memcpy.
306 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
307 it is easier to understand, but it uses less TeX-only constructs now.
309 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
310 elements contain spaces
312 * lib/configure: regenerated
314 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
315 elements contain spaces; display the list of programs that are
318 * autogen.sh: make sure lib/configure is executable
320 * lib/examples/*: rename the tutorial examples to begin with the
321 two-letters language code.
323 * src/lyxfunc.C (getStatus): do not query current font if no
326 * src/lyx_cb.C (RunScript): use QuoteName
327 (MenuRunDvips): ditto
328 (PrintApplyCB): ditto
330 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
331 around argument, so that it works well with the current shell.
332 Does not work properly with OS/2 shells currently.
334 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
335 * src/LyXSendto.C (SendtoApplyCB): ditto
336 * src/lyxfunc.C (Dispatch): ditto
337 * src/buffer.C (runLaTeX): ditto
339 (buildProgram): ditto
341 * src/lyx_cb.C (RunScript): ditto
342 (MenuMakeLaTeX): ditto
344 * src/buffer.h (getLatexName): new method
346 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
348 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
350 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
351 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
352 (create_math_panel): ditto
354 * src/lyxfunc.C (getStatus): re-activate the code which gets
355 current font and cursor; add test for export to html.
357 * src/lyxrc.C (read): remove unreachable break statements; add a
360 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
362 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
364 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
365 introduced by faulty regex.
366 * src/buffer.C: ditto
367 * src/lastfiles.C: ditto
368 * src/paragraph.C: ditto
370 * src/vspace.C: ditto
371 * src/insets/figinset.C: ditto
372 Note: most of these is absolutely harmless, except the one in
373 src/mathed formula.C.
375 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
377 * src/ImportNoweb.C (documentclass): fixed bounds for substr
378 operation, yielding correct results for the reLyX command.
380 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
382 * src/support/filetools.C (ExpandPath): removed an over eager
384 (ReplaceEnvironmentPath): ditto
386 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
387 shows that we are doing something fishy in our code...
391 * src/lyxrc.C (read): use a double switch trick to get more help
392 from the compiler. (the same trick is used in layout.C)
393 (write): new function. opens a ofstream and pass that to output
394 (output): new function, takes a ostream and writes the lyxrc
395 elemts to it. uses a dummy switch to make sure no elements are
398 * src/lyxlex.h: added a struct pushpophelper for use in functions
399 with more than one exit point.
401 * src/lyxlex.[Ch] (GetInteger): made it const
405 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
407 * src/layout.[hC] : LayoutTags splitted into several enums, new
408 methods created, better error handling cleaner use of lyxlex. Read
411 * src/bmtable.[Ch]: change some member prototypes because of the
414 * commandtags.h, src/LyXAction.C (init): new function:
415 "preferences-save", saves the lyxrc entries into .lyx/preferences.
416 This file is not read automatically but you can add \input
417 preferences to your lyxrc if you want to. We need to discuss how
420 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
421 in .aux, also remove .bib and .bst files from dependencies when
424 * src/BufferView.C, src/LyXView.C: add const_cast several places
425 because of changes to images.
427 * lib/images/*: same change as for images/*
429 * lib/lyxrc.example: Default for accept_compound is false not no.
431 * images/*: changed to be const, however I have som misgivings
432 about this change so it might be changed back.
434 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
436 * lib/configure, po/POTFILES.in: regenerated
438 * autogen.sh: autogenerate lib/configure from lib/configure.m4
440 * config/lib_configure.m4: removed
442 * lib/configure.m4: new file (was config/lib_configure.m4)
444 * configure.in: do not test for rtti, since we do not use it.
446 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
448 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
449 doubling of allocated space scheme. This makes it faster for large
450 strings end to use less memory for small strings. xtra rememoved.
452 * src/insets/figinset.C (waitalarm): commented out.
453 (GhostscriptMsg): use static_cast
454 (GhostscriptMsg): use new instead of malloc to allocate memory for
455 cmap. also delete the memory after use.
457 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
459 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
460 for changes in bibtex database or style.
461 (runBibTeX): remove all .bib and .bst files from dep before we
463 (run): use scanAuc in when dep file already exist.
465 * src/DepTable.C (remove_files_with_extension): new method
468 * src/DepTable.[Ch]: made many of the methods const.
470 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
472 * src/bufferparams.C: make sure that the default textclass is
473 "article". It used to be the first one by description order, but
474 now the first one is "docbook".
476 * src/lyx_main.C (setDebuggingLevel): change type of argument to
477 string; call Debug::value.
478 (easyParse): pass complete argument to setDebuggingLevel().
480 * src/debug.h (value): fix the code that parses debug levels.
482 * src/debug.h: add new debug type ACTION, reserved for LyXAction
485 * src/LyXAction.C: use Debug::ACTION as debug channel.
487 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
489 * NEWS: updated for the future 1.1.3 release.
491 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
492 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
493 it should. This is of course a controversial change (since many
494 people will find that their lyx workscreen is suddenly full of
495 red), but done for the sake of correctness.
497 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
498 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
500 * src/insets/inseterror.h, src/insets/inseturl.h,
501 src/insets/insetinfo.h, src/insets/figinset.h,
502 src/mathed/formulamacro.h, src/mathed/math_macro.h
503 (EditMessage): add a missing const and add _() to make sure that
506 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
507 src/insets/insetbib.C, src/support/filetools.C: add `using'
510 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
511 doing 'Insert index of last word' at the beginning of a paragraph.
513 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
515 * several files: white-space changes.
517 * src/mathed/formula.C: removed IsAlpha and IsDigit
519 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
520 .bib file. use a ifstream instead of FilePtr when parsing the .bib
523 * src/insets/figinset.C (GetPSSizes): don't break when
524 "EndComments" is seen. But break when a boundingbox is read.
526 * all classes inherited from Inset: return value of Clone
527 changed back to Inset *.
529 * all classes inherited form MathInset: return value of Clone
530 changed back to MathedInset *.
532 * src/insets/figinset.C (runqueue): use a ofstream to output the
533 gs/ps file. Might need some setpresicion or setw. However I can
534 see no problem with the current code.
535 (runqueue): use sleep instead of the alarm/signal code. I just
536 can't see the difference.
538 * src/paragraph.C (LyXParagraph): reserve space in the new
539 paragraph and resize the inserted paragraph to just fit.
541 * src/lyxfunc.h (operator|=): added operator for func_status.
543 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
544 check for readable file.
546 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
547 check for readable file.
548 (MenuMakeLinuxDoc): ditto
549 (MenuMakeDocBook): ditto
550 (MenuMakeAscii): ditto
551 (InsertAsciiFile): split the test for openable and readable
553 * src/bmtable.C (draw_bitmaptable): use
554 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
556 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
557 findtexfile from LaTeX to filetools.
559 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
560 instead of FilePtr. Needs to be verified by a literate user.
562 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
564 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
565 (EditMessage): likewise.
567 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
568 respectively as \textasciitilde and \textasciicircum.
570 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
572 * src/support/lyxstring.h: made the methods that take iterators
575 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
576 (regexMatch): made is use the real regex class.
578 * src/support/Makefile.am: changed to use libtool
580 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
582 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
584 (MathIsInset ++): changed several macros to be inline functions
587 * src/mathed/Makefile.am: changed to use libtool
589 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
591 * src/insets/inset* : Clone changed to const and return type is
592 the true insettype not just Inset*.
594 * src/insets/Makefile.am: changed to use libtool
596 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
598 * src/undo.[Ch] : added empty() and changed some of the method
601 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
603 * src/lyxparagraph.h: use id() and id(...) instead of getID and
604 setID use block<> for the bullets array, added const several places.
606 * src/lyxfunc.C (getStatus): new function
608 * src/lyxfunc.[Ch] : small changes to take advantage of the new
609 LyXAction, added const to several funtions.
611 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
612 a std::map, and to store the dir items in a vector.
614 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
617 * src/LyXView.[Ch] + other files : changed currentView to view.
619 * src/LyXAction.[Ch] : ported from the old devel branch.
621 * src/.cvsignore: added .libs and a.out
623 * configure.in : changes to use libtool.
625 * acinclude.m4 : inserted libtool.m4
627 * .cvsignore: added libtool
629 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
631 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
632 file name in insets and mathed directories (otherwise the
633 dependency is not taken in account under cygwin).
635 * src/text2.C (InsertString[AB]): make sure that we do not try to
636 read characters past the string length.
638 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
640 * lib/doc/LaTeXConfig.lyx.in,
641 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
643 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
644 file saying who created them and when this heppened; this is
645 useless and annoys tools like cvs.
647 * lib/layouts/g-brief-{en,de}.layout,
648 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
649 from Thomas Hartkens <thomas@hartkens.de>.
651 * src/{insets,mathed}/Makefile.am: do not declare an empty
652 LDFLAGS, so that it can be set at configure time (useful on Irix
655 * lib/reLyX/configure.in: make sure that the prefix is set
656 correctly in LYX_DIR.
658 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
660 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
661 be used by 'command-sequence' this allows to bind a key to a
662 sequence of LyX-commands
663 (Example: 'command-sequence math-insert alpha; math-insert beta;")
665 * src/LyXAction.C: add "command-sequence"
667 * src/LyXFunction.C: handling of "command-sequence"
669 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
670 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
672 * src/lyxserver.C, src/minibuffer.C: Use this new interface
674 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
676 * src/buffer.C (writeFile): Do not output a comment giving user
677 and date at the beginning of a .lyx file. This is useless and
678 annoys cvs anyway; update version number to 1.1.
680 * src/Makefile.am (LYX_DIR): add this definition, so that a
681 default path is hardcoded in LyX.
683 * configure.in: Use LYX_GNU_GETTEXT.
685 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
686 AM_GNU_GETTEXT with a bug fixed.
688 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
690 * src/chset.C: add "using std::ifstream;" to please dec cxx.
692 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
693 which is used to point to LyX data is now LYX_DIR_11x.
695 * lyx.man: convert to a unix text file; small updates.
697 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
699 * src/support/LSubstring.[Ch]: made the second arg of most of the
700 constructors be a const reference.
702 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
705 * src/support/lyxstring.[Ch] (swap): added missing member function
706 and specialization of swap(str, str);
708 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
710 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
711 trace of the old one.
713 * src/undo.[Ch]: made the undostack use std::list to store undo's in
714 put the member definitions in undo.C.
716 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
717 NEW_TEXT and have now only code that was included when this was
720 * src/intl.C (LCombo): use static_cast
722 (DispatchCallback): ditto
724 * src/definitions.h: removed whole file
726 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
728 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
729 parsing and stores in a std:map. a regex defines the file format.
730 removed unneeded members.
732 * src/bufferparams.h: added several enums from definitions.h here.
733 Removed unsused destructor. Changed some types to use proper enum
734 types. use block to have the temp_bullets and user_defined_bullets
735 and to make the whole class assignable.
737 * src/bufferparams.C (Copy): removed this functions, use a default
740 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
743 * src/buffer.C (readLyXformat2): commend out all that have with
744 oldpapersize to do. also comment out all that hve to do with
745 insetlatex and insetlatexdel.
746 (setOldPaperStuff): commented out
748 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
750 * src/LyXAction.C: remove use of inset-latex-insert
752 * src/mathed/math_panel.C (button_cb): use static_cast
754 * src/insets/Makefile.am (insets_o_SOURCES): removed
757 * src/support/lyxstring.C (helper): use the unsigned long
758 specifier, UL, instead of a static_cast.
760 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
762 * src/support/block.h: new file. to be used as a c-style array in
763 classes, so that the class can be assignable.
765 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
767 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
768 NULL, make sure to return an empty string (it is not possible to
769 set a string to NULL).
771 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
773 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
775 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
777 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
778 link line, so that Irix users (for example) can set it explicitely to
781 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
782 it can be overidden at make time (static or dynamic link, for
785 * src/vc-backend.C, src/LaTeXFeatures.h,
786 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
787 statements to bring templates to global namespace.
789 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
791 * src/support/lyxstring.C (operator[] const): make it standard
794 * src/minibuffer.C (Init): changed to reflect that more
795 information is given from the lyxvc and need not be provided here.
797 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
799 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
801 * src/LyXView.C (UpdateTimerCB): use static_cast
802 (KeyPressMask_raw_callback): ditto
804 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
805 buffer_, a lot of changes because of this. currentBuffer() ->
806 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
807 also changes to other files because of this.
809 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
811 * src/vc-backend.[Ch]: new files. The backends for vc handling,
812 have no support for RCS and partial support for CVS, will be
815 * src/insets/ several files: changes because of function name
816 changes in Bufferview and LyXView.
818 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
820 * src/support/LSubstring.[Ch]: new files. These implement a
821 Substring that can be very convenient to use. i.e. is this
823 string a = "Mary had a little sheep";
824 Substring(a, "sheep") = "lamb";
825 a is now "Mary has a little lamb".
827 * src/support/LRegex.[Ch]: a regex class that can be used to pick
828 out patterns and subpatterns of strings. It is used by LSubstring
829 and also by vc-backend.C
831 * src/support/lyxstring.C: went over all the assertions used and
832 tried to correct the wrong ones and flag which of them is required
833 by the standard. some bugs found because of this. Also removed a
834 couple of assertions.
836 * src/support/Makefile.am (libsupport_a_SOURCES): added
837 LSubstring.[Ch] and LRegex.[Ch]
839 * src/support/FileInfo.h: have struct stat buf as an object and
840 not a pointer to one, some changes because of this.
842 * src/LaTeXFeatures.C (getTClassPreamble): also use the
843 information in layout when adding the layouts preamble to the
846 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
849 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
850 because of bug in OS/2.
852 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
854 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
855 \verbatim@font instead of \ttfamily, so that it can be redefined.
857 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
858 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
859 src/layout.h, src/text2.C: add 'using' directive to bring the
860 STL templates we need from the std:: namespace to the global one.
861 Needed by DEC cxx in strict ansi mode.
863 * src/support/LIstream.h,src/support/LOstream.h,
864 src/support/lyxstring.h,src/table.h,
865 src/lyxlookup.h: do not include <config.h> in header
866 files. This should be done in the .C files only.
868 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
872 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
874 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
875 from Kayvan to fix the tth invokation.
877 * development/lyx.spec.in: updates from Kayvan to reflect the
878 changes of file names.
880 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
882 * src/text2.C (InsertStringB): use std::copy
883 (InsertStringA): use std::copy
885 * src/bufferlist.C: use a vector to store the buffers in. This is
886 an internal change and should not affect any other thing.
888 * src/BufferView.C (waitForX): use XSync instead of the lengthy
891 * src/text.C (Fill): fix potential bug, one off bug.
893 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
895 * src/Makefile.am (lyx_main.o): add more files it depends on.
897 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
899 * src/support/lyxstring.C: use size_t for the reference count,
900 size, reserved memory and xtra.
901 (internal_compare): new private member function. Now the compare
902 functions should work for std::strings that have embedded '\0'
904 (compare): all compare functions rewritten to use
907 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
909 * src/support/lyxstring.C (compare): pass c_str()
910 (compare): pass c_str
911 (compare): pass c_str
913 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
915 * src/support/DebugStream.C: <config.h> was not included correctly.
917 * lib/configure: forgot to re-generate it :( I'll make this file
920 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
922 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
925 * src/support/lyxstring.C: some changes from length() to rep->sz.
926 avoids a function call.
928 * src/support/filetools.C (SpaceLess): yet another version of the
929 algorithm...now per Jean-Marc's suggestions.
931 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
933 * src/layout.C (less_textclass_desc): functor for use in sorting
935 (LyXTextClass::Read): sort the textclasses after reading.
937 * src/support/filetools.C (SpaceLess): new version of the
938 SpaceLess functions. What problems does this one give? Please
941 * images/banner_bw.xbm: made the arrays unsigned char *
943 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
945 * src/support/lyxstring.C (find): remove bogus assertion in the
946 two versions of find where this has not been done yet.
948 * src/support/lyxlib.h: add missing int return type to
951 * src/menus.C (ShowFileMenu): disable exporting to html if no
952 html export command is present.
954 * config/lib_configure.m4: add a test for an HTML converter. The
955 programs checked for are, in this order: tth, latex2html and
958 * lib/configure: generated from config/lib_configure.m4.
960 * src/lyxfunc.C (Dispatch): update and improve the execution of an
961 html converter. The parameters are now passed through $$FName and
962 $$OutName, instead of standard input/output.
964 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
966 * lib/lyxrc.example: update description of \html_command.
967 add "quotes" around \screen_font_xxx font setting examples to help
968 people who use fonts with spaces in their names.
970 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
972 * Distribution files: updates for v1.1.2
974 * src/support/lyxstring.C (find): remove bogus assert and return
975 npos for the same condition.
977 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
979 * added patch for OS/2 from SMiyata.
981 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
983 * src/text2.C (CutSelection): make space_wrapped a bool
984 (CutSelection): dont declare int i until we have to.
985 (alphaCounter): return a char const *.
987 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
989 * src/support/syscall.C (Systemcalls::kill):
990 src/support/filetools.C (PutEnv, PutEnvPath):
991 src/lyx_cb.C (addNewlineAndDepth):
992 src/FontInfo.C (FontInfo::resize): condition some #warning
993 directives with WITH_WARNINGS.
996 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
998 * src/layout.[Ch] + several files: access to class variables
999 limited and made accessor functions instead a lot of code changed
1000 becuase of this. Also instead of returning pointers often a const
1001 reference is returned instead.
1003 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
1005 * src/Makefile.am (dist-hook): added used to remove the CVS from
1006 cheaders upon creating a dist
1007 (EXTRA_DIST): added cheaders
1009 * src/support/lstrings.C (tostr(char)): fix it to handle param as
1010 a character not as a small integer.
1012 * src/support/lyxstring.C (find): removed Assert and added i >=
1013 rep->sz to the first if.
1015 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1017 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
1018 src/LyXView.C src/buffer.C src/bufferparams.C
1019 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
1020 src/text2.C src/insets/insetinclude.C:
1021 lyxlayout renamed to textclasslist.
1023 * src/layout.C: some lyxerr changes.
1025 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
1026 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
1027 (LyXLayoutList): removed all traces of this class.
1028 (LyXTextClass::Read): rewrote LT_STYLE
1029 (LyXTextClass::hasLayout): new function
1030 (LyXTextClass::GetLayout): rewritten to return an iterator + has
1031 both const and nonconst version.
1032 (LyXTextClass::delete_layout): new function.
1033 (LyXTextClassList::Style): bug fix. do the right thing if layout
1035 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
1036 (LyXTextClassList::NameOfLayout): ditto
1037 (LyXTextClassList::Load): ditto
1039 * src/buffer.C (makeLaTeXFile): new access to layoutlist
1041 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
1043 * src/LyXAction.C (LookupFunc): added a workaround for sun
1044 compiler, on the other hand...we don't know if the current code
1045 compiles on sun at all...
1047 * src/support/filetools.C (CleanupPath): subst fix
1049 * src/insets/insetbib.C (delDatabase): subst fix, this looks
1052 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
1053 complained about this one?
1055 * src/insets/insetinclude.C (Latex): subst fix
1057 * src/insets/insetbib.C (getKeys): subst fix
1059 * src/LyXSendto.C (SendtoApplyCB): subst fix
1061 * src/lyx_main.C (init): subst fix
1063 * src/layout.C (Read): subst fix
1065 * src/lyx_sendfax_main.C (button_send): subst fix
1067 * src/buffer.C (RoffAsciiTable): subst fix
1069 * src/lyx_cb.C (MenuFax): subst fix
1070 (PrintApplyCB): subst fix
1072 1999-10-26 Juergen Vigna <jug@sad.it>
1074 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
1076 (Read): Cleaned up this code so now we read only format vestion >= 5
1078 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1080 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
1081 come nobody has complained about this one?
1083 * src/insets/insetinclude.C (Latex): subst fix
1085 * src/insets/insetbib.C (getKeys): subst fix
1087 * src/lyx_main.C (init): subst fix
1089 * src/layout.C (Read): subst fix
1091 * src/buffer.C (RoffAsciiTable): subst fix
1093 * src/lyx_cb.C (MenuFax): subst fix.
1095 * src/layout.[hC] + some other files: rewrote to use
1096 std::container to store textclasses and layouts in.
1097 Simplified, removed a lot of code. Make all classes
1098 assignable. Further simplifications and review of type
1099 use still to be one.
1101 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
1102 lastfiles to create the lastfiles partr of the menu.
1104 * src/lastfiles.[Ch]: rewritten to use deque to store the
1105 lastfiles in. Uses fstream for reading and writing. Simplifies
1108 * src/support/syscall.C: remove explicit cast.
1110 * src/BufferView.C (CursorToggleCB): removed code snippets that
1112 use explicat C++ style casts instead of C style casts. also use
1113 u_vdata instea of passing pointers in longs.
1115 * src/PaperLayout.C: removed code snippets that were commented out.
1117 * src/lyx_gui_misc.C: removed code snippets that were commented out.
1119 * src/lyx_main.C: removed code snippets that wer commented out.
1121 * src/paragraph.C: removed code snippets that were commented out.
1123 * src/lyxvc.C (logClose): use static_cast
1125 (viewLog): remove explicit cast to void*
1126 (showLog): removed old commented code
1128 * src/menus.C: use static_cast instead of C style casts. use
1129 u_vdata instead of u_ldata. remove explicit cast to (long) for
1130 pointers. Removed old code that was commented out.
1132 * src/insets/inset.C: removed old commented func
1134 * src/insets/insetref.C (InsetRef): removed old code that had been
1135 commented out for a long time.
1137 (escape): removed C style cast
1139 * src/insets/insetlatexaccent.C (Draw): removed old commented code
1141 * src/insets/insetlatex.C (Draw): removed old commented code
1142 (Read): rewritten to use string
1144 * src/insets/insetlabel.C (escape): removed C style cast
1146 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
1148 * src/insets/insetindex.C: use static_cast and u_vdata, removed
1151 * src/insets/insetinclude.h: removed a couple of stupid bools
1153 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
1154 (Clone): remove C style cast
1155 (getKeys): changed list to lst because of std::list
1157 * src/insets/inseterror.C (Draw): removed som old commented code.
1159 * src/insets/insetcommand.C (Draw): removed some old commented code.
1161 * src/insets/insetbib.C (bibitem_cb): removed code that has been
1162 commented out forever.
1163 (bibitem_cb): use static_cast instead of C style cast
1164 use of vdata changed to u_vdata.
1166 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
1168 (CloseUrlCB): use static_cast instead of C style cast.
1169 (CloseUrlCB): added a fl_free form...it seemed to be missing.
1171 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
1172 (C_InsetInfo_CloseInfoCB): forward the ob parameter
1173 (CloseInfoCB): static_cast from ob->u_vdata instead.
1174 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
1177 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
1178 (C_InsetError_CloseErrorCB): forward the ob parameter
1179 (CloseErrorCB): static_cast from ob->u_vdata instead.
1181 * src/vspace.h: include LString.h since we use string in this class.
1183 * src/vspace.C (lyx_advance): changed name from advance because of
1184 nameclash with stl. And since we cannot use namespaces yet...I
1185 used a lyx_ prefix instead. Expect this to change when we begin
1188 * src/BufferView.[Ch] (BufferView::~BufferView): removed
1190 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
1191 and removed now defunct constructor and deconstructor.
1193 * src/BufferView.h: have backstack as a object not as a pointer.
1194 removed initialization from constructor. added include for BackStack
1196 * development/lyx.spec.in (%build): add CFLAGS also.
1198 * src/screen.C (drawFrame): removed another warning.
1200 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1202 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
1203 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
1204 README and ANNOUNCE a bit for the next release. More work is
1207 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
1208 unbreakable if we are in freespacing mode (LyX-Code), but not in
1211 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1213 * src/BackStack.h: fixed initialization order in constructor
1215 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
1217 * acinclude.m4 (VERSION): new rules for when a version is
1218 development, added also a variable for prerelease.
1219 (warnings): we set with_warnings=yes for prereleases
1220 (lyx_opt): prereleases compile with same optimization as development
1221 (CXXFLAGS): only use pedantic if we are a development version
1223 * src/BufferView.C (restorePosition): don't do anything if the
1226 * src/BackStack.h: added member empty, use this to test if there
1227 is anything to pop...
1229 1999-10-25 Juergen Vigna <jug@sad.it>
1232 * forms/layout_forms.fd +
1233 * forms/latexoptions.fd +
1234 * lyx.fd: changed for various form resize issues
1236 * src/mathed/math_panel.C +
1237 * src/insets/inseterror.C +
1238 * src/insets/insetinfo.C +
1239 * src/insets/inseturl.C +
1240 * src/insets/inseturl.h +
1243 * src/PaperLayout.C +
1244 * src/ParagraphExtra.C +
1245 * src/TableLayout.C +
1247 * src/layout_forms.C +
1254 * src/menus.C: fixed various resize issues. So now forms can be
1255 resized savely or not be resized at all.
1257 * forms/form_url.fd +
1258 * src/insets/form_url.[Ch]: added because it's cleaner and easier
1261 * src/insets/Makefile.am: added files form_url.[Ch]
1263 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1265 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
1266 (and presumably 6.2).
1268 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
1269 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
1270 remaining static member callbacks.
1272 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
1275 * src/support/lyxstring.h: declare struct Srep as friend of
1276 lyxstring, since DEC cxx complains otherwise.
1278 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1280 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1282 * src/LaTeX.C (run): made run_bibtex also depend on files with
1284 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
1285 are put into the dependency file.
1287 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
1288 the code has shown itself to work
1289 (create_ispell_pipe): removed another warning, added a comment
1292 * src/minibuffer.C (ExecutingCB): removed code that has been
1293 commented out a long time
1295 * src/lyxfunc.C (processKeyEvent): removed some very old commented
1296 out code + a warning.
1298 * src/support/lyxstring.h: comment out the three private
1299 operators, when compiling with string ansi conforming compilers
1302 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
1304 (pixmapFromBitmapData): change type of bdata to be unsigned char *
1305 (pixmapFromBitmapData): add a reinterpret_cast in the call to
1308 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
1311 * src/mathed/math_panel.C (create_math_panel): remove explicit
1314 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
1317 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
1318 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
1319 to XCreatePixmapFromBitmapData
1320 (fl_set_bmtable_data): change the last argument to be unsigned
1322 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
1323 and bh to be unsigned int, remove explicit casts in call to
1324 XReadBitmapFileData.
1326 * images/arrows.xbm: made the arrays unsigned char *
1327 * images/varsz.xbm: ditto
1328 * images/misc.xbm: ditto
1329 * images/greek.xbm: ditto
1330 * images/dots.xbm: ditto
1331 * images/brel.xbm: ditto
1332 * images/bop.xbm: ditto
1334 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
1336 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
1337 (LYX_PROG_CXX): added -pedantic to g++ compile options when
1338 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
1340 (LYX_CXX_CHEADERS): added <clocale> to the test.
1342 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
1344 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
1346 * src/support/lyxstring.C (append): fixed something that must be a
1347 bug, rep->assign was used instead of rep->append.
1349 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
1352 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
1353 lyx insert double chars. Fix spotted by Kayvan.
1355 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1357 * Fixed the tth support. I messed up with the Emacs patch apply feature
1358 and omitted the changes in lyxrc.C.
1360 1999-10-22 Juergen Vigna <jug@sad.it>
1362 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
1364 * src/lyx_cb.C (MenuInsertRef) +
1365 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
1366 the form cannot be resized under it limits (fixes a segfault)
1368 * src/lyx.C (create_form_form_ref) +
1369 * forms/lyx.fd: Changed Gravity on name input field so that it is
1372 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1374 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
1375 <ostream> and <istream>.
1377 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
1378 whether <fstream> provides the latest standard features, or if we
1379 have an oldstyle library (like in egcs).
1380 (LYX_CXX_STL_STRING): fix the test.
1382 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
1383 code on MODERN_STL_STREAM.
1385 * src/support/lyxstring.h: use L{I,O}stream.h.
1387 * src/support/L{I,O}stream.h: new files, designed to setup
1388 correctly streams for our use
1389 - includes the right header depending on STL capabilities
1390 - puts std::ostream and std::endl (for LOStream.h) or
1391 std::istream (LIStream.h) in toplevel namespace.
1393 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1395 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
1396 was a bib file that had been changed we ensure that bibtex is run.
1397 (runBibTeX): enhanced to extract the names of the bib files and
1398 getting their absolute path and enter them into the dep file.
1399 (findtexfile): static func that is used to look for tex-files,
1400 checks for absolute patchs and tries also with kpsewhich.
1401 Alternative ways of finding the correct files are wanted. Will
1403 (do_popen): function that runs a command using popen and returns
1404 the whole output of that command in a string. Should be moved to
1407 * src/DepTable.[Ch] (extchanged): new function that returns true if a
1408 file with extension ext has changed.
1410 * src/insets/figinset.C: added ifdef guards around the fl_free
1411 code that jug commented out. Now it is commented out when
1412 compiling with XForms == 0.89.
1414 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
1415 to lyxstring.C, and only keep a forward declaration in
1416 lyxstring.h. Simplifies the header file a bit and should help a
1417 bit on compile time too. Also changes to Srep will not mandate a
1418 recompile of code just using string.
1419 (~lyxstring): definition moved here since it uses srep.
1420 (size): definition moved here since it uses srep.
1422 * src/support/lyxstring.h: removed a couple of "inline" that should
1425 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1427 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
1430 1999-10-21 Juergen Vigna <jug@sad.it>
1432 * src/table.C (SetPWidth): Just a small fix so the alignment is not
1433 set to left if I just remove the width entry (or it is empty).
1435 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
1436 paragraph when having dummy paragraphs.
1438 1999-10-20 Juergen Vigna <jug@sad.it>
1440 * src/insets/figinset.C: just commented some fl_free_form calls
1441 and added warnings so that this calls should be activated later
1442 again. This avoids for now a segfault, but we have a memory leak!
1444 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
1445 'const char * argument' to 'string argument', this should
1446 fix some Asserts() in lyxstring.C.
1448 * src/lyxfunc.h: Removed the function argAsString(const char *)
1449 as it is not used anymore.
1451 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1453 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
1456 * src/Literate.h: some funcs moved from public to private to make
1457 interface clearer. Unneeded args removed.
1459 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
1461 (scanBuildLogFile): ditto
1463 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
1464 normal TeX Error. Still room for improvement.
1466 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
1468 * src/buffer.C (insertErrors): changes to make the error
1469 desctription show properly.
1471 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
1474 * src/support/lyxstring.C (helper): changed to use
1475 sizeof(object->rep->ref).
1476 (operator>>): changed to use a pointer instead.
1478 * src/support/lyxstring.h: changed const reference & to value_type
1479 const & lets see if that helps.
1481 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
1483 * Makefile.am (rpmdist): fixed to have non static package and
1486 * src/support/lyxstring.C: removed the compilation guards
1488 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
1491 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
1492 conditional compile of lyxstring.Ch
1494 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
1495 stupid check, but it is a lot better than the bastring hack.
1496 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
1498 * several files: changed string::erase into string::clear. Not
1501 * src/chset.C (encodeString): use a char temporary instead
1503 * src/table.C (TexEndOfCell): added tostr around
1504 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
1505 (TexEndOfCell): ditto
1506 (TexEndOfCell): ditto
1507 (TexEndOfCell): ditto
1508 (DocBookEndOfCell): ditto
1509 (DocBookEndOfCell): ditto
1510 (DocBookEndOfCell): ditto
1511 (DocBookEndOfCell): ditto
1513 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
1515 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
1517 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
1518 (MenuBuildProg): added tostr around ret
1519 (MenuRunChktex): added tostr around ret
1520 (DocumentApplyCB): added tostr around ret
1522 * src/chset.C (encodeString): added tostr around t->ic
1524 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
1525 (makeLaTeXFile): added tostr around tocdepth
1526 (makeLaTeXFile): added tostr around ftcound - 1
1528 * src/insets/insetbib.C (setCounter): added tostr around counter.
1530 * src/support/lyxstring.h: added an operator+=(int) to catch more
1533 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
1534 (lyxstring): We DON'T allow NULL pointers.
1536 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1538 * src/mathed/math_macro.C (MathMacroArgument::Write,
1539 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
1540 when writing them out.
1542 * src/LString.C: remove, since it is not used anymore.
1544 * src/support/lyxstring.C: condition the content to
1545 USE_INCLUDED_STRING macro.
1547 * src/mathed/math_symbols.C, src/support/lstrings.C,
1548 src/support/lyxstring.C: add `using' directive to specify what
1549 we need in <algorithm>. I do not think that we need to
1550 conditionalize this, but any thought is appreciated.
1552 * many files: change all callback functions to "C" linkage
1553 functions to please strict C++ compilers like DEC cxx 6.1 in mode
1554 strict_ansi. Those who were static are now global.
1555 The case of callbacks which are static class members is
1556 trickier, since we have to make C wrappers around them (see
1557 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
1558 did not finish this yet, since it defeats the purpose of
1559 encapsulation, and I am not sure what the best route is.
1561 1999-10-19 Juergen Vigna <jug@sad.it>
1563 * src/support/lyxstring.C (lyxstring): we permit to have a null
1564 pointer as assignment value and just don't assign it.
1566 * src/vspace.C (nextToken): corrected this function substituting
1567 find_first(_not)_of with find_last_of.
1569 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
1570 (TableOptCloseCB) (TableSpeCloseCB):
1571 inserted fl_set_focus call for problem with fl_hide_form() in
1574 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1576 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
1579 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1581 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
1582 LyXLex::next() and not eatline() to get its argument.
1584 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1586 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
1587 instead, use fstreams for io of the depfile, removed unneeded
1588 functions and variables.
1590 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
1591 vector instead, removed all functions and variables that is not in
1594 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1596 * src/buffer.C (insertErrors): use new interface to TeXError
1598 * Makefile.am (rpmdist): added a rpmdist target
1600 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
1601 per Kayvan's instructions.
1603 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1605 * src/Makefile.am: add a definition for localedir, so that locales
1606 are found after installation (Kayvan)
1608 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1610 * development/.cvsignore: new file.
1612 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1614 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
1615 C++ compiler provides wrappers for C headers and use our alternate
1618 * configure.in: use LYX_CXX_CHEADERS.
1620 * src/cheader/: new directory, populated with cname headers from
1621 libstdc++-2.8.1. They are a bit old, but probably good enough for
1622 what we want (support compilers who lack them).
1624 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
1625 from includes. It turns out is was stupid.
1627 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1629 * lib/Makefile.am (install-data-local): forgot a ';'
1630 (install-data-local): forgot a '\'
1631 (libinstalldirs): needed after all. reintroduced.
1633 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1635 * configure.in (AC_OUTPUT): added lyx.spec
1637 * development/lyx.spec: removed file
1639 * development/lyx.spec.in: new file
1641 * po/*.po: merged with lyx.pot becuase of make distcheck
1643 * lib/Makefile.am (dist-hook): added dist-hook so that
1644 documentation files will be included when doing a make
1645 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
1646 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
1648 more: tried to make install do the right thing, exclude CVS dirs
1651 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
1652 Path would fit in more nicely.
1654 * all files that used to use pathstack: uses now Path instead.
1655 This change was a lot easier than expected.
1657 * src/support/path.h: new file
1659 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
1661 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
1663 * src/support/lyxstring.C (getline): Default arg was given for
1666 * Configure.cmd: removed file
1668 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1670 * src/support/DebugStream.[Ch]: remove the explicit std:: before
1671 streams classes and types, add the proper 'using' statements when
1672 MODERN_STL is defined.
1674 * src/debug.h: move the << operator definition after the inclusion
1677 * src/support/filetools.C: include "LAssert.h", which is needed
1680 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
1683 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
1684 include "debug.h" to define a proper ostream.
1686 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
1688 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
1689 method to the SystemCall class which can kill a process, but it's
1690 not fully implemented yet.
1692 * src/*.C: Changed Systemcalls::Startscript() to startscript()
1694 * src/support/FileInfo.h: Better documentation
1696 * src/lyxfunc.C: Added support for buffer-export html
1698 * src/menus.C: Added Export->As HTML...
1700 * lib/bind/*.bind: Added short-cut for buffer-export html
1702 * src/lyxrc.*: Added support for new \tth_command
1704 * lib/lyxrc.example: Added stuff for new \tth_command
1706 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1708 * lib/Makefile.am (IMAGES): removed images/README
1709 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
1710 installes in correct place. Check permisions is installed
1713 * src/LaTeX.C: some no-op changes moved declaration of some
1716 * src/LaTeX.h (LATEX_H): changed include guard name
1718 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1720 * lib/reLyX/Makefile.am: install noweb2lyx.
1722 * lib/Makefile.am: install configure.
1724 * lib/reLyX/configure.in: declare a config aux dir; set package
1725 name to lyx (not sure what the best solution is); generate noweb2lyx.
1727 * lib/layouts/egs.layout: fix the bibliography layout.
1729 1999-10-08 Jürgen Vigna <jug@sad.it>
1731 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
1732 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
1733 it returned without continuing to search the path.
1735 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1737 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
1738 also fixes a bug. It is not allowed to do tricks with std::strings
1739 like: string a("hei"); &a[e]; this will not give what you
1740 think... Any reason for the complexity in this func?
1742 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
1744 * Updated README and INSTALL a bit, mostly to check that my
1745 CVS rights are correctly set up.
1747 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
1749 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
1750 does not allow '\0' chars but lyxstring and std::string does.
1752 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
1754 * autogen.sh (AUTOCONF): let the autogen script create the
1755 POTFILES.in file too. POTFILES.in should perhaps now not be
1756 included in the cvs module.
1758 * some more files changed to use C++ includes instead of C ones.
1760 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
1762 (Reread): added tostr to nlink. buggy output otherwise.
1763 (Reread): added a string() around szMode when assigning to Buffer,
1764 without this I got a log of garbled info strings.
1766 * acconfig.h: commented out the PTR_AS_INT macros. They should not
1769 * I have added several ostream & operator<<(ostream &, some_type)
1770 functions. This has been done to avoid casting and warnings when
1771 outputting enums to lyxerr. This as thus eliminated a lot of
1772 explicit casts and has made the code clearer. Among the enums
1773 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
1774 mathed enums, some font enum the Debug::type enum.
1776 * src/support/lyxstring.h (clear): missing method. equivalent of
1779 * all files that contained "stderr": rewrote constructs that used
1780 stderr to use lyxerr instead. (except bmtable)
1782 * src/support/DebugStream.h (level): and the passed t with
1783 Debug::ANY to avoid spurious bits set.
1785 * src/debug.h (Debug::type value): made it accept strings of the
1788 * configure.in (Check for programs): Added a check for kpsewhich,
1789 the latex generation will use this later to better the dicovery of
1792 * src/BufferView.C (create_view): we don't need to cast this to
1793 (void*) that is done automatically.
1794 (WorkAreaButtonPress): removed some dead code.
1796 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1798 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
1799 is not overwritten when translated (David Sua'rez de Lis).
1801 * lib/CREDITS: Added David Sua'rez de Lis
1803 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
1805 * src/bufferparams.C (BufferParams): default input encoding is now
1808 * acinclude.m4 (cross_compiling): comment out macro
1809 LYX_GXX_STRENGTH_REDUCE.
1811 * acconfig.h: make sure that const is not defined (to empty) when
1812 we are compiling C++. Remove commented out code using SIZEOF_xx
1815 * configure.in : move the test for const and inline as late as
1816 possible so that these C tests do not interefere with C++ ones.
1817 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
1818 has not been proven.
1820 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1822 * src/table.C (getDocBookAlign): remove bad default value for
1825 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
1827 (ShowFileMenu2): ditto.
1829 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
1832 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1834 * Most files: finished the change from the old error code to use
1835 DebugStream for all lyxerr debugging. Only minor changes remain
1836 (e.g. the setting of debug levels using strings instead of number)
1838 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1840 * src/layout.C (Add): Changed to use compare_no_case instead of
1843 * src/FontInfo.C: changed loop variable type too string::size_type.
1845 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1847 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
1848 set ETAGS_ARGS to --c++
1850 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1852 * src/table.C (DocBookEndOfCell): commented out two unused variables
1854 * src/paragraph.C: commented out four unused variables.
1856 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
1857 insed a if clause with type string::size_type.
1859 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
1862 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
1864 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
1865 variable, also changed loop to go from 0 to lenght + 1, instead of
1866 -1 to length. This should be correct.
1868 * src/LaTeX.C (scanError): use string::size_type as loop variable
1871 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
1872 (l.896) since y_tmp and row was not used anyway.
1874 * src/insets/insetref.C (escape): use string::size_type as loop
1877 * src/insets/insetquotes.C (Width): use string::size_type as loop
1879 (Draw): use string::size_type as loop variable type.
1881 * src/insets/insetlatexaccent.C (checkContents): use
1882 string::size_type as loop variable type.
1884 * src/insets/insetlabel.C (escape): use string::size_type as loop
1887 * src/insets/insetinfo.C: added an extern for current_view.
1889 * src/insets/insetcommand.C (scanCommand): use string::size_type
1890 as loop variable type.
1892 * most files: removed the RCS tags. With them we had to recompile
1893 a lot of files after a simple cvs commit. Also we have never used
1894 them for anything meaningful.
1896 * most files: tags-query-replace NULL 0. As adviced several plases
1897 we now use "0" instead of "NULL" in our code.
1899 * src/support/filetools.C (SpaceLess): use string::size_type as
1902 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1904 * src/paragraph.C: fixed up some more string stuff.
1906 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1908 * src/support/filetools.h: make modestr a std::string.
1910 * src/filetools.C (GetEnv): made ch really const.
1912 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
1913 made code that used these use max/min from <algorithm> instead.
1915 * changed several c library include files to their equivalent c++
1916 library include files. All is not changed yet.
1918 * created a support subdir in src, put lyxstring and lstrings
1919 there + the extra files atexit, fileblock, strerror. Created
1920 Makefile.am. edited configure.in and src/Makefile.am to use this
1921 new subdir. More files moved to support.
1923 * imported som of the functions from repository lyx, filetools
1925 * ran tags-query-replace on LString -> string, corrected the bogus
1926 cases. Tried to make use of lstrings.[hC], debugged a lot. There
1927 is still some errors in there. This is errors where too much or
1928 too litle get deleted from strings (string::erase, string::substr,
1929 string::replace), there can also be some off by one errors, or
1930 just plain wrong use of functions from lstrings. Viewing of quotes
1933 * LyX is now running fairly well with string, but there are
1934 certainly some bugs yet (see above) also string is quite different
1935 from LString among others in that it does not allow null pointers
1936 passed in and will abort if it gets any.
1938 * Added the revtex4 files I forgot when setting up the repository.
1940 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1942 * All over: Tried to clean everything up so that only the files
1943 that we really need are included in the cvs repository.
1944 * Switched to use automake.
1945 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
1946 * Install has not been checked.
1948 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1950 * po/pt.po: Three errors:
1951 l.533 and l.538 format specification error
1952 l. 402 duplicate entry, I just deleted it.