1 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * some things that I should comment but the local pub says head to
6 * comment out all code that belongs to the Roff code for Ascii
7 export of tables. (this is unused)
9 * src/LyXView.C: use correct type for global variable
10 current_layout. (LyXTextClass::size_type)
12 * some code to get the new insetgraphics closer to working I'd be
13 grateful for any help.
15 * src/BufferView2.C (insertInset): use the return type of
16 NumberOfLayout properly. (also changes in other files)
18 * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
19 this as a test. I want to know what breaks because of this.
21 * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
23 2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
25 * lib/layouts/stdlists.inc: changed the lyxlist latex definition
26 to use a \makebox in the label, this allows proper justification
27 with out using protected spaces or multiple hfills. Now it is
28 "label" for left justified, "\hfill label\hfill" for center, and
29 "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
30 should be changed accordingly.
32 2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
34 * src/lyxtext.h: change SetLayout() to take a
35 LyXTextClass::size_type instead of a char (when there is more than
36 127 layouts in a class); also change type of copylayouttype.
37 * src/text2.C (SetLayout): ditto.
38 * src/LyXView.C (updateLayoutChoice): ditto.
40 * src/LaTeX.C (scanLogFile): errors where the line number was not
41 given just after the '!'-line were ignored (from Dekel Tsur).
43 * lib/lyxrc.example: fix description of \date_insert_format
45 * lib/layouts/llncs.layout: new layout, contributed by Martin
48 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
50 * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
51 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
52 cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
53 insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
54 BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
55 paragraph.C, text.C, text2.C)
57 2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
59 * src/insets/insettext.C (LocalDispatch): remove extra break
62 * src/insets/insetert.[Ch] (Clone): change return value to Inset*
63 * src/insets/insettext.[Ch] (Clone): change return value to Inset*
65 * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
66 * src/insets/insettext.[Ch] (GetCursorPos): ditto
68 * src/insets/insetbib.h: move InsetBibkey::Holder and
69 InsetCitation::Holder in public space.
71 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
73 * src/insets/insettext.h: small change to get the new files from
74 Juergen to compile (use "string", not "class string").
76 * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
77 const & as parameter to LocalDispatch, use LyXFont const & as
78 paramter to some other func. This also had impacto on lyxinsets.h
79 and the two mathed insets.
81 2000-02-24 Juergen Vigna <jug@sad.it>
86 * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
90 * src/BufferView2.C: added/updated code for various inset-functions
92 * src/insets/insetert.[Ch]: added implementation of InsetERT
94 * src/insets/insettext.[Ch]: added implementation of InsetText
96 * src/insets/inset.C (Edit): added "unsigned int button" parameter
97 (draw): added preliminary code for inset scrolling not finshed yet
99 * src/insets/inset.C (LocalDispatch): changed arg parameter to string
100 as it is in lyxfunc.C now
102 * src/insets/lyxinset.h: Added functions for text-insets
104 2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
106 * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
107 BufferView and reimplement the list as a queue put inside its own
110 * src/bufferlist.[Ch] (updateInset): remove func, not needed.
112 * several files: use the new interface to the "updateinsetlist"
114 * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
116 (work_area_handler): call BufferView::trippleClick on trippleclick.
118 * src/BufferView.C (doubleClick): new function, selects word on
120 (trippleClick): new function, selects line on trippleclick.
122 2000-02-22 Allan Rae <rae@lyx.org>
124 * lib/bind/xemacs.bind: buffer-previous not supported
126 2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
128 * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
131 2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
133 * src/bufferlist.C: get rid of current_view from this file
135 * src/spellchecker.C: get rid of current_view from this file
137 * src/vspace.C: get rid of current_view from this file
138 (inPixels): added BufferView parameter for this func
139 (asLatexCommand): added a BufferParams for this func
141 * src/text.C src/text2.C: get rid of current_view from these
144 * src/lyxfont.C (getFontDirection): move this function here from
147 * src/bufferparams.C (getDocumentDirection): move this function
150 * src/paragraph.C (getParDirection): move this function here from
152 (getLetterDirection): ditto
154 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
156 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
157 resize due to wrong pixmap beeing used. Also took the opurtunity
158 to make the LyXScreen stateless on regard to WorkArea and some
159 general cleanup in the same files.
161 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
163 * src/Makefile.am: add missing direction.h
165 * src/PainterBase.h: made the width functions const.
167 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
170 * src/insets/insetcommand.C (draw): draw Editable as buttons.
172 * src/insets/insetlatexaccent.C (draw): make the accents draw
173 better, at present this will only work well with iso8859-1.
175 * several files: remove the old drawing code, now we use the new
178 * several files: remove support for mono_video, reverse_video and
181 2000-02-17 Juergen Vigna <jug@sad.it>
183 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
184 int ** as we have to return the pointer, otherwise we have only
185 NULL pointers in the returning function.
187 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
189 * src/LaTeX.C (operator()): quote file name when running latex.
191 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
193 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
194 (bubble tip), this removes our special handling of this.
196 * Remove all code that is unused now that we have the new
197 workarea. (Code that are not active when NEW_WA is defined.)
199 * Make the uses of XSync not conditionalized on define USE_XSYNC.
201 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
203 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
204 nonexisting layout; correctly redirect obsoleted layouts.
206 * lib/lyxrc.example: document \view_dvi_paper_option
208 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
211 * src/lyx_cb.C (RunScript): handle $$FName for command names.
212 (PreviewDVI): handle the view_dvi_paper_option variable.
213 [Both from Roland Krause]
215 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
217 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
218 char const *, int, LyXFont)
219 (text(int, int, string, LyXFont)): ditto
221 * src/text.C (InsertCharInTable): attempt to fix the double-space
222 feature in tables too.
223 (BackspaceInTable): ditto.
224 (GetVisibleRow): make bottom pagebreak line be a onoff line.
226 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
228 * src/text2.C (owner): only complain if owner_ is set and bv != 0
230 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
231 newly found text in textcache to this.
232 (buffer): set the owner of the text put into the textcache to 0
234 * src/insets/figinset.C (draw): fixed the drawing of figures with
237 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
238 drawing of mathframe, hfills, protected space, table lines. I have
239 now no outstanding drawing problems with the new Painter code.
241 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
243 * src/PainterBase.C (ellipse, circle): do not specify the default
246 * src/LColor.h: add using directive.
248 * src/Painter.[Ch]: change return type of methods from Painter& to
249 PainterBase&. Add a using directive.
251 * src/WorkArea.C: wrap xforms callbacks in C functions
254 * lib/layouts/foils.layout: font fix and simplifications from Carl
257 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
259 * a lot of files: The Painter, LColor and WorkArea from the old
260 devel branch has been ported to lyx-devel. Some new files and a
261 lot of #ifdeffed code. The new workarea is enabled by default, but
262 if you want to test the new Painter and LColor you have to compile
263 with USE_PAINTER defined (do this in config.h f.ex.) There are
264 still some rought edges, and I'd like some help to clear those
265 out. It looks stable (loads and displays the Userguide very well).
268 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
270 * src/buffer.C (pop_tag): revert to the previous implementation
271 (use a global variable for both loops).
273 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
275 * src/lyxrc.C (LyXRC): change slightly default date format.
277 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
278 there is an English text with a footnote that starts with a Hebrew
279 paragraph, or vice versa.
280 (TeXFootnote): ditto.
282 * src/text.C (LeftMargin): allow for negative values for
283 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
286 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
287 for input encoding (cyrillic)
289 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
291 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
294 * src/toolbar.C (set): ditto
295 * src/insets/insetbib.C (create_form_citation_form): ditto
297 * lib/CREDITS: added Dekel Tsur.
299 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
300 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
301 hebrew supports files from Dekel Tsur.
303 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
304 <tzafrir@technion.ac.il>
306 * src/lyxrc.C: put \date_insert_format at the right place.
308 * src/buffer.C (makeLaTeXFile): fix the handling of
309 BufferParams::sides when writing out latex files.
311 * src/BufferView2.C: add a "using" directive.
313 * src/support/lyxsum.C (sum): when we use lyxstring,
314 ostringstream::str needs an additional .c_str().
316 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
318 * src/support/filetools.C (ChangeExtension): patch from Etienne
321 * src/TextCache.C (show): remove const_cast and make second
322 parameter non-const LyXText *.
324 * src/TextCache.h: use non const LyXText in show.
326 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
329 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
331 * src/support/lyxsum.C: rework to be more flexible.
333 * several places: don't check if a pointer is 0 if you are going
336 * src/text.C: remove some dead code.
338 * src/insets/figinset.C: remove some dead code
340 * src/buffer.C: move the BufferView funcs to BufferView2.C
341 remove all support for insetlatexdel
342 remove support for oldpapersize stuff
343 made some member funcs const
345 * src/kbmap.C: use a std::list to store the bindings in.
347 * src/BufferView2.C: new file
349 * src/kbsequence.[Ch]: new files
351 * src/LyXAction.C + others: remove all trace of buffer-previous
353 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
354 only have one copy in the binary of this table.
356 * hebrew patch: moved some functions from LyXText to more
357 appropriate places. (LyXParagraph, BufferParams, LyXFont)
359 * several files: remove support for XForms older than 0.88
361 remove some #if 0 #endif code
363 * src/TextCache.[Ch]: new file. Holds the textcache.
365 * src/BufferView.C: changes to use the new TextCache interface.
366 (waitForX): remove the now unused code.
368 * src/BackStack.h: remove some commented code
370 * lib/bind/emacs.bind: remove binding for buffer-previous
372 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
374 * applied the hebrew patch.
376 * src/lyxrow.h: make sure that all Row variables are initialized.
378 * src/text2.C (TextHandleUndo): comment out a delete, this might
379 introduce a memory leak, but should also help us to not try to
380 read freed memory. We need to look at this one.
382 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
383 (LyXParagraph): initalize footnotekind.
385 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
386 forgot this when applying the patch. Please heed the warnings.
388 * src/BufferView.C (buffer): a fix for the buffer-reload problem
389 (aka. reformat problem)
391 * src/bufferlist.C (exists): made const, and use const_iterator
392 (isLoaded): new func.
393 (release): use std::find to find the correct buffer.
395 * src/bufferlist.h: made getState a const func.
396 made empty a const func.
397 made exists a const func.
400 2000-02-01 Juergen Vigna <jug@sad.it>
402 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
404 * po/it.po: updated a bit the italian po file and also changed the
405 'file nuovo' for newfile to 'filenuovo' without a space, this did
408 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
409 for the new insert_date command.
411 * src/lyxfunc.C (Dispatch): added support for a insert_date function
412 from jdblair, to insert a date into the current text conforming to
413 a strftime format (for now only considering the locale-set and not
414 the document-language).
416 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
418 * src/lyxfont.C (textWidth): hopefully better fix for the Array
419 Bounds Read error seen by purify. The problem was that islower is
420 a macros which takes an unsigned char and uses it as an index for
421 in array of characters properties (and is thus subject to the
425 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
426 correctly the paper sides radio buttons.
427 (UpdateDocumentButtons): ditto.
429 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
431 * src/kbmap.C (getsym + others): change to return unsigned int,
432 returning a long can give problems on 64 bit systems. (I assume
433 that int is 32bit on 64bit systems)
435 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
437 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
438 LyXLookupString to be zero-terminated. Really fixes problems seen
441 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
443 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
444 write a (char*)0 to the lyxerr stream.
446 * src/lastfiles.C: move algorithm before the using statemets.
448 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
450 * src/lastfiles.C: move using directives in global scope (egcs 1.x
451 complains otherwise).
454 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
457 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
458 that I removed earlier... It is really needed.
460 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
462 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
464 * INSTALL: update xforms home page URL.
466 * lib/configure.m4: fix a bug with unreadable layout files.
468 * src/table.C (calculate_width_of_column): add "using std::max"
471 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
473 * several files: marked several lines with "DEL LINE", this is
474 lines that can be deleted without changing anything.
475 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
476 checks this anyway */
479 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
481 * src/DepTable.C (update): add a "+" at the end when the checksum
482 is different. (debugging string only)
484 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
485 the next inset to not be displayed. This should also fix the list
486 of labels in the "Insert Crossreference" dialog.
488 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
490 * src/support/LSubstring.C (LSubstring): set pos to string::npos
491 when regex was not found.
493 * src/support/lstrings.C (lowercase): use handcoded transform always.
496 * src/text.C (Delete): fixed the crash. cursor.par->prev and
497 old_cursor.par->prev could be 0.
499 * several files: changed post inc/dec to pre inc/dec
501 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
502 write the lastfiles to file.
504 * src/BufferView.C (buffer): only show TextCache info when debugging
506 (resizeCurrentBuffer): ditto
507 (workAreaExpose): ditto
509 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
511 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
513 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
514 a bit better by removing the special case for \i and \j.
516 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
518 * src/lyx_main.C (easyParse): remove test for bad comand line
519 options, since this broke all xforms-related parsing.
521 * src/kbmap.C (getsym): set return type to unsigned long, as
522 declared in header. On an alpha, long is _not_ the same as int.
524 * src/support/LOstream.h: add a "using std::flush;"
526 * src/insets/figinset.C: ditto.
528 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
530 * src/bufferlist.C (write): use blinding fast file copy instead of
531 "a char at a time", now we are doing it the C++ way.
533 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
534 std::list<int> instead.
535 (addpidwait): reflect move to std::list<int>
536 (sigchldchecker): ditto
538 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
541 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
542 that obviously was wrong...
544 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
545 c, this avoids warnings with purify and islower.
547 * src/insets/figinset.C: rename struct queue to struct
548 queue_element and rewrite to use a std::queue. gsqueue is now a
549 std::queue<queue_element>
550 (runqueue): reflect move to std::queue
553 * src/support/lstrings.h (tostr): specialize for bool, otherwise
554 we would get "1" "0" instead of "true" "false. Also make the tostr
557 2000-01-21 Juergen Vigna <jug@sad.it>
559 * src/buffer.C (writeFileAscii): Disabled code for special groff
560 handling of tabulars till I fix this in table.C
562 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
564 * src/support/mkdir.C (mkdir): change second argument of mkdir to
566 * src/support/lyxlib.h: ditto.
568 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
570 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
571 and 'j' look better. This might fix the "macron" bug that has been
574 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
575 functions as one template function. Delete the old versions.
577 * src/support/lyxsum.C: move using std::ifstream inside
580 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
583 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
585 * src/mathed/formula.C: delete #include "bufferlist.h" never used
587 * src/insets/figinset.C (InitFigures): use new instead of malloc
588 to allocate memory for figures and bitmaps.
589 (DoneFigures): use delete[] instead of free to deallocate memory
590 for figures and bitmaps.
591 (runqueue): use new to allocate
592 (getfigdata): use new/delete[] instead of malloc/free
593 (RegisterFigure): ditto
595 * some files: moved some declarations closer to first use, small
596 whitespace changes use preincrement instead of postincrement where
597 it does not make a difference.
599 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
600 step on the way to use stl::containers for key maps.
602 * src/bufferlist.h: add a typedef for const_iterator and const
603 versions of begin and end.
605 * src/bufferlist.[Ch]: change name of member variable _state to
606 state_. (avoid reserved names)
608 (getFileNames): returns the filenames of the buffers in a vector.
610 * configure.in (ALL_LINGUAS): added ro
612 * src/support/putenv.C: new file
614 * src/support/mkdir.C: new file
616 2000-01-20 Allan Rae <rae@lyx.org>
618 * lib/layouts/IEEEtran.layout: Added several theorem environments
620 * lib/templates/IEEEtran.lyx: Example theorem environments and a
621 couple of minor additions.
623 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
624 (except for those in footnotes of course)
626 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
628 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
630 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
631 std::sort and std::lower_bound instead of qsort and handwritten
633 (struct compara): struct that holds the functors used by std::sort
634 and std::lower_bound in MathedLookupBOP.
636 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
638 * src/support/LAssert.h: do not do partial specialization. We do
641 * src/support/lyxlib.h: note that lyx::getUserName() and
642 lyx::date() are not in use right now. Should these be suppressed?
644 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
645 (makeLinuxDocFile): do not put date and user name in linuxdoc
648 * src/support/lyxlib.h (kill): change first argument to long int,
649 since that's what solaris uses.
651 * src/support/kill.C (kill): fix declaration to match prototype.
653 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
654 actually check whether namespaces are supported. This is not what
657 * src/support/lyxsum.C: add a using directive.
659 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
661 * src/support/kill.C: if we have namespace support we don't have
664 * src/support/lyxlib.h: use namespace lyx if supported.
666 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
668 * src/support/date.C: new file
670 * src/support/chdir.C: new file
672 * src/support/getUserName.C: new file
674 * src/support/getcwd.C: new file
676 * src/support/abort.C: new file
678 * src/support/kill.C: new file
680 * src/support/lyxlib.h: moved all the functions in this file
681 insede struct lyx. Added also kill and abort to this struct. This
682 is a way to avoid the "kill is not defined in <csignal>", we make
683 C++ wrappers for functions that are not ANSI C or ANSI C++.
685 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
686 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
687 lyx it has been renamed to sum.
689 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
691 * src/text.C: add using directives for std::min and std::max.
693 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
695 * src/texrow.C (getIdFromRow): actually return something useful in
696 id and pos. Hopefully fixes the bug with positionning of errorbox
699 * src/lyx_main.C (easyParse): output an error and exit if an
700 incorrect command line option has been given.
702 * src/spellchecker.C (ispell_check_word): document a memory leak.
704 * src/bufferlist.C (write): fix mismatched allocation/deletion,
705 where a "struct utimbuf" is allocated with "new" and deleted with
708 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
710 * src/text2.C (CutSelection): don't delete double spaces.
711 (PasteSelection): ditto
712 (CopySelection): ditto
714 * src/text.C (Backspace): don't delete double spaces.
716 * src/lyxlex.C (next): fix a bug that were only present with
717 conformant std::istream::get to read comment lines, use
718 std::istream::getline instead. This seems to fix the problem.
720 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
722 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
723 allowed to insert space before space" editing problem. Please read
724 commends at the beginning of the function. Comments about usage
727 * src/text.C (InsertChar): fix for the "not allowed to insert
728 space before space" editing problem.
730 * src/text2.C (DeleteEmptyParagraphMechanism): when
731 IsEmptyTableRow can only return false this last "else if" will
732 always be a no-op. Commented out.
734 * src/text.C (RedoParagraph): As far as I can understand tmp
735 cursor is not really needed.
737 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
738 present it could only return false anyway.
739 (several functions): Did something not so smart...added a const
740 specifier on a lot of methods.
742 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
743 and add a tmp->text.resize. The LyXParagraph constructor does the
745 (BreakParagraphConservative): ditto
747 * src/support/path.h (Path): add a define so that the wrong usage
748 "Path("/tmp") will be flagged as a compilation error:
749 "`unnamed_Path' undeclared (first use this function)"
751 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
753 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
754 which was bogus for several reasons.
756 * src/LaTeX.C (scanAux): fix the regular expression used to scan
760 * autogen.sh: do not use "type -path" (what's that anyway?).
762 * src/support/filetools.C (findtexfile): remove extraneous space
763 which caused a kpsewhich warning (at least with kpathsea version
766 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
768 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
770 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
772 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
774 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
776 * src/paragraph.C (BreakParagraph): do not reserve space on text
777 if we don't need to (otherwise, if pos_end < pos, we end up
778 reserving huge amounts of memory due to bad unsigned karma).
779 (BreakParagraphConservative): ditto, although I have not seen
780 evidence the bug can happen here.
782 * src/lyxparagraph.h: add a using std::list.
784 2000-01-11 Juergen Vigna <jug@sad.it>
786 * src/menus.C (MenuDocu): output an Alert if the documentation-file
789 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
791 * src/vc-backend.C (doVCCommand): change to be static and take one
792 more parameter: the path to chdir too be fore executing the command.
793 (retrive): new function equiv to "co -r"
795 * src/bufferlist.C (loadLyXFile): implement the missing parts if
796 file_not_found_hook is true.
798 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
800 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
801 if a file is readwrite,readonly...anything else.
803 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
805 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
806 (CreatePostscript): name change from MenuRunDVIPS (or something)
807 (PreviewPostscript): name change from MenuPreviewPS
808 (PreviewDVI): name change from MenuPreviewDVI
810 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
811 \view_pdf_command., \pdf_to_ps_command
813 * lib/configure.m4: added search for PDF viewer, and search for
815 (lyxrc.defaults output): add \pdflatex_command,
816 \view_pdf_command and \pdf_to_ps_command.
818 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
820 * src/bufferlist.C (write): we don't use blocksize for anything so
823 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
825 * src/support/block.h: disable operator T* (), since it causes
826 problems with both compilers I tried. See comments in the file.
828 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
831 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
832 variable LYX_DIR_10x to LYX_DIR_11x.
834 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
836 * INSTALL: document --with-lyxname.
839 * configure.in: new configure flag --with-lyxname which allows to
840 choose the name under which lyx is installed. Default is "lyx", of
841 course. It used to be possible to do this with --program-suffix,
842 but the later has in fact a different meaning for autoconf.
844 * src/support/lstrings.h (lstrchr): reformat a bit.
846 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
847 * src/mathed/math_defs.h: ditto.
849 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
851 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
852 true, decides if we create a backup file or not when saving. New
853 tag and variable \pdf_mode, defaults to false. New tag and
854 variable \pdflatex_command, defaults to pdflatex. New tag and
855 variable \view_pdf_command, defaults to xpdf. New tag and variable
856 \pdf_to_ps_command, defaults to pdf2ps.
858 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
860 * src/bufferlist.C (close): don't call insetUnlock if the buffer
861 does not have a BufferView.
862 (unlockInset): ditto + don't access the_locking_inset if the
863 buffer does not have a BufferView.
865 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
866 certain circumstances so that we don't continue a keyboard
867 operation long after the key was released. Try f.ex. to load a
868 large document, press PageDown for some seconds and then release
869 it. Before this change the document would contine to scroll for
870 some time, with this change it stops imidiatly.
872 * src/support/block.h: don't allocate more space than needed. As
873 long as we don't try to write to the arr[x] in a array_type arr[x]
874 it is perfectly ok. (if you write to it you might segfault).
875 added operator value_type*() so that is possible to pass the array
876 to functions expecting a C-pointer.
878 * lib/Makefile.am (dist-hook): don't fail completely if unable to
881 * intl/*: updated to gettext 0.10.35, tried to add our own
882 required modifications. Please verify.
884 * po/*: updated to gettext 0.10.35, tried to add our own required
885 modifications. Please verify.
887 * src/support/lstrings.C (tostr): go at fixing the problem with
888 cxx and stringstream. When stringstream is used return
889 oss.str().c_str() so that problems with lyxstring and basic_string
890 are avoided. Note that the best solution would be for cxx to use
891 basic_string all the way, but it is not conformant yet. (it seems)
893 * src/lyx_cb.C + other files: moved several global functions to
894 class BufferView, some have been moved to BufferView.[Ch] others
895 are still located in lyx_cb.C. Code changes because of this. (part
896 of "get rid of current_view project".)
898 * src/buffer.C + other files: moved several Buffer functions to
899 class BufferView, the functions are still present in buffer.C.
900 Code changes because of this.
902 * config/lcmessage.m4: updated to most recent. used when creating
905 * config/progtest.m4: updated to most recent. used when creating
908 * config/gettext.m4: updated to most recent. applied patch for
911 * config/gettext.m4.patch: new file that shows what changes we
912 have done to the local copy of gettext.m4.
914 * config/libtool.m4: new file, used in creation of acinclude.m4
916 * config/lyxinclude.m4: new file, this is the lyx created m4
917 macros, used in making acinclude.m4.
919 * autogen.sh: GNU m4 discovered as a separate task not as part of
920 the lib/configure creation.
921 Generate acinlucde from files in config. Actually cat
922 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
923 easier to upgrade .m4 files that really are external.
925 * src/Spacing.h: moved using std::istringstream to right after
926 <sstream>. This should fix the problem seen with some compilers.
928 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
930 * src/lyx_cb.C: began some work to remove the dependency a lot of
931 functions have on BufferView::text, even if not really needed.
932 (GetCurrentTextClass): removed this func, it only hid the
935 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
936 forgot this in last commit.
938 * src/Bullet.C (bulletEntry): use static char const *[] for the
939 tables, becuase of this the return arg had to change to string.
941 (~Bullet): removed unneeded destructor
943 * src/BufferView.C (beforeChange): moved from lyx_cb.C
944 (insetSleep): moved from Buffer
945 (insetWakeup): moved from Buffer
946 (insetUnlock): moved from Buffer
948 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
949 from Buffer to BufferView.
951 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
953 * config/ltmain.sh: updated to version 1.3.4 of libtool
955 * config/ltconfig: updated to version 1.3.4 of libtool
957 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
960 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
961 Did I get that right?
963 * src/lyxlex.h: add a "using" directive or two.
964 * src/Spacing.h: ditto.
965 * src/insets/figinset.C: ditto.
966 * src/support/filetools.C: ditto.
967 * src/support/lstrings.C: ditto.
968 * src/BufferView.C: ditto.
969 * src/bufferlist.C: ditto.
970 * src/lyx_cb.C: ditto.
971 * src/lyxlex.C: ditto.
973 * NEWS: add some changes for 1.1.4.
975 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
977 * src/BufferView.C: first go at a TextCache to speed up switching
980 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
982 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
983 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
984 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
985 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
988 * src/mathed/math_defs.h (MathedRowSt): make sure that all
989 members of the struct are correctly initialized to 0 (detected by
991 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
992 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
994 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
995 pidwait, since it was allocated with "new". This was potentially
996 very bad. Thanks to Michael Schmitt for running purify for us.
999 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1001 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
1003 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
1005 1999-12-30 Allan Rae <rae@lyx.org>
1007 * lib/templates/IEEEtran.lyx: minor change
1009 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
1010 src/mathed/formula.C (LocalDispatch): askForText changes
1012 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
1013 know when a user has cancelled input. Fixes annoying problems with
1014 inserting labels and version control.
1016 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1018 * src/support/lstrings.C (tostr): rewritten to use strstream and
1021 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1023 * src/support/filetools.C (IsFileWriteable): use fstream to check
1024 (IsDirWriteable): use fileinfo to check
1026 * src/support/filetools.h (FilePtr): whole class deleted
1028 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
1030 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
1032 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
1034 * src/bufferlist.C (write): use ifstream and ofstream instead of
1037 * src/Spacing.h: use istrstream instead of sscanf
1039 * src/mathed/math_defs.h: change first arg to istream from FILE*
1041 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
1043 * src/mathed/math_parser.C: have yyis to be an istream
1044 (LexGetArg): use istream (yyis)
1046 (mathed_parse): ditto
1047 (mathed_parser_file): first arg istream instead of FILE*, set yyis
1049 * src/mathed/formula.C (Read): rewritten to use istream
1051 * src/mathed/formulamacro.C (Read): rewritten to use istream
1053 * src/lyxlex.h (~LyXLex): deleted desturctor
1054 (getStream): new function, returns an istream
1055 (getFile): deleted funtion
1056 (IsOK): return is.good();
1058 * src/lyxlex.C (LyXLex): delete file and owns_file
1059 (setFile): open an filebuf and assign that to a istream instead of
1061 (setStream): new function, takes an istream as arg.
1062 (setFile): deleted function
1063 (EatLine): rewritten us use istream instead of FILE*
1067 * src/table.C (LyXTable): use istream instead of FILE*
1068 (Read): rewritten to take an istream instead of FILE*
1070 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1072 * src/buffer.C (Dispatch): remove an extraneous break statement.
1074 * src/support/filetools.C (QuoteName): change to do simple
1075 'quoting'. More work is necessary. Also changed to do nothing
1076 under emx (needs fix too).
1077 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
1079 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
1080 config.h.in to the AC_DEFINE_UNQUOTED() call.
1081 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
1082 needs char * as argument (because Solaris 7 declares it like
1085 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
1086 remove definition of BZERO.
1088 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1090 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
1091 defined, "lyxregex.h" if not.
1093 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
1095 (REGEX): new variable that is set to regex.c lyxregex.h when
1096 AM_CONDITIONAL USE_REGEX is set.
1097 (libsupport_la_SOURCES): add $(REGEX)
1099 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
1102 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
1105 * configure.in: add call to LYX_REGEX
1107 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
1108 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
1110 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1112 * lib/bind/fi_menus.bind: new file, from
1113 pauli.virtanen@saunalahti.fi.
1115 * src/buffer.C (getBibkeyList): pass the parameter delim to
1116 InsetInclude::getKeys and InsetBibtex::getKeys.
1118 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
1119 is passed to Buffer::getBibkeyList
1121 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
1122 instead of the hardcoded comma.
1124 * src/insets/insetbib.C (getKeys): make sure that there are not
1125 leading blanks in bibtex keys. Normal latex does not care, but
1126 harvard.sty seems to dislike blanks at the beginning of citation
1127 keys. In particular, the retturn value of the function is
1129 * INSTALL: make it clear that libstdc++ is needed and that gcc
1130 2.7.x probably does not work.
1132 * src/support/filetools.C (findtexfile): make debug message go to
1134 * src/insets/insetbib.C (getKeys): ditto
1136 * src/debug.C (showTags): make sure that the output is correctly
1139 * configure.in: add a comment for TWO_COLOR_ICON define.
1141 * acconfig.h: remove all the entries that already defined in
1142 configure.in or acinclude.m4.
1144 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
1145 to avoid user name, date and copyright.
1147 1999-12-21 Juergen Vigna <jug@sad.it>
1149 * src/table.C (Read): Now read bogus row format informations
1150 if the format is < 5 so that afterwards the table can
1151 be read by lyx but without any format-info. Fixed the
1152 crash we experienced when not doing this.
1154 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
1156 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
1157 (RedoDrawingOfParagraph): ditto
1158 (RedoParagraphs): ditto
1159 (RemoveTableRow): ditto
1161 * src/text.C (Fill): rename arg paperwidth -> paper_width
1163 * src/buffer.C (insertLyXFile): rename var filename -> fname
1164 (writeFile): rename arg filename -> fname
1165 (writeFileAscii): ditto
1166 (makeLaTeXFile): ditto
1167 (makeLinuxDocFile): ditto
1168 (makeDocBookFile): ditto
1170 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
1173 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
1175 * src/bmtable.h: add extern "C" on this file when __cplusplus is
1178 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
1179 compiled by a C compiler not C++.
1181 * src/layout.h (LyXTextClass): added typedef for const_iterator
1182 (LyXTextClassList): added typedef for const_iterator + member
1183 functions begin and end.
1185 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
1186 iterators to fill the choice_class.
1187 (updateLayoutChoice): rewritten to use iterators to fill the
1188 layoutlist in the toolbar.
1190 * src/BufferView.h (BufferView::work_area_width): removed unused
1193 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
1195 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
1196 (sgmlCloseTag): ditto
1198 * src/support/lstrings.h: return type of countChar changed to
1201 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1202 what version of this func to use. Also made to return unsigned int.
1204 * configure.in: call LYX_STD_COUNT
1206 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1207 conforming std::count.
1209 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1211 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1212 and a subscript would give bad display (patch from Dekel Tsur
1213 <dekel@math.tau.ac.il>).
1215 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
1217 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1220 * src/chset.h: add a few 'using' directives
1222 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1223 triggered when no buffer is active
1225 * src/layout.C: removed `break' after `return' in switch(), since
1228 * src/lyx_main.C (init): make sure LyX can be ran in place even
1229 when libtool has done its magic with shared libraries. Fix the
1230 test for the case when the system directory has not been found.
1232 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1233 name for the latex file.
1234 (MenuMakeHTML): ditto
1236 * src/buffer.h: add an optional boolean argument, which is passed
1239 1999-12-20 Allan Rae <rae@lyx.org>
1241 * lib/templates/IEEEtran.lyx: small correction and update.
1243 * configure.in: Attempted to use LYX_PATH_HEADER
1245 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1247 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1248 input from JMarc. Now use preprocessor to find the header.
1249 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1250 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1251 LYX_STL_STRING_FWD. See comments in file.
1253 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
1255 * The global MiniBuffer * minibuffer variable is dead.
1257 * The global FD_form_main * fd_form_main variable is dead.
1259 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1261 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1263 * src/table.h: add the LOstream.h header
1264 * src/debug.h: ditto
1266 * src/LyXAction.h: change the explaination of the ReadOnly
1267 attribute: is indicates that the function _can_ be used.
1269 * src/LyXAction.C (init): find-replace _can_ be used in read-only
1272 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1274 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1280 * src/paragraph.C (GetWord): assert on pos>=0
1283 * src/support/lyxstring.C: condition the use of an invariant on
1285 * src/support/lyxstring.h: ditto
1287 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1288 Use LAssert.h instead of plain assert().
1290 * src/support/lstrings.h: add LAssert.h, in case it is needed.
1292 * src/lyxfunc.C: do not include LAssert.h, it is not used.
1293 * src/support/filetools.C: ditto
1295 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1298 * INSTALL: document the new configure flags
1300 * configure.in: suppress --with-debug; add --enable-assertions
1302 * acinclude.m4: various changes in alignment of help strings.
1304 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1306 * src/kbmap.C: commented out the use of the hash map in kb_map,
1307 beginning of movement to a stl::container.
1309 * several files: removed code that was not in effect when
1310 MOVE_TEXT was defined.
1312 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1313 for escaping should not be used. We can discuss if the string
1314 should be enclosed in f.ex. [] instead of "".
1316 * src/trans_mgr.C (insert): use the new returned value from
1317 encodeString to get deadkeys and keymaps done correctly.
1319 * src/chset.C (encodeString): changed to return a pair, to tell
1320 what to use if we know the string.
1322 * src/lyxscreen.h (fillArc): new function.
1324 * src/FontInfo.C (resize): rewritten to use more std::string like
1325 structore, especially string::replace.
1327 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1330 * configure.in (chmod +x some scripts): remove config/gcc-hack
1332 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1334 * src/buffer.C (writeFile): change once again the top comment in a
1335 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1336 instead of an hardcoded version number.
1337 (makeDocBookFile): ditto
1339 * src/version.h: add new define LYX_DOCVERSION
1341 * po/de.po: update from Pit Sütterlin
1342 * lib/bind/de_menus.bind: ditto.
1344 * src/lyxfunc.C (Dispatch): call MenuExport()
1345 * src/buffer.C (Dispatch): ditto
1347 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1348 LyXFunc::Dispatch().
1349 (MenuExport): new function, moved from
1350 LyXFunc::Dispatch().
1352 * src/trans_mgr.C (insert): small cleanup
1353 * src/chset.C (loadFile): ditto
1355 * lib/kbd/iso8859-1.cdef: add missing backslashes
1357 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1359 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1360 help with placing the manually drawn accents better.
1362 (Draw): x2 and hg changed to float to minimize rounding errors and
1363 help place the accents better.
1365 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1366 unsigned short to char is just wrong...cast the char to unsigned
1367 char instead so that the two values can compare sanely. This
1368 should also make the display of insetlatexaccents better and
1369 perhaps also some other insets.
1371 (lbearing): new function
1374 1999-12-15 Allan Rae <rae@lyx.org>
1376 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
1377 header that provides a wrapper around the very annoying SGI STL header
1380 * src/support/lyxstring.C, src/LString.h:
1381 removed old SGI-STL-compatability attempts.
1383 * configure.in: Use LYX_STL_STRING_FWD.
1385 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
1386 stl_string_fwd.h is around and try to determine it's location.
1387 Major improvement over previous SGI STL 3.2 compatability.
1388 Three small problems remain with this function due to my zero
1389 knowledge of autoconf. JMarc and lgb see the comments in the code.
1391 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1393 * src/broken_const.h, config/hack-gcc, config/README: removed
1395 * configure.in: remove --with-gcc-hack option; do not call
1398 * INSTALL: remove documentation of --with-broken-const and
1401 * acconfig.h: remove all trace of BROKEN_CONST define
1403 * src/buffer.C (makeDocBookFile): update version number in output
1405 (SimpleDocBookOnePar): fix an assert when trying to a character
1406 access beyond string length
1409 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1411 * po/de.po: fix the Export menu
1413 * lyx.man: update the description of -dbg
1415 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1416 (commandLineHelp): updated
1417 (easyParse): show list of available debug levels if -dbg is passed
1420 * src/Makefile.am: add debug.C
1422 * src/debug.h: moved some code to debug.C
1424 * src/debug.C: new file. Contains code to set and show debug
1427 * src/layout.C: remove 'break' after 'continue' in switch
1428 statements, since these cannot be reached.
1430 1999-12-13 Allan Rae <rae@lyx.org>
1432 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1433 (in_word_set): hash() -> math_hash()
1435 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
1437 * acconfig.h: Added a test for whether we are using exceptions in the
1438 current compilation run. If so USING_EXCEPTIONS is defined.
1440 * config.in: Check for existance of stl_string_fwd.h
1441 * src/LString.h: If compiling --with-included-string and SGI's
1442 STL version 3.2 is present (see above test) we need to block their
1443 forward declaration of string and supply a __get_c_string().
1444 However, it turns out this is only necessary if compiling with
1445 exceptions enabled so I've a bit more to add yet.
1447 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1448 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1449 src/support/LRegex.h, src/undo.h:
1450 Shuffle the order of the included files a little to ensure that
1451 LString.h gets included before anything that includes stl_string_fwd.h
1453 * src/support/lyxstring.C: We need to #include LString.h instead of
1454 lyxstring.h to get the necessary definition of __get_c_string.
1455 (__get_c_string): New function. This is defined static just like SGI's
1456 although why they need to do this I'm not sure. Perhaps it should be
1457 in lstrings.C instead.
1459 * lib/templates/IEEEtran.lyx: New template file.
1461 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1463 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1464 * intl/Makefile.in (MKINSTALLDIRS): ditto
1466 * src/LyXAction.C (init): changed to hold the LFUN data in a
1467 automatic array in stead of in callso to newFunc, this speeds up
1468 compilation a lot. Also all the memory used by the array is
1469 returned when the init is completed.
1471 * a lot of files: compiled with -Wold-style-cast, changed most of
1472 the reported offenders to C++ style casts. Did not change the
1473 offenders in C files.
1475 * src/trans.h (Match): change argument type to unsigned int.
1477 * src/support/DebugStream.C: fix some types on the streambufs so
1478 that it works on a conforming implementation.
1480 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1482 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1484 * src/support/lyxstring.C: remove the inline added earlier since
1485 they cause a bunch of unsatisfied symbols when linking with dec
1486 cxx. Cxx likes to have the body of inlines at the place where they
1489 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1490 accessing negative bounds in array. This fixes the crash when
1491 inserting accented characters.
1492 * src/trans.h (Match): ditto
1494 * src/buffer.C (Dispatch): since this is a void, it should not try
1495 to return anything...
1497 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1499 * src/buffer.h: removed the two friends from Buffer. Some changes
1500 because of this. Buffer::getFileName and Buffer::setFileName
1501 renamed to Buffer::fileName() and Buffer::fileName(...).
1503 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1505 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1506 and Buffer::update(short) to BufferView. This move is currently
1507 controlled by a define MOVE_TEXT, this will be removed when all
1508 shows to be ok. This move paves the way for better separation
1509 between buffer contents and buffer view. One side effect is that
1510 the BufferView needs a rebreak when swiching buffers, if we want
1511 to avoid this we can add a cache that holds pointers to LyXText's
1512 that is not currently in use.
1514 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1517 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1519 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1521 * lyx_main.C: new command line option -x (or --execute) and
1522 -e (or --export). Now direct conversion from .lyx to .tex
1523 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
1524 Unfortunately, X is still needed and the GUI pops up during the
1527 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1529 * src/Spacing.C: add a using directive to bring stream stuff into
1531 * src/paragraph.C: ditto
1532 * src/buffer.C: ditto
1534 * NEWS: updated a bit the new features of 1.1.3 (took a few things
1535 from Lars' announcement).
1537 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1538 example files from Tino Meinen.
1540 1999-12-06 Allan Rae <rae@lyx.org>
1542 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1544 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1546 * src/support/lyxstring.C: added a lot of inline for no good
1549 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1550 latexWriteEndChanges, they were not used.
1552 * src/layout.h (operator<<): output operator for PageSides
1554 * src/mathed/math_iter.C (my_memcpy): slightly changed.
1556 * some example files: loaded in LyX 1.0.4 and saved again to update
1557 certain constructs (table format)
1559 * a lot of files: did the change to use fstream/iostream for all
1560 writing of files. Done with a close look at Andre Poenitz's patch.
1562 * some files: whitespace changes.
1564 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1566 * src/mathed/math_iter.C (my_memcpy): new function. Since the
1567 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1568 architecture, we provide our own. It is used unconditionnally, but
1569 I do not think this is a performance problem. Thanks to Angus
1570 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1571 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1573 (GetInset): use my_memcpy.
1577 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1578 it is easier to understand, but it uses less TeX-only constructs now.
1580 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1581 elements contain spaces
1583 * lib/configure: regenerated
1585 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1586 elements contain spaces; display the list of programs that are
1589 * autogen.sh: make sure lib/configure is executable
1591 * lib/examples/*: rename the tutorial examples to begin with the
1592 two-letters language code.
1594 * src/lyxfunc.C (getStatus): do not query current font if no
1597 * src/lyx_cb.C (RunScript): use QuoteName
1598 (MenuRunDvips): ditto
1599 (PrintApplyCB): ditto
1601 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1602 around argument, so that it works well with the current shell.
1603 Does not work properly with OS/2 shells currently.
1605 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1606 * src/LyXSendto.C (SendtoApplyCB): ditto
1607 * src/lyxfunc.C (Dispatch): ditto
1608 * src/buffer.C (runLaTeX): ditto
1609 (runLiterate): ditto
1610 (buildProgram): ditto
1612 * src/lyx_cb.C (RunScript): ditto
1613 (MenuMakeLaTeX): ditto
1615 * src/buffer.h (getLatexName): new method
1617 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1619 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1621 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1622 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1623 (create_math_panel): ditto
1625 * src/lyxfunc.C (getStatus): re-activate the code which gets
1626 current font and cursor; add test for export to html.
1628 * src/lyxrc.C (read): remove unreachable break statements; add a
1631 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1633 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1635 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1636 introduced by faulty regex.
1637 * src/buffer.C: ditto
1638 * src/lastfiles.C: ditto
1639 * src/paragraph.C: ditto
1640 * src/table.C: ditto
1641 * src/vspace.C: ditto
1642 * src/insets/figinset.C: ditto
1643 Note: most of these is absolutely harmless, except the one in
1644 src/mathed formula.C.
1646 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
1648 * src/ImportNoweb.C (documentclass): fixed bounds for substr
1649 operation, yielding correct results for the reLyX command.
1651 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1653 * src/support/filetools.C (ExpandPath): removed an over eager
1655 (ReplaceEnvironmentPath): ditto
1657 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1658 shows that we are doing something fishy in our code...
1662 * src/lyxrc.C (read): use a double switch trick to get more help
1663 from the compiler. (the same trick is used in layout.C)
1664 (write): new function. opens a ofstream and pass that to output
1665 (output): new function, takes a ostream and writes the lyxrc
1666 elemts to it. uses a dummy switch to make sure no elements are
1669 * src/lyxlex.h: added a struct pushpophelper for use in functions
1670 with more than one exit point.
1672 * src/lyxlex.[Ch] (GetInteger): made it const
1676 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1678 * src/layout.[hC] : LayoutTags splitted into several enums, new
1679 methods created, better error handling cleaner use of lyxlex. Read
1682 * src/bmtable.[Ch]: change some member prototypes because of the
1683 image const changes.
1685 * commandtags.h, src/LyXAction.C (init): new function:
1686 "preferences-save", saves the lyxrc entries into .lyx/preferences.
1687 This file is not read automatically but you can add \input
1688 preferences to your lyxrc if you want to. We need to discuss how
1691 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1692 in .aux, also remove .bib and .bst files from dependencies when
1695 * src/BufferView.C, src/LyXView.C: add const_cast several places
1696 because of changes to images.
1698 * lib/images/*: same change as for images/*
1700 * lib/lyxrc.example: Default for accept_compound is false not no.
1702 * images/*: changed to be const, however I have som misgivings
1703 about this change so it might be changed back.
1705 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1707 * lib/configure, po/POTFILES.in: regenerated
1709 * autogen.sh: autogenerate lib/configure from lib/configure.m4
1711 * config/lib_configure.m4: removed
1713 * lib/configure.m4: new file (was config/lib_configure.m4)
1715 * configure.in: do not test for rtti, since we do not use it.
1717 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1719 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1720 doubling of allocated space scheme. This makes it faster for large
1721 strings end to use less memory for small strings. xtra rememoved.
1723 * src/insets/figinset.C (waitalarm): commented out.
1724 (GhostscriptMsg): use static_cast
1725 (GhostscriptMsg): use new instead of malloc to allocate memory for
1726 cmap. also delete the memory after use.
1728 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1730 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1731 for changes in bibtex database or style.
1732 (runBibTeX): remove all .bib and .bst files from dep before we
1734 (run): use scanAuc in when dep file already exist.
1736 * src/DepTable.C (remove_files_with_extension): new method
1739 * src/DepTable.[Ch]: made many of the methods const.
1741 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1743 * src/bufferparams.C: make sure that the default textclass is
1744 "article". It used to be the first one by description order, but
1745 now the first one is "docbook".
1747 * src/lyx_main.C (setDebuggingLevel): change type of argument to
1748 string; call Debug::value.
1749 (easyParse): pass complete argument to setDebuggingLevel().
1751 * src/debug.h (value): fix the code that parses debug levels.
1753 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1756 * src/LyXAction.C: use Debug::ACTION as debug channel.
1758 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1760 * NEWS: updated for the future 1.1.3 release.
1762 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1763 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1764 it should. This is of course a controversial change (since many
1765 people will find that their lyx workscreen is suddenly full of
1766 red), but done for the sake of correctness.
1768 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1769 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1771 * src/insets/inseterror.h, src/insets/inseturl.h,
1772 src/insets/insetinfo.h, src/insets/figinset.h,
1773 src/mathed/formulamacro.h, src/mathed/math_macro.h
1774 (EditMessage): add a missing const and add _() to make sure that
1777 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1778 src/insets/insetbib.C, src/support/filetools.C: add `using'
1781 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1782 doing 'Insert index of last word' at the beginning of a paragraph.
1784 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1786 * several files: white-space changes.
1788 * src/mathed/formula.C: removed IsAlpha and IsDigit
1790 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1791 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1794 * src/insets/figinset.C (GetPSSizes): don't break when
1795 "EndComments" is seen. But break when a boundingbox is read.
1797 * all classes inherited from Inset: return value of Clone
1798 changed back to Inset *.
1800 * all classes inherited form MathInset: return value of Clone
1801 changed back to MathedInset *.
1803 * src/insets/figinset.C (runqueue): use a ofstream to output the
1804 gs/ps file. Might need some setpresicion or setw. However I can
1805 see no problem with the current code.
1806 (runqueue): use sleep instead of the alarm/signal code. I just
1807 can't see the difference.
1809 * src/paragraph.C (LyXParagraph): reserve space in the new
1810 paragraph and resize the inserted paragraph to just fit.
1812 * src/lyxfunc.h (operator|=): added operator for func_status.
1814 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1815 check for readable file.
1817 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1818 check for readable file.
1819 (MenuMakeLinuxDoc): ditto
1820 (MenuMakeDocBook): ditto
1821 (MenuMakeAscii): ditto
1822 (InsertAsciiFile): split the test for openable and readable
1824 * src/bmtable.C (draw_bitmaptable): use
1825 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1827 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1828 findtexfile from LaTeX to filetools.
1830 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1831 instead of FilePtr. Needs to be verified by a literate user.
1833 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1835 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1836 (EditMessage): likewise.
1838 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1839 respectively as \textasciitilde and \textasciicircum.
1841 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1843 * src/support/lyxstring.h: made the methods that take iterators
1846 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1847 (regexMatch): made is use the real regex class.
1849 * src/support/Makefile.am: changed to use libtool
1851 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1853 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1855 (MathIsInset ++): changed several macros to be inline functions
1858 * src/mathed/Makefile.am: changed to use libtool
1860 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1862 * src/insets/inset* : Clone changed to const and return type is
1863 the true insettype not just Inset*.
1865 * src/insets/Makefile.am: changed to use libtool
1867 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1869 * src/undo.[Ch] : added empty() and changed some of the method
1872 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1874 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1875 setID use block<> for the bullets array, added const several places.
1877 * src/lyxfunc.C (getStatus): new function
1879 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1880 LyXAction, added const to several funtions.
1882 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1883 a std::map, and to store the dir items in a vector.
1885 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1888 * src/LyXView.[Ch] + other files : changed currentView to view.
1890 * src/LyXAction.[Ch] : ported from the old devel branch.
1892 * src/.cvsignore: added .libs and a.out
1894 * configure.in : changes to use libtool.
1896 * acinclude.m4 : inserted libtool.m4
1898 * .cvsignore: added libtool
1900 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1902 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1903 file name in insets and mathed directories (otherwise the
1904 dependency is not taken in account under cygwin).
1906 * src/text2.C (InsertString[AB]): make sure that we do not try to
1907 read characters past the string length.
1909 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1911 * lib/doc/LaTeXConfig.lyx.in,
1912 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1914 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1915 file saying who created them and when this heppened; this is
1916 useless and annoys tools like cvs.
1918 * lib/layouts/g-brief-{en,de}.layout,
1919 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1920 from Thomas Hartkens <thomas@hartkens.de>.
1922 * src/{insets,mathed}/Makefile.am: do not declare an empty
1923 LDFLAGS, so that it can be set at configure time (useful on Irix
1926 * lib/reLyX/configure.in: make sure that the prefix is set
1927 correctly in LYX_DIR.
1929 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1931 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1932 be used by 'command-sequence' this allows to bind a key to a
1933 sequence of LyX-commands
1934 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1936 * src/LyXAction.C: add "command-sequence"
1938 * src/LyXFunction.C: handling of "command-sequence"
1940 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1941 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1943 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1945 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1947 * src/buffer.C (writeFile): Do not output a comment giving user
1948 and date at the beginning of a .lyx file. This is useless and
1949 annoys cvs anyway; update version number to 1.1.
1951 * src/Makefile.am (LYX_DIR): add this definition, so that a
1952 default path is hardcoded in LyX.
1954 * configure.in: Use LYX_GNU_GETTEXT.
1956 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1957 AM_GNU_GETTEXT with a bug fixed.
1959 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1961 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1963 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1964 which is used to point to LyX data is now LYX_DIR_11x.
1966 * lyx.man: convert to a unix text file; small updates.
1968 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1970 * src/support/LSubstring.[Ch]: made the second arg of most of the
1971 constructors be a const reference.
1973 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1976 * src/support/lyxstring.[Ch] (swap): added missing member function
1977 and specialization of swap(str, str);
1979 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1981 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1982 trace of the old one.
1984 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1985 put the member definitions in undo.C.
1987 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1988 NEW_TEXT and have now only code that was included when this was
1991 * src/intl.C (LCombo): use static_cast
1993 (DispatchCallback): ditto
1995 * src/definitions.h: removed whole file
1997 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
1999 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
2000 parsing and stores in a std:map. a regex defines the file format.
2001 removed unneeded members.
2003 * src/bufferparams.h: added several enums from definitions.h here.
2004 Removed unsused destructor. Changed some types to use proper enum
2005 types. use block to have the temp_bullets and user_defined_bullets
2006 and to make the whole class assignable.
2008 * src/bufferparams.C (Copy): removed this functions, use a default
2011 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
2014 * src/buffer.C (readLyXformat2): commend out all that have with
2015 oldpapersize to do. also comment out all that hve to do with
2016 insetlatex and insetlatexdel.
2017 (setOldPaperStuff): commented out
2019 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
2021 * src/LyXAction.C: remove use of inset-latex-insert
2023 * src/mathed/math_panel.C (button_cb): use static_cast
2025 * src/insets/Makefile.am (insets_o_SOURCES): removed
2028 * src/support/lyxstring.C (helper): use the unsigned long
2029 specifier, UL, instead of a static_cast.
2031 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
2033 * src/support/block.h: new file. to be used as a c-style array in
2034 classes, so that the class can be assignable.
2036 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2038 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
2039 NULL, make sure to return an empty string (it is not possible to
2040 set a string to NULL).
2042 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2044 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
2046 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
2048 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
2049 link line, so that Irix users (for example) can set it explicitely to
2052 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
2053 it can be overidden at make time (static or dynamic link, for
2056 * src/vc-backend.C, src/LaTeXFeatures.h,
2057 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
2058 statements to bring templates to global namespace.
2060 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
2062 * src/support/lyxstring.C (operator[] const): make it standard
2065 * src/minibuffer.C (Init): changed to reflect that more
2066 information is given from the lyxvc and need not be provided here.
2068 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
2070 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
2072 * src/LyXView.C (UpdateTimerCB): use static_cast
2073 (KeyPressMask_raw_callback): ditto
2075 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
2076 buffer_, a lot of changes because of this. currentBuffer() ->
2077 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
2078 also changes to other files because of this.
2080 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
2082 * src/vc-backend.[Ch]: new files. The backends for vc handling,
2083 have no support for RCS and partial support for CVS, will be
2086 * src/insets/ several files: changes because of function name
2087 changes in Bufferview and LyXView.
2089 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
2091 * src/support/LSubstring.[Ch]: new files. These implement a
2092 Substring that can be very convenient to use. i.e. is this
2094 string a = "Mary had a little sheep";
2095 Substring(a, "sheep") = "lamb";
2096 a is now "Mary has a little lamb".
2098 * src/support/LRegex.[Ch]: a regex class that can be used to pick
2099 out patterns and subpatterns of strings. It is used by LSubstring
2100 and also by vc-backend.C
2102 * src/support/lyxstring.C: went over all the assertions used and
2103 tried to correct the wrong ones and flag which of them is required
2104 by the standard. some bugs found because of this. Also removed a
2105 couple of assertions.
2107 * src/support/Makefile.am (libsupport_a_SOURCES): added
2108 LSubstring.[Ch] and LRegex.[Ch]
2110 * src/support/FileInfo.h: have struct stat buf as an object and
2111 not a pointer to one, some changes because of this.
2113 * src/LaTeXFeatures.C (getTClassPreamble): also use the
2114 information in layout when adding the layouts preamble to the
2117 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
2120 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
2121 because of bug in OS/2.
2123 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2125 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
2126 \verbatim@font instead of \ttfamily, so that it can be redefined.
2128 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
2129 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
2130 src/layout.h, src/text2.C: add 'using' directive to bring the
2131 STL templates we need from the std:: namespace to the global one.
2132 Needed by DEC cxx in strict ansi mode.
2134 * src/support/LIstream.h,src/support/LOstream.h,
2135 src/support/lyxstring.h,src/table.h,
2136 src/lyxlookup.h: do not include <config.h> in header
2137 files. This should be done in the .C files only.
2139 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
2143 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2145 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
2146 from Kayvan to fix the tth invokation.
2148 * development/lyx.spec.in: updates from Kayvan to reflect the
2149 changes of file names.
2151 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2153 * src/text2.C (InsertStringB): use std::copy
2154 (InsertStringA): use std::copy
2156 * src/bufferlist.C: use a vector to store the buffers in. This is
2157 an internal change and should not affect any other thing.
2159 * src/BufferView.C (waitForX): use XSync instead of the lengthy
2162 * src/text.C (Fill): fix potential bug, one off bug.
2164 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2166 * src/Makefile.am (lyx_main.o): add more files it depends on.
2168 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
2170 * src/support/lyxstring.C: use size_t for the reference count,
2171 size, reserved memory and xtra.
2172 (internal_compare): new private member function. Now the compare
2173 functions should work for std::strings that have embedded '\0'
2175 (compare): all compare functions rewritten to use
2178 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2180 * src/support/lyxstring.C (compare): pass c_str()
2181 (compare): pass c_str
2182 (compare): pass c_str
2184 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2186 * src/support/DebugStream.C: <config.h> was not included correctly.
2188 * lib/configure: forgot to re-generate it :( I'll make this file
2189 auto generated soon.
2191 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2193 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
2196 * src/support/lyxstring.C: some changes from length() to rep->sz.
2197 avoids a function call.
2199 * src/support/filetools.C (SpaceLess): yet another version of the
2200 algorithm...now per Jean-Marc's suggestions.
2202 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2204 * src/layout.C (less_textclass_desc): functor for use in sorting
2206 (LyXTextClass::Read): sort the textclasses after reading.
2208 * src/support/filetools.C (SpaceLess): new version of the
2209 SpaceLess functions. What problems does this one give? Please
2212 * images/banner_bw.xbm: made the arrays unsigned char *
2214 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2216 * src/support/lyxstring.C (find): remove bogus assertion in the
2217 two versions of find where this has not been done yet.
2219 * src/support/lyxlib.h: add missing int return type to
2222 * src/menus.C (ShowFileMenu): disable exporting to html if no
2223 html export command is present.
2225 * config/lib_configure.m4: add a test for an HTML converter. The
2226 programs checked for are, in this order: tth, latex2html and
2229 * lib/configure: generated from config/lib_configure.m4.
2231 * src/lyxfunc.C (Dispatch): update and improve the execution of an
2232 html converter. The parameters are now passed through $$FName and
2233 $$OutName, instead of standard input/output.
2235 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2237 * lib/lyxrc.example: update description of \html_command.
2238 add "quotes" around \screen_font_xxx font setting examples to help
2239 people who use fonts with spaces in their names.
2241 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2243 * Distribution files: updates for v1.1.2
2245 * src/support/lyxstring.C (find): remove bogus assert and return
2246 npos for the same condition.
2248 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2250 * added patch for OS/2 from SMiyata.
2252 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2254 * src/text2.C (CutSelection): make space_wrapped a bool
2255 (CutSelection): dont declare int i until we have to.
2256 (alphaCounter): return a char const *.
2258 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2260 * src/support/syscall.C (Systemcalls::kill):
2261 src/support/filetools.C (PutEnv, PutEnvPath):
2262 src/lyx_cb.C (addNewlineAndDepth):
2263 src/FontInfo.C (FontInfo::resize): condition some #warning
2264 directives with WITH_WARNINGS.
2267 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2269 * src/layout.[Ch] + several files: access to class variables
2270 limited and made accessor functions instead a lot of code changed
2271 becuase of this. Also instead of returning pointers often a const
2272 reference is returned instead.
2274 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2276 * src/Makefile.am (dist-hook): added used to remove the CVS from
2277 cheaders upon creating a dist
2278 (EXTRA_DIST): added cheaders
2280 * src/support/lstrings.C (tostr(char)): fix it to handle param as
2281 a character not as a small integer.
2283 * src/support/lyxstring.C (find): removed Assert and added i >=
2284 rep->sz to the first if.
2286 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2288 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2289 src/LyXView.C src/buffer.C src/bufferparams.C
2290 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
2291 src/text2.C src/insets/insetinclude.C:
2292 lyxlayout renamed to textclasslist.
2294 * src/layout.C: some lyxerr changes.
2296 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2297 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2298 (LyXLayoutList): removed all traces of this class.
2299 (LyXTextClass::Read): rewrote LT_STYLE
2300 (LyXTextClass::hasLayout): new function
2301 (LyXTextClass::GetLayout): rewritten to return an iterator + has
2302 both const and nonconst version.
2303 (LyXTextClass::delete_layout): new function.
2304 (LyXTextClassList::Style): bug fix. do the right thing if layout
2306 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2307 (LyXTextClassList::NameOfLayout): ditto
2308 (LyXTextClassList::Load): ditto
2310 * src/buffer.C (makeLaTeXFile): new access to layoutlist
2312 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2314 * src/LyXAction.C (LookupFunc): added a workaround for sun
2315 compiler, on the other hand...we don't know if the current code
2316 compiles on sun at all...
2318 * src/support/filetools.C (CleanupPath): subst fix
2320 * src/insets/insetbib.C (delDatabase): subst fix, this looks
2323 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2324 complained about this one?
2326 * src/insets/insetinclude.C (Latex): subst fix
2328 * src/insets/insetbib.C (getKeys): subst fix
2330 * src/LyXSendto.C (SendtoApplyCB): subst fix
2332 * src/lyx_main.C (init): subst fix
2334 * src/layout.C (Read): subst fix
2336 * src/lyx_sendfax_main.C (button_send): subst fix
2338 * src/buffer.C (RoffAsciiTable): subst fix
2340 * src/lyx_cb.C (MenuFax): subst fix
2341 (PrintApplyCB): subst fix
2343 1999-10-26 Juergen Vigna <jug@sad.it>
2345 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2347 (Read): Cleaned up this code so now we read only format vestion >= 5
2349 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2351 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2352 come nobody has complained about this one?
2354 * src/insets/insetinclude.C (Latex): subst fix
2356 * src/insets/insetbib.C (getKeys): subst fix
2358 * src/lyx_main.C (init): subst fix
2360 * src/layout.C (Read): subst fix
2362 * src/buffer.C (RoffAsciiTable): subst fix
2364 * src/lyx_cb.C (MenuFax): subst fix.
2366 * src/layout.[hC] + some other files: rewrote to use
2367 std::container to store textclasses and layouts in.
2368 Simplified, removed a lot of code. Make all classes
2369 assignable. Further simplifications and review of type
2370 use still to be one.
2372 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2373 lastfiles to create the lastfiles partr of the menu.
2375 * src/lastfiles.[Ch]: rewritten to use deque to store the
2376 lastfiles in. Uses fstream for reading and writing. Simplifies
2379 * src/support/syscall.C: remove explicit cast.
2381 * src/BufferView.C (CursorToggleCB): removed code snippets that
2383 use explicat C++ style casts instead of C style casts. also use
2384 u_vdata instea of passing pointers in longs.
2386 * src/PaperLayout.C: removed code snippets that were commented out.
2388 * src/lyx_gui_misc.C: removed code snippets that were commented out.
2390 * src/lyx_main.C: removed code snippets that wer commented out.
2392 * src/paragraph.C: removed code snippets that were commented out.
2394 * src/lyxvc.C (logClose): use static_cast
2396 (viewLog): remove explicit cast to void*
2397 (showLog): removed old commented code
2399 * src/menus.C: use static_cast instead of C style casts. use
2400 u_vdata instead of u_ldata. remove explicit cast to (long) for
2401 pointers. Removed old code that was commented out.
2403 * src/insets/inset.C: removed old commented func
2405 * src/insets/insetref.C (InsetRef): removed old code that had been
2406 commented out for a long time.
2408 (escape): removed C style cast
2410 * src/insets/insetlatexaccent.C (Draw): removed old commented code
2412 * src/insets/insetlatex.C (Draw): removed old commented code
2413 (Read): rewritten to use string
2415 * src/insets/insetlabel.C (escape): removed C style cast
2417 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2419 * src/insets/insetindex.C: use static_cast and u_vdata, removed
2422 * src/insets/insetinclude.h: removed a couple of stupid bools
2424 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2425 (Clone): remove C style cast
2426 (getKeys): changed list to lst because of std::list
2428 * src/insets/inseterror.C (Draw): removed som old commented code.
2430 * src/insets/insetcommand.C (Draw): removed some old commented code.
2432 * src/insets/insetbib.C (bibitem_cb): removed code that has been
2433 commented out forever.
2434 (bibitem_cb): use static_cast instead of C style cast
2435 use of vdata changed to u_vdata.
2437 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2439 (CloseUrlCB): use static_cast instead of C style cast.
2440 (CloseUrlCB): added a fl_free form...it seemed to be missing.
2442 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2443 (C_InsetInfo_CloseInfoCB): forward the ob parameter
2444 (CloseInfoCB): static_cast from ob->u_vdata instead.
2445 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2448 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2449 (C_InsetError_CloseErrorCB): forward the ob parameter
2450 (CloseErrorCB): static_cast from ob->u_vdata instead.
2452 * src/vspace.h: include LString.h since we use string in this class.
2454 * src/vspace.C (lyx_advance): changed name from advance because of
2455 nameclash with stl. And since we cannot use namespaces yet...I
2456 used a lyx_ prefix instead. Expect this to change when we begin
2459 * src/BufferView.[Ch] (BufferView::~BufferView): removed
2461 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2462 and removed now defunct constructor and deconstructor.
2464 * src/BufferView.h: have backstack as a object not as a pointer.
2465 removed initialization from constructor. added include for BackStack
2467 * development/lyx.spec.in (%build): add CFLAGS also.
2469 * src/screen.C (drawFrame): removed another warning.
2471 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2473 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2474 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2475 README and ANNOUNCE a bit for the next release. More work is
2478 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2479 unbreakable if we are in freespacing mode (LyX-Code), but not in
2482 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
2484 * src/BackStack.h: fixed initialization order in constructor
2486 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2488 * acinclude.m4 (VERSION): new rules for when a version is
2489 development, added also a variable for prerelease.
2490 (warnings): we set with_warnings=yes for prereleases
2491 (lyx_opt): prereleases compile with same optimization as development
2492 (CXXFLAGS): only use pedantic if we are a development version
2494 * src/BufferView.C (restorePosition): don't do anything if the
2497 * src/BackStack.h: added member empty, use this to test if there
2498 is anything to pop...
2500 1999-10-25 Juergen Vigna <jug@sad.it>
2503 * forms/layout_forms.fd +
2504 * forms/latexoptions.fd +
2505 * lyx.fd: changed for various form resize issues
2507 * src/mathed/math_panel.C +
2508 * src/insets/inseterror.C +
2509 * src/insets/insetinfo.C +
2510 * src/insets/inseturl.C +
2511 * src/insets/inseturl.h +
2514 * src/PaperLayout.C +
2515 * src/ParagraphExtra.C +
2516 * src/TableLayout.C +
2518 * src/layout_forms.C +
2525 * src/menus.C: fixed various resize issues. So now forms can be
2526 resized savely or not be resized at all.
2528 * forms/form_url.fd +
2529 * src/insets/form_url.[Ch]: added because it's cleaner and easier
2532 * src/insets/Makefile.am: added files form_url.[Ch]
2534 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2536 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2537 (and presumably 6.2).
2539 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2540 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2541 remaining static member callbacks.
2543 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2546 * src/support/lyxstring.h: declare struct Srep as friend of
2547 lyxstring, since DEC cxx complains otherwise.
2549 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2551 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2553 * src/LaTeX.C (run): made run_bibtex also depend on files with
2555 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2556 are put into the dependency file.
2558 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2559 the code has shown itself to work
2560 (create_ispell_pipe): removed another warning, added a comment
2563 * src/minibuffer.C (ExecutingCB): removed code that has been
2564 commented out a long time
2566 * src/lyxfunc.C (processKeyEvent): removed some very old commented
2567 out code + a warning.
2569 * src/support/lyxstring.h: comment out the three private
2570 operators, when compiling with string ansi conforming compilers
2573 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2575 (pixmapFromBitmapData): change type of bdata to be unsigned char *
2576 (pixmapFromBitmapData): add a reinterpret_cast in the call to
2579 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2582 * src/mathed/math_panel.C (create_math_panel): remove explicit
2585 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2588 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2589 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2590 to XCreatePixmapFromBitmapData
2591 (fl_set_bmtable_data): change the last argument to be unsigned
2593 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2594 and bh to be unsigned int, remove explicit casts in call to
2595 XReadBitmapFileData.
2597 * images/arrows.xbm: made the arrays unsigned char *
2598 * images/varsz.xbm: ditto
2599 * images/misc.xbm: ditto
2600 * images/greek.xbm: ditto
2601 * images/dots.xbm: ditto
2602 * images/brel.xbm: ditto
2603 * images/bop.xbm: ditto
2605 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2607 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
2608 (LYX_PROG_CXX): added -pedantic to g++ compile options when
2609 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2611 (LYX_CXX_CHEADERS): added <clocale> to the test.
2613 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
2615 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2617 * src/support/lyxstring.C (append): fixed something that must be a
2618 bug, rep->assign was used instead of rep->append.
2620 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2623 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2624 lyx insert double chars. Fix spotted by Kayvan.
2626 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2628 * Fixed the tth support. I messed up with the Emacs patch apply feature
2629 and omitted the changes in lyxrc.C.
2631 1999-10-22 Juergen Vigna <jug@sad.it>
2633 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2635 * src/lyx_cb.C (MenuInsertRef) +
2636 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2637 the form cannot be resized under it limits (fixes a segfault)
2639 * src/lyx.C (create_form_form_ref) +
2640 * forms/lyx.fd: Changed Gravity on name input field so that it is
2643 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2645 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2646 <ostream> and <istream>.
2648 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2649 whether <fstream> provides the latest standard features, or if we
2650 have an oldstyle library (like in egcs).
2651 (LYX_CXX_STL_STRING): fix the test.
2653 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2654 code on MODERN_STL_STREAM.
2656 * src/support/lyxstring.h: use L{I,O}stream.h.
2658 * src/support/L{I,O}stream.h: new files, designed to setup
2659 correctly streams for our use
2660 - includes the right header depending on STL capabilities
2661 - puts std::ostream and std::endl (for LOStream.h) or
2662 std::istream (LIStream.h) in toplevel namespace.
2664 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2666 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2667 was a bib file that had been changed we ensure that bibtex is run.
2668 (runBibTeX): enhanced to extract the names of the bib files and
2669 getting their absolute path and enter them into the dep file.
2670 (findtexfile): static func that is used to look for tex-files,
2671 checks for absolute patchs and tries also with kpsewhich.
2672 Alternative ways of finding the correct files are wanted. Will
2674 (do_popen): function that runs a command using popen and returns
2675 the whole output of that command in a string. Should be moved to
2678 * src/DepTable.[Ch] (extchanged): new function that returns true if a
2679 file with extension ext has changed.
2681 * src/insets/figinset.C: added ifdef guards around the fl_free
2682 code that jug commented out. Now it is commented out when
2683 compiling with XForms == 0.89.
2685 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2686 to lyxstring.C, and only keep a forward declaration in
2687 lyxstring.h. Simplifies the header file a bit and should help a
2688 bit on compile time too. Also changes to Srep will not mandate a
2689 recompile of code just using string.
2690 (~lyxstring): definition moved here since it uses srep.
2691 (size): definition moved here since it uses srep.
2693 * src/support/lyxstring.h: removed a couple of "inline" that should
2696 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2698 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2701 1999-10-21 Juergen Vigna <jug@sad.it>
2703 * src/table.C (SetPWidth): Just a small fix so the alignment is not
2704 set to left if I just remove the width entry (or it is empty).
2706 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2707 paragraph when having dummy paragraphs.
2709 1999-10-20 Juergen Vigna <jug@sad.it>
2711 * src/insets/figinset.C: just commented some fl_free_form calls
2712 and added warnings so that this calls should be activated later
2713 again. This avoids for now a segfault, but we have a memory leak!
2715 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2716 'const char * argument' to 'string argument', this should
2717 fix some Asserts() in lyxstring.C.
2719 * src/lyxfunc.h: Removed the function argAsString(const char *)
2720 as it is not used anymore.
2722 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
2724 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2727 * src/Literate.h: some funcs moved from public to private to make
2728 interface clearer. Unneeded args removed.
2730 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2732 (scanBuildLogFile): ditto
2734 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2735 normal TeX Error. Still room for improvement.
2737 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2739 * src/buffer.C (insertErrors): changes to make the error
2740 desctription show properly.
2742 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2745 * src/support/lyxstring.C (helper): changed to use
2746 sizeof(object->rep->ref).
2747 (operator>>): changed to use a pointer instead.
2749 * src/support/lyxstring.h: changed const reference & to value_type
2750 const & lets see if that helps.
2752 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2754 * Makefile.am (rpmdist): fixed to have non static package and
2757 * src/support/lyxstring.C: removed the compilation guards
2759 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2762 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2763 conditional compile of lyxstring.Ch
2765 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2766 stupid check, but it is a lot better than the bastring hack.
2767 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2769 * several files: changed string::erase into string::clear. Not
2772 * src/chset.C (encodeString): use a char temporary instead
2774 * src/table.C (TexEndOfCell): added tostr around
2775 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2776 (TexEndOfCell): ditto
2777 (TexEndOfCell): ditto
2778 (TexEndOfCell): ditto
2779 (DocBookEndOfCell): ditto
2780 (DocBookEndOfCell): ditto
2781 (DocBookEndOfCell): ditto
2782 (DocBookEndOfCell): ditto
2784 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2786 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2788 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2789 (MenuBuildProg): added tostr around ret
2790 (MenuRunChktex): added tostr around ret
2791 (DocumentApplyCB): added tostr around ret
2793 * src/chset.C (encodeString): added tostr around t->ic
2795 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2796 (makeLaTeXFile): added tostr around tocdepth
2797 (makeLaTeXFile): added tostr around ftcound - 1
2799 * src/insets/insetbib.C (setCounter): added tostr around counter.
2801 * src/support/lyxstring.h: added an operator+=(int) to catch more
2804 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2805 (lyxstring): We DON'T allow NULL pointers.
2807 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2809 * src/mathed/math_macro.C (MathMacroArgument::Write,
2810 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2811 when writing them out.
2813 * src/LString.C: remove, since it is not used anymore.
2815 * src/support/lyxstring.C: condition the content to
2816 USE_INCLUDED_STRING macro.
2818 * src/mathed/math_symbols.C, src/support/lstrings.C,
2819 src/support/lyxstring.C: add `using' directive to specify what
2820 we need in <algorithm>. I do not think that we need to
2821 conditionalize this, but any thought is appreciated.
2823 * many files: change all callback functions to "C" linkage
2824 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2825 strict_ansi. Those who were static are now global.
2826 The case of callbacks which are static class members is
2827 trickier, since we have to make C wrappers around them (see
2828 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2829 did not finish this yet, since it defeats the purpose of
2830 encapsulation, and I am not sure what the best route is.
2832 1999-10-19 Juergen Vigna <jug@sad.it>
2834 * src/support/lyxstring.C (lyxstring): we permit to have a null
2835 pointer as assignment value and just don't assign it.
2837 * src/vspace.C (nextToken): corrected this function substituting
2838 find_first(_not)_of with find_last_of.
2840 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2841 (TableOptCloseCB) (TableSpeCloseCB):
2842 inserted fl_set_focus call for problem with fl_hide_form() in
2845 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2847 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2850 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2852 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2853 LyXLex::next() and not eatline() to get its argument.
2855 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2857 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2858 instead, use fstreams for io of the depfile, removed unneeded
2859 functions and variables.
2861 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2862 vector instead, removed all functions and variables that is not in
2865 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2867 * src/buffer.C (insertErrors): use new interface to TeXError
2869 * Makefile.am (rpmdist): added a rpmdist target
2871 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2872 per Kayvan's instructions.
2874 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2876 * src/Makefile.am: add a definition for localedir, so that locales
2877 are found after installation (Kayvan)
2879 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2881 * development/.cvsignore: new file.
2883 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2885 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2886 C++ compiler provides wrappers for C headers and use our alternate
2889 * configure.in: use LYX_CXX_CHEADERS.
2891 * src/cheader/: new directory, populated with cname headers from
2892 libstdc++-2.8.1. They are a bit old, but probably good enough for
2893 what we want (support compilers who lack them).
2895 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2896 from includes. It turns out is was stupid.
2898 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2900 * lib/Makefile.am (install-data-local): forgot a ';'
2901 (install-data-local): forgot a '\'
2902 (libinstalldirs): needed after all. reintroduced.
2904 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2906 * configure.in (AC_OUTPUT): added lyx.spec
2908 * development/lyx.spec: removed file
2910 * development/lyx.spec.in: new file
2912 * po/*.po: merged with lyx.pot becuase of make distcheck
2914 * lib/Makefile.am (dist-hook): added dist-hook so that
2915 documentation files will be included when doing a make
2916 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2917 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2919 more: tried to make install do the right thing, exclude CVS dirs
2922 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2923 Path would fit in more nicely.
2925 * all files that used to use pathstack: uses now Path instead.
2926 This change was a lot easier than expected.
2928 * src/support/path.h: new file
2930 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2932 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2934 * src/support/lyxstring.C (getline): Default arg was given for
2937 * Configure.cmd: removed file
2939 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2941 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2942 streams classes and types, add the proper 'using' statements when
2943 MODERN_STL is defined.
2945 * src/debug.h: move the << operator definition after the inclusion
2948 * src/support/filetools.C: include "LAssert.h", which is needed
2951 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2954 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2955 include "debug.h" to define a proper ostream.
2957 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2959 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2960 method to the SystemCall class which can kill a process, but it's
2961 not fully implemented yet.
2963 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2965 * src/support/FileInfo.h: Better documentation
2967 * src/lyxfunc.C: Added support for buffer-export html
2969 * src/menus.C: Added Export->As HTML...
2971 * lib/bind/*.bind: Added short-cut for buffer-export html
2973 * src/lyxrc.*: Added support for new \tth_command
2975 * lib/lyxrc.example: Added stuff for new \tth_command
2977 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2979 * lib/Makefile.am (IMAGES): removed images/README
2980 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2981 installes in correct place. Check permisions is installed
2984 * src/LaTeX.C: some no-op changes moved declaration of some
2987 * src/LaTeX.h (LATEX_H): changed include guard name
2989 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2991 * lib/reLyX/Makefile.am: install noweb2lyx.
2993 * lib/Makefile.am: install configure.
2995 * lib/reLyX/configure.in: declare a config aux dir; set package
2996 name to lyx (not sure what the best solution is); generate noweb2lyx.
2998 * lib/layouts/egs.layout: fix the bibliography layout.
3000 1999-10-08 Jürgen Vigna <jug@sad.it>
3002 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
3003 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
3004 it returned without continuing to search the path.
3006 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
3008 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
3009 also fixes a bug. It is not allowed to do tricks with std::strings
3010 like: string a("hei"); &a[e]; this will not give what you
3011 think... Any reason for the complexity in this func?
3013 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
3015 * Updated README and INSTALL a bit, mostly to check that my
3016 CVS rights are correctly set up.
3018 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
3020 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
3021 does not allow '\0' chars but lyxstring and std::string does.
3023 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
3025 * autogen.sh (AUTOCONF): let the autogen script create the
3026 POTFILES.in file too. POTFILES.in should perhaps now not be
3027 included in the cvs module.
3029 * some more files changed to use C++ includes instead of C ones.
3031 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
3033 (Reread): added tostr to nlink. buggy output otherwise.
3034 (Reread): added a string() around szMode when assigning to Buffer,
3035 without this I got a log of garbled info strings.
3037 * acconfig.h: commented out the PTR_AS_INT macros. They should not
3040 * I have added several ostream & operator<<(ostream &, some_type)
3041 functions. This has been done to avoid casting and warnings when
3042 outputting enums to lyxerr. This as thus eliminated a lot of
3043 explicit casts and has made the code clearer. Among the enums
3044 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
3045 mathed enums, some font enum the Debug::type enum.
3047 * src/support/lyxstring.h (clear): missing method. equivalent of
3050 * all files that contained "stderr": rewrote constructs that used
3051 stderr to use lyxerr instead. (except bmtable)
3053 * src/support/DebugStream.h (level): and the passed t with
3054 Debug::ANY to avoid spurious bits set.
3056 * src/debug.h (Debug::type value): made it accept strings of the
3059 * configure.in (Check for programs): Added a check for kpsewhich,
3060 the latex generation will use this later to better the dicovery of
3063 * src/BufferView.C (create_view): we don't need to cast this to
3064 (void*) that is done automatically.
3065 (WorkAreaButtonPress): removed some dead code.
3067 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3069 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
3070 is not overwritten when translated (David Sua'rez de Lis).
3072 * lib/CREDITS: Added David Sua'rez de Lis
3074 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
3076 * src/bufferparams.C (BufferParams): default input encoding is now
3079 * acinclude.m4 (cross_compiling): comment out macro
3080 LYX_GXX_STRENGTH_REDUCE.
3082 * acconfig.h: make sure that const is not defined (to empty) when
3083 we are compiling C++. Remove commented out code using SIZEOF_xx
3086 * configure.in : move the test for const and inline as late as
3087 possible so that these C tests do not interefere with C++ ones.
3088 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
3089 has not been proven.
3091 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3093 * src/table.C (getDocBookAlign): remove bad default value for
3096 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
3098 (ShowFileMenu2): ditto.
3100 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
3103 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
3105 * Most files: finished the change from the old error code to use
3106 DebugStream for all lyxerr debugging. Only minor changes remain
3107 (e.g. the setting of debug levels using strings instead of number)
3109 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3111 * src/layout.C (Add): Changed to use compare_no_case instead of
3114 * src/FontInfo.C: changed loop variable type too string::size_type.
3116 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3118 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
3119 set ETAGS_ARGS to --c++
3121 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
3123 * src/table.C (DocBookEndOfCell): commented out two unused variables
3125 * src/paragraph.C: commented out four unused variables.
3127 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
3128 insed a if clause with type string::size_type.
3130 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
3133 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
3135 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
3136 variable, also changed loop to go from 0 to lenght + 1, instead of
3137 -1 to length. This should be correct.
3139 * src/LaTeX.C (scanError): use string::size_type as loop variable
3142 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
3143 (l.896) since y_tmp and row was not used anyway.
3145 * src/insets/insetref.C (escape): use string::size_type as loop
3148 * src/insets/insetquotes.C (Width): use string::size_type as loop
3150 (Draw): use string::size_type as loop variable type.
3152 * src/insets/insetlatexaccent.C (checkContents): use
3153 string::size_type as loop variable type.
3155 * src/insets/insetlabel.C (escape): use string::size_type as loop
3158 * src/insets/insetinfo.C: added an extern for current_view.
3160 * src/insets/insetcommand.C (scanCommand): use string::size_type
3161 as loop variable type.
3163 * most files: removed the RCS tags. With them we had to recompile
3164 a lot of files after a simple cvs commit. Also we have never used
3165 them for anything meaningful.
3167 * most files: tags-query-replace NULL 0. As adviced several plases
3168 we now use "0" instead of "NULL" in our code.
3170 * src/support/filetools.C (SpaceLess): use string::size_type as
3173 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
3175 * src/paragraph.C: fixed up some more string stuff.
3177 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3179 * src/support/filetools.h: make modestr a std::string.
3181 * src/filetools.C (GetEnv): made ch really const.
3183 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
3184 made code that used these use max/min from <algorithm> instead.
3186 * changed several c library include files to their equivalent c++
3187 library include files. All is not changed yet.
3189 * created a support subdir in src, put lyxstring and lstrings
3190 there + the extra files atexit, fileblock, strerror. Created
3191 Makefile.am. edited configure.in and src/Makefile.am to use this
3192 new subdir. More files moved to support.
3194 * imported som of the functions from repository lyx, filetools
3196 * ran tags-query-replace on LString -> string, corrected the bogus
3197 cases. Tried to make use of lstrings.[hC], debugged a lot. There
3198 is still some errors in there. This is errors where too much or
3199 too litle get deleted from strings (string::erase, string::substr,
3200 string::replace), there can also be some off by one errors, or
3201 just plain wrong use of functions from lstrings. Viewing of quotes
3204 * LyX is now running fairly well with string, but there are
3205 certainly some bugs yet (see above) also string is quite different
3206 from LString among others in that it does not allow null pointers
3207 passed in and will abort if it gets any.
3209 * Added the revtex4 files I forgot when setting up the repository.
3211 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3213 * All over: Tried to clean everything up so that only the files
3214 that we really need are included in the cvs repository.
3215 * Switched to use automake.
3216 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3217 * Install has not been checked.
3219 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3221 * po/pt.po: Three errors:
3222 l.533 and l.538 format specification error
3223 l. 402 duplicate entry, I just deleted it.