1 2000-03-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * lib/bind/*.bind: make sure 'buffer-previous' function is not
6 * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
8 * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
10 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
12 * some things that I should comment but the local pub says head to
15 * comment out all code that belongs to the Roff code for Ascii
16 export of tables. (this is unused)
18 * src/LyXView.C: use correct type for global variable
19 current_layout. (LyXTextClass::size_type)
21 * some code to get the new insetgraphics closer to working I'd be
22 grateful for any help.
24 * src/BufferView2.C (insertInset): use the return type of
25 NumberOfLayout properly. (also changes in other files)
27 * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
28 this as a test. I want to know what breaks because of this.
30 * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
32 2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
34 * lib/layouts/stdlists.inc: changed the lyxlist latex definition
35 to use a \makebox in the label, this allows proper justification
36 with out using protected spaces or multiple hfills. Now it is
37 "label" for left justified, "\hfill label\hfill" for center, and
38 "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
39 should be changed accordingly.
41 2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
43 * src/lyxtext.h: change SetLayout() to take a
44 LyXTextClass::size_type instead of a char (when there is more than
45 127 layouts in a class); also change type of copylayouttype.
46 * src/text2.C (SetLayout): ditto.
47 * src/LyXView.C (updateLayoutChoice): ditto.
49 * src/LaTeX.C (scanLogFile): errors where the line number was not
50 given just after the '!'-line were ignored (from Dekel Tsur).
52 * lib/lyxrc.example: fix description of \date_insert_format
54 * lib/layouts/llncs.layout: new layout, contributed by Martin
57 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
59 * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
60 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
61 cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
62 insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
63 BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
64 paragraph.C, text.C, text2.C)
66 2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
68 * src/insets/insettext.C (LocalDispatch): remove extra break
71 * src/insets/insetert.[Ch] (Clone): change return value to Inset*
72 * src/insets/insettext.[Ch] (Clone): change return value to Inset*
74 * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
75 * src/insets/insettext.[Ch] (GetCursorPos): ditto
77 * src/insets/insetbib.h: move InsetBibkey::Holder and
78 InsetCitation::Holder in public space.
80 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
82 * src/insets/insettext.h: small change to get the new files from
83 Juergen to compile (use "string", not "class string").
85 * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
86 const & as parameter to LocalDispatch, use LyXFont const & as
87 paramter to some other func. This also had impacto on lyxinsets.h
88 and the two mathed insets.
90 2000-02-24 Juergen Vigna <jug@sad.it>
95 * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
99 * src/BufferView2.C: added/updated code for various inset-functions
101 * src/insets/insetert.[Ch]: added implementation of InsetERT
103 * src/insets/insettext.[Ch]: added implementation of InsetText
105 * src/insets/inset.C (Edit): added "unsigned int button" parameter
106 (draw): added preliminary code for inset scrolling not finshed yet
108 * src/insets/inset.C (LocalDispatch): changed arg parameter to string
109 as it is in lyxfunc.C now
111 * src/insets/lyxinset.h: Added functions for text-insets
113 2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
115 * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
116 BufferView and reimplement the list as a queue put inside its own
119 * src/bufferlist.[Ch] (updateInset): remove func, not needed.
121 * several files: use the new interface to the "updateinsetlist"
123 * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
125 (work_area_handler): call BufferView::trippleClick on trippleclick.
127 * src/BufferView.C (doubleClick): new function, selects word on
129 (trippleClick): new function, selects line on trippleclick.
131 2000-02-22 Allan Rae <rae@lyx.org>
133 * lib/bind/xemacs.bind: buffer-previous not supported
135 2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
137 * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
140 2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
142 * src/bufferlist.C: get rid of current_view from this file
144 * src/spellchecker.C: get rid of current_view from this file
146 * src/vspace.C: get rid of current_view from this file
147 (inPixels): added BufferView parameter for this func
148 (asLatexCommand): added a BufferParams for this func
150 * src/text.C src/text2.C: get rid of current_view from these
153 * src/lyxfont.C (getFontDirection): move this function here from
156 * src/bufferparams.C (getDocumentDirection): move this function
159 * src/paragraph.C (getParDirection): move this function here from
161 (getLetterDirection): ditto
163 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
165 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
166 resize due to wrong pixmap beeing used. Also took the opurtunity
167 to make the LyXScreen stateless on regard to WorkArea and some
168 general cleanup in the same files.
170 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
172 * src/Makefile.am: add missing direction.h
174 * src/PainterBase.h: made the width functions const.
176 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
179 * src/insets/insetcommand.C (draw): draw Editable as buttons.
181 * src/insets/insetlatexaccent.C (draw): make the accents draw
182 better, at present this will only work well with iso8859-1.
184 * several files: remove the old drawing code, now we use the new
187 * several files: remove support for mono_video, reverse_video and
190 2000-02-17 Juergen Vigna <jug@sad.it>
192 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
193 int ** as we have to return the pointer, otherwise we have only
194 NULL pointers in the returning function.
196 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
198 * src/LaTeX.C (operator()): quote file name when running latex.
200 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
202 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
203 (bubble tip), this removes our special handling of this.
205 * Remove all code that is unused now that we have the new
206 workarea. (Code that are not active when NEW_WA is defined.)
208 * Make the uses of XSync not conditionalized on define USE_XSYNC.
210 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
212 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
213 nonexisting layout; correctly redirect obsoleted layouts.
215 * lib/lyxrc.example: document \view_dvi_paper_option
217 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
220 * src/lyx_cb.C (RunScript): handle $$FName for command names.
221 (PreviewDVI): handle the view_dvi_paper_option variable.
222 [Both from Roland Krause]
224 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
226 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
227 char const *, int, LyXFont)
228 (text(int, int, string, LyXFont)): ditto
230 * src/text.C (InsertCharInTable): attempt to fix the double-space
231 feature in tables too.
232 (BackspaceInTable): ditto.
233 (GetVisibleRow): make bottom pagebreak line be a onoff line.
235 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
237 * src/text2.C (owner): only complain if owner_ is set and bv != 0
239 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
240 newly found text in textcache to this.
241 (buffer): set the owner of the text put into the textcache to 0
243 * src/insets/figinset.C (draw): fixed the drawing of figures with
246 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
247 drawing of mathframe, hfills, protected space, table lines. I have
248 now no outstanding drawing problems with the new Painter code.
250 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
252 * src/PainterBase.C (ellipse, circle): do not specify the default
255 * src/LColor.h: add using directive.
257 * src/Painter.[Ch]: change return type of methods from Painter& to
258 PainterBase&. Add a using directive.
260 * src/WorkArea.C: wrap xforms callbacks in C functions
263 * lib/layouts/foils.layout: font fix and simplifications from Carl
266 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
268 * a lot of files: The Painter, LColor and WorkArea from the old
269 devel branch has been ported to lyx-devel. Some new files and a
270 lot of #ifdeffed code. The new workarea is enabled by default, but
271 if you want to test the new Painter and LColor you have to compile
272 with USE_PAINTER defined (do this in config.h f.ex.) There are
273 still some rought edges, and I'd like some help to clear those
274 out. It looks stable (loads and displays the Userguide very well).
277 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
279 * src/buffer.C (pop_tag): revert to the previous implementation
280 (use a global variable for both loops).
282 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
284 * src/lyxrc.C (LyXRC): change slightly default date format.
286 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
287 there is an English text with a footnote that starts with a Hebrew
288 paragraph, or vice versa.
289 (TeXFootnote): ditto.
291 * src/text.C (LeftMargin): allow for negative values for
292 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
295 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
296 for input encoding (cyrillic)
298 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
300 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
303 * src/toolbar.C (set): ditto
304 * src/insets/insetbib.C (create_form_citation_form): ditto
306 * lib/CREDITS: added Dekel Tsur.
308 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
309 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
310 hebrew supports files from Dekel Tsur.
312 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
313 <tzafrir@technion.ac.il>
315 * src/lyxrc.C: put \date_insert_format at the right place.
317 * src/buffer.C (makeLaTeXFile): fix the handling of
318 BufferParams::sides when writing out latex files.
320 * src/BufferView2.C: add a "using" directive.
322 * src/support/lyxsum.C (sum): when we use lyxstring,
323 ostringstream::str needs an additional .c_str().
325 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
327 * src/support/filetools.C (ChangeExtension): patch from Etienne
330 * src/TextCache.C (show): remove const_cast and make second
331 parameter non-const LyXText *.
333 * src/TextCache.h: use non const LyXText in show.
335 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
338 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
340 * src/support/lyxsum.C: rework to be more flexible.
342 * several places: don't check if a pointer is 0 if you are going
345 * src/text.C: remove some dead code.
347 * src/insets/figinset.C: remove some dead code
349 * src/buffer.C: move the BufferView funcs to BufferView2.C
350 remove all support for insetlatexdel
351 remove support for oldpapersize stuff
352 made some member funcs const
354 * src/kbmap.C: use a std::list to store the bindings in.
356 * src/BufferView2.C: new file
358 * src/kbsequence.[Ch]: new files
360 * src/LyXAction.C + others: remove all trace of buffer-previous
362 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
363 only have one copy in the binary of this table.
365 * hebrew patch: moved some functions from LyXText to more
366 appropriate places. (LyXParagraph, BufferParams, LyXFont)
368 * several files: remove support for XForms older than 0.88
370 remove some #if 0 #endif code
372 * src/TextCache.[Ch]: new file. Holds the textcache.
374 * src/BufferView.C: changes to use the new TextCache interface.
375 (waitForX): remove the now unused code.
377 * src/BackStack.h: remove some commented code
379 * lib/bind/emacs.bind: remove binding for buffer-previous
381 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
383 * applied the hebrew patch.
385 * src/lyxrow.h: make sure that all Row variables are initialized.
387 * src/text2.C (TextHandleUndo): comment out a delete, this might
388 introduce a memory leak, but should also help us to not try to
389 read freed memory. We need to look at this one.
391 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
392 (LyXParagraph): initalize footnotekind.
394 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
395 forgot this when applying the patch. Please heed the warnings.
397 * src/BufferView.C (buffer): a fix for the buffer-reload problem
398 (aka. reformat problem)
400 * src/bufferlist.C (exists): made const, and use const_iterator
401 (isLoaded): new func.
402 (release): use std::find to find the correct buffer.
404 * src/bufferlist.h: made getState a const func.
405 made empty a const func.
406 made exists a const func.
409 2000-02-01 Juergen Vigna <jug@sad.it>
411 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
413 * po/it.po: updated a bit the italian po file and also changed the
414 'file nuovo' for newfile to 'filenuovo' without a space, this did
417 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
418 for the new insert_date command.
420 * src/lyxfunc.C (Dispatch): added support for a insert_date function
421 from jdblair, to insert a date into the current text conforming to
422 a strftime format (for now only considering the locale-set and not
423 the document-language).
425 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
427 * src/lyxfont.C (textWidth): hopefully better fix for the Array
428 Bounds Read error seen by purify. The problem was that islower is
429 a macros which takes an unsigned char and uses it as an index for
430 in array of characters properties (and is thus subject to the
434 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
435 correctly the paper sides radio buttons.
436 (UpdateDocumentButtons): ditto.
438 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
440 * src/kbmap.C (getsym + others): change to return unsigned int,
441 returning a long can give problems on 64 bit systems. (I assume
442 that int is 32bit on 64bit systems)
444 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
446 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
447 LyXLookupString to be zero-terminated. Really fixes problems seen
450 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
452 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
453 write a (char*)0 to the lyxerr stream.
455 * src/lastfiles.C: move algorithm before the using statemets.
457 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
459 * src/lastfiles.C: move using directives in global scope (egcs 1.x
460 complains otherwise).
463 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
466 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
467 that I removed earlier... It is really needed.
469 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
471 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
473 * INSTALL: update xforms home page URL.
475 * lib/configure.m4: fix a bug with unreadable layout files.
477 * src/table.C (calculate_width_of_column): add "using std::max"
480 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
482 * several files: marked several lines with "DEL LINE", this is
483 lines that can be deleted without changing anything.
484 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
485 checks this anyway */
488 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
490 * src/DepTable.C (update): add a "+" at the end when the checksum
491 is different. (debugging string only)
493 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
494 the next inset to not be displayed. This should also fix the list
495 of labels in the "Insert Crossreference" dialog.
497 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
499 * src/support/LSubstring.C (LSubstring): set pos to string::npos
500 when regex was not found.
502 * src/support/lstrings.C (lowercase): use handcoded transform always.
505 * src/text.C (Delete): fixed the crash. cursor.par->prev and
506 old_cursor.par->prev could be 0.
508 * several files: changed post inc/dec to pre inc/dec
510 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
511 write the lastfiles to file.
513 * src/BufferView.C (buffer): only show TextCache info when debugging
515 (resizeCurrentBuffer): ditto
516 (workAreaExpose): ditto
518 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
520 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
522 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
523 a bit better by removing the special case for \i and \j.
525 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
527 * src/lyx_main.C (easyParse): remove test for bad comand line
528 options, since this broke all xforms-related parsing.
530 * src/kbmap.C (getsym): set return type to unsigned long, as
531 declared in header. On an alpha, long is _not_ the same as int.
533 * src/support/LOstream.h: add a "using std::flush;"
535 * src/insets/figinset.C: ditto.
537 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
539 * src/bufferlist.C (write): use blinding fast file copy instead of
540 "a char at a time", now we are doing it the C++ way.
542 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
543 std::list<int> instead.
544 (addpidwait): reflect move to std::list<int>
545 (sigchldchecker): ditto
547 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
550 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
551 that obviously was wrong...
553 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
554 c, this avoids warnings with purify and islower.
556 * src/insets/figinset.C: rename struct queue to struct
557 queue_element and rewrite to use a std::queue. gsqueue is now a
558 std::queue<queue_element>
559 (runqueue): reflect move to std::queue
562 * src/support/lstrings.h (tostr): specialize for bool, otherwise
563 we would get "1" "0" instead of "true" "false. Also make the tostr
566 2000-01-21 Juergen Vigna <jug@sad.it>
568 * src/buffer.C (writeFileAscii): Disabled code for special groff
569 handling of tabulars till I fix this in table.C
571 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
573 * src/support/mkdir.C (mkdir): change second argument of mkdir to
575 * src/support/lyxlib.h: ditto.
577 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
579 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
580 and 'j' look better. This might fix the "macron" bug that has been
583 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
584 functions as one template function. Delete the old versions.
586 * src/support/lyxsum.C: move using std::ifstream inside
589 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
592 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
594 * src/mathed/formula.C: delete #include "bufferlist.h" never used
596 * src/insets/figinset.C (InitFigures): use new instead of malloc
597 to allocate memory for figures and bitmaps.
598 (DoneFigures): use delete[] instead of free to deallocate memory
599 for figures and bitmaps.
600 (runqueue): use new to allocate
601 (getfigdata): use new/delete[] instead of malloc/free
602 (RegisterFigure): ditto
604 * some files: moved some declarations closer to first use, small
605 whitespace changes use preincrement instead of postincrement where
606 it does not make a difference.
608 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
609 step on the way to use stl::containers for key maps.
611 * src/bufferlist.h: add a typedef for const_iterator and const
612 versions of begin and end.
614 * src/bufferlist.[Ch]: change name of member variable _state to
615 state_. (avoid reserved names)
617 (getFileNames): returns the filenames of the buffers in a vector.
619 * configure.in (ALL_LINGUAS): added ro
621 * src/support/putenv.C: new file
623 * src/support/mkdir.C: new file
625 2000-01-20 Allan Rae <rae@lyx.org>
627 * lib/layouts/IEEEtran.layout: Added several theorem environments
629 * lib/templates/IEEEtran.lyx: Example theorem environments and a
630 couple of minor additions.
632 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
633 (except for those in footnotes of course)
635 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
637 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
639 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
640 std::sort and std::lower_bound instead of qsort and handwritten
642 (struct compara): struct that holds the functors used by std::sort
643 and std::lower_bound in MathedLookupBOP.
645 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
647 * src/support/LAssert.h: do not do partial specialization. We do
650 * src/support/lyxlib.h: note that lyx::getUserName() and
651 lyx::date() are not in use right now. Should these be suppressed?
653 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
654 (makeLinuxDocFile): do not put date and user name in linuxdoc
657 * src/support/lyxlib.h (kill): change first argument to long int,
658 since that's what solaris uses.
660 * src/support/kill.C (kill): fix declaration to match prototype.
662 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
663 actually check whether namespaces are supported. This is not what
666 * src/support/lyxsum.C: add a using directive.
668 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
670 * src/support/kill.C: if we have namespace support we don't have
673 * src/support/lyxlib.h: use namespace lyx if supported.
675 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
677 * src/support/date.C: new file
679 * src/support/chdir.C: new file
681 * src/support/getUserName.C: new file
683 * src/support/getcwd.C: new file
685 * src/support/abort.C: new file
687 * src/support/kill.C: new file
689 * src/support/lyxlib.h: moved all the functions in this file
690 insede struct lyx. Added also kill and abort to this struct. This
691 is a way to avoid the "kill is not defined in <csignal>", we make
692 C++ wrappers for functions that are not ANSI C or ANSI C++.
694 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
695 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
696 lyx it has been renamed to sum.
698 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
700 * src/text.C: add using directives for std::min and std::max.
702 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
704 * src/texrow.C (getIdFromRow): actually return something useful in
705 id and pos. Hopefully fixes the bug with positionning of errorbox
708 * src/lyx_main.C (easyParse): output an error and exit if an
709 incorrect command line option has been given.
711 * src/spellchecker.C (ispell_check_word): document a memory leak.
713 * src/bufferlist.C (write): fix mismatched allocation/deletion,
714 where a "struct utimbuf" is allocated with "new" and deleted with
717 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
719 * src/text2.C (CutSelection): don't delete double spaces.
720 (PasteSelection): ditto
721 (CopySelection): ditto
723 * src/text.C (Backspace): don't delete double spaces.
725 * src/lyxlex.C (next): fix a bug that were only present with
726 conformant std::istream::get to read comment lines, use
727 std::istream::getline instead. This seems to fix the problem.
729 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
731 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
732 allowed to insert space before space" editing problem. Please read
733 commends at the beginning of the function. Comments about usage
736 * src/text.C (InsertChar): fix for the "not allowed to insert
737 space before space" editing problem.
739 * src/text2.C (DeleteEmptyParagraphMechanism): when
740 IsEmptyTableRow can only return false this last "else if" will
741 always be a no-op. Commented out.
743 * src/text.C (RedoParagraph): As far as I can understand tmp
744 cursor is not really needed.
746 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
747 present it could only return false anyway.
748 (several functions): Did something not so smart...added a const
749 specifier on a lot of methods.
751 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
752 and add a tmp->text.resize. The LyXParagraph constructor does the
754 (BreakParagraphConservative): ditto
756 * src/support/path.h (Path): add a define so that the wrong usage
757 "Path("/tmp") will be flagged as a compilation error:
758 "`unnamed_Path' undeclared (first use this function)"
760 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
762 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
763 which was bogus for several reasons.
765 * src/LaTeX.C (scanAux): fix the regular expression used to scan
769 * autogen.sh: do not use "type -path" (what's that anyway?).
771 * src/support/filetools.C (findtexfile): remove extraneous space
772 which caused a kpsewhich warning (at least with kpathsea version
775 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
777 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
779 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
781 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
783 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
785 * src/paragraph.C (BreakParagraph): do not reserve space on text
786 if we don't need to (otherwise, if pos_end < pos, we end up
787 reserving huge amounts of memory due to bad unsigned karma).
788 (BreakParagraphConservative): ditto, although I have not seen
789 evidence the bug can happen here.
791 * src/lyxparagraph.h: add a using std::list.
793 2000-01-11 Juergen Vigna <jug@sad.it>
795 * src/menus.C (MenuDocu): output an Alert if the documentation-file
798 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
800 * src/vc-backend.C (doVCCommand): change to be static and take one
801 more parameter: the path to chdir too be fore executing the command.
802 (retrive): new function equiv to "co -r"
804 * src/bufferlist.C (loadLyXFile): implement the missing parts if
805 file_not_found_hook is true.
807 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
809 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
810 if a file is readwrite,readonly...anything else.
812 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
814 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
815 (CreatePostscript): name change from MenuRunDVIPS (or something)
816 (PreviewPostscript): name change from MenuPreviewPS
817 (PreviewDVI): name change from MenuPreviewDVI
819 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
820 \view_pdf_command., \pdf_to_ps_command
822 * lib/configure.m4: added search for PDF viewer, and search for
824 (lyxrc.defaults output): add \pdflatex_command,
825 \view_pdf_command and \pdf_to_ps_command.
827 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
829 * src/bufferlist.C (write): we don't use blocksize for anything so
832 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
834 * src/support/block.h: disable operator T* (), since it causes
835 problems with both compilers I tried. See comments in the file.
837 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
840 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
841 variable LYX_DIR_10x to LYX_DIR_11x.
843 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
845 * INSTALL: document --with-lyxname.
848 * configure.in: new configure flag --with-lyxname which allows to
849 choose the name under which lyx is installed. Default is "lyx", of
850 course. It used to be possible to do this with --program-suffix,
851 but the later has in fact a different meaning for autoconf.
853 * src/support/lstrings.h (lstrchr): reformat a bit.
855 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
856 * src/mathed/math_defs.h: ditto.
858 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
860 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
861 true, decides if we create a backup file or not when saving. New
862 tag and variable \pdf_mode, defaults to false. New tag and
863 variable \pdflatex_command, defaults to pdflatex. New tag and
864 variable \view_pdf_command, defaults to xpdf. New tag and variable
865 \pdf_to_ps_command, defaults to pdf2ps.
867 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
869 * src/bufferlist.C (close): don't call insetUnlock if the buffer
870 does not have a BufferView.
871 (unlockInset): ditto + don't access the_locking_inset if the
872 buffer does not have a BufferView.
874 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
875 certain circumstances so that we don't continue a keyboard
876 operation long after the key was released. Try f.ex. to load a
877 large document, press PageDown for some seconds and then release
878 it. Before this change the document would contine to scroll for
879 some time, with this change it stops imidiatly.
881 * src/support/block.h: don't allocate more space than needed. As
882 long as we don't try to write to the arr[x] in a array_type arr[x]
883 it is perfectly ok. (if you write to it you might segfault).
884 added operator value_type*() so that is possible to pass the array
885 to functions expecting a C-pointer.
887 * lib/Makefile.am (dist-hook): don't fail completely if unable to
890 * intl/*: updated to gettext 0.10.35, tried to add our own
891 required modifications. Please verify.
893 * po/*: updated to gettext 0.10.35, tried to add our own required
894 modifications. Please verify.
896 * src/support/lstrings.C (tostr): go at fixing the problem with
897 cxx and stringstream. When stringstream is used return
898 oss.str().c_str() so that problems with lyxstring and basic_string
899 are avoided. Note that the best solution would be for cxx to use
900 basic_string all the way, but it is not conformant yet. (it seems)
902 * src/lyx_cb.C + other files: moved several global functions to
903 class BufferView, some have been moved to BufferView.[Ch] others
904 are still located in lyx_cb.C. Code changes because of this. (part
905 of "get rid of current_view project".)
907 * src/buffer.C + other files: moved several Buffer functions to
908 class BufferView, the functions are still present in buffer.C.
909 Code changes because of this.
911 * config/lcmessage.m4: updated to most recent. used when creating
914 * config/progtest.m4: updated to most recent. used when creating
917 * config/gettext.m4: updated to most recent. applied patch for
920 * config/gettext.m4.patch: new file that shows what changes we
921 have done to the local copy of gettext.m4.
923 * config/libtool.m4: new file, used in creation of acinclude.m4
925 * config/lyxinclude.m4: new file, this is the lyx created m4
926 macros, used in making acinclude.m4.
928 * autogen.sh: GNU m4 discovered as a separate task not as part of
929 the lib/configure creation.
930 Generate acinlucde from files in config. Actually cat
931 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
932 easier to upgrade .m4 files that really are external.
934 * src/Spacing.h: moved using std::istringstream to right after
935 <sstream>. This should fix the problem seen with some compilers.
937 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
939 * src/lyx_cb.C: began some work to remove the dependency a lot of
940 functions have on BufferView::text, even if not really needed.
941 (GetCurrentTextClass): removed this func, it only hid the
944 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
945 forgot this in last commit.
947 * src/Bullet.C (bulletEntry): use static char const *[] for the
948 tables, becuase of this the return arg had to change to string.
950 (~Bullet): removed unneeded destructor
952 * src/BufferView.C (beforeChange): moved from lyx_cb.C
953 (insetSleep): moved from Buffer
954 (insetWakeup): moved from Buffer
955 (insetUnlock): moved from Buffer
957 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
958 from Buffer to BufferView.
960 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
962 * config/ltmain.sh: updated to version 1.3.4 of libtool
964 * config/ltconfig: updated to version 1.3.4 of libtool
966 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
969 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
970 Did I get that right?
972 * src/lyxlex.h: add a "using" directive or two.
973 * src/Spacing.h: ditto.
974 * src/insets/figinset.C: ditto.
975 * src/support/filetools.C: ditto.
976 * src/support/lstrings.C: ditto.
977 * src/BufferView.C: ditto.
978 * src/bufferlist.C: ditto.
979 * src/lyx_cb.C: ditto.
980 * src/lyxlex.C: ditto.
982 * NEWS: add some changes for 1.1.4.
984 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
986 * src/BufferView.C: first go at a TextCache to speed up switching
989 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
991 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
992 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
993 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
994 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
997 * src/mathed/math_defs.h (MathedRowSt): make sure that all
998 members of the struct are correctly initialized to 0 (detected by
1000 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
1001 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
1003 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
1004 pidwait, since it was allocated with "new". This was potentially
1005 very bad. Thanks to Michael Schmitt for running purify for us.
1008 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1010 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
1012 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
1014 1999-12-30 Allan Rae <rae@lyx.org>
1016 * lib/templates/IEEEtran.lyx: minor change
1018 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
1019 src/mathed/formula.C (LocalDispatch): askForText changes
1021 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
1022 know when a user has cancelled input. Fixes annoying problems with
1023 inserting labels and version control.
1025 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1027 * src/support/lstrings.C (tostr): rewritten to use strstream and
1030 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
1032 * src/support/filetools.C (IsFileWriteable): use fstream to check
1033 (IsDirWriteable): use fileinfo to check
1035 * src/support/filetools.h (FilePtr): whole class deleted
1037 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
1039 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
1041 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
1043 * src/bufferlist.C (write): use ifstream and ofstream instead of
1046 * src/Spacing.h: use istrstream instead of sscanf
1048 * src/mathed/math_defs.h: change first arg to istream from FILE*
1050 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
1052 * src/mathed/math_parser.C: have yyis to be an istream
1053 (LexGetArg): use istream (yyis)
1055 (mathed_parse): ditto
1056 (mathed_parser_file): first arg istream instead of FILE*, set yyis
1058 * src/mathed/formula.C (Read): rewritten to use istream
1060 * src/mathed/formulamacro.C (Read): rewritten to use istream
1062 * src/lyxlex.h (~LyXLex): deleted desturctor
1063 (getStream): new function, returns an istream
1064 (getFile): deleted funtion
1065 (IsOK): return is.good();
1067 * src/lyxlex.C (LyXLex): delete file and owns_file
1068 (setFile): open an filebuf and assign that to a istream instead of
1070 (setStream): new function, takes an istream as arg.
1071 (setFile): deleted function
1072 (EatLine): rewritten us use istream instead of FILE*
1076 * src/table.C (LyXTable): use istream instead of FILE*
1077 (Read): rewritten to take an istream instead of FILE*
1079 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1081 * src/buffer.C (Dispatch): remove an extraneous break statement.
1083 * src/support/filetools.C (QuoteName): change to do simple
1084 'quoting'. More work is necessary. Also changed to do nothing
1085 under emx (needs fix too).
1086 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
1088 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
1089 config.h.in to the AC_DEFINE_UNQUOTED() call.
1090 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
1091 needs char * as argument (because Solaris 7 declares it like
1094 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
1095 remove definition of BZERO.
1097 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1099 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
1100 defined, "lyxregex.h" if not.
1102 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
1104 (REGEX): new variable that is set to regex.c lyxregex.h when
1105 AM_CONDITIONAL USE_REGEX is set.
1106 (libsupport_la_SOURCES): add $(REGEX)
1108 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
1111 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
1114 * configure.in: add call to LYX_REGEX
1116 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
1117 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
1119 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1121 * lib/bind/fi_menus.bind: new file, from
1122 pauli.virtanen@saunalahti.fi.
1124 * src/buffer.C (getBibkeyList): pass the parameter delim to
1125 InsetInclude::getKeys and InsetBibtex::getKeys.
1127 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
1128 is passed to Buffer::getBibkeyList
1130 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
1131 instead of the hardcoded comma.
1133 * src/insets/insetbib.C (getKeys): make sure that there are not
1134 leading blanks in bibtex keys. Normal latex does not care, but
1135 harvard.sty seems to dislike blanks at the beginning of citation
1136 keys. In particular, the retturn value of the function is
1138 * INSTALL: make it clear that libstdc++ is needed and that gcc
1139 2.7.x probably does not work.
1141 * src/support/filetools.C (findtexfile): make debug message go to
1143 * src/insets/insetbib.C (getKeys): ditto
1145 * src/debug.C (showTags): make sure that the output is correctly
1148 * configure.in: add a comment for TWO_COLOR_ICON define.
1150 * acconfig.h: remove all the entries that already defined in
1151 configure.in or acinclude.m4.
1153 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
1154 to avoid user name, date and copyright.
1156 1999-12-21 Juergen Vigna <jug@sad.it>
1158 * src/table.C (Read): Now read bogus row format informations
1159 if the format is < 5 so that afterwards the table can
1160 be read by lyx but without any format-info. Fixed the
1161 crash we experienced when not doing this.
1163 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
1165 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
1166 (RedoDrawingOfParagraph): ditto
1167 (RedoParagraphs): ditto
1168 (RemoveTableRow): ditto
1170 * src/text.C (Fill): rename arg paperwidth -> paper_width
1172 * src/buffer.C (insertLyXFile): rename var filename -> fname
1173 (writeFile): rename arg filename -> fname
1174 (writeFileAscii): ditto
1175 (makeLaTeXFile): ditto
1176 (makeLinuxDocFile): ditto
1177 (makeDocBookFile): ditto
1179 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
1182 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
1184 * src/bmtable.h: add extern "C" on this file when __cplusplus is
1187 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
1188 compiled by a C compiler not C++.
1190 * src/layout.h (LyXTextClass): added typedef for const_iterator
1191 (LyXTextClassList): added typedef for const_iterator + member
1192 functions begin and end.
1194 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
1195 iterators to fill the choice_class.
1196 (updateLayoutChoice): rewritten to use iterators to fill the
1197 layoutlist in the toolbar.
1199 * src/BufferView.h (BufferView::work_area_width): removed unused
1202 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
1204 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
1205 (sgmlCloseTag): ditto
1207 * src/support/lstrings.h: return type of countChar changed to
1210 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
1211 what version of this func to use. Also made to return unsigned int.
1213 * configure.in: call LYX_STD_COUNT
1215 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
1216 conforming std::count.
1218 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1220 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
1221 and a subscript would give bad display (patch from Dekel Tsur
1222 <dekel@math.tau.ac.il>).
1224 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
1226 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
1229 * src/chset.h: add a few 'using' directives
1231 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
1232 triggered when no buffer is active
1234 * src/layout.C: removed `break' after `return' in switch(), since
1237 * src/lyx_main.C (init): make sure LyX can be ran in place even
1238 when libtool has done its magic with shared libraries. Fix the
1239 test for the case when the system directory has not been found.
1241 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
1242 name for the latex file.
1243 (MenuMakeHTML): ditto
1245 * src/buffer.h: add an optional boolean argument, which is passed
1248 1999-12-20 Allan Rae <rae@lyx.org>
1250 * lib/templates/IEEEtran.lyx: small correction and update.
1252 * configure.in: Attempted to use LYX_PATH_HEADER
1254 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
1256 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
1257 input from JMarc. Now use preprocessor to find the header.
1258 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
1259 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
1260 LYX_STL_STRING_FWD. See comments in file.
1262 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
1264 * The global MiniBuffer * minibuffer variable is dead.
1266 * The global FD_form_main * fd_form_main variable is dead.
1268 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1270 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
1272 * src/table.h: add the LOstream.h header
1273 * src/debug.h: ditto
1275 * src/LyXAction.h: change the explaination of the ReadOnly
1276 attribute: is indicates that the function _can_ be used.
1278 * src/LyXAction.C (init): find-replace _can_ be used in read-only
1281 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1283 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
1289 * src/paragraph.C (GetWord): assert on pos>=0
1292 * src/support/lyxstring.C: condition the use of an invariant on
1294 * src/support/lyxstring.h: ditto
1296 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
1297 Use LAssert.h instead of plain assert().
1299 * src/support/lstrings.h: add LAssert.h, in case it is needed.
1301 * src/lyxfunc.C: do not include LAssert.h, it is not used.
1302 * src/support/filetools.C: ditto
1304 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
1307 * INSTALL: document the new configure flags
1309 * configure.in: suppress --with-debug; add --enable-assertions
1311 * acinclude.m4: various changes in alignment of help strings.
1313 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1315 * src/kbmap.C: commented out the use of the hash map in kb_map,
1316 beginning of movement to a stl::container.
1318 * several files: removed code that was not in effect when
1319 MOVE_TEXT was defined.
1321 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
1322 for escaping should not be used. We can discuss if the string
1323 should be enclosed in f.ex. [] instead of "".
1325 * src/trans_mgr.C (insert): use the new returned value from
1326 encodeString to get deadkeys and keymaps done correctly.
1328 * src/chset.C (encodeString): changed to return a pair, to tell
1329 what to use if we know the string.
1331 * src/lyxscreen.h (fillArc): new function.
1333 * src/FontInfo.C (resize): rewritten to use more std::string like
1334 structore, especially string::replace.
1336 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
1339 * configure.in (chmod +x some scripts): remove config/gcc-hack
1341 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1343 * src/buffer.C (writeFile): change once again the top comment in a
1344 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
1345 instead of an hardcoded version number.
1346 (makeDocBookFile): ditto
1348 * src/version.h: add new define LYX_DOCVERSION
1350 * po/de.po: update from Pit Sütterlin
1351 * lib/bind/de_menus.bind: ditto.
1353 * src/lyxfunc.C (Dispatch): call MenuExport()
1354 * src/buffer.C (Dispatch): ditto
1356 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
1357 LyXFunc::Dispatch().
1358 (MenuExport): new function, moved from
1359 LyXFunc::Dispatch().
1361 * src/trans_mgr.C (insert): small cleanup
1362 * src/chset.C (loadFile): ditto
1364 * lib/kbd/iso8859-1.cdef: add missing backslashes
1366 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1368 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
1369 help with placing the manually drawn accents better.
1371 (Draw): x2 and hg changed to float to minimize rounding errors and
1372 help place the accents better.
1374 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
1375 unsigned short to char is just wrong...cast the char to unsigned
1376 char instead so that the two values can compare sanely. This
1377 should also make the display of insetlatexaccents better and
1378 perhaps also some other insets.
1380 (lbearing): new function
1383 1999-12-15 Allan Rae <rae@lyx.org>
1385 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
1386 header that provides a wrapper around the very annoying SGI STL header
1389 * src/support/lyxstring.C, src/LString.h:
1390 removed old SGI-STL-compatability attempts.
1392 * configure.in: Use LYX_STL_STRING_FWD.
1394 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
1395 stl_string_fwd.h is around and try to determine it's location.
1396 Major improvement over previous SGI STL 3.2 compatability.
1397 Three small problems remain with this function due to my zero
1398 knowledge of autoconf. JMarc and lgb see the comments in the code.
1400 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1402 * src/broken_const.h, config/hack-gcc, config/README: removed
1404 * configure.in: remove --with-gcc-hack option; do not call
1407 * INSTALL: remove documentation of --with-broken-const and
1410 * acconfig.h: remove all trace of BROKEN_CONST define
1412 * src/buffer.C (makeDocBookFile): update version number in output
1414 (SimpleDocBookOnePar): fix an assert when trying to a character
1415 access beyond string length
1418 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1420 * po/de.po: fix the Export menu
1422 * lyx.man: update the description of -dbg
1424 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
1425 (commandLineHelp): updated
1426 (easyParse): show list of available debug levels if -dbg is passed
1429 * src/Makefile.am: add debug.C
1431 * src/debug.h: moved some code to debug.C
1433 * src/debug.C: new file. Contains code to set and show debug
1436 * src/layout.C: remove 'break' after 'continue' in switch
1437 statements, since these cannot be reached.
1439 1999-12-13 Allan Rae <rae@lyx.org>
1441 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
1442 (in_word_set): hash() -> math_hash()
1444 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
1446 * acconfig.h: Added a test for whether we are using exceptions in the
1447 current compilation run. If so USING_EXCEPTIONS is defined.
1449 * config.in: Check for existance of stl_string_fwd.h
1450 * src/LString.h: If compiling --with-included-string and SGI's
1451 STL version 3.2 is present (see above test) we need to block their
1452 forward declaration of string and supply a __get_c_string().
1453 However, it turns out this is only necessary if compiling with
1454 exceptions enabled so I've a bit more to add yet.
1456 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
1457 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
1458 src/support/LRegex.h, src/undo.h:
1459 Shuffle the order of the included files a little to ensure that
1460 LString.h gets included before anything that includes stl_string_fwd.h
1462 * src/support/lyxstring.C: We need to #include LString.h instead of
1463 lyxstring.h to get the necessary definition of __get_c_string.
1464 (__get_c_string): New function. This is defined static just like SGI's
1465 although why they need to do this I'm not sure. Perhaps it should be
1466 in lstrings.C instead.
1468 * lib/templates/IEEEtran.lyx: New template file.
1470 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1472 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
1473 * intl/Makefile.in (MKINSTALLDIRS): ditto
1475 * src/LyXAction.C (init): changed to hold the LFUN data in a
1476 automatic array in stead of in callso to newFunc, this speeds up
1477 compilation a lot. Also all the memory used by the array is
1478 returned when the init is completed.
1480 * a lot of files: compiled with -Wold-style-cast, changed most of
1481 the reported offenders to C++ style casts. Did not change the
1482 offenders in C files.
1484 * src/trans.h (Match): change argument type to unsigned int.
1486 * src/support/DebugStream.C: fix some types on the streambufs so
1487 that it works on a conforming implementation.
1489 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1491 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
1493 * src/support/lyxstring.C: remove the inline added earlier since
1494 they cause a bunch of unsatisfied symbols when linking with dec
1495 cxx. Cxx likes to have the body of inlines at the place where they
1498 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
1499 accessing negative bounds in array. This fixes the crash when
1500 inserting accented characters.
1501 * src/trans.h (Match): ditto
1503 * src/buffer.C (Dispatch): since this is a void, it should not try
1504 to return anything...
1506 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1508 * src/buffer.h: removed the two friends from Buffer. Some changes
1509 because of this. Buffer::getFileName and Buffer::setFileName
1510 renamed to Buffer::fileName() and Buffer::fileName(...).
1512 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1514 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
1515 and Buffer::update(short) to BufferView. This move is currently
1516 controlled by a define MOVE_TEXT, this will be removed when all
1517 shows to be ok. This move paves the way for better separation
1518 between buffer contents and buffer view. One side effect is that
1519 the BufferView needs a rebreak when swiching buffers, if we want
1520 to avoid this we can add a cache that holds pointers to LyXText's
1521 that is not currently in use.
1523 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
1526 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1528 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
1530 * lyx_main.C: new command line option -x (or --execute) and
1531 -e (or --export). Now direct conversion from .lyx to .tex
1532 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
1533 Unfortunately, X is still needed and the GUI pops up during the
1536 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1538 * src/Spacing.C: add a using directive to bring stream stuff into
1540 * src/paragraph.C: ditto
1541 * src/buffer.C: ditto
1543 * NEWS: updated a bit the new features of 1.1.3 (took a few things
1544 from Lars' announcement).
1546 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
1547 example files from Tino Meinen.
1549 1999-12-06 Allan Rae <rae@lyx.org>
1551 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
1553 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1555 * src/support/lyxstring.C: added a lot of inline for no good
1558 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
1559 latexWriteEndChanges, they were not used.
1561 * src/layout.h (operator<<): output operator for PageSides
1563 * src/mathed/math_iter.C (my_memcpy): slightly changed.
1565 * some example files: loaded in LyX 1.0.4 and saved again to update
1566 certain constructs (table format)
1568 * a lot of files: did the change to use fstream/iostream for all
1569 writing of files. Done with a close look at Andre Poenitz's patch.
1571 * some files: whitespace changes.
1573 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1575 * src/mathed/math_iter.C (my_memcpy): new function. Since the
1576 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
1577 architecture, we provide our own. It is used unconditionnally, but
1578 I do not think this is a performance problem. Thanks to Angus
1579 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
1580 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
1582 (GetInset): use my_memcpy.
1586 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
1587 it is easier to understand, but it uses less TeX-only constructs now.
1589 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
1590 elements contain spaces
1592 * lib/configure: regenerated
1594 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
1595 elements contain spaces; display the list of programs that are
1598 * autogen.sh: make sure lib/configure is executable
1600 * lib/examples/*: rename the tutorial examples to begin with the
1601 two-letters language code.
1603 * src/lyxfunc.C (getStatus): do not query current font if no
1606 * src/lyx_cb.C (RunScript): use QuoteName
1607 (MenuRunDvips): ditto
1608 (PrintApplyCB): ditto
1610 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
1611 around argument, so that it works well with the current shell.
1612 Does not work properly with OS/2 shells currently.
1614 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
1615 * src/LyXSendto.C (SendtoApplyCB): ditto
1616 * src/lyxfunc.C (Dispatch): ditto
1617 * src/buffer.C (runLaTeX): ditto
1618 (runLiterate): ditto
1619 (buildProgram): ditto
1621 * src/lyx_cb.C (RunScript): ditto
1622 (MenuMakeLaTeX): ditto
1624 * src/buffer.h (getLatexName): new method
1626 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
1628 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1630 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
1631 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
1632 (create_math_panel): ditto
1634 * src/lyxfunc.C (getStatus): re-activate the code which gets
1635 current font and cursor; add test for export to html.
1637 * src/lyxrc.C (read): remove unreachable break statements; add a
1640 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
1642 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1644 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
1645 introduced by faulty regex.
1646 * src/buffer.C: ditto
1647 * src/lastfiles.C: ditto
1648 * src/paragraph.C: ditto
1649 * src/table.C: ditto
1650 * src/vspace.C: ditto
1651 * src/insets/figinset.C: ditto
1652 Note: most of these is absolutely harmless, except the one in
1653 src/mathed formula.C.
1655 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
1657 * src/ImportNoweb.C (documentclass): fixed bounds for substr
1658 operation, yielding correct results for the reLyX command.
1660 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1662 * src/support/filetools.C (ExpandPath): removed an over eager
1664 (ReplaceEnvironmentPath): ditto
1666 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
1667 shows that we are doing something fishy in our code...
1671 * src/lyxrc.C (read): use a double switch trick to get more help
1672 from the compiler. (the same trick is used in layout.C)
1673 (write): new function. opens a ofstream and pass that to output
1674 (output): new function, takes a ostream and writes the lyxrc
1675 elemts to it. uses a dummy switch to make sure no elements are
1678 * src/lyxlex.h: added a struct pushpophelper for use in functions
1679 with more than one exit point.
1681 * src/lyxlex.[Ch] (GetInteger): made it const
1685 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
1687 * src/layout.[hC] : LayoutTags splitted into several enums, new
1688 methods created, better error handling cleaner use of lyxlex. Read
1691 * src/bmtable.[Ch]: change some member prototypes because of the
1692 image const changes.
1694 * commandtags.h, src/LyXAction.C (init): new function:
1695 "preferences-save", saves the lyxrc entries into .lyx/preferences.
1696 This file is not read automatically but you can add \input
1697 preferences to your lyxrc if you want to. We need to discuss how
1700 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
1701 in .aux, also remove .bib and .bst files from dependencies when
1704 * src/BufferView.C, src/LyXView.C: add const_cast several places
1705 because of changes to images.
1707 * lib/images/*: same change as for images/*
1709 * lib/lyxrc.example: Default for accept_compound is false not no.
1711 * images/*: changed to be const, however I have som misgivings
1712 about this change so it might be changed back.
1714 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1716 * lib/configure, po/POTFILES.in: regenerated
1718 * autogen.sh: autogenerate lib/configure from lib/configure.m4
1720 * config/lib_configure.m4: removed
1722 * lib/configure.m4: new file (was config/lib_configure.m4)
1724 * configure.in: do not test for rtti, since we do not use it.
1726 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1728 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
1729 doubling of allocated space scheme. This makes it faster for large
1730 strings end to use less memory for small strings. xtra rememoved.
1732 * src/insets/figinset.C (waitalarm): commented out.
1733 (GhostscriptMsg): use static_cast
1734 (GhostscriptMsg): use new instead of malloc to allocate memory for
1735 cmap. also delete the memory after use.
1737 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
1739 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
1740 for changes in bibtex database or style.
1741 (runBibTeX): remove all .bib and .bst files from dep before we
1743 (run): use scanAuc in when dep file already exist.
1745 * src/DepTable.C (remove_files_with_extension): new method
1748 * src/DepTable.[Ch]: made many of the methods const.
1750 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1752 * src/bufferparams.C: make sure that the default textclass is
1753 "article". It used to be the first one by description order, but
1754 now the first one is "docbook".
1756 * src/lyx_main.C (setDebuggingLevel): change type of argument to
1757 string; call Debug::value.
1758 (easyParse): pass complete argument to setDebuggingLevel().
1760 * src/debug.h (value): fix the code that parses debug levels.
1762 * src/debug.h: add new debug type ACTION, reserved for LyXAction
1765 * src/LyXAction.C: use Debug::ACTION as debug channel.
1767 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
1769 * NEWS: updated for the future 1.1.3 release.
1771 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
1772 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
1773 it should. This is of course a controversial change (since many
1774 people will find that their lyx workscreen is suddenly full of
1775 red), but done for the sake of correctness.
1777 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
1778 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
1780 * src/insets/inseterror.h, src/insets/inseturl.h,
1781 src/insets/insetinfo.h, src/insets/figinset.h,
1782 src/mathed/formulamacro.h, src/mathed/math_macro.h
1783 (EditMessage): add a missing const and add _() to make sure that
1786 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
1787 src/insets/insetbib.C, src/support/filetools.C: add `using'
1790 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
1791 doing 'Insert index of last word' at the beginning of a paragraph.
1793 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1795 * several files: white-space changes.
1797 * src/mathed/formula.C: removed IsAlpha and IsDigit
1799 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
1800 .bib file. use a ifstream instead of FilePtr when parsing the .bib
1803 * src/insets/figinset.C (GetPSSizes): don't break when
1804 "EndComments" is seen. But break when a boundingbox is read.
1806 * all classes inherited from Inset: return value of Clone
1807 changed back to Inset *.
1809 * all classes inherited form MathInset: return value of Clone
1810 changed back to MathedInset *.
1812 * src/insets/figinset.C (runqueue): use a ofstream to output the
1813 gs/ps file. Might need some setpresicion or setw. However I can
1814 see no problem with the current code.
1815 (runqueue): use sleep instead of the alarm/signal code. I just
1816 can't see the difference.
1818 * src/paragraph.C (LyXParagraph): reserve space in the new
1819 paragraph and resize the inserted paragraph to just fit.
1821 * src/lyxfunc.h (operator|=): added operator for func_status.
1823 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
1824 check for readable file.
1826 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
1827 check for readable file.
1828 (MenuMakeLinuxDoc): ditto
1829 (MenuMakeDocBook): ditto
1830 (MenuMakeAscii): ditto
1831 (InsertAsciiFile): split the test for openable and readable
1833 * src/bmtable.C (draw_bitmaptable): use
1834 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
1836 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
1837 findtexfile from LaTeX to filetools.
1839 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
1840 instead of FilePtr. Needs to be verified by a literate user.
1842 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1844 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
1845 (EditMessage): likewise.
1847 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
1848 respectively as \textasciitilde and \textasciicircum.
1850 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1852 * src/support/lyxstring.h: made the methods that take iterators
1855 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
1856 (regexMatch): made is use the real regex class.
1858 * src/support/Makefile.am: changed to use libtool
1860 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
1862 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
1864 (MathIsInset ++): changed several macros to be inline functions
1867 * src/mathed/Makefile.am: changed to use libtool
1869 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
1871 * src/insets/inset* : Clone changed to const and return type is
1872 the true insettype not just Inset*.
1874 * src/insets/Makefile.am: changed to use libtool
1876 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
1878 * src/undo.[Ch] : added empty() and changed some of the method
1881 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
1883 * src/lyxparagraph.h: use id() and id(...) instead of getID and
1884 setID use block<> for the bullets array, added const several places.
1886 * src/lyxfunc.C (getStatus): new function
1888 * src/lyxfunc.[Ch] : small changes to take advantage of the new
1889 LyXAction, added const to several funtions.
1891 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
1892 a std::map, and to store the dir items in a vector.
1894 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
1897 * src/LyXView.[Ch] + other files : changed currentView to view.
1899 * src/LyXAction.[Ch] : ported from the old devel branch.
1901 * src/.cvsignore: added .libs and a.out
1903 * configure.in : changes to use libtool.
1905 * acinclude.m4 : inserted libtool.m4
1907 * .cvsignore: added libtool
1909 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1911 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
1912 file name in insets and mathed directories (otherwise the
1913 dependency is not taken in account under cygwin).
1915 * src/text2.C (InsertString[AB]): make sure that we do not try to
1916 read characters past the string length.
1918 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1920 * lib/doc/LaTeXConfig.lyx.in,
1921 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
1923 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
1924 file saying who created them and when this heppened; this is
1925 useless and annoys tools like cvs.
1927 * lib/layouts/g-brief-{en,de}.layout,
1928 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
1929 from Thomas Hartkens <thomas@hartkens.de>.
1931 * src/{insets,mathed}/Makefile.am: do not declare an empty
1932 LDFLAGS, so that it can be set at configure time (useful on Irix
1935 * lib/reLyX/configure.in: make sure that the prefix is set
1936 correctly in LYX_DIR.
1938 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
1940 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
1941 be used by 'command-sequence' this allows to bind a key to a
1942 sequence of LyX-commands
1943 (Example: 'command-sequence math-insert alpha; math-insert beta;")
1945 * src/LyXAction.C: add "command-sequence"
1947 * src/LyXFunction.C: handling of "command-sequence"
1949 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
1950 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
1952 * src/lyxserver.C, src/minibuffer.C: Use this new interface
1954 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1956 * src/buffer.C (writeFile): Do not output a comment giving user
1957 and date at the beginning of a .lyx file. This is useless and
1958 annoys cvs anyway; update version number to 1.1.
1960 * src/Makefile.am (LYX_DIR): add this definition, so that a
1961 default path is hardcoded in LyX.
1963 * configure.in: Use LYX_GNU_GETTEXT.
1965 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
1966 AM_GNU_GETTEXT with a bug fixed.
1968 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
1970 * src/chset.C: add "using std::ifstream;" to please dec cxx.
1972 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
1973 which is used to point to LyX data is now LYX_DIR_11x.
1975 * lyx.man: convert to a unix text file; small updates.
1977 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1979 * src/support/LSubstring.[Ch]: made the second arg of most of the
1980 constructors be a const reference.
1982 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
1985 * src/support/lyxstring.[Ch] (swap): added missing member function
1986 and specialization of swap(str, str);
1988 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
1990 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
1991 trace of the old one.
1993 * src/undo.[Ch]: made the undostack use std::list to store undo's in
1994 put the member definitions in undo.C.
1996 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
1997 NEW_TEXT and have now only code that was included when this was
2000 * src/intl.C (LCombo): use static_cast
2002 (DispatchCallback): ditto
2004 * src/definitions.h: removed whole file
2006 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
2008 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
2009 parsing and stores in a std:map. a regex defines the file format.
2010 removed unneeded members.
2012 * src/bufferparams.h: added several enums from definitions.h here.
2013 Removed unsused destructor. Changed some types to use proper enum
2014 types. use block to have the temp_bullets and user_defined_bullets
2015 and to make the whole class assignable.
2017 * src/bufferparams.C (Copy): removed this functions, use a default
2020 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
2023 * src/buffer.C (readLyXformat2): commend out all that have with
2024 oldpapersize to do. also comment out all that hve to do with
2025 insetlatex and insetlatexdel.
2026 (setOldPaperStuff): commented out
2028 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
2030 * src/LyXAction.C: remove use of inset-latex-insert
2032 * src/mathed/math_panel.C (button_cb): use static_cast
2034 * src/insets/Makefile.am (insets_o_SOURCES): removed
2037 * src/support/lyxstring.C (helper): use the unsigned long
2038 specifier, UL, instead of a static_cast.
2040 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
2042 * src/support/block.h: new file. to be used as a c-style array in
2043 classes, so that the class can be assignable.
2045 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2047 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
2048 NULL, make sure to return an empty string (it is not possible to
2049 set a string to NULL).
2051 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2053 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
2055 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
2057 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
2058 link line, so that Irix users (for example) can set it explicitely to
2061 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
2062 it can be overidden at make time (static or dynamic link, for
2065 * src/vc-backend.C, src/LaTeXFeatures.h,
2066 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
2067 statements to bring templates to global namespace.
2069 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
2071 * src/support/lyxstring.C (operator[] const): make it standard
2074 * src/minibuffer.C (Init): changed to reflect that more
2075 information is given from the lyxvc and need not be provided here.
2077 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
2079 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
2081 * src/LyXView.C (UpdateTimerCB): use static_cast
2082 (KeyPressMask_raw_callback): ditto
2084 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
2085 buffer_, a lot of changes because of this. currentBuffer() ->
2086 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
2087 also changes to other files because of this.
2089 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
2091 * src/vc-backend.[Ch]: new files. The backends for vc handling,
2092 have no support for RCS and partial support for CVS, will be
2095 * src/insets/ several files: changes because of function name
2096 changes in Bufferview and LyXView.
2098 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
2100 * src/support/LSubstring.[Ch]: new files. These implement a
2101 Substring that can be very convenient to use. i.e. is this
2103 string a = "Mary had a little sheep";
2104 Substring(a, "sheep") = "lamb";
2105 a is now "Mary has a little lamb".
2107 * src/support/LRegex.[Ch]: a regex class that can be used to pick
2108 out patterns and subpatterns of strings. It is used by LSubstring
2109 and also by vc-backend.C
2111 * src/support/lyxstring.C: went over all the assertions used and
2112 tried to correct the wrong ones and flag which of them is required
2113 by the standard. some bugs found because of this. Also removed a
2114 couple of assertions.
2116 * src/support/Makefile.am (libsupport_a_SOURCES): added
2117 LSubstring.[Ch] and LRegex.[Ch]
2119 * src/support/FileInfo.h: have struct stat buf as an object and
2120 not a pointer to one, some changes because of this.
2122 * src/LaTeXFeatures.C (getTClassPreamble): also use the
2123 information in layout when adding the layouts preamble to the
2126 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
2129 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
2130 because of bug in OS/2.
2132 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2134 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
2135 \verbatim@font instead of \ttfamily, so that it can be redefined.
2137 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
2138 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
2139 src/layout.h, src/text2.C: add 'using' directive to bring the
2140 STL templates we need from the std:: namespace to the global one.
2141 Needed by DEC cxx in strict ansi mode.
2143 * src/support/LIstream.h,src/support/LOstream.h,
2144 src/support/lyxstring.h,src/table.h,
2145 src/lyxlookup.h: do not include <config.h> in header
2146 files. This should be done in the .C files only.
2148 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
2152 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2154 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
2155 from Kayvan to fix the tth invokation.
2157 * development/lyx.spec.in: updates from Kayvan to reflect the
2158 changes of file names.
2160 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2162 * src/text2.C (InsertStringB): use std::copy
2163 (InsertStringA): use std::copy
2165 * src/bufferlist.C: use a vector to store the buffers in. This is
2166 an internal change and should not affect any other thing.
2168 * src/BufferView.C (waitForX): use XSync instead of the lengthy
2171 * src/text.C (Fill): fix potential bug, one off bug.
2173 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
2175 * src/Makefile.am (lyx_main.o): add more files it depends on.
2177 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
2179 * src/support/lyxstring.C: use size_t for the reference count,
2180 size, reserved memory and xtra.
2181 (internal_compare): new private member function. Now the compare
2182 functions should work for std::strings that have embedded '\0'
2184 (compare): all compare functions rewritten to use
2187 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2189 * src/support/lyxstring.C (compare): pass c_str()
2190 (compare): pass c_str
2191 (compare): pass c_str
2193 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2195 * src/support/DebugStream.C: <config.h> was not included correctly.
2197 * lib/configure: forgot to re-generate it :( I'll make this file
2198 auto generated soon.
2200 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2202 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
2205 * src/support/lyxstring.C: some changes from length() to rep->sz.
2206 avoids a function call.
2208 * src/support/filetools.C (SpaceLess): yet another version of the
2209 algorithm...now per Jean-Marc's suggestions.
2211 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2213 * src/layout.C (less_textclass_desc): functor for use in sorting
2215 (LyXTextClass::Read): sort the textclasses after reading.
2217 * src/support/filetools.C (SpaceLess): new version of the
2218 SpaceLess functions. What problems does this one give? Please
2221 * images/banner_bw.xbm: made the arrays unsigned char *
2223 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2225 * src/support/lyxstring.C (find): remove bogus assertion in the
2226 two versions of find where this has not been done yet.
2228 * src/support/lyxlib.h: add missing int return type to
2231 * src/menus.C (ShowFileMenu): disable exporting to html if no
2232 html export command is present.
2234 * config/lib_configure.m4: add a test for an HTML converter. The
2235 programs checked for are, in this order: tth, latex2html and
2238 * lib/configure: generated from config/lib_configure.m4.
2240 * src/lyxfunc.C (Dispatch): update and improve the execution of an
2241 html converter. The parameters are now passed through $$FName and
2242 $$OutName, instead of standard input/output.
2244 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
2246 * lib/lyxrc.example: update description of \html_command.
2247 add "quotes" around \screen_font_xxx font setting examples to help
2248 people who use fonts with spaces in their names.
2250 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2252 * Distribution files: updates for v1.1.2
2254 * src/support/lyxstring.C (find): remove bogus assert and return
2255 npos for the same condition.
2257 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2259 * added patch for OS/2 from SMiyata.
2261 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2263 * src/text2.C (CutSelection): make space_wrapped a bool
2264 (CutSelection): dont declare int i until we have to.
2265 (alphaCounter): return a char const *.
2267 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2269 * src/support/syscall.C (Systemcalls::kill):
2270 src/support/filetools.C (PutEnv, PutEnvPath):
2271 src/lyx_cb.C (addNewlineAndDepth):
2272 src/FontInfo.C (FontInfo::resize): condition some #warning
2273 directives with WITH_WARNINGS.
2276 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2278 * src/layout.[Ch] + several files: access to class variables
2279 limited and made accessor functions instead a lot of code changed
2280 becuase of this. Also instead of returning pointers often a const
2281 reference is returned instead.
2283 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
2285 * src/Makefile.am (dist-hook): added used to remove the CVS from
2286 cheaders upon creating a dist
2287 (EXTRA_DIST): added cheaders
2289 * src/support/lstrings.C (tostr(char)): fix it to handle param as
2290 a character not as a small integer.
2292 * src/support/lyxstring.C (find): removed Assert and added i >=
2293 rep->sz to the first if.
2295 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2297 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
2298 src/LyXView.C src/buffer.C src/bufferparams.C
2299 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
2300 src/text2.C src/insets/insetinclude.C:
2301 lyxlayout renamed to textclasslist.
2303 * src/layout.C: some lyxerr changes.
2305 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
2306 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
2307 (LyXLayoutList): removed all traces of this class.
2308 (LyXTextClass::Read): rewrote LT_STYLE
2309 (LyXTextClass::hasLayout): new function
2310 (LyXTextClass::GetLayout): rewritten to return an iterator + has
2311 both const and nonconst version.
2312 (LyXTextClass::delete_layout): new function.
2313 (LyXTextClassList::Style): bug fix. do the right thing if layout
2315 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
2316 (LyXTextClassList::NameOfLayout): ditto
2317 (LyXTextClassList::Load): ditto
2319 * src/buffer.C (makeLaTeXFile): new access to layoutlist
2321 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
2323 * src/LyXAction.C (LookupFunc): added a workaround for sun
2324 compiler, on the other hand...we don't know if the current code
2325 compiles on sun at all...
2327 * src/support/filetools.C (CleanupPath): subst fix
2329 * src/insets/insetbib.C (delDatabase): subst fix, this looks
2332 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
2333 complained about this one?
2335 * src/insets/insetinclude.C (Latex): subst fix
2337 * src/insets/insetbib.C (getKeys): subst fix
2339 * src/LyXSendto.C (SendtoApplyCB): subst fix
2341 * src/lyx_main.C (init): subst fix
2343 * src/layout.C (Read): subst fix
2345 * src/lyx_sendfax_main.C (button_send): subst fix
2347 * src/buffer.C (RoffAsciiTable): subst fix
2349 * src/lyx_cb.C (MenuFax): subst fix
2350 (PrintApplyCB): subst fix
2352 1999-10-26 Juergen Vigna <jug@sad.it>
2354 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
2356 (Read): Cleaned up this code so now we read only format vestion >= 5
2358 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2360 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
2361 come nobody has complained about this one?
2363 * src/insets/insetinclude.C (Latex): subst fix
2365 * src/insets/insetbib.C (getKeys): subst fix
2367 * src/lyx_main.C (init): subst fix
2369 * src/layout.C (Read): subst fix
2371 * src/buffer.C (RoffAsciiTable): subst fix
2373 * src/lyx_cb.C (MenuFax): subst fix.
2375 * src/layout.[hC] + some other files: rewrote to use
2376 std::container to store textclasses and layouts in.
2377 Simplified, removed a lot of code. Make all classes
2378 assignable. Further simplifications and review of type
2379 use still to be one.
2381 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
2382 lastfiles to create the lastfiles partr of the menu.
2384 * src/lastfiles.[Ch]: rewritten to use deque to store the
2385 lastfiles in. Uses fstream for reading and writing. Simplifies
2388 * src/support/syscall.C: remove explicit cast.
2390 * src/BufferView.C (CursorToggleCB): removed code snippets that
2392 use explicat C++ style casts instead of C style casts. also use
2393 u_vdata instea of passing pointers in longs.
2395 * src/PaperLayout.C: removed code snippets that were commented out.
2397 * src/lyx_gui_misc.C: removed code snippets that were commented out.
2399 * src/lyx_main.C: removed code snippets that wer commented out.
2401 * src/paragraph.C: removed code snippets that were commented out.
2403 * src/lyxvc.C (logClose): use static_cast
2405 (viewLog): remove explicit cast to void*
2406 (showLog): removed old commented code
2408 * src/menus.C: use static_cast instead of C style casts. use
2409 u_vdata instead of u_ldata. remove explicit cast to (long) for
2410 pointers. Removed old code that was commented out.
2412 * src/insets/inset.C: removed old commented func
2414 * src/insets/insetref.C (InsetRef): removed old code that had been
2415 commented out for a long time.
2417 (escape): removed C style cast
2419 * src/insets/insetlatexaccent.C (Draw): removed old commented code
2421 * src/insets/insetlatex.C (Draw): removed old commented code
2422 (Read): rewritten to use string
2424 * src/insets/insetlabel.C (escape): removed C style cast
2426 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
2428 * src/insets/insetindex.C: use static_cast and u_vdata, removed
2431 * src/insets/insetinclude.h: removed a couple of stupid bools
2433 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
2434 (Clone): remove C style cast
2435 (getKeys): changed list to lst because of std::list
2437 * src/insets/inseterror.C (Draw): removed som old commented code.
2439 * src/insets/insetcommand.C (Draw): removed some old commented code.
2441 * src/insets/insetbib.C (bibitem_cb): removed code that has been
2442 commented out forever.
2443 (bibitem_cb): use static_cast instead of C style cast
2444 use of vdata changed to u_vdata.
2446 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
2448 (CloseUrlCB): use static_cast instead of C style cast.
2449 (CloseUrlCB): added a fl_free form...it seemed to be missing.
2451 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
2452 (C_InsetInfo_CloseInfoCB): forward the ob parameter
2453 (CloseInfoCB): static_cast from ob->u_vdata instead.
2454 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
2457 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
2458 (C_InsetError_CloseErrorCB): forward the ob parameter
2459 (CloseErrorCB): static_cast from ob->u_vdata instead.
2461 * src/vspace.h: include LString.h since we use string in this class.
2463 * src/vspace.C (lyx_advance): changed name from advance because of
2464 nameclash with stl. And since we cannot use namespaces yet...I
2465 used a lyx_ prefix instead. Expect this to change when we begin
2468 * src/BufferView.[Ch] (BufferView::~BufferView): removed
2470 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
2471 and removed now defunct constructor and deconstructor.
2473 * src/BufferView.h: have backstack as a object not as a pointer.
2474 removed initialization from constructor. added include for BackStack
2476 * development/lyx.spec.in (%build): add CFLAGS also.
2478 * src/screen.C (drawFrame): removed another warning.
2480 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2482 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
2483 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
2484 README and ANNOUNCE a bit for the next release. More work is
2487 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
2488 unbreakable if we are in freespacing mode (LyX-Code), but not in
2491 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
2493 * src/BackStack.h: fixed initialization order in constructor
2495 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
2497 * acinclude.m4 (VERSION): new rules for when a version is
2498 development, added also a variable for prerelease.
2499 (warnings): we set with_warnings=yes for prereleases
2500 (lyx_opt): prereleases compile with same optimization as development
2501 (CXXFLAGS): only use pedantic if we are a development version
2503 * src/BufferView.C (restorePosition): don't do anything if the
2506 * src/BackStack.h: added member empty, use this to test if there
2507 is anything to pop...
2509 1999-10-25 Juergen Vigna <jug@sad.it>
2512 * forms/layout_forms.fd +
2513 * forms/latexoptions.fd +
2514 * lyx.fd: changed for various form resize issues
2516 * src/mathed/math_panel.C +
2517 * src/insets/inseterror.C +
2518 * src/insets/insetinfo.C +
2519 * src/insets/inseturl.C +
2520 * src/insets/inseturl.h +
2523 * src/PaperLayout.C +
2524 * src/ParagraphExtra.C +
2525 * src/TableLayout.C +
2527 * src/layout_forms.C +
2534 * src/menus.C: fixed various resize issues. So now forms can be
2535 resized savely or not be resized at all.
2537 * forms/form_url.fd +
2538 * src/insets/form_url.[Ch]: added because it's cleaner and easier
2541 * src/insets/Makefile.am: added files form_url.[Ch]
2543 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2545 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
2546 (and presumably 6.2).
2548 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
2549 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
2550 remaining static member callbacks.
2552 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
2555 * src/support/lyxstring.h: declare struct Srep as friend of
2556 lyxstring, since DEC cxx complains otherwise.
2558 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2560 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2562 * src/LaTeX.C (run): made run_bibtex also depend on files with
2564 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
2565 are put into the dependency file.
2567 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
2568 the code has shown itself to work
2569 (create_ispell_pipe): removed another warning, added a comment
2572 * src/minibuffer.C (ExecutingCB): removed code that has been
2573 commented out a long time
2575 * src/lyxfunc.C (processKeyEvent): removed some very old commented
2576 out code + a warning.
2578 * src/support/lyxstring.h: comment out the three private
2579 operators, when compiling with string ansi conforming compilers
2582 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
2584 (pixmapFromBitmapData): change type of bdata to be unsigned char *
2585 (pixmapFromBitmapData): add a reinterpret_cast in the call to
2588 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
2591 * src/mathed/math_panel.C (create_math_panel): remove explicit
2594 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
2597 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
2598 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
2599 to XCreatePixmapFromBitmapData
2600 (fl_set_bmtable_data): change the last argument to be unsigned
2602 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
2603 and bh to be unsigned int, remove explicit casts in call to
2604 XReadBitmapFileData.
2606 * images/arrows.xbm: made the arrays unsigned char *
2607 * images/varsz.xbm: ditto
2608 * images/misc.xbm: ditto
2609 * images/greek.xbm: ditto
2610 * images/dots.xbm: ditto
2611 * images/brel.xbm: ditto
2612 * images/bop.xbm: ditto
2614 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
2616 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
2617 (LYX_PROG_CXX): added -pedantic to g++ compile options when
2618 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
2620 (LYX_CXX_CHEADERS): added <clocale> to the test.
2622 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
2624 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
2626 * src/support/lyxstring.C (append): fixed something that must be a
2627 bug, rep->assign was used instead of rep->append.
2629 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
2632 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
2633 lyx insert double chars. Fix spotted by Kayvan.
2635 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2637 * Fixed the tth support. I messed up with the Emacs patch apply feature
2638 and omitted the changes in lyxrc.C.
2640 1999-10-22 Juergen Vigna <jug@sad.it>
2642 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
2644 * src/lyx_cb.C (MenuInsertRef) +
2645 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
2646 the form cannot be resized under it limits (fixes a segfault)
2648 * src/lyx.C (create_form_form_ref) +
2649 * forms/lyx.fd: Changed Gravity on name input field so that it is
2652 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2654 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
2655 <ostream> and <istream>.
2657 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
2658 whether <fstream> provides the latest standard features, or if we
2659 have an oldstyle library (like in egcs).
2660 (LYX_CXX_STL_STRING): fix the test.
2662 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
2663 code on MODERN_STL_STREAM.
2665 * src/support/lyxstring.h: use L{I,O}stream.h.
2667 * src/support/L{I,O}stream.h: new files, designed to setup
2668 correctly streams for our use
2669 - includes the right header depending on STL capabilities
2670 - puts std::ostream and std::endl (for LOStream.h) or
2671 std::istream (LIStream.h) in toplevel namespace.
2673 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
2675 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
2676 was a bib file that had been changed we ensure that bibtex is run.
2677 (runBibTeX): enhanced to extract the names of the bib files and
2678 getting their absolute path and enter them into the dep file.
2679 (findtexfile): static func that is used to look for tex-files,
2680 checks for absolute patchs and tries also with kpsewhich.
2681 Alternative ways of finding the correct files are wanted. Will
2683 (do_popen): function that runs a command using popen and returns
2684 the whole output of that command in a string. Should be moved to
2687 * src/DepTable.[Ch] (extchanged): new function that returns true if a
2688 file with extension ext has changed.
2690 * src/insets/figinset.C: added ifdef guards around the fl_free
2691 code that jug commented out. Now it is commented out when
2692 compiling with XForms == 0.89.
2694 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
2695 to lyxstring.C, and only keep a forward declaration in
2696 lyxstring.h. Simplifies the header file a bit and should help a
2697 bit on compile time too. Also changes to Srep will not mandate a
2698 recompile of code just using string.
2699 (~lyxstring): definition moved here since it uses srep.
2700 (size): definition moved here since it uses srep.
2702 * src/support/lyxstring.h: removed a couple of "inline" that should
2705 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2707 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
2710 1999-10-21 Juergen Vigna <jug@sad.it>
2712 * src/table.C (SetPWidth): Just a small fix so the alignment is not
2713 set to left if I just remove the width entry (or it is empty).
2715 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
2716 paragraph when having dummy paragraphs.
2718 1999-10-20 Juergen Vigna <jug@sad.it>
2720 * src/insets/figinset.C: just commented some fl_free_form calls
2721 and added warnings so that this calls should be activated later
2722 again. This avoids for now a segfault, but we have a memory leak!
2724 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
2725 'const char * argument' to 'string argument', this should
2726 fix some Asserts() in lyxstring.C.
2728 * src/lyxfunc.h: Removed the function argAsString(const char *)
2729 as it is not used anymore.
2731 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
2733 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
2736 * src/Literate.h: some funcs moved from public to private to make
2737 interface clearer. Unneeded args removed.
2739 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
2741 (scanBuildLogFile): ditto
2743 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
2744 normal TeX Error. Still room for improvement.
2746 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
2748 * src/buffer.C (insertErrors): changes to make the error
2749 desctription show properly.
2751 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
2754 * src/support/lyxstring.C (helper): changed to use
2755 sizeof(object->rep->ref).
2756 (operator>>): changed to use a pointer instead.
2758 * src/support/lyxstring.h: changed const reference & to value_type
2759 const & lets see if that helps.
2761 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
2763 * Makefile.am (rpmdist): fixed to have non static package and
2766 * src/support/lyxstring.C: removed the compilation guards
2768 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
2771 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
2772 conditional compile of lyxstring.Ch
2774 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
2775 stupid check, but it is a lot better than the bastring hack.
2776 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
2778 * several files: changed string::erase into string::clear. Not
2781 * src/chset.C (encodeString): use a char temporary instead
2783 * src/table.C (TexEndOfCell): added tostr around
2784 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
2785 (TexEndOfCell): ditto
2786 (TexEndOfCell): ditto
2787 (TexEndOfCell): ditto
2788 (DocBookEndOfCell): ditto
2789 (DocBookEndOfCell): ditto
2790 (DocBookEndOfCell): ditto
2791 (DocBookEndOfCell): ditto
2793 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
2795 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
2797 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
2798 (MenuBuildProg): added tostr around ret
2799 (MenuRunChktex): added tostr around ret
2800 (DocumentApplyCB): added tostr around ret
2802 * src/chset.C (encodeString): added tostr around t->ic
2804 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
2805 (makeLaTeXFile): added tostr around tocdepth
2806 (makeLaTeXFile): added tostr around ftcound - 1
2808 * src/insets/insetbib.C (setCounter): added tostr around counter.
2810 * src/support/lyxstring.h: added an operator+=(int) to catch more
2813 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
2814 (lyxstring): We DON'T allow NULL pointers.
2816 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2818 * src/mathed/math_macro.C (MathMacroArgument::Write,
2819 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
2820 when writing them out.
2822 * src/LString.C: remove, since it is not used anymore.
2824 * src/support/lyxstring.C: condition the content to
2825 USE_INCLUDED_STRING macro.
2827 * src/mathed/math_symbols.C, src/support/lstrings.C,
2828 src/support/lyxstring.C: add `using' directive to specify what
2829 we need in <algorithm>. I do not think that we need to
2830 conditionalize this, but any thought is appreciated.
2832 * many files: change all callback functions to "C" linkage
2833 functions to please strict C++ compilers like DEC cxx 6.1 in mode
2834 strict_ansi. Those who were static are now global.
2835 The case of callbacks which are static class members is
2836 trickier, since we have to make C wrappers around them (see
2837 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
2838 did not finish this yet, since it defeats the purpose of
2839 encapsulation, and I am not sure what the best route is.
2841 1999-10-19 Juergen Vigna <jug@sad.it>
2843 * src/support/lyxstring.C (lyxstring): we permit to have a null
2844 pointer as assignment value and just don't assign it.
2846 * src/vspace.C (nextToken): corrected this function substituting
2847 find_first(_not)_of with find_last_of.
2849 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
2850 (TableOptCloseCB) (TableSpeCloseCB):
2851 inserted fl_set_focus call for problem with fl_hide_form() in
2854 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2856 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
2859 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2861 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
2862 LyXLex::next() and not eatline() to get its argument.
2864 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
2866 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
2867 instead, use fstreams for io of the depfile, removed unneeded
2868 functions and variables.
2870 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
2871 vector instead, removed all functions and variables that is not in
2874 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2876 * src/buffer.C (insertErrors): use new interface to TeXError
2878 * Makefile.am (rpmdist): added a rpmdist target
2880 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
2881 per Kayvan's instructions.
2883 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2885 * src/Makefile.am: add a definition for localedir, so that locales
2886 are found after installation (Kayvan)
2888 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2890 * development/.cvsignore: new file.
2892 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2894 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
2895 C++ compiler provides wrappers for C headers and use our alternate
2898 * configure.in: use LYX_CXX_CHEADERS.
2900 * src/cheader/: new directory, populated with cname headers from
2901 libstdc++-2.8.1. They are a bit old, but probably good enough for
2902 what we want (support compilers who lack them).
2904 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
2905 from includes. It turns out is was stupid.
2907 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
2909 * lib/Makefile.am (install-data-local): forgot a ';'
2910 (install-data-local): forgot a '\'
2911 (libinstalldirs): needed after all. reintroduced.
2913 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2915 * configure.in (AC_OUTPUT): added lyx.spec
2917 * development/lyx.spec: removed file
2919 * development/lyx.spec.in: new file
2921 * po/*.po: merged with lyx.pot becuase of make distcheck
2923 * lib/Makefile.am (dist-hook): added dist-hook so that
2924 documentation files will be included when doing a make
2925 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
2926 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
2928 more: tried to make install do the right thing, exclude CVS dirs
2931 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
2932 Path would fit in more nicely.
2934 * all files that used to use pathstack: uses now Path instead.
2935 This change was a lot easier than expected.
2937 * src/support/path.h: new file
2939 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
2941 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
2943 * src/support/lyxstring.C (getline): Default arg was given for
2946 * Configure.cmd: removed file
2948 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2950 * src/support/DebugStream.[Ch]: remove the explicit std:: before
2951 streams classes and types, add the proper 'using' statements when
2952 MODERN_STL is defined.
2954 * src/debug.h: move the << operator definition after the inclusion
2957 * src/support/filetools.C: include "LAssert.h", which is needed
2960 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
2963 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
2964 include "debug.h" to define a proper ostream.
2966 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
2968 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
2969 method to the SystemCall class which can kill a process, but it's
2970 not fully implemented yet.
2972 * src/*.C: Changed Systemcalls::Startscript() to startscript()
2974 * src/support/FileInfo.h: Better documentation
2976 * src/lyxfunc.C: Added support for buffer-export html
2978 * src/menus.C: Added Export->As HTML...
2980 * lib/bind/*.bind: Added short-cut for buffer-export html
2982 * src/lyxrc.*: Added support for new \tth_command
2984 * lib/lyxrc.example: Added stuff for new \tth_command
2986 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2988 * lib/Makefile.am (IMAGES): removed images/README
2989 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
2990 installes in correct place. Check permisions is installed
2993 * src/LaTeX.C: some no-op changes moved declaration of some
2996 * src/LaTeX.h (LATEX_H): changed include guard name
2998 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3000 * lib/reLyX/Makefile.am: install noweb2lyx.
3002 * lib/Makefile.am: install configure.
3004 * lib/reLyX/configure.in: declare a config aux dir; set package
3005 name to lyx (not sure what the best solution is); generate noweb2lyx.
3007 * lib/layouts/egs.layout: fix the bibliography layout.
3009 1999-10-08 Jürgen Vigna <jug@sad.it>
3011 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
3012 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
3013 it returned without continuing to search the path.
3015 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
3017 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
3018 also fixes a bug. It is not allowed to do tricks with std::strings
3019 like: string a("hei"); &a[e]; this will not give what you
3020 think... Any reason for the complexity in this func?
3022 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
3024 * Updated README and INSTALL a bit, mostly to check that my
3025 CVS rights are correctly set up.
3027 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
3029 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
3030 does not allow '\0' chars but lyxstring and std::string does.
3032 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
3034 * autogen.sh (AUTOCONF): let the autogen script create the
3035 POTFILES.in file too. POTFILES.in should perhaps now not be
3036 included in the cvs module.
3038 * some more files changed to use C++ includes instead of C ones.
3040 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
3042 (Reread): added tostr to nlink. buggy output otherwise.
3043 (Reread): added a string() around szMode when assigning to Buffer,
3044 without this I got a log of garbled info strings.
3046 * acconfig.h: commented out the PTR_AS_INT macros. They should not
3049 * I have added several ostream & operator<<(ostream &, some_type)
3050 functions. This has been done to avoid casting and warnings when
3051 outputting enums to lyxerr. This as thus eliminated a lot of
3052 explicit casts and has made the code clearer. Among the enums
3053 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
3054 mathed enums, some font enum the Debug::type enum.
3056 * src/support/lyxstring.h (clear): missing method. equivalent of
3059 * all files that contained "stderr": rewrote constructs that used
3060 stderr to use lyxerr instead. (except bmtable)
3062 * src/support/DebugStream.h (level): and the passed t with
3063 Debug::ANY to avoid spurious bits set.
3065 * src/debug.h (Debug::type value): made it accept strings of the
3068 * configure.in (Check for programs): Added a check for kpsewhich,
3069 the latex generation will use this later to better the dicovery of
3072 * src/BufferView.C (create_view): we don't need to cast this to
3073 (void*) that is done automatically.
3074 (WorkAreaButtonPress): removed some dead code.
3076 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3078 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
3079 is not overwritten when translated (David Sua'rez de Lis).
3081 * lib/CREDITS: Added David Sua'rez de Lis
3083 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
3085 * src/bufferparams.C (BufferParams): default input encoding is now
3088 * acinclude.m4 (cross_compiling): comment out macro
3089 LYX_GXX_STRENGTH_REDUCE.
3091 * acconfig.h: make sure that const is not defined (to empty) when
3092 we are compiling C++. Remove commented out code using SIZEOF_xx
3095 * configure.in : move the test for const and inline as late as
3096 possible so that these C tests do not interefere with C++ ones.
3097 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
3098 has not been proven.
3100 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3102 * src/table.C (getDocBookAlign): remove bad default value for
3105 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
3107 (ShowFileMenu2): ditto.
3109 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
3112 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
3114 * Most files: finished the change from the old error code to use
3115 DebugStream for all lyxerr debugging. Only minor changes remain
3116 (e.g. the setting of debug levels using strings instead of number)
3118 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3120 * src/layout.C (Add): Changed to use compare_no_case instead of
3123 * src/FontInfo.C: changed loop variable type too string::size_type.
3125 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3127 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
3128 set ETAGS_ARGS to --c++
3130 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
3132 * src/table.C (DocBookEndOfCell): commented out two unused variables
3134 * src/paragraph.C: commented out four unused variables.
3136 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
3137 insed a if clause with type string::size_type.
3139 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
3142 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
3144 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
3145 variable, also changed loop to go from 0 to lenght + 1, instead of
3146 -1 to length. This should be correct.
3148 * src/LaTeX.C (scanError): use string::size_type as loop variable
3151 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
3152 (l.896) since y_tmp and row was not used anyway.
3154 * src/insets/insetref.C (escape): use string::size_type as loop
3157 * src/insets/insetquotes.C (Width): use string::size_type as loop
3159 (Draw): use string::size_type as loop variable type.
3161 * src/insets/insetlatexaccent.C (checkContents): use
3162 string::size_type as loop variable type.
3164 * src/insets/insetlabel.C (escape): use string::size_type as loop
3167 * src/insets/insetinfo.C: added an extern for current_view.
3169 * src/insets/insetcommand.C (scanCommand): use string::size_type
3170 as loop variable type.
3172 * most files: removed the RCS tags. With them we had to recompile
3173 a lot of files after a simple cvs commit. Also we have never used
3174 them for anything meaningful.
3176 * most files: tags-query-replace NULL 0. As adviced several plases
3177 we now use "0" instead of "NULL" in our code.
3179 * src/support/filetools.C (SpaceLess): use string::size_type as
3182 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
3184 * src/paragraph.C: fixed up some more string stuff.
3186 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3188 * src/support/filetools.h: make modestr a std::string.
3190 * src/filetools.C (GetEnv): made ch really const.
3192 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
3193 made code that used these use max/min from <algorithm> instead.
3195 * changed several c library include files to their equivalent c++
3196 library include files. All is not changed yet.
3198 * created a support subdir in src, put lyxstring and lstrings
3199 there + the extra files atexit, fileblock, strerror. Created
3200 Makefile.am. edited configure.in and src/Makefile.am to use this
3201 new subdir. More files moved to support.
3203 * imported som of the functions from repository lyx, filetools
3205 * ran tags-query-replace on LString -> string, corrected the bogus
3206 cases. Tried to make use of lstrings.[hC], debugged a lot. There
3207 is still some errors in there. This is errors where too much or
3208 too litle get deleted from strings (string::erase, string::substr,
3209 string::replace), there can also be some off by one errors, or
3210 just plain wrong use of functions from lstrings. Viewing of quotes
3213 * LyX is now running fairly well with string, but there are
3214 certainly some bugs yet (see above) also string is quite different
3215 from LString among others in that it does not allow null pointers
3216 passed in and will abort if it gets any.
3218 * Added the revtex4 files I forgot when setting up the repository.
3220 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3222 * All over: Tried to clean everything up so that only the files
3223 that we really need are included in the cvs repository.
3224 * Switched to use automake.
3225 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
3226 * Install has not been checked.
3228 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3230 * po/pt.po: Three errors:
3231 l.533 and l.538 format specification error
3232 l. 402 duplicate entry, I just deleted it.