1 2000-04-19 Lars Gullik Bjønnes <larsbj@lyx.org>
6 * NEWS: updated for prerelease of 1.1.5. Please comment and send
7 patches for things that should be in or should be changed.
9 * src/* [insetfiles]: change "usigned char fragile" to bool
10 fragile. There was only one point that could that be questioned
11 and that is commented in formulamacro.C. Grep for "CHECK".
13 * src/CutAndPaste.C (getBufferTextClass): unused func, removed.
14 (DeleteBuffer): take it out of CutAndPaste and make it static.
16 2000-04-17 Lars Gullik Bjønnes <larsbj@lyx.org>
18 * src/paragraph.C (TeXOnePar): use the new method in Spacing to
19 output the spacing envir commands. Also the new commands used in
20 the LaTeX output makes the result better.
22 * src/Spacing.C (writeEnvirBegin): new method
23 (writeEnvirEnd): new method
25 2000-04-18 Juergen Vigna <jug@sad.it>
27 * src/CutAndPaste.C: made textclass a static member of the class
28 as otherwise it is not accesed right!!!
30 2000-04-17 Dekel Tsur <dekel@math.tau.ac.il>
32 * forms/layout_forms.fd
34 * src/layout_forms.C (create_form_form_character)
35 * src/lyx_cb.C (UserFreeFont)
36 * src/lyx_gui.C (create_forms): Added GUI support for multi-lingual
37 documents (in the layout->character popup).
39 2000-04-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
41 * src/spellchecker.C (create_ispell_pipe): fix a bug where
42 \spell_command was in fact not honored (from Kevin Atkinson).
44 * src/lyx_gui.C (~LyXGUI): make sure lyxViews is deleted when
47 * src/lyx_gui.h: make lyxViews private (Angus)
49 2000-04-15 Dekel Tsur <dekel@math.tau.ac.il>
51 * src/mathed/math_write.C
52 (MathMatrixInset::Write) Put \protect before \begin{array} and
53 \end{array} if fragile
54 (MathParInset::Write): Put \protect before \\ if fragile
56 2000-04-15 Lars Gullik Bjønnes <larsbj@lyx.org>
58 * src/lyx_gui.C (LyXGUI): initialize the LyXColorHandler. The
59 initialization if the LyXColorHandler must be done after the
60 connections to the XServer has been established.
62 * src/insets/figinset.C (runqueue): change the grabing a bit. Also
63 get the background pixel from the lyxColorhandler so that the
64 figures are rendered with the correct background color.
65 (NextToken): removed functions.
66 (GetPSSizes): use ifs >> string instead of NextToken.
68 * src/Painter.[Ch]: the color cache moved out of this file.
70 * src/ColorHandler.[Ch]: new files. Holds the gc cache for color
73 2000-04-14 Lars Gullik Bjønnes <larsbj@lyx.org>
75 * src/WorkArea.C (work_area_handler): call BufferView::enterView
76 and Buffer::leaveView when FL_ENTER and FL_LEAVE.
78 * src/BufferView.C (enterView): new func
81 * src/BufferView_pimpl.C (enterView): new func, sets xterm cursor
83 (leaveView): new func, undefines xterm cursor when approp.
85 * src/bufferview_funcs.C: moved SetXCursor to BufferView_pimp.C
86 (AllowInput): delete the Workarea cursor handling from this func.
88 * src/Painter.C (underline): draw a slimer underline in most cases.
90 * src/lyx_main.C (error_handler): use extern "C"
92 2000-04-12 Lars Gullik Bjønnes <larsbj@lyx.org>
94 * src/insets/figinset.C (DocBook): small patch from Jose (jamatos)
97 * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
100 * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
103 * src/bufferview_funcs.[Ch]: two new files, moved several of the
104 methods from lyx_cb.here.
106 * src/lyx_cb.C: in addition to the above; removed input_prohibited
109 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
111 * src/lyx_cb.[Ch]: made several functions take a BufferView* arg
112 instead of using current_view directly.
114 * src/lyxfunc.C (Dispatch): the paragraph-spacing implementation
116 * src/LyXAction.C (init): add the paragraph-spacing command.
118 * src/commandtags.h: add enum for LFUN_PARAGRAPH_SPACING
120 * src/buffer.C (parseSingleLyXformat2Token): read the paragraph spacing
122 * src/lyx_cb.C (CurrentState): output a string when the spacing is
123 different from the documents.
125 * src/text.C (SetHeightOfRow): take paragraph spacing into
126 account, paragraph spacing takes precedence over buffer spacing
127 (GetVisibleRow): ditto
129 * src/paragraph.C (writeFile): output the spacing parameter too.
130 (validate): set the correct features if spacing is used in the
132 (Clear): set spacing to default
133 (MakeSameLayout): spacing too
134 (HasSameLayout): spacing too
135 (SetLayout): spacing too
136 (TeXOnePar): output the spacing commands
138 * src/lyxparagraph.h: added a spacing variable for use with
139 per-paragraph spacing.
141 * src/Spacing.h: add a Default spacing and a method to check if
142 the current spacing is default. also added an operator==
144 * src/text2.C (DeleteEmptyParagraphMechanism): added a
147 2000-04-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
149 * src/lyxserver.C (callback): fix dispatch of functions
151 * src/insets/insetlatexaccent.C (checkContents): turn bogus
152 printf() into lyxerr call.
154 * src/tex-strings.C (tex_fonts): add "pslatex" to the choice of
157 * src/menus.C (ShowInsertMenu): rename "Figure" to "Graphic",
158 "Table" to "Table Box", "Float" to "Floating Material"; deletes
159 the "Float" from each of the subitems.
160 (ShowHelpMenu): add entry for "FAQ" and "TOC".
162 * src/support/DebugStream.h: add an #ifdef to work around a gcc
163 2.8.x compiler error. Yes, I know, gcc 2.8.1 is bad, but I
164 documented the change so that the workaround can be nuked later.
166 * src/lyx_gui_misc.C (getScreenDPI): new function. Code moved from
169 * src/lyxlex_pimpl.C (next): do not re-declare the default value
171 * src/buffer.C (getLatexName): ditto
174 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
176 * src/LaTeXFeatures.h: add a const reference to BufferParams, to
177 avoid some uses of current_view. Added also a bufferParams()
178 method to get at this.
180 * src/lyxtext.h: changed params->buffer and paramters->bparams.
182 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
184 * src/lyxparagraph.[Ch]: removed
185 operator<(LyXParagraph::InsetTable..., added a struct matchIT
186 with operators used by lower_bound and
187 upper_bound in InsetTable's
188 Make struct InsetTable private again. Used matchpos.
190 2000-04-08 Dekel Tsur <dekel@math.tau.ac.il>
192 * src/lyx_cb.C (DocumentApplyCB): When changing the language of the
193 document, the language of existing text is changed (unless the
194 document is multi-lingual)
196 * src/buffer.C (ChangeLanguage,isMultiLingual) New methods.
198 * src/paragraph.C (ChangeLanguage,isMultiLingual) New methods.
200 * A lot of files: A rewrite of the Right-to-Left support.
202 2000-04-10 Juergen Vigna <jug@sad.it>
204 * src/BufferView2.C (showLockedInsetCursor): small bugfix for
205 misplaced cursor when inset in inset is locked.
207 * src/insets/insettext.C (LocalDispatch): small fix so that a
208 BREAKLINE is not inserted if we don't permit it with autBreakRows.
210 * src/insets/insetfoot.C (GetDrawFont): implemented this as the
211 footnote font should be decreased in size twice when displaying.
213 * src/insets/insettext.C (GetDrawFont): inserted this function as
214 the drawing-font may differ from the real paragraph font.
216 * src/lyxfunc.C (processKeyEvent): fixed Esc-handling when unlocking
217 insets (inset in inset!).
219 * src/insets/insetfoot.C (InsertInsetAllowed): implemented the below
220 function here because we don't want footnotes inside footnotes.
222 * src/insets/insettext.C (InsetText): forgot to set autoBreakRows for
224 (init): now set the inset_owner in paragraph.C
225 (LocalDispatch): added some resetPos() in the right position
228 (pasteSelection): changed to use the new CutAndPaste-Class.
230 * src/insets/lyxinset.h: inserted new function InsertInsetAllowed
231 which tells if it is allowed to insert another inset inside this one.
233 * src/lyx_cb.C (DocumentApplyCB): Using CutAndPaste-Class for
234 SwitchLayoutsBetweenClasses.
236 * src/text2.C (InsertInset): checking of the new paragraph-function
238 (DeleteSimpleCutBuffer): removed (for now only with #ifdef) as this
239 is not needed anymore here!
242 (PasteSelection): redone (also with #ifdef) so that now this uses
243 the CutAndPaste-Class.
244 (SwitchLayoutsBetweenClasses): removed here and implemented in the
247 * src/CutAndPaste.[Ch]: added this for clean handling of CutAndPaste
250 * src/paragraph.C (LyXParagraph): inserted new inset_owner pointer
251 so that the paragraph knows if it is inside an (text)-inset.
252 (InsertFromMinibuffer): changed return-value to bool as now it
253 may happen that an inset is not inserted in the paragraph.
254 (InsertInsetAllowed): this checks if it is allowed to insert an
255 inset in this paragraph.
257 (BreakParagraphConservative):
258 (BreakParagraph) : small change for the above change of the return
259 value of InsertFromMinibuffer.
261 * src/lyxparagraph.h: added inset_owner and the functions to handle
262 this (SetInsetOwner(), InInset() and InsertInsetAllowed()).
264 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
266 * src/BufferView.[Ch], src/BufferView_pimpl.[Ch]: move more
267 functions from BufferView to BufferView::Pimpl to ease maintence.
269 * src/text2.C (DeleteEmptyParagraphMechanism): update the cursor
270 correctly. Also use SetCursorIntern instead of SetCursor.
272 * src/insets/insetinfo.C (draw): draw InsetInfo notes with the
275 2000-04-08 Lars Gullik Bjønnes <larsbj@lyx.org>
277 * src/WorkArea.C (belowMouse): manually implement below mouse.
279 * src/*: Add "explicit" on several constructors, I added probably
280 some unneeded ones. A couple of changes to code because of this.
282 * src/BufferView.[Ch]: Used the "pimpl" idiom to hide more of the
283 implementation and private parts from the users of BufferView. Not
286 * src/lyxlex.[Ch]: Used the "pimpl" idiom to hide more of the
287 implementation and private parts from the users of LyXLex. Not
290 * src/BufferView_pimpl.[Ch]: new files
292 * src/lyxlex_pimpl.[Ch]: new files
294 * src/LyXView.[Ch]: some inline functions move out-of-line
296 2000-04-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
298 * src/lyxparagraph.h: make struct InsetTable public.
300 * src/support/lyxstring.h: change lyxstring::difference_type to be
301 ptrdiff_t. Add std:: modifiers to streams.
303 * src/font.C: include the <cctype> header, for islower() and
306 2000-04-03 Lars Gullik Bjønnes <larsbj@lyx.org>
308 * src/font.[Ch]: new files. Contains the metric functions for
309 fonts, takes a LyXFont as parameter. Better separation of concepts.
311 * src/lyxfont.[Ch]: move the metric functions to font.[Ch] several
312 changes because of this.
314 * src/PainterBase.[Ch] (width): remove, use the ones in font.C instead
316 * src/*: compile with -Winline and move functions that don't
319 * src/lyx_cb.C (stringOnlyContains): use string::find_first_not_of
322 2000-04-02 Lars Gullik Bjønnes <larsbj@lyx.org>
324 * src/paragraph.C (GetLabelstring): renamed from GetLabestring.
325 (various files changed because of this)
327 * src/Painter.C (text): fixed the drawing of smallcaps.
329 * src/lyxfont.[Ch] (drawText): removed unused member func.
332 * src/*.C: added needed "using" statements and "std::" qualifiers.
334 2000-03-31 Lars Gullik Bjønnes <larsbj@lyx.org>
336 * src/*.h: removed all use of "using" from header files use
337 qualifier std:: instead.
339 2000-04-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
341 * src/text.C (Backspace): some additional cleanups (we already
342 know whether cursor.pos is 0 or not).
344 * lib/reLyX/Makefile.am (DESTDIR): add an empty value (since
345 automake does not provide one).
347 * src/bmtable.h: replace C++ comments with C comments.
349 2000-04-02 Dekel Tsur <dekel@math.tau.ac.il>
351 * src/screen.C (ShowCursor): Change the shape of the cursor if
352 the current language is not equal to the language of the document.
353 (If the cursor change its shape unexpectedly, then you've found a bug)
355 * src/insets/insettext.C (LocalDispatch, UpdateLocal) Fixed some
358 * src/insets/insetnumber.[Ch]: New files.
360 * src/LyXAction.C (init)
361 * src/lyxfunc.C (dispatch): Add command number-inset-insert
364 * src/lyxrc.C: Renamed command \auto_mathmode to \number_inset
367 * src/paragraph.C: Changed insetlist to Vector<InsetTable>.
368 (the vector is kept sorted).
370 * src/text.C (GetVisibleRow): Draw selection correctly when there
371 is both LTR and RTL text.
373 * src/paragraph.C (Clone): Use the assignment operator for cloning,
374 which is much faster.
376 * src/text.C (GetVisibleRow and other): Do not draw the last space
377 in a row if the direction of the last letter is not equal to the
378 direction of the paragraph.
380 * src/lyxfont.C (latexWriteStartChanges):
381 Check that font language is not equal to basefont language.
382 (latexWriteEndChanges): ditto
384 * src/lyx_cb.C (StyleReset): Don't change the language while using
385 the font-default command.
387 * src/paragraph.C (GetFirstFontSettings): Handle correctly an
388 empty paragraph before a footnote.
390 * src/insets/insetcommand.C (draw): Increase x correctly.
392 * src/screen.C (ShowCursor): Change cursor shape if
393 current language != document language.
395 * src/lyxfunc.C (dispatch): Added calls to owner->view()->setState()
397 2000-03-31 Juergen Vigna <jug@sad.it>
399 * src/paragraph.C (GetInset): commented out text[pos] = ' '
400 (Clone): changed mode how the paragraph-data is copied to the
403 * src/lyxfunc.C (Dispatch): fixed small problem when calling
404 GetInset(pos) with no inset anymore there (in inset UNDO)
406 * src/insets/insetcommand.C (draw): small fix as here x is
407 incremented not as much as width() returns (2 before, 2 behind = 4)
409 2000-03-30 Juergen Vigna <jug@sad.it>
411 * src/insets/insettext.C (InsetText): small fix in initialize
412 widthOffset (should not be done in the init() function)
414 2000-03-29 Amir Karger <karger@lyx.org>
416 * lib/examples/it_ItemizeBullets.lyx: translation by
419 * Implemented \textasciitilde and fixed a tiny bug in reLyX
421 2000-03-29 Juergen Vigna <jug@sad.it>
423 * src/insets/insetcollapsable.C (Clone): same as in InsetFoot
425 * src/insets/insetfoot.C (Clone): small change as for the below
426 new init function in the text-inset
428 * src/insets/insettext.C (init): new function as I've seen that
429 clone did not copy the Paragraph-Data!
430 (LocalDispatch): Added code so that now we have some sort of Undo
431 functionality (well actually we HAVE Undo ;)
433 * src/text.C (Backspace): Small fix for the a | a Backspace problem
435 2000-03-24 Dekel Tsur <dekel@math.tau.ac.il>
437 * src/paragraph.C (AutoDeleteInsets) Fixed a bug (wrong positions
440 2000-03-22 Lars Gullik Bjønnes <larsbj@lyx.org>
442 * src/main.C: added a runtime check that verifies that the xforms
443 header used when building LyX and the library used when running
444 LyX match. Exit with a message if they don't match. This is a
445 version number check only.
447 * src/buffer.C (save): Don't allocate memory on the heap for
448 struct utimbuf times.
450 * *: some using changes, use iosfwd instead of the real headers.
452 * src/lyxfont.C use char const * instead of string for the static
453 strings. Rewrite some functions to use sstream.
455 2000-03-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
457 * src/text.C (Backspace): hopefully fix the dreaded backaspace
460 2000-03-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
462 * lib/layouts/svjog.layout: new file, for Springer-Verlag Journal
463 of Geodesy (from Martin Vermeer)
465 * lib/layouts/svjour.inc: include file for the Springer svjour
466 class. It can be used to support journals other than JoG.
468 * lib/Makefile.am: use $(DESTDIR) make variable (from Arkadiusz
469 Miskiewicz <misiek@pld.org.pl>)
470 * lib/reLyX/Makefile.am: ditto.
472 2000-03-27 Juergen Vigna <jug@sad.it>
474 * src/insets/insettext.C: added Cut/Copy/Paste inside insets,
475 also some modifications with operations on selected text.
477 * src/BufferView.C (checkInsetHit): Now hopefully fixed all the
478 problems with clicking on insets (last famous words ;)
480 * src/insets/insetcommand.C (draw):
481 (width): Changed to have a bit of space before and after the inset so
482 that the blinking cursor can be seen (otherwise it was hidden)
484 2000-03-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
486 * config/gettext.m4 (AM_WITH_NLS): fix a gettext bug where -lintl
487 would not be added to the link list when an installed gettext (not
488 part of libc) is found.
490 2000-03-24 Juergen Vigna <jug@sad.it>
492 * src/insets/insetcollapsable.C (Edit):
493 * src/mathed/formula.C (InsetButtonRelease):
494 (InsetButtonPress): fixed for new handling of ButtonPress/Release
497 * src/BufferView.C (workAreaButtonPress):
498 (workAreaButtonRelease):
499 (checkInsetHit): Finally fixed the clicking on insets be handled
502 * src/insets/insetert.C (Edit): inserted this call so that ERT
503 insets work always with LaTeX-font
505 2000-03-21 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
507 * src/lyx_main.C (easyParse): Removed misplaced gui=false which
508 caused lyx to startup with no GUI in place, causing in a crash
509 upon startup when called with arguments.
511 2000-03-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
513 * src/FontLoader.C: better initialization of dummyXFontStruct.
515 2000-03-20 José Abílio Matos <jamatos@lyx.org>
517 * src/lyxrc.[Ch] Removed \sgml_extra_options, added 6 other flags
518 for linuxdoc and docbook import and export format options.
520 * lib/lyxrc.example Example of default values for the previous flags.
522 * src/lyx_cb.C Use those flags instead of the hardwired values for
523 linuxdoc and docbook export.
525 * src/lyxfunc.[Ch] Added HTML export for linuxdoc and docbook, added
528 * src/menus.C Added menus entries for the new import/exports formats.
530 2000-03-09 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
532 * src/lyxrc.*: Added support for running without Gui
535 * src/FontLoader.C: sensible defaults if no fonts are needed
537 * src/lyx_cb.C: New function ShowMessage (writes either to the
538 minibuffer or cout in case of no gui
539 New function AskOverwrite for common stuff
540 Consequently various changes to call these functions
542 * src/lyx_main.C: allow gui = false and handle lyxrc \use_gui false
543 wild guess at sensible screen resolution when having no gui
545 * src/lyxfont.C: no gui, no fonts... set some defaults
547 2000-03-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
549 * src/LColor.C: made the command inset background a bit lighter.
551 2000-03-20 Hartmut Goebel <goebel@noris.net>
553 * lib/layouts/stdstruct.inc: split into stdtitle.inc and
554 stdstruct.inc. Koma-Script added some title elements which
555 otherwise have been listed below "bibliography". This split allows
556 adding title elements to where they belong.
558 * lib/layouts/scrclass.inc: changed to include stdtitle.inc, then
559 define the additional tilte elements and then include
562 * many other layout files: changed to include stdtitle.inc just
563 before stdstruct.inc.
565 2000-03-18 Dekel Tsur <dekel@math.tau.ac.il>
567 * src/buffer.C: (save) Added the option to store all backup files
568 in a single directory
570 * src/lyxrc.[Ch]: Added variable \backupdir_path
572 * lib/lyxrc.example: Added descriptions of recently added variables
574 * src/insets/insetbib.[Ch]: Fixed few bugs (crash when editing a
575 bibtex inset, not closing the bibtex popup when deleting the inset)
577 2000-03-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
579 * src/lyx_cb.C: add a couple using directives.
581 2000-03-17 José Abílio Matos <jamatos@lyx.org>
582 * src/lyx_cb.C (RunLinuxDoc) Removed the flag==-1 option for linuxdoc
583 import based on the filename.
585 * src/bufferlist.C () Removed the call to RunLinuxDoc where a linuxdoc
586 file would be imported at start, if the filename where of a sgml file.
588 * src/support/filetools.C (IsSGMLfilename) Removed, no longer needed.
590 * src/support/filetools.h (IsSGMLfilename) Removed, no longer needed.
592 2000-03-16 Dekel Tsur <dekel@math.tau.ac.il>
593 * src/lyxfont.h Replaced the member variable bits.direction by the
594 member variable lang. Made many changes in other files.
595 This allows having a multi-lingual document
597 * src/lyxfunc.C, src/lyx_cb.C Added a new command "language <l>"
598 that change the current language to <l>.
599 Removed the command "font-rtl"
601 * src/buffer.C Changed LYX_FORMAT to 2.16 (as I changed the file
602 format for Hebrew documents)
604 * src/lyxrc.C, src/lyxfunc.C Added a new lyxrc command "auto_mathmode"
605 When auto_mathmode is "true", pressing a digit key in normal mode
606 will cause entering into mathmode.
607 If auto_mathmode is "rtl" then this behavior will be active only
608 when writing right-to-left text.
610 * src/text2.C (InsertStringA) The string is inserted using the
613 * src/paragraph.C (GetEndLabel) Gives a correct result for
616 * src/paragraph.C (PreviousBeforeFootnote) Fixed a small bug
618 2000-03-16 Lars Gullik Bjønnes <larsbj@lyx.org>
620 * src/text.C (Backspace): move RemoveParagraph and RemoveRow in
621 front of PasteParagraph. Never insert a ' '. This should at least
622 fix some cause for the segfaults that we have been experiencing,
623 it also fixes backspace behaviour slightly. (Phu!)
625 * src/support/lstrings.C (compare_no_case): some change to make it
626 compile with gcc 2.95.2 and stdlibc++-v3
628 * src/text2.C (MeltFootnoteEnvironment): change type o
629 first_footnote_par_is_not_empty to bool.
631 * src/lyxparagraph.h: make text private. Changes in other files
633 (fitToSize): new function
634 (setContentsFromPar): new function
635 (clearContents): new function
636 (SetChar): new function
638 * src/paragraph.C (readSimpleWholeFile): deleted.
640 * src/lyx_cb.C (InsertAsciiFile): don't use a LyXParagraph to hold
641 the file, just use a simple string instead. Also read the file in
642 a more maintainable manner.
644 * src/text2.C (InsertStringA): deleted.
645 (InsertStringB): deleted.
647 2000-03-15 Lars Gullik Bjønnes <larsbj@lyx.org>
649 * src/text2.C (DeleteEmptyParagraphMechanism): don't run,
650 RedoParagraphs from the doublespace handling part, just set status
651 to NEED_MORE_REFRESH. Also don't update cursor position (should be
652 done, but perhaps not like this.)
654 2000-03-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
656 * src/text2.C (InsertStringA): don't forget to insert a META_INSET
657 character when inserting an inset.
659 2000-03-12 Lars Gullik Bjønnes <larsbj@lyx.org>
661 * src/bufferparams.C (readLanguage): now takes "default" into
664 * src/lyx_main.C (LyX): remove the setup of lyxrc. (new)
665 also initialize the toplevel_keymap with the default bindings from
668 * src/buffer.C (Buffer): remove lyxrc from the parameters.
670 * all files using lyxrc: have lyxrc as a real variable and not a
671 pointer. remove all extern LyXRC * lyxrc. The equiv to this is
674 * src/lyxrc.C: remove double call to defaultKeyBindings
676 * src/toolbar.[Ch]: Let the ToolbarDefaults handle the reading of
677 toolbar defauls using lyxlex. Remove enums, structs, functions
680 * src/lyxrc.h: use ToolbarDefaults instead of Toolbar for storing
681 toolbar defaults. Also store default keybindings in a map.
683 * src/ToolbarDefaults.[Ch]: New file. This class is used for
684 storing the toolbar defaults without any xforms dependencies.
686 * src/insets/figinset.C: patch posted to list by Andre Poenitz
687 applied. Changed to use iterators.
689 2000-03-11 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
691 * development/lyx.spec.in: Fix to ``unset LINGUAS'' line for
692 systems that don't have LINGUAS set to begin with.
694 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
696 * src/text2.C (DeleteEmptyParagraphMechanism): small fix posted to
697 the list by Dekel Tsur.
699 2000-03-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
701 * src/insets/insetgraphics.C (GraphicxCB): declare with "C" linkage.
702 * src/insets/form_graphics.C: ditto.
704 * src/insets/inseturl.C (Latex): the free_spc argument is not used.
706 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
708 * src/bufferparams.C (readLanguage): use the new language map
710 * src/intl.C (InitKeyMapper): use the new language map
712 * src/lyx_gui.C (create_forms): use the new language map
714 * src/language.[Ch]: New files. Used for holding the information
715 about each language. Now! Use this new language map enhance it and
716 make it really usable for our needs.
718 2000-03-09 Dekel Tsur <dekel@math.tau.ac.il>
720 * screen.C (ShowCursor): Removed duplicate code.
721 (ShowManualCursor): Support for 3 cursor shapes: Bar (default),
722 L (LTR text in RTL document), and reversed-L (RTL text in LTR document)
724 * src/text.C (NextBreakPoint,Fill): Moved declaration of left_margin
727 * src/text.C Added TransformChar method. Used for rendering Arabic
728 text correctly (change the glyphs of the letter according to the
729 position in the word)
734 * src/lyxrc.C Added lyxrc command {language_command_begin,
735 language_command_end,language_command_ltr,language_command_rtl,
736 language_package} which allows the use of either arabtex or Omega
739 * src/lyx_gui.C (init)
741 * src/lyxrc.C Added lyxrc command screen_font_encoding_menu. Allows
742 to use encoding for menu fonts which is different than the encoding
745 * src/buffer.C (makeLaTeXFile): If params.language = "default",
746 do not load the babel package.
747 To write an English document with Hebrew/Arabic, change the document
748 language to "english".
750 * src/text2.C (SetCounter): Fixed appendix labels for Hebrew document
751 (alphaCounter): changed to return char
752 (loweralphaCounter, hebrewCounter, romanCounter): New functions
754 * lib/lyxrc.example Added examples for Hebrew/Arabic
757 * src/layout.C Added layout command endlabeltype
759 * src/paragraph.C Added GetEndLabel(),LastPhysicalPar() const
761 * src/text.C (GetVisibleRow): Draw a box at the end of proof layout
763 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
765 * src/mathed/math_delim.C (search_deco): return a
766 math_deco_struct* instead of index.
768 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
770 * All files with a USE_OSTREAM_ONLY within: removed all code that
771 was unused when USE_OSTREAM_ONLY is defined.
773 * src/support/lyxalgo.h (sorted): rewrote to use plain '<' instead
774 of any less. Removed header and using.
776 * src/text.C (GetVisibleRow): draw the string "Page Break
777 (top/bottom)" on screen when drawing a pagebreak line.
779 2000-03-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
781 * lib/doc/LaTeXConfig.lyx.in: add description of textclass llncs.
783 * src/mathed/math_macro.C (draw): do some cast magic.
786 * src/mathed/math_defs.h: change byte* argument to byte const*.
788 * src/mathed/formulamacro.[Ch]: add free_spc to Latex() method.
790 * src/insets/insetfoot.[Ch]: Clone() always returns an Inset* (well I
791 know it is right to return InsetFoot* too, but cxx does not like
794 * src/insets/insetcollapsable.[Ch] (Clone): make const.
796 * development/lyx.spec.in: unset LINGUAS to avoid i18n problems.
798 * src/mathed/math_delim.C: change == to proper assignment.
800 2000-03-09 Juergen Vigna <jug@sad.it>
802 * src/insets/insettext.C (setPos): fixed various cursor positioning
803 problems (via mouse and cursor-keys)
804 (LocalDispatch): added posibility to add a Ctrl-Enter inside a text
805 inset (still a small display problem but it works ;)
807 * src/insets/insetcollapsable.C (draw): added button_top_y and
808 button_bottom_y to have correct values for clicking on the inset.
810 * src/support/lyxalgo.h: commented out 'using std::less'
812 2000-03-08 Juergen Vigna <jug@sad.it>
814 * src/insets/insetcollapsable.C (InsetButtonRelease): Now a
815 Button-Release event closes as it is alos the Release-Event
818 * src/lyxfunc.C (Dispatch): forgot a break in the LFUN_INSET_ERT
820 2000-03-07 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
822 * lib/layouts/literate-scrap.inc: Fixed initial comment. Now we
823 can add multiple spaces in Scrap (literate programming) styles...
824 which, by the way, is how I got hooked on LyX to begin with.
826 * src/mathed/formula.C (Write): Added dummy variable to an
828 (Latex): Add free_spacing boolean to inset::Latex()
830 * src/mathed/formula.h (Latex): Added free_spacing boolean arg.
832 * src/insets/lyxinset.h: Changed definition of the inset::Latex()
833 virtual function to include the free_spacing boolean from
834 the containing paragraph's style.
836 * src/insets/inseturl.C, src/insets/inseturl.h (Latex):
837 Added free_spacing boolean arg to match inset.h
839 * src/insets/insettext.C, src/insets/insettext.h (Latex):
840 Added free_spacing boolean arg to match inset.h
842 * src/insets/insetspecialchar.C, src/insets/insetspecialchar.h (Latex):
843 Added free_spacing boolean and made sure that if in a free_spacing
844 paragraph, that we output normal space if there is a protected space.
846 * src/insets/insetref.C, src/insets/insetref.h (Latex):
847 Added free_spacing boolean arg to match inset.h
849 * src/insets/insetquotes.C, src/insets/insetquotes.h (Latex):
850 Added free_spacing boolean arg to match inset.h
852 * src/insets/insetparent.C, src/insets/insetparent.h (Latex):
853 Added free_spacing boolean arg to match inset.h
855 * src/insets/insetlatexaccent.C, src/insets/insetlatexaccent.h (Latex):
856 Added free_spacing boolean arg to match inset.h
858 * src/insets/insetlatex.C, src/insets/insetlatex.h (Latex):
859 Added free_spacing boolean arg to match inset.h
861 * src/insets/insetlabel.C, src/insets/insetlabel.h (Latex): Added
862 free_spacing boolean arg to match inset.h
864 * src/insets/insetinfo.C, src/insets/insetinfo.h (Latex):
865 Added free_spacing boolean arg to match inset.h
867 * src/insets/insetinclude.C, src/insets/insetinclude.h (Latex):
868 Added free_spacing boolean arg to match inset.h
870 * src/insets/insetgraphics.C, src/insets/insetgraphics.h (Latex):
871 Added free_spacing boolean arg to match inset.h
873 * src/insets/inseterror.C, src/insets/inseterror.h (Latex):
874 Added free_spacing boolean arg to match inset.h
876 * src/insets/insetcommand.C, src/insets/insetcommand.h (Latex):
877 Added free_spacing boolean arg to match inset.h
879 * src/insets/insetbib.C, src/insets/insetbib.h (Latex): Added
880 free_spacing boolean arg to match inset.h
882 * src/insets/figinset.C, src/insets/figinset.h (Latex): Added
883 free_spacing boolean arg to match inset.h
885 * src/text2.C (DeleteEmptyParagraphMechanism): Fix this to
886 ignore free_spacing paragraphs. The user's spaces are left
889 * src/text.C (InsertChar): Fixed the free_spacing layout
890 attribute behavior. Now, if free_spacing is set, you can
891 add multiple spaces in a paragraph with impunity (and they
892 get output verbatim).
893 (SelectSelectedWord): Added dummy argument to inset::Latex()
896 * src/paragraph.C (TeXOnePar): Added dummy args to inset::Latex(...)
899 * src/lyxfunc.C (Dispatch): Hard-spaces input in free_spacing
900 paragraph layouts now only input a simple space instead.
901 Special character insets don't make any sense in free-spacing
904 * src/buffer.C (parseSingleLyXformat2Token): Code to convert
905 hard-spaces in the *input* file to simple spaces if the layout
906 is free-spacing. This converts old files which had to have
907 hard-spaces in free-spacing layouts where a simple space was
909 (writeFileAscii): Added free_spacing check to pass to the newly
910 reworked inset::Latex(...) methods. The inset::Latex() code
911 ensures that hard-spaces in free-spacing paragraphs get output
912 as spaces (rather than "~").
914 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
916 * src/mathed/math_delim.C (draw): draw the empty placeholder
917 delims with a onoffdash line.
918 (struct math_deco_compare): struct that holds the "functors" used
919 for the sort and the binary search in math_deco_table.
920 (class init_deco_table): class used for initial sort of the
922 (search_deco): use lower_bound to do a binary search in the
925 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
927 * src/lyxrc.C: a small secret thingie...
929 * src/lyxlex.C (printTable): changed to take a ostream as paramter
930 and to not flush the stream as often as it used to.
932 * src/support/lyxalgo.h: new file
933 (sorted): template function used for checking if a sequence is
934 sorted or not. Two versions with and without user supplied
935 compare. Uses same compare as std::sort.
937 * src/lyxlex.C (LyXLex): check if the table is sorted, if not sort
938 it and give warning on lyxerr.
940 (struct compare_tags): struct with function operators used for
941 checking if sorted, sorting and lower_bound.
942 (search_kw): use lower_bound instead of manually implemented
945 2000-03-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
947 * src/insets/insetcollapsable.h: fix Clone() declaration.
948 * src/insets/insetfoot.h: ditto.
950 * src/insets/lyxinset.h: remove an extra comma at the end of enum.
952 2000-03-08 Juergen Vigna <jug@sad.it>
954 * src/insets/lyxinset.h: added owner call which tells us if
955 this inset is inside another inset. Changed also the return-type
956 of Editable to an enum so it tells clearer what the return-value is.
958 * src/insets/insettext.C (computeTextRows): fixed computing of
959 textinsets which split automatically on more rows.
961 * src/insets/insetert.[Ch]: changed this to be of BaseType
964 * src/insets/insetfoot.[Ch]: added footnote inset
966 * src/insets/insetcollapsable.[Ch]: added this BaseClass for
967 collapsable insets (like footnote, ert, ...)
969 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
971 * src/lyxdraw.h: remvoe file
973 * src/lyxdraw.C: remove file
975 * src/insets/insettext.C: added <algorithm>.
977 2000-03-07 Lars Gullik Bjønnes <larsbj@lyx.org>
979 * src/mathed/math_panel.C (delim_cb): case MM_OK use string stream
980 (matrix_cb): case MM_OK use string stream
982 * src/mathed/formula.C (LocalDispatch): case LFUN_SETXY use string
985 * src/mathed/math_macro.C (draw): use string stream
986 (Metrics): use string stream
988 * src/paragraph.C (TeXFootnote): for case LyXParagraph::FIG, write
989 directly to the ostream.
991 * src/vspace.C (asString): use string stream.
992 (asString): use string stream
993 (asLatexString): use string stream
995 * src/lyx_cb.C (UpdateLayoutDocument): use string stream for
996 setting Spacing::Other.
998 * src/LaTeXFeatures.C (getPackages): use string stream instead of
999 sprintf when creating the stretch vale.
1001 * src/text2.C (alphaCounter): changed to return a string and to
1002 not use a static variable internally. Also fixed a one-off bug.
1003 (SetCounter): changed the drawing of the labels to use string
1004 streams instead of sprintf.
1006 * src/support/lyxmanip.h: rewrite the newlineanDepth ostream
1007 manipulator to use a scheme that does not require library support.
1008 This is also the way it is done in the new GNU libstdc++. Should
1009 work with DEC cxx now.
1011 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
1013 * src/mathed/math_inset.h (Write(ostream & os): add a space at the
1014 end. This fixes a bug.
1016 * src/mathed (all files concerned with file writing): apply the
1017 USE_OSTREAM_ONLY changes to mathed too.
1019 * src/support/DebugStream.h: make the constructor explicit.
1021 * src/lyxfont.C (latexWriteStartChanges): small bug related to
1022 count and ostream squashed.
1024 2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1026 * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
1028 * src/buffer.C (makeLaTeXFile): add a .c_str(), since
1029 ostringstream uses STL strings, and we might not.
1031 * src/insets/insetspecialchar.C: add using directive.
1032 * src/insets/insettext.C: ditto.
1034 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
1036 * lib/layouts/seminar.layout: feeble attempt at a layout for
1037 seminar.cls, far from completet and could really use some looking
1038 at from people used to write layout files.
1040 * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to
1041 use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is
1042 a lot nicer and works nicely with ostreams.
1044 * src/mathed/formula.C (draw): a slightly different solution that
1045 the one posted to the list, but I think this one works too. (font
1046 size wrong in headers.)
1048 * src/insets/insettext.C (computeTextRows): some fiddling on
1049 Jürgens turf, added some comments that he should read.
1051 * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never
1052 used and it gave compiler warnings.
1053 RC_SHOW_BANNER + "\\show_banner" added, also to reading and
1056 * src/lyx_gui.C (create_forms): do the right thing when
1057 show_banner is true/false.
1059 * src/lyx_cb.C (TimerCB): no need to close or do anything if
1060 show_banner is false.
1062 * most file writing files: Now use iostreams to do almost all of
1063 the writing. Also instead of passing string &, we now use
1064 stringstreams. mathed output is still not adapted to iostreams.
1065 This change can be turned off by commenting out all the occurences
1066 of the "#define USE_OSTREAM_ONLY 1" lines.
1068 * src/WorkArea.C (createPixmap): don't output debug messages.
1069 (WorkArea): don't output debug messages.
1071 * lib/lyxrc.example: added a comment about the new variable
1074 * development/Code_rules/Rules: Added some more commente about how
1075 to build class interfaces and on how better encapsulation can be
1078 2000-03-03 Juergen Vigna <jug@sad.it>
1080 * src/insets/insetert.C (InsetERT): Now ERT-insets break row
1081 automatically with the width of the LyX-Window
1083 * src/insets/insettext.C (computeTextRows): fixed update bug in
1084 displaying text-insets (scrollvalues where not initialized!)
1086 2000-03-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1088 * src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
1089 id in the check of the result from lower_bound is not enough since
1090 lower_bound can return last too, and then res->id will not be a
1093 * all insets and some code that use them: I have conditionalized
1094 removed the Latex(string & out, ...) this means that only the
1095 Latex(ostream &, ...) will be used. This is a work in progress to
1096 move towards using streams for all output of files.
1098 * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type
1101 2000-03-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1103 * src/mathed/math_utils.C (MathedLookupBOP): fix the search
1104 routine (this fixes bug where greek letters were surrounded by too
1107 * src/support/filetools.C (findtexfile): change a bit the search
1108 algorithm, to fix bug introduced in 1.1.4. Note that --format is
1109 no longer passed to kpsewhich, we may have to change that later.
1111 * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
1112 warning options to avoid problems with X header files (from Angus
1114 * acinclude.m4: regenerated.
1116 2000-03-02 Juergen Vigna <jug@sad.it>
1118 * src/insets/insettext.C (WriteParagraphData): Using the
1119 par->writeFile() function for writing paragraph-data.
1120 (Read): Using buffer->parseSingleLyXformat2Token()-function
1121 for parsing paragraph data!
1123 * src/buffer.C (readLyXformat2): removed all parse data and using
1124 the new parseSingleLyXformat2Token()-function.
1125 (parseSingleLyXformat2Token): added this function to parse (read)
1126 lyx-file-format (this is called also from text-insets now!)
1128 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1130 * src/paragraph.C (BeginningOfMainBody): initialize previous_char
1133 * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog
1134 directly instead of going through a func. One very bad thing: a
1135 static LyXFindReplace, but I don't know where to place it.
1137 * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a
1138 string instead of char[]. Also changed to static.
1139 (GetSelectionOrWordAtCursor): changed to static inline
1140 (SetSelectionOverLenChars): ditto.
1142 * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of
1143 current_view and global variables. both classes has changed names
1144 and LyXFindReplace is not inherited from SearchForm.
1146 * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the
1147 fl_form_search form.
1149 * src/lyx_gui.C (create_forms): removed the fl_form_search form.
1151 2000-03-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1153 * lib/bind/*.bind: make sure 'buffer-previous' function is not
1154 bound (from Kayvan).
1156 * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
1158 * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
1160 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1162 * some things that I should comment but the local pub says head to
1165 * comment out all code that belongs to the Roff code for Ascii
1166 export of tables. (this is unused)
1168 * src/LyXView.C: use correct type for global variable
1169 current_layout. (LyXTextClass::size_type)
1171 * some code to get the new insetgraphics closer to working I'd be
1172 grateful for any help.
1174 * src/BufferView2.C (insertInset): use the return type of
1175 NumberOfLayout properly. (also changes in other files)
1177 * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
1178 this as a test. I want to know what breaks because of this.
1180 * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
1182 2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
1184 * lib/layouts/stdlists.inc: changed the lyxlist latex definition
1185 to use a \makebox in the label, this allows proper justification
1186 with out using protected spaces or multiple hfills. Now it is
1187 "label" for left justified, "\hfill label\hfill" for center, and
1188 "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
1189 should be changed accordingly.
1191 2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1193 * src/lyxtext.h: change SetLayout() to take a
1194 LyXTextClass::size_type instead of a char (when there is more than
1195 127 layouts in a class); also change type of copylayouttype.
1196 * src/text2.C (SetLayout): ditto.
1197 * src/LyXView.C (updateLayoutChoice): ditto.
1199 * src/LaTeX.C (scanLogFile): errors where the line number was not
1200 given just after the '!'-line were ignored (from Dekel Tsur).
1202 * lib/lyxrc.example: fix description of \date_insert_format
1204 * lib/layouts/llncs.layout: new layout, contributed by Martin
1207 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1209 * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
1210 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
1211 cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
1212 insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
1213 BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
1214 paragraph.C, text.C, text2.C)
1216 2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1218 * src/insets/insettext.C (LocalDispatch): remove extra break
1221 * src/insets/insetert.[Ch] (Clone): change return value to Inset*
1222 * src/insets/insettext.[Ch] (Clone): change return value to Inset*
1224 * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
1225 * src/insets/insettext.[Ch] (GetCursorPos): ditto
1227 * src/insets/insetbib.h: move InsetBibkey::Holder and
1228 InsetCitation::Holder in public space.
1230 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1232 * src/insets/insettext.h: small change to get the new files from
1233 Juergen to compile (use "string", not "class string").
1235 * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
1236 const & as parameter to LocalDispatch, use LyXFont const & as
1237 paramter to some other func. This also had impacto on lyxinsets.h
1238 and the two mathed insets.
1240 2000-02-24 Juergen Vigna <jug@sad.it>
1243 * src/commandtags.h:
1245 * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
1249 * src/BufferView2.C: added/updated code for various inset-functions
1251 * src/insets/insetert.[Ch]: added implementation of InsetERT
1253 * src/insets/insettext.[Ch]: added implementation of InsetText
1255 * src/insets/inset.C (Edit): added "unsigned int button" parameter
1256 (draw): added preliminary code for inset scrolling not finshed yet
1258 * src/insets/inset.C (LocalDispatch): changed arg parameter to string
1259 as it is in lyxfunc.C now
1261 * src/insets/lyxinset.h: Added functions for text-insets
1263 2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1265 * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
1266 BufferView and reimplement the list as a queue put inside its own
1269 * src/bufferlist.[Ch] (updateInset): remove func, not needed.
1271 * several files: use the new interface to the "updateinsetlist"
1273 * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
1275 (work_area_handler): call BufferView::trippleClick on trippleclick.
1277 * src/BufferView.C (doubleClick): new function, selects word on
1279 (trippleClick): new function, selects line on trippleclick.
1281 2000-02-22 Allan Rae <rae@lyx.org>
1283 * lib/bind/xemacs.bind: buffer-previous not supported
1285 2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1287 * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
1290 2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1292 * src/bufferlist.C: get rid of current_view from this file
1294 * src/spellchecker.C: get rid of current_view from this file
1296 * src/vspace.C: get rid of current_view from this file
1297 (inPixels): added BufferView parameter for this func
1298 (asLatexCommand): added a BufferParams for this func
1300 * src/text.C src/text2.C: get rid of current_view from these
1303 * src/lyxfont.C (getFontDirection): move this function here from
1306 * src/bufferparams.C (getDocumentDirection): move this function
1309 * src/paragraph.C (getParDirection): move this function here from
1311 (getLetterDirection): ditto
1313 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
1315 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
1316 resize due to wrong pixmap beeing used. Also took the opurtunity
1317 to make the LyXScreen stateless on regard to WorkArea and some
1318 general cleanup in the same files.
1320 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1322 * src/Makefile.am: add missing direction.h
1324 * src/PainterBase.h: made the width functions const.
1326 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
1329 * src/insets/insetcommand.C (draw): draw Editable as buttons.
1331 * src/insets/insetlatexaccent.C (draw): make the accents draw
1332 better, at present this will only work well with iso8859-1.
1334 * several files: remove the old drawing code, now we use the new
1337 * several files: remove support for mono_video, reverse_video and
1340 2000-02-17 Juergen Vigna <jug@sad.it>
1342 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
1343 int ** as we have to return the pointer, otherwise we have only
1344 NULL pointers in the returning function.
1346 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1348 * src/LaTeX.C (operator()): quote file name when running latex.
1350 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1352 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
1353 (bubble tip), this removes our special handling of this.
1355 * Remove all code that is unused now that we have the new
1356 workarea. (Code that are not active when NEW_WA is defined.)
1358 * Make the uses of XSync not conditionalized on define USE_XSYNC.
1360 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1362 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
1363 nonexisting layout; correctly redirect obsoleted layouts.
1365 * lib/lyxrc.example: document \view_dvi_paper_option
1367 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
1370 * src/lyx_cb.C (RunScript): handle $$FName for command names.
1371 (PreviewDVI): handle the view_dvi_paper_option variable.
1372 [Both from Roland Krause]
1374 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1376 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
1377 char const *, int, LyXFont)
1378 (text(int, int, string, LyXFont)): ditto
1380 * src/text.C (InsertCharInTable): attempt to fix the double-space
1381 feature in tables too.
1382 (BackspaceInTable): ditto.
1383 (GetVisibleRow): make bottom pagebreak line be a onoff line.
1385 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
1387 * src/text2.C (owner): only complain if owner_ is set and bv != 0
1389 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
1390 newly found text in textcache to this.
1391 (buffer): set the owner of the text put into the textcache to 0
1393 * src/insets/figinset.C (draw): fixed the drawing of figures with
1396 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
1397 drawing of mathframe, hfills, protected space, table lines. I have
1398 now no outstanding drawing problems with the new Painter code.
1400 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1402 * src/PainterBase.C (ellipse, circle): do not specify the default
1405 * src/LColor.h: add using directive.
1407 * src/Painter.[Ch]: change return type of methods from Painter& to
1408 PainterBase&. Add a using directive.
1410 * src/WorkArea.C: wrap xforms callbacks in C functions
1413 * lib/layouts/foils.layout: font fix and simplifications from Carl
1416 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1418 * a lot of files: The Painter, LColor and WorkArea from the old
1419 devel branch has been ported to lyx-devel. Some new files and a
1420 lot of #ifdeffed code. The new workarea is enabled by default, but
1421 if you want to test the new Painter and LColor you have to compile
1422 with USE_PAINTER defined (do this in config.h f.ex.) There are
1423 still some rought edges, and I'd like some help to clear those
1424 out. It looks stable (loads and displays the Userguide very well).
1427 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1429 * src/buffer.C (pop_tag): revert to the previous implementation
1430 (use a global variable for both loops).
1432 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
1434 * src/lyxrc.C (LyXRC): change slightly default date format.
1436 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
1437 there is an English text with a footnote that starts with a Hebrew
1438 paragraph, or vice versa.
1439 (TeXFootnote): ditto.
1441 * src/text.C (LeftMargin): allow for negative values for
1442 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
1445 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
1446 for input encoding (cyrillic)
1448 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1450 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
1453 * src/toolbar.C (set): ditto
1454 * src/insets/insetbib.C (create_form_citation_form): ditto
1456 * lib/CREDITS: added Dekel Tsur.
1458 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
1459 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
1460 hebrew supports files from Dekel Tsur.
1462 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
1463 <tzafrir@technion.ac.il>
1465 * src/lyxrc.C: put \date_insert_format at the right place.
1467 * src/buffer.C (makeLaTeXFile): fix the handling of
1468 BufferParams::sides when writing out latex files.
1470 * src/BufferView2.C: add a "using" directive.
1472 * src/support/lyxsum.C (sum): when we use lyxstring,
1473 ostringstream::str needs an additional .c_str().
1475 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1477 * src/support/filetools.C (ChangeExtension): patch from Etienne
1480 * src/TextCache.C (show): remove const_cast and make second
1481 parameter non-const LyXText *.
1483 * src/TextCache.h: use non const LyXText in show.
1485 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
1488 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1490 * src/support/lyxsum.C: rework to be more flexible.
1492 * several places: don't check if a pointer is 0 if you are going
1495 * src/text.C: remove some dead code.
1497 * src/insets/figinset.C: remove some dead code
1499 * src/buffer.C: move the BufferView funcs to BufferView2.C
1500 remove all support for insetlatexdel
1501 remove support for oldpapersize stuff
1502 made some member funcs const
1504 * src/kbmap.C: use a std::list to store the bindings in.
1506 * src/BufferView2.C: new file
1508 * src/kbsequence.[Ch]: new files
1510 * src/LyXAction.C + others: remove all trace of buffer-previous
1512 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
1513 only have one copy in the binary of this table.
1515 * hebrew patch: moved some functions from LyXText to more
1516 appropriate places. (LyXParagraph, BufferParams, LyXFont)
1518 * several files: remove support for XForms older than 0.88
1520 remove some #if 0 #endif code
1522 * src/TextCache.[Ch]: new file. Holds the textcache.
1524 * src/BufferView.C: changes to use the new TextCache interface.
1525 (waitForX): remove the now unused code.
1527 * src/BackStack.h: remove some commented code
1529 * lib/bind/emacs.bind: remove binding for buffer-previous
1531 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
1533 * applied the hebrew patch.
1535 * src/lyxrow.h: make sure that all Row variables are initialized.
1537 * src/text2.C (TextHandleUndo): comment out a delete, this might
1538 introduce a memory leak, but should also help us to not try to
1539 read freed memory. We need to look at this one.
1541 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
1542 (LyXParagraph): initalize footnotekind.
1544 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
1545 forgot this when applying the patch. Please heed the warnings.
1547 * src/BufferView.C (buffer): a fix for the buffer-reload problem
1548 (aka. reformat problem)
1550 * src/bufferlist.C (exists): made const, and use const_iterator
1551 (isLoaded): new func.
1552 (release): use std::find to find the correct buffer.
1554 * src/bufferlist.h: made getState a const func.
1555 made empty a const func.
1556 made exists a const func.
1559 2000-02-01 Juergen Vigna <jug@sad.it>
1561 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
1563 * po/it.po: updated a bit the italian po file and also changed the
1564 'file nuovo' for newfile to 'filenuovo' without a space, this did
1567 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
1568 for the new insert_date command.
1570 * src/lyxfunc.C (Dispatch): added support for a insert_date function
1571 from jdblair, to insert a date into the current text conforming to
1572 a strftime format (for now only considering the locale-set and not
1573 the document-language).
1575 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1577 * src/lyxfont.C (textWidth): hopefully better fix for the Array
1578 Bounds Read error seen by purify. The problem was that islower is
1579 a macros which takes an unsigned char and uses it as an index for
1580 in array of characters properties (and is thus subject to the
1584 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
1585 correctly the paper sides radio buttons.
1586 (UpdateDocumentButtons): ditto.
1588 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1590 * src/kbmap.C (getsym + others): change to return unsigned int,
1591 returning a long can give problems on 64 bit systems. (I assume
1592 that int is 32bit on 64bit systems)
1594 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1596 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
1597 LyXLookupString to be zero-terminated. Really fixes problems seen
1600 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
1602 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
1603 write a (char*)0 to the lyxerr stream.
1605 * src/lastfiles.C: move algorithm before the using statemets.
1607 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1609 * src/lastfiles.C: move using directives in global scope (egcs 1.x
1610 complains otherwise).
1611 * src/table.C: ditto
1613 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
1616 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
1617 that I removed earlier... It is really needed.
1619 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
1621 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1623 * INSTALL: update xforms home page URL.
1625 * lib/configure.m4: fix a bug with unreadable layout files.
1627 * src/table.C (calculate_width_of_column): add "using std::max"
1630 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1632 * several files: marked several lines with "DEL LINE", this is
1633 lines that can be deleted without changing anything.
1634 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
1635 checks this anyway */
1638 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
1640 * src/DepTable.C (update): add a "+" at the end when the checksum
1641 is different. (debugging string only)
1643 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
1644 the next inset to not be displayed. This should also fix the list
1645 of labels in the "Insert Crossreference" dialog.
1647 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1649 * src/support/LSubstring.C (LSubstring): set pos to string::npos
1650 when regex was not found.
1652 * src/support/lstrings.C (lowercase): use handcoded transform always.
1655 * src/text.C (Delete): fixed the crash. cursor.par->prev and
1656 old_cursor.par->prev could be 0.
1658 * several files: changed post inc/dec to pre inc/dec
1660 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
1661 write the lastfiles to file.
1663 * src/BufferView.C (buffer): only show TextCache info when debugging
1665 (resizeCurrentBuffer): ditto
1666 (workAreaExpose): ditto
1668 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
1670 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
1672 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
1673 a bit better by removing the special case for \i and \j.
1675 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1677 * src/lyx_main.C (easyParse): remove test for bad comand line
1678 options, since this broke all xforms-related parsing.
1680 * src/kbmap.C (getsym): set return type to unsigned long, as
1681 declared in header. On an alpha, long is _not_ the same as int.
1683 * src/support/LOstream.h: add a "using std::flush;"
1685 * src/insets/figinset.C: ditto.
1687 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
1689 * src/bufferlist.C (write): use blinding fast file copy instead of
1690 "a char at a time", now we are doing it the C++ way.
1692 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
1693 std::list<int> instead.
1694 (addpidwait): reflect move to std::list<int>
1695 (sigchldchecker): ditto
1697 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
1700 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
1701 that obviously was wrong...
1703 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
1704 c, this avoids warnings with purify and islower.
1706 * src/insets/figinset.C: rename struct queue to struct
1707 queue_element and rewrite to use a std::queue. gsqueue is now a
1708 std::queue<queue_element>
1709 (runqueue): reflect move to std::queue
1712 * src/support/lstrings.h (tostr): specialize for bool, otherwise
1713 we would get "1" "0" instead of "true" "false. Also make the tostr
1716 2000-01-21 Juergen Vigna <jug@sad.it>
1718 * src/buffer.C (writeFileAscii): Disabled code for special groff
1719 handling of tabulars till I fix this in table.C
1721 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1723 * src/support/mkdir.C (mkdir): change second argument of mkdir to
1725 * src/support/lyxlib.h: ditto.
1727 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
1729 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
1730 and 'j' look better. This might fix the "macron" bug that has been
1733 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
1734 functions as one template function. Delete the old versions.
1736 * src/support/lyxsum.C: move using std::ifstream inside
1739 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
1742 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
1744 * src/mathed/formula.C: delete #include "bufferlist.h" never used
1746 * src/insets/figinset.C (InitFigures): use new instead of malloc
1747 to allocate memory for figures and bitmaps.
1748 (DoneFigures): use delete[] instead of free to deallocate memory
1749 for figures and bitmaps.
1750 (runqueue): use new to allocate
1751 (getfigdata): use new/delete[] instead of malloc/free
1752 (RegisterFigure): ditto
1754 * some files: moved some declarations closer to first use, small
1755 whitespace changes use preincrement instead of postincrement where
1756 it does not make a difference.
1758 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
1759 step on the way to use stl::containers for key maps.
1761 * src/bufferlist.h: add a typedef for const_iterator and const
1762 versions of begin and end.
1764 * src/bufferlist.[Ch]: change name of member variable _state to
1765 state_. (avoid reserved names)
1767 (getFileNames): returns the filenames of the buffers in a vector.
1769 * configure.in (ALL_LINGUAS): added ro
1771 * src/support/putenv.C: new file
1773 * src/support/mkdir.C: new file
1775 2000-01-20 Allan Rae <rae@lyx.org>
1777 * lib/layouts/IEEEtran.layout: Added several theorem environments
1779 * lib/templates/IEEEtran.lyx: Example theorem environments and a
1780 couple of minor additions.
1782 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
1783 (except for those in footnotes of course)
1785 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
1787 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
1789 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
1790 std::sort and std::lower_bound instead of qsort and handwritten
1792 (struct compara): struct that holds the functors used by std::sort
1793 and std::lower_bound in MathedLookupBOP.
1795 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1797 * src/support/LAssert.h: do not do partial specialization. We do
1800 * src/support/lyxlib.h: note that lyx::getUserName() and
1801 lyx::date() are not in use right now. Should these be suppressed?
1803 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
1804 (makeLinuxDocFile): do not put date and user name in linuxdoc
1807 * src/support/lyxlib.h (kill): change first argument to long int,
1808 since that's what solaris uses.
1810 * src/support/kill.C (kill): fix declaration to match prototype.
1812 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
1813 actually check whether namespaces are supported. This is not what
1816 * src/support/lyxsum.C: add a using directive.
1818 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1820 * src/support/kill.C: if we have namespace support we don't have
1821 to include lyxlib.h.
1823 * src/support/lyxlib.h: use namespace lyx if supported.
1825 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1827 * src/support/date.C: new file
1829 * src/support/chdir.C: new file
1831 * src/support/getUserName.C: new file
1833 * src/support/getcwd.C: new file
1835 * src/support/abort.C: new file
1837 * src/support/kill.C: new file
1839 * src/support/lyxlib.h: moved all the functions in this file
1840 insede struct lyx. Added also kill and abort to this struct. This
1841 is a way to avoid the "kill is not defined in <csignal>", we make
1842 C++ wrappers for functions that are not ANSI C or ANSI C++.
1844 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
1845 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
1846 lyx it has been renamed to sum.
1848 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1850 * src/text.C: add using directives for std::min and std::max.
1852 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1854 * src/texrow.C (getIdFromRow): actually return something useful in
1855 id and pos. Hopefully fixes the bug with positionning of errorbox
1858 * src/lyx_main.C (easyParse): output an error and exit if an
1859 incorrect command line option has been given.
1861 * src/spellchecker.C (ispell_check_word): document a memory leak.
1863 * src/bufferlist.C (write): fix mismatched allocation/deletion,
1864 where a "struct utimbuf" is allocated with "new" and deleted with
1867 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1869 * src/text2.C (CutSelection): don't delete double spaces.
1870 (PasteSelection): ditto
1871 (CopySelection): ditto
1873 * src/text.C (Backspace): don't delete double spaces.
1875 * src/lyxlex.C (next): fix a bug that were only present with
1876 conformant std::istream::get to read comment lines, use
1877 std::istream::getline instead. This seems to fix the problem.
1879 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1881 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
1882 allowed to insert space before space" editing problem. Please read
1883 commends at the beginning of the function. Comments about usage
1886 * src/text.C (InsertChar): fix for the "not allowed to insert
1887 space before space" editing problem.
1889 * src/text2.C (DeleteEmptyParagraphMechanism): when
1890 IsEmptyTableRow can only return false this last "else if" will
1891 always be a no-op. Commented out.
1893 * src/text.C (RedoParagraph): As far as I can understand tmp
1894 cursor is not really needed.
1896 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
1897 present it could only return false anyway.
1898 (several functions): Did something not so smart...added a const
1899 specifier on a lot of methods.
1901 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
1902 and add a tmp->text.resize. The LyXParagraph constructor does the
1904 (BreakParagraphConservative): ditto
1906 * src/support/path.h (Path): add a define so that the wrong usage
1907 "Path("/tmp") will be flagged as a compilation error:
1908 "`unnamed_Path' undeclared (first use this function)"
1910 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1912 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
1913 which was bogus for several reasons.
1915 * src/LaTeX.C (scanAux): fix the regular expression used to scan
1919 * autogen.sh: do not use "type -path" (what's that anyway?).
1921 * src/support/filetools.C (findtexfile): remove extraneous space
1922 which caused a kpsewhich warning (at least with kpathsea version
1925 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
1927 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
1929 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
1931 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
1933 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1935 * src/paragraph.C (BreakParagraph): do not reserve space on text
1936 if we don't need to (otherwise, if pos_end < pos, we end up
1937 reserving huge amounts of memory due to bad unsigned karma).
1938 (BreakParagraphConservative): ditto, although I have not seen
1939 evidence the bug can happen here.
1941 * src/lyxparagraph.h: add a using std::list.
1943 2000-01-11 Juergen Vigna <jug@sad.it>
1945 * src/menus.C (MenuDocu): output an Alert if the documentation-file
1948 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
1950 * src/vc-backend.C (doVCCommand): change to be static and take one
1951 more parameter: the path to chdir too be fore executing the command.
1952 (retrive): new function equiv to "co -r"
1954 * src/bufferlist.C (loadLyXFile): implement the missing parts if
1955 file_not_found_hook is true.
1957 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
1959 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
1960 if a file is readwrite,readonly...anything else.
1962 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
1964 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
1965 (CreatePostscript): name change from MenuRunDVIPS (or something)
1966 (PreviewPostscript): name change from MenuPreviewPS
1967 (PreviewDVI): name change from MenuPreviewDVI
1969 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
1970 \view_pdf_command., \pdf_to_ps_command
1972 * lib/configure.m4: added search for PDF viewer, and search for
1973 PDF to PS converter.
1974 (lyxrc.defaults output): add \pdflatex_command,
1975 \view_pdf_command and \pdf_to_ps_command.
1977 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
1979 * src/bufferlist.C (write): we don't use blocksize for anything so
1982 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1984 * src/support/block.h: disable operator T* (), since it causes
1985 problems with both compilers I tried. See comments in the file.
1987 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
1990 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
1991 variable LYX_DIR_10x to LYX_DIR_11x.
1993 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
1995 * INSTALL: document --with-lyxname.
1998 * configure.in: new configure flag --with-lyxname which allows to
1999 choose the name under which lyx is installed. Default is "lyx", of
2000 course. It used to be possible to do this with --program-suffix,
2001 but the later has in fact a different meaning for autoconf.
2003 * src/support/lstrings.h (lstrchr): reformat a bit.
2005 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
2006 * src/mathed/math_defs.h: ditto.
2008 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
2010 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
2011 true, decides if we create a backup file or not when saving. New
2012 tag and variable \pdf_mode, defaults to false. New tag and
2013 variable \pdflatex_command, defaults to pdflatex. New tag and
2014 variable \view_pdf_command, defaults to xpdf. New tag and variable
2015 \pdf_to_ps_command, defaults to pdf2ps.
2017 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
2019 * src/bufferlist.C (close): don't call insetUnlock if the buffer
2020 does not have a BufferView.
2021 (unlockInset): ditto + don't access the_locking_inset if the
2022 buffer does not have a BufferView.
2024 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
2025 certain circumstances so that we don't continue a keyboard
2026 operation long after the key was released. Try f.ex. to load a
2027 large document, press PageDown for some seconds and then release
2028 it. Before this change the document would contine to scroll for
2029 some time, with this change it stops imidiatly.
2031 * src/support/block.h: don't allocate more space than needed. As
2032 long as we don't try to write to the arr[x] in a array_type arr[x]
2033 it is perfectly ok. (if you write to it you might segfault).
2034 added operator value_type*() so that is possible to pass the array
2035 to functions expecting a C-pointer.
2037 * lib/Makefile.am (dist-hook): don't fail completely if unable to
2040 * intl/*: updated to gettext 0.10.35, tried to add our own
2041 required modifications. Please verify.
2043 * po/*: updated to gettext 0.10.35, tried to add our own required
2044 modifications. Please verify.
2046 * src/support/lstrings.C (tostr): go at fixing the problem with
2047 cxx and stringstream. When stringstream is used return
2048 oss.str().c_str() so that problems with lyxstring and basic_string
2049 are avoided. Note that the best solution would be for cxx to use
2050 basic_string all the way, but it is not conformant yet. (it seems)
2052 * src/lyx_cb.C + other files: moved several global functions to
2053 class BufferView, some have been moved to BufferView.[Ch] others
2054 are still located in lyx_cb.C. Code changes because of this. (part
2055 of "get rid of current_view project".)
2057 * src/buffer.C + other files: moved several Buffer functions to
2058 class BufferView, the functions are still present in buffer.C.
2059 Code changes because of this.
2061 * config/lcmessage.m4: updated to most recent. used when creating
2064 * config/progtest.m4: updated to most recent. used when creating
2067 * config/gettext.m4: updated to most recent. applied patch for
2070 * config/gettext.m4.patch: new file that shows what changes we
2071 have done to the local copy of gettext.m4.
2073 * config/libtool.m4: new file, used in creation of acinclude.m4
2075 * config/lyxinclude.m4: new file, this is the lyx created m4
2076 macros, used in making acinclude.m4.
2078 * autogen.sh: GNU m4 discovered as a separate task not as part of
2079 the lib/configure creation.
2080 Generate acinlucde from files in config. Actually cat
2081 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
2082 easier to upgrade .m4 files that really are external.
2084 * src/Spacing.h: moved using std::istringstream to right after
2085 <sstream>. This should fix the problem seen with some compilers.
2087 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2089 * src/lyx_cb.C: began some work to remove the dependency a lot of
2090 functions have on BufferView::text, even if not really needed.
2091 (GetCurrentTextClass): removed this func, it only hid the
2094 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
2095 forgot this in last commit.
2097 * src/Bullet.C (bulletEntry): use static char const *[] for the
2098 tables, becuase of this the return arg had to change to string.
2100 (~Bullet): removed unneeded destructor
2102 * src/BufferView.C (beforeChange): moved from lyx_cb.C
2103 (insetSleep): moved from Buffer
2104 (insetWakeup): moved from Buffer
2105 (insetUnlock): moved from Buffer
2107 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
2108 from Buffer to BufferView.
2110 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
2112 * config/ltmain.sh: updated to version 1.3.4 of libtool
2114 * config/ltconfig: updated to version 1.3.4 of libtool
2116 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2119 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
2120 Did I get that right?
2122 * src/lyxlex.h: add a "using" directive or two.
2123 * src/Spacing.h: ditto.
2124 * src/insets/figinset.C: ditto.
2125 * src/support/filetools.C: ditto.
2126 * src/support/lstrings.C: ditto.
2127 * src/BufferView.C: ditto.
2128 * src/bufferlist.C: ditto.
2129 * src/lyx_cb.C: ditto.
2130 * src/lyxlex.C: ditto.
2132 * NEWS: add some changes for 1.1.4.
2134 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
2136 * src/BufferView.C: first go at a TextCache to speed up switching
2139 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2141 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
2142 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
2143 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
2144 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
2147 * src/mathed/math_defs.h (MathedRowSt): make sure that all
2148 members of the struct are correctly initialized to 0 (detected by
2150 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
2151 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
2153 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
2154 pidwait, since it was allocated with "new". This was potentially
2155 very bad. Thanks to Michael Schmitt for running purify for us.
2158 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2160 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
2162 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
2164 1999-12-30 Allan Rae <rae@lyx.org>
2166 * lib/templates/IEEEtran.lyx: minor change
2168 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
2169 src/mathed/formula.C (LocalDispatch): askForText changes
2171 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
2172 know when a user has cancelled input. Fixes annoying problems with
2173 inserting labels and version control.
2175 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
2177 * src/support/lstrings.C (tostr): rewritten to use strstream and
2180 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
2182 * src/support/filetools.C (IsFileWriteable): use fstream to check
2183 (IsDirWriteable): use fileinfo to check
2185 * src/support/filetools.h (FilePtr): whole class deleted
2187 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
2189 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
2191 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
2193 * src/bufferlist.C (write): use ifstream and ofstream instead of
2196 * src/Spacing.h: use istrstream instead of sscanf
2198 * src/mathed/math_defs.h: change first arg to istream from FILE*
2200 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
2202 * src/mathed/math_parser.C: have yyis to be an istream
2203 (LexGetArg): use istream (yyis)
2205 (mathed_parse): ditto
2206 (mathed_parser_file): first arg istream instead of FILE*, set yyis
2208 * src/mathed/formula.C (Read): rewritten to use istream
2210 * src/mathed/formulamacro.C (Read): rewritten to use istream
2212 * src/lyxlex.h (~LyXLex): deleted desturctor
2213 (getStream): new function, returns an istream
2214 (getFile): deleted funtion
2215 (IsOK): return is.good();
2217 * src/lyxlex.C (LyXLex): delete file and owns_file
2218 (setFile): open an filebuf and assign that to a istream instead of
2220 (setStream): new function, takes an istream as arg.
2221 (setFile): deleted function
2222 (EatLine): rewritten us use istream instead of FILE*
2226 * src/table.C (LyXTable): use istream instead of FILE*
2227 (Read): rewritten to take an istream instead of FILE*
2229 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2231 * src/buffer.C (Dispatch): remove an extraneous break statement.
2233 * src/support/filetools.C (QuoteName): change to do simple
2234 'quoting'. More work is necessary. Also changed to do nothing
2235 under emx (needs fix too).
2236 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
2238 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
2239 config.h.in to the AC_DEFINE_UNQUOTED() call.
2240 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
2241 needs char * as argument (because Solaris 7 declares it like
2244 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
2245 remove definition of BZERO.
2247 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2249 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
2250 defined, "lyxregex.h" if not.
2252 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
2254 (REGEX): new variable that is set to regex.c lyxregex.h when
2255 AM_CONDITIONAL USE_REGEX is set.
2256 (libsupport_la_SOURCES): add $(REGEX)
2258 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
2261 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
2264 * configure.in: add call to LYX_REGEX
2266 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
2267 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
2269 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2271 * lib/bind/fi_menus.bind: new file, from
2272 pauli.virtanen@saunalahti.fi.
2274 * src/buffer.C (getBibkeyList): pass the parameter delim to
2275 InsetInclude::getKeys and InsetBibtex::getKeys.
2277 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
2278 is passed to Buffer::getBibkeyList
2280 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
2281 instead of the hardcoded comma.
2283 * src/insets/insetbib.C (getKeys): make sure that there are not
2284 leading blanks in bibtex keys. Normal latex does not care, but
2285 harvard.sty seems to dislike blanks at the beginning of citation
2286 keys. In particular, the retturn value of the function is
2288 * INSTALL: make it clear that libstdc++ is needed and that gcc
2289 2.7.x probably does not work.
2291 * src/support/filetools.C (findtexfile): make debug message go to
2293 * src/insets/insetbib.C (getKeys): ditto
2295 * src/debug.C (showTags): make sure that the output is correctly
2298 * configure.in: add a comment for TWO_COLOR_ICON define.
2300 * acconfig.h: remove all the entries that already defined in
2301 configure.in or acinclude.m4.
2303 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
2304 to avoid user name, date and copyright.
2306 1999-12-21 Juergen Vigna <jug@sad.it>
2308 * src/table.C (Read): Now read bogus row format informations
2309 if the format is < 5 so that afterwards the table can
2310 be read by lyx but without any format-info. Fixed the
2311 crash we experienced when not doing this.
2313 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
2315 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
2316 (RedoDrawingOfParagraph): ditto
2317 (RedoParagraphs): ditto
2318 (RemoveTableRow): ditto
2320 * src/text.C (Fill): rename arg paperwidth -> paper_width
2322 * src/buffer.C (insertLyXFile): rename var filename -> fname
2323 (writeFile): rename arg filename -> fname
2324 (writeFileAscii): ditto
2325 (makeLaTeXFile): ditto
2326 (makeLinuxDocFile): ditto
2327 (makeDocBookFile): ditto
2329 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
2332 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
2334 * src/bmtable.h: add extern "C" on this file when __cplusplus is
2337 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
2338 compiled by a C compiler not C++.
2340 * src/layout.h (LyXTextClass): added typedef for const_iterator
2341 (LyXTextClassList): added typedef for const_iterator + member
2342 functions begin and end.
2344 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
2345 iterators to fill the choice_class.
2346 (updateLayoutChoice): rewritten to use iterators to fill the
2347 layoutlist in the toolbar.
2349 * src/BufferView.h (BufferView::work_area_width): removed unused
2352 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
2354 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
2355 (sgmlCloseTag): ditto
2357 * src/support/lstrings.h: return type of countChar changed to
2360 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
2361 what version of this func to use. Also made to return unsigned int.
2363 * configure.in: call LYX_STD_COUNT
2365 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
2366 conforming std::count.
2368 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2370 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
2371 and a subscript would give bad display (patch from Dekel Tsur
2372 <dekel@math.tau.ac.il>).
2374 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
2376 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
2379 * src/chset.h: add a few 'using' directives
2381 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
2382 triggered when no buffer is active
2384 * src/layout.C: removed `break' after `return' in switch(), since
2387 * src/lyx_main.C (init): make sure LyX can be ran in place even
2388 when libtool has done its magic with shared libraries. Fix the
2389 test for the case when the system directory has not been found.
2391 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
2392 name for the latex file.
2393 (MenuMakeHTML): ditto
2395 * src/buffer.h: add an optional boolean argument, which is passed
2398 1999-12-20 Allan Rae <rae@lyx.org>
2400 * lib/templates/IEEEtran.lyx: small correction and update.
2402 * configure.in: Attempted to use LYX_PATH_HEADER
2404 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
2406 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
2407 input from JMarc. Now use preprocessor to find the header.
2408 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
2409 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
2410 LYX_STL_STRING_FWD. See comments in file.
2412 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
2414 * The global MiniBuffer * minibuffer variable is dead.
2416 * The global FD_form_main * fd_form_main variable is dead.
2418 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2420 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
2422 * src/table.h: add the LOstream.h header
2423 * src/debug.h: ditto
2425 * src/LyXAction.h: change the explaination of the ReadOnly
2426 attribute: is indicates that the function _can_ be used.
2428 * src/LyXAction.C (init): find-replace _can_ be used in read-only
2431 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2433 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
2439 * src/paragraph.C (GetWord): assert on pos>=0
2442 * src/support/lyxstring.C: condition the use of an invariant on
2444 * src/support/lyxstring.h: ditto
2446 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
2447 Use LAssert.h instead of plain assert().
2449 * src/support/lstrings.h: add LAssert.h, in case it is needed.
2451 * src/lyxfunc.C: do not include LAssert.h, it is not used.
2452 * src/support/filetools.C: ditto
2454 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
2457 * INSTALL: document the new configure flags
2459 * configure.in: suppress --with-debug; add --enable-assertions
2461 * acinclude.m4: various changes in alignment of help strings.
2463 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
2465 * src/kbmap.C: commented out the use of the hash map in kb_map,
2466 beginning of movement to a stl::container.
2468 * several files: removed code that was not in effect when
2469 MOVE_TEXT was defined.
2471 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
2472 for escaping should not be used. We can discuss if the string
2473 should be enclosed in f.ex. [] instead of "".
2475 * src/trans_mgr.C (insert): use the new returned value from
2476 encodeString to get deadkeys and keymaps done correctly.
2478 * src/chset.C (encodeString): changed to return a pair, to tell
2479 what to use if we know the string.
2481 * src/lyxscreen.h (fillArc): new function.
2483 * src/FontInfo.C (resize): rewritten to use more std::string like
2484 structore, especially string::replace.
2486 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
2489 * configure.in (chmod +x some scripts): remove config/gcc-hack
2491 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2493 * src/buffer.C (writeFile): change once again the top comment in a
2494 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
2495 instead of an hardcoded version number.
2496 (makeDocBookFile): ditto
2498 * src/version.h: add new define LYX_DOCVERSION
2500 * po/de.po: update from Pit Sütterlin
2501 * lib/bind/de_menus.bind: ditto.
2503 * src/lyxfunc.C (Dispatch): call MenuExport()
2504 * src/buffer.C (Dispatch): ditto
2506 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
2507 LyXFunc::Dispatch().
2508 (MenuExport): new function, moved from
2509 LyXFunc::Dispatch().
2511 * src/trans_mgr.C (insert): small cleanup
2512 * src/chset.C (loadFile): ditto
2514 * lib/kbd/iso8859-1.cdef: add missing backslashes
2516 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
2518 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
2519 help with placing the manually drawn accents better.
2521 (Draw): x2 and hg changed to float to minimize rounding errors and
2522 help place the accents better.
2524 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
2525 unsigned short to char is just wrong...cast the char to unsigned
2526 char instead so that the two values can compare sanely. This
2527 should also make the display of insetlatexaccents better and
2528 perhaps also some other insets.
2530 (lbearing): new function
2533 1999-12-15 Allan Rae <rae@lyx.org>
2535 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
2536 header that provides a wrapper around the very annoying SGI STL header
2539 * src/support/lyxstring.C, src/LString.h:
2540 removed old SGI-STL-compatability attempts.
2542 * configure.in: Use LYX_STL_STRING_FWD.
2544 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
2545 stl_string_fwd.h is around and try to determine it's location.
2546 Major improvement over previous SGI STL 3.2 compatability.
2547 Three small problems remain with this function due to my zero
2548 knowledge of autoconf. JMarc and lgb see the comments in the code.
2550 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2552 * src/broken_const.h, config/hack-gcc, config/README: removed
2554 * configure.in: remove --with-gcc-hack option; do not call
2557 * INSTALL: remove documentation of --with-broken-const and
2560 * acconfig.h: remove all trace of BROKEN_CONST define
2562 * src/buffer.C (makeDocBookFile): update version number in output
2564 (SimpleDocBookOnePar): fix an assert when trying to a character
2565 access beyond string length
2568 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2570 * po/de.po: fix the Export menu
2572 * lyx.man: update the description of -dbg
2574 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
2575 (commandLineHelp): updated
2576 (easyParse): show list of available debug levels if -dbg is passed
2579 * src/Makefile.am: add debug.C
2581 * src/debug.h: moved some code to debug.C
2583 * src/debug.C: new file. Contains code to set and show debug
2586 * src/layout.C: remove 'break' after 'continue' in switch
2587 statements, since these cannot be reached.
2589 1999-12-13 Allan Rae <rae@lyx.org>
2591 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
2592 (in_word_set): hash() -> math_hash()
2594 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
2596 * acconfig.h: Added a test for whether we are using exceptions in the
2597 current compilation run. If so USING_EXCEPTIONS is defined.
2599 * config.in: Check for existance of stl_string_fwd.h
2600 * src/LString.h: If compiling --with-included-string and SGI's
2601 STL version 3.2 is present (see above test) we need to block their
2602 forward declaration of string and supply a __get_c_string().
2603 However, it turns out this is only necessary if compiling with
2604 exceptions enabled so I've a bit more to add yet.
2606 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
2607 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
2608 src/support/LRegex.h, src/undo.h:
2609 Shuffle the order of the included files a little to ensure that
2610 LString.h gets included before anything that includes stl_string_fwd.h
2612 * src/support/lyxstring.C: We need to #include LString.h instead of
2613 lyxstring.h to get the necessary definition of __get_c_string.
2614 (__get_c_string): New function. This is defined static just like SGI's
2615 although why they need to do this I'm not sure. Perhaps it should be
2616 in lstrings.C instead.
2618 * lib/templates/IEEEtran.lyx: New template file.
2620 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2622 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
2623 * intl/Makefile.in (MKINSTALLDIRS): ditto
2625 * src/LyXAction.C (init): changed to hold the LFUN data in a
2626 automatic array in stead of in callso to newFunc, this speeds up
2627 compilation a lot. Also all the memory used by the array is
2628 returned when the init is completed.
2630 * a lot of files: compiled with -Wold-style-cast, changed most of
2631 the reported offenders to C++ style casts. Did not change the
2632 offenders in C files.
2634 * src/trans.h (Match): change argument type to unsigned int.
2636 * src/support/DebugStream.C: fix some types on the streambufs so
2637 that it works on a conforming implementation.
2639 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2641 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
2643 * src/support/lyxstring.C: remove the inline added earlier since
2644 they cause a bunch of unsatisfied symbols when linking with dec
2645 cxx. Cxx likes to have the body of inlines at the place where they
2648 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
2649 accessing negative bounds in array. This fixes the crash when
2650 inserting accented characters.
2651 * src/trans.h (Match): ditto
2653 * src/buffer.C (Dispatch): since this is a void, it should not try
2654 to return anything...
2656 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
2658 * src/buffer.h: removed the two friends from Buffer. Some changes
2659 because of this. Buffer::getFileName and Buffer::setFileName
2660 renamed to Buffer::fileName() and Buffer::fileName(...).
2662 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
2664 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
2665 and Buffer::update(short) to BufferView. This move is currently
2666 controlled by a define MOVE_TEXT, this will be removed when all
2667 shows to be ok. This move paves the way for better separation
2668 between buffer contents and buffer view. One side effect is that
2669 the BufferView needs a rebreak when swiching buffers, if we want
2670 to avoid this we can add a cache that holds pointers to LyXText's
2671 that is not currently in use.
2673 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
2676 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
2678 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
2680 * lyx_main.C: new command line option -x (or --execute) and
2681 -e (or --export). Now direct conversion from .lyx to .tex
2682 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
2683 Unfortunately, X is still needed and the GUI pops up during the
2686 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2688 * src/Spacing.C: add a using directive to bring stream stuff into
2690 * src/paragraph.C: ditto
2691 * src/buffer.C: ditto
2693 * NEWS: updated a bit the new features of 1.1.3 (took a few things
2694 from Lars' announcement).
2696 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
2697 example files from Tino Meinen.
2699 1999-12-06 Allan Rae <rae@lyx.org>
2701 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
2703 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2705 * src/support/lyxstring.C: added a lot of inline for no good
2708 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
2709 latexWriteEndChanges, they were not used.
2711 * src/layout.h (operator<<): output operator for PageSides
2713 * src/mathed/math_iter.C (my_memcpy): slightly changed.
2715 * some example files: loaded in LyX 1.0.4 and saved again to update
2716 certain constructs (table format)
2718 * a lot of files: did the change to use fstream/iostream for all
2719 writing of files. Done with a close look at Andre Poenitz's patch.
2721 * some files: whitespace changes.
2723 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2725 * src/mathed/math_iter.C (my_memcpy): new function. Since the
2726 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
2727 architecture, we provide our own. It is used unconditionnally, but
2728 I do not think this is a performance problem. Thanks to Angus
2729 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
2730 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
2732 (GetInset): use my_memcpy.
2736 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
2737 it is easier to understand, but it uses less TeX-only constructs now.
2739 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
2740 elements contain spaces
2742 * lib/configure: regenerated
2744 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
2745 elements contain spaces; display the list of programs that are
2748 * autogen.sh: make sure lib/configure is executable
2750 * lib/examples/*: rename the tutorial examples to begin with the
2751 two-letters language code.
2753 * src/lyxfunc.C (getStatus): do not query current font if no
2756 * src/lyx_cb.C (RunScript): use QuoteName
2757 (MenuRunDvips): ditto
2758 (PrintApplyCB): ditto
2760 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
2761 around argument, so that it works well with the current shell.
2762 Does not work properly with OS/2 shells currently.
2764 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
2765 * src/LyXSendto.C (SendtoApplyCB): ditto
2766 * src/lyxfunc.C (Dispatch): ditto
2767 * src/buffer.C (runLaTeX): ditto
2768 (runLiterate): ditto
2769 (buildProgram): ditto
2771 * src/lyx_cb.C (RunScript): ditto
2772 (MenuMakeLaTeX): ditto
2774 * src/buffer.h (getLatexName): new method
2776 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
2778 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2780 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
2781 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
2782 (create_math_panel): ditto
2784 * src/lyxfunc.C (getStatus): re-activate the code which gets
2785 current font and cursor; add test for export to html.
2787 * src/lyxrc.C (read): remove unreachable break statements; add a
2790 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
2792 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2794 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
2795 introduced by faulty regex.
2796 * src/buffer.C: ditto
2797 * src/lastfiles.C: ditto
2798 * src/paragraph.C: ditto
2799 * src/table.C: ditto
2800 * src/vspace.C: ditto
2801 * src/insets/figinset.C: ditto
2802 Note: most of these is absolutely harmless, except the one in
2803 src/mathed formula.C.
2805 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
2807 * src/ImportNoweb.C (documentclass): fixed bounds for substr
2808 operation, yielding correct results for the reLyX command.
2810 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2812 * src/support/filetools.C (ExpandPath): removed an over eager
2814 (ReplaceEnvironmentPath): ditto
2816 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
2817 shows that we are doing something fishy in our code...
2821 * src/lyxrc.C (read): use a double switch trick to get more help
2822 from the compiler. (the same trick is used in layout.C)
2823 (write): new function. opens a ofstream and pass that to output
2824 (output): new function, takes a ostream and writes the lyxrc
2825 elemts to it. uses a dummy switch to make sure no elements are
2828 * src/lyxlex.h: added a struct pushpophelper for use in functions
2829 with more than one exit point.
2831 * src/lyxlex.[Ch] (GetInteger): made it const
2835 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
2837 * src/layout.[hC] : LayoutTags splitted into several enums, new
2838 methods created, better error handling cleaner use of lyxlex. Read
2841 * src/bmtable.[Ch]: change some member prototypes because of the
2842 image const changes.
2844 * commandtags.h, src/LyXAction.C (init): new function:
2845 "preferences-save", saves the lyxrc entries into .lyx/preferences.
2846 This file is not read automatically but you can add \input
2847 preferences to your lyxrc if you want to. We need to discuss how
2850 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
2851 in .aux, also remove .bib and .bst files from dependencies when
2854 * src/BufferView.C, src/LyXView.C: add const_cast several places
2855 because of changes to images.
2857 * lib/images/*: same change as for images/*
2859 * lib/lyxrc.example: Default for accept_compound is false not no.
2861 * images/*: changed to be const, however I have som misgivings
2862 about this change so it might be changed back.
2864 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2866 * lib/configure, po/POTFILES.in: regenerated
2868 * autogen.sh: autogenerate lib/configure from lib/configure.m4
2870 * config/lib_configure.m4: removed
2872 * lib/configure.m4: new file (was config/lib_configure.m4)
2874 * configure.in: do not test for rtti, since we do not use it.
2876 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2878 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
2879 doubling of allocated space scheme. This makes it faster for large
2880 strings end to use less memory for small strings. xtra rememoved.
2882 * src/insets/figinset.C (waitalarm): commented out.
2883 (GhostscriptMsg): use static_cast
2884 (GhostscriptMsg): use new instead of malloc to allocate memory for
2885 cmap. also delete the memory after use.
2887 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
2889 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
2890 for changes in bibtex database or style.
2891 (runBibTeX): remove all .bib and .bst files from dep before we
2893 (run): use scanAuc in when dep file already exist.
2895 * src/DepTable.C (remove_files_with_extension): new method
2898 * src/DepTable.[Ch]: made many of the methods const.
2900 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2902 * src/bufferparams.C: make sure that the default textclass is
2903 "article". It used to be the first one by description order, but
2904 now the first one is "docbook".
2906 * src/lyx_main.C (setDebuggingLevel): change type of argument to
2907 string; call Debug::value.
2908 (easyParse): pass complete argument to setDebuggingLevel().
2910 * src/debug.h (value): fix the code that parses debug levels.
2912 * src/debug.h: add new debug type ACTION, reserved for LyXAction
2915 * src/LyXAction.C: use Debug::ACTION as debug channel.
2917 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
2919 * NEWS: updated for the future 1.1.3 release.
2921 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
2922 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
2923 it should. This is of course a controversial change (since many
2924 people will find that their lyx workscreen is suddenly full of
2925 red), but done for the sake of correctness.
2927 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
2928 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
2930 * src/insets/inseterror.h, src/insets/inseturl.h,
2931 src/insets/insetinfo.h, src/insets/figinset.h,
2932 src/mathed/formulamacro.h, src/mathed/math_macro.h
2933 (EditMessage): add a missing const and add _() to make sure that
2936 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
2937 src/insets/insetbib.C, src/support/filetools.C: add `using'
2940 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
2941 doing 'Insert index of last word' at the beginning of a paragraph.
2943 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
2945 * several files: white-space changes.
2947 * src/mathed/formula.C: removed IsAlpha and IsDigit
2949 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
2950 .bib file. use a ifstream instead of FilePtr when parsing the .bib
2953 * src/insets/figinset.C (GetPSSizes): don't break when
2954 "EndComments" is seen. But break when a boundingbox is read.
2956 * all classes inherited from Inset: return value of Clone
2957 changed back to Inset *.
2959 * all classes inherited form MathInset: return value of Clone
2960 changed back to MathedInset *.
2962 * src/insets/figinset.C (runqueue): use a ofstream to output the
2963 gs/ps file. Might need some setpresicion or setw. However I can
2964 see no problem with the current code.
2965 (runqueue): use sleep instead of the alarm/signal code. I just
2966 can't see the difference.
2968 * src/paragraph.C (LyXParagraph): reserve space in the new
2969 paragraph and resize the inserted paragraph to just fit.
2971 * src/lyxfunc.h (operator|=): added operator for func_status.
2973 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
2974 check for readable file.
2976 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
2977 check for readable file.
2978 (MenuMakeLinuxDoc): ditto
2979 (MenuMakeDocBook): ditto
2980 (MenuMakeAscii): ditto
2981 (InsertAsciiFile): split the test for openable and readable
2983 * src/bmtable.C (draw_bitmaptable): use
2984 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
2986 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
2987 findtexfile from LaTeX to filetools.
2989 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
2990 instead of FilePtr. Needs to be verified by a literate user.
2992 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2994 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
2995 (EditMessage): likewise.
2997 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
2998 respectively as \textasciitilde and \textasciicircum.
3000 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3002 * src/support/lyxstring.h: made the methods that take iterators
3005 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
3006 (regexMatch): made is use the real regex class.
3008 * src/support/Makefile.am: changed to use libtool
3010 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
3012 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
3014 (MathIsInset ++): changed several macros to be inline functions
3017 * src/mathed/Makefile.am: changed to use libtool
3019 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
3021 * src/insets/inset* : Clone changed to const and return type is
3022 the true insettype not just Inset*.
3024 * src/insets/Makefile.am: changed to use libtool
3026 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
3028 * src/undo.[Ch] : added empty() and changed some of the method
3031 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
3033 * src/lyxparagraph.h: use id() and id(...) instead of getID and
3034 setID use block<> for the bullets array, added const several places.
3036 * src/lyxfunc.C (getStatus): new function
3038 * src/lyxfunc.[Ch] : small changes to take advantage of the new
3039 LyXAction, added const to several funtions.
3041 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
3042 a std::map, and to store the dir items in a vector.
3044 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
3047 * src/LyXView.[Ch] + other files : changed currentView to view.
3049 * src/LyXAction.[Ch] : ported from the old devel branch.
3051 * src/.cvsignore: added .libs and a.out
3053 * configure.in : changes to use libtool.
3055 * acinclude.m4 : inserted libtool.m4
3057 * .cvsignore: added libtool
3059 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3061 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
3062 file name in insets and mathed directories (otherwise the
3063 dependency is not taken in account under cygwin).
3065 * src/text2.C (InsertString[AB]): make sure that we do not try to
3066 read characters past the string length.
3068 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3070 * lib/doc/LaTeXConfig.lyx.in,
3071 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
3073 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
3074 file saying who created them and when this heppened; this is
3075 useless and annoys tools like cvs.
3077 * lib/layouts/g-brief-{en,de}.layout,
3078 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
3079 from Thomas Hartkens <thomas@hartkens.de>.
3081 * src/{insets,mathed}/Makefile.am: do not declare an empty
3082 LDFLAGS, so that it can be set at configure time (useful on Irix
3085 * lib/reLyX/configure.in: make sure that the prefix is set
3086 correctly in LYX_DIR.
3088 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
3090 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
3091 be used by 'command-sequence' this allows to bind a key to a
3092 sequence of LyX-commands
3093 (Example: 'command-sequence math-insert alpha; math-insert beta;")
3095 * src/LyXAction.C: add "command-sequence"
3097 * src/LyXFunction.C: handling of "command-sequence"
3099 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
3100 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
3102 * src/lyxserver.C, src/minibuffer.C: Use this new interface
3104 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3106 * src/buffer.C (writeFile): Do not output a comment giving user
3107 and date at the beginning of a .lyx file. This is useless and
3108 annoys cvs anyway; update version number to 1.1.
3110 * src/Makefile.am (LYX_DIR): add this definition, so that a
3111 default path is hardcoded in LyX.
3113 * configure.in: Use LYX_GNU_GETTEXT.
3115 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
3116 AM_GNU_GETTEXT with a bug fixed.
3118 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
3120 * src/chset.C: add "using std::ifstream;" to please dec cxx.
3122 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
3123 which is used to point to LyX data is now LYX_DIR_11x.
3125 * lyx.man: convert to a unix text file; small updates.
3127 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
3129 * src/support/LSubstring.[Ch]: made the second arg of most of the
3130 constructors be a const reference.
3132 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
3135 * src/support/lyxstring.[Ch] (swap): added missing member function
3136 and specialization of swap(str, str);
3138 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
3140 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
3141 trace of the old one.
3143 * src/undo.[Ch]: made the undostack use std::list to store undo's in
3144 put the member definitions in undo.C.
3146 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
3147 NEW_TEXT and have now only code that was included when this was
3150 * src/intl.C (LCombo): use static_cast
3152 (DispatchCallback): ditto
3154 * src/definitions.h: removed whole file
3156 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
3158 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
3159 parsing and stores in a std:map. a regex defines the file format.
3160 removed unneeded members.
3162 * src/bufferparams.h: added several enums from definitions.h here.
3163 Removed unsused destructor. Changed some types to use proper enum
3164 types. use block to have the temp_bullets and user_defined_bullets
3165 and to make the whole class assignable.
3167 * src/bufferparams.C (Copy): removed this functions, use a default
3170 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
3173 * src/buffer.C (readLyXformat2): commend out all that have with
3174 oldpapersize to do. also comment out all that hve to do with
3175 insetlatex and insetlatexdel.
3176 (setOldPaperStuff): commented out
3178 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
3180 * src/LyXAction.C: remove use of inset-latex-insert
3182 * src/mathed/math_panel.C (button_cb): use static_cast
3184 * src/insets/Makefile.am (insets_o_SOURCES): removed
3187 * src/support/lyxstring.C (helper): use the unsigned long
3188 specifier, UL, instead of a static_cast.
3190 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
3192 * src/support/block.h: new file. to be used as a c-style array in
3193 classes, so that the class can be assignable.
3195 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3197 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
3198 NULL, make sure to return an empty string (it is not possible to
3199 set a string to NULL).
3201 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3203 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
3205 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
3207 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
3208 link line, so that Irix users (for example) can set it explicitely to
3211 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
3212 it can be overidden at make time (static or dynamic link, for
3215 * src/vc-backend.C, src/LaTeXFeatures.h,
3216 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
3217 statements to bring templates to global namespace.
3219 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
3221 * src/support/lyxstring.C (operator[] const): make it standard
3224 * src/minibuffer.C (Init): changed to reflect that more
3225 information is given from the lyxvc and need not be provided here.
3227 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
3229 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
3231 * src/LyXView.C (UpdateTimerCB): use static_cast
3232 (KeyPressMask_raw_callback): ditto
3234 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
3235 buffer_, a lot of changes because of this. currentBuffer() ->
3236 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
3237 also changes to other files because of this.
3239 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
3241 * src/vc-backend.[Ch]: new files. The backends for vc handling,
3242 have no support for RCS and partial support for CVS, will be
3245 * src/insets/ several files: changes because of function name
3246 changes in Bufferview and LyXView.
3248 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
3250 * src/support/LSubstring.[Ch]: new files. These implement a
3251 Substring that can be very convenient to use. i.e. is this
3253 string a = "Mary had a little sheep";
3254 Substring(a, "sheep") = "lamb";
3255 a is now "Mary has a little lamb".
3257 * src/support/LRegex.[Ch]: a regex class that can be used to pick
3258 out patterns and subpatterns of strings. It is used by LSubstring
3259 and also by vc-backend.C
3261 * src/support/lyxstring.C: went over all the assertions used and
3262 tried to correct the wrong ones and flag which of them is required
3263 by the standard. some bugs found because of this. Also removed a
3264 couple of assertions.
3266 * src/support/Makefile.am (libsupport_a_SOURCES): added
3267 LSubstring.[Ch] and LRegex.[Ch]
3269 * src/support/FileInfo.h: have struct stat buf as an object and
3270 not a pointer to one, some changes because of this.
3272 * src/LaTeXFeatures.C (getTClassPreamble): also use the
3273 information in layout when adding the layouts preamble to the
3276 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
3279 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
3280 because of bug in OS/2.
3282 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3284 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
3285 \verbatim@font instead of \ttfamily, so that it can be redefined.
3287 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
3288 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
3289 src/layout.h, src/text2.C: add 'using' directive to bring the
3290 STL templates we need from the std:: namespace to the global one.
3291 Needed by DEC cxx in strict ansi mode.
3293 * src/support/LIstream.h,src/support/LOstream.h,
3294 src/support/lyxstring.h,src/table.h,
3295 src/lyxlookup.h: do not include <config.h> in header
3296 files. This should be done in the .C files only.
3298 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
3302 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3304 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
3305 from Kayvan to fix the tth invokation.
3307 * development/lyx.spec.in: updates from Kayvan to reflect the
3308 changes of file names.
3310 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
3312 * src/text2.C (InsertStringB): use std::copy
3313 (InsertStringA): use std::copy
3315 * src/bufferlist.C: use a vector to store the buffers in. This is
3316 an internal change and should not affect any other thing.
3318 * src/BufferView.C (waitForX): use XSync instead of the lengthy
3321 * src/text.C (Fill): fix potential bug, one off bug.
3323 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
3325 * src/Makefile.am (lyx_main.o): add more files it depends on.
3327 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
3329 * src/support/lyxstring.C: use size_t for the reference count,
3330 size, reserved memory and xtra.
3331 (internal_compare): new private member function. Now the compare
3332 functions should work for std::strings that have embedded '\0'
3334 (compare): all compare functions rewritten to use
3337 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
3339 * src/support/lyxstring.C (compare): pass c_str()
3340 (compare): pass c_str
3341 (compare): pass c_str
3343 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3345 * src/support/DebugStream.C: <config.h> was not included correctly.
3347 * lib/configure: forgot to re-generate it :( I'll make this file
3348 auto generated soon.
3350 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
3352 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
3355 * src/support/lyxstring.C: some changes from length() to rep->sz.
3356 avoids a function call.
3358 * src/support/filetools.C (SpaceLess): yet another version of the
3359 algorithm...now per Jean-Marc's suggestions.
3361 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3363 * src/layout.C (less_textclass_desc): functor for use in sorting
3365 (LyXTextClass::Read): sort the textclasses after reading.
3367 * src/support/filetools.C (SpaceLess): new version of the
3368 SpaceLess functions. What problems does this one give? Please
3371 * images/banner_bw.xbm: made the arrays unsigned char *
3373 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3375 * src/support/lyxstring.C (find): remove bogus assertion in the
3376 two versions of find where this has not been done yet.
3378 * src/support/lyxlib.h: add missing int return type to
3381 * src/menus.C (ShowFileMenu): disable exporting to html if no
3382 html export command is present.
3384 * config/lib_configure.m4: add a test for an HTML converter. The
3385 programs checked for are, in this order: tth, latex2html and
3388 * lib/configure: generated from config/lib_configure.m4.
3390 * src/lyxfunc.C (Dispatch): update and improve the execution of an
3391 html converter. The parameters are now passed through $$FName and
3392 $$OutName, instead of standard input/output.
3394 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
3396 * lib/lyxrc.example: update description of \html_command.
3397 add "quotes" around \screen_font_xxx font setting examples to help
3398 people who use fonts with spaces in their names.
3400 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3402 * Distribution files: updates for v1.1.2
3404 * src/support/lyxstring.C (find): remove bogus assert and return
3405 npos for the same condition.
3407 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
3409 * added patch for OS/2 from SMiyata.
3411 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
3413 * src/text2.C (CutSelection): make space_wrapped a bool
3414 (CutSelection): dont declare int i until we have to.
3415 (alphaCounter): return a char const *.
3417 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3419 * src/support/syscall.C (Systemcalls::kill):
3420 src/support/filetools.C (PutEnv, PutEnvPath):
3421 src/lyx_cb.C (addNewlineAndDepth):
3422 src/FontInfo.C (FontInfo::resize): condition some #warning
3423 directives with WITH_WARNINGS.
3426 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3428 * src/layout.[Ch] + several files: access to class variables
3429 limited and made accessor functions instead a lot of code changed
3430 becuase of this. Also instead of returning pointers often a const
3431 reference is returned instead.
3433 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
3435 * src/Makefile.am (dist-hook): added used to remove the CVS from
3436 cheaders upon creating a dist
3437 (EXTRA_DIST): added cheaders
3439 * src/support/lstrings.C (tostr(char)): fix it to handle param as
3440 a character not as a small integer.
3442 * src/support/lyxstring.C (find): removed Assert and added i >=
3443 rep->sz to the first if.
3445 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3447 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
3448 src/LyXView.C src/buffer.C src/bufferparams.C
3449 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
3450 src/text2.C src/insets/insetinclude.C:
3451 lyxlayout renamed to textclasslist.
3453 * src/layout.C: some lyxerr changes.
3455 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
3456 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
3457 (LyXLayoutList): removed all traces of this class.
3458 (LyXTextClass::Read): rewrote LT_STYLE
3459 (LyXTextClass::hasLayout): new function
3460 (LyXTextClass::GetLayout): rewritten to return an iterator + has
3461 both const and nonconst version.
3462 (LyXTextClass::delete_layout): new function.
3463 (LyXTextClassList::Style): bug fix. do the right thing if layout
3465 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
3466 (LyXTextClassList::NameOfLayout): ditto
3467 (LyXTextClassList::Load): ditto
3469 * src/buffer.C (makeLaTeXFile): new access to layoutlist
3471 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
3473 * src/LyXAction.C (LookupFunc): added a workaround for sun
3474 compiler, on the other hand...we don't know if the current code
3475 compiles on sun at all...
3477 * src/support/filetools.C (CleanupPath): subst fix
3479 * src/insets/insetbib.C (delDatabase): subst fix, this looks
3482 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
3483 complained about this one?
3485 * src/insets/insetinclude.C (Latex): subst fix
3487 * src/insets/insetbib.C (getKeys): subst fix
3489 * src/LyXSendto.C (SendtoApplyCB): subst fix
3491 * src/lyx_main.C (init): subst fix
3493 * src/layout.C (Read): subst fix
3495 * src/lyx_sendfax_main.C (button_send): subst fix
3497 * src/buffer.C (RoffAsciiTable): subst fix
3499 * src/lyx_cb.C (MenuFax): subst fix
3500 (PrintApplyCB): subst fix
3502 1999-10-26 Juergen Vigna <jug@sad.it>
3504 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
3506 (Read): Cleaned up this code so now we read only format vestion >= 5
3508 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
3510 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
3511 come nobody has complained about this one?
3513 * src/insets/insetinclude.C (Latex): subst fix
3515 * src/insets/insetbib.C (getKeys): subst fix
3517 * src/lyx_main.C (init): subst fix
3519 * src/layout.C (Read): subst fix
3521 * src/buffer.C (RoffAsciiTable): subst fix
3523 * src/lyx_cb.C (MenuFax): subst fix.
3525 * src/layout.[hC] + some other files: rewrote to use
3526 std::container to store textclasses and layouts in.
3527 Simplified, removed a lot of code. Make all classes
3528 assignable. Further simplifications and review of type
3529 use still to be one.
3531 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
3532 lastfiles to create the lastfiles partr of the menu.
3534 * src/lastfiles.[Ch]: rewritten to use deque to store the
3535 lastfiles in. Uses fstream for reading and writing. Simplifies
3538 * src/support/syscall.C: remove explicit cast.
3540 * src/BufferView.C (CursorToggleCB): removed code snippets that
3542 use explicat C++ style casts instead of C style casts. also use
3543 u_vdata instea of passing pointers in longs.
3545 * src/PaperLayout.C: removed code snippets that were commented out.
3547 * src/lyx_gui_misc.C: removed code snippets that were commented out.
3549 * src/lyx_main.C: removed code snippets that wer commented out.
3551 * src/paragraph.C: removed code snippets that were commented out.
3553 * src/lyxvc.C (logClose): use static_cast
3555 (viewLog): remove explicit cast to void*
3556 (showLog): removed old commented code
3558 * src/menus.C: use static_cast instead of C style casts. use
3559 u_vdata instead of u_ldata. remove explicit cast to (long) for
3560 pointers. Removed old code that was commented out.
3562 * src/insets/inset.C: removed old commented func
3564 * src/insets/insetref.C (InsetRef): removed old code that had been
3565 commented out for a long time.
3567 (escape): removed C style cast
3569 * src/insets/insetlatexaccent.C (Draw): removed old commented code
3571 * src/insets/insetlatex.C (Draw): removed old commented code
3572 (Read): rewritten to use string
3574 * src/insets/insetlabel.C (escape): removed C style cast
3576 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
3578 * src/insets/insetindex.C: use static_cast and u_vdata, removed
3581 * src/insets/insetinclude.h: removed a couple of stupid bools
3583 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
3584 (Clone): remove C style cast
3585 (getKeys): changed list to lst because of std::list
3587 * src/insets/inseterror.C (Draw): removed som old commented code.
3589 * src/insets/insetcommand.C (Draw): removed some old commented code.
3591 * src/insets/insetbib.C (bibitem_cb): removed code that has been
3592 commented out forever.
3593 (bibitem_cb): use static_cast instead of C style cast
3594 use of vdata changed to u_vdata.
3596 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
3598 (CloseUrlCB): use static_cast instead of C style cast.
3599 (CloseUrlCB): added a fl_free form...it seemed to be missing.
3601 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
3602 (C_InsetInfo_CloseInfoCB): forward the ob parameter
3603 (CloseInfoCB): static_cast from ob->u_vdata instead.
3604 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
3607 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
3608 (C_InsetError_CloseErrorCB): forward the ob parameter
3609 (CloseErrorCB): static_cast from ob->u_vdata instead.
3611 * src/vspace.h: include LString.h since we use string in this class.
3613 * src/vspace.C (lyx_advance): changed name from advance because of
3614 nameclash with stl. And since we cannot use namespaces yet...I
3615 used a lyx_ prefix instead. Expect this to change when we begin
3618 * src/BufferView.[Ch] (BufferView::~BufferView): removed
3620 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
3621 and removed now defunct constructor and deconstructor.
3623 * src/BufferView.h: have backstack as a object not as a pointer.
3624 removed initialization from constructor. added include for BackStack
3626 * development/lyx.spec.in (%build): add CFLAGS also.
3628 * src/screen.C (drawFrame): removed another warning.
3630 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3632 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
3633 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
3634 README and ANNOUNCE a bit for the next release. More work is
3637 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
3638 unbreakable if we are in freespacing mode (LyX-Code), but not in
3641 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
3643 * src/BackStack.h: fixed initialization order in constructor
3645 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
3647 * acinclude.m4 (VERSION): new rules for when a version is
3648 development, added also a variable for prerelease.
3649 (warnings): we set with_warnings=yes for prereleases
3650 (lyx_opt): prereleases compile with same optimization as development
3651 (CXXFLAGS): only use pedantic if we are a development version
3653 * src/BufferView.C (restorePosition): don't do anything if the
3656 * src/BackStack.h: added member empty, use this to test if there
3657 is anything to pop...
3659 1999-10-25 Juergen Vigna <jug@sad.it>
3662 * forms/layout_forms.fd +
3663 * forms/latexoptions.fd +
3664 * lyx.fd: changed for various form resize issues
3666 * src/mathed/math_panel.C +
3667 * src/insets/inseterror.C +
3668 * src/insets/insetinfo.C +
3669 * src/insets/inseturl.C +
3670 * src/insets/inseturl.h +
3673 * src/PaperLayout.C +
3674 * src/ParagraphExtra.C +
3675 * src/TableLayout.C +
3677 * src/layout_forms.C +
3684 * src/menus.C: fixed various resize issues. So now forms can be
3685 resized savely or not be resized at all.
3687 * forms/form_url.fd +
3688 * src/insets/form_url.[Ch]: added because it's cleaner and easier
3691 * src/insets/Makefile.am: added files form_url.[Ch]
3693 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3695 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
3696 (and presumably 6.2).
3698 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
3699 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
3700 remaining static member callbacks.
3702 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
3705 * src/support/lyxstring.h: declare struct Srep as friend of
3706 lyxstring, since DEC cxx complains otherwise.
3708 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
3710 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
3712 * src/LaTeX.C (run): made run_bibtex also depend on files with
3714 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
3715 are put into the dependency file.
3717 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
3718 the code has shown itself to work
3719 (create_ispell_pipe): removed another warning, added a comment
3722 * src/minibuffer.C (ExecutingCB): removed code that has been
3723 commented out a long time
3725 * src/lyxfunc.C (processKeyEvent): removed some very old commented
3726 out code + a warning.
3728 * src/support/lyxstring.h: comment out the three private
3729 operators, when compiling with string ansi conforming compilers
3732 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
3734 (pixmapFromBitmapData): change type of bdata to be unsigned char *
3735 (pixmapFromBitmapData): add a reinterpret_cast in the call to
3738 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
3741 * src/mathed/math_panel.C (create_math_panel): remove explicit
3744 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
3747 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
3748 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
3749 to XCreatePixmapFromBitmapData
3750 (fl_set_bmtable_data): change the last argument to be unsigned
3752 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
3753 and bh to be unsigned int, remove explicit casts in call to
3754 XReadBitmapFileData.
3756 * images/arrows.xbm: made the arrays unsigned char *
3757 * images/varsz.xbm: ditto
3758 * images/misc.xbm: ditto
3759 * images/greek.xbm: ditto
3760 * images/dots.xbm: ditto
3761 * images/brel.xbm: ditto
3762 * images/bop.xbm: ditto
3764 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
3766 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
3767 (LYX_PROG_CXX): added -pedantic to g++ compile options when
3768 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
3770 (LYX_CXX_CHEADERS): added <clocale> to the test.
3772 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
3774 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
3776 * src/support/lyxstring.C (append): fixed something that must be a
3777 bug, rep->assign was used instead of rep->append.
3779 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
3782 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
3783 lyx insert double chars. Fix spotted by Kayvan.
3785 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
3787 * Fixed the tth support. I messed up with the Emacs patch apply feature
3788 and omitted the changes in lyxrc.C.
3790 1999-10-22 Juergen Vigna <jug@sad.it>
3792 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
3794 * src/lyx_cb.C (MenuInsertRef) +
3795 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
3796 the form cannot be resized under it limits (fixes a segfault)
3798 * src/lyx.C (create_form_form_ref) +
3799 * forms/lyx.fd: Changed Gravity on name input field so that it is
3802 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3804 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
3805 <ostream> and <istream>.
3807 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
3808 whether <fstream> provides the latest standard features, or if we
3809 have an oldstyle library (like in egcs).
3810 (LYX_CXX_STL_STRING): fix the test.
3812 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
3813 code on MODERN_STL_STREAM.
3815 * src/support/lyxstring.h: use L{I,O}stream.h.
3817 * src/support/L{I,O}stream.h: new files, designed to setup
3818 correctly streams for our use
3819 - includes the right header depending on STL capabilities
3820 - puts std::ostream and std::endl (for LOStream.h) or
3821 std::istream (LIStream.h) in toplevel namespace.
3823 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
3825 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
3826 was a bib file that had been changed we ensure that bibtex is run.
3827 (runBibTeX): enhanced to extract the names of the bib files and
3828 getting their absolute path and enter them into the dep file.
3829 (findtexfile): static func that is used to look for tex-files,
3830 checks for absolute patchs and tries also with kpsewhich.
3831 Alternative ways of finding the correct files are wanted. Will
3833 (do_popen): function that runs a command using popen and returns
3834 the whole output of that command in a string. Should be moved to
3837 * src/DepTable.[Ch] (extchanged): new function that returns true if a
3838 file with extension ext has changed.
3840 * src/insets/figinset.C: added ifdef guards around the fl_free
3841 code that jug commented out. Now it is commented out when
3842 compiling with XForms == 0.89.
3844 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
3845 to lyxstring.C, and only keep a forward declaration in
3846 lyxstring.h. Simplifies the header file a bit and should help a
3847 bit on compile time too. Also changes to Srep will not mandate a
3848 recompile of code just using string.
3849 (~lyxstring): definition moved here since it uses srep.
3850 (size): definition moved here since it uses srep.
3852 * src/support/lyxstring.h: removed a couple of "inline" that should
3855 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3857 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
3860 1999-10-21 Juergen Vigna <jug@sad.it>
3862 * src/table.C (SetPWidth): Just a small fix so the alignment is not
3863 set to left if I just remove the width entry (or it is empty).
3865 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
3866 paragraph when having dummy paragraphs.
3868 1999-10-20 Juergen Vigna <jug@sad.it>
3870 * src/insets/figinset.C: just commented some fl_free_form calls
3871 and added warnings so that this calls should be activated later
3872 again. This avoids for now a segfault, but we have a memory leak!
3874 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
3875 'const char * argument' to 'string argument', this should
3876 fix some Asserts() in lyxstring.C.
3878 * src/lyxfunc.h: Removed the function argAsString(const char *)
3879 as it is not used anymore.
3881 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3883 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
3886 * src/Literate.h: some funcs moved from public to private to make
3887 interface clearer. Unneeded args removed.
3889 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
3891 (scanBuildLogFile): ditto
3893 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
3894 normal TeX Error. Still room for improvement.
3896 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
3898 * src/buffer.C (insertErrors): changes to make the error
3899 desctription show properly.
3901 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
3904 * src/support/lyxstring.C (helper): changed to use
3905 sizeof(object->rep->ref).
3906 (operator>>): changed to use a pointer instead.
3908 * src/support/lyxstring.h: changed const reference & to value_type
3909 const & lets see if that helps.
3911 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
3913 * Makefile.am (rpmdist): fixed to have non static package and
3916 * src/support/lyxstring.C: removed the compilation guards
3918 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
3921 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
3922 conditional compile of lyxstring.Ch
3924 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
3925 stupid check, but it is a lot better than the bastring hack.
3926 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
3928 * several files: changed string::erase into string::clear. Not
3931 * src/chset.C (encodeString): use a char temporary instead
3933 * src/table.C (TexEndOfCell): added tostr around
3934 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
3935 (TexEndOfCell): ditto
3936 (TexEndOfCell): ditto
3937 (TexEndOfCell): ditto
3938 (DocBookEndOfCell): ditto
3939 (DocBookEndOfCell): ditto
3940 (DocBookEndOfCell): ditto
3941 (DocBookEndOfCell): ditto
3943 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
3945 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
3947 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
3948 (MenuBuildProg): added tostr around ret
3949 (MenuRunChktex): added tostr around ret
3950 (DocumentApplyCB): added tostr around ret
3952 * src/chset.C (encodeString): added tostr around t->ic
3954 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
3955 (makeLaTeXFile): added tostr around tocdepth
3956 (makeLaTeXFile): added tostr around ftcound - 1
3958 * src/insets/insetbib.C (setCounter): added tostr around counter.
3960 * src/support/lyxstring.h: added an operator+=(int) to catch more
3963 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
3964 (lyxstring): We DON'T allow NULL pointers.
3966 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3968 * src/mathed/math_macro.C (MathMacroArgument::Write,
3969 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
3970 when writing them out.
3972 * src/LString.C: remove, since it is not used anymore.
3974 * src/support/lyxstring.C: condition the content to
3975 USE_INCLUDED_STRING macro.
3977 * src/mathed/math_symbols.C, src/support/lstrings.C,
3978 src/support/lyxstring.C: add `using' directive to specify what
3979 we need in <algorithm>. I do not think that we need to
3980 conditionalize this, but any thought is appreciated.
3982 * many files: change all callback functions to "C" linkage
3983 functions to please strict C++ compilers like DEC cxx 6.1 in mode
3984 strict_ansi. Those who were static are now global.
3985 The case of callbacks which are static class members is
3986 trickier, since we have to make C wrappers around them (see
3987 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
3988 did not finish this yet, since it defeats the purpose of
3989 encapsulation, and I am not sure what the best route is.
3991 1999-10-19 Juergen Vigna <jug@sad.it>
3993 * src/support/lyxstring.C (lyxstring): we permit to have a null
3994 pointer as assignment value and just don't assign it.
3996 * src/vspace.C (nextToken): corrected this function substituting
3997 find_first(_not)_of with find_last_of.
3999 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
4000 (TableOptCloseCB) (TableSpeCloseCB):
4001 inserted fl_set_focus call for problem with fl_hide_form() in
4004 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4006 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
4009 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4011 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
4012 LyXLex::next() and not eatline() to get its argument.
4014 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
4016 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
4017 instead, use fstreams for io of the depfile, removed unneeded
4018 functions and variables.
4020 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
4021 vector instead, removed all functions and variables that is not in
4024 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
4026 * src/buffer.C (insertErrors): use new interface to TeXError
4028 * Makefile.am (rpmdist): added a rpmdist target
4030 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
4031 per Kayvan's instructions.
4033 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4035 * src/Makefile.am: add a definition for localedir, so that locales
4036 are found after installation (Kayvan)
4038 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
4040 * development/.cvsignore: new file.
4042 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4044 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
4045 C++ compiler provides wrappers for C headers and use our alternate
4048 * configure.in: use LYX_CXX_CHEADERS.
4050 * src/cheader/: new directory, populated with cname headers from
4051 libstdc++-2.8.1. They are a bit old, but probably good enough for
4052 what we want (support compilers who lack them).
4054 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
4055 from includes. It turns out is was stupid.
4057 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
4059 * lib/Makefile.am (install-data-local): forgot a ';'
4060 (install-data-local): forgot a '\'
4061 (libinstalldirs): needed after all. reintroduced.
4063 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
4065 * configure.in (AC_OUTPUT): added lyx.spec
4067 * development/lyx.spec: removed file
4069 * development/lyx.spec.in: new file
4071 * po/*.po: merged with lyx.pot becuase of make distcheck
4073 * lib/Makefile.am (dist-hook): added dist-hook so that
4074 documentation files will be included when doing a make
4075 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
4076 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
4078 more: tried to make install do the right thing, exclude CVS dirs
4081 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
4082 Path would fit in more nicely.
4084 * all files that used to use pathstack: uses now Path instead.
4085 This change was a lot easier than expected.
4087 * src/support/path.h: new file
4089 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
4091 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
4093 * src/support/lyxstring.C (getline): Default arg was given for
4096 * Configure.cmd: removed file
4098 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4100 * src/support/DebugStream.[Ch]: remove the explicit std:: before
4101 streams classes and types, add the proper 'using' statements when
4102 MODERN_STL is defined.
4104 * src/debug.h: move the << operator definition after the inclusion
4107 * src/support/filetools.C: include "LAssert.h", which is needed
4110 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
4113 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
4114 include "debug.h" to define a proper ostream.
4116 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
4118 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
4119 method to the SystemCall class which can kill a process, but it's
4120 not fully implemented yet.
4122 * src/*.C: Changed Systemcalls::Startscript() to startscript()
4124 * src/support/FileInfo.h: Better documentation
4126 * src/lyxfunc.C: Added support for buffer-export html
4128 * src/menus.C: Added Export->As HTML...
4130 * lib/bind/*.bind: Added short-cut for buffer-export html
4132 * src/lyxrc.*: Added support for new \tth_command
4134 * lib/lyxrc.example: Added stuff for new \tth_command
4136 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
4138 * lib/Makefile.am (IMAGES): removed images/README
4139 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
4140 installes in correct place. Check permisions is installed
4143 * src/LaTeX.C: some no-op changes moved declaration of some
4146 * src/LaTeX.h (LATEX_H): changed include guard name
4148 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4150 * lib/reLyX/Makefile.am: install noweb2lyx.
4152 * lib/Makefile.am: install configure.
4154 * lib/reLyX/configure.in: declare a config aux dir; set package
4155 name to lyx (not sure what the best solution is); generate noweb2lyx.
4157 * lib/layouts/egs.layout: fix the bibliography layout.
4159 1999-10-08 Jürgen Vigna <jug@sad.it>
4161 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
4162 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
4163 it returned without continuing to search the path.
4165 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
4167 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
4168 also fixes a bug. It is not allowed to do tricks with std::strings
4169 like: string a("hei"); &a[e]; this will not give what you
4170 think... Any reason for the complexity in this func?
4172 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
4174 * Updated README and INSTALL a bit, mostly to check that my
4175 CVS rights are correctly set up.
4177 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
4179 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
4180 does not allow '\0' chars but lyxstring and std::string does.
4182 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
4184 * autogen.sh (AUTOCONF): let the autogen script create the
4185 POTFILES.in file too. POTFILES.in should perhaps now not be
4186 included in the cvs module.
4188 * some more files changed to use C++ includes instead of C ones.
4190 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
4192 (Reread): added tostr to nlink. buggy output otherwise.
4193 (Reread): added a string() around szMode when assigning to Buffer,
4194 without this I got a log of garbled info strings.
4196 * acconfig.h: commented out the PTR_AS_INT macros. They should not
4199 * I have added several ostream & operator<<(ostream &, some_type)
4200 functions. This has been done to avoid casting and warnings when
4201 outputting enums to lyxerr. This as thus eliminated a lot of
4202 explicit casts and has made the code clearer. Among the enums
4203 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
4204 mathed enums, some font enum the Debug::type enum.
4206 * src/support/lyxstring.h (clear): missing method. equivalent of
4209 * all files that contained "stderr": rewrote constructs that used
4210 stderr to use lyxerr instead. (except bmtable)
4212 * src/support/DebugStream.h (level): and the passed t with
4213 Debug::ANY to avoid spurious bits set.
4215 * src/debug.h (Debug::type value): made it accept strings of the
4218 * configure.in (Check for programs): Added a check for kpsewhich,
4219 the latex generation will use this later to better the dicovery of
4222 * src/BufferView.C (create_view): we don't need to cast this to
4223 (void*) that is done automatically.
4224 (WorkAreaButtonPress): removed some dead code.
4226 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4228 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
4229 is not overwritten when translated (David Sua'rez de Lis).
4231 * lib/CREDITS: Added David Sua'rez de Lis
4233 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
4235 * src/bufferparams.C (BufferParams): default input encoding is now
4238 * acinclude.m4 (cross_compiling): comment out macro
4239 LYX_GXX_STRENGTH_REDUCE.
4241 * acconfig.h: make sure that const is not defined (to empty) when
4242 we are compiling C++. Remove commented out code using SIZEOF_xx
4245 * configure.in : move the test for const and inline as late as
4246 possible so that these C tests do not interefere with C++ ones.
4247 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
4248 has not been proven.
4250 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4252 * src/table.C (getDocBookAlign): remove bad default value for
4255 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
4257 (ShowFileMenu2): ditto.
4259 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
4262 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
4264 * Most files: finished the change from the old error code to use
4265 DebugStream for all lyxerr debugging. Only minor changes remain
4266 (e.g. the setting of debug levels using strings instead of number)
4268 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
4270 * src/layout.C (Add): Changed to use compare_no_case instead of
4273 * src/FontInfo.C: changed loop variable type too string::size_type.
4275 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
4277 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
4278 set ETAGS_ARGS to --c++
4280 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
4282 * src/table.C (DocBookEndOfCell): commented out two unused variables
4284 * src/paragraph.C: commented out four unused variables.
4286 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
4287 insed a if clause with type string::size_type.
4289 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
4292 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
4294 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
4295 variable, also changed loop to go from 0 to lenght + 1, instead of
4296 -1 to length. This should be correct.
4298 * src/LaTeX.C (scanError): use string::size_type as loop variable
4301 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
4302 (l.896) since y_tmp and row was not used anyway.
4304 * src/insets/insetref.C (escape): use string::size_type as loop
4307 * src/insets/insetquotes.C (Width): use string::size_type as loop
4309 (Draw): use string::size_type as loop variable type.
4311 * src/insets/insetlatexaccent.C (checkContents): use
4312 string::size_type as loop variable type.
4314 * src/insets/insetlabel.C (escape): use string::size_type as loop
4317 * src/insets/insetinfo.C: added an extern for current_view.
4319 * src/insets/insetcommand.C (scanCommand): use string::size_type
4320 as loop variable type.
4322 * most files: removed the RCS tags. With them we had to recompile
4323 a lot of files after a simple cvs commit. Also we have never used
4324 them for anything meaningful.
4326 * most files: tags-query-replace NULL 0. As adviced several plases
4327 we now use "0" instead of "NULL" in our code.
4329 * src/support/filetools.C (SpaceLess): use string::size_type as
4332 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
4334 * src/paragraph.C: fixed up some more string stuff.
4336 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
4338 * src/support/filetools.h: make modestr a std::string.
4340 * src/filetools.C (GetEnv): made ch really const.
4342 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
4343 made code that used these use max/min from <algorithm> instead.
4345 * changed several c library include files to their equivalent c++
4346 library include files. All is not changed yet.
4348 * created a support subdir in src, put lyxstring and lstrings
4349 there + the extra files atexit, fileblock, strerror. Created
4350 Makefile.am. edited configure.in and src/Makefile.am to use this
4351 new subdir. More files moved to support.
4353 * imported som of the functions from repository lyx, filetools
4355 * ran tags-query-replace on LString -> string, corrected the bogus
4356 cases. Tried to make use of lstrings.[hC], debugged a lot. There
4357 is still some errors in there. This is errors where too much or
4358 too litle get deleted from strings (string::erase, string::substr,
4359 string::replace), there can also be some off by one errors, or
4360 just plain wrong use of functions from lstrings. Viewing of quotes
4363 * LyX is now running fairly well with string, but there are
4364 certainly some bugs yet (see above) also string is quite different
4365 from LString among others in that it does not allow null pointers
4366 passed in and will abort if it gets any.
4368 * Added the revtex4 files I forgot when setting up the repository.
4370 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
4372 * All over: Tried to clean everything up so that only the files
4373 that we really need are included in the cvs repository.
4374 * Switched to use automake.
4375 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
4376 * Install has not been checked.
4378 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
4380 * po/pt.po: Three errors:
4381 l.533 and l.538 format specification error
4382 l. 402 duplicate entry, I just deleted it.