1 2000-12-18 Lars Gullik Bjønnes <larsbj@lyx.org>
4 * src/mathed/math_inset.C (MathMatrixInset): initialize v_align
5 and h_align in default init.
6 adjust calls to MathedRowSt
8 * src/mathed/math_iter.C: adjust calls to MathedRowSt
9 * src/mathed/math_iter.h (getAD): ditto
11 * src/mathed/math_defs.h (class MathedRowSt): remove friends, add
12 methods setBaseline, ascent, descent
13 (class MathMatrixInset): remove method GetAlign, change h_align
16 * src/lyxfunc.C (processKeySym): discover the correct argument if
17 the action is LFUN_SELFINSERT
19 2000-12-18 Dekel Tsur <dekelts@tau.ac.il>
21 * src/mathed/math_cursor.C (Interpret) Suppress a debug message
24 2000-12-17 Lars Gullik Bjønnes <larsbj@lyx.org>
26 * src/support/copy.C: don't include filetools.h
28 * lib/images: revert to old banner, drop the cucumber.
30 2000-12-12 Dekel Tsur <dekelts@tau.ac.il>
32 * src/converter.C (Formats::View): Change the current directory to
33 the directory of the file.
35 2000-12-17 Lars Gullik Bjønnes <larsbj@lyx.org>
37 * src/kbsequence.C (addkey): also clear sequence and modifiers if
40 * src/BufferView2.C (theLockingInset): return 0 if text is 0
42 2000-12-17 Dekel Tsur <dekelts@tau.ac.il>
44 * Many files: Fix RTL support for insettext.
46 2000-12-11 John Levon <moz@compsoc.man.ac.uk>
48 * README: add mention of broken ghostscript versions, remove
49 reference to non-existent BUGS file
51 2000-12-13 Angus Leeming <a.leeming@ic.ac.uk>
53 * src/support/lstrings.C (compare_no_case): small fix. When passed
54 length, should use it in the size comparison.
56 2000-12-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
58 * src/insets/insetexternal.C (getScreenLabel): Return a default
59 value if the template label is empty.
61 * src/lyxlookup.C: do not condition on FL_REVISION.
64 * src/sp_form.C: fix the font size of some text entries
66 * src/frontends/xforms/Menubar_pimpl.C (add_toc): honor separator
67 after TOC when there is no TOC.
69 * src/lyxrc.C (readBindFileIfNeeded): new method. Reads the main
70 bind file if it has not been done yet.
71 (read): remove local bindFile variable. Try to fix the handling of
72 RC_BIND and RC_BINDFILE.
74 * src/lyx_main.C (init): use readBindFileIfNeeded().
76 * lib/languages: Change description of german to "German (new
79 2000-12-07 Angus Leeming <a.leeming@ic.ac.uk>
81 * src/frontends/xforms/FormInset.C (createInset): activate "Ok",
82 "Apply" buttons if arg is non-zero.
84 * src/lyxfunc.C (Dispatch): enable citation to be inserted without
85 launching the popup if sufficient info is passed to
88 2000-11-23 Dekel Tsur <dekelts@tau.ac.il>
90 * src/lyx_cb.C (MenuInsertLabel): Compute a default value for new
91 labels (disabled in 1.1.6).
93 * src/lyxrc.[Ch]: New variable label_init_length
95 * mathed/formula.C (LocalDispatch): Preserve the label when
96 changing from display math to eqnarray (however, the label
97 do not appear at the first line, as one might expects, but at the
99 (LocalDispatch): When inserting a label to a formula which already
100 have a label, the old label is used as default value.
101 Also, if the label is changed, then all references to the label
104 * src/mathed/math_iter.C (setLabel): Allow to set the label
105 even if it is empty. This is needed to allow deletion of a label
108 * src/BufferView2.C (ChangeRefsIfUnique): New method. Changes the
109 refernces only if the old label appears once in the document.
111 2000-12-07 Angus Leeming <a.leeming@ic.ac.uk>
113 * lib/languages: added ngerman. Patch courtesy of Andreas Gehlert
114 <gehlert@Rcs1.urz.tu-dresden.de>
116 * src/frontends/xforms/FormBase.C: comment out debug.h
118 * src/frontends/xforms/FormGraphics.[Ch] (browseFile): removed. Reuse
119 code in xform_helpers instead.
120 (d-tor): comment out "delete dialog;" and so prevent a crash on exit.
122 * src/frontends/xforms/FormPreferences.C: use AddName() in more places.
123 Use N_(), rather than _() when creating strings to pass to browseFile()
124 because browseFile calls gettext() itself now.
126 * src/frontends/xforms/xform_helpers.C (browseFile): call gettext() and
127 display the filename correctly.
129 2000-12-09 Dekel Tsur <dekelts@tau.ac.il>
131 * src/converter.C (Move): New method. Used to move file or files
132 from temp dir to the output dir. (this fixes the bug that
133 exporting linuxdoc/docbook document to html would not move all
134 html file from temp directory).
136 * src/support/filetools.C (DirList): Fixed.
138 * src/lstrings.C (prefixIs): Fixed (how nobody noticed it before??).
140 2000-12-08 Dekel Tsur <dekelts@tau.ac.il>
142 * src/converter.C (Add): Remove $$i when setting latex_command.
144 * src/text.C (IsBoundary): Return false when pos = 0.
146 2000-12-08 Dekel Tsur <dekelts@tau.ac.il>
148 * lib/kbd/hebrew.kmap: Add Hebrew points (nikud).
150 2000-12-07 Angus Leeming <a.leeming@ic.ac.uk>
152 * src/frontends/xforms/FormDocument.C (checkMarginValues): you don't
153 need to empty the fields to turn off use of the geometry package!
155 2000-12-07 Angus Leeming <a.leeming@ic.ac.uk>
157 * src/lyxparagraph.h, src/paragraph.C (CopyIntoMinibuffer): pass a
158 (Buffer const &), not a (BufferParams const &) and so fix a crash
159 caused by using current_view before it had been initialised. Not
160 the best way to do this, but much easier than changing
161 Inset::Clone(Buffer const &) to Inset::Clone().
164 * src/tabular.C: changed call to CopyIntoMinibuffer().
166 2000-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
168 * lib/ui/default.ui: put TOC at the beginning of the TOC menu.
170 * src/lyxfunc.C (getStatus): disable insertion of floats in a
173 2000-12-06 Angus Leeming <a.leeming@ic.ac.uk>
175 * src/frontends/xforms/FormPreferences.C (ScreenFonts::build):
176 changed filter for screen fonts input filter from int to float
178 * src/frontends/xforms/input_validators.c: removed.
179 * src/frontends/xforms/input_validators.C: new file. Can now call C++
180 functions from within the filter functions.
182 * src/frontends/xforms/input_validators.[Ch]
183 (fl_unsigned_float_filter): new filter function.
185 * src/frontends/xforms/forms/fdfixc.sed: I defy gettext to get
186 confused now! And if you think I'm going to do this in
187 ./forms/fdfix.sh with its "sed -e" declarations, then think again!
189 2000-12-06 Lars Gullik Bjønnes <larsbj@lyx.org>
191 * src/buffer.C (asciiParagraph): small NEW_INSETS fix from Levon
193 * src/WorkArea.C (work_area_handler): don't handle button requests
194 if xbutton.button == 0
196 2000-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
198 * lib/layouts/lyxmacros.inc: do not use \verbatim@font in lyxcode.
199 It creates a lot of interesting problems.
201 2000-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
203 * src/frontends/xforms/Menubar_pimpl.C (openByName): check that
204 the menu exists in the current menubar before opening it.
206 * src/MenuBackend.C (hasSubmenu): new method.
208 * src/frontends/xforms/Menubar_pimpl.C: fix problem with bogus
209 action value by offsetting actions by a large constant (so that
210 bogs choice result will be less than this constant).
212 * lib/bind/fi_menus.bind: more cleanup to menus.
213 * lib/bind/sciword.bind: ditto.
214 * lib/bind/xemacs.bind: ditto.
215 * lib/bind/emacs.bind: ditto.
216 * lib/bind/pt_menus.bind: ditto.
217 * lib/bind/hu_menus.bind: ditto.
219 * src/gettext.h (locale_init): set locale LC_NUMERIC to "C".
221 * INSTALL: update PROBLEMS section.
223 * src/lyxlookup.h: remove condition on xforms version, since we
224 should not include it if not appropriate.
226 2000-12-05 John Levon <moz@compsoc.man.ac.uk>
228 * src/LColor.C: "latex text" -> "latex inset" (from
231 * src/lyxrc.C: "it's" -> "its" (from Angus Leeming)
233 * src/frontends/kde/FormTabularCreate.C:
234 * src/frontends/kde/citationdlg.C:
235 * src/frontends/kde/copyrightdlg.C:
236 * src/frontends/kde/paradlg.C:
237 * src/frontends/kde/paraextradlg.C:
238 * src/frontends/kde/parageneraldlg.C:
239 * src/frontends/kde/printdlg.C:
240 * src/frontends/kde/refdlg.C:
241 * src/frontends/kde/tabcreatedlg.C:
242 * src/frontends/kde/tocdlg.C:
243 * src/frontends/kde/urldlg.C: add necessary headers
246 * src/frontends/kde/dlg/emptytable.C:
247 * src/frontends/kde/dlg/tabstack.C: ctors shouldn't have
248 default parameters (from Angus Leeming)
250 * src/frontends/kde/dlg/moc/.cvsignore:
251 * src/frontends/kde/dlg/.cvsignore:
252 * src/frontends/kde/moc/.cvsignore: fix the library name
255 * src/frontends/kde/paradlg.C:
256 * src/frontends/kde/parageneraldlg.C:
257 * src/frontends/kde/dlg/para.dlg:
258 * src/frontends/kde/dlg/paradlgdata.C: added accelerators
260 * src/frontends/kde/dlg/README: clarified qtarch version
262 * src/frontends/kde/dlg/Makefile.am: removed the
263 dlg rules as they created spontaneous rebuilds
264 (not a good idea as it requires qtarch)
266 2000-12-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
268 * config/lyxinclude.m4 (LYX_PATH_XFORMS): display also the
269 fixlevel along with xforms version.
271 * src/WorkArea.C (work_area_handler): use stuff in lyxlookup.h when
272 xforms version is strictly less than 0.89.5.
273 * src/lyx_gui.C (LyXGUI): ditto.
274 * src/LyXView.C (show): ditto.
276 2000-12-02 Dekel Tsur <dekelts@tau.ac.il>
278 * src/BufferView_pimpl.C (workAreaMotionNotify): Fixed mouse
279 movement in inset in RTL text.
280 (checkInsetHit): Fixed mouse movement in scrolled inset in RTL text.
281 (workAreaButtonRelease): Do not open a float when there is a selection.
283 * src/insets/insettext.C (cx): Fixed for insets in RTL text.
285 * src/spellchecker.C (RunSpellChecker): Open all floats before
288 * src/text.C (InsertChar): Consider "," as a part of a number
289 (for LTR numbers in RTL text code).
290 (IsBoundary): Fixed (and simplified).
291 (InsertChar): Recalculate cursor boundary.
294 2000-12-04 John Levon <moz@compsoc.man.ac.uk>
296 * src/spellchecker.C: fix figures with pspell enabled
298 * src/insets/figinset.C: workaround for gs hang xforms bug
300 2000-12-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
302 * lib/bind/??_menus.bind: comment out the entries corresponding to
303 real menus. They should be eventually removed, but I'll let the
304 language maintainers do that.
306 2000-12-04 John Levon <moz@compsoc.man.ac.uk>
308 * src/frontends/kde/parageneraldlg.C:
309 * src/frontends/kde/parageneraldlg.h: don't use
310 a derived class for SpaceAbove/Below
312 * src/frontends/kde/dlg/README: add some info
314 * src/frontends/kde/dlg/*: update data files, update
317 * src/frontends/kde/dlg/moc/Makefile.am: add
320 2000-12-04 John Levon <moz@compsoc.man.ac.uk>
322 * configure.in: add new KDE Makefiles
323 * src/vspace.h: return GlueLength not a normal one
324 * src/support/lstrings.h:
325 * src/support/lstrings.C: add isStrUnsignedInt(),
328 * src/frontends/kde/*: big reorganisation, update
329 FormParagraph, add FormTabCreate
331 2000-12-04 Angus Leeming <a.leeming@ic.ac.uk>
333 * lib/ui/default.ui: small grammatical change.
335 * src/frontends/xforms/xform_macros.h: removed.
337 * src/frontends/xforms/FormBase.C:
338 * src/frontends/xforms/FormPreferences.C:
339 * src/frontends/xforms/Makefile.am: changes associated with removing
340 xform_macros.h. Should make Lars' debugging a little easier.
342 * src/frontends/xforms/FormPreferences.C:
343 * src/frontends/xforms/FormPreferences.h:
344 * src/frontends/xforms/forms/form_preferences.fd (Colors tab): no
345 longer use X11 color name database. HSV and RGB dials/sliders.
346 Please let this be the end of this!
348 2000-11-30 Dekel Tsur <dekelts@tau.ac.il>
350 * Several files: Allow compilation when the compiler doesn't
353 2000-11-30 Angus Leeming <a.leeming@ic.ac.uk>
356 * src/lyx_main.C (commandLineHelp, easyParse): documented remaining
357 command line options.
359 2000-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
361 * src/frontends/xforms/Menubar_pimpl.C (makeMenubar): use
362 FL_MENU_BUTTON for items in menu bar. Not sure what difference it
365 2000-11-29 Angus Leeming <a.leeming@ic.ac.uk>
367 * src/frontends/xforms/FormRef.C (updateBrowser):
368 * src/frontends/xforms/forms/form_ref.fd: try clicking on
369 different insets with the sort key active. Now apply this patch!
371 2000-11-29 John Levon <moz@compsoc.man.ac.uk>
373 * src/frontends/xforms/FormPrint.C: set to valid()
374 when we update from the passed parameters.
376 2000-11-29 Angus Leeming <a.leeming@ic.ac.uk>
378 * src/LColor.C (getFromGUIName): internationalise the comparison.
380 * src/lyx_gui_misc.h (LyXBell): turn off that BLOODY bell until it's a
381 FormPreferences choice.
383 * src/frontends/xforms/FormPreferences.C: some additional Color safety.
386 2000-11-29 John Levon <moz@compsoc.man.ac.uk>
388 * src/lyxrc.C: more detail for the printer program config
391 * src/LColor.C: ert->latex text. LColor needs a big revamp
392 but will have to wait till after 1.1.6
394 * src/buffer.C: bring up a dialog if we load a document
395 with an un-installed text class, rather than just complain
398 2000-11-29 Angus Leeming <a.leeming@ic.ac.uk>
400 * src/combox.[Ch] )(add, Show): workaround xforms bug when Show()ing
401 the browser form for a combox in a tabbed folder. Bug fix courtesy of
402 Steve Lamont <spl@ncmir.ucsd.edu>.
404 * src/frontends/xforms/FormDocument.C (build):
405 * src/frontends/xforms/FormPreferences.C (Language::build):
406 pass tabfolders to Combox::add() in order to use this work around.
408 * src/frontends/xforms/FormCitation.C (connect): remove max size
410 (update): sort list of bibliography keys.
412 * src/frontends/xforms/FormRef.[Ch] (connect, showBrowser, hideBrowser,
414 No max size limitation. Same popup for new and existing insets. Fixes
415 bugs reported by Rob Lahaye.
417 * src/frontends/xforms/FormCitation.C (c-tor):
418 * src/frontends/xforms/FormCopyright.C (c-tor):
419 * src/frontends/xforms/FormError.C (c-tor):
420 * src/frontends/xforms/FormGraphics.C (c-tor):
421 * src/frontends/xforms/FormIndex.C (c-tor):
422 * src/frontends/xforms/FormRef.C (c-tor):
423 * src/frontends/xforms/FormToc.C (c-tor):
424 * src/frontends/xforms/FormUrl.C (c-tor):
425 use correct policy for ButtonController.
427 * src/frontends/xforms/FormPreferences.[Ch]: cleaned up a little more.
429 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): modified lyxerr
432 * src/frontends/xforms/forms/form_citation.fd: some resizing changes.
434 * src/frontends/xforms/forms/form_ref.fd: new Restore, Apply buutons.
435 Some resizing changes.
437 2000-11-28 Lars Gullik Bjønnes <larsbj@lyx.org>
439 * configure.in: fix typo
441 * lib/languages: add ukraninian and change no to no_NO
443 * src/lyxfont.[Ch] (setGUISize): comment out setGUISize
445 * src/bufferview_funcs.C (FontSize): use setLyXSize
447 2000-11-24 Kayvan A. Sylvan <kayvan@sylvan.com>
449 * acconfig.h, configure.in, config/lyxinclude.m4: Added autoconf tests
450 to check for systems where mkstemp() is available but not declared
451 in headers. The new autoconf macro lyx_CHECK_DECL can be used
452 to check for declarations in headers.
454 2000-11-23 Angus Leeming <a.leeming@ic.ac.uk>
456 * forms/bibforms.fd: tiny fix to get it to run with fdesign.
458 * forms/makefile: added bibforms.fd, include_form.fd.
459 Removed lyx_sendfax.fd.
461 * src/LaTeXLog.C (ShowLatexLog):
462 * src/LyXAction.C (init):
463 * src/bufferparams.C (readLanguage): altered messages as suggested by
466 * src/LyXView.C (c-tor): connected RedrawAllBufferRelatedDialogs() to
469 * src/credits.C: made fd_form_credits non-static, so that it can be
470 redrawn should the xforms colors be re-mapped.
471 * src/spellchecker.C ditto fd_form_spell_options.
473 * src/filedlg.[Ch] (redraw):
474 * src/intl.[Ch] (redraw):
475 * src/lyxfr0.[Ch] (redraw):
476 * src/insets/figinset.[Ch] (redraw):
477 * src/insets/insetexternal.[Ch] (redraw):
478 new methods, connected to Dialogs::redrawGUI.
480 * src/lyx_gui_misc.[Ch] (RedrawAllBufferRelatedDialogs): new function
481 to be connected to Dialogs::redrawGUI.
483 * src/frontends/xforms/FormCitation.C (build):
484 * src/frontends/xforms/FormCopyright.C (build):
485 * src/frontends/xforms/FormError.C (build):
486 * src/frontends/xforms/FormGraphics.C (build):
487 * src/frontends/xforms/FormIndex.C (build):
488 * src/frontends/xforms/FormTabularCreate.[Ch] (update):
489 * src/frontends/xforms/FormToc.C (build):
490 * src/frontends/xforms/FormUrl.C (build):
491 use the ButtonController correctly.
493 * src/frontends/xforms/FormCopyright.C (build):
494 * src/frontends/xforms/forms/form_copyright.fd: moved the text out of
495 the .fd file and into build().
497 * src/frontends/xforms/FormPreferences.C: tiny clean-up.
499 * src/frontends/xforms/FormToc.[Ch]: Don't use apply(). Use input().
501 * src/frontends/xforms/forms/form_citation.fd:
502 * src/frontends/xforms/forms/form_copyright.fd:
503 * src/frontends/xforms/forms/form_error.fd:
504 * src/frontends/xforms/forms/form_graphics.fd:
505 * src/frontends/xforms/forms/form_index.fd:
506 * src/frontends/xforms/forms/form_toc.fd:
507 * src/frontends/xforms/forms/form_url.fd:
508 renamed some of the objects. Named others explicitly for the first time.
509 Added Restore and Apply buttons where appropriate.
511 * src/insets/Makefile.am: removed form_graphics.[Ch] as they are not
514 2000-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
516 * src/version.h: try the pre2 again
518 2000-11-22 Angus Leeming <a.leeming@ic.ac.uk>
520 * src/frontends/kde/Dialogs.C: added signal Dialogs::redrawGUI.
522 * src/frontends/kde/FormParagraph.C: added using directive.
524 * src/frontends/kde/paradlg.C: added config.h and using directive.
526 * src/frontends/kde/paradlg.h: added std::qualifier.
528 * src/frontends/kde/Makefile.am: added Color.lo to libkde_la_OBJADD.
530 2000-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
532 * configure.in (AC_OUTPUT): don't output src/xtl/Makefile
534 * src/lyx_sendfax.[Ch] src/lyx_sendfax_main.C: delete files
536 2000-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
538 * src/version.h: set back to 1.1.6cvs
540 2000-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
542 * src/version.h: set to 1.1.6pre2
544 2000-11-20 Marko Vendelin <markov@ioc.ee>
546 * src/frontends/gnome/Dialogs.C: added signal Dialogs::redrawGUI
548 * src/frontends/gnome/Makefile.am: updated list of XForms object files
550 2000-11-21 Angus Leeming <a.leeming@ic.ac.uk>
552 * src/LColor.C (init):
553 * src/lyxrc.C (getDescription): changed some comments as suggested by
556 * src/frontends/xforms/FormBase.[Ch]: modified to connect and
557 disconnect the redrawGUI signal in best-practice fashion.
559 * src/frontends/xforms/FormPreferences.[Ch]: renamed usage_tab_ as
560 long_opts_tab to reflect the change in name of this tabfolder, as
561 suggested by John Levon.
562 (connect, disconnect): new methods. Don't do much at present other than
563 ensuring that we can't resize the dialog. This just makes xforms go
565 (lots of methods in Colors): made void rather than bool. The idea is
566 to have an isOk() function that keeps track of whether any input is
567 genuinely invalid and should therefore block Save, Apply.
568 Easier to manipulate the counters rapidly.
569 (Colors::InputBrowserLyX, Colors::Modify): rewritten so that Amir's
570 compiler will like this code. Much cleaner way of doing things.
572 * src/frontends/xforms/forms/fdfix.sh: a little speed up fix.
574 * src/frontends/xforms/forms/form_preferences.fd: used normal counters
575 rather than simple counters, following suggestion by John Levon.
577 * src/frontends/xforms/forms/form_print.fd: used labelframe rather
578 than engraved frame + text.
580 * src/frontends/xforms/forms/makefile: removed spurious command.
582 2000-11-17 Angus Leeming <a.leeming@ic.ac.uk>
584 * src/LColor.C (c-tor): fixed a couple of items in the ColorEntry
586 * src/LyXAction.C (init): LFUN_SET_COLOR now has the attrib
589 * src/frontends/xforms/Color.C: (HSVColor c-tor): another bug fix.
591 * src/frontends/xforms/FormPreferences.C: re-formatted so that I can
592 see what Lars has changed and what is just white space!
593 Now used X directly to ascertain the RGB color associated with the
595 Replaced the RGB sliders with HSV equivalent. Should be more intuitive
597 Added some sort capability.
598 The X11 color name database input is only displayed if the database
599 isn't found in the standard place.
600 Got rid of struct compare_converter; it wasn't used.
601 Probably some other stuff that I've forgotten.
603 * src/frontends/xforms/FormPreferences.h: changed the names of some
604 methods in the Colors struct. Added a couple of structs to help sort
605 colors by name and by RGBColor.
607 * src/frontends/xforms/xform_helpers.[Ch]: moved the ReadableDir etc
608 functions into a new class RWInfo.
610 * src/frontends/xforms/forms/form_citation.fd: Added some shortcuts.
611 The dialog is now almost navigable using the keyboard. Unfortunately,
612 the cursor has to be inside a browser for it to be activated. There is
613 no visual feedback for the key shortcuts to the arrow keys (use
614 Alt-appropriate arrow key, Alt-x).
616 * src/frontends/xforms/forms/form_preferences.fd: hacked the Colors tab
619 * src/support/filetools.[Ch]: moved out ReadableFile etc and into
620 xform_helpers.[Ch]. See above.
622 2000-11-17 Lars Gullik Bjønnes <larsbj@lyx.org>
624 * config/lyxinclude.m4 (LYX_PROG_CXX): please somebody
626 * src/screen.C (setCursorColor): new method. Sets the color of the
628 (ShowManualCursor): call it.
629 Constify some local variables.
631 * src/LColor.[Ch] (LColor): add entry for cursor
632 * lib/configure(.m4) (word_to_latex_command): add quotes, removes
635 2000-11-19 Juergen Vigna <jug@sad.it>
637 * src/insets/insettabular.C (draw): fixed text border redraw problem.
638 (calculate_dimensions_of_cells): try to boost up when inserting chars.
640 2000-11-15 Rob Lahaye <lahaye@postech.edu>
642 * lib/ui/default.ui: OptItem used for Fax entry
644 2000-11-17 Matej Cepl <cepl@bigfoot.com>
646 * lib/kbd/czech.kmap: add apostroph mark to the Czech keyboard.
648 2000-11-15 John Levon <moz@compsoc.man.ac.uk>
650 * src/vspace.C (nextToken): fix so it can handle length phrases like
651 "10mm+-20mm", "40inplus16mmminus10cm" etc.
653 2000-11-17 Lars Gullik Bjønnes <larsbj@lyx.org>
655 * src/frontends/xforms/FormPreferences.C: constify several variables
656 (BrowserLyX): rewrite to not need the choice variable
657 (Modify): rewrite to not need the choide variable
658 (compare_converter): make operator const
660 * src/lyxrc.C (output): be a bit nicer og os usage, and try to
661 correct the writing of \set_color
662 (getDescription): return a const string
664 * src/kbsequence.[Ch] (addkey): remove dead code
666 * src/Painter.C (text): remove some commented code
668 2000-11-15 Angus Leeming <a.leeming@ic.ac.uk>
670 * src/ColorHandler.[Ch]: removed some header files from .h file.
671 Included LColor.h in .C file.
673 * src/LColor.[Ch]: made class copyable so that I could create a
674 system_lcolor instance.
676 * src/Painter.h: removed LColor.h.
678 * src/lyx_gui.C (create_forms): used AddName.
680 * src/lyx_main.C (init): copied lcolor to system_lcolr prior to reading
681 of user preferences/lyxrc file.
683 * src/lyxrc.C (output): output changes to lcolor.
685 * src/frontends/xforms/Color.[Ch]: Changed X11Color to a new struct,
687 Moved class xformColor to files xform_helpers.[Ch]. These files,
688 Color.[Ch], could now be moved into src if they would be useful to
691 * src/frontends/xforms/xform_helpers.[Ch]: moved class XformColor here.
692 Also moved FormPreferences::browseFile here as it can be used by any
693 xform dialog with a "Browse" button. FormGraphics is a perfect example.
695 * src/support/filetools.[Ch] (WriteableDir, ReadableDir, WriteableFile,
696 ReadableFile): changed the FormPreferences methods a little and moved
697 them here as they'll be useful elsewhere also.
699 * src/frontends/xforms/FormPreferences.h: a bit more cleaning up.
700 Removed some header files and used forward declarations instead.
702 Removed some methods as they'll be useful elsewhere (see above).
704 * src/frontends/xforms/FormPreferences.C: a bit more cleaning up.
705 Can also now modify the LyX LColors. However, for reasons that I don't
706 yet understand, it appears that we can use
707 LyXFunc::Dispatch(LFUN_SET_COLOR, arg) only when we have a buffer
708 present. The problem appears to lie in ColorHandler, because I can
709 change the color using LColor.SetColor(). Similarly, when reading in a
710 preferences file with some set_color instances, I'll get a warning
711 like: Color sea green is undefined or may not be redefined
712 Bad lyxrc set_color for sea green
714 Once the buffer is loaded, however, I can happily change to this color.
716 Finally, it appears that I have to set the color of "inset frame"
717 explicitly, or it oscillates from "black" to "indian red" with each
720 2000-11-15 Angus Leeming <a.leeming@ic.ac.uk>
722 * ANNOUNCE: corrected a spelling mistake.
724 * src/tabular.C (OldFormatRead): variable "h" was set but never used.
727 2000-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
729 * src/kbsequence.C (addkey): use a vector as per Andre Poenitz patch.
731 * lib/Makefile.am (dist-hook): also delete doc/.cvsignore from
734 * src/support/lyxfunctional.h: make back_insert_fun_iterator(s)
735 match the requirements from the standard better. This is required
736 to work with gnu libstdc++-v3
738 * src/frontends/xforms/FormPreferences.C: add explict pair
739 arguments to browse calls. include support/lyxmanip.h remvoe
740 extern fmt. whitespace changes. reorder variables in
741 FormPreferences.h, to match initalizaton order.
743 * several files: constify more local variables.
745 * src/buffer.C: remove some commented functions.
747 * src/DepTable.C (remove_files_with_extension): temporary
748 work around for gcc 2.97
749 * src/filedlg.C (find): ditto
750 * src/Variables.C (set): ditto
751 * src/LyXAction.C (searchActionArg): ditto
752 (retrieveActionArg): ditto
754 * configure.in: check for mktemp too
756 * UPGRADING: prepare for 1.1.6
758 * Makefile.am (lgbtags): add backup tags for when etags are
759 different than usual.
761 * ANNOUNCE: prepare for 1.1.6
763 * src/support/tempname.C (make_tempfile): new function, wrapper
764 around mkstemp and mktemp. Only mkstemp has been tested.
767 2000-11-14 Rob Lahaye <lahaye@postech.edu>
769 * default.ui: capitalized some menu items to improve shortcuts.
771 2000-11-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
773 * src/frontends/xforms/FormPreferences.C (ok): use AddName().
775 * src/frontends/xforms/Dialogs.C: add "using" directive.
777 2000-11-13 Angus Leeming <a.leeming@ic.ac.uk>
779 * src/filedlg.C (Select): highlight suggested file in browser, if
782 * src/frontends/xforms/FormPreferences.[Ch]: re-written so that
783 each tab folder is encapsulated in its own class.
784 The Language keymaps are now chosen using a text input and a
785 browser button, rather than a Combox.
786 All the browser buttons are now functional, although LyXFileDlg
787 still needs to be modified to make it straighhtforward to return a
788 directory if that is what is desired.
790 * src/frontends/xforms/forms/form_preferences.fd: use text input
791 and browse button to input the Language keymaps. Add a few
792 callbacks for the browse buttons.
794 2000-11-14 Lars Gullik Bjønnes <larsbj@lyx.org>
796 * src/support/tempname.C (tempName): small changes to make it
797 safer. remove the '.' before XXXXXX
799 * src/support/filetools.C (TmpFileName): remove func
802 * src/frontends/xforms/FormRef.C (FormRef): explicit call the bp
803 * src/frontends/xforms/FormUrl.C (FormUrl): ditto
804 * src/frontends/xforms/FormTabularCreate.C (FormTabularCreate): ditto
805 * src/frontends/xforms/FormTabular.C (FormTabular): ditto
807 * src/frontends/xforms/FormInset.h (FormInset): remove default for bp
810 * src/frontends/xforms/FormGraphics.C (FormGraphics): explicit
813 * src/frontends/xforms/FormError.C (FormError): use IgnorantPolicy
814 for bp (this fixes a reproducible hard crash)
816 * src/frontends/xforms/FormCopyright.C (FormCopyright): explicit
819 * src/frontends/xforms/FormBase.h: make bp_ private
820 (FormBaseBI): remove default for bp
823 * src/frontends/xforms/Dialogs.C (Dialogs): use the old method it
826 * src/frontends/xforms/Color.C (RGBColor): made several vars
827 const, changed initialization of j to allow it to be const
830 * several files: added const to local variables.
832 * src/lyx_cb.C: removed several function prototypes and moved them
836 (UpdateLayoutPreamble):
838 (MenuInsertLabel): add BufferView as arguemnt
839 (LayoutsCB): make tmp const
841 * src/layout_forms.h: regenerated
843 * src/debug.C: add Debug::FILES
844 (showLevel) (showTags): translate the desc
846 * src/debug.h: add FILES as debug target
848 * src/bufferlist.C: use current_view as an interim measure becuase
849 of added arguments to MenuWrite and MenuWriteAs
851 * forms/layout_forms.h.patch: make the patch more correct and more appalyable
853 * config/lyxinclude.m4 (LYX_STD_COUNT): change test to not involve
855 (LYX_PROG_CXX): change 2.97 rules to include the -f.. that
856 libstdc++ is compiled with.
858 2000-11-13 José Abílio Matos <jamatos@fep.up.pt>
860 * lib/layouts/docbook-book.layout
861 * lib/layouts/docbook.layout
862 * lib/layouts/linuxdoc.layout: No need for "dummy" paragraphs, now
863 those paragraphs are expresse as SGML comments <!-- -->.
865 * src/LaTeXFeatures.h
866 * src/LaTeXFeatures.C (getIncludedFiles): takes a filename as
867 parameter, this allows to express all the include files as relative
868 paths to the master buffer. The verbatim insert works as the other
871 * src/buffer.C (sgmlOpenTag) (sgmlCloseTag): don't write if latexname
873 (MakeLinuxdocFile) (MakeDocBookFile): included files are relative
875 (MakeDocBookFile): top_element is always written. Some clean up, as
876 sgmlOpenTag() and sgmlCloseTag() take care of the SGML comment case.
878 * src/insets/insetinclude.C (Linuxdoc): Added verbatim file fix.
879 (DocBook) added close tag to inlinegraphics trick for verbatim. Now
880 a reference is written instead of the name.
881 (Validate): use the relative path for the filename.
883 * src/insets/insetlabel.C (DocBook): write end tag, for XML
886 * src/support/filetools.h
887 * src/support/filetools.C (IsSGMLFilename): added.
890 2000-11-13 Miyata Shigeru <miyata@kusm.kyoto-u.ac.jp>
892 * development/OS2/quick_fix.patch:
894 * README.OS2: quick update to the OS/2 port.
896 2000-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
898 * src/converter.C: add "using" directive.
900 * src/frontends/xforms/FormPreferences.C: add "using" directive.
901 (compare_converter): add "int" as return type.
903 * src/frontends/xforms/Color.C: comment out FL_LIGHTER_COL1 here
906 2000-11-11 Angus Leeming <a.leeming@ic.ac.uk>
908 * src/lyx_gui.C (create_forms): map the xform colours, should a
909 mapping exist. Ie, call XformColor::read().
911 * src/frontends/xforms/Color.[Ch] renamed struct RGB as RGBColor
912 and struct HSV as HSVColor.
913 (XformColor::read, XformColor::write) : new methods that
914 input/output any changes to the cform GUI colors.
916 * src/frontends/xforms/Dialogs.C: FORMS_H_LOCATION no longer
919 * src/frontends/xforms/FormPreferences.C Lots of little changes
920 associated with the changed name of the RGB and HSV structs. Can
921 now save changes to xforms GUI to file. Commented out
922 FL_LIGHTER_COL1 to allow compilation with xforms 0.88. It isn't
923 used currently anyway.
925 2000-11-11 Dekel Tsur <dekelts@tau.ac.il>
927 * src/converter.C: A lot of changes:
928 - It is no longer possible to choose between two or more ways to
929 export to some format (the new code uses only the shortest path).
930 However, it is still possible to choose between pdflatex/ps2pdf
931 for creating a PDF file, by defining two PDF formats: pdf & pdf2.
932 - Added several methods that makes the FormPreferences code simpler.
933 - Changed the tokens $$FName and $$OutName to $$i and $$o.
935 * src/exporter.C (Export): lyxrc.use_pdf is set before
936 makeLaTeXFile is called. This works but not very nice.
938 * src/frontends/xforms/FormPreferences.C: The formats/converters
939 tabs are now fully functional.
941 * src/buffer.C (getTocList): Add numbers to the captions.
943 * lib/lyxrc.example: Removed fax section
945 * src/support/rename.C (rename): Delete the old file if lyx::copy
948 2000-11-13 Rob Lahaye <lahaye@postech.edu>
950 * lib/ui/default.ui: minor polishing.
952 2000-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
954 * src/frontends/xforms/Color.C: include <algorithm> and <cmath>
957 * lib/Makefile.am (DOCINST): do not install everything in the
958 documentation directory.
960 2000-11-10 John Levon <moz@compsoc.man.ac.uk>
962 * src/bufferlist.C (newFile): set the filename to the constructed
965 * src/lyx_cb.C (MenuWriteAs): if a buffer is "unnamed", pass the
966 constructed "newfileXX.lyx" name to the dialog
968 * src/frontends/DialogBase.h: make update() non-abstract so
969 KDE doesn't need to implement two update methods for every form
971 * src/frontends/kde/Makefile.am: add missing xforms objects
974 * src/frontends/kde/Dialogs.C: Add FormTabularCreate dialog
976 2000-11-09 Angus Leeming <a.leeming@ic.ac.uk>
978 * src/frontends/xforms/Color.[Ch]: new files, defining the color
979 structs RGB and HSV. May not be the best place for these files.
980 Perhaps move them into src ?
982 * src/frontends/xforms/Makefile.am: added new files.
984 * src/frontends/xforms/forms/form_preferences.fd:
985 * src/frontends/xforms/FormPreferences.[Ch]: bowed to reality and
986 replaced all instances of "colour" with "color"!
988 * src/frontends/xforms/forms/form_preferences.fd: modified Colors tab
991 * src/frontends/xforms/FormPreferences.[Ch]: functioning Colors
992 tab. Can now alter the colors of the xform's GUI on the fly. With
993 the aid of a single static Signal (see below), can "Apply" these
994 changes to all currently open dialogs. (Well, to all of the NEW
995 dialogs and to LyXView. The OLD dialogs are not yet redrawn.) ALL
996 subsequently opened dialogs will, of course, also have the new
997 color scheme. Cannot yet save (or load) the choices to file, so
998 they are lost when exiting LyX.
1000 * src/frontends/Dialogs.h:
1001 * src/frontends/xforms/Dialogs.C (redrawGUI): new static Signal.
1002 Used to trigger a redraw of any dialogs connected to it because,
1003 for example, the GUI colours have been re-mapped.
1005 * src/frontends/xforms/FormBase.[Ch]:
1006 * src/frontends/xforms/FormDocument.[Ch]:
1007 * src/frontends/xforms/FormParagraph.[Ch]:
1008 * src/frontends/xforms/FormPreferences.[Ch]:
1009 * src/frontends/xforms/FormTabular.[Ch]: (redraw): new virtual
1010 method, to be connected to Dialogs::redrawGUI. Method must be
1011 virtual, because dialogs with tabbed folders need to redraw the
1012 forms of each tab folder.
1014 * src/LyXView.C (d-tor):
1015 * src/frontends/xforms/FormBase.C (d-tor): connected
1016 Dialogs::redrawGUI signal to redraw().
1018 * src/frontends/xforms/FormBase.C (~FormBaseBI, ~FormBaseBD):
1019 removed Assert, because it is identical to that in FormBase.
1021 2000-11-10 Rob Lahaye <lahaye@postech.edu>
1023 * lib/ui/default.ui: minor polishing.
1025 2000-11-10 Juergen Vigna <jug@sad.it>
1027 * src/insets/insettext.C (resizeLyXText): check !cache[bv]
1028 (deleteLyXText): ditto
1030 * src/insets/insettabular.C (InsetButtonPress): don't clear the
1031 selection on mouse-button-3.
1033 * src/insets/insettabular.h: new function clearSelection(), use this
1034 functions inside insettabular.C.
1036 * src/insets/insettabular.C (TabularFeatures): clear the selection
1037 on remove_row/column.
1039 * src/insets/inset.C (scroll): fixed some scroll stuff.
1041 * src/insets/insettabular.C (draw): fixed another minor draw problem.
1043 2000-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1045 * lib/CREDITS: add Yves Bastide
1047 2000-11-03 Yves Bastide <stid@libd-pc11.univ-bpclermont.fr>
1049 * config/lyxinclude.m4 (LYX_CXX_GLOBAL_CSTD): new function to
1050 check whether C library functions are in the global namespace.
1052 * configure.in: calls it.
1054 * src/support/lstrings.C: #ifndef CXX_GLOBAL_CSTD instead of
1055 #ifndef __GLIBCPP__.
1057 2000-11-08 Dekel Tsur <dekelts@tau.ac.il>
1059 * src/frontends/xforms/FormPreferences.C (updateLanguage): Check
1060 iterators to prevent crash.
1062 2000-11-08 Angus Leeming <a.leeming@ic.ac.uk>
1064 * src/converter.h (getprettyname, getFromToPrettyname): new methods.
1066 * src/frontends/xforms/xform_macros.h (C_PREPOSTHANDLER): new macro
1067 shortcut for xforms CB to the preemptive or post-handler function.
1069 * src/frontends/xforms/forms/form_preferences.fd (form_preferences):
1070 removed the HIDDEN_TIMER as it's no longer used.
1071 Various other small changes.
1073 * src/frontends/xforms/FormPreferences.[Ch]: removed timer. Use a
1074 preemptive handler to obtain feedback, rather than the post-handler.
1075 (ColoursLoadBrowser): find "black" and "white" based on RGB values
1077 Formats tab is now complete. Converters tab is nearly so.
1079 2000-11-09 Juergen Vigna <jug@sad.it>
1081 * src/insets/insettext.C (~InsetText):
1084 (SetParagraphData): set cache.second to 0 after deleting it!
1085 (getLyXText): check if cache.second is not 0 if finding it.
1087 2000-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1089 * src/frontends/xforms/FormPreferences.C (ColoursLoadBrowser): use
1090 lyxlex to parse the rgb.txt file.
1093 * src/lyxlex_pimpl.[Ch]: implement setCommentChar method, to
1094 replace the default '#' comment character.
1096 * src/support/tempname.C: add "using" directive
1097 * src/frontends/ButtonPolicies.C: ditto.
1099 * src/support/filetools.C (DirList): add an explicit cast to avoid
1100 a compile error (probably not the right fix)
1102 2000-11-08 Lars Gullik Bjønnes <larsbj@lyx.org>
1104 * src/support/filetools.C (DirList): implement using system functions
1106 * src/support/tempname.C: new file
1108 * src/support/Makefile.am (libsupport_la_SOURCES): add tempname.C
1110 * src/insets/insetexternal.C (InsetExternal): use lyx::tempName
1112 * src/graphics/GraphicsCacheItem_pimpl.C (renderXPM): use
1115 * src/frontends/xforms/ButtonController.C: new file
1117 * src/os2_defines.h: remove getcwd define
1119 * src/lyxvc.C: include support/lyxlib.h
1120 (showLog): use lyx::tempName
1122 * src/lyx_cb.C: comment out includes that we don't need
1123 (AutoSave): use lyx::tempName
1125 * src/filedlg.C: include support/lyxlib.h
1126 (Reread): use lyx::getcwd
1128 * src/converter.C: include support/filetools.h
1129 (add_options): change to static inline, make tail const
1130 (Add): make old_viewer const
1131 (GetAllFormats): make it a const method, use const_iterator
1132 (enable): make static inline
1133 (SplitFormat): make using_format const
1135 * src/LaTeX.C (run): use lyx::getcwd
1137 * configure.in: check for mkstemp as well
1139 2000-11-07 Angus Leeming <a.leeming@ic.ac.uk>
1141 * src/converter.[Ch] (GetAllCommands): new method.
1143 * src/support/filetools.[Ch] (DirList): new method.
1145 * src/frontends/xforms/FormPreferences.C: started (just!) adding
1146 functionality to the converters tab.
1147 The formats tab is now nearly complete.
1148 The kbmap choices in Languages tab now display the contents of
1149 system_lyxdir/kbd/*.kmap in readable form.
1151 * src/frontends/xforms/FormPreferences.h: made struct RGB private.
1152 Moved some variables into the class.
1154 * src/frontends/xforms/forms/form_preferences.fd: Revert colour of
1155 inactive tab folder to FL_COL1. Haven't yet worked out how to change
1156 colour of active folder to lighter grey instead. Any takers?
1157 (form_colours): added an "Apply" button.
1158 (form_converters): added a "Flags" input field.
1159 (form_formats): added a "Shortcut" input field. Note that we can't use
1160 names such as "input_shortcut" as this buggers up the sed script stuff.
1162 2000-11-07 Angus Leeming <a.leeming@ic.ac.uk>
1170 * src/lyx_sendfax_main.C:
1173 * src/spellchecker.C:
1174 * src/insets/figinset.C:
1175 * src/insets/insetbib.C:
1176 * src/insets/insetexternal.C:
1177 * src/insets/insetinclude.C:
1178 * src/insets/insetinfo.C:
1179 * src/mathed/math_panel.C:
1180 use FL_PLACE_MOUSE | FL_FREE_SIZE, FL_TRANSIENT in fl_show_form(), so
1181 all "daughter" dialogs now have identical "feel".
1183 2000-11-07 Angus Leeming <a.leeming@ic.ac.uk>
1185 * src/lyx_gui_misc.[Ch] (IgnoreCloseBoxCB): removed as it's no longer
1186 used (and was only used in one place prior to this patch. Incorrectly!)
1188 * src/frontends/xforms/FormDocument.C: changed some instances of
1189 FL_RETURN_ALWAYS to FL_RETURN_CHANGED as I think that this makes more
1190 sense. Also added fl_set_input_return() for class_->input_doc_extra and
1191 for options_->input_float_placement. This fixes a bug reported by
1194 * src/frontends/xforms/FormGraphics.[Ch] (free): removed. Placed
1195 functionality into d-tor.
1197 * src/frontends/xforms/input_validators.c (fl_lowercase_filter): allow
1198 input of numerals also.
1200 * src/insets/insetinclude.C (Edit): use CancelCloseBoxCB in
1201 fl_set_form_atclose(). Can now close dialog from window manager,
1202 fixing a bug reported by Rob Lahaye.
1204 2000-11-06 Angus Leeming <a.leeming@ic.ac.uk>
1206 * src/frontends/xforms/forms/form_preferences.fd: Inactive tab folders
1207 are no longer dark. Haven't yet worked out how to lighten the colour of
1208 the active tabfolder. Any ideas anybody?
1209 Adjusted Colours tab a little.
1210 Added Shortcut field to converters tab. Note that we can't create an
1211 fdesign label like "input_shortcut" as this buggers up the sed-script
1214 * src/frontends/xforms/FormPreferences.[Ch]:
1215 (feedback): fixed crash due to to ob=0.
1216 (LanguagesXXX): the kbmap choices now contain the files
1217 sytem_lyxdir/kbd/*.kmap. I think that these choices should eventually
1218 be replaced by an input with a file browse button, but since the browse
1219 buttons don'y yet work, this'll do for the moment.
1220 (FormatsXXX): think that this is now nearly fully functional.
1221 Some points/questions though:
1222 1. Does "Apply" remove formats if no longer present?
1223 2. I think that the browser should list the GUI names rather than the
1225 3. Must ensure that we can't delete Formats used by an existing
1228 * src/support/filetools.[Ch] (DirList): new function. Not at all sure
1229 if this is the best way to do this.
1231 2000-11-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1233 * lib/reLyX/acinclude.m4 (RELYX_CHECK_ERRORS): remove useless message.
1235 * lib/configure.m4 (latex_to_html_command): avoid spaces around =
1236 for variable assignment.
1238 2000-11-07 Rob Lahaye <lahaye@postech.edu>
1240 * src/lib/ui/default.ui: added sub/superscripts to menu as
1241 Insert->Special characters and cleaned-up the file a bit
1243 2000-11-07 Allan Rae <rae@lyx.org>
1245 * src/frontends/xforms/FormPreferences.C (feedback): make sure
1246 ob isn't 0 before using it. See comments in function.
1248 * src/frontends/xforms/forms/fdfixc.sed: tiny spacing fix.
1250 * src/frontends/xforms/form_*.C: regenerated
1252 2000-11-07 Lars Gullik Bjønnes <larsbj@lyx.org>
1254 * src/LaTeX.C (deplog): change reg1 to handle (/.../.../fil.sty)
1256 * config/lyxinclude.m4 (LYX_PROG_CXX): remove -fno-rtti when
1257 compiling with gcc-2.96
1259 2000-11-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1261 * src/support/lyxstring.C: add a couple "using" directives.
1263 * src/frontends/xforms/FormPreferences.C (ColoursLoadBrowser): add
1264 a .c_str() here too for good measure.
1265 * src/Spacing.C (set): ditto.
1266 * src/lyxfunc.C (Dispatch): ditto.
1268 * src/insets/insettabular.C (copySelection): change .str() to
1269 .str().c_str() to fix problems with lyxstring.
1270 * src/support/filetools.C (GetFileContents): ditto.
1271 * src/buffer.C (asciiParagraph): ditto.
1272 * src/paragraph.C (String): ditto.
1274 * lib/bind/fi_menus.bind: change symbol-insert to math-insert.
1275 * lib/bind/sciword.bind: ditto.
1277 * src/LyXAction.C (init): remove "symbol-insert" function, which
1278 shared LFUN_INSERT_MATH with "math-insert".
1280 * lib/configure.m4: == is not a valid operator for command test.
1282 * src/lyxrc.C: add using directive.
1284 * src/converter.h: add std:: qualifier.
1286 2000-11-03 Dekel Tsur <dekelts@tau.ac.il>
1288 * src/converter.[Ch] and other files: Change the Format class to a
1289 real class, and create two instances: formats and system_format.
1291 * src/lyxrc.C (output): Output the difference between formats and
1294 * src/frontends/xforms/FormPreferences.C (input): Simplify.
1295 (buildFormats): Insert formats into browser.
1296 (inputFormats): Made the browser and add button functional.
1297 (applyFormats): Update formats from format_vec.
1299 * src/converter.C: Changed all (*it). to it->
1300 (Format::dummy): New method.
1301 (Format::importer): New format flag.
1302 (Formats::GetAllFormats): New method.
1303 (Formats::Add): Delete format from the map if prettyname is empty.
1304 (Converter::Convert): Print an error message if moving the file fails.
1305 (Converter::GetReachableTo): New method
1307 * src/MenuBackend.[Ch]: Add support for importformats tag.
1309 * src/support/rename.C (rename): Call to lyx::copy if ::rename fails.
1311 * lib/configure.m4: Add word->tex and ps->fax converters.
1313 * lib/ui/default.ui: Use ImportFormats on file->import menu.
1314 Return fax to file menu.
1318 2000-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
1320 * src/frontends/xforms/FormPreferences.h (operator=): move out of RGB
1323 * src/frontends/xforms/FormPreferences.C (WriteableFile): simplify
1326 * src/lyxfunc.C (processKeyEvent): removed
1328 * src/bufferlist.C (emergencyWrite): removed the out commented
1329 emergency write code.
1331 * src/Makefile.am (lyx_main.o): add dep for commandtags.h
1333 * src/LyXView.[Ch]: remove the outcommented raw_callback code
1335 * many files: change formatting to be a bit more uniform for
1336 if,while,for,switch statements, remove some parantesis not needed.
1339 2000-11-03 John Levon <moz@compsoc.man.ac.uk>
1341 * config/kde.m4: make config more robust when KDEDIR is set
1343 2000-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1345 * src/frontends/xforms/Toolbar_pimpl.C: do not crash if mathed has
1346 not returned a pixmap for "math-insert".
1348 * src/LyXAction.C (init): sort the entries a bit.
1350 2000-11-03 Juergen Vigna <jug@sad.it>
1352 * src/insets/insettabular.h: added fixed number to update codes so
1353 that update is only in one direction.
1355 * src/insets/insettabular.C (UpdateLocal): modified a bit don't think
1358 * src/insets/insettext.C (InsetButtonPress): set the_locking_inset
1359 before call to edit because of redraw.
1361 * src/insets/insetcollapsable.C (draw): fixed clearing too much.
1363 2000-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1365 * lib/ui/default.ui: Populate "edit_float" menu
1367 * src/lyxfunc.C (Dispatch): implement LFUN_FLOATSOPERATE.
1369 * src/LyXAction.C (init): add new entry LFUN_FLOATSOPERATE, name
1370 "floats-operate". The name is ugly (and the func also), but this
1371 is just a band-aid until we switch to new insets.
1373 2000-11-03 Rob Lahaye <lahaye@postech.edu>
1375 * lib/ui/default.ui: update again the menu layout (fix some
1378 2000-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1380 * src/MenuBackend.h (fulllabel): new method.
1382 * src/MenuBackend.C (checkShortcuts): new method. Checks whether
1383 the menu shortcuts of a menu are unique and whether they
1384 correspond to a letter of the label.
1385 (expand): call checkShortcuts when debugging.
1387 2000-11-03 Andre Poenitz <poenitz@HTWM.De>
1389 * src/insets/insettext.C (InsetButtonPress): shut off warning.
1391 2000-11-02 Lior Silberman <lior@Princeton.EDU>
1393 * lib/examples/*.lyx : '\language default' => '\language english'
1395 * lib/examples/it_splash.lyx : except where it should be italian
1397 * lib/templates/*.lyx : the same
1399 * doc/*.lyx* : the same
1401 2000-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1403 * lib/bind/menus.bind: remove the Layout menu entries, which I
1404 somehow forgot earlier.
1406 2000-11-03 Rob Lahaye <lahaye@postech.edu>
1408 * lib/ui/old-default.ui: keep the old one here for reference (to
1411 * lib/ui/default.ui: update the menu layout
1413 2000-11-02 Angus Leeming <a.leeming@ic.ac.uk>
1415 * src/frontends/xforms/FormCitation.C: made use of ButtonController.
1416 Can now Apply to different insets without closing the dialog.
1418 * src/frontends/xforms/FormPreferences.C: new Colour and Format tabs.
1419 Can't actually DO anything with them yet, but I'd like a little
1422 * src/frontends/xforms/input_validators.[ch]
1423 (fl_lowercase_filter): new.
1425 2000-10-27 Dekel Tsur <dekelts@tau.ac.il>
1427 * src/mathed/formulamacro.h (LyxCode) Return MATHMACRO_CODE instead
1428 of MATH_CODE. This fixes a bug with math-macros in RTL text.
1430 * src/text.C (PrepareToPrint): Show math-macros block aligned.
1432 2000-11-02 Juergen Vigna <jug@sad.it>
1434 * src/insets/insettext.C (LocalDispatch): return a DISPATCHED_NOUPDATE
1435 on char insertion as it has already be updated by bv->updateInset().
1437 * src/insets/insettabular.C (UpdateInsetInInset): update the inset
1438 if an inset inside was updated.
1440 * lib/configure.cmd: commented out fax-search code
1442 2000-11-01 Yves Bastide <stid@acm.org>
1444 * src/tabular.C (OldFormatRead): set tabular language to the
1447 2000-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1449 * lib/reLyX/MakePreamble.pm (translate_preamble): fix reading of
1450 class names with non-letter characters (from Yves Bastide).
1452 * lib/ui/default.ui: change Item to OptItem in import menu.
1453 Comment out fax stuff.
1455 * lib/configure.m4: comment out fax-related stuff.
1457 2000-10-31 Angus Leeming <a.leeming@ic.ac.uk>
1459 * src/frontends/xforms/xform_helpers.[Ch]: new files. Repository for
1460 useful xforms helper functions. At present contains only formatted().
1461 Input a string and it returns it with line breaks so that in fits
1464 * src/frontends/xforms/Makefile.am: add new files.
1466 * src/lyxrc.[Ch] (getDescription): new name for getFeedback.
1467 * src/lyxrc.C (getDescription): Removed '\n's from strings. Corrected
1470 * src/frontends/xforms/FormPreferences.[Ch]:
1471 * src/frontends/xforms/forms/form_preferences.fd: No new functionality
1472 but lots of little clean ups. Removed enum State. Make use of
1473 formatted(). Constify lots of methods. Perhaps best of all: removed
1474 requirement for that horrible reinterpret_cast from pointer to long in
1477 2000-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
1479 * src/lyxlookup.C: include FORMS_H_LOCATION to get at FL_REVISION,
1480 conditionalize build on xforms < 0.89
1482 * src/lyx_gui.C (LyXGUI): only close lyxlookup if not xforms 0.89
1484 * src/lyxfunc.C (getStatus): commenout LFUN_FAX
1486 * src/LyXAction.C (init): comment out fax
1488 * src/lyxrc.h: comment out the fax enums
1489 comment out the fax variables
1491 * src/commandtags.h: comment out LFUN_FAX
1493 * src/lyxrc.C: disable fax variables.
1494 (read): disable parsing of fax variables
1495 (output): disable writing of fax variables
1496 (getFeedback): now description for fax variables
1498 * src/lyxfunc.C: comment out MenuFax
1499 (Dispatch): disable LFUN_FAX
1501 * src/lyx_cb.C (MenuFax): comment out
1503 * src/WorkArea.C: add <cctype>
1504 (work_area_handler): better key handling, should be ok now.
1505 for accented chars + etc
1507 * src/Makefile.am (lyx_SOURCES): remove lyx_sendfax.C
1508 lyx_sendfax.h and lyx_sendfax_man.C
1510 * src/LyXView.C: don't include lyxlookup.h when using xforms 0.89
1511 (show): don't call InitLyXLookup when using xforms 0.89
1513 2000-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
1515 * src/trans.C (AddDeadkey): better fix, the other one could crash...
1517 * src/support/filetools.C (GetFileContents): close to dummy change
1519 2000-10-31 Lars Gullik Bjønnes <larsbj@lyx.org>
1521 * src/trans.C (AddDeadkey): workaround stupid compilers.
1523 2000-10-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1525 * src/frontends/xforms/FormDocument.C (class_update): fix setting
1526 of two-sided document.
1528 2000-10-31 Juergen Vigna <jug@sad.it>
1530 * src/WorkArea.C (work_area_handler): honor xforms 0.88 defines.
1532 * src/insets/insettabular.C (ActivateCellInset): passed the wrong
1533 xposition to the Edit call.
1535 2000-10-31 Lars Gullik Bjønnes <larsbj@lyx.org>
1537 * src/trans.C (AddDeadkey): cast explicitly to char.
1539 2000-10-30 Lars Gullik Bjønnes <larsbj@lyx.org>
1541 * src/tabular.C (AsciiBottomHLine): simplify?
1542 (AsciiTopHLine): simplify?
1543 (print_n_chars): simplify
1544 (DocBook): remove most of the << endl; we should flush the stream
1545 as seldom as possible.
1547 (TeXBottomHLine): ditto
1548 (TeXTopHLine): ditto
1550 (write_attribute): try a templified version.
1551 (set_row_column_number_info): lesson scope of variables
1553 * src/support/lstrings.h (tostr): new specialization of tostr
1555 * src/trans.C (AddDeadkey): slightly cleaner fix.
1557 2000-10-28 Dekel Tsur <dekelts@tau.ac.il>
1559 * src/frontends/xforms/Menubar_pimpl.C (add_toc): Replace '%' by
1560 '%%' in Toc menu labels.
1563 * src/insets/insetlatexaccent.C (draw): Correct rendering when
1564 font_norm is iso10646-1.
1566 * src/font.C (ascent): Fixed for 16bit fonts
1567 (descent,lbearing,rbearing): ditto
1569 2000-10-30 Angus Leeming <a.leeming@ic.ac.uk>
1571 * src/lyxrc.C.[Ch]: moved LyXRCTags into public part of header file.
1572 (getFeedback): new static method.
1574 * src/frontends/xforms/FormPreferences.[Ch]: one or two new inputs.
1575 Now use combox rather than choice to display languages.
1576 Feedback is now output using a new timer callback mechanism, identical
1577 to that in Toolbar_pimpl. Individual messages obtained from lyxrc.
1579 2000-10-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1581 * src/minibuffer.C: fix for older compilers
1583 2000-10-30 Juergen Vigna <jug@sad.it>
1585 * src/insets/insettext.C (InsertInset): fixed this as the cursor
1586 has to be Left of the inset otherwise LyXText won't find it!
1588 * src/BufferView2.C (open_new_inset): delete the inset if it can
1591 2000-10-30 Rob Lahaye <lahaye@postech.edu>
1593 * lyx.man: fix typo.
1595 2000-10-29 Marko Vendelin <markov@ioc.ee>
1596 * src/frontends/gnome/FormCitation.C
1597 * src/frontends/gnome/FormCitation.h
1598 * src/frontends/gnome/FormCopyright.C
1599 * src/frontends/gnome/FormCopyright.h
1600 * src/frontends/gnome/FormError.C
1601 * src/frontends/gnome/FormError.h
1602 * src/frontends/gnome/FormIndex.C
1603 * src/frontends/gnome/FormIndex.h
1604 * src/frontends/gnome/FormPrint.C
1605 * src/frontends/gnome/FormPrint.h
1606 * src/frontends/gnome/FormRef.C
1607 * src/frontends/gnome/FormRef.h
1608 * src/frontends/gnome/FormToc.C
1609 * src/frontends/gnome/FormToc.h
1610 * src/frontends/gnome/FormUrl.C
1611 * src/frontends/gnome/FormUrl.h
1612 * src/frontends/gnome/Menubar_pimpl.C
1613 * src/frontends/gnome/mainapp.C
1614 * src/frontends/gnome/mainapp.h
1615 * src/frontends/gnome/pixbutton.h: replacing NULL with 0 and
1616 changing update() to updateSlot() where appropriate
1618 2000-10-27 Angus Leeming <a.leeming@ic.ac.uk>
1620 * src/frontends/xforms/FormPreferences.[Ch]:
1621 * src/frontends/xforms/forms/form_preferences.fd: added a Languagues
1624 2000-10-28 Juergen Vigna <jug@sad.it>
1626 * src/insets/insettabular.C (draw): fixed drawing bug.
1628 * src/insets/insettext.C (clear):
1630 (SetParagraphData): clearing the TEXT buffers when deleting the
1631 paragraphs used by it.
1633 * src/BufferView_pimpl.C (cursorNext): fixed PageDown problem.
1635 * src/trans.C (AddDeadkey): fixed bug in inizializing keymap array.
1637 2000-10-27 Juergen Vigna <jug@sad.it>
1639 * src/tabular.C (~LyXTabular): removed not needed anymore.
1641 * src/tabular.h: changed rowofcell and columnofcell to vector<int>
1644 2000-10-27 Angus Leeming <a.leeming@ic.ac.uk>
1646 * src/frontends/Dialogs.h: remove hideTabular signal as it is no
1649 * src/frontends/xforms/FormRef.[Ch]: fix bug when setting the min
1652 * src/frontends/xforms/FormPreferences.[Ch]:
1653 * src/frontends/xforms/forms/form_preferences.fd: lots and lots!
1654 Reorganised as modules based on tabs. Much easier to follow the
1655 flow and to add new tabs. Added warning and feedback messages.
1658 2000-10-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1660 * src/tabular.h (DocBook): add std:: qualifier.
1662 2000-10-26 José Abílio Matos <jamatos@fep.up.pt>
1664 * src/buffer.h (SimpleDocBookOnePar): becomes public and const.
1665 * src/buffer.C (SimpleDocBookOnePar): this method goes const.
1668 * insettabular.C (DocBook): uses the tabular methods to export
1671 * src/insets/insettext.h
1672 * src/insets/insettext.C (DocBook): Implemented export for docbooc.
1674 2000-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
1676 * src/frontends/ButtonPolicies.h (operator<<): reinsert for State
1679 * src/lyxfunc.C (MenuNew): lessen the scope of fname
1680 moved misplaced AllowInput two lines up.
1682 * src/buffer.C (readFile): compare float with float, not with int
1684 2000-10-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1686 * src/minibuffer.C: add "using SigC::slot" statement.
1688 2000-10-25 Angus Leeming <a.leeming@ic.ac.uk>
1690 * src/frontends/xforms/forms/README: updated section about make.
1692 * src/frontends/xforms/forms/form_*.fd: lots and lots of shortcuts.
1693 Tidied some forms up, made two of form_tabular's tabs more
1694 self-consistent, fixed Jean-Marc's size problem in form_preferences,
1695 fixed translation problem with "Column".
1697 2000-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1699 * src/minibuffer.h: use Timeout instead of the xforms timer
1701 (setTimer) rewrite for the Timeout, change to unsigned arg
1702 (set): change to unsigned timer arg
1705 * src/minibuffer.C (TimerCB): removed func
1706 (C_MiniBuffer_TimerCB): removed func
1707 (C_MiniBuffer_ExecutingCB): rewrite to not depend on TimerCB
1708 (peek_event): use a switch statement
1709 (add): don't use fl_add_timer.
1710 (Set): rewrite to use the Timeout
1713 * src/Timeout.[Ch] (setType): return a Timeout &
1714 (setTimeout): ditto, change to unsigned arg for timeout
1716 2000-10-25 Dekel Tsur <dekelts@tau.ac.il>
1718 * src/mathed/formula.C (mathed_string_width): Use string instead
1719 of a constant size char array.
1721 2000-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1723 * src/frontends/ButtonPolicies.h: remove the LOstream and remove
1724 the two recently added operator<< for SMInput and State.
1726 * src/frontends/ButtonPolicies.C (PreferencesPolicy): cast
1728 (OkCancelPolicy): ditto
1729 (OkCancelReadOnlyPolicy): ditto
1730 (NoRepeatedApplyReadOnlyPolicy): ditto
1731 (OkApplyCancelReadOnlyPolicy): ditto
1732 (OkApplyCancelPolicy): ditto
1733 (NoRepeatedApplyPolicy): ditto
1735 2000-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1737 * src/frontends/ButtonPolicies.h: include "support/LOstream.h" and
1738 add the usual std:: qualifiers.
1740 2000-10-25 Juergen Vigna <jug@sad.it>
1742 * src/screen.C (ShowManualCursor): fixed another uint -> int problem.
1744 2000-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1746 * src/support/filetools.C (MakeRelPath): change some types to
1749 * src/frontends/ButtonPolicies.h (operator<<): new operator for
1750 ButtonPolicy::SMInput and ButtonPolicy::State.
1752 * src/FontLoader.C (reset): small cleanup
1753 (unload): small cleanup
1755 * src/FontInfo.C (getFontname): initialize error to 10000.0
1757 2000-10-24 Angus Leeming <a.leeming@ic.ac.uk>
1759 * src/frontends/xforms/FormPreferences.[Ch]:
1760 * src/frontends/xforms/forms/form_preferences.fd: added spell checker,
1761 TeX encoding and default paper size sections.
1763 2000-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1765 * src/frontends/xforms/FormTabularCreate.C: add missing #pragma
1768 * src/frontends/xforms/FormError.C (disconnect): use erase() to
1769 make the message_ empty.
1770 (FormError): don't initialize message_ in initializer list.
1772 2000-10-24 Angus Leeming <a.leeming@ic.ac.uk>
1774 * src/frontends/xforms/FormInset.[Ch]: Aieeeeee! Ok, I'm an idiot.
1776 2000-10-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1778 * lib/kbd/latvian.kmap: new file from Janne Pänkälä (epa@iki.fi)
1780 2000-10-24 John Levon <moz@compsoc.man.ac.uk>
1782 * src/frontends/kde/*data.[Ch]: _("") is not
1785 2000-10-24 Angus Leeming <a.leeming@ic.ac.uk>
1787 * src/buffer.C: removed redundant using directive.
1789 * src/frontends/DialogBase.h: revert to original definition of
1792 * src/frontends/xforms/Dialogs.C (c-tor): splitting the tabular
1793 stuff into two classes, one for each dialog, requires a new
1794 element in the dialogs vector, FormTabularCreate.
1796 * src/frontends/xforms/FormXXX.[Ch] (update): revert to original
1799 * src/frontends/xforms/FormBase.[Ch] (FormBaseBD::updateSlot): new
1800 method. Continues Allan's idea, but means that derived classes
1801 don't need to worry about "update or hide?".
1803 * src/frontends/xforms/FormError.C (showInset): add connection
1806 * src/frontends/xforms/FormTabular.[Ch]: split into two classes,
1807 one for each dialog. FormTabular now contains main tabular dialog
1810 * src/frontends/xforms/FormTabularCreate.[Ch]:
1811 * src/frontends/xforms/forms/form_tabular_create.fd: the create
1814 * src/frontends/xforms/FormGraphics.[Ch]:
1815 * src/frontends/xforms/forms/form_graphics.fd
1816 * src/frontends/xforms/FormTabular.[Ch]:
1817 * src/frontends/xforms/forms/form_tabular.fd: made daughter
1818 classes of FormInset.
1820 * src/frontends/xforms/forms/fdfix.sh: small fix. Can now create
1821 class names properly. Eg, form_my_new_dialog -> FormMyNewDialog.
1823 * src/frontends/xforms/Makefile.am:
1824 * src/frontends/xforms/forms/makefile: added new files.
1826 * src/insets/insettabular.[Ch]: removed (Dialogs *) member
1827 variable. added Signal0 hide signal, in keeping with other GUI-I
1830 * src/support/lstrings.h: removed redundant std:: qualifier as
1831 it's already declared in Lsstream.h.
1833 2000-10-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1835 * src/insets/figinset.C (GhostscriptMsg): use DisplayString() to
1839 2000-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
1841 * src/tabular.C (Ascii): minimize scope of cell.
1843 * src/BufferView2.C (nextWord): return string() instead of 0;
1845 2000-10-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1847 * src/converter.h: add a std:: qualifier
1849 2000-10-21 Dekel Tsur <dekelts@tau.ac.il>
1851 * src/importer.[Ch]: New files. Used for importing files into LyX.
1853 * src/lyxfunc.C (doImport): Use the new Importer class.
1855 * src/converter.h: Add shortcut member to the Format class.
1856 Used for holding the menu shortcut.
1858 * src/converter.C and other files: Made a distinction between
1859 format name and format extension. New formats can be defined using
1860 the \format lyxrc tag.
1861 Added two new converter flags: latex and disable.
1863 2000-10-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1865 * src/support/lyxlib.h: unify namespace/struct implementation.
1866 Remove extra declarations.
1868 * src/support/chdir.C (chdir): remove version taking char const *
1870 * src/support/rename.C: ditto.
1871 * src/support/lyxsum.C: ditto.
1873 2000-10-19 Angus Leeming <a.leeming@ic.ac.uk>
1875 * src/frontends/xforms/FormBase.[Ch]:
1876 * src/frontends/xforms/FormXXX.[Ch] where XXX is a FormBase daughter:
1877 read the xforms manual to discover that fl_set_form_minsize()/maxsize()
1878 work only for the next call to fl_show_form(). The correct place to set
1879 them, therefore is in connect() immediately BEFORE fl_show_form(). Now
1880 done. FormBase also stores minw_, minh_ itself. All dialogs derived
1881 from FormBase have the minimum size set; no more stupid crashes with
1884 2000-10-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1886 * lib/ui/default.ui: fix shortcut for Insert->Include File.
1888 2000-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1890 * lib/CREDITS: add Andre' Poenitz and Kornelia Pietsch
1892 * src/support/lyxlib.h: changed second argument of mkdir to
1893 unsigned long int (unsigned int would probably have been enough,
1894 but...). Removed <sys/types.h> header.
1895 * src/support/mkdir.C (mkdir): ditto.
1899 2000-10-19 Juergen Vigna <jug@sad.it>
1901 * src/lyxfunc.C (MenuNew): small fix (form John)
1903 * src/screen.C (Update): removed unneeded code.
1905 * src/tabular.C (Ascii): refixed int != uint bug!
1907 * src/support/lyxlib.h: added sys/types.h include for now permits
1908 compiling, but I don't like this!
1910 2000-10-18 Juergen Vigna <jug@sad.it>
1912 * src/text2.C (ClearSelection): if we clear the selection we need
1913 more refresh so set the status apropriately
1915 * src/insets/insettext.C (draw): hopefully finally fixed draw
1918 2000-10-12 Juergen Vigna <jug@sad.it>
1920 * src/insets/insettext.C (draw): another small fix and make a block
1921 so that variables are localized.
1923 2000-10-18 Angus Leeming <a.leeming@ic.ac.uk>
1925 * src/support/lstrings.C (lowercase, uppercase):
1926 use explicit casts to remove compiler warnings.
1928 * src/support/LRegex.C (Impl):
1929 * src/support/StrPool.C (add):
1930 * src/support/filetools.C (MakeAbsPath, NormalizePath, MakeRelPath)
1931 (AddPath, MakeDisplayPath):
1932 * src/support/lstrings.C (prefixIs, subst):
1933 use correct type to remove compiler warnings.
1935 * src/support/lstrings.[Ch] (countChar): returns string::size_type.
1937 * src/support/lyxlib.h:
1938 * src/support/mkdir.C (mkdir): change parameter to mode_t for
1939 portability and to remove compiler warning with DEC cxx.
1941 * src/support/FileInfo.[Ch] (flagRWX): ditto.
1943 2000-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1945 * src/minibuffer.C (peek_event): retun 1 when there has been a
1946 mouseclick in the minibuffer.
1950 2000-10-17 John Levon <moz@compsoc.man.ac.uk>
1952 * src/frontends/xforms/FormParagraph.C: more space above/below
1955 2000-10-17 Dekel Tsur <dekelts@tau.ac.il>
1957 * src/lyxfunc.C (Dispatch): Call to showState() after insertion of
1958 a char only if real_current_font was changed.
1960 2000-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1962 * NEWS: update somewhat for 1.1.6
1964 * lib/ui/default.ui: clean up.
1966 2000-10-17 Angus Leeming <a.leeming@ic.ac.uk>
1968 * lib/CREDITS: clean up
1970 2000-10-16 Angus Leeming <a.leeming@ic.ac.uk>
1972 * src/combox.[Ch] (select): changed argument back to int
1973 * src/combox.C (peek_event): removed num_bytes as it is declared but
1976 * src/frontends/xforms/FormDocument.C (class_apply, bullets_apply):
1977 modified calls to Combox::select() to remove warnings about type
1980 * src/insets/insetbutton.C (width): explicit cast to remove warning
1981 about type conversion.
1983 * src/insets/insetcite.C (getScreenLabel): use string::size_type not
1986 * src/insets/insettabular.[Ch]: variables inset_pos, sel_pos_start and
1987 sel_pos_end, refering to cursor position are changed to
1988 LyXParagraph::size_type.
1990 * src/insets/insettext.h (cpos): returns LyXParagraph::size_type,
1991 consistent with LyXCursor::pos().
1992 (inset_pos): changed to LyXParagraph::size_type for same reason.
1994 * src/insets/insettext.C (resizeLyXText): changed some temporary
1995 variables refing to cursor position to LyXParagraph::size_type.
1997 2000-10-16 John Levon <moz@compsoc.man.ac.uk>
1999 * src/frontends/kde/<various>: The Great Renaming,
2002 2000-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2004 * src/frontends/support/Makefile.am (EXTRA_DIST): re-fix.
2006 2000-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2008 * src/mathed/math_macro.C (MathMacroTemplate): initialize args to
2009 0 when there are no arguments.
2011 2000-10-16 Angus Leeming <a.leeming@ic.ac.uk>
2013 * src/insets/insetbib.C: re-introduce current_view as a temporary fix
2014 to segfaults when pressing Ok in InsetBibtex dialog.
2016 2000-10-16 Angus Leeming <a.leeming@ic.ac.uk>
2018 * forms/layout_forms.fd:
2019 * src/layout_forms.C (create_form_form_character): small change to use
2020 labelframe rather than engraved frame + text
2022 * src/lyx_gui.C (create_forms): initialise choice_language with some
2023 arbitrary value to prevent segfault when dialog is shown.
2025 2000-10-16 Baruch Even <baruch.even@writeme.com>
2027 * src/converter.C (runLaTeX, scanLog): Added a warning when there
2028 is no resulting file. This pertains only to LaTeX output.
2030 2000-10-14 Dekel Tsur <dekelts@tau.ac.il>
2032 * src/text.C (Backspace): Make sure that the row of the cursor is
2035 * src/lyxfunc.C (Dispatch): Call to showState() after insertion of
2038 * src/lyx_gui.C (init): Prevent a crash when only one font from
2039 menu/popup fonts is not found.
2041 * lib/lyxrc.example: Add an example for binding a key for language
2044 2000-10-15 Dekel Tsur <dekelts@tau.ac.il>
2046 * src/converter.C (GetReachable): Changed the returned type to
2048 (IsReachable): New method
2050 * src/MenuBackend.C (expand): Handle formats that appear more
2053 2000-10-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2055 * src/frontends/support/Makefile.am
2056 (libfrontendsupport_la_EXTRA_DIST): add LyXImage_X.[Ch] here and
2059 * lib/CREDITS: add Garst Reese.
2061 * src/support/snprintf.h: add extern "C" {} around the definitions.
2063 * src/cheaders/cstdarg: new header file, taken from GNU libstdc++.
2065 2000-10-13 Angus Leeming <a.leeming@ic.ac.uk>
2068 * src/frontends/xforms/FormDocument.C:
2069 * src/frontends/xforms/Menubar_pimpl.C: small changes so that they
2070 compile without "conversion to integral type of smaller size"
2073 2000-10-13 Dekel Tsur <dekelts@tau.ac.il>
2075 * src/text.C (GetColumnNearX): Fixed disabled code.
2077 2000-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2079 * configure.in (CPPFLAGS): add snprintf and vsnprintf to
2082 * src/support/snprintf.[ch]: new files
2084 2000-10-13 John Levon <moz@compsoc.man.ac.uk>
2086 * src/frontends/kde/formprintdialog.C: add
2087 file browser for selecting postscript output
2089 * src/frontends/kde/formprintdialogdata.C:
2090 * src/frontends/kde/formprintdialogdata.h: re-generate
2093 2000-10-13 John Levon <moz@compsoc.man.ac.uk>
2095 * src/frontends/gnome/Makefile.am:
2096 * src/frontends/kde/Makefile.am: FormCommand.C
2097 disappeared from xforms
2099 * src/frontends/kde/FormCitation.C:
2100 * src/frontends/kde/FormIndex.C: read-only
2103 2000-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2105 * src/support/lyxfunctional.h (void_class_fun_t): fix name of
2108 * src/bufferlist.C: add using directive.
2110 2000-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
2112 * src/support/lyxfunctional.h: version of class_fun for void
2113 returns added, const versions of back_inseter_fun and compare_fun
2116 2000-10-13 Angus Leeming <a.leeming@ic.ac.uk>
2118 * src/frontends/xforms/FormInset.C (showInset): fix typo.
2120 2000-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2122 * ChangeLog: cleanup.
2124 * lib/CREDITS: update to add all the contributors we've forgotten.
2125 I have obviously missed some, so tell me whether there were
2128 2000-10-13 Marko Vendelin <markov@ioc.ee>
2130 * src/frontends/gnome/FormCitation.C
2131 * src/frontends/gnome/FormCitation.h
2132 * src/frontends/gnome/FormError.C
2133 * src/frontends/gnome/FormIndex.C
2134 * src/frontends/gnome/FormRef.C
2135 * src/frontends/gnome/FormRef.h
2136 * src/frontends/gnome/FormUrl.C: hide dialogs on "update" signal
2138 * src/frontends/gnome/FormCitation.C
2139 * src/frontends/gnome/FormCopyright.C
2140 * src/frontends/gnome/FormError.C
2141 * src/frontends/gnome/FormIndex.C
2142 * src/frontends/gnome/FormRef.C
2143 * src/frontends/gnome/FormToc.C
2144 * src/frontends/gnome/FormUrl.C: replacing gettext N_() with _() where
2147 * src/frontends/gnome/Menubar_pimpl.C
2148 * src/frontends/gnome/Menubar_pimpl.h: using new Menu::expand method to
2151 2000-10-11 Baruch Even <baruch.even@writeme.com>
2154 * src/minibuffer.C: Changed the method ExecCommand to PrepareForCommand
2155 to convey its real action.
2157 * src/minibuffer.C (peek_event): Added action when mouse clicks to
2158 clear the minibuffer and prepare to enter a command.
2160 * src/mathed/formula.C (LocalDispatch): Changed to conform with
2161 the rename from ExecCommand to PrepareForCommand.
2162 * src/lyxfunc.C (Dispatch): ditto.
2164 2000-10-11 Baruch Even <baruch.even@writeme.com>
2166 * src/buffer.C (writeFile): Added test for errors on writing, this
2167 catches all errors and not only file system full errors as intended.
2169 2000-10-13 Dekel Tsur <dekelts@tau.ac.il>
2171 * src/lyx_gui.C (create_forms): better fix for crash with
2172 translated interface.
2174 2000-10-12 John Levon <moz@compsoc.man.ac.uk>
2176 * src/frontends/kde/Makefile.am:
2177 * src/frontends/kde/FormCopyright.C:
2178 * src/frontends/kde/formcopyrightdialog.C:
2179 * src/frontends/kde/formcopyrightdialog.h:
2180 * src/frontends/kde/formcopyrightdialogdata.C:
2181 * src/frontends/kde/formcopyrightdialogdata.h:
2182 * src/frontends/kde/dlg/formcopyrightdialog.kdevdlg:
2183 * src/frontends/kde/dlg/formcopyrightdialog.dlg: convert
2184 copyright to use qtarch
2186 2000-10-12 Dekel Tsur <dekelts@tau.ac.il>
2188 * src/encoding.C (read): Fixed bug that caused an error message at
2189 the end of the file.
2191 * po/Makefile.in.in: Fixed rule for ext_l10n.h
2193 * lib/lyxrc.example: Fixed hebrew example.
2195 2000-10-13 Allan Rae <rae@lyx.org>
2197 * src/frontends/xforms/FormPreferences.C (input): reworking the
2199 (build, update, apply): New inputs in various tabfolders
2201 * src/frontends/xforms/FormToc.C: use new button policy.
2202 * src/frontends/ButtonPolicies.h (class IgnorantPolicy): for
2203 dialogs that either can't use any existing policy or where it just
2206 * src/frontends/xforms/FormTabular.h: removed copyright notice that
2209 * src/lyx_gui_misc.[Ch] (updateAllVisibleBufferRelatedDialogs):
2210 added a bool parameter which is ignored.
2212 * src/buffer.C (setReadonly):
2213 * src/BufferView_pimpl.C (buffer):
2214 * src/frontends/kde/FormCopyright.h (update):
2215 * src/frontends/kde/FormCitation.[Ch] (update):
2216 * src/frontends/kde/FormIndex.[Ch] (update):
2217 * src/frontends/kde/FormPrint.[Ch] (update):
2218 * src/frontends/kde/FormRef.[Ch] (update):
2219 * src/frontends/kde/FormToc.[Ch] (update):
2220 * src/frontends/kde/FormUrl.[Ch] (update):
2221 * src/frontends/gnome/FormCopyright.h (update):
2222 * src/frontends/gnome/FormCitation.[Ch] (update):
2223 * src/frontends/gnome/FormError.[Ch] (update):
2224 * src/frontends/gnome/FormIndex.[Ch] (update):
2225 * src/frontends/gnome/FormPrint.[Ch] (update):
2226 * src/frontends/gnome/FormRef.h (update):
2227 * src/frontends/gnome/FormToc.[Ch] (update):
2228 * src/frontends/gnome/FormUrl.[Ch] (update):
2229 * src/frontends/xforms/FormGraphics.[Ch] (update): reflect new changes
2230 to updateBufferDependent and DialogBase
2232 * src/frontends/xforms/FormCitation.[hC]:
2233 * src/frontends/xforms/FormDocument.[hC]: also removed restore()
2234 * src/frontends/xforms/FormError.[Ch]:
2235 * src/frontends/xforms/FormGraphics.[Ch]:
2236 * src/frontends/xforms/FormIndex.[Ch]:
2237 * src/frontends/xforms/FormParagraph.[Ch]: also added missing "virtual"s
2238 and fixed readOnly handling.
2239 * src/frontends/xforms/FormPrint.[Ch]:
2240 * src/frontends/xforms/FormRef.[Ch]:
2241 * src/frontends/xforms/FormTabular.[Ch]:
2242 * src/frontends/xforms/FormToc.[Ch]:
2243 * src/frontends/xforms/FormUrl.[Ch]:
2244 * src/frontends/xforms/FormInset.[Ch]:
2245 * src/frontends/xforms/FormBase.[hC]: modifications to use the new
2246 form of updateBufferDependent.
2248 * src/frontends/xforms/FormBase.C (hide): only call disconnect()
2249 if form()->visible just in case someone does stuff to the form in a
2252 * src/frontends/DialogBase.h (enum): removed enum since we can now use
2253 the buttoncontroller for everything the enum used to be used for.
2254 (update) It would seem we need to force all dialogs to use a bool
2255 parameter or have two update functions. I chose to go with one.
2256 I did try removing update() from here and FormBase and defining the
2257 appropriate update signatures in FormBaseB[DI] but then ran into the
2258 problem of the update() call in FormBase::show(). Whatever I did
2259 to get around that would require another function and that just
2260 got more confusing. Hence the decision to make everyone have an
2261 update(bool). An alternative might have been to override show() in
2262 FormBaseB[DI] and that would allow the different and appropriate
2265 * src/frontends/Dialogs.h (updateBufferDependent): now takes a bool.
2266 true == buffer change occurred. I decided against using a default
2267 template parameter since not all compilers support that at present.
2269 2000-10-11 Angus Leeming <a.leeming@ic.ac.uk>
2271 * src/frontends/xforms/FormBase.[Ch] (FormBase) : made less of a "swiss
2272 army knife" by removing functionality.
2273 (clearStore): removed. All such housekeeping on hide()ing the dialog
2274 is to be carried out by overloaded disconnect() methods.
2275 (dialogIsOpen): removed. Relevant only to Inset dialogs anyway, but
2276 superceded by Baruch's neat test (FormGraphics) to update an existing
2277 dialog if a new signal is recieved rather than block all new signals
2279 (cba_, parent_, updateOrHide): removed to new FormInset class. Relevant
2280 only to Inset dialogs.
2281 (FormBaseBI, FormBaseBD): new classes derived from FormBase for
2282 "Buffer Independent" and "Buffer Dependent" dialogs respectively.
2284 * src/frontends/xforms/FormCommand.[Ch]: renamed as FormInset.[Ch]
2286 * src/frontends/xforms/FormInset.[Ch] (FormInset): New class, defined
2287 as a base class to all inset dialogs. Used solely to connect/disconnect
2288 the Inset::hide signal and to define what action to take on receipt of
2289 a UpdateBufferDependent signal.
2290 (FormCommand): now derived from FormInset.
2292 * src/frontends/xforms/FormCitation.[Ch] (clearStore): reworked as
2295 * src/frontends/xforms/FormCopyright.[Ch]:
2296 * src/frontends/xforms/FormPreferences.[Ch]:
2297 now derived from FormBaseBI.
2299 * src/frontends/xforms/FormDocument.[Ch]:
2300 * src/frontends/xforms/FormParagraph.[Ch]:
2301 * src/frontends/xforms/FormPrint.[Ch]:
2302 now derived from FormBaseBD.
2304 * src/frontends/xforms/FormError.[Ch]: now derived from FormInset.
2306 * src/frontends/xforms/FormCitation.[Ch]:
2307 * src/frontends/xforms/FormError.[Ch]:
2308 * src/frontends/xforms/FormRef.[Ch]:
2309 * src/frontends/xforms/FormToc.[Ch]:
2310 (clearStore): reworked as disconnect().
2312 * src/frontends/xforms/Makefile.am: removed FormCommand.[Ch], adding
2315 2000-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2317 * src/converter.C (runLaTeX): constify buffer argument
2320 * src/frontends/support/Makefile.am (INCLUDES): fix.
2322 * src/buffer.h: add std:: qualifier
2323 * src/insets/figinset.C (addpidwait): ditto
2324 * src/MenuBackend.C: ditto
2325 * src/buffer.C: ditto
2326 * src/bufferlist.C: ditto
2327 * src/layout.C: ditto
2328 * src/lyxfunc.C: ditto
2330 2000-10-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2332 * src/lyxtext.h (bidi_level): change return type to
2333 LyXParagraph::size_type.
2335 * src/lyxparagraph.h: change size_type to
2336 TextContainer::difference_type. This should really be
2337 TextContainer::size_type, but we need currently to support signed
2340 2000-10-11 Marko Vendelin <markov@ioc.ee>
2341 * src/frontends/gnome/FormError.h
2342 * src/frontends/gnome/FormRef.C
2343 * src/frontends/gnome/FormRef.h
2344 * src/frontends/gnome/FormError.C
2345 * src/frontends/gnome/Makefile.am
2346 * src/frontends/gnome/pixbutton.h: FormError and FormRef are ported
2347 to Gnome frontend. Both dialogs use "action" area.
2349 2000-10-12 Baruch Even <baruch.even@writeme.com>
2351 * src/graphics/GraphicsCacheItem_pimpl.C:
2352 * src/graphics/Renderer.C:
2353 * src/graphics/XPM_Renderer.C: Corrected resolution of conflicts.
2356 2000-10-12 Juergen Vigna <jug@sad.it>
2358 * src/insets/insettext.C (draw): fixed drawing bug (specifically
2359 visible when selecting).
2361 * development/Code_rules/Rules: fixed some typos.
2363 2000-10-09 Baruch Even <baruch.even@writeme.com>
2365 * src/filedlg.C (GroupCache::find): de-inlined the function, makes
2366 compiling on egcs 1.1.2 possible.
2368 * src/filedlg.C (comp_direntry::operator() ): ditto.
2370 2000-08-31 Baruch Even <baruch.even@writeme.com>
2372 * src/lyx_cb.[hC] (ShowMessage): Result of the const-ificiation of the
2375 * src/frontends/xforms/FormGraphics.C: Changed the dialog to be
2376 transient it now only gets freed when the object is destructed.
2378 2000-08-24 Baruch Even <baruch.even@writeme.com>
2380 * src/frontends/FormGraphics.h:
2381 * src/frontends/FormGraphics.C: Changed to use ButtonController and
2384 2000-08-20 Baruch Even <baruch.even@writeme.com>
2386 * src/insets/insetgraphics.C:
2387 (draw): Added messages to the drawn rectangle to report status.
2388 (updateInset): Disabled the use of the inline graphics,
2391 2000-08-17 Baruch Even <baruch.even@writeme.com>
2393 * src/frontends/support: Directory added for the support of GUII LyX.
2395 * src/frontends/support/LyXImage.h:
2396 * src/frontends/support/LyXImage.C: Base class for GUII holding of
2399 * src/frontends/support/LyXImage_X.h:
2400 * src/frontends/support/LyXImage_X.C: Implementation of the Xlib
2401 version of LyXImage, this uses the Xlib Pixmap.
2403 * src/PainterBase.h:
2404 * src/PainterBase.C:
2406 * src/Painter.C: Added a new method image() to draw LyXImage-s, a GUII
2407 replacement to Pixmap.
2409 * src/insets/insetgraphics.h:
2410 * src/insets/insetgraphics.C:
2411 * src/graphics/GraphicsCacheItem.h:
2412 * src/graphics/GraphicsCacheItem.C:
2413 * src/graphics/GraphicsCacheItem_pimpl.h:
2414 * src/graphics/GraphicsCacheItem_pimpl.C: Changed to use LyXImage
2417 * src/graphics/GraphicsCacheItem.h:
2418 * src/graphics/GraphicsCacheItem.C: Added the Clone() method to create
2419 another copy of the object.
2421 * src/insets/insetgraphics.C (Clone): Changed to create a second copy
2422 of cacheHandle, this fixed a bug that sent LyX crashing.
2424 * src/graphics/XPM_Renderer.h:
2425 * src/graphics/XPM_Renderer.C:
2426 * src/graphics/EPS_Renderer.h:
2427 * src/graphics/EPS_Renderer.C: Changed to Unix LF from DOS CRLF.
2429 2000-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2431 * src/lyxfunc.C (processKeySym): only handle the
2432 lockinginset/inset stuff if we have a buffer and text loaded...
2434 * lib/Makefile.am (EXTRA_DIST): add encodings and languages
2436 2000-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
2438 * src/support/lyxfunctional.h: add operator= that takes a reference
2440 * src/lyxserver.C (mkfifo): make first arg const
2442 * src/layout.h: renamed name(...) to setName(...) to work around
2445 * src/buffer.C (setFileName): had to change name of function to
2446 work around bugs in egcs. (renamed from fileName)
2448 2000-10-11 Lars Gullik Bjønnes <larsbj@lyx.org>
2450 * src/support/translator.h: move helper template classes to
2451 lyxfunctional.h, include "support/lyxfunctional.h"
2453 * src/support/lyxmanip.h: add delaration of fmt
2455 * src/support/lyxfunctional.h: new file
2456 (class_fun_t): new template class
2457 (class_fun): helper template function
2458 (back_insert_fun_iterator): new template class
2459 (back_inserter_fun): helper template function
2460 (compare_memfun_t): new template class
2461 (compare_memfun): helper template function
2462 (equal_1st_in_pair): moved here from translator
2463 (equal_2nd_in_pair): moved here from translator
2465 * src/support/fmt.C: new file
2466 (fmt): new func, can be used for a printf substitute when still
2467 using iostreams ex. lyxerr << fmt("Hello %s", "Jürgen") << endl;
2469 * src/support/StrPool.C: add some comments
2471 * src/support/Makefile.am (libsupport_la_SOURCES): add fmt.C and
2474 * src/insets/figinset.C (addpidwait): use std::copy with
2475 ostream_iterator to fill the pidwaitlist
2477 * src/graphics/XPM_Renderer.C (renderImage): use ScreenOfDisplay
2479 * src/frontends/xforms/Toolbar_pimpl.C (updateLayoutList): remove
2482 * src/frontends/xforms/Menubar_pimpl.C: make several file scope
2485 * src/frontends/xforms/FormParagraph.C (input): use lyx::atoi
2487 * src/frontends/xforms/FormDocument.C (build): remove c_str()
2488 (class_update): ditto
2489 (BulletPanel): ditto
2490 (CheckChoiceClass): move initialization of tc and tct
2492 * src/tabular.C: remove current_view
2493 (OldFormatRead): similar to right below [istream::ignore]
2495 * src/lyxlex_pimpl.C (next): add code for faster skipping of
2496 chars, unfortunately this is buggy on gcc 2.95.2, so currently
2497 unused [istream::ignore]
2499 * src/lyxfunc.C: include "support/lyxfunctional.h"
2500 (getInsetByCode): use std::find_if and compare_memfun
2502 * src/lyxfont.C (stateText): remove c_str()
2504 * src/lyx_main.C (setDebuggingLevel): make static
2505 (commandLineHelp): make static
2507 * src/lyx_gui_misc.C (getScreenDPI): use ScreenOfDisplay to get
2508 Screen* together with fl_get_display() and fl_screen
2510 * src/lyx_gui.C (LyXGUI): use ScreenOfDisplay to get Screen*
2511 togheter with fl_get_display() and fl_screen
2512 (create_forms): remove c_str()
2514 * src/layout.C: include "support/lyxfunctional.h"
2515 (hasLayout): use std::find_if and compare_memfun
2516 (GetLayout): use std::find_if and comapre_memfun
2517 (delete_layout): use std::remove_if and compare_memfun
2518 (NumberOfClass): use std:.find_if and compare_memfun
2520 * src/gettext.h: change for the new functions
2522 * src/gettext.C: new file, make _(char const * str) and _(string
2523 const & str) real functions.
2525 * src/font.C (width): rewrite slightly to avoid one extra variable
2527 * src/debug.C: initialize Debug::ANY here
2529 * src/commandtags.h: update number comments
2531 * src/combox.h (get): make const func
2533 (getline): make const
2535 * src/combox.C (input_cb): handle case where fl_get_input can
2538 * src/bufferlist.C: add <functional>, "support/lyxmanip.h",
2539 "support/lyxfunctional.h", remove current_view variable.
2540 (resize): use std::for_each with std::mem_fun
2541 (getFileNames): use std::copy with back_inserter_fun
2542 (getBuffer): change arg type to unsigned int
2543 (emergencyWriteAll): call emergencyWrite with std::for_each and
2545 (emergencyWrite): new method, the for loop in emergencyWriteAll
2547 (exists): use std::find_if with compare_memfun
2548 (getBuffer): use std::find_if and compare_memfun
2550 * src/buffer.h: add typedefs for iterator_category, value_type
2551 difference_type, pointer and reference for inset_iterator
2552 add postfix ++ for inset_iterator
2553 make inset_iterator::getPos() const
2555 * src/buffer.C: added support/lyxmanip.h
2556 (readFile): use lyxerr << fmt instead of printf
2557 (makeLaTeXFile): use std::copy to write out encodings
2559 * src/Painter.C (text): rewrite slightly to avoid extra font variable
2561 * src/MenuBackend.C (read): remove c_str(), as well as strdup and
2562 free and the char * temp.
2563 (hasMenu): use std::find_if and compare_memfun
2566 * src/Makefile.am (lyx_SOURCES): added gettext.C
2568 * src/LyXAction.C (retrieveActionArg): clear the arg, use
2569 string::insert small change to avoid temporary
2571 * src/LColor.C (getGUIName): remove c_str()
2573 * several files: change all occurrences of fl_display to
2576 * config/lyxinclude.m4 (LYX_PROG_CXX): add a 2.97 clause so
2577 that -pedantic is not used for gcc 2.97 (cvs gcc)
2579 * boost/Makefile.am: begin slowly to prepare for a real boost lib
2581 2000-10-11 Allan Rae <rae@lyx.org>
2583 * src/frontends/xforms/FormPreferences.C (input): template path must be
2584 a readable directory. It doesn't need to be writeable.
2585 (build, delete, update, apply): New inputs in the various tabfolders
2587 * src/frontends/xforms/forms/form_preferences.fd:
2588 * src/frontends/xforms/FormPreferences.h: New tabfolder and added
2589 several new entries to existing folders. Shuffled some existing stuff
2592 * src/frontends/xforms/forms/form_print.fd:
2593 * src/frontends/xforms/FormPrint.C (apply): rename unsorted to collated.
2594 Should probably rework PrinterParams as well. Note that the switch to
2595 collated is effectively the same as !unsorted so changing PrinterParams
2596 will require a lot of fiddly changes to reverse the existing logic.
2598 * src/lyx_cb.C (TimerCB): cleaned up Angus's patch.
2600 2000-10-10 Angus Leeming <a.leeming@ic.ac.uk>
2602 * src/lyx_cb.C (TimerCB): fix crash when fd_form_title doesn't exist.
2604 2000-10-10 Allan Rae <rae@lyx.org>
2607 * src/lyxfunc.C (Dispatch):
2609 * src/BufferView_pimpl.C (scrollCB): cursor_follows_scrollbar made a
2612 * src/lyxrc.C (output): Only write the differences between system lyxrc
2613 and the users settings.
2616 * src/lyxrc.[Ch]: commented out noncopyable so I can keep a
2618 I'll rewrite this later, after 1.1.6 probably, to keep a single
2619 LyXRC but two instances of a LyXRCStruct.
2621 2000-10-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2623 * lib/Makefile.am (pkgdata_DATA): add encoding and languages
2625 * src/tabular.h: add a few std:: qualifiers.
2627 * src/encoding.C: add using directive.
2628 * src/language.C: ditto.
2630 * src/insets/insetquotes.C (Validate): use languages->lang()
2631 instead of only language.
2633 2000-10-07 Dekel Tsur <dekelts@tau.ac.il>
2635 * lib/languages: New file.
2637 * lib/encodings: New file.
2639 * src/language.C (Languages): New class.
2640 (read): New method. Reads the languages from the 'languages' file.
2642 * src/encoding.C (Encodings): New class.
2643 (read): New method. Reads the encodings from the 'encodings' file.
2645 * src/lyx_main.C (init): Call to LyXSetStyle() after languages
2648 * src/bufferparams.h and a lot of files: Deleted the member language,
2649 and renamed language_info to language
2651 * src/buffer.C (makeLaTeXFile): Use babel() instead of lang()
2652 * src/lyxfont.C (latexWriteStartChanges): ditto.
2653 * src/paragraph.C (validate,TeXOnePar): ditto.
2655 * src/lyxfont.C (update): Restored deleted code.
2657 * src/frontends/xforms/FormDocument.C (build): Made the combox taller
2659 2000-10-10 Angus Leeming <a.leeming@ic.ac.uk>
2661 * src/BufferView_pimpl.C (buffer): cleaned up a little.
2663 * src/insets/figinset.[Ch]:
2664 * src/insets/insetinclude.[Ch]:
2665 * src/insets/insetinclude.[Ch]:
2666 * src/insets/insetparent.[Ch]:
2667 * src/insets/insetref.[Ch]:
2668 * src/insets/insettabular.[Ch] (c-tor): Buffer passed as const &.
2670 * src/insets/*.[Ch]:
2671 * src/mathed/formula.[Ch]:
2672 * src/mathed/formulamacro.C (Clone): passed Buffer const &.
2674 * src/buffer.C (parseSingleLyXformat2Token, readInset):
2675 * src/lyx_cb.C (FigureApplyCB):
2676 * src/lyxfunc.C (getStatus, Dispatch):
2677 * src/frontends/xforms/FormTabular.C: use modified c-tors to some
2680 * src/lyxfunc.C (Dispatch): string "ref" not used. Removed.
2682 * src/converter.[Ch] (Formats::View):
2683 * src/lyx_cb.[Ch] (ShowMessage): constify Buffer * parameter.
2685 * src/paragraph.C (CopyIntoMinibuffer, Clone): Insets::Clone() passed
2686 *current_view->buffer(). This will change later, but this patch is way
2689 2000-10-09 Juergen Vigna <jug@sad.it>
2691 * src/text.C (GetRow): small fix.
2693 * src/BufferView_pimpl.C (cursorPrevious):
2694 (cursorNext): added LyXText parameter to function.
2696 * src/insets/insettabular.C (LocalDispatch): activate cell inset on
2697 keypress depending on cursor position.
2699 2000-10-06 Juergen Vigna <jug@sad.it>
2701 * src/insets/insettabular.C (Ascii): finally call right ascii-function.
2702 (copySelection): redone this function and also copy ascii representa-
2705 * src/tabular.C (Ascii):
2709 (print_n_chars): new functions to realize the ascii export of tabulars.
2711 2000-10-05 Juergen Vigna <jug@sad.it>
2713 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): small fix
2714 if we don't have a buffer.
2716 2000-10-10 Allan Rae <rae@lyx.org>
2718 * src/frontends/xforms/FormPreferences.[Ch] (hide): Fix the problem
2719 with closing dialog. It seems that nested tabfolders require hiding
2720 of inner tabfolders before hiding the dialog itself. Actually all I
2721 did was hide the active outer folder.
2723 * src/BufferView_pimpl.C (buffer): don't call updateBufferDependent
2724 unless there really is a buffer. hideBufferDependent is called
2727 * po/Makefile.in.in (POTFILES.in): one little tweak to ensure
2728 POTFILES.in stays in $(srcdir).
2730 2000-10-09 Dekel Tsur <dekelts@tau.ac.il>
2732 * lib/lyxrc.example: Few changes.
2734 2000-10-05 Angus Leeming <a.leeming@ic.ac.uk>
2736 * src/BufferView_pimpl.C (buffer): only need one the
2737 updateBufferDependent signal to be emitted once! Moved to the end of
2738 the method to allow bv_->text to be updated first.
2740 * src/frontends/xforms/FormBase.[Ch]: replaced the two signals uSignal_
2741 and hSignal_ with Dialogs * and BufferDependency variables.
2742 New Buffer * parent_, initialised when the dialog is launched. Used to
2743 check whether to update() or hide() dialog in the new, private
2744 updateOrHide() method that is connected to the updateBufferDependent
2745 signal. Daughter classes dictate what to do using the
2746 ChangedBufferAction enum, passed to the c-tor.
2748 * src/frontends/xforms/FormCitation.C:
2749 * src/frontends/xforms/FormCommand.C:
2750 * src/frontends/xforms/FormCopyright.C:
2751 * src/frontends/xforms/FormDocument.C:
2752 * src/frontends/xforms/FormError.C:
2753 * src/frontends/xforms/FormIndex.C:
2754 * src/frontends/xforms/FormPreferences.C:
2755 * src/frontends/xforms/FormPrint.C:
2756 * src/frontends/xforms/FormRef.C:
2757 * src/frontends/xforms/FormToc.C:
2758 * src/frontends/xforms/FormUrl.C (c-tor): modified call to FormBase
2761 * src/frontends/xforms/FormCommand.[Ch] (c-tor) passed a
2762 ChangedBufferAction enum.
2764 * src/frontends/xforms/FormParagraph.[Ch]
2765 * src/frontends/xforms/forms/form_paragraph.fd: now derived from
2768 2000-10-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2770 * lib/bind/cua.bind: fix a bit.
2771 * lib/bind/emacs.bind: ditto.
2773 * lib/bind/menus.bind: remove real menu entries from there.
2775 * src/spellchecker.C: make sure we only include strings.h when
2778 2000-10-05 Dekel Tsur <dekelts@tau.ac.il>
2780 * src/frontends/xforms/Menubar_pimpl.C (get_new_submenu): New
2781 function. It enlarges the maximum number of pup when needed.
2782 (add_toc2): Open a new menu if maximum number of items per menu has
2785 2000-10-05 John Levon <moz@compsoc.man.ac.uk>
2787 * src/frontends/kde/FormPrint.C: fix error reporting
2789 * src/frontends/xforms/FormDocument.C: fix compiler
2792 * lib/.cvsignore: add Literate.nw
2794 2000-10-05 Dekel Tsur <dekelts@tau.ac.il>
2797 * bufferview_funcs.[Ch]
2800 * text2.C: Add support for numbers in RTL text.
2802 2000-10-06 Allan Rae <rae@lyx.org>
2804 * po/Makefile.in.in (POTFILES.in, POTFILES): Fixed
2805 to be gettext.m4 friendly again. ext_l10n.h is now
2806 generated into $top_srcdir instead of $top_builddir
2807 so that lyx.pot will be built correctly -- without
2808 duplicate parsing of ext_l10n.h.
2810 2000-10-04 John Levon <moz@compsoc.man.ac.uk>
2812 * src/frontends/kde/FormCitation.C: make the dialog
2813 behave more sensibly
2815 2000-10-03 John Levon <moz@compsoc.man.ac.uk>
2817 * config/kde.m4: fix consecutive ./configure runs,
2818 look for qtarch, fix library order
2820 * src/frontends/kde/Makefile.am: tidy up,
2821 add Print dialog, add .dlg dependencies
2823 * src/frontends/kde/FormPrint.C:
2824 * src/frontends/kde/FormPrint.h:
2825 * src/frontends/kde/formprintdialog.C:
2826 * src/frontends/kde/formprintdialog.h:
2827 * src/frontends/kde/formprintdialogdata.C:
2828 * src/frontends/kde/formprintdialogdata.h:
2829 * src/frontends/kde/dlg/formprintdialog.dlg: add
2832 * src/frontends/kde/dlg/README: Added explanatory readme
2834 * src/frontends/kde/dlg/checkinitorder.pl: small perl
2835 script to double-check qtarch's output
2837 * src/frontends/kde/formindexdialog.C:
2838 * src/frontends/kde/formindexdialogdata.C:
2839 * src/frontends/kde/formindexdialogdata.h:
2840 * src/frontends/kde/dlg/formindexdialog.dlg: update
2841 for qtarch, minor fixes
2843 2000-10-05 Allan Rae <rae@lyx.org>
2845 * src/BufferView_pimpl.C (buffer): don't hide all buffer dependent
2846 dialogs when switching buffers update them instead. It's up to each
2847 dialog to decide if it should still be visible or not.
2848 update() should return a bool to control visiblity within show().
2849 Or perhaps better to set a member variable and use that to control
2852 * lib/build-listerrors: create an empty "listerrors" file just to stop
2853 make trying to regenerate it all the time if you don't have noweb
2856 * .cvsignore: ignore distdir and dist.tar.gz using rule lyx-*
2858 * po/Makefile.in.in (ext_l10n.h): added a rule to build
2859 $(top_builddir)/src/ext_l10n.h. The rule has to go here because po/
2860 is built before src/ and ext_l10n.h isn't actually needed to build lyx.
2861 (POTFILES.in): added a rule to build POTFILES.in. It is also now safe
2862 to rebuild POTFILES.in with scrap *.[hC] files in xforms/forms/.
2864 * autogen.sh: po/POTFILES.in and src/ext_l10n.h now generated by make.
2866 2000-10-04 Angus Leeming <a.leeming@ic.ac.uk>
2868 * src/BufferView_pimpl.C (buffer): emit hideBufferDependent when
2869 deleting buffer. Closes all buffer-dependent dialogs.
2871 * src/frontends/xforms/FormBase.[Ch] (input): modified to pass
2873 * src/frontends/xforms/FormCitation.[Ch]:
2874 * src/frontends/xforms/FormPreferences.[Ch]:
2875 * src/frontends/xforms/FormPrint.[Ch]:
2876 * src/frontends/xforms/FormRef.[Ch]:
2877 * src/frontends/xforms/FormUrl.[Ch]: ditto
2879 * src/frontends/xforms/FormDocument.[Ch]:
2880 * src/frontends/xforms/forms/form_document.C.patch:
2881 * src/frontends/xforms/forms/form_document.fd: all input callbacks now
2882 pass through a single input() function.
2884 2000-10-04 John Levon <moz@compsoc.man.ac.uk>
2886 * lib/build-listerrors: return status as OK
2888 2000-10-04 Dekel Tsur <dekelts@tau.ac.il>
2890 * lib/lyxrc.example: Updated to new export code
2892 2000-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2894 * src/mathed/math_parser.C (LexInitCodes): set lexcode of "@" to
2897 * src/mathed/formula.C (LocalDispatch): add '@' as an LM_TC_VAR
2900 * lib/layouts/amsart.layout: include lyxmacros.inc, so that
2901 LyX-Code is defined.
2902 * lib/layouts/amsbook.layout: ditto.
2904 * boost/Makefile.am: fix typo.
2906 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): use
2908 (add_lastfiles): removed.
2909 (add_documents): removed.
2910 (add_formats): removed.
2912 * src/frontends/Menubar.C: remove useless "using" directive.
2914 * src/MenuBackend.h: add a new MenuItem constructor.
2916 * src/MenuBackend.[Ch] (Menu::expand): new method. Used in the
2919 2000-10-04 Allan Rae <rae@lyx.org>
2921 * lib/Makefile.am (listerrors):
2922 * lib/build-listerrors: make $builddir != $srcdir compiles work again.
2923 I haven't got notangle installed so Kayvan please test. The output
2924 should end up in $builddir. This also allows people who don't have
2925 noweb installed to complete the make process without error.
2927 * src/frontends/xforms/FormCommand.[Ch] (showInset):
2928 * src/frontends/xforms/FormError.[Ch] (showInset): fix warnings found
2929 by JMarc's picky compiler.
2931 2000-10-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2934 * src/insets/insettabular.C (setPos): change for loop to not use
2935 sequencing operator. Please check this Jürgen.
2937 * src/frontends/xforms/Menubar_pimpl.C (makeMenubar): use "c"
2939 * src/insets/insetcite.C (getScreenLabel): ditto
2940 * src/support/filetools.C (QuoteName): ditto
2941 (ChangeExtension): ditto
2943 * src/BufferView_pimpl.C (scrollCB): make heigt int
2945 * src/BufferView2.C (insertInset): comment out unused arg
2947 * boost/Makefile.am (EXTRADIST): new variable
2949 2000-10-03 Dekel Tsur <dekelts@tau.ac.il>
2951 * src/exporter.C (IsExportable): Fixed
2953 * lib/configure.m4: Small fix
2955 2000-10-03 Dekel Tsur <dekelts@tau.ac.il>
2957 * src/insets/insetbutton.C (width): Changed to work with no GUI.
2958 * src/insets/insetbib.C (bibitemWidest): ditto.
2959 * src/lyx_gui_misc.C (AskQuestion,AskConfirmation,askForText): ditto.
2961 2000-10-03 Juergen Vigna <jug@sad.it>
2963 * src/BufferView2.C (theLockingInset): removed const because of
2964 Agnus's compile problems.
2966 * src/insets/insettext.C (LocalDispatch): set the language of the
2967 surronding paragraph on inserting the first character.
2969 * various files: changed use of BufferView::the_locking_inset.
2971 * src/BufferView2.C (theLockingInset):
2972 (theLockingInset): new functions.
2974 * src/BufferView.h: removed the_locking_inset.
2976 * src/lyxtext.h: added the_locking_inset
2978 * src/BufferView_pimpl.C (checkInsetHit): y_tmp form uint to int.
2980 * src/insets/lyxinset.h: added bool to ShowInsetCursor definition.
2982 2000-10-02 Angus Leeming <a.leeming@ic.ac.uk>
2984 * src/mathed/formula.C (IsMacro): declared but not referenced; removed.
2985 * src/mathed/math_cursor.C (IsAlpha): ditto.
2986 * src/mathed/math_inset.C (strnew): ditto.
2987 * src/mathed/math_iter.C: SizeFont declared but not referenced;removed.
2988 (IMetrics): cxp set but never used; removed.
2989 * src/insets/figinset.C (InitFigures): removed redundant for loop, now
2990 that the variable in question has been removed also!
2993 * src/insets/insetbib.[Ch]: remove need to store Buffer * owner by
2994 using the Buffer * passed to Latex(), using the BufferView * passed to
2995 bibitemMaxWidth() bibitemWidest() and by passing a Buffer* to getKeys()
2997 * src/insets/insetinclude.C: use the Buffer * passed to Latex(),
2998 Linuxdoc() and DocBook() rather than the stored Buffer * master.
3000 * src/lyxfunc.C (Dispatch): used new InsetBibtex c-tor
3001 * src/buffer.C (readInset): used new InsetBibtex c-tor
3002 * (getBibkeyList): used new InsetBibtex::getKeys
3004 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
3007 * lib/build-listerrors
3009 * src/exporter.C: Add literate programming support to the export code
3012 * src/lyx_cb.C: Remove old literate code.
3014 * src/lyxrc.[Ch]: Remove many obsolete (due to new export code)
3017 * src/lyxfunc.C (getStatus): Use Exporter::IsExportable
3018 * src/converter.C (View, Convert): Use QuoteName.
3020 * src/insets/figinset.C (Preview): Use Formats::View.
3022 * lib/configure.m4: Add sgml->dvi converter to lyxrc.default
3024 2000-10-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3026 * src/lyxfunc.C (Dispatch): move declaration of text variable at
3027 the top of the function, because compaq cxx complains that the
3028 "goto exit_with_message" when the function is disabled bypasses
3030 (MenuNew): try a better fix for the generation of new file names.
3031 This time, I used AddName() instead of AddPath(), hoping Juergen
3034 2000-10-03 Allan Rae <rae@lyx.org>
3036 * src/frontends/xforms/forms/form_preferences.fd:
3037 * src/frontends/xforms/FormPreferences.[Ch]: redesign of dialog using
3038 nested tabfolders has begun. The old "Miscellaneous" was renamed as
3039 "Look and Feel"->"General" but will need to be split up further into
3040 general output and general input tabs. Current plan is for four outer
3041 tabfolders: "Look and Feel" for colours, bindings, fonts and other HCI
3042 stuff; "Inputs" for input and import configuration; "Outputs" for
3043 output and export configuration; and one more whatever is left over
3044 called "General". The leftovers at present look like being which
3045 viewers to use, spellchecker, language support and might be better
3046 named "Support". I've put "Paths" in "Inputs" for the moment as this
3047 seems reasonable for now at least.
3048 One problem remains: X error kills LyX when you close Preferences.
3050 2000-10-02 Angus Leeming <a.leeming@ic.ac.uk>
3052 * src/frontends/xforms/FormBase.[Ch]: removed "meaningless" const.
3053 qualifier from form()
3054 * src/frontends/xforms/FormCitation.[Ch]:
3055 * src/frontends/xforms/FormCopyright.[Ch]:
3056 * src/frontends/xforms/FormDocument.[Ch]:
3057 * src/frontends/xforms/FormError.[Ch]:
3058 * src/frontends/xforms/FormIndex.[Ch]:
3059 * src/frontends/xforms/FormPreferences.[Ch]:
3060 * src/frontends/xforms/FormPrint.[Ch]:
3061 * src/frontends/xforms/FormRef.[Ch]:
3062 * src/frontends/xforms/FormToc.[Ch]:
3063 * src/frontends/xforms/FormUrl.[Ch]: ditto.
3065 * src/frontends/xforms/FormCitation.[Ch]:
3066 * src/frontends/xforms/FormIndex.[Ch]:
3067 * src/frontends/xforms/FormRef.[Ch]:
3068 * src/frontends/xforms/FormUrl.[Ch]: Renamed a few buttons, consistent
3069 with Allan's naming policy
3071 * src/frontends/xforms/FormCitation.C: some static casts to remove
3074 2000-10-02 Juergen Vigna <jug@sad.it>
3076 * src/insets/insettabular.C (LocalDispatch): fixed selection code,
3077 now you can type or do stuff inside the table-cell also when in dummy
3078 position, fixed visible cursor.
3080 * src/insets/insettext.C (Edit): fixing cursor-view position.
3082 * src/lyxfunc.C (Dispatch): use * text variable so that it can
3083 be used for equal functions in lyxfunc and insettext.
3085 * src/text.C (GetVisibleRow): fixed a small clear_area bug.
3087 2000-10-02 John Levon <moz@compsoc.man.ac.uk>
3089 * src/frontends/gnome/FormCitation.h:
3090 * src/frontends/gnome/FormCopyright.h:
3091 * src/frontends/gnome/FormIndex.h:
3092 * src/frontends/gnome/FormPrint.h:
3093 * src/frontends/gnome/FormToc.h:
3094 * src/frontends/gnome/FormUrl.h:
3095 * src/frontends/kde/FormCitation.h:
3096 * src/frontends/kde/FormCopyright.h:
3097 * src/frontends/kde/FormIndex.h:
3098 * src/frontends/kde/FormRef.h:
3099 * src/frontends/kde/FormToc.h:
3100 * src/frontends/kde/FormUrl.h: fix remaining users of
3103 2000-10-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3105 * src/buffer.C (linuxDocHandleFootnote): remove const modifier
3106 from depth argument.
3107 (DocBookHandleCaption): ditto.
3108 (DocBookHandleFootnote): ditto.
3109 (SimpleDocBookOnePar): ditto.
3111 * src/frontends/xforms/FormDocument.h (form): remove extra
3112 FormDocument:: qualifier.
3114 * sigc++/macros/basic_signal.h.m4: remove erroneous virtual
3116 * sigc++/handle.h: ditto.
3118 * src/lyx_gui_misc.C: add "using" directive.
3120 * src/cheaders/cstddef: new file, needed by the boost library (for
3123 2000-10-02 Juergen Vigna <jug@sad.it>
3125 * src/insets/insettext.C (SetFont): better support.
3127 * src/insets/insettabular.C (draw): fixed drawing of single cell.
3129 * src/screen.C (DrawOneRow): some uint refixes!
3131 2000-10-02 Allan Rae <rae@lyx.org>
3133 * boost/.cvsignore: ignore Makefile as well
3135 * src/lyxfunc.C (Dispatch): missing break; and moved the '}' for
3136 LFUN_UNKNOWN_ACTION: so it doesn't wrap around default:.
3138 * src/frontends/xforms/FormPreferences.[Ch] (restore): D'oh.
3139 Left this one out by accident.
3141 * src/frontends/xforms/FormBase.h (restore): default to calling
3142 update() since that will restore the original/currently-applied values.
3143 Any input() triggered error messages will require the derived classes
3144 to redefine restore().
3146 * src/frontends/xforms/FormDocument.C: initialize a few variables to
3147 avoid a segfault. combo_doc_class is the main concern.
3149 2000-10-01 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
3151 * Simplify build-listerrors in view of GUI-less export ability!
3153 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
3155 * src/lyx_main.C (easyParse): Disable gui when exporting
3157 * src/insets/figinset.C:
3160 * src/lyx_gui_misc.C
3161 * src/tabular.C: Changes to allow no-gui.
3163 2000-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3165 * src/support/utility.hpp: removed file
3166 * src/support/block.h: removed file
3168 * src/support/Makefile.am (libsupport_la_SOURCES): remove block.h
3171 * src/mathed/formula.C: add support/lyxlib.h
3172 * src/mathed/formulamacro.C: ditto
3174 * src/bufferparams.h: use boost/array.hpp instead of support/block.h
3175 * src/lyxparagraph.h: ditto
3177 * src/Makefile.am (BOOST_INCLUDES): the boost include dir
3178 * src/frontends/Makefile.am (INCLUDES): ditto
3179 * src/frontends/gnome/Makefile.am (BOOST_INCLUDES): ditto
3180 * src/frontends/kde/Makefile.am (BOOST_INCLUDES): ditto
3181 * src/frontends/xforms/Makefile.am (BOOST_INCLUDES): ditto
3182 * src/graphics/Makefile.am (BOOST_INCLUDES): ditto
3183 * src/insets/Makefile.am (BOOST_INCLUDES): ditto
3184 * src/mathed/Makefile.am (BOOST_INCLUDES): ditto
3186 * src/BufferView.h: use boost/utility.hpp
3187 * src/LColor.h: ditto
3188 * src/LaTeX.h: ditto
3189 * src/LyXAction.h: ditto
3190 * src/LyXView.h: ditto
3191 * src/bufferlist.h: ditto
3192 * src/lastfiles.h: ditto
3193 * src/layout.h: ditto
3194 * src/lyx_gui.h: ditto
3195 * src/lyx_main.h: ditto
3196 * src/lyxlex.h: ditto
3197 * src/lyxrc.h: ditto
3198 * src/frontends/ButtonPolicies.h: ditto
3199 * src/frontends/Dialogs.h: ditto
3200 * src/frontends/xforms/FormBase.h: ditto
3201 * src/frontends/xforms/FormGraphics.h: ditto
3202 * src/frontends/xforms/FormParagraph.h: ditto
3203 * src/frontends/xforms/FormTabular.h: ditto
3204 * src/graphics/GraphicsCache.h: ditto
3205 * src/graphics/Renderer.h: ditto
3206 * src/insets/ExternalTemplate.h: ditto
3207 * src/insets/insetcommand.h: ditto
3208 * src/support/path.h: ditto
3210 * config/lyxinclude.m4 (LYX_PROG_CXX): change clause for 2.96
3211 and introduce clause for 2.97.
3213 * boost/libs/README: new file
3215 * boost/boost/utility.hpp: new file
3217 * boost/boost/config.hpp: new file
3219 * boost/boost/array.hpp: new file
3221 * boost/Makefile.am: new file
3223 * boost/.cvsignore: new file
3225 * configure.in (AC_OUTPUT): add boost/Makefile
3227 * Makefile.am (SUBDIRS): add boost
3229 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
3231 * src/support/lstrings.C (suffixIs): Fixed.
3233 2000-10-01 Allan Rae <rae@lyx.org>
3235 * src/PrinterParams.h: moved things around to avoid the "can't
3236 inline call" warning.
3238 * src/frontends/xforms/RadioButtonGroup.h: turned a comment
3239 into doc++ documentation.
3241 * src/frontends/xforms/FormCommand.[Ch]: support button policy
3243 * src/frontends/xforms/FormRef.C: make use of button controller
3244 * src/frontends/xforms/FormDocument.[Ch]: convert to use FormBase
3245 cleaned up button controller usage.
3246 * src/frontends/xforms/FormPreferences.[Ch]: convert to use FormBase
3247 * src/frontends/xforms/FormPrint.[Ch]: convert to use FormBase and
3248 use the button controller
3250 * src/frontends/xforms/forms/*.fd: and associated generated files
3251 updated to reflect changes to FormBase. Some other FormXxxx files
3252 also got minor updates to reflect changes to FormBase.
3254 * src/frontends/xforms/FormBase.[Ch]: (ok, cancel): new
3255 (hide): made virtual.
3256 (input): return a bool. true == valid input
3257 (RestoreCB, restore): new
3258 (CancelCB, OKCB): renamed from HideCB and ApplyHideCB.
3259 Changes to allow derived dialogs to use a ButtonController and
3260 make sense when doing so: OK button calls ok() and so on.
3262 * src/frontends/xforms/ButtonController.h (class ButtonController):
3263 Switch from template implementation to taking Policy parameter.
3264 Allows FormBase to provide a ButtonController for any dialog.
3266 * src/frontends/xforms/FormPrint.C (connect): setup sizing at show-time
3267 Probably should rename connect and disconnect.
3268 (apply): use the radio button groups
3269 (form): needed by FormBase
3270 (build): setup the radio button groups
3272 2000-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
3274 * several files: type changes to reduce the number of warnings and
3275 to unify type hangling a bit. Still much to do.
3277 2000-09-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3279 * lib/images/*: rename a bunch of icons to match Dekel converter
3282 * src/buffer.h (SimpleLinuxDocOnePar): remove const qualifier to
3285 * src/frontends/xforms/FormBase.C (disconnect): remove bogus test.
3287 * sigc++/macros/basic_signal.h.m4: fix class Signal_ to have a
3289 * sigc++/handle.h: ditto for class Handle.
3291 2000-09-27 John Levon <moz@compsoc.man.ac.uk>
3293 * config/kde.m4: make Qt fail immediately if Qt2 is picked up
3295 2000-09-28 Dekel Tsur <dekelts@tau.ac.il>
3297 * src/intl.C (InitKeyMapper): Correct the value of n due to the
3298 removal of the "default" language.
3300 * src/combox.h (getline): Check that sel > 0
3302 2000-09-29 José Abílio Matos <jamatos@fep.up.pt>
3304 * lib/examples/docbook_example.lyx
3305 * lib/examples/docbook_article.lyx: file renamed to avoid confusion.
3307 * lib/layouts/docbook-book.layout: new docbook book layout.
3309 * lib/layouts/linuxdoc.layout: LatexName of Style SGML is now dummy.
3311 * lib/layouts/manpage.layout: Same as above. Style SubSection removed.
3313 * src/insets/figinset.C (DocBook):fixed small typo.
3315 * src/insets/insetinclude.C (DocBook): new export for verbatim type.
3317 * src/insets/insetinclude.h: string include_label doesn't need to be
3320 2000-09-29 Allan Rae <rae@lyx.org>
3322 * src/frontends/xforms/FormBase.[Ch] (connect, disconnect): new.
3323 Allow derived type to control connection and disconnection from signals
3324 of its choice if desired.
3326 2000-09-28 Juergen Vigna <jug@sad.it>
3328 * src/insets/insettabular.C (update): fixed cursor setting when
3329 the_locking_inset changed.
3330 (draw): made this a bit cleaner.
3331 (InsetButtonPress): fixed!
3333 * various files: added LyXText Parameter to fitCursor call.
3335 * src/BufferView.C (fitCursor): added LyXText parameter.
3337 * src/insets/insettabular.C (draw): small draw fix.
3339 * src/tabular.C: right setting of left/right celllines.
3341 * src/tabular.[Ch]: fixed various types in funcions and structures.
3342 * src/insets/insettabular.C: ditto
3343 * src/frontends/xforms/FormTabular.C: ditto
3345 2000-09-28 Allan Rae <rae@lyx.org>
3347 * src/paragraph.C (TeXOnePar): fixed output of '\n'. The problem was
3348 that the #ifdef's had been applied to part of what should have been
3349 a complete condition. It's possible there are other tests that
3350 were specific to tables that are also wrong now that InsetTabular is
3351 being used. Now we need to fix the output of '\n' after a table in a
3352 float for the same reason as the original condition:
3353 "don't insert this if we would be adding it before or after a table
3354 in a float. This little trick is needed in order to allow use of
3355 tables in \subfigures or \subtables."
3356 Juergen can you check this?
3358 2000-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3360 * src/insets/insettext.C (Ascii): return numer of '\n' in the text
3361 output to the ostream.
3363 * several files: fixed types based on warnings from cxx
3365 2000-09-26 John Levon <moz@compsoc.man.ac.uk>
3367 * src/frontends/kde/Makefile.am: fix rule for
3368 formindexdialogdata_moc.C
3370 * src/.cvsignore: add ext_l10n.h to ignore
3372 * acconfig.h: stop messing with __STRICT_ANSI__
3373 * config/gnome.m4: remove option to set -ansi
3374 * config/kde.m4: remove option to set -ansi
3375 * config/lyxinclude.m4: don't set -ansi
3377 2000-09-27 Juergen Vigna <jug@sad.it>
3379 * various files: remove "default" language check.
3381 * src/insets/insetquotes.C: removed use of current_view.
3383 * src/lyxfunc.C (MenuNew): I don't know how put the AddPath here but
3384 the one should have red ears by now!
3386 * src/insets/insettext.C (LocalDispatch): fixed setting of same layouts
3387 in more then one paragraph. Fixed cursor-movement/selection.
3389 * src/frontends/xforms/FormParagraph.C: disable pagebreaks for
3390 paragraphs inside a text inset.
3392 * src/text.C (GetVisibleRow): paint top/bottom line only as wide as the
3393 text-inset if this owner is an inset.
3395 2000-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
3397 * src/Bullet.h: changed type of font, character and size to int
3399 * src/buffer.C (asciiParagraph): remove actcell and fname1.
3401 * src/insets/inseturl.[Ch]:
3402 * src/insets/insetref.[Ch]:
3403 * src/insets/insetlabel.[Ch]: add linelen to Ascii
3405 2000-09-26 Angus Leeming <a.leeming@ic.ac.uk>
3407 * src/buffer.C (readFile): block-if statement rearranged to minimise
3408 bloat. Patch does not reverse Jean-Marc's change ;-)
3410 * src/frontends/xforms/FormBase.[Ch]: Renamed some of the callbacks.
3411 Class rewritten to store pointers to hide/update signals directly,
3412 rather than Dialogs *. Also defined an enum to ease use. All xforms
3413 forms can now be derived from this class.
3415 * src/frontends/xforms/FormCommand.[Ch]
3416 * src/frontends/xforms/FormCopyright.[Ch]: now derived from FormBase.
3418 * src/frontends/xforms/FormError.[Ch]: moved inclusion of inseterror.h
3421 * src/frontends/xforms/forms/form_citation.fd
3422 * src/frontends/xforms/forms/form_copyright.fd
3423 * src/frontends/xforms/forms/form_error.fd
3424 * src/frontends/xforms/forms/form_index.fd
3425 * src/frontends/xforms/forms/form_ref.fd
3426 * src/frontends/xforms/forms/form_toc.fd
3427 * src/frontends/xforms/forms/form_url.fd: remamed callbacks
3429 * src/frontends/xforms/forms/makefile: small change to work with DEC sh.
3431 * src/insets/insetfoot.C: removed redundent using directive.
3433 2000-09-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3435 * lib/layouts/siamltex.layout: new textclass for SIAM journals,
3436 from Kornelia Pietsch <pietsch@mathematik.tu-chemnitz.de>
3438 * src/frontends/xforms/Menubar_pimpl.C: menu buttons are now
3439 created in the constructors in different groups. Then set() just
3440 have to show the groups as needed. This fixes the redraw problems
3441 (and is how the old menu code worked).
3443 * src/support/lyxlib.h: declare the methods as static when we do
3444 not have namespaces.
3446 2000-09-26 Juergen Vigna <jug@sad.it>
3448 * src/buffer.C (asciiParagraph): new function.
3449 (writeFileAscii): new function with parameter ostream.
3450 (writeFileAscii): use now asciiParagraph.
3452 * various inset files: added the linelen parameter to the Ascii-func.
3454 * src/tabular.C (Write): fixed error in writing file introduced by
3455 the last changes from Lars.
3457 * lib/bind/menus.bind: removed not supported functions.
3459 * src/insets/insettext.C (Ascii): implemented this function.
3461 * src/insets/lyxinset.h (Ascii): added linelen parameter.
3463 * src/tabular.C (write_attribute[int,string,bool]): new functions.
3464 (Write): use of the write_attribute functions.
3466 * src/bufferlist.C (close): fixed reasking question!
3468 2000-09-26 Lars Gullik Bjønnes <larsbj@lyx.org>
3470 * src/support/unlink.C src/support/remove.C src/support/mkdir.C:
3471 new files use the everwhere possible.
3474 * src/form1.C src/form1.h src/layout_forms.C src/layout_forms.h
3475 src/log_form.C src/lyx.C:
3478 * src/buffer.C (runLaTeX): remove func
3480 * src/PaperLayout.C: removed file
3481 * src/ParagraphExtra.C: likewise
3482 * src/bullet_forms.C: likewise
3483 * src/bullet_forms.h: likewise
3484 * src/bullet_forms_cb.C: likewise
3486 * src/Makefile.am (lyx_SOURCES): remove PaperLayout.C,
3487 ParagraphExtra.C, bullet_forms.C, bullet_forms.h and
3490 * several files: remove all traces of the old fd_form_paragraph,
3491 and functions belonging to that.
3493 * several files: remove all traces of the old fd_form_document,
3494 and functions belonging to that.
3496 * several files: constify local variables were possible.
3498 * several files: remove all code that was dead when NEW_EXPORT was
3501 * several files: removed string::c_str in as many places as
3504 * forms/makefile (SRCS,OBJS,COBJS): removed bullet_forms.[fd,c,C]
3505 (e): be a bit more outspoken when patching
3506 (updatesrc): only move files if changed.
3508 * forms/layout_forms.h.patch: regenerated
3510 * forms/layout_forms.fd: remove form_document and form_paragraph
3511 and form_quotes and form_paper and form_table_options and
3512 form_paragraph_extra
3514 * forms/form1.fd: remove form_table
3516 * forms/fdfix.sh: remove sed rules for fl_set_object_lcolor and
3517 the fdui->... rewrite. Update some comments to xforms 0.88
3519 * forms/bullet_forms.C.patch: removed file
3520 * forms/bullet_forms.fd: likewise
3521 * forms/bullet_forms.h.patch: likewise
3523 * development/Code_rules/Rules: added a section on switch
3524 statements. Updated some comment to xforms 0.88.
3526 2000-09-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3528 * src/buffer.C (readFile): make sure that the whole version number
3529 is read after \lyxformat (even when it contains a comma)
3531 * lib/ui/default.ui: change shortcut of math menu to M-a.
3533 2000-09-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3535 * src/vspace.C (nextToken): use isStrDbl() to check for proper
3538 * src/LyXView.C (updateWindowTitle): show the full files name in
3539 window title, limited to 30 characters.
3541 * src/support/lyxstring.C (lyxstring): fix it correctly this time.
3542 When a number of characters has been given, we should not assume
3543 that the string is 0-terminated.
3545 * src/intl.C (InitKeyMapper): remove a bunch of string::c_str()
3546 calls (fixes some memory leaks)
3548 * src/intl.[Ch]: add a destructor for Intl, in order to delete the
3549 trans member on exit.
3551 2000-09-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3553 * src/converter.C (GetReachable): fix typo.
3555 * src/lyxlex.C (GetFloat): rewrite to use strToDbl() and
3556 understand ',' instead of '.'.
3557 (GetInteger): rewrite to use strToInt().
3559 2000-09-26 Juergen Vigna <jug@sad.it>
3561 * src/frontends/xforms/FormParagraph.C: fixed de/activation of fields,
3562 better visibility and error-message on wrong VSpace input.
3564 * src/language.C (initL): added english again.
3566 2000-09-25 Juergen Vigna <jug@sad.it>
3568 * src/frontends/kde/Dialogs.C (Dialogs):
3569 * src/frontends/gnome/Dialogs.C (Dialogs):
3570 * src/frontends/kde/Makefile.am:
3571 * src/frontends/gnome/Makefile.am: added FormParagraph from xforms.
3573 * src/frontends/xforms/forms/makefile: added form_paragraph.fd.
3575 * src/frontends/xforms/Dialogs.C (Dialogs): added FormParagraph.
3577 * src/frontends/xforms/Makefile.am: added files for FormParagraph.
3579 * src/frontends/xforms/FormParagraph.C:
3580 * src/frontends/xforms/FormParagraph.h:
3581 * src/frontends/xforms/form_paragraph.C:
3582 * src/frontends/xforms/form_paragraph.h:
3583 * src/frontends/xforms/forms/form_paragraph.fd: new files for the new
3586 * src/lyxfunc.C (Dispatch): call the new layout paragraph.
3588 * src/tabular.C (OldFormatRead): forgot to delete the temporary
3589 Paragraph-Data after use.
3591 * src/insets/insettext.C (LocalDispatch): don't set the layout on
3592 non breakable paragraphs.
3594 2000-09-25 Garst R. Reese <reese@isn.net>
3596 * src/language.C (initL): added missing language_country codes.
3598 2000-09-25 Juergen Vigna <jug@sad.it>
3600 * src/insets/insettext.C (InsetText):
3601 (deleteLyXText): remove the not released LyXText structure!
3603 2000-09-24 Marko Vendelin <markov@ioc.ee>
3605 * src/frontends/gnome/mainapp.C
3606 * src/frontends/gnome/mainapp.h: added support for keyboard
3609 * src/frontends/gnome/FormCitation.C
3610 * src/frontends/gnome/FormCitation.h
3611 * src/frontends/gnome/Makefile.am
3612 * src/frontends/gnome/pixbutton.h: completed the rewrite of
3613 FormCitation to use "action area" in mainapp window
3615 * src/frontends/gnome/Menubar_pimpl.C
3616 * src/frontends/gnome/Menubar_pimpl.h: Gnome menu can handle
3619 2000-09-23 Dekel Tsur <dekel@math.tau.ac.il>
3621 * src/mathed/formula.C (MathFuncInset::Metrics): Use default
3622 width/descent/ascent values if name is empty.
3623 (mathed_string_height): Use std::max.
3625 2000-09-25 Allan Rae <rae@lyx.org>
3627 * src/frontends/xforms/forms/form_preferences.fd: resize to stop
3628 segfault. This will be completely redesigned soon.
3630 * sigc++: updated libsigc++. Fixes struct timespec bug.
3632 * development/tools/makeLyXsigc.sh: .cvsignore addition
3634 2000-09-23 Lars Gullik Bjønnes <larsbj@lyx.org>
3636 * several files: removed almost all traces of the old table
3639 * src/TableLayout.C: removed file
3641 2000-09-22 Juergen Vigna <jug@sad.it>
3643 * src/frontends/kde/Dialogs.C: added credits forms.
3645 * src/frontends/gnome/Makefile.am (libgnome_la_OBJADD): added forms.
3647 * src/frontends/gnome/Dialogs.C: added some forms.
3649 * src/spellchecker.C (init_spell_checker): set language in pspell code
3650 (RunSpellChecker): some modifications for setting language string.
3652 * src/language.[Ch]: added language_country code.
3654 2000-09-21 Angus Leeming <a.leeming@ic.ac.uk>
3656 * src/frontends/Dialogs.h: added new signal showError.
3657 Rearranged existing signals in some sort of alphabetical order.
3659 * src/frontends/xforms/Makefile.am: added new files, FormBase.[Ch],
3660 FormError.[Ch], form_error.[Ch]
3661 * src/frontends/xforms/forms/makefile: added new file form_error.fd
3662 * src/frontends/xforms/Dialogs.C: added new xforms dialog FormError.
3664 * src/frontends/xforms/FormBase.[Ch]: new base class for xforms
3665 dialogs. I think that this can be used as the base to all these
3668 * src/frontends/xforms/FormError.[Ch]
3669 * src/frontends/xforms/forms/form_error.fd: new files. Xforms
3670 implementation of InsetError dialog.
3672 * src/insets/inseterror.[Ch]: rendered GUI-independent.
3674 * src/frontends/kde/Dialogs.C: added new xforms dialog FormError.
3675 * src/frontends/kde/Makefile.am: ditto
3677 2000-09-21 Dekel Tsur <dekel@math.tau.ac.il>
3679 * src/mathed/math_cursor.[Ch]: Removed class members macroln and
3680 macrobf. This fixes a bug of invisible text.
3682 2000-09-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3684 * lib/doc/LaTeXConfig.lyx.in: updated.
3686 * src/language.C (initL): remove language "francais" and change a
3687 bit the names of the two other french variations.
3689 * src/support/lyxstring.C (lyxstring): do not apply strlen() on a
3690 string that may not be 0-terminated.
3692 2000-09-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3694 * src/Makefile.am (lyx_SOURCES): remove table.C and Table.h
3696 2000-09-20 Marko Vendelin <markov@ioc.ee>
3698 * src/frontends/gnome/FormCitation.C
3699 * src/frontends/gnome/FormIndex.C
3700 * src/frontends/gnome/FormToc.C
3701 * src/frontends/gnome/FormUrl.C: cleanup the loops, reordering
3702 the variable initialization to shut up the warnings
3704 2000-09-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3706 * src/table.[Ch]: deleted files
3708 * src/lyxfunc.C (Dispatch): Don't pass 0 as argument to Dispatch
3711 2000-09-18 Juergen Vigna <jug@sad.it>
3713 * src/insets/insettext.C (LocalDispatch): fixed Backspace/Delete
3714 problems with selection. Inserted new LFUN_PASTESELECTION.
3715 (InsetButtonPress): inserted handling of middle mouse-button paste.
3717 * src/spellchecker.C: changed word to word.c_str().
3719 2000-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
3721 * src/Makefile.am: Add sources to lyx_SOURCES so they will be
3722 included in the ``make dist'' tarball.
3724 2000-09-15 Juergen Vigna <jug@sad.it>
3726 * src/CutAndPaste.C (cutSelection): small fix return the right
3727 end position after cut inside one paragraph only.
3729 * src/insets/insettext.C (resizeLyXText): only reset the cursor if
3730 we are locked as otherwise we don't have a valid cursor position!
3732 * src/insets/figinset.C (draw): small bugfix but why is this needed???
3734 2000-09-19 Angus Leeming <a.leeming@ic.ac.uk>
3736 * src/frontends/kde/FormRef.C: added using directive.
3737 * src/frontends/kde/FormToc.C: ditto
3739 * src/frontends/kde/formtocdialog.h: changed endl to std::endl.
3741 * src/frontends/kde/FormRef.h: removed trailing comma from enums.
3743 2000-09-19 Marko Vendelin <markov@ioc.ee>
3745 * src/frontends/gnome/Menubar_pimpl.C
3746 * src/frontends/gnome/Menubar_pimpl.h: Gnome menus show now
3747 Toc, ViewFormats, UpdateFormats, and ExportFormats.
3749 * src/frontends/gnome/mainapp.C
3750 * src/frontends/gnome/mainapp.h: support for menu update used
3753 * src/frontends/gnome/mainapp.C
3754 * src/frontends/gnome/mainapp.h: support for "action" area in the
3755 main window. This area is used by small simple dialogs, such as
3758 * src/frontends/gnome/FormIndex.C
3759 * src/frontends/gnome/FormIndex.h
3760 * src/frontends/gnome/FormUrl.C
3761 * src/frontends/gnome/FormUrl.h: rewrite to use main window action
3764 * src/frontends/gnome/FormCitation.C
3765 * src/frontends/gnome/FormCitation.h: rewrite to use main window
3766 action area. Only "Insert new citation" is implemented.
3768 2000-09-19 Lars Gullik Bjønnes <larsbj@lyx.org>
3770 * src/buffer.C (Dispatch): fix call to Dispatch
3771 * src/insets/insetref.C (Edit): likewise
3772 * src/insets/insetparent.C (Edit): likewise
3773 * src/insets/insetinclude.C (include_cb): likewise
3774 * src/frontends/xforms/FormUrl.C (apply): likewise
3775 * src/frontends/xforms/FormToc.C (apply): likewise
3776 * src/frontends/xforms/FormRef.C (apply): likewise
3777 * src/frontends/xforms/FormIndex.C (apply): likewise
3778 * src/frontends/xforms/FormCitation.C (apply): likewise
3779 * src/lyxserver.C (callback): likewise
3780 * src/lyxfunc.C (processKeySym): likewise
3781 (Dispatch): likewise
3782 (Dispatch): likewise
3783 * src/lyx_cb.C (LayoutsCB): likewise
3785 * Makefile.am (sourcedoc): small change
3787 2000-09-18 Lars Gullik Bjønnes <larsbj@lyx.org>
3789 * src/main.C (main): Don't make an empty GUIRunTime object. all
3790 methods are static. constify a bit remove unneded using + headers.
3792 * src/tabular.C: some more const to local vars move some loop vars
3794 * src/spellchecker.C: added some c_str after some word for pspell
3796 * src/frontends/GUIRunTime.h: add new static method setDefaults
3797 * src/frontends/xforms/GUIRunTime.C (setDefaults):
3798 * src/frontends/kde/GUIRunTime.C (setDefaults):
3799 * src/frontends/gnome/GUIRunTime.C (setDefaults): new method
3801 * src/mathed/math_cursor.C (MacroModeClose): don't call SetName
3802 with strnew in arg, use correct emptystring when calling SetName.
3804 * several files: remove all commented code with relation to
3805 HAVE_SSTREAM beeing false. We now only support stringstream and
3808 2000-09-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3810 * src/lyxfunc.C: construct correctly the automatic new file
3813 * src/text2.C (IsStringInText): change type of variable i to shut
3816 * src/support/sstream.h: do not use namespaces if the compiler
3817 does not support them.
3819 2000-09-15 Marko Vendelin <markov@ioc.ee>
3820 * src/frontends/gnome/FormCitation.C
3821 * src/frontends/gnome/FormCitation.h
3822 * src/frontends/gnome/diainsertcitation_interface.c
3823 * src/frontends/gnome/dialogs/diainsertcitation.glade: adds
3824 regexp support to FormCitation [Gnome].
3826 2000-09-15 John Levon <moz@compsoc.man.ac.uk>
3829 * configure.in: remove unused KDE/GTKGUI define
3831 * src/frontends/kde/FormRef.C
3832 * src/frontends/kde/FormRef.h
3833 * src/frontends/kde/formrefdialog.C
3834 * src/frontends/kde/formrefdialog.h: double click will
3835 go to reference, now it is possible to change a cross-ref
3838 * src/frontends/kde/FormToc.C
3839 * src/frontends/kde/FormToc.h
3840 * src/frontends/kde/formtocdialog.C
3841 * src/frontends/kde/formtocdialog.h: add a depth
3844 * src/frontends/kde/Makefile.am: add QtLyXView.h
3847 2000-09-15 Angus Leeming <a.leeming@ic.ac.uk>
3849 * src/frontends/kde/FormCitation.h: added some using directives.
3851 * src/frontends/kde/FormToc.h: corrected definition of doTree.
3853 * src/frontends/kde/GUIRunTime.C (initApplication): use lyxerr not
3856 * src/mathed/math_defs.h: redefine SetAlign to use string rather
3859 2000-09-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3861 * src/buffer.C (pop_tag): revert for the second time a change by
3862 Lars, who seems to really hate having non-local loop variables :)
3864 * src/Lsstream.h: add "using" statements.
3866 * src/support/copy.C (copy): add a bunch of std:: qualifiers
3867 * src/buffer.C (writeFile): ditto
3869 2000-09-14 Lars Gullik Bjønnes <larsbj@lyx.org>
3871 * src/buffer.C (writeFile): try to fix the locale modified format
3872 number to always be as we want it.
3874 * src/WorkArea.C (work_area_handler): try to workaround the bugs
3875 in XForms 0.89. C-space is now working again.
3877 * src/Lsstream.h src/support/sstream.h: new files.
3879 * also commented out all cases where strstream were used.
3881 * src/Bullet.h (c_str): remove method.
3883 * remove all stuff that is irrelevant when NEW_MENUBAR is defined
3885 * a lot of files: get rid of "char const *" and "char *" is as
3886 many places as possible. We only want to use them in interaction
3887 with system of other libraries, not inside lyx.
3889 * a lot of files: return const object is not of pod type. This
3890 helps ensure that temporary objects is not modified. And fits well
3891 with "programming by contract".
3893 * configure.in: check for the locale header too
3895 * Makefile.am (sourcedoc): new tag for generation of doc++
3898 2000-09-14 Juergen Vigna <jug@sad.it>
3900 * src/frontends/xforms/FormDocument.C (ComboInputCB): fixed the
3901 callback to check which combo called it and do the right action.
3903 * src/combox.C (combo_cb): added combo * to the callbacks.
3904 (Hide): moved call of callback after Ungrab of the pointer.
3906 * src/intl.h: removed LCombo2 function.
3908 * src/intl.C (LCombo): added Combox * to call and removed LCombo2
3909 function as this can now be handled in one function.
3911 * src/combox.h: added Combox * to callback prototype.
3913 * src/frontends/xforms/Toolbar_pimpl.C:
3914 * src/lyx_cb.C (LayoutsCB): added Combox * to function call.
3916 2000-09-14 Garst Reese <reese@isn.net>
3918 * lib/tex/hollywood.cls changed length of parenthicals to 1.5in
3919 moved usepackage{xxx}'s to beginning of file. Changed left margin
3920 to 1.5in, right margin to 1in. Forced headrulewidth to 0, removed
3921 underlining from title. Thanks to John Culleton for useful suggestions.
3923 2000-09-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3925 * src/lyxlex_pimpl.C (setFile): change error message to debug
3928 2000-09-13 Juergen Vigna <jug@sad.it>
3930 * src/frontends/xforms/FormDocument.C: implemented choice_class
3931 as combox and give callback to combo_language so OK/Apply is activated
3934 * src/bufferlist.C (newFile): small fix so already named files
3935 (via an open call) are not requested to be named again on the
3938 2000-09-13 John Levon <moz@compsoc.man.ac.uk>
3940 * src/frontends/kde/Makefile.am
3941 * src/frontends/kde/FormRef.C
3942 * src/frontends/kde/FormRef.h
3943 * src/frontends/kde/formrefdialog.C
3944 * src/frontends/kde/formrefdialog.h: implement
3947 2000-09-13 John Levon <moz@compsoc.man.ac.uk>
3949 * src/frontends/kde/formtocdialog.C
3950 * src/frontends/kde/formtocdialog.h
3951 * src/frontends/kde/FormToc.C
3952 * src/frontends/kde/FormToc.h: change to make TOC hierarchical properly
3954 2000-09-11 John Levon <moz@compsoc.man.ac.uk>
3956 * src/frontends/kde/FormCitation.C: fix thinko
3957 where we didn't always display the reference text
3960 * src/frontends/kde/formurldialog.C
3961 * src/frontends/kde/formurldialog.h
3962 * src/frontends/kde/FormUrl.C
3963 * src/frontends/kde/FormUrl.h: minor cleanups
3965 * src/frontends/kde/QtLyXView: wrapper to avoid Qt namespace mangling
3967 * src/frontends/kde/Makefile.am
3968 * src/frontends/kde/FormToc.C
3969 * src/frontends/kde/FormToc.h
3970 * src/frontends/kde/FormCitation.C
3971 * src/frontends/kde/FormCitation.h
3972 * src/frontends/kde/FormIndex.C
3973 * src/frontends/kde/FormIndex.h
3974 * src/frontends/kde/formtocdialog.C
3975 * src/frontends/kde/formtocdialog.h
3976 * src/frontends/kde/formcitationdialog.C
3977 * src/frontends/kde/formcitationdialog.h
3978 * src/frontends/kde/formindexdialog.C
3979 * src/frontends/kde/formindexdialog.h: new Toc,Citation,Index dialogs
3981 2000-09-12 Juergen Vigna <jug@sad.it>
3983 * src/frontends/gnome/GUIRunTime.C (initApplication): make id + version
3986 2000-09-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3988 * src/frontends/xforms/GUIRunTime.C (initApplication): use lyxerr,
3991 2000-09-09 Dekel Tsur <dekel@math.tau.ac.il>
3993 * src/converter.C (Add, Convert): Added support for converter flags:
3994 needaux, resultdir, resultfile.
3995 (Convert): Added new parameter view_file.
3996 (dvips_options): Fixed letter paper option.
3998 * src/exporter.C (Export, BufferExtension): Added support for Docbook.
3999 (Export, GetExportableFormats, GetViewableFormats): Added support
4002 * src/lyx_main.C (LyX): Call to QuitLyX() to remove temporary
4004 (easyParse): Fixed to work with new export code.
4006 * src/support/filetools.C (DeleteAllFilesInDir) Fixed to delete
4009 * lyx-devel-export/lib/configure.m4: Changed flags of tth.
4011 * lib/bind/*.bind: Replaced
4012 buffer-view,buffer-view-ps,buffer-typeset,buffer-typeset-ps by
4013 buffer-view dvi,buffer-view ps,buffer-update dvi,buffer-update ps
4015 2000-09-11 Juergen Vigna <jug@sad.it>
4017 * src/lyx_gui.C (runTime): uses global guiruntime variable.
4019 * src/main.C (main): now GUII defines global guiruntime!
4021 * src/frontends/gnome/GUIRunTime.C (initApplication):
4022 * src/frontends/kde/GUIRunTime.C (initApplication):
4023 * src/frontends/xforms/GUIRunTime.C (initApplication):
4024 * src/frontends/GUIRunTime.h: added new function initApplication.
4026 * src/spellchecker.C (sc_accept_word): change to add_to_session.
4028 * src/vspace.C (nextToken): fixed error with number 0cm as unvalid.
4030 2000-09-08 Juergen Vigna <jug@sad.it>
4032 * src/lyx_gui.C (create_forms): don't display the "default" entry as
4033 we have already "Reset".
4035 * src/language.C (initL): inserted "default" language and made this
4036 THE default language (and not american!)
4038 * src/paragraph.C: inserted handling of "default" language!
4040 * src/lyxfont.C: ditto
4044 * src/paragraph.C: output the \\par only if we have a following
4045 paragraph otherwise it's not needed.
4047 2000-09-05 Juergen Vigna <jug@sad.it>
4049 * config/pspell.m4: added entry to lyx-flags
4051 * src/spellchecker.C: modified version from Kevin for using pspell
4053 2000-09-01 Marko Vendelin <markov@ioc.ee>
4054 * src/frontends/gnome/Makefile.am
4055 * src/frontends/gnome/FormCitation.C
4056 * src/frontends/gnome/FormCitation.h
4057 * src/frontends/gnome/diainsertcitation_callbacks.c
4058 * src/frontends/gnome/diainsertcitation_callbacks.h
4059 * src/frontends/gnome/diainsertcitation_interface.c
4060 * src/frontends/gnome/diainsertcitation_interface.h
4061 * src/frontends/gnome/dialogs/diainsertcitation.glade: Insert Citation
4062 dialog for Gnome frontend
4064 * src/main.C: Gnome libraries require keeping application name
4065 and its version as strings
4067 * src/frontends/gnome/mainapp.C: Change the name of the main window
4068 from GnomeLyX to PACKAGE
4070 2000-09-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4072 * src/frontends/Liason.C: add "using: declaration.
4074 2000-08-31 Dekel Tsur <dekel@math.tau.ac.il>
4076 * src/mathed/math_macro.C (Metrics): Set the size of the template
4078 * src/mathed/formulamacro.C (Latex): Fixed the returned value
4080 2000-09-04 Dekel Tsur <dekel@math.tau.ac.il>
4082 * src/converter.C (add_options): New function.
4083 (SetViewer): Change $$FName into '$$FName'.
4084 (View): Add options when running xdvi
4085 (Add): Change $$FName into '$$FName'. Same for $$BaseName/$$OutName.
4086 (Convert): The 3rd parameter is now the desired filename. Converts
4087 calls to lyx::rename if necessary.
4088 Add options when running dvips.
4089 (dvi_papersize,dvips_options): New methods.
4091 * src/exporter.C (Export): Use getLatexName() instead of fileName().
4093 * src/frontends/Liason.C (printBuffer): Removed duplicate code by
4094 using a call to Converter::dvips_options.
4095 Fixed to work with nex export code.
4097 * src/support/copy.C
4098 * src/support/rename.C: New files
4100 * src/support/syscall.h
4101 * src/support/syscall.C: Added Starttype SystemDontWait.
4103 * lib/ui/default.ui: Changed to work with new export code
4105 * lib/configure.m4: Changed to work with new export code
4107 * src/encoding.C: Changed latex name for iso8859_7 encoding.
4109 2000-09-04 Angus Leeming <a.leeming@ic.ac.uk> +
4111 * src/frontends/xforms/Menubar_pimpl.C: added two using directives
4112 so that code compiles with DEC cxx.
4114 * src/frontends/xforms/FormCitation.C (setSize): code re-writtenn
4115 to work correctly! Also now supports the additional elements
4118 2000-09-01 Allan Rae <rae@lyx.org>
4120 * src/frontends/ButtonPolicies.C: renamed all the references to
4121 PreferencesPolicy::{AllButtons,BOGUS} to be ButtonPolicy.
4123 * src/frontends/ButtonPolicies.h: rename AllButtons to ALL_BUTTONS
4124 since it's a const not a type.
4126 * src/frontends/xforms/ButtonController.h: cleanup before Lars does.
4128 2000-08-31 Juergen Vigna <jug@sad.it>
4130 * src/insets/figinset.C: Various changes to look if the filename has
4131 an extension and if not add it for inline previewing.
4133 2000-08-31 Lars Gullik Bjønnes <larsbj@lyx.org>
4135 * src/frontends/ButtonPolicies.h: add a Button AllButtons.
4136 make buttonStatus and isReadOnly be const methods. (also reflect
4137 this in derived classes.)
4139 * src/frontends/ButtonPolicies.C: remove sum_ and bogus_
4140 (nextState): change to be static inline, pass the StateMachine as
4142 (PreferencesPolicy): remove casts
4143 (OkCancelPolicy): remvoe casts
4144 (OkCancelReadOnlyPolicy): remove casts
4145 (NoRepeatedApplyReadOnlyPolicy): remove casts
4146 (OkApplyCancelReadOnlyPolicy): remove casts
4147 (OkApplyCancelPolicy): remove casts
4148 (NoRepeatedApplyPolicy): remove casts
4150 2000-08-31 Angus Leeming <a.leeming@ic.ac.uk>
4152 * src/converter.C: added some using directives
4154 * src/frontends/ButtonPolicies.C: changes to overcome
4155 "need lvalue" error with DEC c++
4157 * src/frontends/xforms/FormDocument.C (c-tor): use C callback
4158 to WMHideCB for DEC c++
4160 * src/frontends/xforms/Menubar_pimpl.C: added using directive
4162 * src/frontends/xforms/forms/form_document.C.patch: use C callback
4163 to BulletBMTableCB for DEC c++
4165 2000-08-31 Allan Rae <rae@lyx.org>
4167 * src/lyx_gui.C (create_forms): build combo_language2 which is part of
4168 character dialog separately from old document dialogs combo_language.
4171 2000-08-30 Dekel Tsur <dekel@math.tau.ac.il>
4173 * src/commandtags.h: Added LFUN_GOTO_PARAGRAPH.
4174 Removed LFUN_REF_CREATE.
4176 * src/MenuBackend.C: Added new tags: toc and references
4178 * src/frontends/xforms/Menubar_pimpl.C: Removed the use of StrPool
4179 (add_lastfiles, add_documents, add_formats): Removed the unused smn
4181 (add_toc, add_references): New methods.
4182 (create_submenu): Handle correctly the case when there is a
4183 seperator after optional menu items.
4185 * src/lyxfunc.C (getStatus): Handle LFUN_REF_BACK.
4186 (dispatch): Combined the code for LFUN_REF_CREATE and LFUN_REF_INSERT.
4187 (dispatch): New code for LFUN_GOTO_PARAGRAPH.
4189 * src/frontends/xforms/FormToc.C (apply): Use Dispatch.
4191 2000-08-30 Dekel Tsur <dekel@math.tau.ac.il>
4193 * src/converter.[Ch]: New file for converting between different
4196 * src/export.[Ch]: New file for exporting a LyX file to different
4199 * src/lyx_cb.C: Remove many functions when NEW_EXPORT is defined:
4200 MenuRunLaTeX, MakeLaTeXOutput, RunScript, CreatePostscript,
4201 PreviewPostscript, PreviewDVI, AskOverwrite, MenuMakeLaTeX,
4202 MenuMakeLinuxDoc, MenuMakeDocBook, MenuMakeHTML,
4203 MenuMakeHTML_LinuxDoc, MenuMakeHTML_DocBook, RunLinuxDoc,
4204 RunDocBook, MenuExport.
4206 * src/lyxfunc.C (Dispatch): Use the Exporter::Export and
4207 Exporter::Preview methods if NEW_EXPORT is defined.
4209 * src/buffer.C (Dispatch): Use Exporter::Export.
4211 * src/lyxrc.C: Added new tags: \converter and \viewer.
4214 * src/LyXAction.C: Define new lyx-function: buffer-update.
4215 Remove obsolete buffer-typeset,buffer-typeset-ps & buffer-view-ps
4216 when NEW_EXPORT is defined.
4218 * src/MenuBackend.C: Added new tags: updateformats and viewformats.
4220 * src/frontends/xforms/Menubar_pimpl.C (add_formats) New method.
4222 * lib/ui/default.ui: Added submenus "view" and "update" to the
4225 * src/filetools.C (GetExtension): New function.
4227 * src/LaTeX.C (LaTeX): Add "-pdf" to depfile if pdflatex is used.
4229 2000-08-29 Allan Rae <rae@lyx.org>
4231 * lib/bind/xemacs.bind: update a binding due to Juergen's recent work
4233 * src/frontends/xforms/FormDocument.C (checkReadOnly): new function
4234 (EnableDocumentLayout): removed
4235 (DisableDocumentLayout): removed
4236 (build): make use of ButtonController's read-only handling to
4237 de/activate various objects. Replaces both of the above functions.
4239 * src/frontends/xforms/ButtonController.h (readWrite): was read_write
4240 (readOnly): was read_only
4241 (refresh): fixed dumb mistakes with read_only_ handling
4243 * src/frontends/xforms/forms/form_document.fd:
4244 * src/frontends/xforms/forms/form_tabular.fd: Use FL_FLAT_BOX for the
4245 tabbed dialogs so the tabs look more like tabs and so its easier to
4246 work out which is the current tab.
4248 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): fix
4249 segfault with form_table
4251 * src/frontends/ButtonPolicies.C: All policies now support UNDO_ALL.
4253 2000-08-28 Juergen Vigna <jug@sad.it>
4255 * acconfig.h: added USE_PSPELL.
4257 * src/config.h.in: added USE_PSPELL.
4259 * autogen.sh: added pspell.m4
4261 * config/pspell.m4: new file.
4263 * src/spellchecker.C: implemented support for pspell libary.
4265 2000-08-25 Juergen Vigna <jug@sad.it>
4267 * src/LyXAction.C (init): renamed LFUN_TABLE to
4268 LFUN_DIALOG_TABULAR_INSERT and fixed all it's occurences.
4270 * src/lyxfunc.C (getStatus): fix for disabled Edit->Table entries.
4272 * src/lyxscreen.h: add force_clear variable and fuction to force
4273 a clear area when redrawing in LyXText.
4275 * src/text.C (GetVisibleRow): look if the screen forces a redraw.
4277 2000-08-25 Lars Gullik Bjønnes <larsbj@lyx.org>
4279 * some whitespace and comment changes.
4281 * src/lyx_gui.C (LyXGUI): use C++ style casts instead of C ones.
4283 * src/buffer.C: up te LYX_FORMAT to 2.17
4285 2000-08-23 Juergen Vigna <jug@sad.it>
4287 * src/BufferView_pimpl.C (tripleClick): disable this when in a
4290 * src/insets/insettabular.C (pasteSelection): delete the insets
4291 LyXText as it is not valid anymore.
4292 (copySelection): new function.
4293 (pasteSelection): new function.
4294 (cutSelection): new function.
4295 (LocalDispatch): implemented cut/copy/paste of cell selections.
4297 * src/insets/insettext.C (resizeLyXText): don't need resize if I still
4298 don't have a LyXText.
4300 * src/LyXAction.C (init): a NEW_TABULAR define too much.
4302 * src/lyx_gui_misc.C (CloseAllBufferRelatedDialogs): another missing
4305 2000-08-22 Juergen Vigna <jug@sad.it>
4307 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs):
4308 ifdef form_table out if NEW_TABULAR.
4310 2000-08-21 Juergen Vigna <jug@sad.it>
4312 * src/insets/insettabular.C (TabularFeatures): BoxType is enum now.
4313 (draw): fixed draw position so that the cursor is positioned in the
4315 (InsetMotionNotify): hide/show cursor so the position is updated.
4316 (GENERAL): fixed cursor_pos to show only 0/1 (begin/end of cell),
4317 using cellstart() function where it should be used.
4319 * src/insets/insettext.C (draw): ditto.
4321 * src/tabular.C: fixed initialization of some missing variables and
4322 made BoxType into an enum.
4324 2000-08-22 Marko Vendelin <markov@ioc.ee>
4325 * src/frontends/gnome/Menubar_pimpl.C: Mathces LyX action with Gnome
4326 stock menu item using action numerical value, not its string
4330 2000-08-22 Lars Gullik Bjønnes <larsbj@lyx.org>
4332 * src/frontends/xforms/Makefile.am (libxforms_la_SOURCES): add
4333 GUIRunTime.C remove GUIRunTime_pimpl.[Ch]
4335 * src/frontends/xforms/GUIRunTime_pimpl.[Ch]: removed file
4337 * src/frontends/xforms/GUIRunTime.C: new file
4339 * src/frontends/kde/Makefile.am (libkde_la_SOURCES): add
4340 GUIRunTime.C and remove GUIRunTime_pimpl.[Ch]
4342 * src/frontends/kde/GUIRunTime_pimpl.[Ch]: removed file
4344 * src/frontends/kde/GUIRunTime.C: new file
4346 * src/frontends/gnome/Makefile.am (libgnome_la_SOURCES): add
4347 GUIRunTime.C and remove GUIRunTime_pimpl.[Ch]
4349 * src/frontends/gnome/GUIRunTime_pimpl.[Ch]: removed file
4351 * src/frontends/gnome/GUIRunTime.C: new file
4353 * src/frontends/Makefile.am (libfrontends_la_SOURCES): removed
4356 * src/frontends/GUIRunTime.h: removed constructor and destructor,
4357 small change to documetentation.
4359 * src/frontends/GUIRunTime.C: removed file
4361 * src/text2.C (MeltFootnoteEnvironment): add some NEW_TABULAR
4363 * src/lyxparagraph.h: enable NEW_TABULAR as default
4365 * src/lyxfunc.C (processKeySym): remove some commented code
4367 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): add
4368 NEW_TABULAR around the fd_form_table_options.
4370 * src/lyx_gui.C (runTime): call the static member function as
4371 GUIRunTime::runTime().
4373 2000-08-21 Allan Rae <rae@lyx.org>
4375 * src/frontends/xforms/FormDocument.h: D'oh. Forgot to change the
4378 2000-08-21 Dekel Tsur <dekel@math.tau.ac.il>
4380 * src/Spacing.C (writeEnvirBegin): Small fix when sstream not present
4382 2000-08-21 Allan Rae <rae@lyx.org>
4384 * src/frontends/xforms/ButtonController.h (setOK): renamed from setOk to
4385 keep Garst happy ;-)
4386 * src/frontends/xforms/FormPreferences.C (build): use setOK
4387 * src/frontends/xforms/FormDocument.C (build): use setOK
4388 (FormDocument): use the appropriate policy.
4390 2000-08-21 Allan Rae <rae@lyx.org>
4392 * src/frontends/xforms/ButtonController.h (class ButtonController): Allow
4393 automatic [de]activation of arbitrary objects when in a read-only state.
4395 * src/frontends/ButtonPolicies.h: More documentation
4396 (isReadOnly): added to support the above.
4398 * src/frontends/xforms/forms/form_preferences.fd: Changed Ok -> Save
4400 2000-08-18 Juergen Vigna <jug@sad.it>
4402 * src/insets/insettabular.C (getStatus): changed to return func_status.
4404 * src/lyxfunc.C (getStatus): fixed TabularFeatures menu to always
4405 display toggle menu entries if they are.
4407 * src/lyx_cb.C: #ifdef'ed out layout stuff which is in the
4408 new document layout now.
4410 * src/lyxfunc.C: ditto
4412 * src/lyx_gui_misc.C: ditto
4414 * src/lyx_gui.C: ditto
4416 * lib/ui/default.ui: removed paper and quotes layout as they are now
4417 all in the document layout tabbed folder.
4419 * src/frontends/xforms/forms/form_document.fd: added Restore
4420 button and callbacks for all inputs for Allan's ButtonPolicy.
4422 * src/frontends/xforms/FormDocument.C (ChoiceClassCB): added.
4423 (CheckChoiceClass): added missing params setting on class change.
4424 (UpdateLayoutDocument): added for updating the layout on params.
4425 (build): forgot to RETURN_ALWAYS input_doc_spacing.
4426 (FormDocument): Implemented Allan's ButtonPolicy with the
4429 2000-08-17 Allan Rae <rae@lyx.org>
4431 * src/frontends/xforms/Dialogs.C (Dialogs): Make a temporary connection
4432 so we can at least see the credits again.
4434 * src/frontends/xforms/FormPreferences.C: Used the appropriate button
4435 controller calls for the appropriate callbacks. Note that since Ok
4436 calls apply followed by cancel, and apply isn't a valid input for the
4437 APPLIED state, the bc_ calls have to be made in the static callback not
4438 within each of the real callbacks.
4440 * src/frontends/xforms/ButtonController.h (Ok): renamed from Okay()
4441 (setOk): renamed from setOkay()
4443 2000-08-17 Juergen Vigna <jug@sad.it>
4445 * src/frontends/gnome/Menubar_pimpl.C (openByName): put this function
4446 in the implementation part.
4447 (composeUIInfo): don't show optional menu-items.
4449 * src/lyxfunc.C (getStatus): use insets LyXText if the_locking_inset.
4451 * src/insets/insettext.C (UpdateLocal): call to LyXView::showState()
4453 * src/bufferview_funcs.C (CurrentState): fixed to show also the
4454 text-state when in a text-inset.
4456 * src/frontends/kde/GUIRunTime_pimpl.C: include xforms for now.
4458 2000-08-17 Marko Vendelin <markov@ioc.ee>
4459 * src/frontends/gnome/FormIndex.C
4460 * src/frontends/gnome/FormIndex.h
4461 * src/frontends/gnome/FormToc.C
4462 * src/frontends/gnome/FormToc.h
4463 * src/frontends/gnome/dialogs
4464 * src/frontends/gnome/diatoc_callbacks.c
4465 * src/frontends/gnome/diatoc_callbacks.h
4466 * src/frontends/gnome/diainsertindex_callbacks.h
4467 * src/frontends/gnome/diainsertindex_callbacks.c
4468 * src/frontends/gnome/diainsertindex_interface.c
4469 * src/frontends/gnome/diainsertindex_interface.h
4470 * src/frontends/gnome/diatoc_interface.h
4471 * src/frontends/gnome/diatoc_interface.c
4472 * src/frontends/gnome/Makefile.am: Table of Contents and
4473 Insert Index dialogs implementation for Gnome frontend
4475 * src/frontends/gnome/GUIRunTime_pimpl.C: fix some small bugs
4477 * src/frontends/gnome/Menubar_pimpl.C: remove historical comments
4479 * src/frontends/gnome/diainserturl_interface.c: make the dialog
4482 2000-08-17 Lars Gullik Bjønnes <larsbj@lyx.org>
4484 * src/frontends/xforms/GUIRunTime_pimpl.C: constructor and
4485 destructor. Don't definde if you don't need it
4486 (processEvents): made static, non-blocking events processing for
4488 (runTime): static method. event loop for xforms
4489 * similar as above for kde and gnome.
4491 * src/frontends/GUIRunTime.C (GUIRunTime): new Pimpl() is wrong
4492 new Pimpl is correct
4493 (runTime): new method calss the real frontends runtime func.
4495 * src/lyx_gui.C (runTime): change to use the GUIRunTime::runTime
4497 2000-08-16 Lars Gullik Bjønnes <larsbj@lyx.org>
4499 * src/lyx_gui.C (create_forms): fix the "No change" gettext missing
4501 2000-08-16 Juergen Vigna <jug@sad.it>
4503 * src/lyx_gui.C (runTime): added GUII RunTime support.
4505 * src/frontends/Makefile.am:
4506 * src/frontends/GUIRunTime.[Ch]:
4507 * src/frontends/xforms/GUIRunTime_pimpl.[Ch]:
4508 * src/frontends/kde/GUIRunTime_pimpl.[Ch]:
4509 * src/frontends/gnome/GUIRunTime_pimpl.[Ch]: added GUII runtime support
4511 * src/LyXAction.C (init): added dummy LFUN_INSERT_URL.
4513 * src/frontends/Makefile.am (INCLUDES): don't set the FRONTENDS include
4514 as this is already set in ${FRONTEND_INCLUDE} if needed.
4516 * configure.in (CPPFLAGS): setting the include dir for the frontend
4517 directory and don't set FRONTEND=xforms for now as this is executed
4520 2000-08-16 John Levon (moz@compsoc.man.ac.uk)
4522 * src/frontends/kde/Makefile.am:
4523 * src/frontends/kde/FormUrl.C:
4524 * src/frontends/kde/FormUrl.h:
4525 * src/frontends/kde/formurldialog.h:
4526 * src/frontends/kde/formurldialog.C: Add KDE URL dialog
4528 2000-08-15 Kayvan A. Sylvan <kayvan@sylvan.com>
4530 * src/frontend/Makefile.am: Add gnome and kde to dist tar file.
4532 2000-08-16 Lars Gullik Bjønnes <larsbj@lyx.org>
4534 * src/BufferView_pimpl.C (workAreaKeyPress): enable the
4537 2000-08-15 Lars Gullik Bjønnes <larsbj@lyx.org>
4539 * src/WorkArea.C (work_area_handler): more work to get te
4540 FL_KEYBOARD to work with xforms 0.88 too, please test.
4542 * src/BufferView_pimpl.C (workAreaKeyPress): add XForms 0.88 guard.
4544 2000-08-15 Dekel Tsur <dekel@math.tau.ac.il>
4546 * src/frontends/ButtonPolicies.C: make gcc happy when compiling with
4549 2000-08-14 Lars Gullik Bjønnes <larsbj@lyx.org>
4551 * src/Timeout.h: remove Qt::emit hack.
4553 * several files: changes to allo doc++ compilation
4555 * src/lyxfunc.C (processKeySym): new method
4556 (processKeyEvent): comment out if FL_REVISION < 89
4558 * src/WorkArea.C: change some debugging levels.
4559 (WorkArea): set wantkey to FL_KEY_ALL
4560 (work_area_handler): enable the FL_KEYBOARD clause, this enables
4561 clearer code and the use of compose with XForms 0.89. Change to
4562 use signals instead of calling methods in bufferview directly.
4564 * src/Painter.C: change some debugging levels.
4566 * src/LyXView.C: don't setup of use the KeyPressMask_raw_callback
4569 * src/BufferView_pimpl.C (Pimpl): Connect to the WorkArea signals.
4570 (workAreaKeyPress): new method
4572 2000-08-14 Juergen Vigna <jug@sad.it>
4574 * src/frontends/kde/Dialogs.C (Dialogs): added missing dialogs.
4576 * config/kde.m4: addes some features
4578 * src/frontends/kde/Makefile.am (libkde_la_OBJADD): modified to
4579 include missing xforms dialogs.
4581 * src/Timeout.h: a hack to be able to compile with qt/kde.
4583 * sigc++/.cvsignore: added acinclude.m4
4585 * lib/.cvsignore: added listerros
4587 * src/frontends/Makefile.am: modified for now to ALWAYS compile the
4588 xforms tree as objects are needed for other frontends.
4590 * src/frontends/gnome/Makefile.am (libgnome_la_OBJADD): added for
4591 linking with not yet implemented xforms objects.
4593 * src/frontends/gnome/Dialogs.C (Dialogs): added FormDocument.
4595 2000-08-14 Baruch Even <baruch.even@writeme.com>
4597 * src/frontends/xforms/FormGraphics.h:
4598 * src/frontends/xforms/FormGraphics.C:
4599 * src/frontends/xforms/RadioButtonGroup.h:
4600 * src/frontends/xforms/RadioButtonGroup.C:
4601 * src/insets/insetgraphics.h:
4602 * src/insets/insetgraphics.C:
4603 * src/insets/insetgraphicsParams.h:
4604 * src/insets/insetgraphicsParams.C: Changed indentation to use tabs
4605 instead of spaces, and various other indentation issues to make the
4606 sources more consistent.
4608 2000-08-14 Marko Vendelin <markov@ioc.ee>
4610 * src/frontends/gnome/dialogs/diaprint.glade
4611 * src/frontends/gnome/FormPrint.C
4612 * src/frontends/gnome/FormPrint.h
4613 * src/frontends/gnome/diaprint_callbacks.c
4614 * src/frontends/gnome/diaprint_callbacks.h
4615 * src/frontends/gnome/diaprint_interface.c
4616 * src/frontends/gnome/diaprint_interface.h: Print dialog Gnome
4619 * src/frontends/gnome/dialogs/diainserturl.glade
4620 * src/frontends/gnome/FormUrl.C
4621 * src/frontends/gnome/FormUrl.h
4622 * src/frontends/gnome/diainserturl_callbacks.c
4623 * src/frontends/gnome/diainserturl_callbacks.h
4624 * src/frontends/gnome/diainserturl_interface.c
4625 * src/frontends/gnome/diainserturl_interface.h: Insert Url dialog
4626 Gnome implementation
4628 * src/frontends/gnome/Dialogs.C
4629 * src/frontends/gnome/Makefile.am: added Print, Insert Url and
4630 all other dialogs. Copy all unimplemented dialogs from Xforms
4633 * src/frontends/gnome/support.c
4634 * src/frontends/gnome/support.h: support files generated by Glade
4638 * config/gnome.m4: Gnome configuration scripts
4640 * config/lyxinclude.m4: cleanup: frontend renamed from gtk to gnome in
4641 configure --help message
4643 * src/lyx_gui.C: Gnome/Gtk releases control in LyXGUI::runTime()
4644 only if there are no events pendling in Gnome/Gtk. This enhances
4645 the performance of menus.
4648 2000-08-14 Allan Rae <rae@lyx.org>
4650 * lib/Makefile.am: listerrors cleaning
4652 * lib/listerrors: removed -- generated file
4653 * acinclude.m4: ditto
4654 * sigc++/acinclude.m4: ditto
4656 * src/frontends/xforms/forms/form_citation.fd:
4657 * src/frontends/xforms/FormCitation.C (setSize): Made the form a more
4660 * src/frontends/xforms/forms/makefile: I renamed the `install` target
4661 `updatesrc` and now we have a `test` target that does what `updatesrc`
4662 used to do. I didn't like having an install target that wasn't related
4665 * src/frontends/xforms/Form*.[hC]: Removed the free() member functions
4666 on all except FormGraphics. This may yet happen. Followed by a major
4667 cleanup including using FL_TRANSIENT for most of the dialogs. More
4668 changes to come when the ButtonController below is introduced.
4670 * src/frontends/xforms/ButtonController.h: New file for managing up to
4671 four buttons on a dialog according to an externally defined policy.
4672 * src/frontends/xforms/Makefile.am: added above
4674 * src/frontends/ButtonPolicies.[hC]: New files full of policies for Ok,
4675 Apply and Cancel/Close buttons and everything in between and beyond.
4676 * src/frontends/Makefile.am: added above.
4678 * src/frontends/xforms/forms/form_preferences.fd:
4679 * src/frontends/xforms/FormPreferences.[hC]: Uses the ButtonController
4680 and removed variable 'status' as a result. Fixed the set_minsize thing.
4681 Use the new screen-font-update after checking screen fonts were changed
4682 Added a "Restore" button to restore the original lyxrc values while
4683 editing. This restores everything not just the last input changed.
4684 That's still a tricky one. As is the "LyX: this shouldn't happen..."
4686 * src/LyXAction.C: screen-font-update added for updating buffers after
4687 screen font settings have been changed.
4688 * src/commandtags.h: ditto
4689 * src/lyxfunc.C: ditto
4691 * forms/lyx.fd: removed screen fonts dialog.
4692 * src/lyx_gui.C: ditto
4693 * src/menus.[Ch]: ditto
4694 * src/lyx.[Ch]: ditto
4695 * src/lyx_cb.C: ditto + code from here moved to make
4696 screen-font-update. And people wonder why progress on GUII is
4697 slow. Look at how scattered this stuff was! It takes forever
4700 * forms/fdfix.sh: Fixup the spacing after commas.
4701 * forms/makefile: Remove date from generated files. Fewer clashes now.
4702 * forms/bullet_forms.C.patch: included someones handwritten changes
4704 * src/lyxrc.[Ch]: Added a commented out system_lyxrc. Will use it RSN
4705 once I've discovered why LyXRC was made noncopyable.
4706 * src/lyx_main.C: ditto
4708 2000-08-14 Angus Leeming <a.leeming@ic.ac.uk>
4710 * src/frontends/xforms/forms/fdfix.sh:
4711 * src/frontends/xforms/forms/fdfixh.sed:
4712 * src/frontends/xforms/forms/fdfixc.sed: New file from Angus
4713 * src/frontends/xforms/Form*.[hC]:
4714 * src/frontends/xforms/form_*.[hC]: Massive rewrite of the generation
4715 scripts to rename all the "FL_OBJECT * form_xxxx" to "form" and to
4716 provide a destructor for the struct FD_form_xxxx. Another version of
4717 the set_[max|min]size workaround and a few other cleanups. Actually,
4718 Angus' patch from 20000809.
4720 2000-08-13 Baruch Even <baruch.even@writeme.com>
4722 * src/insets/insetgraphics.C (Clone): Added several fields that needed
4725 2000-08-11 Juergen Vigna <jug@sad.it>
4727 * src/insets/insetgraphics.C (InsetGraphics): changing init
4728 order because of warnings.
4730 * src/frontends/xforms/forms/makefile: adding patching .C with
4733 * src/frontends/xforms/forms/fdfix.sh: changing patching file .c
4734 from .C.patch to .c.patch
4736 * src/frontends/xforms/FormCommand.C (FormCommand): changing init
4737 order because of warning.
4739 * src/frontends/xforms/Dialogs.C (Dialogs): added FormDialog
4741 * src/frontends/Liason.C (setMinibuffer): new helper function
4743 * src/frontends/Dialogs.h (class Dialogs): inserting showLayoutDocument
4745 * src/lyxfunc.C (Dispatch): calling new Document-Layout
4747 * lib/ui/default.ui: commented out PaperLayout entry
4749 * src/frontends/xforms/form_document.[Ch]: new added files
4751 * src/frontends/xforms/FormDocument.[Ch]: ditto
4753 * src/frontends/xforms/forms/form_document.fd: ditto
4755 * src/frontends/xforms/forms/form_document.C.patch: ditto
4757 2000-08-10 Juergen Vigna <jug@sad.it>
4759 * src/insets/insetgraphics.C (draw): fixed access to 0 cacheHandle.
4760 (InsetGraphics): initialized cacheHandle to 0.
4761 (draw): changed call to updateInset to status=CHANGE_IN_DRAW.
4763 2000-08-10 Baruch Even <baruch.even@writeme.com>
4765 * src/graphics/GraphicsCache.h:
4766 * src/graphics/GraphicsCache.C (addFile, removeFile): Changed to work
4767 correctly as a cache.
4769 * src/graphics/GraphicsCacheItem.h:
4770 * src/graphics/GraphicsCacheItem.C: Changed to the pimpl idiom to allow
4773 * src/graphics/GraphicsCacheItem_pimpl.h:
4774 * src/graphics/GraphicsCacheItem_pimpl.C: The implementation of the
4777 * src/insets/insetgraphics.h:
4778 * src/insets/insetgraphics.C: Changed from using a signal notification
4779 to polling when image is not loaded.
4781 2000-08-10 Allan Rae <rae@lyx.org>
4783 * development/tools/makeLyXsigc.sh: Updated to allow Signal3. Note
4784 that there are two functions that have to been taken out of line by
4785 hand and aren't taken care of in the script. (Just a reminder note)
4787 * sigc++/macros/*.h.m4: Updated as above.
4789 2000-08-09 Juergen Vigna <jug@sad.it>
4791 * src/insets/insettext.C (draw): small fix for clearing rectangle.
4793 * src/insets/insettabular.C: make drawing of single cell smarter.
4795 2000-08-09 Marko Vendelin <markov@ioc.ee>
4796 * src/frontends/gnome/Menubar_pimpl.C
4797 * src/frontends/gnome/Menubar_pimpl.h: Gnome frontend Menubar
4798 implementation: new files
4800 * src/frontends/gnome/mainapp.C
4801 * src/frontends/gnome/mainapp.h: Gnome main window (temporary
4804 * src/main.C: create Gnome main window
4806 * src/frontends/xforms/Menubar_pimpl.h
4807 * src/frontends/Menubar.C
4808 * src/frontends/Menubar.h: added method Menubar::update that calls
4809 Menubar_pimpl::update and xforms/Menubar_pimpl::update (empty one)
4811 * src/LyXView.C: calls Menubar::update to update the state
4814 * src/frontends/gnome/Makefile.am: added new files
4816 * src/frontends/Makefile.am: added frontend compiler options
4818 2000-08-08 Juergen Vigna <jug@sad.it>
4820 * src/lyx_cb.C (AutoSave): autosave for unnamed files enabled!
4822 * src/bufferlist.C (close):
4823 * src/bufferlist.C (QwriteAll): remove Autosave-files for Unnamed()
4824 documents if exiting without saving.
4826 * src/buffer.C (save): use removeAutosaveFile()
4828 * src/support/filetools.C (removeAutosaveFile): new function.
4830 * src/lyx_cb.C (MenuWrite): returns a bool now.
4831 (MenuWriteAs): check if file could really be saved and revert to the
4833 (MenuWriteAs): removing old autosavefile if existant.
4835 * src/frontends/xforms/FormRef.h: puting FD_form_ref declaration
4836 before Goto toggle declaration, because of compiler warning.
4838 * src/frontends/xforms/FormRef.C: forgot include of <algorithm>
4840 * src/lyxfunc.C (MenuNew): small fix.
4842 * src/lyxrc.C (output): added RC_NEW_ASK_FILENAME tag.
4844 * src/bufferlist.C (newFile):
4845 * src/lyxfunc.C (MenuNew): use the new_ask_filename tag from lyxrc.
4847 * src/lyxrc.C: added new_ask_filename tag
4849 2000-08-07 Angus Leeming <a.leeming@ic.ac.uk>
4851 * src/lyx.fd: removed code pertaining to form_ref
4852 * src/lyx.[Ch]: ditto
4853 * src/lyx_cb.C: ditto
4854 * src/lyx_gui.C: ditto
4855 * src/lyx_gui_misc.C: ditto
4857 * src/BufferView_pimpl.C (restorePosition): update buffer only
4860 * src/commandtags.h (LFUN_REFTOGGLE): removed
4861 (LFUN_INSERT_REF): renamed LFUN_REF_INSERT
4862 (LFUN_REFGOTO): renamed LFUN_REF_GOTO
4863 (LFUN_REFBACK): renamed LFUN_REF_BACK
4865 * src/LyXAction.C: removed code pertaining to LFUN_REFTOGGLE
4866 * src/menus.C: ditto
4867 * src/lyxfunc.C (Dispatch): ditto.
4868 InsertRef dialog is now GUI-independent.
4870 * src/texrow.C: added using std::endl;
4872 * src/insets/insetref.[Ch]: strip out large amounts of code.
4873 The inset is now a container and this functionality is now
4874 managed by a new FormRef dialog
4876 * src/frontends/Dialogs.h (showRef, createRef): new signals
4878 * src/frontends/xforms/FormIndex.[Ch],
4879 src/frontends/xforms/FormUrl.[Ch]: workaround an xforms bug
4880 when setting dialog's min/max size
4881 * src/frontends/xforms/FormIndex.[Ch]: ditto
4883 * src/frontends/xforms/FormRef.[Ch],
4884 src/frontends/xforms/forms/form_ref.fd: new xforms
4885 implementation of an InsetRef dialog
4887 * src/graphics/GraphicsCache.[Ch]: small changes to compile with
4890 * src/graphics/XPM_Renderer.C (isImageFormatOK):
4891 ios::nocreate is not part of the standard. Removed.
4893 2000-08-07 Baruch Even <baruch.even@writeme.com>
4895 * src/graphics/Renderer.h:
4896 * src/graphics/Renderer.C: Added base class for rendering of different
4897 image formats into Pixmaps.
4899 * src/graphics/XPM_Renderer.h:
4900 * src/graphics/XPM_Renderer.C: Taken from GraphicsCacheItem and placed
4901 in a different class.
4903 * src/graphics/GraphicsCacheItem.C: factored out the rendering in order to
4904 easily add support for other formats.
4906 * src/insets/figinset.C: plugged a leak of an X resource.
4908 2000-08-07 Lars Gullik Bjønnes <larsbj@lyx.org>
4910 * src/CutAndPaste.[Ch]: make all metods static.
4912 * development/Code_rules/Rules: more work, added section on
4913 Exceptions, and a References section.
4915 * a lot of header files: work to make doc++ able to generate the
4916 source documentation, some workarounds of doc++ problems. Doc++ is
4917 now able to generate the documentation.
4919 2000-08-07 Juergen Vigna <jug@sad.it>
4921 * src/insets/insettabular.C (recomputeTextInsets): removed function
4923 * src/tabular.C (SetWidthOfMulticolCell):
4925 (calculate_width_of_column_NMC): fixed return value so that it really
4926 only returns true if the column-width has changed (there where
4927 problems with muliticolumn-cells in this column).
4929 2000-08-04 Juergen Vigna <jug@sad.it>
4931 * src/BufferView_pimpl.C (checkInsetHit): changed so that it looks
4932 also on the scrollstatus of the inset.
4933 (workAreaMotionNotify): ditto.
4935 * src/texrow.C (getIdFromRow): fixed compile problem on egcs-1.1.2.
4937 2000-08-01 Juergen Vigna <jug@sad.it>
4939 * src/insets/insettabular.C (resetPos): scroll tabular automatically.
4941 * src/commandtags.h:
4942 * src/LyXAction.C (init):
4943 * src/insets/inset.C (LocalDispatch): added support for
4946 * src/insets/inset.C (scroll): new functions.
4948 * src/insets/insettext.C (removeNewlines): new function.
4949 (SetAutoBreakRows): removes forced newlines in the text of the
4950 paragraph if autoBreakRows is set to false.
4952 * src/tabular.C (Latex): generates a parbox around the cell contents
4955 * src/frontends/xforms/FormTabular.C (local_update): removed
4956 the radio_useparbox button.
4958 * src/tabular.C (UseParbox): new function
4960 2000-08-06 Baruch Even <baruch.even@writeme.com>
4962 * src/graphics/GraphicsCache.h:
4963 * src/graphics/GraphicsCache.C:
4964 * src/graphics/GraphicsCacheItem.h:
4965 * src/graphics/GraphicsCacheItem.C: Made them to actually do something
4968 * src/insets/insetgraphics.h:
4969 * src/insets/insetgraphics.C: Added the use of the GraphicsCache
4970 and the drawing of the inline image.
4972 * src/buffer.C: Fixed a bug where a loaded InsetGraphics would be
4973 loaded into the wrong position.
4975 * src/lyxfunc.C: When adding an InsetGraphics the edit dialog is now
4978 2000-08-05 Lars Gullik Bjønnes <larsbj@lyx.org>
4980 * src/support/translator.h: move all typedefs to public section
4982 * src/support/filetools.C (MakeLatexName): return string const
4984 (TmpFileName): ditto
4985 (FileOpenSearch): ditto
4987 (LibFileSearch): ditto
4988 (i18nLibFileSearch): ditto
4991 (CreateTmpDir): ditto
4992 (CreateBufferTmpDir): ditto
4993 (CreateLyXTmpDir): ditto
4996 (MakeAbsPath): ditto
4998 (OnlyFilename): ditto
5000 (NormalizePath): ditto
5001 (CleanupPath): ditto
5002 (GetFileContents): ditto
5003 (ReplaceEnvironmentPath): ditto
5004 (MakeRelPath): ditto
5006 (ChangeExtension): ditto
5007 (MakeDisplayPath): ditto
5008 (do_popen): return cmdret const
5009 (findtexfile): return string const
5011 * src/support/DebugStream.h: add some /// to please doc++
5013 * src/frontends/DialogBase.h (endif): add some /// to please doc++
5015 * src/texrow.C (same_rownumber): functor to use with find_if
5016 (getIdFromRow): rewritten to use find_if and to not update the
5017 positions. return true if row is found
5018 (increasePos): new method, use to update positions
5020 * src/lyxlex_pimpl.h: make LyXLex::Pimpl noncopyable
5022 * src/lyxlex_pimpl.C (verifyTable): new method
5025 (GetString): return string const
5026 (pushTable): rewrite to use std::stack
5028 (setFile): better check
5031 * src/lyxlex.h: make LyXLex noncopyable
5033 * src/lyxlex.C (text): return char const * const
5034 (GetString): return string const
5035 (getLongString): return string const
5037 * src/lyx_gui_misc.C (askForText): return pair<...> const
5039 * src/lastfiles.[Ch] (operator): return string const
5041 * src/buffer.C (parseSingleLyXformat2Token): pass string to
5042 istringstream not char const *.
5043 move token.end() out of loop.
5044 (readFile): move initializaton of token
5046 * src/BufferView2.C (insertErrors): run texrow.increasePos if
5047 getIdFromRow is successful.
5049 * lib/bind/emacs.bind: don't include menus bind
5051 * development/Code_rules/Rules: the beginnings of making this
5052 better and covering more of the unwritten rules that we have.
5054 * development/Code_rules/Recommendations: a couple of wording
5057 2000-08-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5059 * src/support/strerror.c: remove C++ comment.
5061 2000-08-04 Angus Leeming <a.leeming@ic.ac.uk>
5063 * src/commandtags.h: LFUN_INDEX_CREATE_LAST reverts to
5064 LFUN_INDEX_INSERT_LAST
5066 * src/texrow.C (getIdFromRow): changed from const_iterator to
5067 iterator, allowing code to compile with DEC cxx
5069 * src/frontends/xforms/FormCitation.[Ch]: made vector<string>
5070 stores part of the class, as suggested by Allan. Will allow
5072 (apply): test to apply uses InsetCommandParams operator!=
5074 * src/frontends/xforms/FormIndex.C: moved set_minsize into build
5075 (apply): test to apply uses InsetCommandParams operator!=
5077 * src/frontends/xforms/FormToc.[Ch]: made vector<string>
5078 stores part of the class.
5079 (update): removed limits on min/max size.
5081 * src/frontends/xforms/FormUrl.C: moved set_minsize into build
5082 (apply): test to apply uses InsetCommandParams operator!=
5084 * src/insets/insetcommand.[Ch] InsetCommand made noncopyable
5085 (Read, Write, scanCommand, getCommand): moved functionality
5086 into InsetCommandParams.
5088 (getScreenLabel): made pure virtual
5089 new InsetCommandParams operators== and !=
5091 * src/insets/insetbib.[Ch] (InsetBibKey, InsetBibtex): new
5092 c-tors based on InsetCommandParams. Removed others.
5093 * src/insets/insetinclude.[Ch]: ditto
5094 * src/insets/insetlabel.[Ch]: ditto
5095 * src/insets/insetparent.[Ch]: ditto
5096 * src/insets/insetref.[Ch]: ditto. Also moved gotoLabel into .C
5098 * src/buffer.C (parseSingleLyXformat2Token, readInset): all
5099 insets derived from InsetCommand created using similar c-tors
5100 based on InsetCommandParams
5101 * src/lyx_cb.C (MenuInsertLabel, RefSelectCB): ditto
5102 * src/menus.C (ShowRefsMenu): ditto
5103 * src/paragraph.C (Clone): ditto
5104 * src/text2.C (SetCounter): ditto
5105 * src/lyxfunc.C (Dispatch) ditto
5106 Also recreated old InsetIndex behaviour exactly. Can now
5107 index-insert at the start of a paragraph and index-insert-last
5108 without launching the pop-up.
5110 2000-08-03 Lars Gullik Bjønnes <larsbj@lyx.org>
5112 * lib/lyxrc.example: mark te pdf options as non functional.
5114 * src/support/lstrings.C (strToInt): move initalization of tmpstr
5115 (isStrDbl): move tmpstr.end() out of loop.
5116 (strToDbl): move intialization of tmpstr
5117 (lowercase): return string const and move tmp.end() out of loop.
5118 (uppercase): return string const and move tmp.edn() out of loop.
5119 (prefixIs): add assertion
5124 (containsOnly): ditto
5125 (containsOnly): ditto
5126 (containsOnly): ditto
5127 (countChar): make last arg char not char const
5128 (token): return string const
5129 (subst): return string const, move tmp.end() out of loop.
5130 (subst): return string const, add assertion
5131 (strip): return string const
5132 (frontStrip): return string const, add assertion
5133 (frontStrip): return string const
5138 * src/support/lstrings.C: add inclde "LAssert.h"
5139 (isStrInt): move tmpstr.end() out of loop.
5141 * src/frontends/xforms/Toolbar_pimpl.C (activate): move
5142 toollist.end() out of loop.
5143 (deactivate): move toollist.end() out of loop.
5144 (update): move toollist.end() out of loop.
5145 (updateLayoutList): move tc.end() out of loop.
5146 (add): move toollist.end() out of loop.
5148 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): move
5149 md.end() out of loop.
5151 * src/texrow.h: make getIdFromRow const, make rowlist mutable.
5153 * src/texrow.C (getIdFromRow): make const, more rowlist.end() out
5156 * src/paragraph.C (Erase): move fontlist.end() out of loop.
5157 (Erase): move insetlist.end() out of loop.
5159 * src/lyx_sendfax_main.C: make show_logfile static and to take a
5160 ref to const string as first arg. Move initialization of some
5161 variables, whitespace changes.
5163 * src/kbmap.C (defkey): move table.end() out of loop.
5164 (kb_keymap): move table.end() out of loop.
5165 (findbinding): move table.end() out of loop.
5167 * src/MenuBackend.C (hasMenu): move end() out of loop.
5168 (getMenu): move end() out of loop.
5169 (getMenu): move menulist_.end() out of loop.
5171 * src/Makefile.am (#lyx_LDFLAGS): interesting option commented out.
5173 * src/LaTeXFeatures.C (getIncludedFiles): move IncludedFiles.end()
5176 * src/LColor.C (getFromGUIName): move infotab.end() out of loop.
5177 (getFromLyXName): move infotab.end() out of loop.
5179 * config/lyxinclude.m4 (CXXFLAGS): change for 2.96 add
5180 -fvtable-thunks -ffunction-sections -fdata-sections
5182 2000-08-03 Dekel Tsur <dekel@math.tau.ac.il>
5184 * src/frontends/xforms/RadioButtonGroup.h: Changed <forms.h> to
5187 2000-08-03 Angus Leeming <a.leeming@ic.ac.uk>
5189 * src/frontends/xforms/FormCommand.[Ch] (d-tor): removed
5191 * src/frontends/xforms/FormCitation.[Ch],
5192 src/frontends/xforms/FormIndex.[Ch],
5193 src/frontends/xforms/FormToc.[Ch],
5194 src/frontends/xforms/FormUrl.[Ch] (d-tors): call free()
5196 2000-08-03 Angus Leeming <a.leeming@ic.ac.uk>
5198 * src/commandtags.h: renamed, created some flags for citation
5201 * src/lyx_gui_misc.C: stripped out old FD_index_form code
5203 * src/lyxfunc.C (dispatch): use signals to insert index entry
5205 * src/frontends/Dialogs.h: new signal createIndex
5207 * src/frontends/xforms/FormCommand.[Ch],
5208 src/frontends/xforms/FormCitation.[Ch],
5209 src/frontends/xforms/FormToc.[Ch],
5210 src/frontends/xforms/FormUrl.[Ch]: clean up and comment better
5212 * src/insets/insetindex.[Ch]: GUI-independent
5214 * src/frontends/xforms/FormIndex.[Ch],
5215 * src/frontends/xforms/forms/form_index.fd: xforms implementation
5218 2000-08-01 Dekel Tsur <dekel@math.tau.ac.il>
5220 * src/mathed/math_write.C (MathDecorationInset::Write) Put \protect
5221 before \overbrace, \underbrace, \overleftarrow, or \overrightarrow.
5223 2000-08-02 Lars Gullik Bjønnes <larsbj@lyx.org>
5225 * src/insets/insetref.C (Latex): rewrite so that there is now
5226 question that a initialization is requested.
5228 * src/insets/insetcommand.h: reenable the hide signal
5230 2000-08-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5232 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): try to
5233 fix handling of shortcuts (many bugs :)
5234 (add_lastfiles): ditto.
5236 * lib/ui/default.ui: fix a few shortcuts.
5238 2000-07-27 Kayvan A. Sylvan <kayvan@sylvan.com>
5240 * Makefile.am: Fix ``rpmdist'' target to return the exit
5241 status of the ``rpm'' command, instead of the last command in
5242 the chain (the ``rm lyx.xpm'' command, which always returns
5245 2000-08-02 Allan Rae <rae@lyx.org>
5247 * src/frontends/xforms/FormUrl.C (FormUrl): Initialise ALL variables.
5248 * src/frontends/xforms/FormCitation.C (FormCitation): ditto
5249 * src/frontends/xforms/FormToc.C (FormToc): ditto
5251 * src/frontends/xforms/Makefile.am: A few forgotten files
5253 * src/frontends/xforms/FormCommand.C (showInset): The rest of the
5254 Signals-not-copyable-problem Lars' started commenting out.
5256 * src/frontends/xforms/form_toc.[hC]: new files. TOC crashes lyx.
5258 2000-08-01 Lars Gullik Bjønnes <larsbj@lyx.org>
5260 * src/insets/insetcommand.h: Signals is not copyable so anoter
5261 scheme for automatic hiding of forms must be used.
5263 * src/frontends/xforms/FormCitation.h: don't inerit from
5264 noncopyable, FormCommand already does that.
5265 * src/frontends/xforms/FormToc.h: ditto
5266 * src/frontends/xforms/FormUrl.h: ditto
5268 * src/frontends/xforms/FormCitation.C: add include <algorithm>
5270 2000-08-01 Angus Leeming <a.leeming@ic.ac.uk>
5272 * src/insets/insetcommand.h (hide): new SigC::Signal0
5273 (d-tor) new virtual destructor emits hide signal
5275 * src/insets/insetcite.[Ch] (hide, d-tor, EditMessage): removed
5276 * src/insets/inseturl.[Ch] (hide, d-tor): ditto
5278 * src/insets/insettoc.[Ch]: one inset now deals with TOC, LOA,
5279 LOF and LOT. Inset is now GUI-independent
5281 * src/insets/insetloa.[Ch]: redundant
5282 * src/insets/insetlof.[Ch]: ditto
5283 * src/insets/insetlot.[Ch]: ditto
5285 * src/frontends/xforms/forms/form_url.fd: tweaked!
5286 * src/frontends/xforms/forms/form_citation.fd: ditto
5288 * src/frontends/xforms/FormCommand.[Ch]: new base class to those
5289 dialogs dealing with InsetCommand insets
5291 * src/frontends/xforms/FormCitation.[Ch]: now makes use of
5292 FormCommand base class
5293 * src/frontends/xforms/FormUrl.[Ch]: ditto
5295 * src/frontends/xforms/forms/form_toc.fd: Xforms implementation
5297 * src/frontends/xforms/FormToc.[Ch]: ditto
5299 * src/frontends/Dialogs.h (showCitation, showTOC, showUrl): all
5300 passed a generic InsetCommand pointer
5301 * src/frontends/xforms/Dialogs.C (c-tor): create instance of FormToc
5303 * src/lyxfunc.C (Dispatch) : modified to accomodate new FormToc class
5304 and modified InsetTOC class
5305 * src/buffer.C: ditto
5307 * forms/lyx.fd: strip out old FD_form_toc code
5308 * src/lyx_gui_misc.C: ditto
5309 * src/lyx_gui.C: ditto
5310 * src/lyx_cb.C: ditto
5311 * src/lyx.[Ch]: ditto
5313 2000-08-01 Lars Gullik Bjønnes <larsbj@lyx.org>
5315 * src/support/utility.hpp: tr -d '\r'
5317 2000-08-01 Juergen Vigna <jug@sad.it>
5319 * src/insets/insettabular.h: removed initFeatures() as it's not needed.
5321 * src/commandtags.h:
5322 * src/LyXAction.C (init): added LFUN_LAYOUT_TABULAR and
5323 LFUN_TABULAR_FEATURES.
5325 * src/lyxfunc.C (getStatus): implemented LFUN_TABULAR_FEATURES and
5326 LFUN_LAYOUT_TABULAR.
5328 * src/insets/insettabular.C (getStatus): implemented helper function.
5330 * lib/ui/default.ui: implemented edit-table-menu and layout-tabular.
5332 2000-07-31 Juergen Vigna <jug@sad.it>
5334 * src/text.C (draw): fixed screen update problem for text-insets.
5336 * src/text2.C (SetParagrpah): call an update of the inset-owner when
5337 something changed probably this has to be added in various other
5340 * src/insets/insettext.C (cy): fixed to give back the right cursor.y().
5342 2000-07-31 Baruch Even <baruch.even@writeme.com>
5344 * src/frontends/xforms/RadioButtonGroup.C: Changed to use home-brew
5345 templates to satisfy compaq cxx.
5348 2000-07-31 Lars Gullik Bjønnes <larsbj@lyx.org>
5350 * src/support/translator.h (equal_1st_in_pair::operator()): take
5351 const ref pair_type as arg.
5352 (equal_2nd_in_pair::operator()): ditto
5353 (Translator::~Translator): remove empty d-tor.
5355 * src/graphics/GraphicsCache.C: move include config.h to top, also
5356 put initialization of GraphicsCache::singleton here.
5357 (~GraphicsCache): move here
5358 (addFile): take const ref as arg
5361 * src/lyxlex_pimpl.C (setFile): comment in old behaviour
5363 * src/BufferView2.C (insertLyXFile): change te with/without header
5366 2000-07-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5368 * src/frontends/xforms/FormGraphics.C (apply): add some
5369 static_cast. Not very nice, but required by compaq cxx.
5371 * src/frontends/xforms/RadioButtonGroup.h: include header
5372 <utility> instead of <pair.h>
5374 * src/insets/insetgraphicsParams.C: add using directive.
5375 (readResize): change return type to void.
5376 (readOrigin): ditto.
5378 * src/lyxfunc.C (getStatus): add missing break for build-program
5379 function; add test for Literate for export functions.
5381 * lib/ui/default.ui: fix Insert->TOC->TOC; comment out invalid
5382 entries in Options menu.
5384 2000-07-31 Baruch Even <baruch.even@writeme.com>
5386 * src/frontends/xforms/Toolbar_pimpl.C (toolbarItem::operator=):
5387 protect against auto-allocation; release icon when needed.
5389 2000-07-31 Matej Cepl <CeplM@seznam.cz>
5391 * lib/kbd/czech.kmap: new file. standard Czech keyboard as found
5392 on usual typewriter.
5394 * lib/kbd/czech-prg.kmap: simpler czech kmap (which was the
5395 earlier czech.kmap), useful only for programming.
5397 2000-07-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5399 * src/frontends/xforms/FormCitation.h: fix conditioning around
5402 2000-07-31 Juergen Vigna <jug@sad.it>
5404 * src/frontends/xforms/FormTabular.C (local_update): changed
5405 radio_linebreaks to radio_useparbox and added radio_useminipage.
5407 * src/tabular.C: made support for using minipages/parboxes.
5409 * src/bufferlist.C (QwriteAll): small fix for asking for save.
5411 * src/insets/insetgraphics.C (draw): just draw the inset so that the
5413 (descent): so the cursor is in the middle.
5414 (width): bit smaller box.
5416 * src/insets/insetgraphics.h: added display() function.
5418 2000-07-31 Baruch Even <baruch.even@writeme.com>
5420 * src/frontends/Dialogs.h: Added showGraphics signals.
5422 * src/frontends/xforms/forms/form_graphics.fd: Added file, the
5423 xforms form definition of the graphics dialog.
5425 * src/frontends/xforms/FormGraphics.h:
5426 * src/frontends/xforms/FormGraphics.C: Added files, the
5427 GUIndependent code of InsetGraphics
5429 * src/insets/insetgraphics.h:
5430 * src/insets/insetgraphics.C: Major writing to make it work.
5432 * src/insets/insetgraphicsParams.h:
5433 * src/insets/insetgraphicsParams.C: Added files, parameter passing
5434 struct between InsetGraphics and GUI.
5436 * src/LaTeXFeatures.h:
5437 * src/LaTeXFeatures.C (c-tor, require, getPackages): Enabled
5438 support for graphicx package.
5440 * src/buffer.C (parseSingleLyXformat2Token): Fixed read support
5441 for the graphics inset.
5443 * src/support/translator.h: Added file, used in
5444 InsetGraphicsParams. this is a template to translate between two
5447 * src/frontends/xforms/RadioButtonGroup.h:
5448 * src/frontends/xforms/RadioButtonGroup.C: Added files, Comprise a
5449 way to easily control a radio button group.
5451 2000-07-28 Juergen Vigna <jug@sad.it>
5453 * src/insets/insettabular.C (LocalDispatch):
5454 (TabularFeatures): added support for lyx-functions of tabular features.
5455 (cellstart): refixed this function after someone wrongly changed it.
5457 * src/commandtags.h:
5458 * src/LyXAction.C (init): added support for tabular-features
5460 2000-07-28 Allan Rae <rae@lyx.org>
5462 * src/frontends/xforms/FormPreferences.C (build): Setup input return
5463 checking. NOTE: It seems that pressing ESC to cancel the dialog also
5464 triggers the callback for input checking. As a result we sometimes get
5465 "LyX: This shouldn't happen..." printed to cerr.
5466 (input): Started using status variable since I only free() on
5467 destruction. Some input checking for paths and font sizes.
5469 * src/frontends/xforms/FormPreferences.h: Use status to control
5470 activation of Ok and Apply
5472 * src/frontends/xforms/forms/form_preferences.fd: Setup input return
5473 callback. Also resized to stop segfaults with 0.88. The problem is
5474 that xforms-0.88 requires the folder to be wide enough to fit all the
5475 tabs. If it isn't it causes all sorts of problems.
5477 * src/frontends/xforms/FormCopyright.[hC]: forward declare FD_form...
5479 * src/frontends/xforms/forms/README: Reflect reality.
5481 * src/frontends/xforms/forms/fdfix.sh: Clean up comments
5482 * src/frontends/xforms/forms/makefile: ditto.
5484 * src/commandtags.h: Get access to new Preferences dialog
5485 * src/LyXAction.C: ditto
5486 * src/lyxfunc.C: ditto
5487 * lib/ui/default.ui: ditto
5489 2000-07-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5491 * src/frontends/xforms/forms/makefile (.c.C): change call to fdfix.sh.
5493 * src/frontends/xforms/Makefile.am (libxforms_la_SOURCES): add a
5496 * src/frontends/xforms/form_url.[Ch]: added.
5498 2000-07-27 Lars Gullik Bjønnes <larsbj@lyx.org>
5500 * src/insets/insetbib.h: fixed bug in previous commit
5502 * src/frontends/xforms/FormUrl.h: ditto
5504 * src/frontends/xforms/FormPrint.h: ditto
5506 * src/frontends/xforms/FormPreferences.h: ditto
5508 * src/frontends/xforms/FormCopyright.h: ditto
5510 * src/frontends/xforms/FormCitation.C: ditto
5512 * src/frontends/Dialogs.h (class Dialogs): use noncopyable, remove
5513 private copyconstructor and private default contructor
5515 * src/support/Makefile.am: add utility.hpp
5517 * src/support/utility.hpp: new file from boost
5519 * src/insets/insetbib.h: set owner in clone
5521 * src/frontends/xforms/FormCitation.C: added missing include
5524 * src/insets/form_url.[Ch]: removed
5526 2000-07-26 Kayvan A. Sylvan <kayvan@sylvan.com>
5528 * development/lyx.spec.in
5529 * Makefile.am: Fix buglet for LyX RPM generation resulting from
5530 file/directory re-organization.
5532 2000-07-26 Angus Leeming <a.leeming@ic.ac.uk>
5534 * src/insets/insetcommand.[Ch]: moved the string data and
5535 associated manipulation methods into a new stand-alone class
5536 InsetCommandParams. This class has two additional methods
5537 getAsString() and setFromString() allowing the contents to be
5538 moved around as a single string.
5539 (addContents) method removed.
5540 (setContents) method no longer virtual.
5542 * src/buffer.C (readInset): made use of new InsetCitation,
5543 InsetUrl constructors based on InsetCommandParams.
5545 * src/commandtags.h: add LFUN_INSERT_URL
5547 * src/lyxfunc.C (Dispatch): changed to accomadate GUI-
5548 independent InsetUrl and use InsetCommandParams to extract
5549 string info and create new Insets.
5551 * src/frontends/Dialogs.h: add signals showUrl, createUrl.
5553 * src/frontends/xforms/FormCitation.C (apply): uses
5556 * src/frontends/xforms/form_url.C
5557 * src/frontends/xforms/form_url.h
5558 * src/frontends/xforms/FormUrl.h
5559 * src/frontends/xforms/FormUrl.C
5560 * src/frontends/xforms/forms/form_url.fd: new files
5562 * src/insets/insetcite.[Ch]: removed unused constructors.
5564 * src/insets/insetinclude.[Ch]: no longer store filename
5566 * src/insets/inseturl.[Ch]: GUI-independent.
5568 2000-07-26 Juergen Vigna <jug@sad.it>
5569 * renamed frontend from gtk to gnome as it is that what is realized
5570 and did the necessary changes in the files.
5572 2000-07-26 Marko Vendelin <markov@ioc.ee>
5574 * configure.in: cleaning up gnome configuration scripts
5576 2000-07-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5578 * src/frontends/xforms/Menubar_pimpl.C (set): fix the disappearing
5579 shortcuts syndrom by redrawing them explicitely (a better solution
5580 would be appreciated).
5582 * src/lyxfunc.C (getStatus): fix crash when functions are disabled.
5584 * src/frontends/xforms/Menubar_pimpl.C (set): fix the shortcut of
5587 * src/lyx_cb.C (MenuExport): change html export to do the right
5588 thing depending of the document type (instead of having
5589 html-linuxdoc and html-docbook).
5590 * src/lyxfunc.C (getStatus): update for html
5591 * lib/ui/default.ui: simplify due to the above change.
5592 * src/menus.C (ShowFileMenu): update too (in case we need it).
5594 * src/MenuBackend.C (read): if a menu is defined twice, add the
5595 new entries to the exiting one.
5597 2000-07-26 Juergen Vigna <jug@sad.it>
5599 * src/buffer.h: added functions setUnnamed(bool) and isUnnamed().
5601 * src/lyx_cb.C (MenuWriteAs): Changed to react right for unnamed docs
5602 and return a bool if it did actual save the file.
5603 (AutoSave): don't autosave a unnamed doc.
5605 * src/bufferlist.C (close) (QwriteAll) (emergencyWriteAll):
5606 check if this is an UNNAMED new file and react to it.
5607 (newFile): set buffer to unnamed and change to not mark a new
5608 buffer dirty if I didn't do anything with it.
5610 * src/lyxfunc.C (MenuNew): Changed to not ask for filename on new.
5612 2000-07-26 Lars Gullik Bjønnes <larsbj@lyx.org>
5614 * src/frontends/Menubar.h: make "struct Pimpl;" public + the
5615 friend as per Angus's patch posted to lyx-devel.
5617 * src/ext_l10n.h: updated
5619 * src/frontends/xforms/Toolbar_pimpl.C (updateLayoutList): run
5620 gettext on the style string right before inserting them into the
5623 * autogen.sh: add code to extract style strings form layout files,
5624 not good enough yet.
5626 * src/frontends/gtk/.cvsignore: add MAKEFILE
5628 * src/MenuBackend.C (read): run the label strings through gettext
5629 before storing them in the containers.
5631 * src/ext_l10n.h: new file
5633 * autogen.sh : generate the ext_l10n.h file here
5635 2000-07-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5637 * src/lyxrc.C (read): do not use LyXLex::lex() to parse set_color
5640 * lib/ui/default.ui: fix a couple of typos.
5642 * config/gnome/gtk.m4: added (and added to the list of files in
5645 * src/insets/insetinclude.C (unique_id): fix when we are using
5646 lyxstring instead of basic_string<>.
5647 * src/insets/insettext.C (LocalDispatch): ditto.
5648 * src/support/filetools.C: ditto.
5650 * lib/configure.m4: create the ui/ directory if necessary.
5652 * src/LyXView.[Ch] (updateToolbar): new method.
5654 * src/BufferView_pimpl.C (buffer): update the toolbar when
5655 opening/closing buffer.
5657 2000-07-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5659 * src/LyXAction.C (getActionName): enhance to return also the name
5660 and options of pseudo-actions.
5661 (init): New lyxfunc LFUN_MATH_PANEL=="math-panel".
5663 * lib/ui/default.ui: use OptItem in the vc submenu (intented just
5664 as an example of what is possible). Used in File->Build too (more
5665 useful) and in the import/export menus (to mimick the complicated
5666 handling of linuxdoc and friends). Try to update all the entries.
5668 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): handle
5671 * src/MenuBackend.C (read): Parse the new OptItem tag.
5673 * src/MenuBackend.h: Add a new optional_ data member (used if the
5674 entry should be omitted when the lyxfunc is disabled).
5676 * src/frontends/xforms/Menubar_pimpl.C (string_width): new
5677 function, used as a shortcut.
5678 (create_submenu): align correctly the shortcuts on the widest
5681 * src/MenuBackend.h: MenuItem.label() only returns the label of
5682 the menu without shortcut; new method shortcut().
5684 2000-07-14 Marko Vendelin <markov@ioc.ee>
5686 * src/frontends/gtk/Dialogs.C:
5687 * src/frontends/gtk/FormCopyright.C:
5688 * src/frontends/gtk/FormCopyright.h:
5689 * src/frontends/gtk/Makefile.am: added these source-files for the
5690 Gtk/Gnome support of the Copyright-Dialog.
5692 * src/main.C: added Gnome::Main initialization if using
5693 Gtk/Gnome frontend-GUI.
5695 * src/lyx_gui.C: added Gnome event loop if using Gtk/Gnome
5697 * config/gnome/aclocal-include.m4
5698 * config/gnome/compiler-flags.m4
5699 * config/gnome/curses.m4
5700 * config/gnome/gnome--.m4
5701 * config/gnome/gnome-bonobo-check.m4
5702 * config/gnome/gnome-common.m4
5703 * config/gnome/gnome-fileutils.m4
5704 * config/gnome/gnome-ghttp-check.m4
5705 * config/gnome/gnome-gnorba-check.m4
5706 * config/gnome/gnome-guile-checks.m4
5707 * config/gnome/gnome-libgtop-check.m4
5708 * config/gnome/gnome-objc-checks.m4
5709 * config/gnome/gnome-orbit-check.m4
5710 * config/gnome/gnome-print-check.m4
5711 * config/gnome/gnome-pthread-check.m4
5712 * config/gnome/gnome-support.m4
5713 * config/gnome/gnome-undelfs.m4
5714 * config/gnome/gnome-vfs.m4
5715 * config/gnome/gnome-x-checks.m4
5716 * config/gnome/gnome-xml-check.m4
5717 * config/gnome/gnome.m4
5718 * config/gnome/gperf-check.m4
5719 * config/gnome/gtk--.m4
5720 * config/gnome/linger.m4
5721 * config/gnome/need-declaration.m4: added configuration scripts
5722 for Gtk/Gnome frontend-GUI
5724 * configure.in: added support for the --with-frontend=gtk option
5726 * autogen.sh: added config/gnome/* to list of config-files
5728 * acconfig.h: added define for GTKGUI-support
5730 * config/lyxinclude.m4: added --with-frontend[=value] option value
5731 for Gtk/Gnome frontend-GUI support.
5733 2000-07-25 Lars Gullik Bjønnes <larsbj@lyx.org>
5735 * src/support/lstrings.C (prefixIs): rewrite so that gcc bastring
5739 * src/paragraph.C (GetChar): remove non-const version
5741 * src/lyxlex_pimpl.C (compare_tags): rewritten to suit cvs gcc 2.96
5742 (search_kw): use it.
5744 * src/lyx_main.C (init): if "preferences" exist, read that instead
5746 (ReadRcFile): return bool if the file could be read ok.
5747 (ReadUIFile): add a check to see if lex file is set ok.
5749 * src/lyx_cb.C (InsertAsciiFile): rewrite a bit so that gcc
5750 bastring can be used instead of lyxstring (still uses the old code
5751 if std::string is good enough or if lyxstring is used.)
5753 * src/encoding.C: make the arrays static, move ininle functions
5755 * src/encoding.h: from here.
5757 * src/buffer.C: have last_isnet_read as a file scope variable for now.
5758 (parseSingleLyXformat2Token): move inset parsing to separate method
5759 (readInset): new private method
5761 * src/Variables.h: remove virtual from get().
5763 * src/ToolbarDefaults.C: include lyxparagraph.h temporary to get
5764 access to NEW_INSETS and NEW_TABULAR
5766 * src/MenuBackend.h: remove superfluous forward declaration of
5767 MenuItem. Add documentations tags "///", remove empty MenuItem
5768 destructor, remove private default contructor.
5770 * src/MenuBackend.C (MenuItem): remove unneeded copy contructor
5772 (read): more string mlabel and mname to where they are used
5773 (read): remove unused variables mlabel and mname
5774 (defaults): unconditional clear, make menusetup take advantage of
5775 add returning Menu &.
5777 * src/LyXView.h: define NEW_MENUBAR as default
5779 * src/LyXAction.C: include lyxparagraph.h temporary to get access
5780 to NEW_INSETS and NEW_TABULAR.
5781 (init): commetn out some funcs that is obsolete when NEW_INSETS is
5782 defined. Change some of the "xxxx-inset-insert" functions names to
5785 * several files: more enahncements to NEW_INSETS and the resulting
5788 * lib/lyxrc.example (\date_insert_format): move to misc section
5790 * config/lyxinclude.m4 (LYX_CXX_STL_STRING): allow to use the gcc
5791 bastring and use AC_CACHE_CHECK.
5792 (LYX_CXX_GOOD_STD_STRING): new check. Checks if the std::string of
5793 the system have the newest methods. uses AC_CACHE_CHECK
5794 (LYX_CXX_MUTABLE): use AC_CACHE_CHECK
5795 (LYX_CXX_PARTIAL): use AC_CACHE_CHECK
5796 (LYX_CXX_NAMESPACES): use AC_CACHE_CHECK
5798 * configure.in: add LYX_CXX_GOOD_STD_STRING
5800 * acinclude.m4: recreated
5802 2000-07-24 Amir Karger <karger@lyx.org>
5804 * README: add Hebrew, Arabic kmaps
5807 2000-07-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5809 * src/buffer.C (writeFileAscii): Define actcell as an int instead
5812 2000-07-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5814 * Lot of files: add pragma interface/implementation.
5816 * src/lyx_main.C (ReadUFile): new method. Read the UI file.
5818 * lib/ui/default.ui: new file (ans new directory). Contains the
5819 default menu and toolbar.
5821 * src/lyxrc.[Ch]: new variable ui_file. Move toolbardefaults to
5822 global space. Toolbars are now read (as menus) in ui files.
5824 * src/debug.C: change Debug::TOOLBAR to Debug::GUI.
5826 * src/lyxfunc.C (getStatus): do not exit immediately if a command
5827 is disabled because the document is read-only. We want to have the
5828 toggle state of the function anyway.
5829 (getStatus): add code for LFUN_VC* functions (mimicking what is
5830 done in old-style menus)
5832 * src/lyxfunc.C (Dispatch): news functions LFUN_SWITCHBUFFER,
5833 LFUN_HELP_CREDITS, LFUN_HELP_VERSION, LFUN_HELP_OPEN.
5835 * src/LyXView.[Ch]: add code for the NEW_MENUBAR define.
5836 * src/BufferView_pimpl.C: ditto.
5837 * src/lyxfunc.C: ditto.
5839 * src/LyXView.h: add a define NEW_MENUBAR (commented out by
5840 default). This replaces old-style menus by new ones.
5842 * src/MenuBackend.[Ch]: new classes MenuBackend, Menu and
5843 MenuItem. Contain the data structure of a menu.
5845 * src/insets/insettext.C: use LyXView::setLayout instead of
5846 accessing directly the toolbar combox.
5847 * src/lyxfunc.C (Dispatch): ditto.
5849 * src/LyXView.C (setLayout): new method, which just calls
5850 Toolbar::setLayout().
5851 (updateLayoutChoice): move part of this method in Toolbar.
5853 * src/toolbar.[Ch]: removed.
5855 * src/frontend/xforms/Toolbar_pimpl.[Ch]: new files. The xforms
5856 implementation the toolbar.
5858 * src/frontend/Toolbar.[Ch]: new files. The abstract interface of
5859 the toolbar. It might make sense to merge it with ToolbarDefaults
5861 (setLayout): new function.
5862 (updateLayoutList): ditto.
5863 (openLayoutList): ditto.
5865 * src/frontend/xforms/Toolbar_pimpl.[Ch]: new files. Contain the
5866 xforms implementation of the toolbar.
5867 (get_toolbar_func): comment out, since I do not
5868 know what it is good for.
5870 * src/ToolbarDefaults.h: Add the ItemType enum.
5872 * src/support/StrPool.[Ch]: new class. Acts as a reference holder
5873 for a list of allocated C strings. Used in Menubar xforms
5874 implementation to avoid memory leaks.
5876 * src/support/lstrings.[Ch] (uppercase): new version taking and
5880 * lib/bind/xemacs.bind: remove bogus binding for lyx-quit.
5881 * lib/bind/emacs.bind: ditto.
5883 2000-07-21 Lars Gullik Bjønnes <larsbj@lyx.org>
5885 * src/toolbar.h: include commandtags.h instead of lyxfunc.h,
5886 forward decl of LyXView.
5888 * src/toolbar.C (toolbarItem): moved from toolbar.h
5889 (toolbarItem::clean): ditto
5890 (toolbarItem::~toolbarItem): ditto
5891 (toolbarItem::operator): ditto
5893 * src/text2.C (SetLayout): commetn out USE_OLD_SETUP_LAYOUT stuff
5895 * src/paragraph.h: control the NEW_TABULAR define from here
5897 * src/buffer.C: remove define USE_PARSE_FUNCTION, change
5898 USE_TABULAR_INSETS to NEW_TABULAR
5900 * src/ToolbarDefaults.C: add include "lyxlex.h"
5902 * files using the old table/tabular: use NEW_TABULAR to control
5903 compilation of old tabular stuff.
5905 * src/paragraph.C (SimpleTeXOnePar): NEW_INSETS: move some #ifdef
5908 * src/buffer.C (parseSingleLyXformat2Token): NEW_INSETS: fix the
5909 planemet in reading of old style floats, fix the \end_deeper
5910 problem when reading old style floats.
5912 2000-07-20 Lars Gullik Bjønnes <larsbj@lyx.org>
5914 * src/paragraph.C (writeFile): NEW_INSETS: move a misplaced #endif
5916 2000-07-20 Serge Winitzki <winitzki@erebus.phys.cwru.edu>
5918 * lib/bind/sciword.bind: updated.
5920 2000-07-20 Lars Gullik Bjønnes <larsbj@lyx.org>
5922 * src/paragraph.C (writeFile): NEW_INSETS: possible fix to the
5923 layout write problem
5925 2000-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5927 * src/Makefile.am (INCLUDES): remove image directory from include
5930 * src/bullet_forms.C (create_form_form_bullet): small cleanup.
5931 * src/bullet_forms_cb.C (BulletPanelCB): ditto.
5933 * src/LyXView.C (create_form_form_main): read the application icon
5936 * lib/images/*.xpm: change the icons to use transparent color for
5939 * src/toolbar.C (update): change the color of the button when it
5942 2000-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5944 * src/lyxfunc.C (Dispatch): use LyXView::ShowState instead of
5945 setting explicitely the minibuffer.
5946 * src/BufferView_pimpl.C (workAreaButtonRelease): ditto.
5948 * src/LyXView.C (showState): new function. Shows font information
5949 in minibuffer and update toolbar state.
5950 (LyXView): call Toolbar::update after creating the
5953 * src/toolbar.C: change toollist to be a vector instead of a
5955 (BubbleTimerCB): get help string directly from the callback
5956 argument of the corresponding icon (which is the action)
5957 (set): remove unnecessary ugliness.
5958 (update): new function. update the icons (depressed, disabled)
5959 depending of the status of the corresponding action.
5961 * src/toolbar.h: remove help in toolbarItem
5963 2000-07-19 Dekel Tsur <dekel@math.tau.ac.il>
5965 * src/Painter.C (text): Added code for using symbol glyphs from
5966 iso10646 fonts. Currently diabled.
5968 * src/encoding.C: Added new encodings: iso8859_3,iso8859_9 and
5971 * src/language.C (initL): Fixed encodings for esperanto,lsorbian,
5972 magyar,turkish and usorbian.
5974 * src/paragraph.C (isMultiLingual): Made more efficient.
5976 * src/mathed/formula.C (LocalDispatch): Fixed behavior of greek
5979 * src/mathed/math_symbols.C (math_insert_greek): Changed to use
5980 LocalDispatch(..,LFUN_SELFINSERT,..) instead of math_insert_symbol().
5981 Also changed the prototype to "bool math_insert_greek(char)".
5983 2000-07-19 Lars Gullik Bjønnes <larsbj@lyx.org>
5985 * lots of files: apply the NEW_INSETS on all code that will not be
5986 needed when we move to use the new insets. Enable the define in
5987 lyxparagrah.h to try it.
5989 * src/insets/insettabular.C (cellstart): change to be a static
5991 (InsetTabular): initialize buffer in the initializer list.
5993 2000-07-19 Angus Leeming <a.leeming@ic.ac.uk>
5995 * src/frontends/xforms/FormPrint.[Ch] : moved #include
5996 form_print.h out of the header file. Replaced with forward
5997 declarations of the relevant struct.
5999 * src/frontends/xforms/FormPreferences.[Ch] : ditto for
6002 * src/commandtags.h: do not include "debug.h" which does not
6003 belong there. #include it in some other places because of this
6006 2000-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6008 * src/insets/insetcaption.C: add a couple "using" directives.
6010 * src/toolbar.C (add): get the help text directly from lyxaction.
6012 (setPixmap): new function. Loads from disk and sets a pixmap on a
6013 botton; the name of the pixmap file is derived from the command
6016 * src/toolbar.h: remove members isBitmap and pixmap from
6019 * lib/images/*.xbm *_bw.xpm: remove (not used any more).
6020 * lib/images/: move many files from images/banner.xpm.
6022 * src/lyx_gui.C (create_forms): read banner pixmap from file.
6024 * src/lyx_gui.C (create_forms): remove TWO_COLORS_ICONS support.
6025 * src/toolbar.C: ditto.
6026 * configure.in: ditto.
6027 * INSTALL: document.
6029 * src/spellchecker.C (ShowSpellChecker): use CancelCloseCB when
6030 the spellchecker popup is closed from the WM.
6032 2000-07-19 Juergen Vigna <jug@sad.it>
6034 * src/insets/insetfloat.C (Write): small fix because we use the
6035 insetname for the type now!
6037 2000-07-18 Angus Leeming <a.leeming@ic.ac.uk>
6039 * src/frontends/xforms/forms/form_citation.fd: object sizes are
6042 * src/frontends/Dialogs.h: removed hideCitation signal
6044 * src/insets/insetcite.h: added hide signal
6046 * src/insets/insetcite.C (~InsetCitation): emits new signal
6047 (getScreenLabel): "intelligent" label should now fit on the screen!
6049 * src/frontends/xforms/FormCitation.[Ch] (hideInset): removed
6051 * src/frontends/xforms/FormCitation.C (showInset): connects
6052 hide() to the inset's hide signal
6053 (show): modified to use fl_set_object_position rather than
6054 fl_set_object_geometry wherever possible
6056 2000-07-18 Lars Gullik Bjønnes <larsbj@lyx.org>
6058 * src/insets/lyxinset.h: add caption code
6060 * src/insets/insetfloat.C (type): new method
6062 * src/insets/insetcaption.C (Write): new method
6064 (LyxCode): new method
6066 * src/text2.C (SetCounter): revert Jürgens code, but use his idea
6067 to get it right together with using the FloatList.
6069 * src/commandtags.h: add LFUN_INSET_CAPTION
6070 * src/lyxfunc.C (Dispatch): handle it
6072 * src/buffer.C (parseSingleLyXformat2Token): add code to read a
6075 * src/Variables.[Ch]: make expand take a const reference, remove
6076 the destructor, some whitespace changes.
6078 * src/LyXAction.C (init): add caption-inset-insert
6080 * src/FloatList.C (FloatList): update the default floats a bit.
6082 2000-07-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6084 * src/Variables.[Ch]: new files. Intended to be used for language
6085 specific strings (like \chaptername) and filename substitution in
6088 * src/trans.C (AddDeadkey): replace keyword "all" with "native" in
6090 * lib/kbd/american.kmap: update
6092 * src/trans_mgr.C (normalkey): do not test allowAccent anymore.
6094 * src/bufferparams.[Ch]: remove member allowAccents.
6096 * src/menus.C (ShowOptionsMenu): remove the LaTeX entry.
6098 * src/LaTeXLog.C: use the log_form.h header.
6099 * src/lyx_gui.C: ditto.
6100 * src/lyx_gui_misc.C: ditto.
6101 * src/lyxvc.h: ditto.
6103 * forms/log_form.fd: new file, created from latexoptions.fd. I
6104 kept the log popup and nuked the options form.
6106 * src/{la,}texoptions.[Ch]: removed.
6107 * src/lyx_cb.C (LaTeXOptions): ditto
6109 * src/lyx_gui.C (create_forms): do not handle the
6110 fd_latex_options form.
6112 2000-07-18 Juergen Vigna <jug@sad.it>
6114 * src/insets/insetfloat.C (InsetFloat): use setInsetName to set the
6115 name of the inset so that it can be requested outside (text2.C).
6117 * src/text2.C (SetCounter): modified so it sees insetfloat for caption
6120 2000-07-17 Lars Gullik Bjønnes <larsbj@lyx.org>
6122 * src/mathed/formula.h (ConvertFont): constify
6124 * src/mathed/formula.C (Read): add warning if \end_inset is not
6125 found on expected place.
6127 * src/insets/lyxinset.h (ConvertFont): consify
6129 * src/insets/insetquotes.C (ConvertFont): constify
6130 * src/insets/insetquotes.h: ditto
6132 * src/insets/insetinfo.h: add labelfont
6134 * src/insets/insetinfo.C (InsetInfo): set the labelfont
6135 (ascent): use labelfont
6139 (Write): make .lyx file a bit nicer
6141 * src/insets/insetfloat.C (Write): simplify somewhat...
6142 (Read): add warning if arg is not found
6144 * src/insets/insetcollapsable.C: add using std::max
6145 (Read): move string token and add warning in arg is not found
6146 (draw): use std::max to get the right ty
6147 (getMaxWidth): simplify by using std::max
6149 * src/insets/insetsection.h: new file
6150 * src/insets/insetsection.C: new file
6151 * src/insets/insetcaption.h: new file
6152 * src/insets/insetcaption.C: new file
6154 * src/insets/inset.C (ConvertFont): constify signature
6156 * src/insets/Makefile.am (libinsets_la_SOURCES): add
6157 insetcaption.[Ch] and insetsection.[Ch]
6159 * src/layout.h: remove LABEL_FIRST_COUNTER from enum, change all
6160 uses to use LABEL_COUNTER_CHAPTER instead.
6161 * src/text2.C (SetCounter): here
6163 * src/counters.h: new file
6164 * src/counters.C: new file
6165 * src/Sectioning.h: new file
6166 * src/Sectioning.C: new file
6168 * src/Makefile.am (lyx_SOURCES): add Sectioning.[hC] and counters.[Ch]
6170 2000-07-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6172 * lib/Makefile.am (listerrors): build-listerrors is in ${srcdir},
6175 * src/paragraph.[Ch] (SimpleTeXSpecialChars): fix the definition of
6178 2000-07-17 Juergen Vigna <jug@sad.it>
6180 * src/tabular.C (Validate): check if array-package is needed.
6181 (SetVAlignment): added support for vertical alignment.
6182 (SetLTFoot): better support for longtable header/footers
6183 (Latex): modified to support added features.
6185 * src/LaTeXFeatures.[Ch]: added array-package.
6187 2000-07-17 R. Lahaye <lahaye@postech.ac.kr>
6189 * src/lyx_gui.C (LyXGUI): make sure that the height is large
6192 2000-07-17 Kayvan Sylvan <ksylvan@synopsys.com>
6194 * configure.in: do not forget to put a space after -isystem.
6196 2000-07-10 Dekel Tsur <dekel@math.tau.ac.il>
6198 * lib/kbd/arabic.kmap: a few fixes.
6200 2000-07-16 Lars Gullik Bjønnes <larsbj@lyx.org>
6202 * some whitespace chagnes to a number of files.
6204 * src/support/DebugStream.h: change to make it easier for
6205 doc++ to parse correctly.
6206 * src/support/lyxstring.h: ditto
6208 * src/mathed/math_utils.C (compara): change to have only one
6210 (MathedLookupBOP): change because of the above.
6212 * src/mathed/math_delim.C (math_deco_compare): change to have only
6214 (search_deco): change becasue of the above.
6216 * src/insets/insettabular.C (DrawCellSelection): use std::swap
6217 instead of manually coded one.
6219 * src/insets/insetquotes.C (Read): read the \end_inset too
6221 * src/insets/insetlatex.h: remove file
6222 * src/insets/insetlatex.C: remove file
6224 * src/insets/insetindex.[Ch] (InsetPrintIndex): remove default
6226 (InsetPrintIndex): remove destructor
6228 * src/insets/insetinclude.h: remove default constructor
6230 * src/insets/insetfloat.C: work to make it work better
6232 * src/insets/inseterror.[Ch] (InsetError): remove default constructor
6234 * src/insets/insetcite.h (InsetCitation): remove default constructor
6236 * src/insets/insetbutton.[Ch] (InsetButton): remove default constructor
6238 * src/text.C (GetColumnNearX): comment out some currently unused code.
6240 * src/paragraph.C (writeFile): move some initializations closer to
6242 (CutIntoMinibuffer): small change to use new matchIT operator
6246 (InsertInset): ditto
6249 (InsetIterator): ditto
6250 (Erase): small change to use new matchFT operator
6252 (GetFontSettings): ditto
6253 (HighestFontInRange): ditto
6256 * src/lyxparagraph.h: some chars changed to value_type
6257 (matchIT): because of some stronger checking (perhaps too strong)
6258 in SGI STL, the two operator() unified to one.
6261 * src/lyxfunc.C (Dispatch): code to insert InsetFloat improved
6263 * src/buffer.C (parseSingleLyXformat2Token): static string to hold
6264 the last inset read added
6265 (parseSingleLyXformat2Token): some more (future) compability code added
6266 (parseSingleLyXformat2Token): warning about solitary \end_inset added
6267 (parseSingleLyXformat2Token): set last_inset_read
6268 (parseSingleLyXformat2Token): more code to read new "Float" correctly
6269 (parseSingleLyXformat2Token): don't double intializw string next_token
6271 * src/TextCache.C (text_fits::operator()): add const's to the signature
6272 (has_buffer::operator()): ditto
6274 * src/Floating.h: add some comments on the class
6276 * src/FloatList.[Ch] (typeExist): new method
6279 * src/BackStack.h: added default constructor, wanted by Gcc.
6281 2000-07-14 Juergen Vigna <jug@sad.it>
6283 * src/insets/insettext.C (clear): fixed for multiple paragraps/layouts.
6285 * src/frontends/xforms/forms/form_tabular.fd: updated a bit.
6287 * src/insets/insettabular.C (resizeLyXText): need this to be able to
6288 do a redraw when the window is resized!
6289 (LocalDispatch): small fix so LFUN_TAB works only with locked_inset.
6291 * src/insets/insettext.C (resizeLyXText): added function to correctly
6292 being able to resize the LyXWindow.
6294 * src/table.C (Read): fixed read on DOS-lyx-file (lf-lr)
6296 2000-07-13 Angus Leeming <a.leeming@ic.ac.uk>
6298 * src/frontends/Dialogs.h (hideCitation) : new signal to prevent
6299 crashes when closing dialog to a deleted inset.
6301 * src/insets/insetcite.[Ch] (Edit) : the return of this former
6302 method! Now similar to other insets.
6304 2000-07-13 Juergen Vigna <jug@sad.it>
6306 * src/text.C (GetVisibleRow): fixed clearing of rows with insets!
6308 * lib/examples/Literate.lyx: small patch!
6310 * src/insets/insetbib.C (Read): added this function because of wrong
6311 Write (without [begin|end]_inset).
6313 2000-07-11 Juergen Vigna <jug@sad.it>
6315 * src/BufferView2.C (open_new_inset): changed to a bool returnvalue
6316 as the insertInset could not be good!
6318 * src/screen.C (ToggleSelection): fixed toggle selection bug as
6319 the bool param should not be last.
6321 2000-07-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6323 * sigc++/configure.in: fix bug in threading-related code (Yes, I
6324 did submit that to Karl).
6326 * configure.in: use -isystem instead of -I for X headers. This
6327 fixes a problem on solaris with a recent gcc;
6328 put the front-end code after the X detection code;
6329 configure in sigc++ before lib/
6331 * src/lyx_main.C (commandLineHelp): remove -display from command
6334 2000-07-09 Kayvan A. Sylvan <kayvan@sylvan.com>
6336 * lib/Makefile.am: added lib/build-listerrors to DIST tarfile.
6337 Also put in Makefile rules for building the ``listerrors''
6338 program for parsing errors from literate programs written in LyX.
6340 * lib/build-listerrors: Added small shell script as part of compile
6341 process. This builds a working ``listerrors'' binary if noweb is
6342 installed and either 1) the VNC X server is installed on the machine,
6343 or 2) the user is compiling from within a GUI. The existence of a GUI
6344 is necessary to use the ``lyx --export'' feature for now. This
6345 hack can be removed once ``lyx --export'' no longer requires a GUI to
6348 2000-07-09 Bernard Michael Hurley <bernardh@westherts.ac.uk>
6350 * lib/examples/Literate.lyx, src/Literate.[Ch]: Error messages are
6351 now passed back correctly from gcc and placed "under" error
6352 buttons in a Literate LyX source.
6354 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
6356 * src/text.C (GetColumnNearX): Better behavior when a RTL
6357 paragraph is ended by LTR text.
6359 * src/text2.C (SetCurrentFont,CursorLeftIntern,CursorRightIntern):
6362 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
6364 * src/WorkArea.C (request_clipboard_cb): Set clipboard_read to
6365 true when clipboard is empty.
6367 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
6369 * text.C (Backspace): Prevent rebreaking of a row if it is the last
6370 row of the paragraph.
6371 (SetHeightOfRow): Call to PrepareToPrint with 7th argument = false
6372 to prevent calculation of bidi tables
6374 2000-07-07 Juergen Vigna <jug@sad.it>
6376 * src/screen.C (ToggleSelection): added y_offset and x_offset
6379 * src/insets/insettext.C (InsetMotionNotify): fixed selection with
6382 * src/text.C (GetVisibleRow): fixed selection drawing in insets.
6384 * src/insets/insettext.C: fixed Layout-Display!
6386 2000-07-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6388 * configure.in: add check for strings.h header.
6390 * src/spellchecker.C: include <strings.h> in order to have a
6391 definition for bzero().
6393 2000-07-07 Juergen Vigna <jug@sad.it>
6395 * src/insets/insettext.C (draw): set the status of the bv->text to
6396 CHANGED_IN_DRAW if top_x changed and so a reinit is necessary.
6398 * src/screen.C (DrawOneRow):
6399 (DrawFromTo): redraw the actual row if something has changed in it
6402 * src/text.C (draw): call an update of the toplevel-inset if something
6403 has changed inside while drawing.
6405 * src/lyxtext.h: added CHANGED_IN_DRAW status.
6407 2000-07-06 Angus Leeming <a.leeming@ic.ac.uk>
6409 * src/insets/insetbib.[Ch] (callback) new method, moving callback
6410 processing inside class.
6412 * src/insets/insetindex.[Ch] (callback) new method, moving callback
6413 processing inside class.
6415 * src/insets/insetindex.h new struct Holder, consistent with other
6418 * src/insets/insetcite.[Ch] and elsewhere: stripped out xforms
6419 citation dialog from main code and placed it in src/frontends/xforms.
6420 Dialog launched through signals instead of callbacks
6422 2000-07-06 R. Lahaye <lahaye@postech.ac.kr>
6424 * lyx.man: update the options description.
6426 2000-07-05 R. Lahaye <lahaye@postech.ac.kr>
6428 * src/lyx_gui.C src/lyx_main.C: improve the -geometry support,
6429 handle neg values, set min width to 590, add doc about -display
6431 2000-07-05 Juergen Vigna <jug@sad.it>
6433 * src/insets/lyxinset.h: changed Painter & in ascent(), descent()
6434 calls to BufferView *.
6436 * src/insets/insettext.C (checkAndActivateInset): small fix non
6437 HIGHLY_EDITABLE insets should not be entered by cursor-move-over!
6439 * src/insets/insetcommand.C (Read): Fixed as insets should read till
6440 their \end_inset token!
6442 2000-07-04 edscott <edscott@imp.mx>
6444 * src/lyxrc.C, src/lyxrc.h, src/BufferView_pimpl.C,
6445 lib/lyxrc.example: added option \wheel_jump
6447 2000-07-04 R. Lahaye <lahaye@postech.ac.kr>
6449 * src/lyx_gui.C src/lyx_main.C: add support for -geometry, and
6450 remove support for -width,-height,-xpos and -ypos.
6452 2000-07-01 Dekel Tsur <dekel@math.tau.ac.il>
6454 * src/encoding.[Ch]: New files.
6456 * src/painter.C (text(int,int,XChar2b const *,...)): New method.
6457 (text): Call to the underline() method only when needed.
6459 * src/font.C (XTextWidth16,width(XChar2b const *,...)): New methods.
6461 * src/buffer.C (makeLaTeXFile): Compute automatically the input
6462 encoding(s) for the document.
6464 * src/bufferparams.C (BufferParams): Changed default value of
6467 * src/language.C (newLang): Removed.
6468 (items[]): Added encoding information for all defined languages.
6470 * src/lyx_gui.C (create_forms): Added "auto" option to the input
6471 encoding choice button.
6473 * src/lyxrc.h (font_norm_type): New member variable.
6474 (set_font_norm_type): New method.
6476 * src/paragraph.C (TeXOnePar): Put "\inputencoding{}" between
6477 paragraphs with different encodings.
6479 * src/text.C (is_arabic, is_nikud, TransformChar): Moved to encoding.C
6480 (TransformChar): Changed to work correctly with Arabic points.
6481 (draw): Added support for drawing Arabic points.
6482 (draw): Removed code for drawing underbars (this is done by
6485 * src/support/textutils.h (IsPrintableNonspace): New function.
6487 * src/BufferView_pimpl.h: Added "using SigC::Object".
6488 * src/LyXView.h: ditto.
6490 * src/insets/insetinclude.h (include_label): Changed to mutable.
6492 2000-07-04 Lars Gullik Bjønnes <larsbj@lyx.org>
6494 * src/mathed/math_iter.h: remove empty destructor
6496 * src/mathed/math_cursor.h: remove empty destructor
6498 * src/insets/lyxinset.h: add THEOREM_CODE
6500 * src/insets/insettheorem.[Ch]: new files
6502 * src/insets/insetminipage.C: (InsertInset): remove
6504 * src/insets/insetmarginal.C: inherit from InsetFootLike instead
6506 (InsertInset): remove
6508 * src/insets/insetlist.C: (InsertList): remove
6510 * src/insets/insetfootlike.[Ch]: new files
6512 * src/insets/insetfoot.C: inherit from InsetFootLike instead of
6515 (InsertInset): ditto
6517 * src/insets/insetert.C: remove include Painter.h, reindent
6518 (InsertInset): move to header
6520 * src/insets/insetcollapsable.h: remove explicit from default
6521 contructor, remove empty destructor, add InsertInset
6523 * src/insets/insetcollapsable.C (InsertInset): new func
6525 * src/insets/Makefile.am (libinsets_la_SOURCES): add new files
6527 * src/vspace.h: add explicit to constructor
6529 * src/paragraph.C (SimpleTeXSpecialChars): use \, instead of
6530 \textcompwordmark, please test this.
6532 * src/lyxrc.C: set ascii_linelen to 65 by default
6534 * src/lyxfunc.C (Dispatch): handle LFUN_INSET_THEOREM
6536 * src/commandtags.h: add LFUN_INSET_THEOREM
6538 * src/buffer.C (parseSingleLyXformat2Token): handle insettheorem
6539 (makeLinuxDocFile): remove _some_ of the nice logic
6540 (makeDocBookFile): ditto
6542 * src/Painter.[Ch]: (~Painter): removed
6544 * src/LyXAction.C (init): entry for insettheorem added
6546 * src/LaTeX.C: get rid of the all_files array, and the TEX_FILES
6548 (deplog): code to detect files generated by LaTeX, needs testing
6551 2000-07-03 Lars Gullik Bjønnes <larsbj@lyx.org>
6553 * src/FloatList.[Ch]: moved inlines out of line to FloatList.C
6555 2000-07-02 Lars Gullik Bjønnes <larsbj@lyx.org>
6557 * src/LaTeX.C (deplog): Add a check for files that are going to be
6558 created by the first latex run, part of the project to remove the
6561 * src/LaTeX.[Ch]: Patch from Baruch to add hebrew table of
6562 contents to the extension list.
6564 2000-07-04 Juergen Vigna <jug@sad.it>
6566 * src/text.C (NextBreakPoint): added support for needFullRow()
6568 * src/insets/lyxinset.h: added needFullRow()
6570 * src/insets/insetcollapsable.C: redone now this uses a text-inset
6573 * src/insets/insettext.C: lots of changes for update!
6575 2000-07-03 Angus Leeming <a.leeming@ic.ac.uk>
6577 * src/LaTeXFeatures.h: add a missing std:: qualifier.
6579 2000-07-02 José Abílio Matos <jamatos@fep.up.pt>
6581 * src/insets/insetinclude.C (InsetInclude): fixed
6582 initialization of include_label.
6583 (unique_id): now returns a string.
6585 2000-07-01 José Abílio Matos <jamatos@fep.up.pt>
6587 * src/LaTeXFeatures.h: new member IncludedFiles, for
6588 a map of key, included file name.
6590 * src/LaTeXFeatures.C (getIncludedFiles): returns a string
6591 with the included files for inclusion in SGML preamble,
6592 i. e., linuxdoc and docbook.
6595 * src/buffer.C (makeLinuxDocFile): takes two new arguments,
6596 nice (is the generated linuxdoc code to be exported?), that
6597 allows to remove column, and only_body that will be true for
6598 slave documents. Insets are allowed inside SGML font type.
6599 New handling of the SGML preamble for included files.
6600 (makeDocBookFile): the same for docbook.
6602 * src/insets/insetinclude.h:
6603 * src/insets/insetinclude.C (Validate): keeps a list of included files.
6605 (DocBook): new export methods.
6607 * src/lyx_cb.C: adjust to the new calling sequence for makeLinuxDocFile
6608 and makeDocBookFile.
6610 * src/lyx_main.C (easyParse): accept linuxdoc and docbook as
6611 formats to export with command line argument -x.
6613 2000-06-29 Juergen Vigna <jug@sad.it>
6615 * src/mathed/formula.C (LocalDispatch): changed only-cursor-movements
6616 to return DISPATCHED_NOUPDATE so that a it does not redraw the inset!
6618 * src/text.C (GetVisibleRow): added 'bool cleared' parameter as the
6619 region could already been cleared by an inset!
6621 2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
6623 * src/BufferView_pimpl.h: remove member variables lyx_focus and
6626 * src/BufferView_pimpl.C (Pimpl): delete init of work_area_focus
6628 (cursorToggle): remove special handling of lyx focus.
6630 2000-06-28 Juergen Vigna <jug@sad.it>
6632 * src/text.C (GetVisibleRow): fixed clearing of text if rowHeight >
6635 2000-06-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6637 * src/insets/insetindex.C (Edit): add a callback when popup is
6640 * src/insets/insettext.C (LocalDispatch):
6641 * src/insets/insetmarginal.h:
6642 * src/insets/insetlist.h:
6643 * src/insets/insetfoot.h:
6644 * src/insets/insetfloat.h:
6645 * src/insets/insetert.h: add a missing std:: qualifier.
6647 2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
6649 * src/support/lyxsum.C (sum): '\0' teminate file read when using
6652 * src/insets/lyxinset.h: add FLOAT_CODE and MINIPAGE_CODE
6654 * src/insets/insettext.C (Read): remove tmptok unused variable
6655 (LocalDispatch): add not working LFUN_PARAGRAPH_SPACING
6656 (InsertInset): change for new InsetInset code
6658 * src/insets/insettext.h: add TEXT inline method
6660 * src/insets/insettext.C: remove TEXT macro
6662 * src/insets/insetmarginal.C (Write): new method
6663 (Latex): change output slightly
6665 * src/insets/insetfoot.C (Write): new method
6666 (Latex): change output slightly (don't use endl when no need)
6668 * src/insets/insetert.C (Write): new method
6670 * src/insets/insetcollapsable.h: make button_length, button_top_y
6671 and button_bottm_y protected.
6673 * src/insets/insetcollapsable.C (Write): simplify code by using
6674 tostr. Also do not output the float name, the children class
6675 should to that to get control over own arguments
6677 * src/insets/insetfloat.[Ch] src/insets/insetlist.[Ch]
6678 src/insets/insetminipage.[Ch]:
6681 * src/insets/Makefile.am (libinsets_la_SOURCES): add new files
6683 * src/lyxfunc.C (Dispatch): cases for new insets/commands
6685 * src/Makefile.am (lyx_SOURCES): add the new files
6687 * src/LyXAction.C (init): add LFUN_INSET_MARGINAL,
6688 LFUN_INSET_MINIPAGE, LFUN_INSET_FLOAT, LFUN_INSET_LIST
6689 * src/commandtags.h: ditto
6691 * src/LaTeXFeatures.h: add a std::set of used floattypes
6693 * src/LaTeXFeatures.C (getPackages): add basic support for float.sty
6695 * src/FloatList.[Ch] src/Floating.h: new files
6697 * src/CutAndPaste.C (SwitchLayoutsBetweenClasses): change call to
6699 * src/lyx_cb.C (TableApplyCB): ditto
6701 * src/text2.C: ditto
6702 * src/buffer.C (SimpleLinuxDocOnePar): ditto
6703 (parseSingleLyXformat2Token): ditto + add code for
6704 backwards compability for old float styles + add code for new insets
6706 * src/lyxparagraph.[Ch] (InsertChar(size_type, char, LyXFont)): new
6708 (InsertInset(size_type, Inset *, LyXFont)): new method
6709 (InsetChar(size_type, char)): changed to use the other InsetChar
6710 with a LyXFont(ALL_INHERIT).
6711 (InsetInset(size_type, Inset*)): changed to use InsetChar to
6712 insert the META_INSET.
6714 * sigc++/thread.cc (Privete<int>::operator int&): move definition
6716 * sigc++/thread.h (Threads): from here
6718 * sigc++/scope.cc (ScopeIterator_::ScopeIterator_): move
6719 definition out of line
6720 * sigc++/scope.h: from here
6722 2000-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6724 * src/lyxrc.C (read): make sure the .kmap files exist when a keymap
6725 is specified (adapted from a patch from edscott <edscott@imp.mx>).
6727 * Makefile.am (bindist): new target.
6729 * INSTALL: add instructions for doing a binary distribution.
6731 * development/tools/README.bin.example: update a bit.
6733 2000-06-26 Lior Silberman <slior@math.huji.ac.il>
6736 * lib/lyxrc.example: new lyxrc tag \set_color.
6738 * src/lyxfunc.C (Dispatch):
6739 * src/commandtags.h:
6740 * src/LyXAction.C: new lyxfunc "set-color".
6742 * src/LColor.[Ch] (setColor): new method to set colors from a lyxname
6743 and an x11name given as strings.
6745 * src/ColorHandler.[Ch] (updateColor): new method. Updates the GC
6746 cache when a color is changed.
6748 2000-06-26 Juergen Vigna <jug@sad.it>
6750 * src/lyxrow.C (width): added this functions and variable.
6752 * src/insets/insetcite.C (create_form_citation_form): some Gravity
6755 * src/text.C (SetHeightOfRow): fixed calcualting of width.
6757 2000-06-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6759 * images/undo_bw.xpm: new icon.
6760 * images/redo_bw.xpm: ditto.
6762 * configure.in (INSTALL_SCRIPT): change value to
6763 ${INSTALL} to avoid failures of install-script target.
6764 * lib/reLyX/configure.in (INSTALL_SCRIPT): ditto
6766 * src/BufferView.h: add a magic "friend" declaration to please
6769 2000-06-23 Angus Leeming <a.leeming@ic.ac.uk>
6771 * forms/cite.fd: modified to allow resizing without messing
6774 * src/insetcite.C: Uses code from cite.fd almost without
6776 User can now resize dialog in the x-direction.
6777 Resizing the dialog in the y-direction is prevented, as the
6778 code does this intelligently already.
6780 2000-06-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6782 * INSTALL: remove obsolete entry in "problems" section.
6784 * lib/examples/sl_*.lyx: update of the slovenian examples.
6786 * src/support/FileInfo.[Ch] (getBlockSize): remove.
6788 2000-06-23 Juergen Vigna <jug@sad.it>
6790 * src/lyxtext.h: added a 'cleared' flag to draw() function.
6792 * src/buffer.C (resize): delete the LyXText of textinsets.
6794 * src/paragraph.C (SetInsetOwner): set the owner in the insets too.
6796 * src/insets/lyxinset.h: added another parameter 'cleared' to
6797 the draw() function.
6799 * src/lyxfunc.C (processKeyEvent): move cursor to the right of the
6800 unlocking inset in inset.
6802 2000-06-22 Juergen Vigna <jug@sad.it>
6804 * src/lyxscreen.h: added some y_offset/x_offset parameters for drawings
6805 of insets and moved first to LyXText.
6807 * src/mathed/formulamacro.[Ch]:
6808 * src/mathed/formula.[Ch]: changed prototype of draw() and GetCursorPos
6810 2000-06-21 Juergen Vigna <jug@sad.it>
6812 * src/text.C (GetVisibleRow): look if I should clear the area or not
6813 using Inset::doClearArea() function.
6815 * src/insets/lyxinset.h: added doClearArea() function and
6816 modified draw(Painter &, ...) to draw(BufferView *, ...)
6818 * src/text2.C (UpdateInset): return bool insted of int
6820 2000-06-20 Dekel Tsur <dekel@math.tau.ac.il>
6822 * src/lyx_gui.C (create_forms): Add "Reset" option to the language
6823 combox in the character popup
6825 * src/lyx_cb.C (UserFreeFont): Add argument to the method:
6826 BufferParams const & params
6828 2000-06-20 Juergen Vigna <jug@sad.it>
6830 * src/insets/insettext.C (SetParagraphData): set insetowner on
6833 2000-06-21 Lars Gullik Bjønnes <larsbj@lyx.org>
6835 * src/Timeout.[Ch]: Change to use signals instead of callbacks.
6836 * src/LyXView.h (struct FD_form_main): remove, LyXView inherits
6838 (form_main_): remove
6840 * src/LyXView.C (LyXView_AutosaveTimerCB): remove
6841 (create_form_form_main): remove FD_form_main stuff, connect to
6842 autosave_timeout signal
6844 * src/LyXView.[Ch] (getMainForm): remove
6845 (UpdateTimerCB): remove
6846 * src/BufferView_pimpl.h: inherit from SigC::Object
6848 * src/BufferView_pimpl.C (Pimpl): connect to cursor_timeout with
6849 signal instead of callback
6851 * src/BufferView.[Ch] (cursorToggleCB): remove
6853 2000-06-20 Lars Gullik Bjønnes <larsbj@lyx.org>
6855 * src/BufferView_pimpl.C: changes because of the one below
6857 * src/screen.[Ch]: Made the lyxscreen take LyXText as argument
6858 instead of storing a pointer to a LyXText.
6860 * src/buffer.[Ch]: apply Baruch's remove isdviclean patch.
6862 2000-06-10 Dekel Tsur <dekel@math.tau.ac.il>
6864 * src/lyxparagraph.h
6866 * src/paragraph.C: Changed fontlist to a sorted vector.
6868 2000-06-19 Juergen Vigna <jug@sad.it>
6870 * src/BufferView.h: added screen() function.
6872 * src/insets/insettext.C (LocalDispatch): some selection code
6875 * src/vspace.C (nextToken): use stringfunctions instead of sscanf.
6877 * src/insets/insettext.C (SetParagraphData):
6879 (InsetText): fixes for multiple paragraphs.
6881 2000-06-17 Kayvan A. Sylvan <kayvan@sylvan.com>
6883 * development/lyx.spec.in: Call configure with ``--without-warnings''
6884 to work around a bug with the Makefiles when doing ``make lyxrpm''.
6885 This should be fine, however, since we generally don't want to be
6886 verbose when making an RPM.
6888 2000-06-16 Dekel Tsur <dekel@math.tau.ac.il>
6890 * lib/scripts/fig2pstex.py: New file
6892 2000-06-16 Juergen Vigna <jug@sad.it>
6894 * src/insets/insettabular.C (UpdateLocal):
6895 * src/insets/insettext.C (UpdateLocal): fixed mark_dirty problem.
6896 (LocalDispatch): Changed all functions to use LyXText.
6898 2000-06-15 Juergen Vigna <jug@sad.it>
6900 * src/text.C (SetHeightOfRow): call inset::update before requesting
6903 * src/insets/insettext.C (update):
6904 * src/insets/insettabular.C (update): added implementation
6906 * src/insets/lyxinset.h: added update function
6908 2000-06-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6910 * src/text.C (SelectNextWord): protect against null pointers with
6911 old-style string streams. (fix from Paul Theo Gonciari
6914 * src/cite.[Ch]: remove erroneous files.
6916 * lib/configure.m4: update the list of created directories.
6918 * src/lyxrow.C: include <config.h>
6919 * src/lyxcursor.C: ditto.
6921 2000-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6923 * lib/examples/decimal.lyx: new example file from Mike.
6925 * src/insets/ExternalTemplate.C (readTemplates): Use LibFileSearch()
6926 to find template definitions (from Dekel)
6928 * src/frontends/.cvsignore: add a few things.
6930 * src/frontends/xforms/input_validators.[ch]: remove C++ comments.
6932 * src/Timeout.C (TimeOut): remove default argument.
6934 * src/LyXView.C (LyXView_AutosaveTimerCB): this should not have
6937 * src/insets/ExternalTemplate.C: add a "using" directive.
6939 * src/lyx_main.h: remove the act_ struct, which seems unused
6942 2000-06-12 Lars Gullik Bjønnes <larsbj@lyx.org>
6944 * LyX Developers Meeting: All files changed, due to random C++ (by
6945 coincidence) code generator script.
6947 - external inset (cool!)
6948 - initial online editing of preferences
6949 - insettabular breaks insettext(s contents)
6951 - some DocBook fixes
6952 - example files update
6953 - other cool stuff, create a diff and look for yourself.
6955 2000-06-09 The Great LyX Application <lyx@localhost.localdomain>
6957 * src/insets/insettext.C (computeTextRows): if the maxWidth is
6958 -1 this is a non-line-breaking textinset.
6960 * src/insets/insettabular.C (GetMaxWidthOfCell): returns now -1
6961 if there is no width set.
6963 2000-06-10 Lars Gullik Bjønnes <larsbj@lyx.org>
6965 * Lots of files: Merged the dialogbase branch.
6967 2000-06-09 Allan Rae <rae@lyx.org>
6969 * src/xtl/, src/lyxfunc.[Ch], src/buffer.[Ch]: Removed XTL and
6970 and the Dispatch methods that used it.
6972 * src/frontends/Liason.[Ch]: replaced with a Liason namespace for
6973 access to functions formerly kept in Dispatch.
6975 2000-05-19 Allan Rae <rae@lyx.org>
6977 * src/PrinterParams.h, src/buffer.C, src/frontends/xforms/FormPrint.C:
6978 made to_page and count_copies integers again. from_page remains a
6979 string however because I want to allow entry of a print range like
6980 "1,4,22-25" using this field.
6982 * src/LyXAction.C: added action info and commands for buffer-print-xtl
6983 and printer-params-get. These aren't useful from the minibuffer but
6984 could be used by a script/LyXServer app provided it passes a suitable
6985 auto_mem_buffer. I guess I should take a look at how the LyXServer
6986 works and make it support xtl buffers.
6988 * sigc++/: updated to libsigc++-1.0.1
6990 * src/xtl/: updated to xtl-1.3.pl.11
6992 * forms/makefile, forms/fdfix.sh, forms/layout_forms.fd: Made sure
6993 those changes done to the files in src/ are actually recreated when
6994 they get regenerated. Please don't ever accept a patch that changes a
6995 dialog unless that patch includes the changes to the corresponding *.fd
6998 * src/lyx_cb.C, src/support/lstrings.[hC]: Moved Stephen Witt's
6999 stringOnlyContains, renamed it and generalised it.
7001 * lots-of-files: Rolled the "rae" branch over into the "dialogbase"
7002 branch. Removed the remaining old form_print code.
7004 2000-04-26 Allan Rae <rae@lyx.org>
7006 * ChangeLog, development/tools/lxtl.sh: D'oh! Got caught in the same
7007 trap I was trying to fix with the ID: fields in src/xtl/ :-)
7009 2000-04-25 Allan Rae <rae@lyx.org>
7011 * src/xtl/: Updated to incorporate Angus's two patches as well as mine
7012 against a base of xtl-1.3.pl.4
7014 * development/tools/lxtl.sh: fixed a couple of silly typos and now
7015 filter the Id: entries so they still show the xtl version number
7018 * src/support/lxtl.h: removed auto_mem_buffer which is now incorporated
7019 into the src/xtl code. Patch still pending with José (XTL)
7021 2000-04-24 Allan Rae <rae@lyx.org>
7023 * src/lyxfunc.[Ch] (Dispatch): Use a mem buffer as a parameter. This is
7024 both more generic and much safer. Use the new template functions.
7025 * src/buffer.[Ch] (Dispatch): ditto.
7027 * src/frontends/xforms/FormPrint.C (update): Use new template functions
7028 and mem buffer more intelligently. Also a little general cleanup.
7031 * configure.in (AC_OUTPUT): Extra stuff for xtl that I forgot.
7032 * development/tools/lxtl.sh: Ditto. Makefile.am + .cvsignore
7033 * src/xtl/Makefile.am: ditto.
7034 * src/xtl/.cvsignore: ditto.
7035 * src/Makefile.am: ditto.
7037 * src/PrinterParams.h: Removed the macros member functions. Added a
7038 testInvariant member function. A bit of tidying up and commenting.
7039 Included Angus's idea for fixing operation with egcs-1.1.2.
7041 * src/support/lxtl.h: Many changes. Added auto_mem_buffer -- a really
7042 cool expansion of XTL's mem_buffer to support automatic memory
7043 management within the buffer itself. Removed the various macros and
7044 replaced them with template functions that use either auto_mem_buffer
7045 or mem_buffer depending on a #define. The mem_buffer support will
7046 disappear as soon as the auto_mem_buffer is confirmed to be good on
7047 other platforms/compilers. That is, it's there so you've got something
7050 * src/xtl/objio.h: Changes to support auto_mem_buffer. This has
7051 effectively forked XTL. However I expect José will include my code
7052 into the next major release. Also fixed a memory leak.
7053 * src/xtl/text.h: ditto.
7054 * src/xtl/xdr.h: ditto.
7055 * src/xtl/giop.h: ditto.
7057 2000-04-16 Allan Rae <rae@lyx.org>
7059 * acinclude.m4, sigc++/acinclude.m4: Removed -- they're generated
7060 by autogen.sh and removed by maintainer-clean anyway.
7061 * .cvsignore, sigc++/.cvsignore: Support the above.
7063 * sigc++/.cvsignore: Forgot that retbind.h was generated.
7065 * src/buffer.C (Dispatch): Couldn't print a single page. Fixed.
7067 * src/frontends/xforms/FormPrint.[Ch]: Switched to C callbacks using
7068 macros, renamed static callback-target member functions to suit new
7069 scheme and made them public.
7070 * src/frontends/xforms/forms/form_print.fd: ditto.
7071 * src/frontends/xforms/forms/form_copyright.fd: ditto.
7073 * src/support/lxtl.h: small cleanup to use typedef instead of #define
7076 * src/xtl/: New directory containing a minimal distribution of XTL.
7077 This is XTL-1.3.pl.4.
7079 * development/tools/lxtl.sh: A script to generate the above mini-dist.
7081 2000-04-15 Allan Rae <rae@lyx.org>
7083 * development/tools/makeLyXsigc.sh: Remove the library version numbers
7085 * sigc++/: Updated to libsigc++-1.0.0
7087 2000-04-14 Allan Rae <rae@lyx.org>
7089 * src/frontends/xforms/xform_macros.h: Remove specific macros and just
7090 use the generic ones in future. I'll modify my conversion script.
7092 * src/frontends/xforms/FormCopyright.C: Reverse the earlier change.
7094 * src/lyx_gui_misc.[Ch]: Removed references to form_print.
7095 (CloseAllBufferRelatedDialogs): Renamed.
7096 (updateAllVisibleBufferRelatedDialogs): ditto. Added LaTeXLog
7098 * src/frontends/xforms/FormCopyright.C: Use the specific macros instead
7099 of the generic ones. These are the same ones my conversion script
7102 * src/PrinterParams.h: Allow you to print a range of odd or even pages.
7103 * src/frontends/xforms/FormPrint.C (apply, update): ditto+small cleanup
7104 * src/buffer.C (Dispatch): ditto
7106 * src/LyXView.C (LyXView): Use new signals instead of old hard coded
7107 functions for updating and hiding buffer dependent dialogs.
7108 * src/BufferView.C (buffer): ditto
7109 * src/buffer.C (setReadonly): ditto
7110 * src/lyxfunc.C (CloseBuffer): ditto
7112 * src/buffer.h: Take setReadonly() out of line so I don't have to include
7113 Dialogs.h, and hence all the SigC stuff, into every file that includes
7114 buffer.h. We also don't need to include lyx_gui_misc.h in everything.
7116 * src/BufferView2.C: reduce the number of headers included by buffer.h
7118 2000-04-11 Allan Rae <rae@lyx.org>
7120 * src/frontends/xforms/xform_macros.h: A small collection of macros
7121 for building C callbacks.
7123 * src/frontends/xforms/Makefile.am: Added above file.
7125 * src/frontends/xforms/FormCopyright.[Ch]: Revised the C callback
7126 scheme again. This time it should work for JMarc. If this is
7127 successful I'll revise my conversion script to automate some of this.
7128 The static member functions in the class also have to be public for
7129 this scheme will work. If the scheme works (it's almost identical to
7130 the way BufferView::cursorToggleCB is handled so it should work) then
7131 FormCopyright and FormPrint will be ready for inclusion into the main
7132 trunk immediately after 1.1.5 is released -- provided we're prepared
7133 for complaints about lame compilers not handling XTL.
7135 * src/support/lxtl.h: Switched to XDR_format instead of raw_format.
7137 2000-04-07 Allan Rae <rae@lyx.org>
7139 * config/lyxinclude.m4: A bit more tidying up (Angus)
7141 * src/LString.h: JMarc's <string> header fix
7143 * src/PrinterParams.h: Used string for most data to remove some
7144 ugly code in the Print dialog and avoid even uglier code when
7145 appending the ints to a string for output.
7147 * src/buffer.C (Dispatch): Added a couple of braces to fix an error
7148 and moved "default:" back to the end of switch statement. Cleaned
7149 up the printing so it uses the right function calls and so the
7150 "print to file" option actually puts the file in the right directory.
7152 * src/frontends/xforms/Dialogs.C: Added FormPrint (Angus).
7154 * src/frontends/xforms/FormPrint.C (PrintInputCB): moved input checking
7155 and Ok+Apply button control into a separate method: input (Angus).
7156 (input) Cleaned it up and improved it to be very thorough now.
7157 (All CB) static_cast used instead of C style cast (Angus). This will
7158 probably change again once we've worked out how to keep gcc-2.8.1 happy
7159 with real C callbacks.
7160 (update) add a few "default:" labels to switches. Egcs-1.1.2 seems to
7161 ignore some of the bool settings and has random numbers instead. Needs
7162 some more investigation. Added other input length checks and checking
7163 of file and printer names.
7165 * src/frontends/xforms/FormPrint.h: Removed pragma statement so it
7166 would link (Angus). Seems the old code doesn't compile with the pragma
7167 statement either. Separated callback entries from internal methods.
7169 * src/lyxfunc.C (Dispatch): LFUN_MENUPRINT calls new dialog (Angus).
7171 2000-03-17 Allan Rae <rae@lyx.org>
7173 * src/lyxfunc.[Ch] (isAvailable): This is only temporary. Do we really
7174 need it? Maybe it could go in Dialogs instead? I could make it a
7175 LFUN but you'd have to call Dispatch(int, int, char*) with dummy
7176 values to get the bool return value.
7177 (Dispatch): New overloaded method for xtl support.
7179 * src/frontends/xforms/FormCopyright.[Ch]: Modified to use a friendly
7180 extern "C" callback instead of static member functions. Hopefully,
7181 JMarc will be able to compile this. I haven't changed
7182 forms/form_copyright.fd yet. Breaking one of my own rules already.
7184 * src/commandtags.h: New xtl-based LFUN's no description in LyXAction
7185 because they aren't useful from the minibuffer. Maybe a LyXServer
7186 might want a help message though?
7188 * src/buffer.[Ch] (Dispatch): New overloaded method for xtl support.
7190 * config/lyxinclude.m4: Changes to g++ flags to suit compiling with
7191 xtl which needs both rtti and exceptions.
7193 * src/support/Makefile.am:
7194 * src/support/lxtl.h: New file. Some helper macros for using XTL.
7196 * src/frontends/xforms/input_validators.[ch]: input filters and
7197 validators. These conrol what keys are valid in input boxes.
7198 Use them and write some more. Much better idea than waiting till
7199 after the user has pressed Ok to say that the input fields don't make
7202 * src/frontends/xforms/Makefile.am:
7203 * src/frontends/xforms/forms/form_print.fd:
7204 * src/frontends/xforms/forms/makefile:
7205 * src/frontends/xforms/FormPrint.[Ch]: Ported previous print form to
7206 new scheme. Still have to make sure I haven't missed anything from
7207 the current implementation.
7209 * src/Makefile.am, src/PrinterParams.h: New data store.
7211 * other files: Added a couple of copyright notices.
7213 2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7215 * src/insets/insetbib.h: move Holder struct in public space.
7217 * src/frontends/include/DialogBase.h: use SigC:: only when
7218 SIGC_CXX_NAMESPACES is defined.
7219 * src/frontends/include/Dialogs.h: ditto.
7221 * sigc++/Makefile.am (%.h): use the autodected GNU m4.
7223 * src/frontends/xforms/FormCopyright.[Ch]: do not
7224 mention SigC:: explicitely.
7226 2000-03-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7228 * config/lyxinclude.m4 (LYX_USE_FRONTEND): move the code which
7229 deals with testing KDE in main configure.in
7230 * configure.in: ditto.
7232 2000-02-22 Allan Rae <rae@lyx.org>
7234 * Lots of files: Merged from HEAD
7236 * All Makefile.am (ETAGS_ARGS): use parameter that is also compatible
7237 with the etags shipped with SuSE-6.3 (fancier than gnu-etags).
7239 * autogen.sh: Fix JMarcs complaints by building a sigc++/acinclude.m4
7241 * sigc++/: new minidist.
7243 2000-02-14 Allan Rae <rae@lyx.org>
7245 * development/tools/makeLyXsigc.sh: Small fix for Makefile.am
7247 2000-02-08 Juergen Vigna <jug@sad.it>
7249 * src/frontends/kde/dlg/formcopyrightdialog.kdevdlg: the dialog data
7250 file for the buildin GUI builder of KDevelop of the copyright-dialog.
7252 * src/frontends/kde/lyxgui.kdevprj: I added this as I use KDevelop
7253 for this port and so it is much easier for other people to port
7254 dialogs in a common development environment.
7256 * src/frontends/kde/formcopyrightdialog_moc.C: needed MOC file for
7257 the QT/KDE implementation.
7259 * src/frontends/kde/Dialogs.C:
7260 * src/frontends/kde/FormCopyright.C:
7261 * src/frontends/kde/FormCopyright.h:
7262 * src/frontends/kde/Makefile.am:
7263 * src/frontends/kde/formcopyrightdialog.C:
7264 * src/frontends/kde/formcopyrightdialog.h:
7265 * src/frontends/kde/formcopyrightdialogdata.C: added this source-files
7266 for the kde support of the Copyright-Dialog.
7268 * src/frontends/Makefile.am (AUTOMAKE_OPTIONS): now uses @FRONTEND@
7269 subdir-substitution instead of hardcoded 'xforms' as we now have also
7272 * src/frontends/include/DialogBase.h (Object): just commented the
7273 label after #endif (nasty warning and I don't like warnings ;)
7275 * src/main.C (main): added KApplication initialization if using
7278 * src/lyx_gui.C (runTime): added support for multiple toolkit support.
7279 For now only the KDE event-loop is added if frontend==kde.
7281 * src/Makefile.am (lyx_DEPENDENCIES): added @FRONTEND_xxx@ support
7283 * configure.in: added support for the --with-frontend[=value] option
7285 * autogen.sh: added kde.m4 file to list of config-files
7287 * acconfig.h: added define for KDEGUI-support
7289 * config/kde.m4: added configuration functions for KDE-port
7291 * config/lyxinclude.m4: added --with-frontend[=value] option with
7292 support for xforms and KDE.
7294 2000-02-08 Allan Rae <rae@lyx.org>
7296 * all Makefile.am: Fixed up so the make targets dist, distclean,
7297 install and uninstall all work even if builddir != srcdir. Still
7298 have a new sigc++ minidist update to come.
7300 * config/lyxinclude.m4: Some more builddir!=srcdir fixes.
7302 2000-02-01 Allan Rae <rae@lyx.org>
7304 * config/lyxinclude.m4, development/tools/makeLyXsigc.sh:
7305 Many mods to get builddir != srcdir working.
7307 * sigc++/: Upgraded to 0.8.7. This includes many needed fixes both
7308 for building on NT and so we can do the builddir != srcdir stuff.
7310 2000-01-30 Allan Rae <rae@lyx.org>
7312 * sigc++/doc/*: Selected documentation for the libsigc++ mini dist.
7313 This will stay in "rae" branch. We probably don't really need it in
7314 the main trunk as anyone who wants to help programming it should get
7315 a full library installed also. So they can check both included and
7316 system supplied library compilation.
7318 * sigc++/*, sigc++/macros/*, config/sigc++.m4, config/lyxinclude.m4:
7319 Added a 'mini' distribution of libsigc++. If you feel the urge to
7320 change something in these directories - Resist it. If you can't
7321 resist the urge then you should modify the following script and rebuild
7322 the dist. LYX_WITH_SIGC in lyxinclude.m4 is the wrapper to make it
7323 all happen. Still uses a hacked version of libsigc++'s configure.in.
7324 I'm quite happy with the results. I'm not sure the extra work to turn
7325 the sigc++/configure.in into a few extra AC_DEFUNs in sigc++.m4 is
7326 worth the trouble and would probably lead to extra maintenance
7328 I haven't tested the following important make targets: install, dist.
7329 Not ready for prime time but very close. Maybe 1.1.5.
7331 * development/tools/makeLyXsigc.sh: A shell script to automatically
7332 generate our mini-dist of libsigc++. It can only be used with a CVS
7333 checkout of libsigc++ not a tarball distribution. It's well commented.
7334 This will end up as part of the libsigc++ distribution so other apps
7335 can easily have an included mini-dist. If someone makes mods to the
7336 sigc++ subpackage without modifying this script to generate those
7337 changes I'll be very upset!
7339 * src/frontends/: Started the gui/system indep structure.
7341 * src/frontends/include/Dialogs.h: Dialog container. All the Signal<>s
7342 to access the gui-indep dialogs are in this class. Much improved
7343 design compared to previous revision. Lars, please refrain from
7344 moving this header into src/ like you did with Popups.h last time.
7346 * src/frontends/include/DialogBase.h: Abstract base class for dialogs.
7348 * src/frontends/xforms/: Started the gui-indep system with a single
7349 dialog: FormCopyright. Initial testing of use of libsigc++ was very
7352 * src/frontends/xforms/forms: Repository for the xforms .fd files.
7353 Here you'll find a very useful makefile and automated fdfix.sh that
7354 makes updating dailogs a no-brainer -- provided you follow the rules
7355 set out in the README. I'm thinking about adding another script to
7356 automatically generate skeleton code for a new dialog given just the
7359 * src/commandtags.h, src/lyxfunc.C, src/menus.C:
7360 * src/credits.{Ch}, src/credits_form.{Ch}, forms/credits_form.fd:
7361 Made FormCopyright gui-indep and added a lyxfunc to get to it.
7363 2000-06-09 Lars Gullik Bjønnes <larsbj@lyx.org>
7365 * src/support/LSubstring.C (operator): simplify
7367 * src/lyxtext.h: removed bparams, use buffer_->params instead
7369 * src/lyxrow.h: make Row a real class, move all variables to
7370 private and use accessors.
7372 * src/lyxparagraph.h (getParLanguage): add BufferParamas as
7374 (isRightToLeftPar): ditto
7375 (ChangeLanguage): ditto
7376 (isMultiLingual): ditto
7379 (SimpleTeXOnePar): ditto
7380 (TeXEnvironment): ditto
7381 (GetEndLabel): ditto
7383 (SetOnlyLayout): ditto
7384 (BreakParagraph): ditto
7385 (BreakParagraphConservative): ditto
7386 (GetFontSettings): ditto
7388 (CopyIntoMinibuffer): ditto
7389 (CutIntoMinibuffer): ditto
7390 (PasteParagraph): ditto
7391 (SetPExtraType): ditto
7392 (UnsetPExtraType): ditto
7393 (DocBookContTableRows): ditto
7394 (SimpleDocBookOneTablePar): ditto
7396 (TeXFootnote): ditto
7397 (SimpleTeXOneTablePar): ditto
7398 (TeXContTableRows): ditto
7399 (SimpleTeXSpecialChars): ditto
7402 * src/lyxcursor.h: make LyXCursor a real class, move all variables
7403 to private and use accessors.
7405 * src/lyx_cb.C: remove char updatetimer, and all code that uses
7406 this, we did not use it anymore and has not been for ages. Just a
7407 waste of cpu cycles.
7409 * src/language.h: make Language a real class, move all variables
7410 to private and use accessors.
7412 * src/BufferView_pimpl.C (Pimpl): use new timer code.
7413 (create_view): remove
7414 (update): some changes for new timer
7415 (cursorToggle): use new timer
7416 (beforeChange): change for new timer
7418 * src/BufferView.h (cursorToggleCB): removed last paramter because
7421 * src/BufferView.C (C_BufferView_CursorToggleCB): removed
7422 (cursorToggleCB): change because of new timer code
7424 * lib/CREDITS: updated own mailaddress
7426 2000-06-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7428 * src/support/filetools.C (PutEnv): fix the code in case neither
7429 putenv() nor setenv() have been found.
7431 * INSTALL: mention the install-strip Makefile target.
7433 * src/LyXAction.C (init): make LFUN_BUILDPROG available in
7434 read-only documents.
7436 2000-06-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7438 * lib/reLyX/configure.in (VERSION): avoid using a previously
7439 generated reLyX wrapper to find out $prefix.
7441 * lib/examples/eu_adibide_lyx-atua.lyx:
7442 * lib/examples/eu_adibide_gordina.lyx: new examples for the Basque
7443 translation of the Tutorial (Dooteo)
7445 2000-06-06 Angus Leeming <a.leeming@ic.ac.uk>
7447 * forms/cite.fd: new citation dialog
7449 * src/insetcite.[Ch]: the new citation dialog is moved into
7452 * src/insetbib.C: InsetBibtex::getKeys() uses STL containers
7455 * src/insets/insetcommand.h: data members made private.
7457 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
7459 * LyX 1.1.5 released
7461 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
7463 * src/version.h (LYX_RELEASE): to 1.1.5
7465 * src/spellchecker.C (RunSpellChecker): return false if the
7466 spellchecker dies upon creation.
7468 2000-06-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7470 * lib/reLyX/reLyXmain.pl, lib/reLyX/LastLyX.pm: fix suffix of file
7471 in \include{} (from Tomasz Motylewski <motyl@stan.chemie.unibas.ch>)
7475 * lib/CREDITS: update entry for Martin Vermeer.
7477 2000-06-06 Dekel Tsur <dekel@math.tau.ac.il>
7479 * src/text.C (draw): Draw foreign language bars at the bottom of
7480 the row instead of at the baseline.
7482 * lib/examples/Minipage.lyx: Use the new multi-lingual support.
7484 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
7486 * lib/bind/de_menus.bind: updated
7488 2000-06-05 Dekel Tsur <dekel@math.tau.ac.il>
7490 * forms/lyx.fd: Correct gravity for objects in form_toc and form_ref
7492 2000-06-05 Dekel Tsur <dekel@math.tau.ac.il>
7494 * src/menus.C (Limit_string_length): New function
7495 (ShowTocMenu): Limit the number of items/length of items in the
7498 * src/paragraph.C (String): Correct result for a paragraph inside
7501 2000-06-05 Lars Gullik Bjønnes <larsbj@lyx.org>
7503 * src/bufferlist.C (close): test of buf->getuser() == NULL
7505 2000-06-02 Dekel Tsur <dekel@math.tau.ac.il>
7507 * src/BufferView2.C (removeAutoInsets): Fix a bug:
7508 Do not call to SetCursor when the paragraph is a closed footnote!
7510 2000-06-01 Dekel Tsur <dekel@math.tau.ac.il>
7512 * src/insets/insetlabel.C (Edit): Mark buffer as dirty when a
7515 * src/text.C (SetCursor): Made the computation of cursor_vpos safer.
7517 2000-05-31 Dekel Tsur <dekel@math.tau.ac.il>
7520 * src/lyx_cb.C (RefSelectCB): Added "Go Back" button in the insert
7521 reference popup, that activates the reference-back action
7523 * src/menus.C (ShowRefsMenu): Added "Go Back" menu item.
7525 * src/menus.C (Add_to_refs_menu): Limit the size of each item in
7526 the menus. Also fixed a bug.
7528 * src/lyx_cb.C (updateAllVisibleBufferRelatedPopups): Do not close
7529 the math panels when switching buffers (unless new buffer is readonly).
7531 * src/BufferView.C (NoSavedPositions)
7532 * src/BufferView_pimpl.C (NoSavedPositions): New methods
7534 2000-06-01 Lars Gullik Bjønnes <larsbj@lyx.org>
7536 * src/lyx_cb.C (MakeLaTeXOutput): we run MakeLaTeXOutput regard
7537 less of dvi dirty or not.
7539 * src/trans_mgr.[Ch] (insert): change first parameter to string
7542 * src/chset.[Ch] (encodeString): add const to first parameter
7544 2000-05-31 Lars Gullik Bjønnes <larsbj@lyx.org>
7546 * src/support/lyxstring.C (begin): fix a "shared" string bug. use
7550 * src/LaTeX.C (deplog): better searching for dependency files in
7551 the latex log. Uses now regexps.
7553 * lib/layouts/stdlists.inc (lyxlist): fix the label to use \hfil
7554 instead of the box hack or \hfill.
7556 2000-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7558 * src/lyxfunc.C (doImportHelper): do not create the file before
7559 doing the actual import.
7560 (doImportASCIIasLines): create a new file before doing the insert.
7561 (doImportASCIIasParagraphs): ditto.
7563 * lib/lyxrc.example: remove mention of non-existing commands
7565 * lyx.man: remove mention of color-related switches.
7567 * src/lyxrc.C: remove RC_SELECTIONCOLOR and RC_BACKGROUNDCOLOR.
7569 * src/lyx_gui.C: remove all the color-related ressources, which
7570 are not used anymore.
7572 * src/lyx_gui_misc.C (WarnReadonly): use MakeDisplayPath on file
7575 2000-05-31 Dekel Tsur <dekel@math.tau.ac.il>
7577 * src/lyxrc.C (read): Add a missing break in the switch
7579 2000-05-30 Dekel Tsur <dekel@math.tau.ac.il>
7581 * src/text2.C (InsertStringA): Fix a bug with insertion into table
7583 * src/trans_mgr.C (insertVerbatim): Do not use insetquote when the
7586 2000-05-27 Dekel Tsur <dekel@math.tau.ac.il>
7588 * src/text.C (draw): draw bars under foreign language words.
7590 * src/LColor.[Ch]: add LColor::language
7592 2000-05-27 Dekel Tsur <dekel@math.tau.ac.il>
7594 * src/lyxcursor.h (boundary): New member variable
7596 * src/text.C (IsBoundary): New methods
7598 * src/text.C: Use the above for currect cursor movement when there
7599 is both RTL & LTR text.
7601 * src/text2.C: ditto
7603 * src/bufferview_funcs.C (ToggleAndShow): ditto
7605 2000-05-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7607 * src/text.C (DeleteLineForward): set selection to true to avoid
7608 that DeleteEmptyParagraphMechanism does some magic. This is how it
7609 is done in all other functions, and seems reasonable.
7610 (DeleteWordForward): do not jump over non-word stuff, since
7611 CursorRightOneWord() already does it.
7613 Remove the CHECK tag from DeleteLineForward, DeleteWordForward and
7614 DeleteWordBackward, since they seem safe to me (since selection is
7615 set to "true") DeleteEmptyParagraphMechanism does nothing.
7617 2000-05-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7619 * src/lyx_main.C (easyParse): simplify the code by factoring the
7620 part that removes parameters from the command line.
7621 (LyX): check wether wrong command line options have been given.
7623 2000-05-29 Lior Silberman <slior@math.huji.ac.il>
7625 * src/lyx_main.C : add support for specifying user LyX
7626 directory via command line option -userdir.
7628 2000-05-26 Dekel Tsur <dekel@math.tau.ac.il>
7630 * src/menus.C (Add_to_toc_menu): Limit the number of popups, and
7631 the number of items per popup.
7632 (Add_to_refs_menu): Ditto.
7634 2000-05-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7636 * src/lyxparagraph.h: renamed ClearParagraph() to
7637 StripLeadingSpaces() and moved it to paragraph.C. We pass the
7638 textclass as parameter, and do nothing if free_spacing is
7639 true. This fixes part of the line-delete-forward problems.
7641 * src/CutAndPaste.C (cutSelection): use StripLeadingSpaces.
7642 (pasteSelection): ditto.
7643 (SwitchLayoutsBetweenClasses): more translatable strings.
7645 * src/text2.C (CutSelection): use StripLeadingSpaces.
7646 (PasteSelection): ditto.
7647 (DeleteEmptyParagraphMechanism): ditto.
7649 2000-05-26 Juergen Vigna <jug@sad.it>
7651 * src/TabularLayout.C (TabularOptionsCB): removed delete-table as this
7652 is not needed in tabular insets.
7654 * src/insets/insettabular.C (TabularFeatures): added missing features.
7656 * src/tabular.C (DeleteColumn):
7658 (AppendRow): implemented this functions
7659 (cellsturct::operator=): clone the inset too;
7661 2000-05-23 Juergen Vigna <jug@sad.it>
7663 * src/insets/insettabular.C (LocalDispatch): better selection support
7664 when having multicolumn-cells.
7666 2000-05-26 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
7668 * lib/layouts/linuxdoc.layout: fix indentation of paragraphs.
7670 2000-05-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7672 * src/ColorHandler.C (getGCForeground): put more test into _()
7674 * lib/examples/eu_splash.lyx: new file (Basque translation) from
7677 * config/lyxinclude.m4 (LYX_PROG_CXX): use ${CXX} and not g++ to
7680 2000-05-25 Dekel Tsur <dekel@math.tau.ac.il>
7682 * src/lyx_cb.C (RefUpdateCB): disable appropriate buttons when
7683 there are no labels, or when buffer is readonly.
7685 * src/menus.C (ShowRefsMenu) disable appropriate menu items when
7686 there are no labels, buffer is SGML, or when buffer is readonly.
7688 2000-05-25 Lars Gullik Bjønnes <larsbj@lyx.org>
7690 * src/LColor.C (LColor): change a couple of grey40 to grey60
7691 (LColor): rewore initalization to make compiles go some magnitude
7693 (getGUIName): don't use gettext until we need the string.
7695 2000-05-09 Dekel Tsur <dekel@math.tau.ac.il>
7697 * src/Bullet.[Ch]: Fixed a small bug.
7699 2000-05-21 Dekel Tsur <dekel@math.tau.ac.il>
7701 * src/paragraph.C (String): Several fixes/improvements
7703 * src/insets/insetbib.[Ch] (InsetCitation::Ascii) New method
7705 2000-05-22 Lars Gullik Bjønnes <larsbj@lyx.org>
7707 * src/paragraph.C (String): give more correct output.
7709 2000-05-20 Dekel Tsur <dekel@math.tau.ac.il>
7711 * src/lyxfont.C (stateText) Do not output the language if it is
7712 eqaul to the language of the document.
7714 * src/paragraph.C (TeXOnePar): Do not put language switch commands
7715 between two paragraphs with the same language.
7717 * src/paragraph.C (getParLanguage) Return a correct answer for an
7718 empty dummy paragraph.
7720 * src/menus.C (ShowTocMenu): Do not draw lines between LOF/LOT/LOA
7723 * src/menus.C (ShowLayoutMenu) Add "Start of Appendix" item to the
7726 * src/lyx_gui.C (init): Try to use helvetica (or fixed) fonts for
7727 the menus/popup, if requested fonts are unavailable.
7729 2000-05-22 Juergen Vigna <jug@sad.it>
7731 * src/insets/insettabular.C (LocalDispatch): added some more cursor
7732 movement support (Up/Down/Tab/Shift-Tab).
7733 (LocalDispatch): added also preliminari cursor-selection.
7735 * src/LyXAction.C (init): added SHIFT-Tab as tab-backward.
7737 * src/paragraph.C (PasteParagraph): Hopefully now right!
7739 2000-05-22 Garst R. Reese <reese@isn.net>
7741 * layouts/hollywood.layout, broadway.layout : move Dialogue to top
7742 of list, change all references to Environment to Command
7743 * tex/hollywood.cls : rewrite environments as commands, add
7744 \uppercase to interiorshot and exteriorshot to force uppecase.
7745 * tex/broadway.cls : rewrite environments as commands. Tweak
7748 2000-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7750 * src/menus.C (Add_to_toc_menu): fix the code which limits the
7751 size of items: use a constant intead of the hardcoded 40, and more
7752 importantly do not remove the %m and %x tags added at the end.
7753 (Add_to_refs_menu): use vector::size_type instead of
7754 unsigned int as basic types for the variables. _Please_ do not
7755 assume that size_t is equal to unsigned int. On an alpha, this is
7756 unsigned long, which is _not_ the same.
7758 * src/language.C (initL): remove language "hungarian", since it
7759 seems that "magyar" is better.
7761 2000-05-22 Juergen Vigna <jug@sad.it>
7763 * src/CutAndPaste.C: hopefully fixed memory the problem defenitively!
7765 * src/tabular.C (OldFormatRead): added \end_deeper to the end LyXTable
7768 * src/paragraph.C (PasteParagraph): Possibly a memory leak as
7769 next was deleted but not set to 0.
7771 2000-05-21 Lars Gullik Bjønnes <larsbj@lyx.org>
7773 * src/language.C (initL): change the initialization of languages
7774 so that compiles goes _fast_.
7776 * src/menus.C (Add_to_toc_menu): limit the line length in TOC to
7779 * src/lyxfunc.C (processKeyEvent): initalize keysym_return to 0.
7781 2000-05-21 Lars Gullik Bjønnes <larsbj@lyx.org>
7785 2000-05-20 Lars Gullik Bjønnes <larsbj@lyx.org>
7787 * src/WorkArea.C (request_clipboard_cb): give "C" linkage.
7789 2000-05-19 Dekel Tsur <dekel@math.tau.ac.il>
7793 * src/lyxfunc.C (Dispatch): Added LFUN_LOFVIEW, LFUN_LOTVIEW
7796 * src/insets/insetlo*.[Ch]: Made editable
7798 2000-05-20 Lars Gullik Bjønnes <larsbj@lyx.org>
7800 * src/text2.C (SetSelection): call BufferView::stuffClipboard with
7801 the current selection.
7803 * src/BufferView_pimpl.C (stuffClipboard): new method
7805 * src/BufferView.C (stuffClipboard): new method
7807 * src/paragraph.C (String): new method
7809 * src/LColor.C (getFromLyXName): return LColor::inherit instead of
7810 LColor::ignore when lyxname is not found.
7812 * src/BufferView.C (pasteSelection): new method
7814 * src/BufferView_pimpl.C (pasteSelection): new method
7816 * src/lyxfunc.C (Dispatch): use the new clipboard functions.
7818 * src/WorkArea.C (request_clipboard_cb): new static function
7819 (getClipboard): new method
7820 (putClipboard): new method
7822 2000-05-19 Lars Gullik Bjønnes <larsbj@lyx.org>
7824 * LyX 1.1.5pre2 released
7826 2000-05-19 Lars Gullik Bjønnes <larsbj@lyx.org>
7828 * src/vspace.C (operator=): removed
7829 (operator=): removed
7831 * src/lyx_gui_misc.C (askForText): manually set the type in make_pair
7833 * src/layout.C (NumberOfClass): manually set the type in make_pair
7834 (NumberOfLayout): ditto
7836 * src/language.C: use the Language constructor for ignore_lang
7838 * src/language.h: add constructors to struct Language
7840 * src/BufferView_pimpl.C (scrollDown): change to pair<float, float>
7842 * src/text2.C (SetCursorIntern): comment out #warning
7844 * src/mathed/math_symbols.C (pixmapFromBitmapData): add const_cast
7846 * src/mathed/math_iter.h: initialize sx and sw to 0
7848 2000-05-10 Dekel Tsur <dekel@math.tau.ac.il>
7850 * forms/lyx.fd: Redesign of form_ref
7852 * src/LaTeXFeatures.[Ch]
7856 * src/insets/insetref.[Ch]: Added support for varioref and prettyref.
7859 * src/lyxparagraph.h: Added new classes: LyXParagraph::inset_iterator
7860 and Buffer::inset_iterator.
7862 * src/menus.C: Added new menus: TOC and Refs.
7864 * src/insets/insetlabel.C (Edit) Made InsetLabel editable.
7866 * src/buffer.C (getTocList): New method.
7868 * src/BufferView2.C (ChangeRefs): New method.
7870 * src/buffer.C (getLabelList): New method. It replaces the old
7871 getReferenceList. The return type is vector<string> instead of
7874 * src/insets/insetinclude.C (getLabelList): New method. Replaces
7875 the old getLabel() and GetNumberOfLabels() methods.
7876 * src/insets/insetlabel.C (getLabelList): ditto
7877 * src/mathed/formula.C (getLabelList): ditto
7879 * src/paragraph.C (String): New method.
7881 * src/lyx_cb.C (TocSelectCB,TocUpdateCB): Rewritten.
7882 Uses the new getTocList() method.
7883 TocSelectCB() now calls to TocUpdateCB() before moving the cursor,
7884 which automatically updates the contents of the browser.
7885 (RefUpdateCB): Use the new getLabelList method.
7887 * src/lyxfunc.C (Dispatch): Give an error if the label is not found.
7889 * src/BufferView2.C (gotoLabel) Use the new getLabelList method.
7891 * src/spellchecker.C: Added using std::reverse;
7893 2000-05-19 Juergen Vigna <jug@sad.it>
7895 * src/tabular.C (Validate): fixed/added validating of LaTeXFeatures.
7897 * src/insets/insettext.C (computeTextRows): small fix for display of
7898 1 character after a newline.
7900 * src/tabular.C (OldFormatRead): fixed the OldFormatRead with regard
7903 2000-05-18 Juergen Vigna <jug@sad.it>
7905 * src/insets/insettabular.C (TabularFeatures): fixed update of display
7906 when changing width of column.
7908 * src/tabular.C (set_row_column_number_info): setting of
7909 autobreak rows if necessary.
7911 2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7913 * src/lyxvc.C (toggleReadOnly): use VCS::status() instead of stat()
7915 * src/vc-backend.*: renamed stat() to status() and vcstat to
7916 vcstatus. It happens that Tru64 Unix 5.0 has stat() as a macro and
7917 compilation broke. The new name seems more relevant, anyway.
7919 2000-05-17 Juergen Vigna <jug@sad.it>
7921 * src/BufferView2.C (removeAutoInsets): fixed use of AutoDeleteInsets
7922 which was wrong if the removing caused removing of rows!
7924 * src/lyxlex_pimpl.C (next, nextToken): insert support for pushToken.
7925 (pushToken): new function.
7927 * src/text2.C (CutSelection): fix problem discovered with purify
7929 2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7931 * src/debug.C (showTags): enlarge the first column, now that we
7932 have 6-digits debug codes.
7934 * lib/layouts/hollywood.layout:
7935 * lib/tex/hollywood.cls:
7936 * lib/tex/brodway.cls:
7937 * lib/layouts/brodway.layout: more commands and fewer
7938 environments. Preambles moved in the .cls files. Broadway now has
7939 more options on scene numbering and less whitespace (from Garst)
7941 * src/insets/insetbib.C (getKeys): make sure that we are in the
7942 document directory, in case the bib file is there.
7944 * src/insets/insetbib.C (Latex): revert bogus change.
7946 2000-05-16 Juergen Vigna <jug@sad.it>
7948 * src/insets/insettabular.C (UnlockInsetInInset): Changes to update
7949 the TabularLayout on cursor move.
7951 * src/TabularLayout.C (TabularOptionsCB): Wrong call to MenuLayoutTable
7953 * src/insets/insettabular.C (Clone): Clone the LyXTabular for
7956 (draw): fixed cursor position and drawing so that the cursor is
7957 visible when before the tabular-inset.
7959 * src/insets/insettext.C (init): drawLockedFrame was not initialized
7960 when creating from old insettext.
7962 * src/tabular.C (Clone): added Clone of text-inset for undo-handling.
7964 2000-05-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7966 * lib/tex/hollywood.cls: better algorithm for page breaks (Garst)
7967 * lib/tex/brodway.cls: ditto
7969 * lib/layouts/brodway.layout: change alignment of parenthical
7972 2000-05-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7974 * config/lyxinclude.m4 (LYX_PATH_XFORMS): make it clear that only
7975 versions 0.88 and 0.89 are supported.
7977 2000-05-15 Juergen Vigna <jug@sad.it>
7979 * src/insets/insetcollapsable.C (draw): enhancements in drawing and
7982 * src/insets/insettext.C (computeTextRows): redone completely this
7983 function in a much cleaner way, because of problems when having a
7985 (draw): added a frame border when the inset is locked.
7986 (SetDrawLockedFrame): this sets if we draw the border or not.
7987 (SetFrameColor): this sets the frame color (default=insetframe).
7989 * src/insets/lyxinset.h: added x() and y() functions which return
7990 the top_x and top_baseline values. Added a GetFirstLockingInsetOfType
7991 function which is needed to see if we have a locking inset of some
7992 type in this inset (needed for now in insettabular).
7994 * src/vspace.C (inPixels): the same function also without a BufferView
7995 parameter as so it is easier to use it in some ocasions.
7997 * src/lyxfunc.C: changed all places where insertInset was used so
7998 that now if it couldn't be inserted it is deleted!
8000 * src/TabularLayout.C:
8001 * src/TableLayout.C: added support for new tabular-inset!
8003 * src/BufferView2.C (insertInset): this now returns a bool if the
8004 inset was really inserted!!!
8006 * src/tabular.C (GetLastCellInRow):
8007 (GetFirstCellInRow): new helper functions.
8008 (Latex): implemented for new tabular class.
8012 (TeXTopHLine): new Latex() helper functions.
8014 2000-05-12 Juergen Vigna <jug@sad.it>
8016 * src/mathed/formulamacro.C (Read):
8017 * src/mathed/formula.C (Read): read also the \end_inset here!
8019 2000-05-10 Dekel Tsur <dekel@math.tau.ac.il>
8021 * src/mathed/math_write.C (MathParInset::Write): Fixed a bug:
8022 crush when saving formulae with unbalanced parenthesis.
8024 20000-05-11 Dekel Tsur <dekel@math.tau.ac.il>
8026 * src/layout.C: Add new keyword "endlabelstring" to layout file
8028 * src/text.C (GetVisibleRow): Draw endlabel string.
8030 * lib/layouts/broadway.layout
8031 * lib/layouts/hollywood.layout: Added endlabel for the
8032 Parenthetical layout.
8034 * lib/layouts/heb-article.layout: Do not use slanted font shape
8035 for Theorem like environments.
8037 * src/buffer.C (makeLaTeXFile): Always add "american" to
8038 the UsedLanguages list if document language is RTL.
8040 2000-05-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8042 * add addendum to README.OS2 and small patch (from SMiyata)
8044 2000-05-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8046 * many files: correct the calls to ChangeExtension().
8048 * src/support/filetools.C (ChangeExtension): remove the no_path
8049 argument, which does not belong there. Use OnlyFileName() instead.
8051 * src/insets/insetbib.C (Latex): use absolute paths for bibtex
8052 files when LaTeXing a non-nice latex file.
8054 * src/lyxlookup.C (isDeadEvent): use a switch statement instead of
8055 a chain of "if". Return false when deadkeys are not handled.
8057 * src/lyx_main.C (LyX): adapted the code for default bindings.
8059 * src/kbmap.C (defaultKeyBindings): new method. Performs the default
8060 bindings for basic functionality (except deadkeys).
8061 (deadKeyBindings): new method. Performs the bindings of deadkeys.
8063 * src/lyxrc.C (defaultKeyBindings): moved to lyx_main.C
8064 several methods: handle override_x_deadkeys.
8066 * src/lyxrc.h: remove the "bindings" map, which did not make much
8067 sense anyway. New variable override_x_deadkeys, defaulting to "true".
8069 2000-05-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8071 * src/lyxfont.C (stateText): use a saner method to determine
8072 whether the font is "default". Seems to fix the crash with DEC
8075 * src/Bullet.[Ch] (Bullet): remove const on parameters.
8077 2000-05-08 Juergen Vigna <jug@sad.it>
8079 * src/insets/insettabular.C (InsetButtonRelease): Now opens the
8080 TabularLayoutMenu with mouse-button-3
8081 (LocalDispatch): added LFUN_MENU_LAYOUT to open the Tabular-Layout.
8083 * src/TabularLayout.C: added this file for having a Layout for
8086 2000-05-05 Juergen Vigna <jug@sad.it>
8088 * src/insets/insettabular.C (UpdateLocal): resetCursorPos when
8089 recalculating inset-widths.
8090 (TabularFeatures): activated this function so that I can change
8091 tabular-features via menu.
8093 * src/menus.C (ShowEditMenu): inserted support for insettabular so
8094 that I can test some functions with the Table menu.
8096 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
8098 * src/lyxfont.C (stateText): guard against stupid c++libs.
8100 * src/tabular.C: add using std::vector
8101 some whitespace changes, + removed som autogenerated code.
8103 * src/buffer.C (parseSingleLyXformat2Token): stupid bug.
8105 2000-05-05 Juergen Vigna <jug@sad.it>
8107 * src/tabular.[Ch]: now using std:vector instead of arrays for all the
8108 row, columns and cellstructures.
8110 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
8112 * lib/lyxrc.example: remove obsolete entries.
8114 * src/buffer.C (parseSingleLyXformat2Token): patch from dekel, fix
8115 reading of protected_separator for free_spacing.
8117 2000-05-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8119 * src/text.C (draw): do not display an exclamation mark in the
8120 margin for margin notes. This is confusing, ugly and
8123 * src/LaTeXFeatures.C (getPackages): load amssymb also when 'Use
8124 AMS math' is checked.
8126 * src/buffer.C (makeLaTeXFile): do not depend on the textclass
8127 name to see whether including the amsmath package is needed.
8129 2000-05-05 Dekel Tsur <dekel@math.tau.ac.il>
8131 * src/paragraph.C (validate): Compute UsedLanguages correctly
8132 (don't insert the american language if it doesn't appear in the
8135 * src/paragraph.C (TeXOnePar,SimpleTeXOnePar,SimpleTeXSpecialChars)
8136 The argument of \thanks{} command is considered moving argument
8138 * src/paragraph.C (SimpleTeXOnePar): Put \protect before \\ if in
8141 2000-05-04 Dekel Tsur <dekel@math.tau.ac.il>
8143 * src/text.C (GetVisibleRow): Improved drawing of vertical lines
8144 for appendix/minipage/depth. The lines can be now both in the footnote
8145 frame, and outside the frame.
8147 * src/text.C (SingleWidth,draw): Correct rendering of Hebrew vowels
8150 2000-05-05 Juergen Vigna <jug@sad.it>
8152 * src/table.[Ch]: removed the inset and buffer stuff as this is now
8153 neede only in tabular.[Ch].
8155 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
8157 * src/insets/insetspecialchar.C (Read): allow command == '~' for
8159 (Write): write '~' for PROTECTED_SEPARATOR
8161 2000-05-04 Lars Gullik Bjønnes <larsbj@lyx.org>
8163 * src/lyxparagraph.h: add a friend struct matchIT after the struct
8166 * src/mathed/formula.C (drawStr): rename size to siz.
8168 * src/insets/figinset.C (RestoreForm): rename pflags to piflags,
8169 possibly fix a bug by not changing the pflags = flags to piflags =
8172 2000-05-05 Juergen Vigna <jug@sad.it>
8174 * src/insets/insetbib.C: moved using directive
8176 * src/ImportNoweb.C: small fix for being able to compile (missing
8179 2000-05-04 Lars Gullik Bjønnes <larsbj@lyx.org>
8181 * config/lyxinclude.m4 (LYX_CXX_STL_STRING): change the test not
8182 to use clear, since we don't depend on this in the code. Add test
8185 2000-05-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8187 * (various *.C files): add using std::foo directives to please dec
8190 * replace calls to string::clear() to string::erase() (Angus)
8192 * src/cheaders/cmath: modified to provide std::abs.
8194 2000-05-04 Juergen Vigna <jug@sad.it>
8196 * src/insets/insettext.C: Prepared all for inserting of multiple
8197 paragraphs. Still display stuff to do (alignment and other things),
8198 but I would like to use LyXText to do this when we cleaned out the
8199 table-support stuff.
8201 * src/insets/insettabular.C: Changed lot of stuff and added lots
8202 of functionality still a lot to do.
8204 * src/tabular.C: Various functions changed name and moved to be
8205 const functions. Added new Read and Write functions and changed
8206 lots of things so it works good with tabular-insets (also removed
8207 some stuff which is not needed anymore * hacks *).
8209 * src/lyxcursor.h: added operators == and != which just look if
8210 par and pos are (not) equal.
8212 * src/buffer.C (latexParagraphs): inserted this function to latex
8213 all paragraphs form par to endpar as then I can use this too for
8216 * src/text2.C (SetLayout): Changed this to use a cursor this is needed
8217 so that I can call this to from text insets with their own cursor.
8219 * src/buffer.C (makeLaTeXFile): added the output of one \n after the
8220 output off all paragraphs (because of the fix below)!
8222 * src/paragraph.C (TeXOnePar): removed output of \n when we are in
8223 the very last paragraph (this could be also the last paragraph of an
8226 * src/texrow.h: added rows() call which returns the count-variable.
8228 2000-05-03 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
8230 * lib/lyxrc.example: fix examples for exporting SGML to HTML.
8232 * lib/configure.m4: better autodetection of DocBook tools.
8234 2000-04-28 Lars Gullik Bjønnes <larsbj@lyx.org>
8236 * src/lyx_main.C (easyParse): use lyxerr instead of cerr.
8238 * src/lyx_cb.C: add using std::reverse;
8240 * src/LaTeX.C (run): on error always run deleteFilesOnError before
8243 * src/LaTeX.[Ch] (deleteFilesOnError): new method. unlinks some
8244 selected files. Should fix repeated errors from generated files.
8246 2000-04-27 Dekel Tsur <dekel@math.tau.ac.il>
8248 * src/lyx_cb.C (TocUpdateCB): Reverse strings for Hebrew paragraphs
8250 * src/spellchecker.C (RunSpellChecker): Reverse Hebrew strings in
8251 the spellchecker popup.
8253 * lib/lyxrc.example: Removed the \number_inset section
8255 2000-04-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8257 * src/insets/figinset.C (various): Use IsFileReadable() to make
8258 sure that the file actually exist. Relying on ghostscripts errors
8259 is a bad idea since they can lead to X server crashes.
8261 2000-04-27 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
8263 * intl/loadmsgcat.c (_nl_load_domain): pass O_BINARY as flag to
8266 * lib/lyxrc.example: smallish typo in description of
8267 \view_dvi_paper_option
8269 2000-04-26 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
8272 * src/lyxfunc.C: doImportHelper to factor out common code of the
8273 various import methods. New functions doImportASCIIasLines,
8274 doImportASCIIasParagraphs, doImportLaTeX, doImportNoWeb,
8275 doImportLinuxDoc for the format specific parts.
8278 * buffer.C: Dispatch returns now a bool to indicate success
8281 * lyx_gui.C: Add getLyXView() for member access
8283 * lyx_main.C: Change logic for batch commands: First try
8284 Buffer::Dispatch (possibly without GUI), if that fails, use
8287 * lyx_main.C: Add support for --import command line switch.
8288 Now 'lyx --import ascii file.txt' opens the GUI with file.txt loaded.
8289 Available Formats: Everything accepted by 'buffer-import <format>'
8291 2000-04-27 Lars Gullik Bjønnes <larsbj@lyx.org>
8293 * src/lyx_gui.C (create_forms): small oneliner from Garst to have
8296 * src/lyx_cb.C (ScreenApplyCB): clear the textcache so that the
8297 documents will be reformatted upon reentry.
8299 2000-04-27 Juergen Vigna <jug@sad.it>
8301 * src/CutAndPaste.C (pasteSelection): last paragraph was not returned
8302 correctly only last pos this was a bug.
8304 2000-04-26 Lars Gullik Bjønnes <larsbj@lyx.org>
8306 * release of lyx-1.1.5pre1
8308 2000-04-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8310 * src/insets/insettabular.[Ch]: fix the Clone() declaration.
8312 * src/menus.C: revert the change of naming (Figure->Graphic...)
8313 from 2000-04-11. It was incomplete and bad.
8315 * src/LColor.[Ch]: add LColor::depthbar.
8316 * src/text.C (GetVisibleRow): use it.
8318 * README: update the languages list.
8320 2000-04-25 Dekel Tsur <dekel@math.tau.ac.il>
8322 * src/text.C (GetVisibleRow): show the depth of paragraphs using
8325 2000-04-26 Lars Gullik Bjønnes <larsbj@lyx.org>
8327 * README: remove sections that were just wrong.
8329 * src/text2.C (GetRowNearY): remove currentrow code
8331 * src/text.C (GetRow): remove currentrow code
8333 * src/screen.C (Update): rewritten a bit.
8334 (SmallUpdate): removed func
8336 * src/lyxtext.h (text_status): removed NEED_LITTLE_REFRESH, never
8338 (FullRebreak): return bool
8339 (currentrow): remove var
8340 (currentrow_y): ditto
8342 * src/lyxscreen.h (Draw): change arg to unsigned long
8343 (FitCursor): return bool
8344 (FitManualCursor): ditto
8345 (Smallpdate): remove func
8346 (first): change to unsigned long
8347 (DrawOneRow): change second arg to long (from long &)
8348 (screen_refresh_y): remove var
8349 (scree_refresh_row): ditto
8351 * src/lyxrow.h: change baseline to usigned int from unsigned
8352 short, this brings some implicit/unsigned issues out in the open.
8354 * src/lyxfunc.C (moveCursorUpdate): update(0) == update(-2) change
8356 (Dispatch): don't call updateScrollbar after fitCursor. Use update
8357 instead of smallUpdate.
8359 * src/lyxcursor.h: change y to unsigned long
8361 * src/buffer.h: don't call updateScrollbar after fitcursor
8363 * src/buffer.C (parseSingleLyXformat2Token): move variables to
8364 where they are used. Removed "\\direction", this was not present
8365 in 1.1.4 and is already obsolete. Commented out some code that I
8366 believe to never be called.
8367 (runLiterate): don't call updateScrollbar after fitCursor
8369 (buildProgram): ditto
8372 * src/WorkArea.h (workWidth): change return val to unsigned
8375 (redraw): remove the button redraws
8376 (setScrollbarValue): change for scrollbar
8377 (getScrollbarValue): change for scrollbar
8378 (getScrollbarBounds): change for scrollbar
8380 * src/WorkArea.C (C_WorkArea_up_cb): removed func
8381 (C_WorkArea_down_cb): removed func
8382 (WorkArea): use fl_add_scrollbar instead of two buttons and a slider.
8383 (resize): change for scrollbar
8384 (setScrollbar): ditto
8385 (setScrollbarBounds): ditto
8386 (setScrollbarIncrements): ditto
8387 (up_cb): removed func
8388 (down_cb): removed func
8389 (scroll_cb): change for scrollbar
8390 (work_area_handler): ditto
8392 * src/BufferView_pimpl.C (fitCursor): only call updateScrollbar
8393 when FitCursor did something.
8394 (updateScrollbar): some unsigned changes
8395 (downCB): removed func
8396 (scrollUpOnePage): removed func
8397 (scrollDownOnePage): remvoed func
8398 (workAreaMotionNotify): don't call screen->FitCursor but use
8399 fitCursor instead. and bool return val
8400 (workAreaButtonPress): ditto
8401 (workAreaButtonRelease): some unsigned changes
8402 (checkInsetHit): ditto
8403 (workAreaExpose): ditto
8404 (update): parts rewritten, comments about the signed char arg added
8405 (smallUpdate): removed func
8406 (cursorPrevious): call needed updateScrollbar
8409 * src/BufferView2.C (allFloats): don't call updateScrollbar after
8412 * src/BufferView.[Ch] (upCB): removed func
8413 (downCB): removed func
8414 (smallUpdate): removed func
8416 2000-04-25 Lars Gullik Bjønnes <larsbj@lyx.org>
8418 * src/lyxtext.h src/text.C src/text2.C: removed support for the
8419 currentrow, currentrow_y optimization. This did not help a lot and
8420 if we want to do this kind of optimization we should rather use
8421 cursor.row instead of the currentrow.
8423 * src/buffer.C (parseSingleLyXformat2Token): fixed mistake in
8424 buffer spacing and klyx spacing support.
8426 2000-04-25 Dekel Tsur <dekel@math.tau.ac.il>
8428 * src/spellchecker.C (RunSpellChecker): Speedup spellchecking by
8431 2000-04-26 Juergen Vigna <jug@sad.it>
8433 * src/insets/figinset.C: fixes to Lars sstream changes!
8435 2000-04-23 Dekel Tsur <dekel@math.tau.ac.il>
8437 * A lot of files: Added Ascii(ostream &) methods to all inset
8438 classes. Used when exporting to ASCII.
8440 * src/buffer.C (writeFileAscii,RoffAsciiTable)
8441 * src/paragraph.C (RoffContTableRows): Use the Ascii() methods
8444 * src/text2.C (ToggleFree): Disabled implicit word selection when
8445 there is a change in the language
8447 * src/insets/insetspecialchar.C (Linuxdoc,DocBook): Fixed a bug:
8448 no output was generated for end-of-sentence inset.
8450 * src/insets/lyxinset.h
8453 * src/paragraph.C: Removed the insetnumber code
8455 * src/text.C (SelectWordWhenUnderCursor): Cleaned the code.
8457 2000-04-22 Lars Gullik Bjønnes <larsbj@lyx.org>
8459 * src/buffer.C (parseSingleLyXformat2Token): remove no_isolatin1,
8460 no_babel and no_epsfig completely from the file.
8461 (parseSingleLyXformat2Token): add handling for per-paragraph
8462 spacing as written by klyx.
8464 * src/insets/figinset.C: applied patch by Andre. Made it work with
8467 2000-04-20 Juergen Vigna <jug@sad.it>
8469 * src/insets/insettext.C (cutSelection):
8470 (copySelection): Fixed with selection from right to left.
8471 (draw): now the rows are not recalculated at every draw.
8472 (computeTextRows): for now reset the inset-owner here (this is
8473 important for an undo or copy where the inset-owner is not set
8476 * src/BufferView_pimpl.C (workAreaMotionNotify): when passing the
8477 motion to the_locking_inset screen->first was forgotten, this was
8478 not important till we got multiline insets.
8480 2000-04-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8482 * src/mathed/formulamacro.C (Latex): remove CHECK comment, since
8483 code seems to be alright (it is code changed by Dekel, and the
8484 intent is indeed that all macros should be defined \protect'ed)
8486 * NEWS: a bit of reorganisation of the new user-visible features.
8488 2000-04-19 Juergen Vigna <jug@sad.it>
8490 * src/insets/insettext.C (init): using a LyXCursor now for cursor
8491 position. Set the inset_owner of the used paragraph so that it knows
8492 that it is inside an inset. Fixed cursor handling with mouse and
8493 cursor keys. Fixed wrong timed inset redraws and lots of other changes
8494 and cleanups to make TextInsets work better.
8496 * src/insets/insettext.h: Using a LyXCursor now. Added a clear() call.
8497 Changed parameters of various functions and added LockInsetInInset().
8499 * src/insets/insettext.C:
8501 * src/insets/insetcollapsable.h:
8502 * src/insets/insetcollapsable.C:
8503 * src/insets/insetfoot.h:
8504 * src/insets/insetfoot.C:
8505 * src/insets/insetert.h:
8506 * src/insets/insetert.C: cleaned up the code so that it works now
8507 correctly with insettext.
8509 * src/insets/inset.C:
8510 * src/insets/lyxinset.h: inserted inset_owner and some more changes so
8511 that insets in insets are supported right.
8514 * src/table.C: lots of changes for use with inset tabular (and cleanup)
8516 * src/paragraph.C: some small fixes
8518 * src/debug.h: inserted INSETS debug info
8520 * src/lyxfunc.C (Dispatch): added code for InsetTabular and some inset
8521 fixes (f.ex. calling LFUN_DOWN if exiting inset with LFUN_DOWN).
8523 * src/commandtags.h:
8524 * src/LyXAction.C: insert code for InsetTabular.
8526 * src/BufferView_pimpl.C (workAreaMotionNotify): do return always if
8527 not Button1MotionMask.
8528 (workAreaButtonRelease): send always a InsetButtonRelease event to
8530 (checkInsetHit): some setCursor fixes (always with insets).
8532 * src/BufferView2.C (lockInset): returns a bool now and extended for
8533 locking insets inside insets.
8534 (showLockedInsetCursor): it is important to have the cursor always
8535 before the locked inset.
8536 (fitLockedInsetCursor): forgot adding of InsetInInsetY()-offset.
8538 * src/BufferView.h: made lockInset return a bool.
8540 * src/lyxtext.h: inserted function SetCursor(LyXCursor, ...).
8542 * src/text2.C (SetCursor): This now has a version with a LyXCursor
8543 that is used also internally but can be called as public to have back
8544 a cursor pos which is not set internally.
8545 (SetCursorIntern): Changed to use above function.
8547 * src/CutAndPaste.C (DeleteBuffer): forgot to inizialize textclass
8549 2000-04-19 Lars Gullik Bjønnes <larsbj@lyx.org>
8554 * NEWS: updated for prerelease of 1.1.5. Please comment and send
8555 patches for things that should be in or should be changed.
8557 * src/* [insetfiles]: change "usigned char fragile" to bool
8558 fragile. There was only one point that could that be questioned
8559 and that is commented in formulamacro.C. Grep for "CHECK".
8561 * src/CutAndPaste.C (getBufferTextClass): unused func, removed.
8562 (DeleteBuffer): take it out of CutAndPaste and make it static.
8564 2000-04-17 Lars Gullik Bjønnes <larsbj@lyx.org>
8566 * src/paragraph.C (TeXOnePar): use the new method in Spacing to
8567 output the spacing envir commands. Also the new commands used in
8568 the LaTeX output makes the result better.
8570 * src/Spacing.C (writeEnvirBegin): new method
8571 (writeEnvirEnd): new method
8573 2000-04-18 Juergen Vigna <jug@sad.it>
8575 * src/CutAndPaste.C: made textclass a static member of the class
8576 as otherwise it is not accesed right!!!
8578 2000-04-17 Dekel Tsur <dekel@math.tau.ac.il>
8580 * forms/layout_forms.fd
8581 * src/layout_forms.h
8582 * src/layout_forms.C (create_form_form_character)
8583 * src/lyx_cb.C (UserFreeFont)
8584 * src/lyx_gui.C (create_forms): Added GUI support for multi-lingual
8585 documents (in the layout->character popup).
8587 2000-04-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8589 * src/spellchecker.C (create_ispell_pipe): fix a bug where
8590 \spell_command was in fact not honored (from Kevin Atkinson).
8592 * src/lyx_gui.C (~LyXGUI): make sure lyxViews is deleted when
8595 * src/lyx_gui.h: make lyxViews private (Angus)
8597 2000-04-15 Dekel Tsur <dekel@math.tau.ac.il>
8599 * src/mathed/math_write.C
8600 (MathMatrixInset::Write) Put \protect before \begin{array} and
8601 \end{array} if fragile
8602 (MathParInset::Write): Put \protect before \\ if fragile
8604 2000-04-15 Lars Gullik Bjønnes <larsbj@lyx.org>
8606 * src/lyx_gui.C (LyXGUI): initialize the LyXColorHandler. The
8607 initialization if the LyXColorHandler must be done after the
8608 connections to the XServer has been established.
8610 * src/insets/figinset.C (runqueue): change the grabing a bit. Also
8611 get the background pixel from the lyxColorhandler so that the
8612 figures are rendered with the correct background color.
8613 (NextToken): removed functions.
8614 (GetPSSizes): use ifs >> string instead of NextToken.
8616 * src/Painter.[Ch]: the color cache moved out of this file.
8618 * src/ColorHandler.[Ch]: new files. Holds the gc cache for color
8621 2000-04-14 Lars Gullik Bjønnes <larsbj@lyx.org>
8623 * src/WorkArea.C (work_area_handler): call BufferView::enterView
8624 and Buffer::leaveView when FL_ENTER and FL_LEAVE.
8626 * src/BufferView.C (enterView): new func
8627 (leaveView): new func
8629 * src/BufferView_pimpl.C (enterView): new func, sets xterm cursor
8631 (leaveView): new func, undefines xterm cursor when approp.
8633 * src/bufferview_funcs.C: moved SetXCursor to BufferView_pimp.C
8634 (AllowInput): delete the Workarea cursor handling from this func.
8636 * src/Painter.C (underline): draw a slimer underline in most cases.
8638 * src/lyx_main.C (error_handler): use extern "C"
8640 2000-04-12 Lars Gullik Bjønnes <larsbj@lyx.org>
8642 * src/insets/figinset.C (DocBook): small patch from Jose (jamatos)
8643 sent directly to me.
8645 * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
8646 to the list by Dekel.
8648 * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
8651 * src/bufferview_funcs.[Ch]: two new files, moved several of the
8652 methods from lyx_cb.here.
8654 * src/lyx_cb.C: in addition to the above; removed input_prohibited
8657 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
8659 * src/lyx_cb.[Ch]: made several functions take a BufferView* arg
8660 instead of using current_view directly.
8662 * src/lyxfunc.C (Dispatch): the paragraph-spacing implementation
8664 * src/LyXAction.C (init): add the paragraph-spacing command.
8666 * src/commandtags.h: add enum for LFUN_PARAGRAPH_SPACING
8668 * src/buffer.C (parseSingleLyXformat2Token): read the paragraph spacing
8670 * src/lyx_cb.C (CurrentState): output a string when the spacing is
8671 different from the documents.
8673 * src/text.C (SetHeightOfRow): take paragraph spacing into
8674 account, paragraph spacing takes precedence over buffer spacing
8675 (GetVisibleRow): ditto
8677 * src/paragraph.C (writeFile): output the spacing parameter too.
8678 (validate): set the correct features if spacing is used in the
8680 (Clear): set spacing to default
8681 (MakeSameLayout): spacing too
8682 (HasSameLayout): spacing too
8683 (SetLayout): spacing too
8684 (TeXOnePar): output the spacing commands
8686 * src/lyxparagraph.h: added a spacing variable for use with
8687 per-paragraph spacing.
8689 * src/Spacing.h: add a Default spacing and a method to check if
8690 the current spacing is default. also added an operator==
8692 * src/text2.C (DeleteEmptyParagraphMechanism): added a
8695 2000-04-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8697 * src/lyxserver.C (callback): fix dispatch of functions
8699 * src/insets/insetlatexaccent.C (checkContents): turn bogus
8700 printf() into lyxerr call.
8702 * src/tex-strings.C (tex_fonts): add "pslatex" to the choice of
8705 * src/menus.C (ShowInsertMenu): rename "Figure" to "Graphic",
8706 "Table" to "Table Box", "Float" to "Floating Material"; deletes
8707 the "Float" from each of the subitems.
8708 (ShowHelpMenu): add entry for "FAQ" and "TOC".
8710 * src/support/DebugStream.h: add an #ifdef to work around a gcc
8711 2.8.x compiler error. Yes, I know, gcc 2.8.1 is bad, but I
8712 documented the change so that the workaround can be nuked later.
8714 * src/lyx_gui_misc.C (getScreenDPI): new function. Code moved from
8717 * src/lyxlex_pimpl.C (next): do not re-declare the default value
8719 * src/buffer.C (getLatexName): ditto
8720 (setReadonly): ditto
8722 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
8724 * src/LaTeXFeatures.h: add a const reference to BufferParams, to
8725 avoid some uses of current_view. Added also a bufferParams()
8726 method to get at this.
8728 * src/lyxtext.h: changed params->buffer and paramters->bparams.
8730 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
8732 * src/lyxparagraph.[Ch]: removed
8733 operator<(LyXParagraph::InsetTable..., added a struct matchIT
8734 with operators used by lower_bound and
8735 upper_bound in InsetTable's
8736 Make struct InsetTable private again. Used matchpos.
8738 2000-04-08 Dekel Tsur <dekel@math.tau.ac.il>
8740 * src/lyx_cb.C (DocumentApplyCB): When changing the language of the
8741 document, the language of existing text is changed (unless the
8742 document is multi-lingual)
8744 * src/buffer.C (ChangeLanguage,isMultiLingual) New methods.
8746 * src/paragraph.C (ChangeLanguage,isMultiLingual) New methods.
8748 * A lot of files: A rewrite of the Right-to-Left support.
8750 2000-04-10 Juergen Vigna <jug@sad.it>
8752 * src/BufferView2.C (showLockedInsetCursor): small bugfix for
8753 misplaced cursor when inset in inset is locked.
8755 * src/insets/insettext.C (LocalDispatch): small fix so that a
8756 BREAKLINE is not inserted if we don't permit it with autBreakRows.
8758 * src/insets/insetfoot.C (GetDrawFont): implemented this as the
8759 footnote font should be decreased in size twice when displaying.
8761 * src/insets/insettext.C (GetDrawFont): inserted this function as
8762 the drawing-font may differ from the real paragraph font.
8764 * src/lyxfunc.C (processKeyEvent): fixed Esc-handling when unlocking
8765 insets (inset in inset!).
8767 * src/insets/insetfoot.C (InsertInsetAllowed): implemented the below
8768 function here because we don't want footnotes inside footnotes.
8770 * src/insets/insettext.C (InsetText): forgot to set autoBreakRows for
8772 (init): now set the inset_owner in paragraph.C
8773 (LocalDispatch): added some resetPos() in the right position
8776 (pasteSelection): changed to use the new CutAndPaste-Class.
8778 * src/insets/lyxinset.h: inserted new function InsertInsetAllowed
8779 which tells if it is allowed to insert another inset inside this one.
8781 * src/lyx_cb.C (DocumentApplyCB): Using CutAndPaste-Class for
8782 SwitchLayoutsBetweenClasses.
8784 * src/text2.C (InsertInset): checking of the new paragraph-function
8786 (DeleteSimpleCutBuffer): removed (for now only with #ifdef) as this
8787 is not needed anymore here!
8790 (PasteSelection): redone (also with #ifdef) so that now this uses
8791 the CutAndPaste-Class.
8792 (SwitchLayoutsBetweenClasses): removed here and implemented in the
8795 * src/CutAndPaste.[Ch]: added this for clean handling of CutAndPaste
8796 from/to text/insets.
8798 * src/paragraph.C (LyXParagraph): inserted new inset_owner pointer
8799 so that the paragraph knows if it is inside an (text)-inset.
8800 (InsertFromMinibuffer): changed return-value to bool as now it
8801 may happen that an inset is not inserted in the paragraph.
8802 (InsertInsetAllowed): this checks if it is allowed to insert an
8803 inset in this paragraph.
8805 (BreakParagraphConservative):
8806 (BreakParagraph) : small change for the above change of the return
8807 value of InsertFromMinibuffer.
8809 * src/lyxparagraph.h: added inset_owner and the functions to handle
8810 this (SetInsetOwner(), InInset() and InsertInsetAllowed()).
8812 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
8814 * src/BufferView.[Ch], src/BufferView_pimpl.[Ch]: move more
8815 functions from BufferView to BufferView::Pimpl to ease maintence.
8817 * src/text2.C (DeleteEmptyParagraphMechanism): update the cursor
8818 correctly. Also use SetCursorIntern instead of SetCursor.
8820 * src/insets/insetinfo.C (draw): draw InsetInfo notes with the
8823 2000-04-08 Lars Gullik Bjønnes <larsbj@lyx.org>
8825 * src/WorkArea.C (belowMouse): manually implement below mouse.
8827 * src/*: Add "explicit" on several constructors, I added probably
8828 some unneeded ones. A couple of changes to code because of this.
8830 * src/BufferView.[Ch]: Used the "pimpl" idiom to hide more of the
8831 implementation and private parts from the users of BufferView. Not
8834 * src/lyxlex.[Ch]: Used the "pimpl" idiom to hide more of the
8835 implementation and private parts from the users of LyXLex. Not
8838 * src/BufferView_pimpl.[Ch]: new files
8840 * src/lyxlex_pimpl.[Ch]: new files
8842 * src/LyXView.[Ch]: some inline functions move out-of-line
8844 2000-04-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8846 * src/lyxparagraph.h: make struct InsetTable public.
8848 * src/support/lyxstring.h: change lyxstring::difference_type to be
8849 ptrdiff_t. Add std:: modifiers to streams.
8851 * src/font.C: include the <cctype> header, for islower() and
8854 2000-04-03 Lars Gullik Bjønnes <larsbj@lyx.org>
8856 * src/font.[Ch]: new files. Contains the metric functions for
8857 fonts, takes a LyXFont as parameter. Better separation of concepts.
8859 * src/lyxfont.[Ch]: move the metric functions to font.[Ch] several
8860 changes because of this.
8862 * src/PainterBase.[Ch] (width): remove, use the ones in font.C instead
8864 * src/*: compile with -Winline and move functions that don't
8867 * src/lyx_cb.C (stringOnlyContains): use string::find_first_not_of
8870 2000-04-02 Lars Gullik Bjønnes <larsbj@lyx.org>
8872 * src/paragraph.C (GetLabelstring): renamed from GetLabestring.
8873 (various files changed because of this)
8875 * src/Painter.C (text): fixed the drawing of smallcaps.
8877 * src/lyxfont.[Ch] (drawText): removed unused member func.
8880 * src/*.C: added needed "using" statements and "std::" qualifiers.
8882 2000-03-31 Lars Gullik Bjønnes <larsbj@lyx.org>
8884 * src/*.h: removed all use of "using" from header files use
8885 qualifier std:: instead.
8887 2000-04-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8889 * src/text.C (Backspace): some additional cleanups (we already
8890 know whether cursor.pos is 0 or not).
8892 * lib/reLyX/Makefile.am (DESTDIR): add an empty value (since
8893 automake does not provide one).
8895 * src/bmtable.h: replace C++ comments with C comments.
8897 2000-04-02 Dekel Tsur <dekel@math.tau.ac.il>
8899 * src/screen.C (ShowCursor): Change the shape of the cursor if
8900 the current language is not equal to the language of the document.
8901 (If the cursor change its shape unexpectedly, then you've found a bug)
8903 * src/insets/insettext.C (LocalDispatch, UpdateLocal) Fixed some
8906 * src/insets/insetnumber.[Ch]: New files.
8908 * src/LyXAction.C (init)
8909 * src/lyxfunc.C (dispatch): Add command number-inset-insert
8912 * src/lyxrc.C: Renamed command \auto_mathmode to \number_inset
8914 * src/lyxparagraph.h
8915 * src/paragraph.C: Changed insetlist to Vector<InsetTable>.
8916 (the vector is kept sorted).
8918 * src/text.C (GetVisibleRow): Draw selection correctly when there
8919 is both LTR and RTL text.
8921 * src/paragraph.C (Clone): Use the assignment operator for cloning,
8922 which is much faster.
8924 * src/text.C (GetVisibleRow and other): Do not draw the last space
8925 in a row if the direction of the last letter is not equal to the
8926 direction of the paragraph.
8928 * src/lyxfont.C (latexWriteStartChanges):
8929 Check that font language is not equal to basefont language.
8930 (latexWriteEndChanges): ditto
8932 * src/lyx_cb.C (StyleReset): Don't change the language while using
8933 the font-default command.
8935 * src/paragraph.C (GetFirstFontSettings): Handle correctly an
8936 empty paragraph before a footnote.
8938 * src/insets/insetcommand.C (draw): Increase x correctly.
8940 * src/screen.C (ShowCursor): Change cursor shape if
8941 current language != document language.
8943 * src/lyxfunc.C (dispatch): Added calls to owner->view()->setState()
8945 2000-03-31 Juergen Vigna <jug@sad.it>
8947 * src/paragraph.C (GetInset): commented out text[pos] = ' '
8948 (Clone): changed mode how the paragraph-data is copied to the
8949 new clone-paragraph.
8951 * src/lyxfunc.C (Dispatch): fixed small problem when calling
8952 GetInset(pos) with no inset anymore there (in inset UNDO)
8954 * src/insets/insetcommand.C (draw): small fix as here x is
8955 incremented not as much as width() returns (2 before, 2 behind = 4)
8957 2000-03-30 Juergen Vigna <jug@sad.it>
8959 * src/insets/insettext.C (InsetText): small fix in initialize
8960 widthOffset (should not be done in the init() function)
8962 2000-03-29 Amir Karger <karger@lyx.org>
8964 * lib/examples/it_ItemizeBullets.lyx: translation by
8967 * Implemented \textasciitilde and fixed a tiny bug in reLyX
8969 2000-03-29 Juergen Vigna <jug@sad.it>
8971 * src/insets/insetcollapsable.C (Clone): same as in InsetFoot
8973 * src/insets/insetfoot.C (Clone): small change as for the below
8974 new init function in the text-inset
8976 * src/insets/insettext.C (init): new function as I've seen that
8977 clone did not copy the Paragraph-Data!
8978 (LocalDispatch): Added code so that now we have some sort of Undo
8979 functionality (well actually we HAVE Undo ;)
8981 * src/text.C (Backspace): Small fix for the a | a Backspace problem
8983 2000-03-24 Dekel Tsur <dekel@math.tau.ac.il>
8985 * src/paragraph.C (AutoDeleteInsets) Fixed a bug (wrong positions
8988 2000-03-22 Lars Gullik Bjønnes <larsbj@lyx.org>
8990 * src/main.C: added a runtime check that verifies that the xforms
8991 header used when building LyX and the library used when running
8992 LyX match. Exit with a message if they don't match. This is a
8993 version number check only.
8995 * src/buffer.C (save): Don't allocate memory on the heap for
8996 struct utimbuf times.
8998 * *: some using changes, use iosfwd instead of the real headers.
9000 * src/lyxfont.C use char const * instead of string for the static
9001 strings. Rewrite some functions to use sstream.
9003 2000-03-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9005 * src/text.C (Backspace): hopefully fix the dreaded backaspace
9008 2000-03-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9010 * lib/layouts/svjog.layout: new file, for Springer-Verlag Journal
9011 of Geodesy (from Martin Vermeer)
9013 * lib/layouts/svjour.inc: include file for the Springer svjour
9014 class. It can be used to support journals other than JoG.
9016 * lib/Makefile.am: use $(DESTDIR) make variable (from Arkadiusz
9017 Miskiewicz <misiek@pld.org.pl>)
9018 * lib/reLyX/Makefile.am: ditto.
9020 2000-03-27 Juergen Vigna <jug@sad.it>
9022 * src/insets/insettext.C: added Cut/Copy/Paste inside insets,
9023 also some modifications with operations on selected text.
9025 * src/BufferView.C (checkInsetHit): Now hopefully fixed all the
9026 problems with clicking on insets (last famous words ;)
9028 * src/insets/insetcommand.C (draw):
9029 (width): Changed to have a bit of space before and after the inset so
9030 that the blinking cursor can be seen (otherwise it was hidden)
9032 2000-03-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9034 * config/gettext.m4 (AM_WITH_NLS): fix a gettext bug where -lintl
9035 would not be added to the link list when an installed gettext (not
9036 part of libc) is found.
9038 2000-03-24 Juergen Vigna <jug@sad.it>
9040 * src/insets/insetcollapsable.C (Edit):
9041 * src/mathed/formula.C (InsetButtonRelease):
9042 (InsetButtonPress): fixed for new handling of ButtonPress/Release
9045 * src/BufferView.C (workAreaButtonPress):
9046 (workAreaButtonRelease):
9047 (checkInsetHit): Finally fixed the clicking on insets be handled
9050 * src/insets/insetert.C (Edit): inserted this call so that ERT
9051 insets work always with LaTeX-font
9053 2000-03-21 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
9055 * src/lyx_main.C (easyParse): Removed misplaced gui=false which
9056 caused lyx to startup with no GUI in place, causing in a crash
9057 upon startup when called with arguments.
9059 2000-03-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9061 * src/FontLoader.C: better initialization of dummyXFontStruct.
9063 2000-03-20 José Abílio Matos <jamatos@lyx.org>
9065 * src/lyxrc.[Ch] Removed \sgml_extra_options, added 6 other flags
9066 for linuxdoc and docbook import and export format options.
9068 * lib/lyxrc.example Example of default values for the previous flags.
9070 * src/lyx_cb.C Use those flags instead of the hardwired values for
9071 linuxdoc and docbook export.
9073 * src/lyxfunc.[Ch] Added HTML export for linuxdoc and docbook, added
9076 * src/menus.C Added menus entries for the new import/exports formats.
9078 2000-03-09 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
9080 * src/lyxrc.*: Added support for running without Gui
9083 * src/FontLoader.C: sensible defaults if no fonts are needed
9085 * src/lyx_cb.C: New function ShowMessage (writes either to the
9086 minibuffer or cout in case of no gui
9087 New function AskOverwrite for common stuff
9088 Consequently various changes to call these functions
9090 * src/lyx_main.C: allow gui = false and handle lyxrc \use_gui false
9091 wild guess at sensible screen resolution when having no gui
9093 * src/lyxfont.C: no gui, no fonts... set some defaults
9095 2000-03-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9097 * src/LColor.C: made the command inset background a bit lighter.
9099 2000-03-20 Hartmut Goebel <goebel@noris.net>
9101 * lib/layouts/stdstruct.inc: split into stdtitle.inc and
9102 stdstruct.inc. Koma-Script added some title elements which
9103 otherwise have been listed below "bibliography". This split allows
9104 adding title elements to where they belong.
9106 * lib/layouts/scrclass.inc: changed to include stdtitle.inc, then
9107 define the additional title elements and then include
9110 * many other layout files: changed to include stdtitle.inc just
9111 before stdstruct.inc.
9113 2000-03-18 Dekel Tsur <dekel@math.tau.ac.il>
9115 * src/buffer.C: (save) Added the option to store all backup files
9116 in a single directory
9118 * src/lyxrc.[Ch]: Added variable \backupdir_path
9120 * lib/lyxrc.example: Added descriptions of recently added variables
9122 * src/insets/insetbib.[Ch]: Fixed few bugs (crash when editing a
9123 bibtex inset, not closing the bibtex popup when deleting the inset)
9125 2000-03-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9127 * src/lyx_cb.C: add a couple using directives.
9129 2000-03-17 José Abílio Matos <jamatos@lyx.org>
9130 * src/lyx_cb.C (RunLinuxDoc) Removed the flag==-1 option for linuxdoc
9131 import based on the filename.
9133 * src/bufferlist.C () Removed the call to RunLinuxDoc where a linuxdoc
9134 file would be imported at start, if the filename where of a sgml file.
9136 * src/support/filetools.C (IsSGMLfilename) Removed, no longer needed.
9138 * src/support/filetools.h (IsSGMLfilename) Removed, no longer needed.
9140 2000-03-16 Dekel Tsur <dekel@math.tau.ac.il>
9141 * src/lyxfont.h Replaced the member variable bits.direction by the
9142 member variable lang. Made many changes in other files.
9143 This allows having a multi-lingual document
9145 * src/lyxfunc.C, src/lyx_cb.C Added a new command "language <l>"
9146 that change the current language to <l>.
9147 Removed the command "font-rtl"
9149 * src/buffer.C Changed LYX_FORMAT to 2.16 (as I changed the file
9150 format for Hebrew documents)
9152 * src/lyxrc.C, src/lyxfunc.C Added a new lyxrc command "auto_mathmode"
9153 When auto_mathmode is "true", pressing a digit key in normal mode
9154 will cause entering into mathmode.
9155 If auto_mathmode is "rtl" then this behavior will be active only
9156 when writing right-to-left text.
9158 * src/text2.C (InsertStringA) The string is inserted using the
9161 * src/paragraph.C (GetEndLabel) Gives a correct result for
9162 footnote paragraphs.
9164 * src/paragraph.C (PreviousBeforeFootnote) Fixed a small bug
9166 2000-03-16 Lars Gullik Bjønnes <larsbj@lyx.org>
9168 * src/text.C (Backspace): move RemoveParagraph and RemoveRow in
9169 front of PasteParagraph. Never insert a ' '. This should at least
9170 fix some cause for the segfaults that we have been experiencing,
9171 it also fixes backspace behaviour slightly. (Phu!)
9173 * src/support/lstrings.C (compare_no_case): some change to make it
9174 compile with gcc 2.95.2 and stdlibc++-v3
9176 * src/text2.C (MeltFootnoteEnvironment): change type o
9177 first_footnote_par_is_not_empty to bool.
9179 * src/lyxparagraph.h: make text private. Changes in other files
9181 (fitToSize): new function
9182 (setContentsFromPar): new function
9183 (clearContents): new function
9184 (SetChar): new function
9186 * src/paragraph.C (readSimpleWholeFile): deleted.
9188 * src/lyx_cb.C (InsertAsciiFile): don't use a LyXParagraph to hold
9189 the file, just use a simple string instead. Also read the file in
9190 a more maintainable manner.
9192 * src/text2.C (InsertStringA): deleted.
9193 (InsertStringB): deleted.
9195 2000-03-15 Lars Gullik Bjønnes <larsbj@lyx.org>
9197 * src/text2.C (DeleteEmptyParagraphMechanism): don't run,
9198 RedoParagraphs from the doublespace handling part, just set status
9199 to NEED_MORE_REFRESH. Also don't update cursor position (should be
9200 done, but perhaps not like this.)
9202 2000-03-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9204 * src/text2.C (InsertStringA): don't forget to insert a META_INSET
9205 character when inserting an inset.
9207 2000-03-12 Lars Gullik Bjønnes <larsbj@lyx.org>
9209 * src/bufferparams.C (readLanguage): now takes "default" into
9212 * src/lyx_main.C (LyX): remove the setup of lyxrc. (new)
9213 also initialize the toplevel_keymap with the default bindings from
9216 * src/buffer.C (Buffer): remove lyxrc from the parameters.
9218 * all files using lyxrc: have lyxrc as a real variable and not a
9219 pointer. remove all extern LyXRC * lyxrc. The equiv to this is
9222 * src/lyxrc.C: remove double call to defaultKeyBindings
9224 * src/toolbar.[Ch]: Let the ToolbarDefaults handle the reading of
9225 toolbar defauls using lyxlex. Remove enums, structs, functions
9228 * src/lyxrc.h: use ToolbarDefaults instead of Toolbar for storing
9229 toolbar defaults. Also store default keybindings in a map.
9231 * src/ToolbarDefaults.[Ch]: New file. This class is used for
9232 storing the toolbar defaults without any xforms dependencies.
9234 * src/insets/figinset.C: patch posted to list by Andre Poenitz
9235 applied. Changed to use iterators.
9237 2000-03-11 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
9239 * development/lyx.spec.in: Fix to ``unset LINGUAS'' line for
9240 systems that don't have LINGUAS set to begin with.
9242 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
9244 * src/text2.C (DeleteEmptyParagraphMechanism): small fix posted to
9245 the list by Dekel Tsur.
9247 2000-03-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9249 * src/insets/insetgraphics.C (GraphicxCB): declare with "C" linkage.
9250 * src/insets/form_graphics.C: ditto.
9252 * src/insets/inseturl.C (Latex): the free_spc argument is not used.
9254 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
9256 * src/bufferparams.C (readLanguage): use the new language map
9258 * src/intl.C (InitKeyMapper): use the new language map
9260 * src/lyx_gui.C (create_forms): use the new language map
9262 * src/language.[Ch]: New files. Used for holding the information
9263 about each language. Now! Use this new language map enhance it and
9264 make it really usable for our needs.
9266 2000-03-09 Dekel Tsur <dekel@math.tau.ac.il>
9268 * screen.C (ShowCursor): Removed duplicate code.
9269 (ShowManualCursor): Support for 3 cursor shapes: Bar (default),
9270 L (LTR text in RTL document), and reversed-L (RTL text in LTR document)
9272 * src/text.C (NextBreakPoint,Fill): Moved declaration of left_margin
9275 * src/text.C Added TransformChar method. Used for rendering Arabic
9276 text correctly (change the glyphs of the letter according to the
9277 position in the word)
9282 * src/lyxrc.C Added lyxrc command {language_command_begin,
9283 language_command_end,language_command_ltr,language_command_rtl,
9284 language_package} which allows the use of either arabtex or Omega
9287 * src/lyx_gui.C (init)
9289 * src/lyxrc.C Added lyxrc command screen_font_encoding_menu. Allows
9290 to use encoding for menu fonts which is different than the encoding
9293 * src/buffer.C (makeLaTeXFile): If params.language = "default",
9294 do not load the babel package.
9295 To write an English document with Hebrew/Arabic, change the document
9296 language to "english".
9298 * src/text2.C (SetCounter): Fixed appendix labels for Hebrew document
9299 (alphaCounter): changed to return char
9300 (loweralphaCounter, hebrewCounter, romanCounter): New functions
9302 * lib/lyxrc.example Added examples for Hebrew/Arabic
9305 * src/layout.C Added layout command endlabeltype
9307 * src/paragraph.C Added GetEndLabel(),LastPhysicalPar() const
9309 * src/text.C (GetVisibleRow): Draw a box at the end of proof layout
9311 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
9313 * src/mathed/math_delim.C (search_deco): return a
9314 math_deco_struct* instead of index.
9316 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
9318 * All files with a USE_OSTREAM_ONLY within: removed all code that
9319 was unused when USE_OSTREAM_ONLY is defined.
9321 * src/support/lyxalgo.h (sorted): rewrote to use plain '<' instead
9322 of any less. Removed header and using.
9324 * src/text.C (GetVisibleRow): draw the string "Page Break
9325 (top/bottom)" on screen when drawing a pagebreak line.
9327 2000-03-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9329 * lib/doc/LaTeXConfig.lyx.in: add description of textclass llncs.
9331 * src/mathed/math_macro.C (draw): do some cast magic.
9334 * src/mathed/math_defs.h: change byte* argument to byte const*.
9336 * src/mathed/formulamacro.[Ch]: add free_spc to Latex() method.
9338 * src/insets/insetfoot.[Ch]: Clone() always returns an Inset* (well I
9339 know it is right to return InsetFoot* too, but cxx does not like
9342 * src/insets/insetcollapsable.[Ch] (Clone): make const.
9344 * development/lyx.spec.in: unset LINGUAS to avoid i18n problems.
9346 * src/mathed/math_delim.C: change == to proper assignment.
9348 2000-03-09 Juergen Vigna <jug@sad.it>
9350 * src/insets/insettext.C (setPos): fixed various cursor positioning
9351 problems (via mouse and cursor-keys)
9352 (LocalDispatch): added posibility to add a Ctrl-Enter inside a text
9353 inset (still a small display problem but it works ;)
9355 * src/insets/insetcollapsable.C (draw): added button_top_y and
9356 button_bottom_y to have correct values for clicking on the inset.
9358 * src/support/lyxalgo.h: commented out 'using std::less'
9360 2000-03-08 Juergen Vigna <jug@sad.it>
9362 * src/insets/insetcollapsable.C (InsetButtonRelease): Now a
9363 Button-Release event closes as it is alos the Release-Event
9366 * src/lyxfunc.C (Dispatch): forgot a break in the LFUN_INSET_ERT
9368 2000-03-07 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
9370 * lib/layouts/literate-scrap.inc: Fixed initial comment. Now we
9371 can add multiple spaces in Scrap (literate programming) styles...
9372 which, by the way, is how I got hooked on LyX to begin with.
9374 * src/mathed/formula.C (Write): Added dummy variable to an
9375 inset::Latex() call.
9376 (Latex): Add free_spacing boolean to inset::Latex()
9378 * src/mathed/formula.h (Latex): Added free_spacing boolean arg.
9380 * src/insets/lyxinset.h: Changed definition of the inset::Latex()
9381 virtual function to include the free_spacing boolean from
9382 the containing paragraph's style.
9384 * src/insets/inseturl.C, src/insets/inseturl.h (Latex):
9385 Added free_spacing boolean arg to match inset.h
9387 * src/insets/insettext.C, src/insets/insettext.h (Latex):
9388 Added free_spacing boolean arg to match inset.h
9390 * src/insets/insetspecialchar.C, src/insets/insetspecialchar.h (Latex):
9391 Added free_spacing boolean and made sure that if in a free_spacing
9392 paragraph, that we output normal space if there is a protected space.
9394 * src/insets/insetref.C, src/insets/insetref.h (Latex):
9395 Added free_spacing boolean arg to match inset.h
9397 * src/insets/insetquotes.C, src/insets/insetquotes.h (Latex):
9398 Added free_spacing boolean arg to match inset.h
9400 * src/insets/insetparent.C, src/insets/insetparent.h (Latex):
9401 Added free_spacing boolean arg to match inset.h
9403 * src/insets/insetlatexaccent.C, src/insets/insetlatexaccent.h (Latex):
9404 Added free_spacing boolean arg to match inset.h
9406 * src/insets/insetlatex.C, src/insets/insetlatex.h (Latex):
9407 Added free_spacing boolean arg to match inset.h
9409 * src/insets/insetlabel.C, src/insets/insetlabel.h (Latex): Added
9410 free_spacing boolean arg to match inset.h
9412 * src/insets/insetinfo.C, src/insets/insetinfo.h (Latex):
9413 Added free_spacing boolean arg to match inset.h
9415 * src/insets/insetinclude.C, src/insets/insetinclude.h (Latex):
9416 Added free_spacing boolean arg to match inset.h
9418 * src/insets/insetgraphics.C, src/insets/insetgraphics.h (Latex):
9419 Added free_spacing boolean arg to match inset.h
9421 * src/insets/inseterror.C, src/insets/inseterror.h (Latex):
9422 Added free_spacing boolean arg to match inset.h
9424 * src/insets/insetcommand.C, src/insets/insetcommand.h (Latex):
9425 Added free_spacing boolean arg to match inset.h
9427 * src/insets/insetbib.C, src/insets/insetbib.h (Latex): Added
9428 free_spacing boolean arg to match inset.h
9430 * src/insets/figinset.C, src/insets/figinset.h (Latex): Added
9431 free_spacing boolean arg to match inset.h
9433 * src/text2.C (DeleteEmptyParagraphMechanism): Fix this to
9434 ignore free_spacing paragraphs. The user's spaces are left
9437 * src/text.C (InsertChar): Fixed the free_spacing layout
9438 attribute behavior. Now, if free_spacing is set, you can
9439 add multiple spaces in a paragraph with impunity (and they
9440 get output verbatim).
9441 (SelectSelectedWord): Added dummy argument to inset::Latex()
9444 * src/paragraph.C (TeXOnePar): Added dummy args to inset::Latex(...)
9447 * src/lyxfunc.C (Dispatch): Hard-spaces input in free_spacing
9448 paragraph layouts now only input a simple space instead.
9449 Special character insets don't make any sense in free-spacing
9452 * src/buffer.C (parseSingleLyXformat2Token): Code to convert
9453 hard-spaces in the *input* file to simple spaces if the layout
9454 is free-spacing. This converts old files which had to have
9455 hard-spaces in free-spacing layouts where a simple space was
9457 (writeFileAscii): Added free_spacing check to pass to the newly
9458 reworked inset::Latex(...) methods. The inset::Latex() code
9459 ensures that hard-spaces in free-spacing paragraphs get output
9460 as spaces (rather than "~").
9462 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
9464 * src/mathed/math_delim.C (draw): draw the empty placeholder
9465 delims with a onoffdash line.
9466 (struct math_deco_compare): struct that holds the "functors" used
9467 for the sort and the binary search in math_deco_table.
9468 (class init_deco_table): class used for initial sort of the
9470 (search_deco): use lower_bound to do a binary search in the
9473 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
9475 * src/lyxrc.C: a small secret thingie...
9477 * src/lyxlex.C (printTable): changed to take a ostream as paramter
9478 and to not flush the stream as often as it used to.
9480 * src/support/lyxalgo.h: new file
9481 (sorted): template function used for checking if a sequence is
9482 sorted or not. Two versions with and without user supplied
9483 compare. Uses same compare as std::sort.
9485 * src/lyxlex.C (LyXLex): check if the table is sorted, if not sort
9486 it and give warning on lyxerr.
9488 (struct compare_tags): struct with function operators used for
9489 checking if sorted, sorting and lower_bound.
9490 (search_kw): use lower_bound instead of manually implemented
9493 2000-03-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9495 * src/insets/insetcollapsable.h: fix Clone() declaration.
9496 * src/insets/insetfoot.h: ditto.
9498 * src/insets/lyxinset.h: remove an extra comma at the end of enum.
9500 2000-03-08 Juergen Vigna <jug@sad.it>
9502 * src/insets/lyxinset.h: added owner call which tells us if
9503 this inset is inside another inset. Changed also the return-type
9504 of Editable to an enum so it tells clearer what the return-value is.
9506 * src/insets/insettext.C (computeTextRows): fixed computing of
9507 textinsets which split automatically on more rows.
9509 * src/insets/insetert.[Ch]: changed this to be of BaseType
9512 * src/insets/insetfoot.[Ch]: added footnote inset
9514 * src/insets/insetcollapsable.[Ch]: added this BaseClass for
9515 collapsable insets (like footnote, ert, ...)
9517 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
9519 * src/lyxdraw.h: remvoe file
9521 * src/lyxdraw.C: remove file
9523 * src/insets/insettext.C: added <algorithm>.
9525 2000-03-07 Lars Gullik Bjønnes <larsbj@lyx.org>
9527 * src/mathed/math_panel.C (delim_cb): case MM_OK use string stream
9528 (matrix_cb): case MM_OK use string stream
9530 * src/mathed/formula.C (LocalDispatch): case LFUN_SETXY use string
9533 * src/mathed/math_macro.C (draw): use string stream
9534 (Metrics): use string stream
9536 * src/paragraph.C (TeXFootnote): for case LyXParagraph::FIG, write
9537 directly to the ostream.
9539 * src/vspace.C (asString): use string stream.
9540 (asString): use string stream
9541 (asLatexString): use string stream
9543 * src/lyx_cb.C (UpdateLayoutDocument): use string stream for
9544 setting Spacing::Other.
9546 * src/LaTeXFeatures.C (getPackages): use string stream instead of
9547 sprintf when creating the stretch vale.
9549 * src/text2.C (alphaCounter): changed to return a string and to
9550 not use a static variable internally. Also fixed a one-off bug.
9551 (SetCounter): changed the drawing of the labels to use string
9552 streams instead of sprintf.
9554 * src/support/lyxmanip.h: rewrite the newlineanDepth ostream
9555 manipulator to use a scheme that does not require library support.
9556 This is also the way it is done in the new GNU libstdc++. Should
9557 work with DEC cxx now.
9559 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
9561 * src/mathed/math_inset.h (Write(ostream & os): add a space at the
9562 end. This fixes a bug.
9564 * src/mathed (all files concerned with file writing): apply the
9565 USE_OSTREAM_ONLY changes to mathed too.
9567 * src/support/DebugStream.h: make the constructor explicit.
9569 * src/lyxfont.C (latexWriteStartChanges): small bug related to
9570 count and ostream squashed.
9572 2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9574 * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
9576 * src/buffer.C (makeLaTeXFile): add a .c_str(), since
9577 ostringstream uses STL strings, and we might not.
9579 * src/insets/insetspecialchar.C: add using directive.
9580 * src/insets/insettext.C: ditto.
9582 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
9584 * lib/layouts/seminar.layout: feeble attempt at a layout for
9585 seminar.cls, far from completet and could really use some looking
9586 at from people used to write layout files.
9588 * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to
9589 use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is
9590 a lot nicer and works nicely with ostreams.
9592 * src/mathed/formula.C (draw): a slightly different solution that
9593 the one posted to the list, but I think this one works too. (font
9594 size wrong in headers.)
9596 * src/insets/insettext.C (computeTextRows): some fiddling on
9597 Jürgens turf, added some comments that he should read.
9599 * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never
9600 used and it gave compiler warnings.
9601 RC_SHOW_BANNER + "\\show_banner" added, also to reading and
9604 * src/lyx_gui.C (create_forms): do the right thing when
9605 show_banner is true/false.
9607 * src/lyx_cb.C (TimerCB): no need to close or do anything if
9608 show_banner is false.
9610 * most file writing files: Now use iostreams to do almost all of
9611 the writing. Also instead of passing string &, we now use
9612 stringstreams. mathed output is still not adapted to iostreams.
9613 This change can be turned off by commenting out all the occurences
9614 of the "#define USE_OSTREAM_ONLY 1" lines.
9616 * src/WorkArea.C (createPixmap): don't output debug messages.
9617 (WorkArea): don't output debug messages.
9619 * lib/lyxrc.example: added a comment about the new variable
9622 * development/Code_rules/Rules: Added some more commente about how
9623 to build class interfaces and on how better encapsulation can be
9626 2000-03-03 Juergen Vigna <jug@sad.it>
9628 * src/insets/insetert.C (InsetERT): Now ERT-insets break row
9629 automatically with the width of the LyX-Window
9631 * src/insets/insettext.C (computeTextRows): fixed update bug in
9632 displaying text-insets (scrollvalues where not initialized!)
9634 2000-03-02 Lars Gullik Bjønnes <larsbj@lyx.org>
9636 * src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
9637 id in the check of the result from lower_bound is not enough since
9638 lower_bound can return last too, and then res->id will not be a
9641 * all insets and some code that use them: I have conditionalized
9642 removed the Latex(string & out, ...) this means that only the
9643 Latex(ostream &, ...) will be used. This is a work in progress to
9644 move towards using streams for all output of files.
9646 * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type
9649 2000-03-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9651 * src/mathed/math_utils.C (MathedLookupBOP): fix the search
9652 routine (this fixes bug where greek letters were surrounded by too
9655 * src/support/filetools.C (findtexfile): change a bit the search
9656 algorithm, to fix bug introduced in 1.1.4. Note that --format is
9657 no longer passed to kpsewhich, we may have to change that later.
9659 * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
9660 warning options to avoid problems with X header files (from Angus
9662 * acinclude.m4: regenerated.
9664 2000-03-02 Juergen Vigna <jug@sad.it>
9666 * src/insets/insettext.C (WriteParagraphData): Using the
9667 par->writeFile() function for writing paragraph-data.
9668 (Read): Using buffer->parseSingleLyXformat2Token()-function
9669 for parsing paragraph data!
9671 * src/buffer.C (readLyXformat2): removed all parse data and using
9672 the new parseSingleLyXformat2Token()-function.
9673 (parseSingleLyXformat2Token): added this function to parse (read)
9674 lyx-file-format (this is called also from text-insets now!)
9676 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
9678 * src/paragraph.C (BeginningOfMainBody): initialize previous_char
9681 * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog
9682 directly instead of going through a func. One very bad thing: a
9683 static LyXFindReplace, but I don't know where to place it.
9685 * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a
9686 string instead of char[]. Also changed to static.
9687 (GetSelectionOrWordAtCursor): changed to static inline
9688 (SetSelectionOverLenChars): ditto.
9690 * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of
9691 current_view and global variables. both classes has changed names
9692 and LyXFindReplace is not inherited from SearchForm.
9694 * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the
9695 fl_form_search form.
9697 * src/lyx_gui.C (create_forms): removed the fl_form_search form.
9699 2000-03-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9701 * lib/bind/*.bind: make sure 'buffer-previous' function is not
9702 bound (from Kayvan).
9704 * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
9706 * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
9708 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
9710 * some things that I should comment but the local pub says head to
9713 * comment out all code that belongs to the Roff code for Ascii
9714 export of tables. (this is unused)
9716 * src/LyXView.C: use correct type for global variable
9717 current_layout. (LyXTextClass::size_type)
9719 * some code to get the new insetgraphics closer to working I'd be
9720 grateful for any help.
9722 * src/BufferView2.C (insertInset): use the return type of
9723 NumberOfLayout properly. (also changes in other files)
9725 * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
9726 this as a test. I want to know what breaks because of this.
9728 * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
9730 2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
9732 * lib/layouts/stdlists.inc: changed the lyxlist latex definition
9733 to use a \makebox in the label, this allows proper justification
9734 with out using protected spaces or multiple hfills. Now it is
9735 "label" for left justified, "\hfill label\hfill" for center, and
9736 "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
9737 should be changed accordingly.
9739 2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9741 * src/lyxtext.h: change SetLayout() to take a
9742 LyXTextClass::size_type instead of a char (when there is more than
9743 127 layouts in a class); also change type of copylayouttype.
9744 * src/text2.C (SetLayout): ditto.
9745 * src/LyXView.C (updateLayoutChoice): ditto.
9747 * src/LaTeX.C (scanLogFile): errors where the line number was not
9748 given just after the '!'-line were ignored (from Dekel Tsur).
9750 * lib/lyxrc.example: fix description of \date_insert_format
9752 * lib/layouts/llncs.layout: new layout, contributed by Martin
9755 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
9757 * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
9758 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
9759 cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
9760 insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
9761 BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
9762 paragraph.C, text.C, text2.C)
9764 2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9766 * src/insets/insettext.C (LocalDispatch): remove extra break
9769 * src/insets/insetert.[Ch] (Clone): change return value to Inset*
9770 * src/insets/insettext.[Ch] (Clone): change return value to Inset*
9772 * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
9773 * src/insets/insettext.[Ch] (GetCursorPos): ditto
9775 * src/insets/insetbib.h: move InsetBibkey::Holder and
9776 InsetCitation::Holder in public space.
9778 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
9780 * src/insets/insettext.h: small change to get the new files from
9781 Juergen to compile (use "string", not "class string").
9783 * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
9784 const & as parameter to LocalDispatch, use LyXFont const & as
9785 paramter to some other func. This also had impacto on lyxinsets.h
9786 and the two mathed insets.
9788 2000-02-24 Juergen Vigna <jug@sad.it>
9791 * src/commandtags.h:
9793 * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
9797 * src/BufferView2.C: added/updated code for various inset-functions
9799 * src/insets/insetert.[Ch]: added implementation of InsetERT
9801 * src/insets/insettext.[Ch]: added implementation of InsetText
9803 * src/insets/inset.C (Edit): added "unsigned int button" parameter
9804 (draw): added preliminary code for inset scrolling not finshed yet
9806 * src/insets/inset.C (LocalDispatch): changed arg parameter to string
9807 as it is in lyxfunc.C now
9809 * src/insets/lyxinset.h: Added functions for text-insets
9811 2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
9813 * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
9814 BufferView and reimplement the list as a queue put inside its own
9817 * src/bufferlist.[Ch] (updateInset): remove func, not needed.
9819 * several files: use the new interface to the "updateinsetlist"
9821 * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
9823 (work_area_handler): call BufferView::trippleClick on trippleclick.
9825 * src/BufferView.C (doubleClick): new function, selects word on
9827 (trippleClick): new function, selects line on trippleclick.
9829 2000-02-22 Allan Rae <rae@lyx.org>
9831 * lib/bind/xemacs.bind: buffer-previous not supported
9833 2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9835 * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
9838 2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
9840 * src/bufferlist.C: get rid of current_view from this file
9842 * src/spellchecker.C: get rid of current_view from this file
9844 * src/vspace.C: get rid of current_view from this file
9845 (inPixels): added BufferView parameter for this func
9846 (asLatexCommand): added a BufferParams for this func
9848 * src/text.C src/text2.C: get rid of current_view from these
9851 * src/lyxfont.C (getFontDirection): move this function here from
9854 * src/bufferparams.C (getDocumentDirection): move this function
9857 * src/paragraph.C (getParDirection): move this function here from
9859 (getLetterDirection): ditto
9861 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
9863 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
9864 resize due to wrong pixmap beeing used. Also took the opurtunity
9865 to make the LyXScreen stateless on regard to WorkArea and some
9866 general cleanup in the same files.
9868 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
9870 * src/Makefile.am: add missing direction.h
9872 * src/PainterBase.h: made the width functions const.
9874 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
9877 * src/insets/insetcommand.C (draw): draw Editable as buttons.
9879 * src/insets/insetlatexaccent.C (draw): make the accents draw
9880 better, at present this will only work well with iso8859-1.
9882 * several files: remove the old drawing code, now we use the new
9885 * several files: remove support for mono_video, reverse_video and
9888 2000-02-17 Juergen Vigna <jug@sad.it>
9890 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
9891 int ** as we have to return the pointer, otherwise we have only
9892 NULL pointers in the returning function.
9894 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9896 * src/LaTeX.C (operator()): quote file name when running latex.
9898 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
9900 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
9901 (bubble tip), this removes our special handling of this.
9903 * Remove all code that is unused now that we have the new
9904 workarea. (Code that are not active when NEW_WA is defined.)
9906 * Make the uses of XSync not conditionalized on define USE_XSYNC.
9908 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9910 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
9911 nonexisting layout; correctly redirect obsoleted layouts.
9913 * lib/lyxrc.example: document \view_dvi_paper_option
9915 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
9918 * src/lyx_cb.C (RunScript): handle $$FName for command names.
9919 (PreviewDVI): handle the view_dvi_paper_option variable.
9920 [Both from Roland Krause]
9922 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
9924 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
9925 char const *, int, LyXFont)
9926 (text(int, int, string, LyXFont)): ditto
9928 * src/text.C (InsertCharInTable): attempt to fix the double-space
9929 feature in tables too.
9930 (BackspaceInTable): ditto.
9931 (GetVisibleRow): make bottom pagebreak line be a onoff line.
9933 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
9935 * src/text2.C (owner): only complain if owner_ is set and bv != 0
9937 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
9938 newly found text in textcache to this.
9939 (buffer): set the owner of the text put into the textcache to 0
9941 * src/insets/figinset.C (draw): fixed the drawing of figures with
9944 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
9945 drawing of mathframe, hfills, protected space, table lines. I have
9946 now no outstanding drawing problems with the new Painter code.
9948 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9950 * src/PainterBase.C (ellipse, circle): do not specify the default
9953 * src/LColor.h: add using directive.
9955 * src/Painter.[Ch]: change return type of methods from Painter& to
9956 PainterBase&. Add a using directive.
9958 * src/WorkArea.C: wrap xforms callbacks in C functions
9961 * lib/layouts/foils.layout: font fix and simplifications from Carl
9964 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
9966 * a lot of files: The Painter, LColor and WorkArea from the old
9967 devel branch has been ported to lyx-devel. Some new files and a
9968 lot of #ifdeffed code. The new workarea is enabled by default, but
9969 if you want to test the new Painter and LColor you have to compile
9970 with USE_PAINTER defined (do this in config.h f.ex.) There are
9971 still some rought edges, and I'd like some help to clear those
9972 out. It looks stable (loads and displays the Userguide very well).
9975 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9977 * src/buffer.C (pop_tag): revert to the previous implementation
9978 (use a global variable for both loops).
9980 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
9982 * src/lyxrc.C (LyXRC): change slightly default date format.
9984 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
9985 there is an English text with a footnote that starts with a Hebrew
9986 paragraph, or vice versa.
9987 (TeXFootnote): ditto.
9989 * src/text.C (LeftMargin): allow for negative values for
9990 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
9993 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
9994 for input encoding (cyrillic)
9996 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9998 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
10001 * src/toolbar.C (set): ditto
10002 * src/insets/insetbib.C (create_form_citation_form): ditto
10004 * lib/CREDITS: added Dekel Tsur.
10006 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
10007 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
10008 hebrew supports files from Dekel Tsur.
10010 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
10011 <tzafrir@technion.ac.il>
10013 * src/lyxrc.C: put \date_insert_format at the right place.
10015 * src/buffer.C (makeLaTeXFile): fix the handling of
10016 BufferParams::sides when writing out latex files.
10018 * src/BufferView2.C: add a "using" directive.
10020 * src/support/lyxsum.C (sum): when we use lyxstring,
10021 ostringstream::str needs an additional .c_str().
10023 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
10025 * src/support/filetools.C (ChangeExtension): patch from Etienne
10028 * src/TextCache.C (show): remove const_cast and make second
10029 parameter non-const LyXText *.
10031 * src/TextCache.h: use non const LyXText in show.
10033 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
10036 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
10038 * src/support/lyxsum.C: rework to be more flexible.
10040 * several places: don't check if a pointer is 0 if you are going
10043 * src/text.C: remove some dead code.
10045 * src/insets/figinset.C: remove some dead code
10047 * src/buffer.C: move the BufferView funcs to BufferView2.C
10048 remove all support for insetlatexdel
10049 remove support for oldpapersize stuff
10050 made some member funcs const
10052 * src/kbmap.C: use a std::list to store the bindings in.
10054 * src/BufferView2.C: new file
10056 * src/kbsequence.[Ch]: new files
10058 * src/LyXAction.C + others: remove all trace of buffer-previous
10060 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
10061 only have one copy in the binary of this table.
10063 * hebrew patch: moved some functions from LyXText to more
10064 appropriate places. (LyXParagraph, BufferParams, LyXFont)
10066 * several files: remove support for XForms older than 0.88
10067 whitespace changes.
10068 remove some #if 0 #endif code
10070 * src/TextCache.[Ch]: new file. Holds the textcache.
10072 * src/BufferView.C: changes to use the new TextCache interface.
10073 (waitForX): remove the now unused code.
10075 * src/BackStack.h: remove some commented code
10077 * lib/bind/emacs.bind: remove binding for buffer-previous
10079 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
10081 * applied the hebrew patch.
10083 * src/lyxrow.h: make sure that all Row variables are initialized.
10085 * src/text2.C (TextHandleUndo): comment out a delete, this might
10086 introduce a memory leak, but should also help us to not try to
10087 read freed memory. We need to look at this one.
10089 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
10090 (LyXParagraph): initalize footnotekind.
10092 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
10093 forgot this when applying the patch. Please heed the warnings.
10095 * src/BufferView.C (buffer): a fix for the buffer-reload problem
10096 (aka. reformat problem)
10098 * src/bufferlist.C (exists): made const, and use const_iterator
10099 (isLoaded): new func.
10100 (release): use std::find to find the correct buffer.
10102 * src/bufferlist.h: made getState a const func.
10103 made empty a const func.
10104 made exists a const func.
10107 2000-02-01 Juergen Vigna <jug@sad.it>
10109 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
10111 * po/it.po: updated a bit the italian po file and also changed the
10112 'file nuovo' for newfile to 'filenuovo' without a space, this did
10115 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
10116 for the new insert_date command.
10118 * src/lyxfunc.C (Dispatch): added support for a insert_date function
10119 from jdblair, to insert a date into the current text conforming to
10120 a strftime format (for now only considering the locale-set and not
10121 the document-language).
10123 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10125 * src/lyxfont.C (textWidth): hopefully better fix for the Array
10126 Bounds Read error seen by purify. The problem was that islower is
10127 a macros which takes an unsigned char and uses it as an index for
10128 in array of characters properties (and is thus subject to the
10132 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
10133 correctly the paper sides radio buttons.
10134 (UpdateDocumentButtons): ditto.
10136 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
10138 * src/kbmap.C (getsym + others): change to return unsigned int,
10139 returning a long can give problems on 64 bit systems. (I assume
10140 that int is 32bit on 64bit systems)
10142 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10144 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
10145 LyXLookupString to be zero-terminated. Really fixes problems seen
10146 by purify, I think.
10148 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
10150 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
10151 write a (char*)0 to the lyxerr stream.
10153 * src/lastfiles.C: move algorithm before the using statemets.
10155 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10157 * src/lastfiles.C: move using directives in global scope (egcs 1.x
10158 complains otherwise).
10159 * src/table.C: ditto
10161 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
10164 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
10165 that I removed earlier... It is really needed.
10167 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
10169 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10171 * INSTALL: update xforms home page URL.
10173 * lib/configure.m4: fix a bug with unreadable layout files.
10175 * src/table.C (calculate_width_of_column): add "using std::max"
10178 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
10180 * several files: marked several lines with "DEL LINE", this is
10181 lines that can be deleted without changing anything.
10182 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
10183 checks this anyway */
10186 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
10188 * src/DepTable.C (update): add a "+" at the end when the checksum
10189 is different. (debugging string only)
10191 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
10192 the next inset to not be displayed. This should also fix the list
10193 of labels in the "Insert Crossreference" dialog.
10195 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
10197 * src/support/LSubstring.C (LSubstring): set pos to string::npos
10198 when regex was not found.
10200 * src/support/lstrings.C (lowercase): use handcoded transform always.
10203 * src/text.C (Delete): fixed the crash. cursor.par->prev and
10204 old_cursor.par->prev could be 0.
10206 * several files: changed post inc/dec to pre inc/dec
10208 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
10209 write the lastfiles to file.
10211 * src/BufferView.C (buffer): only show TextCache info when debugging
10213 (resizeCurrentBuffer): ditto
10214 (workAreaExpose): ditto
10216 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
10218 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
10220 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
10221 a bit better by removing the special case for \i and \j.
10223 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10225 * src/lyx_main.C (easyParse): remove test for bad comand line
10226 options, since this broke all xforms-related parsing.
10228 * src/kbmap.C (getsym): set return type to unsigned long, as
10229 declared in header. On an alpha, long is _not_ the same as int.
10231 * src/support/LOstream.h: add a "using std::flush;"
10233 * src/insets/figinset.C: ditto.
10235 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
10237 * src/bufferlist.C (write): use blinding fast file copy instead of
10238 "a char at a time", now we are doing it the C++ way.
10240 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
10241 std::list<int> instead.
10242 (addpidwait): reflect move to std::list<int>
10243 (sigchldchecker): ditto
10245 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
10248 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
10249 that obviously was wrong...
10251 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
10252 c, this avoids warnings with purify and islower.
10254 * src/insets/figinset.C: rename struct queue to struct
10255 queue_element and rewrite to use a std::queue. gsqueue is now a
10256 std::queue<queue_element>
10257 (runqueue): reflect move to std::queue
10260 * src/support/lstrings.h (tostr): specialize for bool, otherwise
10261 we would get "1" "0" instead of "true" "false. Also make the tostr
10264 2000-01-21 Juergen Vigna <jug@sad.it>
10266 * src/buffer.C (writeFileAscii): Disabled code for special groff
10267 handling of tabulars till I fix this in table.C
10269 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10271 * src/support/mkdir.C (mkdir): change second argument of mkdir to
10273 * src/support/lyxlib.h: ditto.
10275 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
10277 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
10278 and 'j' look better. This might fix the "macron" bug that has been
10281 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
10282 functions as one template function. Delete the old versions.
10284 * src/support/lyxsum.C: move using std::ifstream inside
10287 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
10290 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
10292 * src/mathed/formula.C: delete #include "bufferlist.h" never used
10294 * src/insets/figinset.C (InitFigures): use new instead of malloc
10295 to allocate memory for figures and bitmaps.
10296 (DoneFigures): use delete[] instead of free to deallocate memory
10297 for figures and bitmaps.
10298 (runqueue): use new to allocate
10299 (getfigdata): use new/delete[] instead of malloc/free
10300 (RegisterFigure): ditto
10302 * some files: moved some declarations closer to first use, small
10303 whitespace changes use preincrement instead of postincrement where
10304 it does not make a difference.
10306 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
10307 step on the way to use stl::containers for key maps.
10309 * src/bufferlist.h: add a typedef for const_iterator and const
10310 versions of begin and end.
10312 * src/bufferlist.[Ch]: change name of member variable _state to
10313 state_. (avoid reserved names)
10315 (getFileNames): returns the filenames of the buffers in a vector.
10317 * configure.in (ALL_LINGUAS): added ro
10319 * src/support/putenv.C: new file
10321 * src/support/mkdir.C: new file
10323 2000-01-20 Allan Rae <rae@lyx.org>
10325 * lib/layouts/IEEEtran.layout: Added several theorem environments
10327 * lib/templates/IEEEtran.lyx: Example theorem environments and a
10328 couple of minor additions.
10330 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
10331 (except for those in footnotes of course)
10333 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
10335 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
10337 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
10338 std::sort and std::lower_bound instead of qsort and handwritten
10340 (struct compara): struct that holds the functors used by std::sort
10341 and std::lower_bound in MathedLookupBOP.
10343 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10345 * src/support/LAssert.h: do not do partial specialization. We do
10346 not really need it.
10348 * src/support/lyxlib.h: note that lyx::getUserName() and
10349 lyx::date() are not in use right now. Should these be suppressed?
10351 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
10352 (makeLinuxDocFile): do not put date and user name in linuxdoc
10355 * src/support/lyxlib.h (kill): change first argument to long int,
10356 since that's what solaris uses.
10358 * src/support/kill.C (kill): fix declaration to match prototype.
10360 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
10361 actually check whether namespaces are supported. This is not what
10364 * src/support/lyxsum.C: add a using directive.
10366 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
10368 * src/support/kill.C: if we have namespace support we don't have
10369 to include lyxlib.h.
10371 * src/support/lyxlib.h: use namespace lyx if supported.
10373 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
10375 * src/support/date.C: new file
10377 * src/support/chdir.C: new file
10379 * src/support/getUserName.C: new file
10381 * src/support/getcwd.C: new file
10383 * src/support/abort.C: new file
10385 * src/support/kill.C: new file
10387 * src/support/lyxlib.h: moved all the functions in this file
10388 insede struct lyx. Added also kill and abort to this struct. This
10389 is a way to avoid the "kill is not defined in <csignal>", we make
10390 C++ wrappers for functions that are not ANSI C or ANSI C++.
10392 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
10393 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
10394 lyx it has been renamed to sum.
10396 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10398 * src/text.C: add using directives for std::min and std::max.
10400 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10402 * src/texrow.C (getIdFromRow): actually return something useful in
10403 id and pos. Hopefully fixes the bug with positionning of errorbox
10406 * src/lyx_main.C (easyParse): output an error and exit if an
10407 incorrect command line option has been given.
10409 * src/spellchecker.C (ispell_check_word): document a memory leak.
10411 * src/bufferlist.C (write): fix mismatched allocation/deletion,
10412 where a "struct utimbuf" is allocated with "new" and deleted with
10415 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
10417 * src/text2.C (CutSelection): don't delete double spaces.
10418 (PasteSelection): ditto
10419 (CopySelection): ditto
10421 * src/text.C (Backspace): don't delete double spaces.
10423 * src/lyxlex.C (next): fix a bug that were only present with
10424 conformant std::istream::get to read comment lines, use
10425 std::istream::getline instead. This seems to fix the problem.
10427 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
10429 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
10430 allowed to insert space before space" editing problem. Please read
10431 commends at the beginning of the function. Comments about usage
10434 * src/text.C (InsertChar): fix for the "not allowed to insert
10435 space before space" editing problem.
10437 * src/text2.C (DeleteEmptyParagraphMechanism): when
10438 IsEmptyTableRow can only return false this last "else if" will
10439 always be a no-op. Commented out.
10441 * src/text.C (RedoParagraph): As far as I can understand tmp
10442 cursor is not really needed.
10444 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
10445 present it could only return false anyway.
10446 (several functions): Did something not so smart...added a const
10447 specifier on a lot of methods.
10449 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
10450 and add a tmp->text.resize. The LyXParagraph constructor does the
10452 (BreakParagraphConservative): ditto
10454 * src/support/path.h (Path): add a define so that the wrong usage
10455 "Path("/tmp") will be flagged as a compilation error:
10456 "`unnamed_Path' undeclared (first use this function)"
10458 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10460 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
10461 which was bogus for several reasons.
10463 * src/LaTeX.C (scanAux): fix the regular expression used to scan
10465 (runBibTeX): ditto.
10467 * autogen.sh: do not use "type -path" (what's that anyway?).
10469 * src/support/filetools.C (findtexfile): remove extraneous space
10470 which caused a kpsewhich warning (at least with kpathsea version
10473 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
10475 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
10477 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
10479 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
10481 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10483 * src/paragraph.C (BreakParagraph): do not reserve space on text
10484 if we don't need to (otherwise, if pos_end < pos, we end up
10485 reserving huge amounts of memory due to bad unsigned karma).
10486 (BreakParagraphConservative): ditto, although I have not seen
10487 evidence the bug can happen here.
10489 * src/lyxparagraph.h: add a using std::list.
10491 2000-01-11 Juergen Vigna <jug@sad.it>
10493 * src/menus.C (MenuDocu): output an Alert if the documentation-file
10494 could not be found.
10496 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
10498 * src/vc-backend.C (doVCCommand): change to be static and take one
10499 more parameter: the path to chdir too be fore executing the command.
10500 (retrive): new function equiv to "co -r"
10502 * src/bufferlist.C (loadLyXFile): implement the missing parts if
10503 file_not_found_hook is true.
10505 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
10507 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
10508 if a file is readwrite,readonly...anything else.
10510 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
10512 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
10513 (CreatePostscript): name change from MenuRunDVIPS (or something)
10514 (PreviewPostscript): name change from MenuPreviewPS
10515 (PreviewDVI): name change from MenuPreviewDVI
10517 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
10518 \view_pdf_command., \pdf_to_ps_command
10520 * lib/configure.m4: added search for PDF viewer, and search for
10521 PDF to PS converter.
10522 (lyxrc.defaults output): add \pdflatex_command,
10523 \view_pdf_command and \pdf_to_ps_command.
10525 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
10527 * src/bufferlist.C (write): we don't use blocksize for anything so
10530 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10532 * src/support/block.h: disable operator T* (), since it causes
10533 problems with both compilers I tried. See comments in the file.
10535 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
10538 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
10539 variable LYX_DIR_10x to LYX_DIR_11x.
10541 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
10543 * INSTALL: document --with-lyxname.
10546 * configure.in: new configure flag --with-lyxname which allows to
10547 choose the name under which lyx is installed. Default is "lyx", of
10548 course. It used to be possible to do this with --program-suffix,
10549 but the later has in fact a different meaning for autoconf.
10551 * src/support/lstrings.h (lstrchr): reformat a bit.
10553 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
10554 * src/mathed/math_defs.h: ditto.
10556 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
10558 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
10559 true, decides if we create a backup file or not when saving. New
10560 tag and variable \pdf_mode, defaults to false. New tag and
10561 variable \pdflatex_command, defaults to pdflatex. New tag and
10562 variable \view_pdf_command, defaults to xpdf. New tag and variable
10563 \pdf_to_ps_command, defaults to pdf2ps.
10565 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
10567 * src/bufferlist.C (close): don't call insetUnlock if the buffer
10568 does not have a BufferView.
10569 (unlockInset): ditto + don't access the_locking_inset if the
10570 buffer does not have a BufferView.
10572 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
10573 certain circumstances so that we don't continue a keyboard
10574 operation long after the key was released. Try f.ex. to load a
10575 large document, press PageDown for some seconds and then release
10576 it. Before this change the document would contine to scroll for
10577 some time, with this change it stops imidiatly.
10579 * src/support/block.h: don't allocate more space than needed. As
10580 long as we don't try to write to the arr[x] in a array_type arr[x]
10581 it is perfectly ok. (if you write to it you might segfault).
10582 added operator value_type*() so that is possible to pass the array
10583 to functions expecting a C-pointer.
10585 * lib/Makefile.am (dist-hook): don't fail completely if unable to
10588 * intl/*: updated to gettext 0.10.35, tried to add our own
10589 required modifications. Please verify.
10591 * po/*: updated to gettext 0.10.35, tried to add our own required
10592 modifications. Please verify.
10594 * src/support/lstrings.C (tostr): go at fixing the problem with
10595 cxx and stringstream. When stringstream is used return
10596 oss.str().c_str() so that problems with lyxstring and basic_string
10597 are avoided. Note that the best solution would be for cxx to use
10598 basic_string all the way, but it is not conformant yet. (it seems)
10600 * src/lyx_cb.C + other files: moved several global functions to
10601 class BufferView, some have been moved to BufferView.[Ch] others
10602 are still located in lyx_cb.C. Code changes because of this. (part
10603 of "get rid of current_view project".)
10605 * src/buffer.C + other files: moved several Buffer functions to
10606 class BufferView, the functions are still present in buffer.C.
10607 Code changes because of this.
10609 * config/lcmessage.m4: updated to most recent. used when creating
10612 * config/progtest.m4: updated to most recent. used when creating
10615 * config/gettext.m4: updated to most recent. applied patch for
10618 * config/gettext.m4.patch: new file that shows what changes we
10619 have done to the local copy of gettext.m4.
10621 * config/libtool.m4: new file, used in creation of acinclude.m4
10623 * config/lyxinclude.m4: new file, this is the lyx created m4
10624 macros, used in making acinclude.m4.
10626 * autogen.sh: GNU m4 discovered as a separate task not as part of
10627 the lib/configure creation.
10628 Generate acinlucde from files in config. Actually cat
10629 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
10630 easier to upgrade .m4 files that really are external.
10632 * src/Spacing.h: moved using std::istringstream to right after
10633 <sstream>. This should fix the problem seen with some compilers.
10635 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
10637 * src/lyx_cb.C: began some work to remove the dependency a lot of
10638 functions have on BufferView::text, even if not really needed.
10639 (GetCurrentTextClass): removed this func, it only hid the
10642 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
10643 forgot this in last commit.
10645 * src/Bullet.C (bulletEntry): use static char const *[] for the
10646 tables, becuase of this the return arg had to change to string.
10647 (bulletSize): ditto
10648 (~Bullet): removed unneeded destructor
10650 * src/BufferView.C (beforeChange): moved from lyx_cb.C
10651 (insetSleep): moved from Buffer
10652 (insetWakeup): moved from Buffer
10653 (insetUnlock): moved from Buffer
10655 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
10656 from Buffer to BufferView.
10658 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
10660 * config/ltmain.sh: updated to version 1.3.4 of libtool
10662 * config/ltconfig: updated to version 1.3.4 of libtool
10664 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10667 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
10668 Did I get that right?
10670 * src/lyxlex.h: add a "using" directive or two.
10671 * src/Spacing.h: ditto.
10672 * src/insets/figinset.C: ditto.
10673 * src/support/filetools.C: ditto.
10674 * src/support/lstrings.C: ditto.
10675 * src/BufferView.C: ditto.
10676 * src/bufferlist.C: ditto.
10677 * src/lyx_cb.C: ditto.
10678 * src/lyxlex.C: ditto.
10680 * NEWS: add some changes for 1.1.4.
10682 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
10684 * src/BufferView.C: first go at a TextCache to speed up switching
10687 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10689 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
10690 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
10691 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
10692 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
10695 * src/mathed/math_defs.h (MathedRowSt): make sure that all
10696 members of the struct are correctly initialized to 0 (detected by
10698 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
10699 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
10701 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
10702 pidwait, since it was allocated with "new". This was potentially
10703 very bad. Thanks to Michael Schmitt for running purify for us.
10706 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10708 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
10710 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
10712 1999-12-30 Allan Rae <rae@lyx.org>
10714 * lib/templates/IEEEtran.lyx: minor change
10716 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
10717 src/mathed/formula.C (LocalDispatch): askForText changes
10719 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
10720 know when a user has cancelled input. Fixes annoying problems with
10721 inserting labels and version control.
10723 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
10725 * src/support/lstrings.C (tostr): rewritten to use strstream and
10728 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
10730 * src/support/filetools.C (IsFileWriteable): use fstream to check
10731 (IsDirWriteable): use fileinfo to check
10733 * src/support/filetools.h (FilePtr): whole class deleted
10735 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
10737 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
10739 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
10741 * src/bufferlist.C (write): use ifstream and ofstream instead of
10744 * src/Spacing.h: use istrstream instead of sscanf
10746 * src/mathed/math_defs.h: change first arg to istream from FILE*
10748 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
10750 * src/mathed/math_parser.C: have yyis to be an istream
10751 (LexGetArg): use istream (yyis)
10753 (mathed_parse): ditto
10754 (mathed_parser_file): first arg istream instead of FILE*, set yyis
10756 * src/mathed/formula.C (Read): rewritten to use istream
10758 * src/mathed/formulamacro.C (Read): rewritten to use istream
10760 * src/lyxlex.h (~LyXLex): deleted desturctor
10761 (getStream): new function, returns an istream
10762 (getFile): deleted funtion
10763 (IsOK): return is.good();
10765 * src/lyxlex.C (LyXLex): delete file and owns_file
10766 (setFile): open an filebuf and assign that to a istream instead of
10768 (setStream): new function, takes an istream as arg.
10769 (setFile): deleted function
10770 (EatLine): rewritten us use istream instead of FILE*
10774 * src/table.C (LyXTable): use istream instead of FILE*
10775 (Read): rewritten to take an istream instead of FILE*
10777 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10779 * src/buffer.C (Dispatch): remove an extraneous break statement.
10781 * src/support/filetools.C (QuoteName): change to do simple
10782 'quoting'. More work is necessary. Also changed to do nothing
10783 under emx (needs fix too).
10784 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
10786 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
10787 config.h.in to the AC_DEFINE_UNQUOTED() call.
10788 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
10789 needs char * as argument (because Solaris 7 declares it like
10792 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
10793 remove definition of BZERO.
10795 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
10797 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
10798 defined, "lyxregex.h" if not.
10800 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
10802 (REGEX): new variable that is set to regex.c lyxregex.h when
10803 AM_CONDITIONAL USE_REGEX is set.
10804 (libsupport_la_SOURCES): add $(REGEX)
10806 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
10809 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
10812 * configure.in: add call to LYX_REGEX
10814 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
10815 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
10817 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10819 * lib/bind/fi_menus.bind: new file, from
10820 pauli.virtanen@saunalahti.fi.
10822 * src/buffer.C (getBibkeyList): pass the parameter delim to
10823 InsetInclude::getKeys and InsetBibtex::getKeys.
10825 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
10826 is passed to Buffer::getBibkeyList
10828 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
10829 instead of the hardcoded comma.
10831 * src/insets/insetbib.C (getKeys): make sure that there are not
10832 leading blanks in bibtex keys. Normal latex does not care, but
10833 harvard.sty seems to dislike blanks at the beginning of citation
10834 keys. In particular, the retturn value of the function is
10836 * INSTALL: make it clear that libstdc++ is needed and that gcc
10837 2.7.x probably does not work.
10839 * src/support/filetools.C (findtexfile): make debug message go to
10841 * src/insets/insetbib.C (getKeys): ditto
10843 * src/debug.C (showTags): make sure that the output is correctly
10846 * configure.in: add a comment for TWO_COLOR_ICON define.
10848 * acconfig.h: remove all the entries that already defined in
10849 configure.in or acinclude.m4.
10851 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
10852 to avoid user name, date and copyright.
10854 1999-12-21 Juergen Vigna <jug@sad.it>
10856 * src/table.C (Read): Now read bogus row format informations
10857 if the format is < 5 so that afterwards the table can
10858 be read by lyx but without any format-info. Fixed the
10859 crash we experienced when not doing this.
10861 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
10863 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
10864 (RedoDrawingOfParagraph): ditto
10865 (RedoParagraphs): ditto
10866 (RemoveTableRow): ditto
10868 * src/text.C (Fill): rename arg paperwidth -> paper_width
10870 * src/buffer.C (insertLyXFile): rename var filename -> fname
10871 (writeFile): rename arg filename -> fname
10872 (writeFileAscii): ditto
10873 (makeLaTeXFile): ditto
10874 (makeLinuxDocFile): ditto
10875 (makeDocBookFile): ditto
10877 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
10880 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
10882 * src/bmtable.h: add extern "C" on this file when __cplusplus is
10885 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
10886 compiled by a C compiler not C++.
10888 * src/layout.h (LyXTextClass): added typedef for const_iterator
10889 (LyXTextClassList): added typedef for const_iterator + member
10890 functions begin and end.
10892 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
10893 iterators to fill the choice_class.
10894 (updateLayoutChoice): rewritten to use iterators to fill the
10895 layoutlist in the toolbar.
10897 * src/BufferView.h (BufferView::work_area_width): removed unused
10900 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
10902 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
10903 (sgmlCloseTag): ditto
10905 * src/support/lstrings.h: return type of countChar changed to
10908 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
10909 what version of this func to use. Also made to return unsigned int.
10911 * configure.in: call LYX_STD_COUNT
10913 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
10914 conforming std::count.
10916 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10918 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
10919 and a subscript would give bad display (patch from Dekel Tsur
10920 <dekel@math.tau.ac.il>).
10922 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
10924 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
10927 * src/chset.h: add a few 'using' directives
10929 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
10930 triggered when no buffer is active
10932 * src/layout.C: removed `break' after `return' in switch(), since
10935 * src/lyx_main.C (init): make sure LyX can be ran in place even
10936 when libtool has done its magic with shared libraries. Fix the
10937 test for the case when the system directory has not been found.
10939 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
10940 name for the latex file.
10941 (MenuMakeHTML): ditto
10943 * src/buffer.h: add an optional boolean argument, which is passed
10944 to ChangeExtension.
10946 1999-12-20 Allan Rae <rae@lyx.org>
10948 * lib/templates/IEEEtran.lyx: small correction and update.
10950 * configure.in: Attempted to use LYX_PATH_HEADER
10952 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
10954 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
10955 input from JMarc. Now use preprocessor to find the header.
10956 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
10957 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
10958 LYX_STL_STRING_FWD. See comments in file.
10960 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
10962 * The global MiniBuffer * minibuffer variable is dead.
10964 * The global FD_form_main * fd_form_main variable is dead.
10966 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10968 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
10970 * src/table.h: add the LOstream.h header
10971 * src/debug.h: ditto
10973 * src/LyXAction.h: change the explaination of the ReadOnly
10974 attribute: is indicates that the function _can_ be used.
10976 * src/LyXAction.C (init): find-replace _can_ be used in read-only
10979 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
10981 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
10987 * src/paragraph.C (GetWord): assert on pos>=0
10990 * src/support/lyxstring.C: condition the use of an invariant on
10992 * src/support/lyxstring.h: ditto
10994 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
10995 Use LAssert.h instead of plain assert().
10997 * src/support/lstrings.h: add LAssert.h, in case it is needed.
10999 * src/lyxfunc.C: do not include LAssert.h, it is not used.
11000 * src/support/filetools.C: ditto
11002 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
11005 * INSTALL: document the new configure flags
11007 * configure.in: suppress --with-debug; add --enable-assertions
11009 * acinclude.m4: various changes in alignment of help strings.
11011 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
11013 * src/kbmap.C: commented out the use of the hash map in kb_map,
11014 beginning of movement to a stl::container.
11016 * several files: removed code that was not in effect when
11017 MOVE_TEXT was defined.
11019 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
11020 for escaping should not be used. We can discuss if the string
11021 should be enclosed in f.ex. [] instead of "".
11023 * src/trans_mgr.C (insert): use the new returned value from
11024 encodeString to get deadkeys and keymaps done correctly.
11026 * src/chset.C (encodeString): changed to return a pair, to tell
11027 what to use if we know the string.
11029 * src/lyxscreen.h (fillArc): new function.
11031 * src/FontInfo.C (resize): rewritten to use more std::string like
11032 structore, especially string::replace.
11034 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
11037 * configure.in (chmod +x some scripts): remove config/gcc-hack
11039 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11041 * src/buffer.C (writeFile): change once again the top comment in a
11042 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
11043 instead of an hardcoded version number.
11044 (makeDocBookFile): ditto
11046 * src/version.h: add new define LYX_DOCVERSION
11048 * po/de.po: update from Pit Sütterlin
11049 * lib/bind/de_menus.bind: ditto.
11051 * src/lyxfunc.C (Dispatch): call MenuExport()
11052 * src/buffer.C (Dispatch): ditto
11054 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
11055 LyXFunc::Dispatch().
11056 (MenuExport): new function, moved from
11057 LyXFunc::Dispatch().
11059 * src/trans_mgr.C (insert): small cleanup
11060 * src/chset.C (loadFile): ditto
11062 * lib/kbd/iso8859-1.cdef: add missing backslashes
11064 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
11066 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
11067 help with placing the manually drawn accents better.
11069 (Draw): x2 and hg changed to float to minimize rounding errors and
11070 help place the accents better.
11072 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
11073 unsigned short to char is just wrong...cast the char to unsigned
11074 char instead so that the two values can compare sanely. This
11075 should also make the display of insetlatexaccents better and
11076 perhaps also some other insets.
11078 (lbearing): new function
11081 1999-12-15 Allan Rae <rae@lyx.org>
11083 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
11084 header that provides a wrapper around the very annoying SGI STL header
11087 * src/support/lyxstring.C, src/LString.h:
11088 removed old SGI-STL-compatability attempts.
11090 * configure.in: Use LYX_STL_STRING_FWD.
11092 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
11093 stl_string_fwd.h is around and try to determine it's location.
11094 Major improvement over previous SGI STL 3.2 compatability.
11095 Three small problems remain with this function due to my zero
11096 knowledge of autoconf. JMarc and lgb see the comments in the code.
11098 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11100 * src/broken_const.h, config/hack-gcc, config/README: removed
11102 * configure.in: remove --with-gcc-hack option; do not call
11105 * INSTALL: remove documentation of --with-broken-const and
11108 * acconfig.h: remove all trace of BROKEN_CONST define
11110 * src/buffer.C (makeDocBookFile): update version number in output
11112 (SimpleDocBookOnePar): fix an assert when trying to a character
11113 access beyond string length
11116 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11118 * po/de.po: fix the Export menu
11120 * lyx.man: update the description of -dbg
11122 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
11123 (commandLineHelp): updated
11124 (easyParse): show list of available debug levels if -dbg is passed
11127 * src/Makefile.am: add debug.C
11129 * src/debug.h: moved some code to debug.C
11131 * src/debug.C: new file. Contains code to set and show debug
11134 * src/layout.C: remove 'break' after 'continue' in switch
11135 statements, since these cannot be reached.
11137 1999-12-13 Allan Rae <rae@lyx.org>
11139 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
11140 (in_word_set): hash() -> math_hash()
11142 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
11144 * acconfig.h: Added a test for whether we are using exceptions in the
11145 current compilation run. If so USING_EXCEPTIONS is defined.
11147 * config.in: Check for existance of stl_string_fwd.h
11148 * src/LString.h: If compiling --with-included-string and SGI's
11149 STL version 3.2 is present (see above test) we need to block their
11150 forward declaration of string and supply a __get_c_string().
11151 However, it turns out this is only necessary if compiling with
11152 exceptions enabled so I've a bit more to add yet.
11154 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
11155 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
11156 src/support/LRegex.h, src/undo.h:
11157 Shuffle the order of the included files a little to ensure that
11158 LString.h gets included before anything that includes stl_string_fwd.h
11160 * src/support/lyxstring.C: We need to #include LString.h instead of
11161 lyxstring.h to get the necessary definition of __get_c_string.
11162 (__get_c_string): New function. This is defined static just like SGI's
11163 although why they need to do this I'm not sure. Perhaps it should be
11164 in lstrings.C instead.
11166 * lib/templates/IEEEtran.lyx: New template file.
11168 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
11170 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
11171 * intl/Makefile.in (MKINSTALLDIRS): ditto
11173 * src/LyXAction.C (init): changed to hold the LFUN data in a
11174 automatic array in stead of in callso to newFunc, this speeds up
11175 compilation a lot. Also all the memory used by the array is
11176 returned when the init is completed.
11178 * a lot of files: compiled with -Wold-style-cast, changed most of
11179 the reported offenders to C++ style casts. Did not change the
11180 offenders in C files.
11182 * src/trans.h (Match): change argument type to unsigned int.
11184 * src/support/DebugStream.C: fix some types on the streambufs so
11185 that it works on a conforming implementation.
11187 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11189 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
11191 * src/support/lyxstring.C: remove the inline added earlier since
11192 they cause a bunch of unsatisfied symbols when linking with dec
11193 cxx. Cxx likes to have the body of inlines at the place where they
11196 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
11197 accessing negative bounds in array. This fixes the crash when
11198 inserting accented characters.
11199 * src/trans.h (Match): ditto
11201 * src/buffer.C (Dispatch): since this is a void, it should not try
11202 to return anything...
11204 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
11206 * src/buffer.h: removed the two friends from Buffer. Some changes
11207 because of this. Buffer::getFileName and Buffer::setFileName
11208 renamed to Buffer::fileName() and Buffer::fileName(...).
11210 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
11212 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
11213 and Buffer::update(short) to BufferView. This move is currently
11214 controlled by a define MOVE_TEXT, this will be removed when all
11215 shows to be ok. This move paves the way for better separation
11216 between buffer contents and buffer view. One side effect is that
11217 the BufferView needs a rebreak when swiching buffers, if we want
11218 to avoid this we can add a cache that holds pointers to LyXText's
11219 that is not currently in use.
11221 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
11224 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
11226 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
11228 * lyx_main.C: new command line option -x (or --execute) and
11229 -e (or --export). Now direct conversion from .lyx to .tex
11230 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
11231 Unfortunately, X is still needed and the GUI pops up during the
11234 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11236 * src/Spacing.C: add a using directive to bring stream stuff into
11238 * src/paragraph.C: ditto
11239 * src/buffer.C: ditto
11241 * NEWS: updated a bit the new features of 1.1.3 (took a few things
11242 from Lars' announcement).
11244 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
11245 example files from Tino Meinen.
11247 1999-12-06 Allan Rae <rae@lyx.org>
11249 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
11251 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
11253 * src/support/lyxstring.C: added a lot of inline for no good
11256 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
11257 latexWriteEndChanges, they were not used.
11259 * src/layout.h (operator<<): output operator for PageSides
11261 * src/mathed/math_iter.C (my_memcpy): slightly changed.
11263 * some example files: loaded in LyX 1.0.4 and saved again to update
11264 certain constructs (table format)
11266 * a lot of files: did the change to use fstream/iostream for all
11267 writing of files. Done with a close look at Andre Poenitz's patch.
11269 * some files: whitespace changes.
11271 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11273 * src/mathed/math_iter.C (my_memcpy): new function. Since the
11274 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
11275 architecture, we provide our own. It is used unconditionnally, but
11276 I do not think this is a performance problem. Thanks to Angus
11277 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
11278 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
11280 (GetInset): use my_memcpy.
11284 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
11285 it is easier to understand, but it uses less TeX-only constructs now.
11287 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
11288 elements contain spaces
11290 * lib/configure: regenerated
11292 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
11293 elements contain spaces; display the list of programs that are
11296 * autogen.sh: make sure lib/configure is executable
11298 * lib/examples/*: rename the tutorial examples to begin with the
11299 two-letters language code.
11301 * src/lyxfunc.C (getStatus): do not query current font if no
11304 * src/lyx_cb.C (RunScript): use QuoteName
11305 (MenuRunDvips): ditto
11306 (PrintApplyCB): ditto
11308 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
11309 around argument, so that it works well with the current shell.
11310 Does not work properly with OS/2 shells currently.
11312 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
11313 * src/LyXSendto.C (SendtoApplyCB): ditto
11314 * src/lyxfunc.C (Dispatch): ditto
11315 * src/buffer.C (runLaTeX): ditto
11316 (runLiterate): ditto
11317 (buildProgram): ditto
11319 * src/lyx_cb.C (RunScript): ditto
11320 (MenuMakeLaTeX): ditto
11322 * src/buffer.h (getLatexName): new method
11324 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
11326 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11328 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
11329 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
11330 (create_math_panel): ditto
11332 * src/lyxfunc.C (getStatus): re-activate the code which gets
11333 current font and cursor; add test for export to html.
11335 * src/lyxrc.C (read): remove unreachable break statements; add a
11338 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
11340 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
11342 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
11343 introduced by faulty regex.
11344 * src/buffer.C: ditto
11345 * src/lastfiles.C: ditto
11346 * src/paragraph.C: ditto
11347 * src/table.C: ditto
11348 * src/vspace.C: ditto
11349 * src/insets/figinset.C: ditto
11350 Note: most of these is absolutely harmless, except the one in
11351 src/mathed formula.C.
11353 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
11355 * src/ImportNoweb.C (documentclass): fixed bounds for substr
11356 operation, yielding correct results for the reLyX command.
11358 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
11360 * src/support/filetools.C (ExpandPath): removed an over eager
11362 (ReplaceEnvironmentPath): ditto
11364 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
11365 shows that we are doing something fishy in our code...
11366 (BubblePost): ditto
11369 * src/lyxrc.C (read): use a double switch trick to get more help
11370 from the compiler. (the same trick is used in layout.C)
11371 (write): new function. opens a ofstream and pass that to output
11372 (output): new function, takes a ostream and writes the lyxrc
11373 elemts to it. uses a dummy switch to make sure no elements are
11376 * src/lyxlex.h: added a struct pushpophelper for use in functions
11377 with more than one exit point.
11379 * src/lyxlex.[Ch] (GetInteger): made it const
11383 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
11385 * src/layout.[hC] : LayoutTags splitted into several enums, new
11386 methods created, better error handling cleaner use of lyxlex. Read
11389 * src/bmtable.[Ch]: change some member prototypes because of the
11390 image const changes.
11392 * commandtags.h, src/LyXAction.C (init): new function:
11393 "preferences-save", saves the lyxrc entries into .lyx/preferences.
11394 This file is not read automatically but you can add \input
11395 preferences to your lyxrc if you want to. We need to discuss how
11398 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
11399 in .aux, also remove .bib and .bst files from dependencies when
11402 * src/BufferView.C, src/LyXView.C: add const_cast several places
11403 because of changes to images.
11405 * lib/images/*: same change as for images/*
11407 * lib/lyxrc.example: Default for accept_compound is false not no.
11409 * images/*: changed to be const, however I have som misgivings
11410 about this change so it might be changed back.
11412 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11414 * lib/configure, po/POTFILES.in: regenerated
11416 * autogen.sh: autogenerate lib/configure from lib/configure.m4
11418 * config/lib_configure.m4: removed
11420 * lib/configure.m4: new file (was config/lib_configure.m4)
11422 * configure.in: do not test for rtti, since we do not use it.
11424 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
11426 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
11427 doubling of allocated space scheme. This makes it faster for large
11428 strings end to use less memory for small strings. xtra rememoved.
11430 * src/insets/figinset.C (waitalarm): commented out.
11431 (GhostscriptMsg): use static_cast
11432 (GhostscriptMsg): use new instead of malloc to allocate memory for
11433 cmap. also delete the memory after use.
11435 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
11437 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
11438 for changes in bibtex database or style.
11439 (runBibTeX): remove all .bib and .bst files from dep before we
11441 (run): use scanAuc in when dep file already exist.
11443 * src/DepTable.C (remove_files_with_extension): new method
11444 (exist): new method
11446 * src/DepTable.[Ch]: made many of the methods const.
11448 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11450 * src/bufferparams.C: make sure that the default textclass is
11451 "article". It used to be the first one by description order, but
11452 now the first one is "docbook".
11454 * src/lyx_main.C (setDebuggingLevel): change type of argument to
11455 string; call Debug::value.
11456 (easyParse): pass complete argument to setDebuggingLevel().
11458 * src/debug.h (value): fix the code that parses debug levels.
11460 * src/debug.h: add new debug type ACTION, reserved for LyXAction
11463 * src/LyXAction.C: use Debug::ACTION as debug channel.
11465 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
11467 * NEWS: updated for the future 1.1.3 release.
11469 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
11470 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
11471 it should. This is of course a controversial change (since many
11472 people will find that their lyx workscreen is suddenly full of
11473 red), but done for the sake of correctness.
11475 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
11476 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
11478 * src/insets/inseterror.h, src/insets/inseturl.h,
11479 src/insets/insetinfo.h, src/insets/figinset.h,
11480 src/mathed/formulamacro.h, src/mathed/math_macro.h
11481 (EditMessage): add a missing const and add _() to make sure that
11482 translation happens
11484 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
11485 src/insets/insetbib.C, src/support/filetools.C: add `using'
11486 directives for cxx.
11488 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
11489 doing 'Insert index of last word' at the beginning of a paragraph.
11491 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
11493 * several files: white-space changes.
11495 * src/mathed/formula.C: removed IsAlpha and IsDigit
11497 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
11498 .bib file. use a ifstream instead of FilePtr when parsing the .bib
11501 * src/insets/figinset.C (GetPSSizes): don't break when
11502 "EndComments" is seen. But break when a boundingbox is read.
11504 * all classes inherited from Inset: return value of Clone
11505 changed back to Inset *.
11507 * all classes inherited form MathInset: return value of Clone
11508 changed back to MathedInset *.
11510 * src/insets/figinset.C (runqueue): use a ofstream to output the
11511 gs/ps file. Might need some setpresicion or setw. However I can
11512 see no problem with the current code.
11513 (runqueue): use sleep instead of the alarm/signal code. I just
11514 can't see the difference.
11516 * src/paragraph.C (LyXParagraph): reserve space in the new
11517 paragraph and resize the inserted paragraph to just fit.
11519 * src/lyxfunc.h (operator|=): added operator for func_status.
11521 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
11522 check for readable file.
11524 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
11525 check for readable file.
11526 (MenuMakeLinuxDoc): ditto
11527 (MenuMakeDocBook): ditto
11528 (MenuMakeAscii): ditto
11529 (InsertAsciiFile): split the test for openable and readable
11531 * src/bmtable.C (draw_bitmaptable): use
11532 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
11534 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
11535 findtexfile from LaTeX to filetools.
11537 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
11538 instead of FilePtr. Needs to be verified by a literate user.
11540 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11542 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
11543 (EditMessage): likewise.
11545 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
11546 respectively as \textasciitilde and \textasciicircum.
11548 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
11550 * src/support/lyxstring.h: made the methods that take iterators
11551 use const_iterator.
11553 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
11554 (regexMatch): made is use the real regex class.
11556 * src/support/Makefile.am: changed to use libtool
11558 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
11560 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
11562 (MathIsInset ++): changed several macros to be inline functions
11565 * src/mathed/Makefile.am: changed to use libtool
11567 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
11569 * src/insets/inset* : Clone changed to const and return type is
11570 the true insettype not just Inset*.
11572 * src/insets/Makefile.am: changed to use libtool
11574 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
11576 * src/undo.[Ch] : added empty() and changed some of the method
11579 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
11581 * src/lyxparagraph.h: use id() and id(...) instead of getID and
11582 setID use block<> for the bullets array, added const several places.
11584 * src/lyxfunc.C (getStatus): new function
11586 * src/lyxfunc.[Ch] : small changes to take advantage of the new
11587 LyXAction, added const to several funtions.
11589 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
11590 a std::map, and to store the dir items in a vector.
11592 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
11595 * src/LyXView.[Ch] + other files : changed currentView to view.
11597 * src/LyXAction.[Ch] : ported from the old devel branch.
11599 * src/.cvsignore: added .libs and a.out
11601 * configure.in : changes to use libtool.
11603 * acinclude.m4 : inserted libtool.m4
11605 * .cvsignore: added libtool
11607 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11609 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
11610 file name in insets and mathed directories (otherwise the
11611 dependency is not taken in account under cygwin).
11613 * src/text2.C (InsertString[AB]): make sure that we do not try to
11614 read characters past the string length.
11616 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11618 * lib/doc/LaTeXConfig.lyx.in,
11619 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
11621 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
11622 file saying who created them and when this heppened; this is
11623 useless and annoys tools like cvs.
11625 * lib/layouts/g-brief-{en,de}.layout,
11626 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
11627 from Thomas Hartkens <thomas@hartkens.de>.
11629 * src/{insets,mathed}/Makefile.am: do not declare an empty
11630 LDFLAGS, so that it can be set at configure time (useful on Irix
11633 * lib/reLyX/configure.in: make sure that the prefix is set
11634 correctly in LYX_DIR.
11636 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
11638 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
11639 be used by 'command-sequence' this allows to bind a key to a
11640 sequence of LyX-commands
11641 (Example: 'command-sequence math-insert alpha; math-insert beta;")
11643 * src/LyXAction.C: add "command-sequence"
11645 * src/LyXFunction.C: handling of "command-sequence"
11647 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
11648 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
11650 * src/lyxserver.C, src/minibuffer.C: Use this new interface
11652 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11654 * src/buffer.C (writeFile): Do not output a comment giving user
11655 and date at the beginning of a .lyx file. This is useless and
11656 annoys cvs anyway; update version number to 1.1.
11658 * src/Makefile.am (LYX_DIR): add this definition, so that a
11659 default path is hardcoded in LyX.
11661 * configure.in: Use LYX_GNU_GETTEXT.
11663 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
11664 AM_GNU_GETTEXT with a bug fixed.
11666 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
11668 * src/chset.C: add "using std::ifstream;" to please dec cxx.
11670 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
11671 which is used to point to LyX data is now LYX_DIR_11x.
11673 * lyx.man: convert to a unix text file; small updates.
11675 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
11677 * src/support/LSubstring.[Ch]: made the second arg of most of the
11678 constructors be a const reference.
11680 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
11683 * src/support/lyxstring.[Ch] (swap): added missing member function
11684 and specialization of swap(str, str);
11686 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
11688 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
11689 trace of the old one.
11691 * src/undo.[Ch]: made the undostack use std::list to store undo's in
11692 put the member definitions in undo.C.
11694 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
11695 NEW_TEXT and have now only code that was included when this was
11698 * src/intl.C (LCombo): use static_cast
11700 (DispatchCallback): ditto
11702 * src/definitions.h: removed whole file
11704 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
11706 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
11707 parsing and stores in a std:map. a regex defines the file format.
11708 removed unneeded members.
11710 * src/bufferparams.h: added several enums from definitions.h here.
11711 Removed unsused destructor. Changed some types to use proper enum
11712 types. use block to have the temp_bullets and user_defined_bullets
11713 and to make the whole class assignable.
11715 * src/bufferparams.C (Copy): removed this functions, use a default
11716 assignment instead.
11718 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
11721 * src/buffer.C (readLyXformat2): commend out all that have with
11722 oldpapersize to do. also comment out all that hve to do with
11723 insetlatex and insetlatexdel.
11724 (setOldPaperStuff): commented out
11726 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
11728 * src/LyXAction.C: remove use of inset-latex-insert
11730 * src/mathed/math_panel.C (button_cb): use static_cast
11732 * src/insets/Makefile.am (insets_o_SOURCES): removed
11735 * src/support/lyxstring.C (helper): use the unsigned long
11736 specifier, UL, instead of a static_cast.
11738 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
11740 * src/support/block.h: new file. to be used as a c-style array in
11741 classes, so that the class can be assignable.
11743 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11745 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
11746 NULL, make sure to return an empty string (it is not possible to
11747 set a string to NULL).
11749 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11751 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
11753 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
11755 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
11756 link line, so that Irix users (for example) can set it explicitely to
11759 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
11760 it can be overidden at make time (static or dynamic link, for
11763 * src/vc-backend.C, src/LaTeXFeatures.h,
11764 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
11765 statements to bring templates to global namespace.
11767 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
11769 * src/support/lyxstring.C (operator[] const): make it standard
11772 * src/minibuffer.C (Init): changed to reflect that more
11773 information is given from the lyxvc and need not be provided here.
11775 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
11777 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
11779 * src/LyXView.C (UpdateTimerCB): use static_cast
11780 (KeyPressMask_raw_callback): ditto
11782 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
11783 buffer_, a lot of changes because of this. currentBuffer() ->
11784 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
11785 also changes to other files because of this.
11787 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
11789 * src/vc-backend.[Ch]: new files. The backends for vc handling,
11790 have no support for RCS and partial support for CVS, will be
11793 * src/insets/ several files: changes because of function name
11794 changes in Bufferview and LyXView.
11796 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
11798 * src/support/LSubstring.[Ch]: new files. These implement a
11799 Substring that can be very convenient to use. i.e. is this
11801 string a = "Mary had a little sheep";
11802 Substring(a, "sheep") = "lamb";
11803 a is now "Mary has a little lamb".
11805 * src/support/LRegex.[Ch]: a regex class that can be used to pick
11806 out patterns and subpatterns of strings. It is used by LSubstring
11807 and also by vc-backend.C
11809 * src/support/lyxstring.C: went over all the assertions used and
11810 tried to correct the wrong ones and flag which of them is required
11811 by the standard. some bugs found because of this. Also removed a
11812 couple of assertions.
11814 * src/support/Makefile.am (libsupport_a_SOURCES): added
11815 LSubstring.[Ch] and LRegex.[Ch]
11817 * src/support/FileInfo.h: have struct stat buf as an object and
11818 not a pointer to one, some changes because of this.
11820 * src/LaTeXFeatures.C (getTClassPreamble): also use the
11821 information in layout when adding the layouts preamble to the
11822 textclass preamble.
11824 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
11827 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
11828 because of bug in OS/2.
11830 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11832 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
11833 \verbatim@font instead of \ttfamily, so that it can be redefined.
11835 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
11836 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
11837 src/layout.h, src/text2.C: add 'using' directive to bring the
11838 STL templates we need from the std:: namespace to the global one.
11839 Needed by DEC cxx in strict ansi mode.
11841 * src/support/LIstream.h,src/support/LOstream.h,
11842 src/support/lyxstring.h,src/table.h,
11843 src/lyxlookup.h: do not include <config.h> in header
11844 files. This should be done in the .C files only.
11846 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
11850 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11852 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
11853 from Kayvan to fix the tth invokation.
11855 * development/lyx.spec.in: updates from Kayvan to reflect the
11856 changes of file names.
11858 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
11860 * src/text2.C (InsertStringB): use std::copy
11861 (InsertStringA): use std::copy
11863 * src/bufferlist.C: use a vector to store the buffers in. This is
11864 an internal change and should not affect any other thing.
11866 * src/BufferView.C (waitForX): use XSync instead of the lengthy
11869 * src/text.C (Fill): fix potential bug, one off bug.
11871 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
11873 * src/Makefile.am (lyx_main.o): add more files it depends on.
11875 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
11877 * src/support/lyxstring.C: use size_t for the reference count,
11878 size, reserved memory and xtra.
11879 (internal_compare): new private member function. Now the compare
11880 functions should work for std::strings that have embedded '\0'
11882 (compare): all compare functions rewritten to use
11885 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
11887 * src/support/lyxstring.C (compare): pass c_str()
11888 (compare): pass c_str
11889 (compare): pass c_str
11891 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11893 * src/support/DebugStream.C: <config.h> was not included correctly.
11895 * lib/configure: forgot to re-generate it :( I'll make this file
11896 auto generated soon.
11898 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
11900 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
11903 * src/support/lyxstring.C: some changes from length() to rep->sz.
11904 avoids a function call.
11906 * src/support/filetools.C (SpaceLess): yet another version of the
11907 algorithm...now per Jean-Marc's suggestions.
11909 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
11911 * src/layout.C (less_textclass_desc): functor for use in sorting
11913 (LyXTextClass::Read): sort the textclasses after reading.
11915 * src/support/filetools.C (SpaceLess): new version of the
11916 SpaceLess functions. What problems does this one give? Please
11919 * images/banner_bw.xbm: made the arrays unsigned char *
11921 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11923 * src/support/lyxstring.C (find): remove bogus assertion in the
11924 two versions of find where this has not been done yet.
11926 * src/support/lyxlib.h: add missing int return type to
11929 * src/menus.C (ShowFileMenu): disable exporting to html if no
11930 html export command is present.
11932 * config/lib_configure.m4: add a test for an HTML converter. The
11933 programs checked for are, in this order: tth, latex2html and
11936 * lib/configure: generated from config/lib_configure.m4.
11938 * src/lyxfunc.C (Dispatch): update and improve the execution of an
11939 html converter. The parameters are now passed through $$FName and
11940 $$OutName, instead of standard input/output.
11942 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
11944 * lib/lyxrc.example: update description of \html_command.
11945 add "quotes" around \screen_font_xxx font setting examples to help
11946 people who use fonts with spaces in their names.
11948 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
11950 * Distribution files: updates for v1.1.2
11952 * src/support/lyxstring.C (find): remove bogus assert and return
11953 npos for the same condition.
11955 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
11957 * added patch for OS/2 from SMiyata.
11959 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
11961 * src/text2.C (CutSelection): make space_wrapped a bool
11962 (CutSelection): dont declare int i until we have to.
11963 (alphaCounter): return a char const *.
11965 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11967 * src/support/syscall.C (Systemcalls::kill):
11968 src/support/filetools.C (PutEnv, PutEnvPath):
11969 src/lyx_cb.C (addNewlineAndDepth):
11970 src/FontInfo.C (FontInfo::resize): condition some #warning
11971 directives with WITH_WARNINGS.
11974 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
11976 * src/layout.[Ch] + several files: access to class variables
11977 limited and made accessor functions instead a lot of code changed
11978 becuase of this. Also instead of returning pointers often a const
11979 reference is returned instead.
11981 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
11983 * src/Makefile.am (dist-hook): added used to remove the CVS from
11984 cheaders upon creating a dist
11985 (EXTRA_DIST): added cheaders
11987 * src/support/lstrings.C (tostr(char)): fix it to handle param as
11988 a character not as a small integer.
11990 * src/support/lyxstring.C (find): removed Assert and added i >=
11991 rep->sz to the first if.
11993 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
11995 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
11996 src/LyXView.C src/buffer.C src/bufferparams.C
11997 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
11998 src/text2.C src/insets/insetinclude.C:
11999 lyxlayout renamed to textclasslist.
12001 * src/layout.C: some lyxerr changes.
12003 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
12004 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
12005 (LyXLayoutList): removed all traces of this class.
12006 (LyXTextClass::Read): rewrote LT_STYLE
12007 (LyXTextClass::hasLayout): new function
12008 (LyXTextClass::GetLayout): rewritten to return an iterator + has
12009 both const and nonconst version.
12010 (LyXTextClass::delete_layout): new function.
12011 (LyXTextClassList::Style): bug fix. do the right thing if layout
12013 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
12014 (LyXTextClassList::NameOfLayout): ditto
12015 (LyXTextClassList::Load): ditto
12017 * src/buffer.C (makeLaTeXFile): new access to layoutlist
12019 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
12021 * src/LyXAction.C (LookupFunc): added a workaround for sun
12022 compiler, on the other hand...we don't know if the current code
12023 compiles on sun at all...
12025 * src/support/filetools.C (CleanupPath): subst fix
12027 * src/insets/insetbib.C (delDatabase): subst fix, this looks
12030 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
12031 complained about this one?
12033 * src/insets/insetinclude.C (Latex): subst fix
12035 * src/insets/insetbib.C (getKeys): subst fix
12037 * src/LyXSendto.C (SendtoApplyCB): subst fix
12039 * src/lyx_main.C (init): subst fix
12041 * src/layout.C (Read): subst fix
12043 * src/lyx_sendfax_main.C (button_send): subst fix
12045 * src/buffer.C (RoffAsciiTable): subst fix
12047 * src/lyx_cb.C (MenuFax): subst fix
12048 (PrintApplyCB): subst fix
12050 1999-10-26 Juergen Vigna <jug@sad.it>
12052 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
12054 (Read): Cleaned up this code so now we read only format vestion >= 5
12056 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
12058 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
12059 come nobody has complained about this one?
12061 * src/insets/insetinclude.C (Latex): subst fix
12063 * src/insets/insetbib.C (getKeys): subst fix
12065 * src/lyx_main.C (init): subst fix
12067 * src/layout.C (Read): subst fix
12069 * src/buffer.C (RoffAsciiTable): subst fix
12071 * src/lyx_cb.C (MenuFax): subst fix.
12073 * src/layout.[hC] + some other files: rewrote to use
12074 std::container to store textclasses and layouts in.
12075 Simplified, removed a lot of code. Make all classes
12076 assignable. Further simplifications and review of type
12077 use still to be one.
12079 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
12080 lastfiles to create the lastfiles partr of the menu.
12082 * src/lastfiles.[Ch]: rewritten to use deque to store the
12083 lastfiles in. Uses fstream for reading and writing. Simplifies
12086 * src/support/syscall.C: remove explicit cast.
12088 * src/BufferView.C (CursorToggleCB): removed code snippets that
12089 were commented out.
12090 use explicat C++ style casts instead of C style casts. also use
12091 u_vdata instea of passing pointers in longs.
12093 * src/PaperLayout.C: removed code snippets that were commented out.
12095 * src/lyx_gui_misc.C: removed code snippets that were commented out.
12097 * src/lyx_main.C: removed code snippets that wer commented out.
12099 * src/paragraph.C: removed code snippets that were commented out.
12101 * src/lyxvc.C (logClose): use static_cast
12103 (viewLog): remove explicit cast to void*
12104 (showLog): removed old commented code
12106 * src/menus.C: use static_cast instead of C style casts. use
12107 u_vdata instead of u_ldata. remove explicit cast to (long) for
12108 pointers. Removed old code that was commented out.
12110 * src/insets/inset.C: removed old commented func
12112 * src/insets/insetref.C (InsetRef): removed old code that had been
12113 commented out for a long time.
12115 (escape): removed C style cast
12117 * src/insets/insetlatexaccent.C (Draw): removed old commented code
12119 * src/insets/insetlatex.C (Draw): removed old commented code
12120 (Read): rewritten to use string
12122 * src/insets/insetlabel.C (escape): removed C style cast
12124 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
12126 * src/insets/insetindex.C: use static_cast and u_vdata, removed
12127 old commented code.
12129 * src/insets/insetinclude.h: removed a couple of stupid bools
12131 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
12132 (Clone): remove C style cast
12133 (getKeys): changed list to lst because of std::list
12135 * src/insets/inseterror.C (Draw): removed som old commented code.
12137 * src/insets/insetcommand.C (Draw): removed some old commented code.
12139 * src/insets/insetbib.C (bibitem_cb): removed code that has been
12140 commented out forever.
12141 (bibitem_cb): use static_cast instead of C style cast
12142 use of vdata changed to u_vdata.
12144 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
12146 (CloseUrlCB): use static_cast instead of C style cast.
12147 (CloseUrlCB): added a fl_free form...it seemed to be missing.
12149 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
12150 (C_InsetInfo_CloseInfoCB): forward the ob parameter
12151 (CloseInfoCB): static_cast from ob->u_vdata instead.
12152 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
12155 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
12156 (C_InsetError_CloseErrorCB): forward the ob parameter
12157 (CloseErrorCB): static_cast from ob->u_vdata instead.
12159 * src/vspace.h: include LString.h since we use string in this class.
12161 * src/vspace.C (lyx_advance): changed name from advance because of
12162 nameclash with stl. And since we cannot use namespaces yet...I
12163 used a lyx_ prefix instead. Expect this to change when we begin
12166 * src/BufferView.[Ch] (BufferView::~BufferView): removed
12168 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
12169 and removed now defunct constructor and deconstructor.
12171 * src/BufferView.h: have backstack as a object not as a pointer.
12172 removed initialization from constructor. added include for BackStack
12174 * development/lyx.spec.in (%build): add CFLAGS also.
12176 * src/screen.C (drawFrame): removed another warning.
12178 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12180 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
12181 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
12182 README and ANNOUNCE a bit for the next release. More work is
12185 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
12186 unbreakable if we are in freespacing mode (LyX-Code), but not in
12189 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
12191 * src/BackStack.h: fixed initialization order in constructor
12193 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
12195 * acinclude.m4 (VERSION): new rules for when a version is
12196 development, added also a variable for prerelease.
12197 (warnings): we set with_warnings=yes for prereleases
12198 (lyx_opt): prereleases compile with same optimization as development
12199 (CXXFLAGS): only use pedantic if we are a development version
12201 * src/BufferView.C (restorePosition): don't do anything if the
12202 backstack is empty.
12204 * src/BackStack.h: added member empty, use this to test if there
12205 is anything to pop...
12207 1999-10-25 Juergen Vigna <jug@sad.it>
12210 * forms/layout_forms.fd +
12211 * forms/latexoptions.fd +
12212 * lyx.fd: changed for various form resize issues
12214 * src/mathed/math_panel.C +
12215 * src/insets/inseterror.C +
12216 * src/insets/insetinfo.C +
12217 * src/insets/inseturl.C +
12218 * src/insets/inseturl.h +
12220 * src/LyXSendto.C +
12221 * src/PaperLayout.C +
12222 * src/ParagraphExtra.C +
12223 * src/TableLayout.C +
12225 * src/layout_forms.C +
12232 * src/menus.C: fixed various resize issues. So now forms can be
12233 resized savely or not be resized at all.
12235 * forms/form_url.fd +
12236 * src/insets/form_url.[Ch]: added because it's cleaner and easier
12239 * src/insets/Makefile.am: added files form_url.[Ch]
12241 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12243 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
12244 (and presumably 6.2).
12246 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
12247 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
12248 remaining static member callbacks.
12250 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
12253 * src/support/lyxstring.h: declare struct Srep as friend of
12254 lyxstring, since DEC cxx complains otherwise.
12256 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
12258 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
12260 * src/LaTeX.C (run): made run_bibtex also depend on files with
12262 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
12263 are put into the dependency file.
12265 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
12266 the code has shown itself to work
12267 (create_ispell_pipe): removed another warning, added a comment
12270 * src/minibuffer.C (ExecutingCB): removed code that has been
12271 commented out a long time
12273 * src/lyxfunc.C (processKeyEvent): removed some very old commented
12274 out code + a warning.
12276 * src/support/lyxstring.h: comment out the three private
12277 operators, when compiling with string ansi conforming compilers
12278 they make problems.
12280 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
12282 (pixmapFromBitmapData): change type of bdata to be unsigned char *
12283 (pixmapFromBitmapData): add a reinterpret_cast in the call to
12286 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
12289 * src/mathed/math_panel.C (create_math_panel): remove explicit
12292 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
12295 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
12296 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
12297 to XCreatePixmapFromBitmapData
12298 (fl_set_bmtable_data): change the last argument to be unsigned
12300 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
12301 and bh to be unsigned int, remove explicit casts in call to
12302 XReadBitmapFileData.
12304 * images/arrows.xbm: made the arrays unsigned char *
12305 * images/varsz.xbm: ditto
12306 * images/misc.xbm: ditto
12307 * images/greek.xbm: ditto
12308 * images/dots.xbm: ditto
12309 * images/brel.xbm: ditto
12310 * images/bop.xbm: ditto
12312 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
12314 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
12315 (LYX_PROG_CXX): added -pedantic to g++ compile options when
12316 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
12318 (LYX_CXX_CHEADERS): added <clocale> to the test.
12320 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
12322 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
12324 * src/support/lyxstring.C (append): fixed something that must be a
12325 bug, rep->assign was used instead of rep->append.
12327 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
12330 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
12331 lyx insert double chars. Fix spotted by Kayvan.
12333 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
12335 * Fixed the tth support. I messed up with the Emacs patch apply feature
12336 and omitted the changes in lyxrc.C.
12338 1999-10-22 Juergen Vigna <jug@sad.it>
12340 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
12342 * src/lyx_cb.C (MenuInsertRef) +
12343 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
12344 the form cannot be resized under it limits (fixes a segfault)
12346 * src/lyx.C (create_form_form_ref) +
12347 * forms/lyx.fd: Changed Gravity on name input field so that it is
12350 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12352 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
12353 <ostream> and <istream>.
12355 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
12356 whether <fstream> provides the latest standard features, or if we
12357 have an oldstyle library (like in egcs).
12358 (LYX_CXX_STL_STRING): fix the test.
12360 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
12361 code on MODERN_STL_STREAM.
12363 * src/support/lyxstring.h: use L{I,O}stream.h.
12365 * src/support/L{I,O}stream.h: new files, designed to setup
12366 correctly streams for our use
12367 - includes the right header depending on STL capabilities
12368 - puts std::ostream and std::endl (for LOStream.h) or
12369 std::istream (LIStream.h) in toplevel namespace.
12371 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
12373 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
12374 was a bib file that had been changed we ensure that bibtex is run.
12375 (runBibTeX): enhanced to extract the names of the bib files and
12376 getting their absolute path and enter them into the dep file.
12377 (findtexfile): static func that is used to look for tex-files,
12378 checks for absolute patchs and tries also with kpsewhich.
12379 Alternative ways of finding the correct files are wanted. Will
12381 (do_popen): function that runs a command using popen and returns
12382 the whole output of that command in a string. Should be moved to
12385 * src/DepTable.[Ch] (extchanged): new function that returns true if a
12386 file with extension ext has changed.
12388 * src/insets/figinset.C: added ifdef guards around the fl_free
12389 code that jug commented out. Now it is commented out when
12390 compiling with XForms == 0.89.
12392 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
12393 to lyxstring.C, and only keep a forward declaration in
12394 lyxstring.h. Simplifies the header file a bit and should help a
12395 bit on compile time too. Also changes to Srep will not mandate a
12396 recompile of code just using string.
12397 (~lyxstring): definition moved here since it uses srep.
12398 (size): definition moved here since it uses srep.
12400 * src/support/lyxstring.h: removed a couple of "inline" that should
12403 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12405 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
12408 1999-10-21 Juergen Vigna <jug@sad.it>
12410 * src/table.C (SetPWidth): Just a small fix so the alignment is not
12411 set to left if I just remove the width entry (or it is empty).
12413 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
12414 paragraph when having dummy paragraphs.
12416 1999-10-20 Juergen Vigna <jug@sad.it>
12418 * src/insets/figinset.C: just commented some fl_free_form calls
12419 and added warnings so that this calls should be activated later
12420 again. This avoids for now a segfault, but we have a memory leak!
12422 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
12423 'const char * argument' to 'string argument', this should
12424 fix some Asserts() in lyxstring.C.
12426 * src/lyxfunc.h: Removed the function argAsString(const char *)
12427 as it is not used anymore.
12429 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
12431 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
12434 * src/Literate.h: some funcs moved from public to private to make
12435 interface clearer. Unneeded args removed.
12437 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
12439 (scanBuildLogFile): ditto
12441 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
12442 normal TeX Error. Still room for improvement.
12444 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
12446 * src/buffer.C (insertErrors): changes to make the error
12447 desctription show properly.
12449 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
12452 * src/support/lyxstring.C (helper): changed to use
12453 sizeof(object->rep->ref).
12454 (operator>>): changed to use a pointer instead.
12456 * src/support/lyxstring.h: changed const reference & to value_type
12457 const & lets see if that helps.
12459 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
12461 * Makefile.am (rpmdist): fixed to have non static package and
12464 * src/support/lyxstring.C: removed the compilation guards
12466 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
12469 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
12470 conditional compile of lyxstring.Ch
12472 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
12473 stupid check, but it is a lot better than the bastring hack.
12474 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
12476 * several files: changed string::erase into string::clear. Not
12479 * src/chset.C (encodeString): use a char temporary instead
12481 * src/table.C (TexEndOfCell): added tostr around
12482 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
12483 (TexEndOfCell): ditto
12484 (TexEndOfCell): ditto
12485 (TexEndOfCell): ditto
12486 (DocBookEndOfCell): ditto
12487 (DocBookEndOfCell): ditto
12488 (DocBookEndOfCell): ditto
12489 (DocBookEndOfCell): ditto
12491 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
12493 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
12495 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
12496 (MenuBuildProg): added tostr around ret
12497 (MenuRunChktex): added tostr around ret
12498 (DocumentApplyCB): added tostr around ret
12500 * src/chset.C (encodeString): added tostr around t->ic
12502 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
12503 (makeLaTeXFile): added tostr around tocdepth
12504 (makeLaTeXFile): added tostr around ftcound - 1
12506 * src/insets/insetbib.C (setCounter): added tostr around counter.
12508 * src/support/lyxstring.h: added an operator+=(int) to catch more
12511 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
12512 (lyxstring): We DON'T allow NULL pointers.
12514 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12516 * src/mathed/math_macro.C (MathMacroArgument::Write,
12517 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
12518 when writing them out.
12520 * src/LString.C: remove, since it is not used anymore.
12522 * src/support/lyxstring.C: condition the content to
12523 USE_INCLUDED_STRING macro.
12525 * src/mathed/math_symbols.C, src/support/lstrings.C,
12526 src/support/lyxstring.C: add `using' directive to specify what
12527 we need in <algorithm>. I do not think that we need to
12528 conditionalize this, but any thought is appreciated.
12530 * many files: change all callback functions to "C" linkage
12531 functions to please strict C++ compilers like DEC cxx 6.1 in mode
12532 strict_ansi. Those who were static are now global.
12533 The case of callbacks which are static class members is
12534 trickier, since we have to make C wrappers around them (see
12535 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
12536 did not finish this yet, since it defeats the purpose of
12537 encapsulation, and I am not sure what the best route is.
12539 1999-10-19 Juergen Vigna <jug@sad.it>
12541 * src/support/lyxstring.C (lyxstring): we permit to have a null
12542 pointer as assignment value and just don't assign it.
12544 * src/vspace.C (nextToken): corrected this function substituting
12545 find_first(_not)_of with find_last_of.
12547 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
12548 (TableOptCloseCB) (TableSpeCloseCB):
12549 inserted fl_set_focus call for problem with fl_hide_form() in
12552 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12554 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
12557 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12559 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
12560 LyXLex::next() and not eatline() to get its argument.
12562 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
12564 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
12565 instead, use fstreams for io of the depfile, removed unneeded
12566 functions and variables.
12568 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
12569 vector instead, removed all functions and variables that is not in
12572 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
12574 * src/buffer.C (insertErrors): use new interface to TeXError
12576 * Makefile.am (rpmdist): added a rpmdist target
12578 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
12579 per Kayvan's instructions.
12581 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12583 * src/Makefile.am: add a definition for localedir, so that locales
12584 are found after installation (Kayvan)
12586 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
12588 * development/.cvsignore: new file.
12590 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12592 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
12593 C++ compiler provides wrappers for C headers and use our alternate
12596 * configure.in: use LYX_CXX_CHEADERS.
12598 * src/cheader/: new directory, populated with cname headers from
12599 libstdc++-2.8.1. They are a bit old, but probably good enough for
12600 what we want (support compilers who lack them).
12602 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
12603 from includes. It turns out is was stupid.
12605 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
12607 * lib/Makefile.am (install-data-local): forgot a ';'
12608 (install-data-local): forgot a '\'
12609 (libinstalldirs): needed after all. reintroduced.
12611 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
12613 * configure.in (AC_OUTPUT): added lyx.spec
12615 * development/lyx.spec: removed file
12617 * development/lyx.spec.in: new file
12619 * po/*.po: merged with lyx.pot becuase of make distcheck
12621 * lib/Makefile.am (dist-hook): added dist-hook so that
12622 documentation files will be included when doing a make
12623 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
12624 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
12626 more: tried to make install do the right thing, exclude CVS dirs
12629 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
12630 Path would fit in more nicely.
12632 * all files that used to use pathstack: uses now Path instead.
12633 This change was a lot easier than expected.
12635 * src/support/path.h: new file
12637 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
12639 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
12641 * src/support/lyxstring.C (getline): Default arg was given for
12644 * Configure.cmd: removed file
12646 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12648 * src/support/DebugStream.[Ch]: remove the explicit std:: before
12649 streams classes and types, add the proper 'using' statements when
12650 MODERN_STL is defined.
12652 * src/debug.h: move the << operator definition after the inclusion
12655 * src/support/filetools.C: include "LAssert.h", which is needed
12658 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
12661 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
12662 include "debug.h" to define a proper ostream.
12664 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
12666 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
12667 method to the SystemCall class which can kill a process, but it's
12668 not fully implemented yet.
12670 * src/*.C: Changed Systemcalls::Startscript() to startscript()
12672 * src/support/FileInfo.h: Better documentation
12674 * src/lyxfunc.C: Added support for buffer-export html
12676 * src/menus.C: Added Export->As HTML...
12678 * lib/bind/*.bind: Added short-cut for buffer-export html
12680 * src/lyxrc.*: Added support for new \tth_command
12682 * lib/lyxrc.example: Added stuff for new \tth_command
12684 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
12686 * lib/Makefile.am (IMAGES): removed images/README
12687 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
12688 installes in correct place. Check permisions is installed
12691 * src/LaTeX.C: some no-op changes moved declaration of some
12694 * src/LaTeX.h (LATEX_H): changed include guard name
12696 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12698 * lib/reLyX/Makefile.am: install noweb2lyx.
12700 * lib/Makefile.am: install configure.
12702 * lib/reLyX/configure.in: declare a config aux dir; set package
12703 name to lyx (not sure what the best solution is); generate noweb2lyx.
12705 * lib/layouts/egs.layout: fix the bibliography layout.
12707 1999-10-08 Jürgen Vigna <jug@sad.it>
12709 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
12710 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
12711 it returned without continuing to search the path.
12713 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
12715 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
12716 also fixes a bug. It is not allowed to do tricks with std::strings
12717 like: string a("hei"); &a[e]; this will not give what you
12718 think... Any reason for the complexity in this func?
12720 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
12722 * Updated README and INSTALL a bit, mostly to check that my
12723 CVS rights are correctly set up.
12725 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
12727 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
12728 does not allow '\0' chars but lyxstring and std::string does.
12730 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
12732 * autogen.sh (AUTOCONF): let the autogen script create the
12733 POTFILES.in file too. POTFILES.in should perhaps now not be
12734 included in the cvs module.
12736 * some more files changed to use C++ includes instead of C ones.
12738 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
12740 (Reread): added tostr to nlink. buggy output otherwise.
12741 (Reread): added a string() around szMode when assigning to Buffer,
12742 without this I got a log of garbled info strings.
12744 * acconfig.h: commented out the PTR_AS_INT macros. They should not
12747 * I have added several ostream & operator<<(ostream &, some_type)
12748 functions. This has been done to avoid casting and warnings when
12749 outputting enums to lyxerr. This as thus eliminated a lot of
12750 explicit casts and has made the code clearer. Among the enums
12751 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
12752 mathed enums, some font enum the Debug::type enum.
12754 * src/support/lyxstring.h (clear): missing method. equivalent of
12757 * all files that contained "stderr": rewrote constructs that used
12758 stderr to use lyxerr instead. (except bmtable)
12760 * src/support/DebugStream.h (level): and the passed t with
12761 Debug::ANY to avoid spurious bits set.
12763 * src/debug.h (Debug::type value): made it accept strings of the
12764 type INFO,INIT,KEY.
12766 * configure.in (Check for programs): Added a check for kpsewhich,
12767 the latex generation will use this later to better the dicovery of
12770 * src/BufferView.C (create_view): we don't need to cast this to
12771 (void*) that is done automatically.
12772 (WorkAreaButtonPress): removed some dead code.
12774 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12776 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
12777 is not overwritten when translated (David Sua'rez de Lis).
12779 * lib/CREDITS: Added David Sua'rez de Lis
12781 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
12783 * src/bufferparams.C (BufferParams): default input encoding is now
12786 * acinclude.m4 (cross_compiling): comment out macro
12787 LYX_GXX_STRENGTH_REDUCE.
12789 * acconfig.h: make sure that const is not defined (to empty) when
12790 we are compiling C++. Remove commented out code using SIZEOF_xx
12793 * configure.in : move the test for const and inline as late as
12794 possible so that these C tests do not interefere with C++ ones.
12795 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
12796 has not been proven.
12798 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12800 * src/table.C (getDocBookAlign): remove bad default value for
12801 isColumn parameter.
12803 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
12805 (ShowFileMenu2): ditto.
12807 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
12808 of files to ignore.
12810 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
12812 * Most files: finished the change from the old error code to use
12813 DebugStream for all lyxerr debugging. Only minor changes remain
12814 (e.g. the setting of debug levels using strings instead of number)
12816 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
12818 * src/layout.C (Add): Changed to use compare_no_case instead of
12821 * src/FontInfo.C: changed loop variable type too string::size_type.
12823 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
12825 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
12826 set ETAGS_ARGS to --c++
12828 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
12830 * src/table.C (DocBookEndOfCell): commented out two unused variables
12832 * src/paragraph.C: commented out four unused variables.
12834 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
12835 insed a if clause with type string::size_type.
12837 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
12840 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
12842 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
12843 variable, also changed loop to go from 0 to lenght + 1, instead of
12844 -1 to length. This should be correct.
12846 * src/LaTeX.C (scanError): use string::size_type as loop variable
12849 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
12850 (l.896) since y_tmp and row was not used anyway.
12852 * src/insets/insetref.C (escape): use string::size_type as loop
12855 * src/insets/insetquotes.C (Width): use string::size_type as loop
12857 (Draw): use string::size_type as loop variable type.
12859 * src/insets/insetlatexaccent.C (checkContents): use
12860 string::size_type as loop variable type.
12862 * src/insets/insetlabel.C (escape): use string::size_type as loop
12865 * src/insets/insetinfo.C: added an extern for current_view.
12867 * src/insets/insetcommand.C (scanCommand): use string::size_type
12868 as loop variable type.
12870 * most files: removed the RCS tags. With them we had to recompile
12871 a lot of files after a simple cvs commit. Also we have never used
12872 them for anything meaningful.
12874 * most files: tags-query-replace NULL 0. As adviced several plases
12875 we now use "0" instead of "NULL" in our code.
12877 * src/support/filetools.C (SpaceLess): use string::size_type as
12878 loop variable type.
12880 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
12882 * src/paragraph.C: fixed up some more string stuff.
12884 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
12886 * src/support/filetools.h: make modestr a std::string.
12888 * src/filetools.C (GetEnv): made ch really const.
12890 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
12891 made code that used these use max/min from <algorithm> instead.
12893 * changed several c library include files to their equivalent c++
12894 library include files. All is not changed yet.
12896 * created a support subdir in src, put lyxstring and lstrings
12897 there + the extra files atexit, fileblock, strerror. Created
12898 Makefile.am. edited configure.in and src/Makefile.am to use this
12899 new subdir. More files moved to support.
12901 * imported som of the functions from repository lyx, filetools
12903 * ran tags-query-replace on LString -> string, corrected the bogus
12904 cases. Tried to make use of lstrings.[hC], debugged a lot. There
12905 is still some errors in there. This is errors where too much or
12906 too litle get deleted from strings (string::erase, string::substr,
12907 string::replace), there can also be some off by one errors, or
12908 just plain wrong use of functions from lstrings. Viewing of quotes
12911 * LyX is now running fairly well with string, but there are
12912 certainly some bugs yet (see above) also string is quite different
12913 from LString among others in that it does not allow null pointers
12914 passed in and will abort if it gets any.
12916 * Added the revtex4 files I forgot when setting up the repository.
12918 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
12920 * All over: Tried to clean everything up so that only the files
12921 that we really need are included in the cvs repository.
12922 * Switched to use automake.
12923 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
12924 * Install has not been checked.
12926 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
12928 * po/pt.po: Three errors:
12929 l.533 and l.538 format specification error
12930 l. 402 duplicate entry, I just deleted it.