1 2000-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): use
5 (add_lastfiles): removed.
6 (add_documents): removed.
7 (add_formats): removed.
9 * src/frontends/Menubar.C: remove useless "using" directive.
11 * src/MenuBackend.h: add a new MenuItem constructor.
13 * src/MenuBackend.[Ch] (Menu::expand): new method. Used in the
16 2000-10-04 Allan Rae <rae@lyx.org>
18 * lib/Makefile.am (listerrors):
19 * lib/build-listerrors: make $builddir != $srcdir compiles work again.
20 I haven't got notangle installed so Kayvan please test. The output
21 should end up in $builddir. This also allows people who don't have
22 noweb installed to complete the make process without error.
24 * src/frontends/xforms/FormCommand.[Ch] (showInset):
25 * src/frontends/xforms/FormError.[Ch] (showInset): fix warnings found
26 by JMarc's picky compiler.
28 2000-10-03 Lars Gullik Bjønnes <larsbj@lyx.org>
31 * src/insets/insettabular.C (setPos): change for loop to not use
32 sequencing operator. Please check this Jürgen.
34 * src/frontends/xforms/Menubar_pimpl.C (makeMenubar): use "c"
36 * src/insets/insetcite.C (getScreenLabel): ditto
37 * src/support/filetools.C (QuoteName): ditto
38 (ChangeExtension): ditto
40 * src/BufferView_pimpl.C (scrollCB): make heigt int
42 * src/BufferView2.C (insertInset): comment out unused arg
44 * boost/Makefile.am (EXTRADIST): new variable
46 2000-10-03 Dekel Tsur <dekelts@tau.ac.il>
48 * src/exporter.C (IsExportable): Fixed
50 * lib/configure.m4: Small fix
52 2000-10-03 Dekel Tsur <dekelts@tau.ac.il>
54 * src/insets/insetbutton.C (width): Changed to work with no GUI.
55 * src/insets/insetbib.C (bibitemWidest): ditto.
56 * src/lyx_gui_misc.C (AskQuestion,AskConfirmation,askForText): ditto.
58 2000-10-03 Juergen Vigna <jug@sad.it>
60 * src/BufferView2.C (theLockingInset): removed const because of
61 Agnus's compile problems.
63 * src/insets/insettext.C (LocalDispatch): set the language of the
64 surronding paragraph on inserting the first character.
66 * various files: changed use of BufferView::the_locking_inset.
68 * src/BufferView2.C (theLockingInset):
69 (theLockingInset): new functions.
71 * src/BufferView.h: removed the_locking_inset.
73 * src/lyxtext.h: added the_locking_inset
75 * src/BufferView_pimpl.C (checkInsetHit): y_tmp form uint to int.
77 * src/insets/lyxinset.h: added bool to ShowInsetCursor definition.
79 2000-10-02 Angus Leeming <a.leeming@ic.ac.uk>
81 * src/mathed/formula.C (IsMacro): declared but not referenced; removed.
82 * src/mathed/math_cursor.C (IsAlpha): ditto.
83 * src/mathed/math_inset.C (strnew): ditto.
84 * src/mathed/math_iter.C: SizeFont declared but not referenced;removed.
85 (IMetrics): cxp set but never used; removed.
86 * src/insets/figinset.C (InitFigures): removed redundant for loop, now
87 that the variable in question has been removed also!
90 * src/insets/insetbib.[Ch]: remove need to store Buffer * owner by
91 using the Buffer * passed to Latex(), using the BufferView * passed to
92 bibitemMaxWidth() bibitemWidest() and by passing a Buffer* to getKeys()
94 * src/insets/insetinclude.C: use the Buffer * passed to Latex(),
95 Linuxdoc() and DocBook() rather than the stored Buffer * master.
97 * src/lyxfunc.C (Dispatch): used new InsetBibtex c-tor
98 * src/buffer.C (readInset): used new InsetBibtex c-tor
99 * (getBibkeyList): used new InsetBibtex::getKeys
101 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
104 * lib/build-listerrors
106 * src/exporter.C: Add literate programming support to the export code
109 * src/lyx_cb.C: Remove old literate code.
111 * src/lyxrc.[Ch]: Remove many obsolete (due to new export code)
114 * src/lyxfunc.C (getStatus): Use Exporter::IsExportable
115 * src/converter.C (View, Convert): Use QuoteName.
117 * src/insets/figinset.C (Preview): Use Formats::View.
119 * lib/configure.m4: Add sgml->dvi converter to lyxrc.default
121 2000-10-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
123 * src/lyxfunc.C (Dispatch): move declaration of text variable at
124 the top of the function, because compaq cxx complains that the
125 "goto exit_with_message" when the function is disabled bypasses
127 (MenuNew): try a better fix for the generation of new file names.
128 This time, I used AddName() instead of AddPath(), hoping Juergen
131 2000-10-03 Allan Rae <rae@lyx.org>
133 * src/frontends/xforms/forms/form_preferences.fd:
134 * src/frontends/xforms/FormPreferences.[Ch]: redesign of dialog using
135 nested tabfolders has begun. The old "Miscellaneous" was renamed as
136 "Look and Feel"->"General" but will need to be split up further into
137 general output and general input tabs. Current plan is for four outer
138 tabfolders: "Look and Feel" for colours, bindings, fonts and other HCI
139 stuff; "Inputs" for input and import configuration; "Outputs" for
140 output and export configuration; and one more whatever is left over
141 called "General". The leftovers at present look like being which
142 viewers to use, spellchecker, language support and might be better
143 named "Support". I've put "Paths" in "Inputs" for the moment as this
144 seems reasonable for now at least.
145 One problem remains: X error kills LyX when you close Preferences.
147 2000-10-02 Angus Leeming <a.leeming@ic.ac.uk>
149 * src/frontends/xforms/FormBase.[Ch]: removed "meaningless" const.
150 qualifier from form()
151 * src/frontends/xforms/FormCitation.[Ch]:
152 * src/frontends/xforms/FormCopyright.[Ch]:
153 * src/frontends/xforms/FormDocument.[Ch]:
154 * src/frontends/xforms/FormError.[Ch]:
155 * src/frontends/xforms/FormIndex.[Ch]:
156 * src/frontends/xforms/FormPreferences.[Ch]:
157 * src/frontends/xforms/FormPrint.[Ch]:
158 * src/frontends/xforms/FormRef.[Ch]:
159 * src/frontends/xforms/FormToc.[Ch]:
160 * src/frontends/xforms/FormUrl.[Ch]: ditto.
162 * src/frontends/xforms/FormCitation.[Ch]:
163 * src/frontends/xforms/FormIndex.[Ch]:
164 * src/frontends/xforms/FormRef.[Ch]:
165 * src/frontends/xforms/FormUrl.[Ch]: Renamed a few buttons, consistent
166 with Allan's naming policy
168 * src/frontends/xforms/FormCitation.C: some static casts to remove
171 2000-10-02 Juergen Vigna <jug@sad.it>
173 * src/insets/insettabular.C (LocalDispatch): fixed selection code,
174 now you can type or do stuff inside the table-cell also when in dummy
175 position, fixed visible cursor.
177 * src/insets/insettext.C (Edit): fixing cursor-view position.
179 * src/lyxfunc.C (Dispatch): use * text variable so that it can
180 be used for equal functions in lyxfunc and insettext.
182 * src/text.C (GetVisibleRow): fixed a small clear_area bug.
184 2000-10-02 John Levon <moz@compsoc.man.ac.uk>
186 * src/frontends/gnome/FormCitation.h:
187 * src/frontends/gnome/FormCopyright.h:
188 * src/frontends/gnome/FormIndex.h:
189 * src/frontends/gnome/FormPrint.h:
190 * src/frontends/gnome/FormToc.h:
191 * src/frontends/gnome/FormUrl.h:
192 * src/frontends/kde/FormCitation.h:
193 * src/frontends/kde/FormCopyright.h:
194 * src/frontends/kde/FormIndex.h:
195 * src/frontends/kde/FormRef.h:
196 * src/frontends/kde/FormToc.h:
197 * src/frontends/kde/FormUrl.h: fix remaining users of
200 2000-10-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
202 * src/buffer.C (linuxDocHandleFootnote): remove const modifier
204 (DocBookHandleCaption): ditto.
205 (DocBookHandleFootnote): ditto.
206 (SimpleDocBookOnePar): ditto.
208 * src/frontends/xforms/FormDocument.h (form): remove extra
209 FormDocument:: qualifier.
211 * sigc++/macros/basic_signal.h.m4: remove erroneous virtual
213 * sigc++/handle.h: ditto.
215 * src/lyx_gui_misc.C: add "using" directive.
217 * src/cheaders/cstddef: new file, needed by the boost library (for
220 2000-10-02 Juergen Vigna <jug@sad.it>
222 * src/insets/insettext.C (SetFont): better support.
224 * src/insets/insettabular.C (draw): fixed drawing of single cell.
226 * src/screen.C (DrawOneRow): some uint refixes!
228 2000-10-02 Allan Rae <rae@lyx.org>
230 * boost/.cvsignore: ignore Makefile as well
232 * src/lyxfunc.C (Dispatch): missing break; and moved the '}' for
233 LFUN_UNKNOWN_ACTION: so it doesn't wrap around default:.
235 * src/frontends/xforms/FormPreferences.[Ch] (restore): D'oh.
236 Left this one out by accident.
238 * src/frontends/xforms/FormBase.h (restore): default to calling
239 update() since that will restore the original/currently-applied values.
240 Any input() triggered error messages will require the derived classes
241 to redefine restore().
243 * src/frontends/xforms/FormDocument.C: initialize a few variables to
244 avoid a segfault. combo_doc_class is the main concern.
246 2000-10-01 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
248 * Simplify build-listerrors in view of GUI-less export ability!
250 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
252 * src/lyx_main.C (easyParse): Disable gui when exporting
254 * src/insets/figinset.C:
258 * src/tabular.C: Changes to allow no-gui.
260 2000-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
262 * src/support/utility.hpp: removed file
263 * src/support/block.h: removed file
265 * src/support/Makefile.am (libsupport_la_SOURCES): remove block.h
268 * src/mathed/formula.C: add support/lyxlib.h
269 * src/mathed/formulamacro.C: ditto
271 * src/bufferparams.h: use boost/array.hpp instead of support/block.h
272 * src/lyxparagraph.h: ditto
274 * src/Makefile.am (BOOST_INCLUDES): the boost include dir
275 * src/frontends/Makefile.am (INCLUDES): ditto
276 * src/frontends/gnome/Makefile.am (BOOST_INCLUDES): ditto
277 * src/frontends/kde/Makefile.am (BOOST_INCLUDES): ditto
278 * src/frontends/xforms/Makefile.am (BOOST_INCLUDES): ditto
279 * src/graphics/Makefile.am (BOOST_INCLUDES): ditto
280 * src/insets/Makefile.am (BOOST_INCLUDES): ditto
281 * src/mathed/Makefile.am (BOOST_INCLUDES): ditto
283 * src/BufferView.h: use boost/utility.hpp
284 * src/LColor.h: ditto
286 * src/LyXAction.h: ditto
287 * src/LyXView.h: ditto
288 * src/bufferlist.h: ditto
289 * src/lastfiles.h: ditto
290 * src/layout.h: ditto
291 * src/lyx_gui.h: ditto
292 * src/lyx_main.h: ditto
293 * src/lyxlex.h: ditto
295 * src/frontends/ButtonPolicies.h: ditto
296 * src/frontends/Dialogs.h: ditto
297 * src/frontends/xforms/FormBase.h: ditto
298 * src/frontends/xforms/FormGraphics.h: ditto
299 * src/frontends/xforms/FormParagraph.h: ditto
300 * src/frontends/xforms/FormTabular.h: ditto
301 * src/graphics/GraphicsCache.h: ditto
302 * src/graphics/Renderer.h: ditto
303 * src/insets/ExternalTemplate.h: ditto
304 * src/insets/insetcommand.h: ditto
305 * src/support/path.h: ditto
307 * config/lyxinclude.m4 (LYX_PROG_CXX): change clause for 2.96
308 and introduce clause for 2.97.
310 * boost/libs/README: new file
312 * boost/boost/utility.hpp: new file
314 * boost/boost/config.hpp: new file
316 * boost/boost/array.hpp: new file
318 * boost/Makefile.am: new file
320 * boost/.cvsignore: new file
322 * configure.in (AC_OUTPUT): add boost/Makefile
324 * Makefile.am (SUBDIRS): add boost
326 2000-10-01 Dekel Tsur <dekelts@tau.ac.il>
328 * src/support/lstrings.C (suffixIs): Fixed.
330 2000-10-01 Allan Rae <rae@lyx.org>
332 * src/PrinterParams.h: moved things around to avoid the "can't
333 inline call" warning.
335 * src/frontends/xforms/RadioButtonGroup.h: turned a comment
336 into doc++ documentation.
338 * src/frontends/xforms/FormCommand.[Ch]: support button policy
340 * src/frontends/xforms/FormRef.C: make use of button controller
341 * src/frontends/xforms/FormDocument.[Ch]: convert to use FormBase
342 cleaned up button controller usage.
343 * src/frontends/xforms/FormPreferences.[Ch]: convert to use FormBase
344 * src/frontends/xforms/FormPrint.[Ch]: convert to use FormBase and
345 use the button controller
347 * src/frontends/xforms/forms/*.fd: and associated generated files
348 updated to reflect changes to FormBase. Some other FormXxxx files
349 also got minor updates to reflect changes to FormBase.
351 * src/frontends/xforms/FormBase.[Ch]: (ok, cancel): new
352 (hide): made virtual.
353 (input): return a bool. true == valid input
354 (RestoreCB, restore): new
355 (CancelCB, OKCB): renamed from HideCB and ApplyHideCB.
356 Changes to allow derived dialogs to use a ButtonController and
357 make sense when doing so: OK button calls ok() and so on.
359 * src/frontends/xforms/ButtonController.h (class ButtonController):
360 Switch from template implementation to taking Policy parameter.
361 Allows FormBase to provide a ButtonController for any dialog.
363 * src/frontends/xforms/FormPrint.C (connect): setup sizing at show-time
364 Probably should rename connect and disconnect.
365 (apply): use the radio button groups
366 (form): needed by FormBase
367 (build): setup the radio button groups
369 2000-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
371 * several files: type changes to reduce the number of warnings and
372 to unify type hangling a bit. Still much to do.
374 2000-09-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
376 * lib/images/*: rename a bunch of icons to match Dekel converter
379 * src/buffer.h (SimpleLinuxDocOnePar): remove const qualifier to
382 * src/frontends/xforms/FormBase.C (disconnect): remove bogus test.
384 * sigc++/macros/basic_signal.h.m4: fix class Signal_ to have a
386 * sigc++/handle.h: ditto for class Handle.
388 2000-09-27 John Levon <moz@compsoc.man.ac.uk>
390 * config/kde.m4: make Qt fail immediately if Qt2 is picked up
392 2000-09-28 Dekel Tsur <dekelts@tau.ac.il>
394 * src/intl.C (InitKeyMapper): Correct the value of n due to the
395 removal of the "default" language.
397 * src/combox.h (getline): Check that sel > 0
399 2000-09-29 José Abílio Matos <jamatos@fep.up.pt>
401 * lib/examples/docbook_example.lyx
402 * lib/examples/docbook_article.lyx: file renamed to avoid confusion.
404 * lib/layouts/docbook-book.layout: new docbook book layout.
406 * lib/layouts/linuxdoc.layout: LatexName of Style SGML is now dummy.
408 * lib/layouts/manpage.layout: Same as above. Style SubSection removed.
410 * src/insets/figinset.C (DocBook):fixed small typo.
412 * src/insets/insetinclude.C (DocBook): new export for verbatim type.
414 * src/insets/insetinclude.h: string include_label doesn't need to be
417 2000-09-29 Allan Rae <rae@lyx.org>
419 * src/frontends/xforms/FormBase.[Ch] (connect, disconnect): new.
420 Allow derived type to control connection and disconnection from signals
421 of its choice if desired.
423 2000-09-28 Juergen Vigna <jug@sad.it>
425 * src/insets/insettabular.C (update): fixed cursor setting when
426 the_locking_inset changed.
427 (draw): made this a bit cleaner.
428 (InsetButtonPress): fixed!
430 * various files: added LyXText Parameter to fitCursor call.
432 * src/BufferView.C (fitCursor): added LyXText parameter.
434 * src/insets/insettabular.C (draw): small draw fix.
436 * src/tabular.C: right setting of left/right celllines.
438 * src/tabular.[Ch]: fixed various types in funcions and structures.
439 * src/insets/insettabular.C: ditto
440 * src/frontends/xforms/FormTabular.C: ditto
442 2000-09-28 Allan Rae <rae@lyx.org>
444 * src/paragraph.C (TeXOnePar): fixed output of '\n'. The problem was
445 that the #ifdef's had been applied to part of what should have been
446 a complete condition. It's possible there are other tests that
447 were specific to tables that are also wrong now that InsetTabular is
448 being used. Now we need to fix the output of '\n' after a table in a
449 float for the same reason as the original condition:
450 "don't insert this if we would be adding it before or after a table
451 in a float. This little trick is needed in order to allow use of
452 tables in \subfigures or \subtables."
453 Juergen can you check this?
455 2000-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
457 * src/insets/insettext.C (Ascii): return numer of '\n' in the text
458 outputed to the ostream.
460 * several files: fixed types based on warnings from cxx
462 2000-09-26 John Levon <moz@compsoc.man.ac.uk>
464 * src/frontends/kde/Makefile.am: fix rule for
465 formindexdialogdata_moc.C
467 * src/.cvsignore: add ext_l10n.h to ignore
469 * acconfig.h: stop messing with __STRICT_ANSI__
470 * config/gnome.m4: remove option to set -ansi
471 * config/kde.m4: remove option to set -ansi
472 * config/lyxinclude.m4: don't set -ansi
474 2000-09-27 Juergen Vigna <jug@sad.it>
476 * various files: remove "default" language check.
478 * src/insets/insetquotes.C: removed use of current_view.
480 * src/lyxfunc.C (MenuNew): I don't know how put the AddPath here but
481 the one should have red ears by now!
483 * src/insets/insettext.C (LocalDispatch): fixed setting of same layouts
484 in more then one paragraph. Fixed cursor-movement/selection.
486 * src/frontends/xforms/FormParagraph.C: disable pagebreaks for
487 paragraphs inside a text inset.
489 * src/text.C (GetVisibleRow): paint top/bottom line only as wide as the
490 text-inset if this owner is an inset.
492 2000-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
494 * src/Bullet.h: changed type of font, character and size to int
496 * src/buffer.C (asciiParagraph): remove actcell and fname1.
498 * src/insets/inseturl.[Ch]:
499 * src/insets/insetref.[Ch]:
500 * src/insets/insetlabel.[Ch]: add linelen to Ascii
502 2000-09-26 Angus Leeming <a.leeming@ic.ac.uk>
504 * src/buffer.C (readFile): block-if statement rearranged to minimise
505 bloat. Patch does not reverse Jean-Marc's change ;-)
507 * src/frontends/xforms/FormBase.[Ch]: Renamed some of the callbacks.
508 Class rewritten to store pointers to hide/update signals directly,
509 rather than Dialogs *. Also defined an enum to ease use. All xforms
510 forms can now be derived from this class.
512 * src/frontends/xforms/FormCommand.[Ch]
513 * src/frontends/xforms/FormCopyright.[Ch]: now derived from FormBase.
515 * src/frontends/xforms/FormError.[Ch]: moved inclusion of inseterror.h
518 * src/frontends/xforms/forms/form_citation.fd
519 * src/frontends/xforms/forms/form_copyright.fd
520 * src/frontends/xforms/forms/form_error.fd
521 * src/frontends/xforms/forms/form_index.fd
522 * src/frontends/xforms/forms/form_ref.fd
523 * src/frontends/xforms/forms/form_toc.fd
524 * src/frontends/xforms/forms/form_url.fd: remamed callbacks
526 * src/frontends/xforms/forms/makefile: small change to work with DEC sh.
528 * src/insets/insetfoot.C: removed redundent using directive.
530 2000-09-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
532 * lib/layouts/siamltex.layout: new textclass for SIAM journals,
533 from Kornelia Pietsch <pietsch@mathematik.tu-chemnitz.de>
535 * src/frontends/xforms/Menubar_pimpl.C: menu buttons are now
536 created in the constructors in different groups. Then set() just
537 have to show the groups as needed. This fixes the redraw problems
538 (and is how the old menu code worked).
540 * src/support/lyxlib.h: declare the methods as static when we do
543 2000-09-26 Juergen Vigna <jug@sad.it>
545 * src/buffer.C (asciiParagraph): new function.
546 (writeFileAscii): new function with parameter ostream.
547 (writeFileAscii): use now asciiParagraph.
549 * various inset files: added the linelen parameter to the Ascii-func.
551 * src/tabular.C (Write): fixed error in writing file introduced by
552 the last changes from Lars.
554 * lib/bind/menus.bind: removed not supported functions.
556 * src/insets/insettext.C (Ascii): implemented this function.
558 * src/insets/lyxinset.h (Ascii): added linelen parameter.
560 * src/tabular.C (write_attribute[int,string,bool]): new functions.
561 (Write): use of the write_attribute functions.
563 * src/bufferlist.C (close): fixed reasking question!
565 2000-09-26 Lars Gullik Bjønnes <larsbj@lyx.org>
567 * src/support/unlink.C src/support/remove.C src/support/mkdir.C:
568 new files use the everwhere possible.
571 * src/form1.C src/form1.h src/layout_forms.C src/layout_forms.h
572 src/log_form.C src/lyx.C:
575 * src/buffer.C (runLaTeX): remove func
577 * src/PaperLayout.C: removed file
578 * src/ParagraphExtra.C: likewise
579 * src/bullet_forms.C: likewise
580 * src/bullet_forms.h: likewise
581 * src/bullet_forms_cb.C: likewise
583 * src/Makefile.am (lyx_SOURCES): remove PaperLayout.C,
584 ParagraphExtra.C, bullet_forms.C, bullet_forms.h and
587 * several files: remove all traces of the old fd_form_paragraph,
588 and functions belonging to that.
590 * several files: remove all traces of the old fd_form_document,
591 and functions belonging to that.
593 * several files: constify local variables were possible.
595 * several files: remove all code that was dead when NEW_EXPORT was
598 * several files: removed string::c_str in as many places as
601 * forms/makefile (SRCS,OBJS,COBJS): removed bullet_forms.[fd,c,C]
602 (e): be a bit more outspoken when patching
603 (updatesrc): only move files if changed.
605 * forms/layout_forms.h.patch: regenerated
607 * forms/layout_forms.fd: remove form_document and form_paragraph
608 and form_quotes and form_paper and form_table_options and
611 * forms/form1.fd: remove form_table
613 * forms/fdfix.sh: remove sed rules for fl_set_object_lcolor and
614 the fdui->... rewrite. Update some comments to xforms 0.88
616 * forms/bullet_forms.C.patch: removed file
617 * forms/bullet_forms.fd: likewise
618 * forms/bullet_forms.h.patch: likewise
620 * development/Code_rules/Rules: added a section on switch
621 statements. Updated some comment to xforms 0.88.
623 2000-09-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
625 * src/buffer.C (readFile): make sure that the whole version number
626 is read after \lyxformat (even when it contains a comma)
628 * lib/ui/default.ui: change shortcut of math menu to M-a.
630 2000-09-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
632 * src/vspace.C (nextToken): use isStrDbl() to check for proper
635 * src/LyXView.C (updateWindowTitle): show the full files name in
636 window title, limited to 30 characters.
638 * src/support/lyxstring.C (lyxstring): fix it correctly this time.
639 When a number of characters has been given, we should not assume
640 that the string is 0-terminated.
642 * src/intl.C (InitKeyMapper): remove a bunch of string::c_str()
643 calls (fixes some memory leaks)
645 * src/intl.[Ch]: add a destructor for Intl, in order to delete the
646 trans member on exit.
648 2000-09-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
650 * src/converter.C (GetReachable): fix typo.
652 * src/lyxlex.C (GetFloat): rewrite to use strToDbl() and
653 understand ',' instead of '.'.
654 (GetInteger): rewrite to use strToInt().
656 2000-09-26 Juergen Vigna <jug@sad.it>
658 * src/frontends/xforms/FormParagraph.C: fixed de/activation of fields,
659 better visibility and error-message on wrong VSpace input.
661 * src/language.C (initL): added english again.
663 2000-09-25 Juergen Vigna <jug@sad.it>
665 * src/frontends/kde/Dialogs.C (Dialogs):
666 * src/frontends/gnome/Dialogs.C (Dialogs):
667 * src/frontends/kde/Makefile.am:
668 * src/frontends/gnome/Makefile.am: added FormParagraph from xforms.
670 * src/frontends/xforms/forms/makefile: added form_paragraph.fd.
672 * src/frontends/xforms/Dialogs.C (Dialogs): added FormParagraph.
674 * src/frontends/xforms/Makefile.am: added files for FormParagraph.
676 * src/frontends/xforms/FormParagraph.C:
677 * src/frontends/xforms/FormParagraph.h:
678 * src/frontends/xforms/form_paragraph.C:
679 * src/frontends/xforms/form_paragraph.h:
680 * src/frontends/xforms/forms/form_paragraph.fd: new files for the new
683 * src/lyxfunc.C (Dispatch): call the new layout paragraph.
685 * src/tabular.C (OldFormatRead): forgot to delete the temporary
686 Paragraph-Data after use.
688 * src/insets/insettext.C (LocalDispatch): don't set the layout on
689 non breakable paragraphs.
691 2000-09-25 Garst R. Reese <reese@isn.net>
693 * src/language.C (initL): added missing language_country codes.
695 2000-09-25 Juergen Vigna <jug@sad.it>
697 * src/insets/insettext.C (InsetText):
698 (deleteLyXText): remove the not released LyXText structure!
700 2000-09-24 Marko Vendelin <markov@ioc.ee>
702 * src/frontends/gnome/mainapp.C
703 * src/frontends/gnome/mainapp.h: added support for keyboard
706 * src/frontends/gnome/FormCitation.C
707 * src/frontends/gnome/FormCitation.h
708 * src/frontends/gnome/Makefile.am
709 * src/frontends/gnome/pixbutton.h: completed the rewrite of
710 FormCitation to use "action area" in mainapp window
712 * src/frontends/gnome/Menubar_pimpl.C
713 * src/frontends/gnome/Menubar_pimpl.h: Gnome menu can handle
716 2000-09-23 Dekel Tsur <dekel@math.tau.ac.il>
718 * src/mathed/formula.C (MathFuncInset::Metrics): Use default
719 width/descent/ascent values if name is empty.
720 (mathed_string_height): Use std::max.
722 2000-09-25 Allan Rae <rae@lyx.org>
724 * src/frontends/xforms/forms/form_preferences.fd: resize to stop
725 segfault. This will be completely redesigned soon.
727 * sigc++: updated libsigc++. Fixes struct timespec bug.
729 * development/tools/makeLyXsigc.sh: .cvsignore addition
731 2000-09-23 Lars Gullik Bjønnes <larsbj@lyx.org>
733 * several files: removed almost all traces of the old table
736 * src/TableLayout.C: removed file
738 2000-09-22 Juergen Vigna <jug@sad.it>
740 * src/frontends/kde/Dialogs.C: added credits forms.
742 * src/frontends/gnome/Makefile.am (libgnome_la_OBJADD): added forms.
744 * src/frontends/gnome/Dialogs.C: added some forms.
746 * src/spellchecker.C (init_spell_checker): set language in pspell code
747 (RunSpellChecker): some modifications for setting language string.
749 * src/language.[Ch]: added language_country code.
751 2000-09-21 Angus Leeming <a.leeming@ic.ac.uk>
753 * src/frontends/Dialogs.h: added new signal showError.
754 Rearranged existing signals in some sort of alphabetical order.
756 * src/frontends/xforms/Makefile.am: added new files, FormBase.[Ch],
757 FormError.[Ch], form_error.[Ch]
758 * src/frontends/xforms/forms/makefile: added new file form_error.fd
759 * src/frontends/xforms/Dialogs.C: added new xforms dialog FormError.
761 * src/frontends/xforms/FormBase.[Ch]: new base class for xforms
762 dialogs. I think that this can be used as the base to all these
765 * src/frontends/xforms/FormError.[Ch]
766 * src/frontends/xforms/forms/form_error.fd: new files. Xforms
767 implementation of InsetError dialog.
769 * src/insets/inseterror.[Ch]: rendered GUI-independent.
771 * src/frontends/kde/Dialogs.C: added new xforms dialog FormError.
772 * src/frontends/kde/Makefile.am: ditto
774 2000-09-21 Dekel Tsur <dekel@math.tau.ac.il>
776 * src/mathed/math_cursor.[Ch]: Removed class members macroln and
777 macrobf. This fixes a bug of invisible text.
779 2000-09-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
781 * lib/doc/LaTeXConfig.lyx.in: updated.
783 * src/language.C (initL): remove language "francais" and change a
784 bit the names of the two other french variations.
786 * src/support/lyxstring.C (lyxstring): do not apply strlen() on a
787 string that may not be 0-terminated.
789 2000-09-20 Lars Gullik Bjønnes <larsbj@lyx.org>
791 * src/Makefile.am (lyx_SOURCES): remove table.C and Table.h
793 2000-09-20 Marko Vendelin <markov@ioc.ee>
795 * src/frontends/gnome/FormCitation.C
796 * src/frontends/gnome/FormIndex.C
797 * src/frontends/gnome/FormToc.C
798 * src/frontends/gnome/FormUrl.C: cleanup the loops, reordering
799 the variable initialization to shut up the warnings
801 2000-09-20 Lars Gullik Bjønnes <larsbj@lyx.org>
803 * src/table.[Ch]: deleted files
805 * src/lyxfunc.C (Dispatch): Don't pass 0 as argument to Dispatch
808 2000-09-18 Juergen Vigna <jug@sad.it>
810 * src/insets/insettext.C (LocalDispatch): fixed Backspace/Delete
811 problems with selection. Inserted new LFUN_PASTESELECTION.
812 (InsetButtonPress): inserted handling of middle mouse-button paste.
814 * src/spellchecker.C: changed word to word.c_str().
816 2000-09-16 Kayvan A. Sylvan <kayvan@sylvan.com>
818 * src/Makefile.am: Add sources to lyx_SOURCES so they will be
819 included in the ``make dist'' tarball.
821 2000-09-15 Juergen Vigna <jug@sad.it>
823 * src/CutAndPaste.C (cutSelection): small fix return the right
824 end position after cut inside one paragraph only.
826 * src/insets/insettext.C (resizeLyXText): only reset the cursor if
827 we are locked as otherwise we don't have a valid cursor position!
829 * src/insets/figinset.C (draw): small bugfix but why is this needed???
831 2000-09-19 Angus Leeming <a.leeming@ic.ac.uk>
833 * src/frontends/kde/FormRef.C: added using directive.
834 * src/frontends/kde/FormToc.C: ditto
836 * src/frontends/kde/formtocdialog.h: changed endl to std::endl.
838 * src/frontends/kde/FormRef.h: removed trailing comma from enums.
840 2000-09-19 Marko Vendelin <markov@ioc.ee>
842 * src/frontends/gnome/Menubar_pimpl.C
843 * src/frontends/gnome/Menubar_pimpl.h: Gnome menus show now
844 Toc, ViewFormats, UpdateFormats, and ExportFormats.
846 * src/frontends/gnome/mainapp.C
847 * src/frontends/gnome/mainapp.h: support for menu update used
850 * src/frontends/gnome/mainapp.C
851 * src/frontends/gnome/mainapp.h: support for "action" area in the
852 main window. This area is used by small simple dialogs, such as
855 * src/frontends/gnome/FormIndex.C
856 * src/frontends/gnome/FormIndex.h
857 * src/frontends/gnome/FormUrl.C
858 * src/frontends/gnome/FormUrl.h: rewrite to use main window action
861 * src/frontends/gnome/FormCitation.C
862 * src/frontends/gnome/FormCitation.h: rewrite to use main window
863 action area. Only "Insert new citation" is implemented.
865 2000-09-19 Lars Gullik Bjønnes <larsbj@lyx.org>
867 * src/buffer.C (Dispatch): fix call to Dispatch
868 * src/insets/insetref.C (Edit): likewise
869 * src/insets/insetparent.C (Edit): likewise
870 * src/insets/insetinclude.C (include_cb): likewise
871 * src/frontends/xforms/FormUrl.C (apply): likewise
872 * src/frontends/xforms/FormToc.C (apply): likewise
873 * src/frontends/xforms/FormRef.C (apply): likewise
874 * src/frontends/xforms/FormIndex.C (apply): likewise
875 * src/frontends/xforms/FormCitation.C (apply): likewise
876 * src/lyxserver.C (callback): likewise
877 * src/lyxfunc.C (processKeySym): likewise
880 * src/lyx_cb.C (LayoutsCB): likewise
882 * Makefile.am (sourcedoc): small change
884 2000-09-18 Lars Gullik Bjønnes <larsbj@lyx.org>
886 * src/main.C (main): Don't make an empty GUIRunTime object. all
887 methods are static. constify a bit remove unneded using + headers.
889 * src/tabular.C: some more const to local vars move some loop vars
891 * src/spellchecker.C: added some c_str after some word for pspell
893 * src/frontends/GUIRunTime.h: add new static method setDefaults
894 * src/frontends/xforms/GUIRunTime.C (setDefaults):
895 * src/frontends/kde/GUIRunTime.C (setDefaults):
896 * src/frontends/gnome/GUIRunTime.C (setDefaults): new method
898 * src/mathed/math_cursor.C (MacroModeClose): don't call SetName
899 with strnew in arg, use correct emptystring when calling SetName.
901 * several files: remove all commented code with relation to
902 HAVE_SSTREAM beeing false. We now only support stringstream and
905 2000-09-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
907 * src/lyxfunc.C: construct correctly the automatic new file
910 * src/text2.C (IsStringInText): change type of variable i to shut
913 * src/support/sstream.h: do not use namespaces if the compiler
914 does not support them.
916 2000-09-15 Marko Vendelin <markov@ioc.ee>
917 * src/frontends/gnome/FormCitation.C
918 * src/frontends/gnome/FormCitation.h
919 * src/frontends/gnome/diainsertcitation_interface.c
920 * src/frontends/gnome/dialogs/diainsertcitation.glade: adds
921 regexp support to FormCitation [Gnome].
923 2000-09-15 John Levon <moz@compsoc.man.ac.uk>
926 * configure.in: remove unused KDE/GTKGUI define
928 * src/frontends/kde/FormRef.C
929 * src/frontends/kde/FormRef.h
930 * src/frontends/kde/formrefdialog.C
931 * src/frontends/kde/formrefdialog.h: double click will
932 go to reference, now it is possible to change a cross-ref
935 * src/frontends/kde/FormToc.C
936 * src/frontends/kde/FormToc.h
937 * src/frontends/kde/formtocdialog.C
938 * src/frontends/kde/formtocdialog.h: add a depth
941 * src/frontends/kde/Makefile.am: add QtLyXView.h
944 2000-09-15 Angus Leeming <a.leeming@ic.ac.uk>
946 * src/frontends/kde/FormCitation.h: added some using directives.
948 * src/frontends/kde/FormToc.h: corrected definition of doTree.
950 * src/frontends/kde/GUIRunTime.C (initApplication): use lyxerr not
953 * src/mathed/math_defs.h: redefine SetAlign to use string rather
956 2000-09-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
958 * src/buffer.C (pop_tag): revert for the second time a change by
959 Lars, who seems to really hate having non-local loop variables :)
961 * src/Lsstream.h: add "using" statements.
963 * src/support/copy.C (copy): add a bunch of std:: qualifiers
964 * src/buffer.C (writeFile): ditto
966 2000-09-14 Lars Gullik Bjønnes <larsbj@lyx.org>
968 * src/buffer.C (writeFile): try to fix the locale modified format
969 number to always be as we want it.
971 * src/WorkArea.C (work_area_handler): try to workaround the bugs
972 in XForms 0.89. C-space is now working again.
974 * src/Lsstream.h src/support/sstream.h: new files.
976 * also commented out all cases where strstream were used.
978 * src/Bullet.h (c_str): remove method.
980 * remove all stuff that is irrelevant when NEW_MENUBAR is defined
982 * a lot of files: get rid of "char const *" and "char *" is as
983 many places as possible. We only want to use them in interaction
984 with system of other libraries, not inside lyx.
986 * a lot of files: return const object is not of pod type. This
987 helps ensure that temporary objects is not modified. And fits well
988 with "programming by contract".
990 * configure.in: check for the locale header too
992 * Makefile.am (sourcedoc): new tag for generation of doc++
995 2000-09-14 Juergen Vigna <jug@sad.it>
997 * src/frontends/xforms/FormDocument.C (ComboInputCB): fixed the
998 callback to check which combo called it and do the right action.
1000 * src/combox.C (combo_cb): added combo * to the callbacks.
1001 (Hide): moved call of callback after Ungrab of the pointer.
1003 * src/intl.h: removed LCombo2 function.
1005 * src/intl.C (LCombo): added Combox * to call and removed LCombo2
1006 function as this can now be handled in one function.
1008 * src/combox.h: added Combox * to callback prototype.
1010 * src/frontends/xforms/Toolbar_pimpl.C:
1011 * src/lyx_cb.C (LayoutsCB): added Combox * to function call.
1013 2000-09-14 Garst Reese <reese@isn.net>
1015 * lib/tex/hollywood.cls changed length of parenthicals to 1.5in
1016 moved usepackage{xxx}'s to beginning of file. Changed left margin
1017 to 1.5in, right margin to 1in. Forced headrulewidth to 0, removed
1018 underlining from title. Thanks to John Culleton for useful suggestions.
1020 2000-09-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1022 * src/lyxlex_pimpl.C (setFile): change error message to debug
1025 2000-09-13 Juergen Vigna <jug@sad.it>
1027 * src/frontends/xforms/FormDocument.C: implemented choice_class
1028 as combox and give callback to combo_language so OK/Apply is activated
1031 * src/bufferlist.C (newFile): small fix so already named files
1032 (via an open call) are not requested to be named again on the
1035 2000-09-13 John Levon <moz@compsoc.man.ac.uk>
1037 * src/frontends/kde/Makefile.am
1038 * src/frontends/kde/FormRef.C
1039 * src/frontends/kde/FormRef.h
1040 * src/frontends/kde/formrefdialog.C
1041 * src/frontends/kde/formrefdialog.h: implement
1044 2000-09-13 John Levon <moz@compsoc.man.ac.uk>
1046 * src/frontends/kde/formtocdialog.C
1047 * src/frontends/kde/formtocdialog.h
1048 * src/frontends/kde/FormToc.C
1049 * src/frontends/kde/FormToc.h: change to make TOC hierarchical properly
1051 2000-09-11 John Levon <moz@compsoc.man.ac.uk>
1053 * src/frontends/kde/FormCitation.C: fix thinko
1054 where we didn't always display the reference text
1057 * src/frontends/kde/formurldialog.C
1058 * src/frontends/kde/formurldialog.h
1059 * src/frontends/kde/FormUrl.C
1060 * src/frontends/kde/FormUrl.h: minor cleanups
1062 * src/frontends/kde/QtLyXView: wrapper to avoid Qt namespace mangling
1064 * src/frontends/kde/Makefile.am
1065 * src/frontends/kde/FormToc.C
1066 * src/frontends/kde/FormToc.h
1067 * src/frontends/kde/FormCitation.C
1068 * src/frontends/kde/FormCitation.h
1069 * src/frontends/kde/FormIndex.C
1070 * src/frontends/kde/FormIndex.h
1071 * src/frontends/kde/formtocdialog.C
1072 * src/frontends/kde/formtocdialog.h
1073 * src/frontends/kde/formcitationdialog.C
1074 * src/frontends/kde/formcitationdialog.h
1075 * src/frontends/kde/formindexdialog.C
1076 * src/frontends/kde/formindexdialog.h: new Toc,Citation,Index dialogs
1078 2000-09-12 Juergen Vigna <jug@sad.it>
1080 * src/frontends/gnome/GUIRunTime.C (initApplication): make id + version
1083 2000-09-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1085 * src/frontends/xforms/GUIRunTime.C (initApplication): use lyxerr,
1088 2000-09-09 Dekel Tsur <dekel@math.tau.ac.il>
1090 * src/converter.C (Add, Convert): Added support for converter flags:
1091 needaux, resultdir, resultfile.
1092 (Convert): Added new parameter view_file.
1093 (dvips_options): Fixed letter paper option.
1095 * src/exporter.C (Export, BufferExtension): Added support for Docbook.
1096 (Export, GetExportableFormats, GetViewableFormats): Added support
1099 * src/lyx_main.C (LyX): Call to QuitLyX() to remove temporary
1101 (easyParse): Fixed to work with new export code.
1103 * src/support/filetools.C (DeleteAllFilesInDir) Fixed to delete
1106 * lyx-devel-export/lib/configure.m4: Changed flags of tth.
1108 * lib/bind/*.bind: Replaced
1109 buffer-view,buffer-view-ps,buffer-typeset,buffer-typeset-ps by
1110 buffer-view dvi,buffer-view ps,buffer-update dvi,buffer-update ps
1112 2000-09-11 Juergen Vigna <jug@sad.it>
1114 * src/lyx_gui.C (runTime): uses global guiruntime variable.
1116 * src/main.C (main): now GUII defines global guiruntime!
1118 * src/frontends/gnome/GUIRunTime.C (initApplication):
1119 * src/frontends/kde/GUIRunTime.C (initApplication):
1120 * src/frontends/xforms/GUIRunTime.C (initApplication):
1121 * src/frontends/GUIRunTime.h: added new function initApplication.
1123 * src/spellchecker.C (sc_accept_word): change to add_to_session.
1125 * src/vspace.C (nextToken): fixed error with number 0cm as unvalid.
1127 2000-09-08 Juergen Vigna <jug@sad.it>
1129 * src/lyx_gui.C (create_forms): don't display the "default" entry as
1130 we have already "Reset".
1132 * src/language.C (initL): inserted "default" language and made this
1133 THE default language (and not american!)
1135 * src/paragraph.C: inserted handling of "default" language!
1137 * src/lyxfont.C: ditto
1141 * src/paragraph.C: output the \\par only if we have a following
1142 paragraph otherwise it's not needed.
1144 2000-09-05 Juergen Vigna <jug@sad.it>
1146 * config/pspell.m4: added entry to lyx-flags
1148 * src/spellchecker.C: modified version from Kevin for using pspell
1150 2000-09-01 Marko Vendelin <markov@ioc.ee>
1151 * src/frontends/gnome/Makefile.am
1152 * src/frontends/gnome/FormCitation.C
1153 * src/frontends/gnome/FormCitation.h
1154 * src/frontends/gnome/diainsertcitation_callbacks.c
1155 * src/frontends/gnome/diainsertcitation_callbacks.h
1156 * src/frontends/gnome/diainsertcitation_interface.c
1157 * src/frontends/gnome/diainsertcitation_interface.h
1158 * src/frontends/gnome/dialogs/diainsertcitation.glade: Insert Citation
1159 dialog for Gnome frontend
1161 * src/main.C: Gnome libraries require keeping application name
1162 and its version as strings
1164 * src/frontends/gnome/mainapp.C: Change the name of the main window
1165 from GnomeLyX to PACKAGE
1167 2000-09-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1169 * src/frontends/Liason.C: add "using: declaration.
1171 2000-08-31 Dekel Tsur <dekel@math.tau.ac.il>
1173 * src/mathed/math_macro.C (Metrics): Set the size of the template
1175 * src/mathed/formulamacro.C (Latex): Fixed the returned value
1177 2000-09-04 Dekel Tsur <dekel@math.tau.ac.il>
1179 * src/converter.C (add_options): New function.
1180 (SetViewer): Change $$FName into '$$FName'.
1181 (View): Add options when running xdvi
1182 (Add): Change $$FName into '$$FName'. Same for $$BaseName/$$OutName.
1183 (Convert): The 3rd parameter is now the desired filename. Converts
1184 calls to lyx::rename if necessary.
1185 Add options when running dvips.
1186 (dvi_papersize,dvips_options): New methods.
1188 * src/exporter.C (Export): Use getLatexName() instead of fileName().
1190 * src/frontends/Liason.C (printBuffer): Removed duplicate code by
1191 using a call to Converter::dvips_options.
1192 Fixed to work with nex export code.
1194 * src/support/copy.C
1195 * src/support/rename.C: New files
1197 * src/support/syscall.h
1198 * src/support/syscall.C: Added Starttype SystemDontWait.
1200 * lib/ui/default.ui: Changed to work with new export code
1202 * lib/configure.m4: Changed to work with new export code
1204 * src/encoding.C: Changed latex name for iso8859_7 encoding.
1206 2000-09-04 Angus Leeming <a.leeming@ic.ac.uk> +
1208 * src/frontends/xforms/Menubar_pimpl.C: added two using directives
1209 so that code compiles with DEC cxx.
1211 * src/frontends/xforms/FormCitation.C (setSize): code re-writtenn
1212 to work correctly! Also now supports the additional elements
1215 2000-09-01 Allan Rae <rae@lyx.org>
1217 * src/frontends/ButtonPolicies.C: renamed all the references to
1218 PreferencesPolicy::{AllButtons,BOGUS} to be ButtonPolicy.
1220 * src/frontends/ButtonPolicies.h: rename AllButtons to ALL_BUTTONS
1221 since it's a const not a type.
1223 * src/frontends/xforms/ButtonController.h: cleanup before Lars does.
1225 2000-08-31 Juergen Vigna <jug@sad.it>
1227 * src/insets/figinset.C: Various changes to look if the filename has
1228 an extension and if not add it for inline previewing.
1230 2000-08-31 Lars Gullik Bjønnes <larsbj@lyx.org>
1232 * src/frontends/ButtonPolicies.h: add a Button AllButtons.
1233 make buttonStatus and isReadOnly be const methods. (also reflect
1234 this in derived classes.)
1236 * src/frontends/ButtonPolicies.C: remove sum_ and bogus_
1237 (nextState): change to be static inline, pass the StateMachine as
1239 (PreferencesPolicy): remove casts
1240 (OkCancelPolicy): remvoe casts
1241 (OkCancelReadOnlyPolicy): remove casts
1242 (NoRepeatedApplyReadOnlyPolicy): remove casts
1243 (OkApplyCancelReadOnlyPolicy): remove casts
1244 (OkApplyCancelPolicy): remove casts
1245 (NoRepeatedApplyPolicy): remove casts
1247 2000-08-31 Angus Leeming <a.leeming@ic.ac.uk>
1249 * src/converter.C: added some using directives
1251 * src/frontends/ButtonPolicies.C: changes to overcome
1252 "need lvalue" error with DEC c++
1254 * src/frontends/xforms/FormDocument.C (c-tor): use C callback
1255 to WMHideCB for DEC c++
1257 * src/frontends/xforms/Menubar_pimpl.C: added using directive
1259 * src/frontends/xforms/forms/form_document.C.patch: use C callback
1260 to BulletBMTableCB for DEC c++
1262 2000-08-31 Allan Rae <rae@lyx.org>
1264 * src/lyx_gui.C (create_forms): build combo_language2 which is part of
1265 character dialog separately from old document dialogs combo_language.
1268 2000-08-30 Dekel Tsur <dekel@math.tau.ac.il>
1270 * src/commandtags.h: Added LFUN_GOTO_PARAGRAPH.
1271 Removed LFUN_REF_CREATE.
1273 * src/MenuBackend.C: Added new tags: toc and references
1275 * src/frontends/xforms/Menubar_pimpl.C: Removed the use of StrPool
1276 (add_lastfiles, add_documents, add_formats): Removed the unused smn
1278 (add_toc, add_references): New methods.
1279 (create_submenu): Handle correctly the case when there is a
1280 seperator after optional menu items.
1282 * src/lyxfunc.C (getStatus): Handle LFUN_REF_BACK.
1283 (dispatch): Combined the code for LFUN_REF_CREATE and LFUN_REF_INSERT.
1284 (dispatch): New code for LFUN_GOTO_PARAGRAPH.
1286 * src/frontends/xforms/FormToc.C (apply): Use Dispatch.
1288 2000-08-30 Dekel Tsur <dekel@math.tau.ac.il>
1290 * src/converter.[Ch]: New file for converting between different
1293 * src/export.[Ch]: New file for exporting a LyX file to different
1296 * src/lyx_cb.C: Remove many functions when NEW_EXPORT is defined:
1297 MenuRunLaTeX, MakeLaTeXOutput, RunScript, CreatePostscript,
1298 PreviewPostscript, PreviewDVI, AskOverwrite, MenuMakeLaTeX,
1299 MenuMakeLinuxDoc, MenuMakeDocBook, MenuMakeHTML,
1300 MenuMakeHTML_LinuxDoc, MenuMakeHTML_DocBook, RunLinuxDoc,
1301 RunDocBook, MenuExport.
1303 * src/lyxfunc.C (Dispatch): Use the Exporter::Export and
1304 Exporter::Preview methods if NEW_EXPORT is defined.
1306 * src/buffer.C (Dispatch): Use Exporter::Export.
1308 * src/lyxrc.C: Added new tags: \converter and \viewer.
1311 * src/LyXAction.C: Define new lyx-function: buffer-update.
1312 Remove obsolete buffer-typeset,buffer-typeset-ps & buffer-view-ps
1313 when NEW_EXPORT is defined.
1315 * src/MenuBackend.C: Added new tags: updateformats and viewformats.
1317 * src/frontends/xforms/Menubar_pimpl.C (add_formats) New method.
1319 * lib/ui/default.ui: Added submenus "view" and "update" to the
1322 * src/filetools.C (GetExtension): New function.
1324 * src/LaTeX.C (LaTeX): Add "-pdf" to depfile if pdflatex is used.
1326 2000-08-29 Allan Rae <rae@lyx.org>
1328 * lib/bind/xemacs.bind: update a binding due to Juergen's recent work
1330 * src/frontends/xforms/FormDocument.C (checkReadOnly): new function
1331 (EnableDocumentLayout): removed
1332 (DisableDocumentLayout): removed
1333 (build): make use of ButtonController's read-only handling to
1334 de/activate various objects. Replaces both of the above functions.
1336 * src/frontends/xforms/ButtonController.h (readWrite): was read_write
1337 (readOnly): was read_only
1338 (refresh): fixed dumb mistakes with read_only_ handling
1340 * src/frontends/xforms/forms/form_document.fd:
1341 * src/frontends/xforms/forms/form_tabular.fd: Use FL_FLAT_BOX for the
1342 tabbed dialogs so the tabs look more like tabs and so its easier to
1343 work out which is the current tab.
1345 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): fix
1346 segfault with form_table
1348 * src/frontends/ButtonPolicies.C: All policies now support UNDO_ALL.
1350 2000-08-28 Juergen Vigna <jug@sad.it>
1352 * acconfig.h: added USE_PSPELL.
1354 * src/config.h.in: added USE_PSPELL.
1356 * autogen.sh: added pspell.m4
1358 * config/pspell.m4: new file.
1360 * src/spellchecker.C: implemented support for pspell libary.
1362 2000-08-25 Juergen Vigna <jug@sad.it>
1364 * src/LyXAction.C (init): renamed LFUN_TABLE to
1365 LFUN_DIALOG_TABULAR_INSERT and fixed all it's occurences.
1367 * src/lyxfunc.C (getStatus): fix for disabled Edit->Table entries.
1369 * src/lyxscreen.h: add force_clear variable and fuction to force
1370 a clear area when redrawing in LyXText.
1372 * src/text.C (GetVisibleRow): look if the screen forces a redraw.
1374 2000-08-25 Lars Gullik Bjønnes <larsbj@lyx.org>
1376 * some whitespace and comment changes.
1378 * src/lyx_gui.C (LyXGUI): use C++ style casts instead of C ones.
1380 * src/buffer.C: up te LYX_FORMAT to 2.17
1382 2000-08-23 Juergen Vigna <jug@sad.it>
1384 * src/BufferView_pimpl.C (tripleClick): disable this when in a
1387 * src/insets/insettabular.C (pasteSelection): delete the insets
1388 LyXText as it is not valid anymore.
1389 (copySelection): new function.
1390 (pasteSelection): new function.
1391 (cutSelection): new function.
1392 (LocalDispatch): implemented cut/copy/paste of cell selections.
1394 * src/insets/insettext.C (resizeLyXText): don't need resize if I still
1395 don't have a LyXText.
1397 * src/LyXAction.C (init): a NEW_TABULAR define too much.
1399 * src/lyx_gui_misc.C (CloseAllBufferRelatedDialogs): another missing
1402 2000-08-22 Juergen Vigna <jug@sad.it>
1404 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs):
1405 ifdef form_table out if NEW_TABULAR.
1407 2000-08-21 Juergen Vigna <jug@sad.it>
1409 * src/insets/insettabular.C (TabularFeatures): BoxType is enum now.
1410 (draw): fixed draw position so that the cursor is positioned in the
1412 (InsetMotionNotify): hide/show cursor so the position is updated.
1413 (GENERAL): fixed cursor_pos to show only 0/1 (begin/end of cell),
1414 using cellstart() function where it should be used.
1416 * src/insets/insettext.C (draw): ditto.
1418 * src/tabular.C: fixed initialization of some missing variables and
1419 made BoxType into an enum.
1421 2000-08-22 Marko Vendelin <markov@ioc.ee>
1422 * src/frontends/gnome/Menubar_pimpl.C: Mathces LyX action with Gnome
1423 stock menu item using action numerical value, not its string
1427 2000-08-22 Lars Gullik Bjønnes <larsbj@lyx.org>
1429 * src/frontends/xforms/Makefile.am (libxforms_la_SOURCES): add
1430 GUIRunTime.C remove GUIRunTime_pimpl.[Ch]
1432 * src/frontends/xforms/GUIRunTime_pimpl.[Ch]: removed file
1434 * src/frontends/xforms/GUIRunTime.C: new file
1436 * src/frontends/kde/Makefile.am (libkde_la_SOURCES): add
1437 GUIRunTime.C and remove GUIRunTime_pimpl.[Ch]
1439 * src/frontends/kde/GUIRunTime_pimpl.[Ch]: removed file
1441 * src/frontends/kde/GUIRunTime.C: new file
1443 * src/frontends/gnome/Makefile.am (libgnome_la_SOURCES): add
1444 GUIRunTime.C and remove GUIRunTime_pimpl.[Ch]
1446 * src/frontends/gnome/GUIRunTime_pimpl.[Ch]: removed file
1448 * src/frontends/gnome/GUIRunTime.C: new file
1450 * src/frontends/Makefile.am (libfrontends_la_SOURCES): removed
1453 * src/frontends/GUIRunTime.h: removed constructor and destructor,
1454 small change to documetentation.
1456 * src/frontends/GUIRunTime.C: removed file
1458 * src/text2.C (MeltFootnoteEnvironment): add some NEW_TABULAR
1460 * src/lyxparagraph.h: enable NEW_TABULAR as default
1462 * src/lyxfunc.C (processKeySym): remove some commented code
1464 * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): add
1465 NEW_TABULAR around the fd_form_table_options.
1467 * src/lyx_gui.C (runTime): call the static member function as
1468 GUIRunTime::runTime().
1470 2000-08-21 Allan Rae <rae@lyx.org>
1472 * src/frontends/xforms/FormDocument.h: D'oh. Forgot to change the
1475 2000-08-21 Dekel Tsur <dekel@math.tau.ac.il>
1477 * src/Spacing.C (writeEnvirBegin): Small fix when sstream not present
1479 2000-08-21 Allan Rae <rae@lyx.org>
1481 * src/frontends/xforms/ButtonController.h (setOK): renamed from setOk to
1482 keep Garst happy ;-)
1483 * src/frontends/xforms/FormPreferences.C (build): use setOK
1484 * src/frontends/xforms/FormDocument.C (build): use setOK
1485 (FormDocument): use the appropriate policy.
1487 2000-08-21 Allan Rae <rae@lyx.org>
1489 * src/frontends/xforms/ButtonController.h (class ButtonController): Allow
1490 automatic [de]activation of arbitrary objects when in a read-only state.
1492 * src/frontends/ButtonPolicies.h: More documentation
1493 (isReadOnly): added to support the above.
1495 * src/frontends/xforms/forms/form_preferences.fd: Changed Ok -> Save
1497 2000-08-18 Juergen Vigna <jug@sad.it>
1499 * src/insets/insettabular.C (getStatus): changed to return func_status.
1501 * src/lyxfunc.C (getStatus): fixed TabularFeatures menu to always
1502 display toggle menu entries if they are.
1504 * src/lyx_cb.C: #ifdef'ed out layout stuff which is in the
1505 new document layout now.
1507 * src/lyxfunc.C: ditto
1509 * src/lyx_gui_misc.C: ditto
1511 * src/lyx_gui.C: ditto
1513 * lib/ui/default.ui: removed paper and quotes layout as they are now
1514 all in the document layout tabbed folder.
1516 * src/frontends/xforms/forms/form_document.fd: added Restore
1517 button and callbacks for all inputs for Allan's ButtonPolicy.
1519 * src/frontends/xforms/FormDocument.C (ChoiceClassCB): added.
1520 (CheckChoiceClass): added missing params setting on class change.
1521 (UpdateLayoutDocument): added for updating the layout on params.
1522 (build): forgot to RETURN_ALWAYS input_doc_spacing.
1523 (FormDocument): Implemented Allan's ButtonPolicy with the
1526 2000-08-17 Allan Rae <rae@lyx.org>
1528 * src/frontends/xforms/Dialogs.C (Dialogs): Make a temporary connection
1529 so we can at least see the credits again.
1531 * src/frontends/xforms/FormPreferences.C: Used the appropriate button
1532 controller calls for the appropriate callbacks. Note that since Ok
1533 calls apply followed by cancel, and apply isn't a valid input for the
1534 APPLIED state, the bc_ calls have to be made in the static callback not
1535 within each of the real callbacks.
1537 * src/frontends/xforms/ButtonController.h (Ok): renamed from Okay()
1538 (setOk): renamed from setOkay()
1540 2000-08-17 Juergen Vigna <jug@sad.it>
1542 * src/frontends/gnome/Menubar_pimpl.C (openByName): put this function
1543 in the implementation part.
1544 (composeUIInfo): don't show optional menu-items.
1546 * src/lyxfunc.C (getStatus): use insets LyXText if the_locking_inset.
1548 * src/insets/insettext.C (UpdateLocal): call to LyXView::showState()
1550 * src/bufferview_funcs.C (CurrentState): fixed to show also the
1551 text-state when in a text-inset.
1553 * src/frontends/kde/GUIRunTime_pimpl.C: include xforms for now.
1555 2000-08-17 Marko Vendelin <markov@ioc.ee>
1556 * src/frontends/gnome/FormIndex.C
1557 * src/frontends/gnome/FormIndex.h
1558 * src/frontends/gnome/FormToc.C
1559 * src/frontends/gnome/FormToc.h
1560 * src/frontends/gnome/dialogs
1561 * src/frontends/gnome/diatoc_callbacks.c
1562 * src/frontends/gnome/diatoc_callbacks.h
1563 * src/frontends/gnome/diainsertindex_callbacks.h
1564 * src/frontends/gnome/diainsertindex_callbacks.c
1565 * src/frontends/gnome/diainsertindex_interface.c
1566 * src/frontends/gnome/diainsertindex_interface.h
1567 * src/frontends/gnome/diatoc_interface.h
1568 * src/frontends/gnome/diatoc_interface.c
1569 * src/frontends/gnome/Makefile.am: Table of Contents and
1570 Insert Index dialogs implementation for Gnome frontend
1572 * src/frontends/gnome/GUIRunTime_pimpl.C: fix some small bugs
1574 * src/frontends/gnome/Menubar_pimpl.C: remove historical comments
1576 * src/frontends/gnome/diainserturl_interface.c: make the dialog
1579 2000-08-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1581 * src/frontends/xforms/GUIRunTime_pimpl.C: constructor and
1582 destructor. Don't definde if you don't need it
1583 (processEvents): made static, non-blocking events processing for
1585 (runTime): static method. event loop for xforms
1586 * similar as above for kde and gnome.
1588 * src/frontends/GUIRunTime.C (GUIRunTime): new Pimpl() is wrong
1589 new Pimpl is correct
1590 (runTime): new method calss the real frontends runtime func.
1592 * src/lyx_gui.C (runTime): change to use the GUIRunTime::runTime
1594 2000-08-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1596 * src/lyx_gui.C (create_forms): fix the "No change" gettext missing
1598 2000-08-16 Juergen Vigna <jug@sad.it>
1600 * src/lyx_gui.C (runTime): added GUII RunTime support.
1602 * src/frontends/Makefile.am:
1603 * src/frontends/GUIRunTime.[Ch]:
1604 * src/frontends/xforms/GUIRunTime_pimpl.[Ch]:
1605 * src/frontends/kde/GUIRunTime_pimpl.[Ch]:
1606 * src/frontends/gnome/GUIRunTime_pimpl.[Ch]: added GUII runtime support
1608 * src/LyXAction.C (init): added dummy LFUN_INSERT_URL.
1610 * src/frontends/Makefile.am (INCLUDES): don't set the FRONTENDS include
1611 as this is already set in ${FRONTEND_INCLUDE} if needed.
1613 * configure.in (CPPFLAGS): setting the include dir for the frontend
1614 directory and don't set FRONTEND=xforms for now as this is executed
1617 2000-08-16 John Levon (moz@compsoc.man.ac.uk)
1619 * src/frontends/kde/Makefile.am:
1620 * src/frontends/kde/FormUrl.C:
1621 * src/frontends/kde/FormUrl.h:
1622 * src/frontends/kde/formurldialog.h:
1623 * src/frontends/kde/formurldialog.C: Add KDE URL dialog
1625 2000-08-15 Kayvan A. Sylvan <kayvan@sylvan.com>
1627 * src/frontend/Makefile.am: Add gnome and kde to dist tar file.
1629 2000-08-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1631 * src/BufferView_pimpl.C (workAreaKeyPress): enable the
1634 2000-08-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1636 * src/WorkArea.C (work_area_handler): more work to get te
1637 FL_KEYBOARD to work with xforms 0.88 too, please test.
1639 * src/BufferView_pimpl.C (workAreaKeyPress): add XForms 0.88 guard.
1641 2000-08-15 Dekel Tsur <dekel@math.tau.ac.il>
1643 * src/frontends/ButtonPolicies.C: make gcc happy when compiling with
1646 2000-08-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1648 * src/Timeout.h: remove Qt::emit hack.
1650 * several files: changes to allo doc++ compilation
1652 * src/lyxfunc.C (processKeySym): new method
1653 (processKeyEvent): comment out if FL_REVISION < 89
1655 * src/WorkArea.C: change some debugging levels.
1656 (WorkArea): set wantkey to FL_KEY_ALL
1657 (work_area_handler): enable the FL_KEYBOARD clause, this enables
1658 clearer code and the use of compose with XForms 0.89. Change to
1659 use signals instead of calling methods in bufferview directly.
1661 * src/Painter.C: change some debugging levels.
1663 * src/LyXView.C: don't setup of use the KeyPressMask_raw_callback
1666 * src/BufferView_pimpl.C (Pimpl): Connect to the WorkArea signals.
1667 (workAreaKeyPress): new method
1669 2000-08-14 Juergen Vigna <jug@sad.it>
1671 * src/frontends/kde/Dialogs.C (Dialogs): added missing dialogs.
1673 * config/kde.m4: addes some features
1675 * src/frontends/kde/Makefile.am (libkde_la_OBJADD): modified to
1676 include missing xforms dialogs.
1678 * src/Timeout.h: a hack to be able to compile with qt/kde.
1680 * sigc++/.cvsignore: added acinclude.m4
1682 * lib/.cvsignore: added listerros
1684 * src/frontends/Makefile.am: modified for now to ALWAYS compile the
1685 xforms tree as objects are needed for other frontends.
1687 * src/frontends/gnome/Makefile.am (libgnome_la_OBJADD): added for
1688 linking with not yet implemented xforms objects.
1690 * src/frontends/gnome/Dialogs.C (Dialogs): added FormDocument.
1692 2000-08-14 Baruch Even <baruch.even@writeme.com>
1694 * src/frontends/xforms/FormGraphics.h:
1695 * src/frontends/xforms/FormGraphics.C:
1696 * src/frontends/xforms/RadioButtonGroup.h:
1697 * src/frontends/xforms/RadioButtonGroup.C:
1698 * src/insets/insetgraphics.h:
1699 * src/insets/insetgraphics.C:
1700 * src/insets/insetgraphicsParams.h:
1701 * src/insets/insetgraphicsParams.C: Changed indentation to use tabs
1702 instead of spaces, and various other indentation issues to make the
1703 sources more consistent.
1705 2000-08-14 Marko Vendelin <markov@ioc.ee>
1707 * src/frontends/gnome/dialogs/diaprint.glade
1708 * src/frontends/gnome/FormPrint.C
1709 * src/frontends/gnome/FormPrint.h
1710 * src/frontends/gnome/diaprint_callbacks.c
1711 * src/frontends/gnome/diaprint_callbacks.h
1712 * src/frontends/gnome/diaprint_interface.c
1713 * src/frontends/gnome/diaprint_interface.h: Print dialog Gnome
1716 * src/frontends/gnome/dialogs/diainserturl.glade
1717 * src/frontends/gnome/FormUrl.C
1718 * src/frontends/gnome/FormUrl.h
1719 * src/frontends/gnome/diainserturl_callbacks.c
1720 * src/frontends/gnome/diainserturl_callbacks.h
1721 * src/frontends/gnome/diainserturl_interface.c
1722 * src/frontends/gnome/diainserturl_interface.h: Insert Url dialog
1723 Gnome implementation
1725 * src/frontends/gnome/Dialogs.C
1726 * src/frontends/gnome/Makefile.am: added Print, Insert Url and
1727 all other dialogs. Copy all unimplemented dialogs from Xforms
1730 * src/frontends/gnome/support.c
1731 * src/frontends/gnome/support.h: support files generated by Glade
1735 * config/gnome.m4: Gnome configuration scripts
1737 * config/lyxinclude.m4: cleanup: frontend renamed from gtk to gnome in
1738 configure --help message
1740 * src/lyx_gui.C: Gnome/Gtk releases control in LyXGUI::runTime()
1741 only if there are no events pendling in Gnome/Gtk. This enhances
1742 the performance of menus.
1745 2000-08-14 Allan Rae <rae@lyx.org>
1747 * lib/Makefile.am: listerrors cleaning
1749 * lib/listerrors: removed -- generated file
1750 * acinclude.m4: ditto
1751 * sigc++/acinclude.m4: ditto
1753 * src/frontends/xforms/forms/form_citation.fd:
1754 * src/frontends/xforms/FormCitation.C (setSize): Made the form a more
1757 * src/frontends/xforms/forms/makefile: I renamed the `install` target
1758 `updatesrc` and now we have a `test` target that does what `updatesrc`
1759 used to do. I didn't like having an install target that wasn't related
1762 * src/frontends/xforms/Form*.[hC]: Removed the free() member functions
1763 on all except FormGraphics. This may yet happen. Followed by a major
1764 cleanup including using FL_TRANSIENT for most of the dialogs. More
1765 changes to come when the ButtonController below is introduced.
1767 * src/frontends/xforms/ButtonController.h: New file for managing up to
1768 four buttons on a dialog according to an externally defined policy.
1769 * src/frontends/xforms/Makefile.am: added above
1771 * src/frontends/ButtonPolicies.[hC]: New files full of policies for Ok,
1772 Apply and Cancel/Close buttons and everything in between and beyond.
1773 * src/frontends/Makefile.am: added above.
1775 * src/frontends/xforms/forms/form_preferences.fd:
1776 * src/frontends/xforms/FormPreferences.[hC]: Uses the ButtonController
1777 and removed variable 'status' as a result. Fixed the set_minsize thing.
1778 Use the new screen-font-update after checking screen fonts were changed
1779 Added a "Restore" button to restore the original lyxrc values while
1780 editing. This restores everything not just the last input changed.
1781 That's still a tricky one. As is the "LyX: this shouldn't happen..."
1783 * src/LyXAction.C: screen-font-update added for updating buffers after
1784 screen font settings have been changed.
1785 * src/commandtags.h: ditto
1786 * src/lyxfunc.C: ditto
1788 * forms/lyx.fd: removed screen fonts dialog.
1789 * src/lyx_gui.C: ditto
1790 * src/menus.[Ch]: ditto
1791 * src/lyx.[Ch]: ditto
1792 * src/lyx_cb.C: ditto + code from here moved to make
1793 screen-font-update. And people wonder why progress on GUII is
1794 slow. Look at how scattered this stuff was! It takes forever
1797 * forms/fdfix.sh: Fixup the spacing after commas.
1798 * forms/makefile: Remove date from generated files. Fewer clashes now.
1799 * forms/bullet_forms.C.patch: included someones handwritten changes
1801 * src/lyxrc.[Ch]: Added a commented out system_lyxrc. Will use it RSN
1802 once I've discovered why LyXRC was made noncopyable.
1803 * src/lyx_main.C: ditto
1805 2000-08-14 Angus Leeming <a.leeming@ic.ac.uk>
1807 * src/frontends/xforms/forms/fdfix.sh:
1808 * src/frontends/xforms/forms/fdfixh.sed:
1809 * src/frontends/xforms/forms/fdfixc.sed: New file from Angus
1810 * src/frontends/xforms/Form*.[hC]:
1811 * src/frontends/xforms/form_*.[hC]: Massive rewrite of the generation
1812 scripts to rename all the "FL_OBJECT * form_xxxx" to "form" and to
1813 provide a destructor for the struct FD_form_xxxx. Another version of
1814 the set_[max|min]size workaround and a few other cleanups. Actually,
1815 Angus' patch from 20000809.
1817 2000-08-13 Baruch Even <baruch.even@writeme.com>
1819 * src/insets/insetgraphics.C (Clone): Added several fields that needed
1822 2000-08-11 Juergen Vigna <jug@sad.it>
1824 * src/insets/insetgraphics.C (InsetGraphics): changing init
1825 order because of warnings.
1827 * src/frontends/xforms/forms/makefile: adding patching .C with
1830 * src/frontends/xforms/forms/fdfix.sh: changing patching file .c
1831 from .C.patch to .c.patch
1833 * src/frontends/xforms/FormCommand.C (FormCommand): changing init
1834 order because of warning.
1836 * src/frontends/xforms/Dialogs.C (Dialogs): added FormDialog
1838 * src/frontends/Liason.C (setMinibuffer): new helper function
1840 * src/frontends/Dialogs.h (class Dialogs): inserting showLayoutDocument
1842 * src/lyxfunc.C (Dispatch): calling new Document-Layout
1844 * lib/ui/default.ui: commented out PaperLayout entry
1846 * src/frontends/xforms/form_document.[Ch]: new added files
1848 * src/frontends/xforms/FormDocument.[Ch]: ditto
1850 * src/frontends/xforms/forms/form_document.fd: ditto
1852 * src/frontends/xforms/forms/form_document.C.patch: ditto
1854 2000-08-10 Juergen Vigna <jug@sad.it>
1856 * src/insets/insetgraphics.C (draw): fixed access to 0 cacheHandle.
1857 (InsetGraphics): initialized cacheHandle to 0.
1858 (draw): changed call to updateInset to status=CHANGE_IN_DRAW.
1860 2000-08-10 Baruch Even <baruch.even@writeme.com>
1862 * src/graphics/GraphicsCache.h:
1863 * src/graphics/GraphicsCache.C (addFile, removeFile): Changed to work
1864 correctly as a cache.
1866 * src/graphics/GraphicsCacheItem.h:
1867 * src/graphics/GraphicsCacheItem.C: Changed to the pimpl idiom to allow
1870 * src/graphics/GraphicsCacheItem_pimpl.h:
1871 * src/graphics/GraphicsCacheItem_pimpl.C: The implementation of the
1874 * src/insets/insetgraphics.h:
1875 * src/insets/insetgraphics.C: Changed from using a signal notification
1876 to polling when image is not loaded.
1878 2000-08-10 Allan Rae <rae@lyx.org>
1880 * development/tools/makeLyXsigc.sh: Updated to allow Signal3. Note
1881 that there are two functions that have to been taken out of line by
1882 hand and aren't taken care of in the script. (Just a reminder note)
1884 * sigc++/macros/*.h.m4: Updated as above.
1886 2000-08-09 Juergen Vigna <jug@sad.it>
1888 * src/insets/insettext.C (draw): small fix for clearing rectangle.
1890 * src/insets/insettabular.C: make drawing of single cell smarter.
1892 2000-08-09 Marko Vendelin <markov@ioc.ee>
1893 * src/frontends/gnome/Menubar_pimpl.C
1894 * src/frontends/gnome/Menubar_pimpl.h: Gnome frontend Menubar
1895 implementation: new files
1897 * src/frontends/gnome/mainapp.C
1898 * src/frontends/gnome/mainapp.h: Gnome main window (temporary
1901 * src/main.C: create Gnome main window
1903 * src/frontends/xforms/Menubar_pimpl.h
1904 * src/frontends/Menubar.C
1905 * src/frontends/Menubar.h: added method Menubar::update that calls
1906 Menubar_pimpl::update and xforms/Menubar_pimpl::update (empty one)
1908 * src/LyXView.C: calls Menubar::update to update the state
1911 * src/frontends/gnome/Makefile.am: added new files
1913 * src/frontends/Makefile.am: added frontend compiler options
1915 2000-08-08 Juergen Vigna <jug@sad.it>
1917 * src/lyx_cb.C (AutoSave): autosave for unnamed files enabled!
1919 * src/bufferlist.C (close):
1920 * src/bufferlist.C (QwriteAll): remove Autosave-files for Unnamed()
1921 documents if exiting without saving.
1923 * src/buffer.C (save): use removeAutosaveFile()
1925 * src/support/filetools.C (removeAutosaveFile): new function.
1927 * src/lyx_cb.C (MenuWrite): returns a bool now.
1928 (MenuWriteAs): check if file could really be saved and revert to the
1930 (MenuWriteAs): removing old autosavefile if existant.
1932 * src/frontends/xforms/FormRef.h: puting FD_form_ref declaration
1933 before Goto toggle declaration, because of compiler warning.
1935 * src/frontends/xforms/FormRef.C: forgot include of <algorithm>
1937 * src/lyxfunc.C (MenuNew): small fix.
1939 * src/lyxrc.C (output): added RC_NEW_ASK_FILENAME tag.
1941 * src/bufferlist.C (newFile):
1942 * src/lyxfunc.C (MenuNew): use the new_ask_filename tag from lyxrc.
1944 * src/lyxrc.C: added new_ask_filename tag
1946 2000-08-07 Angus Leeming <a.leeming@ic.ac.uk>
1948 * src/lyx.fd: removed code pertaining to form_ref
1949 * src/lyx.[Ch]: ditto
1950 * src/lyx_cb.C: ditto
1951 * src/lyx_gui.C: ditto
1952 * src/lyx_gui_misc.C: ditto
1954 * src/BufferView_pimpl.C (restorePosition): update buffer only
1957 * src/commandtags.h (LFUN_REFTOGGLE): removed
1958 (LFUN_INSERT_REF): renamed LFUN_REF_INSERT
1959 (LFUN_REFGOTO): renamed LFUN_REF_GOTO
1960 (LFUN_REFBACK): renamed LFUN_REF_BACK
1962 * src/LyXAction.C: removed code pertaining to LFUN_REFTOGGLE
1963 * src/menus.C: ditto
1964 * src/lyxfunc.C (Dispatch): ditto.
1965 InsertRef dialog is now GUI-independent.
1967 * src/texrow.C: added using std::endl;
1969 * src/insets/insetref.[Ch]: strip out large amounts of code.
1970 The inset is now a container and this functionality is now
1971 managed by a new FormRef dialog
1973 * src/frontends/Dialogs.h (showRef, createRef): new signals
1975 * src/frontends/xforms/FormIndex.[Ch],
1976 src/frontends/xforms/FormUrl.[Ch]: workaround an xforms bug
1977 when setting dialog's min/max size
1978 * src/frontends/xforms/FormIndex.[Ch]: ditto
1980 * src/frontends/xforms/FormRef.[Ch],
1981 src/frontends/xforms/forms/form_ref.fd: new xforms
1982 implementation of an InsetRef dialog
1984 * src/graphics/GraphicsCache.[Ch]: small changes to compile with
1987 * src/graphics/XPM_Renderer.C (isImageFormatOK):
1988 ios::nocreate is not part of the standard. Removed.
1990 2000-08-07 Baruch Even <baruch.even@writeme.com>
1992 * src/graphics/Renderer.h:
1993 * src/graphics/Renderer.C: Added base class for rendering of different
1994 image formats into Pixmaps.
1996 * src/graphics/XPM_Renderer.h:
1997 * src/graphics/XPM_Renderer.C: Taken from GraphicsCacheItem and placed
1998 in a different class.
2000 * src/graphics/GraphicsCacheItem.C: factored out the rendering in order to
2001 easily add support for other formats.
2003 * src/insets/figinset.C: plugged a leak of an X resource.
2005 2000-08-07 Lars Gullik Bjønnes <larsbj@lyx.org>
2007 * src/CutAndPaste.[Ch]: make all metods static.
2009 * development/Code_rules/Rules: more work, added section on
2010 Exceptions, and a References section.
2012 * a lot of header files: work to make doc++ able to generate the
2013 source documentation, some workarounds of doc++ problems. Doc++ is
2014 now able to generate the documentation.
2016 2000-08-07 Juergen Vigna <jug@sad.it>
2018 * src/insets/insettabular.C (recomputeTextInsets): removed function
2020 * src/tabular.C (SetWidthOfMulticolCell):
2022 (calculate_width_of_column_NMC): fixed return value so that it really
2023 only returns true if the column-width has changed (there where
2024 problems with muliticolumn-cells in this column).
2026 2000-08-04 Juergen Vigna <jug@sad.it>
2028 * src/BufferView_pimpl.C (checkInsetHit): changed so that it looks
2029 also on the scrollstatus of the inset.
2030 (workAreaMotionNotify): ditto.
2032 * src/texrow.C (getIdFromRow): fixed compile problem on egcs-1.1.2.
2034 2000-08-01 Juergen Vigna <jug@sad.it>
2036 * src/insets/insettabular.C (resetPos): scroll tabular automatically.
2038 * src/commandtags.h:
2039 * src/LyXAction.C (init):
2040 * src/insets/inset.C (LocalDispatch): added support for
2043 * src/insets/inset.C (scroll): new functions.
2045 * src/insets/insettext.C (removeNewlines): new function.
2046 (SetAutoBreakRows): removes forced newlines in the text of the
2047 paragraph if autoBreakRows is set to false.
2049 * src/tabular.C (Latex): generates a parbox around the cell contents
2052 * src/frontends/xforms/FormTabular.C (local_update): removed
2053 the radio_useparbox button.
2055 * src/tabular.C (UseParbox): new function
2057 2000-08-06 Baruch Even <baruch.even@writeme.com>
2059 * src/graphics/GraphicsCache.h:
2060 * src/graphics/GraphicsCache.C:
2061 * src/graphics/GraphicsCacheItem.h:
2062 * src/graphics/GraphicsCacheItem.C: Made them to actually do something
2065 * src/insets/insetgraphics.h:
2066 * src/insets/insetgraphics.C: Added the use of the GraphicsCache and the
2067 drawing of the inline image.
2069 * src/buffer.C: Fixed a bug where a loaded InsetGraphics would be loaded
2070 into the wrong position.
2072 * src/lyxfunc.C: When adding an InsetGraphics the edit dialog is now
2075 2000-08-05 Lars Gullik Bjønnes <larsbj@lyx.org>
2077 * src/support/translator.h: move all typedefs to public section
2079 * src/support/filetools.C (MakeLatexName): return string const
2081 (TmpFileName): ditto
2082 (FileOpenSearch): ditto
2084 (LibFileSearch): ditto
2085 (i18nLibFileSearch): ditto
2088 (CreateTmpDir): ditto
2089 (CreateBufferTmpDir): ditto
2090 (CreateLyXTmpDir): ditto
2093 (MakeAbsPath): ditto
2095 (OnlyFilename): ditto
2097 (NormalizePath): ditto
2098 (CleanupPath): ditto
2099 (GetFileContents): ditto
2100 (ReplaceEnvironmentPath): ditto
2101 (MakeRelPath): ditto
2103 (ChangeExtension): ditto
2104 (MakeDisplayPath): ditto
2105 (do_popen): return cmdret const
2106 (findtexfile): return string const
2108 * src/support/DebugStream.h: add some /// to please doc++
2110 * src/frontends/DialogBase.h (endif): add some /// to please doc++
2112 * src/texrow.C (same_rownumber): functor to use with find_if
2113 (getIdFromRow): rewritten to use find_if and to not update the
2114 positions. return true if row is found
2115 (increasePos): new method, use to update positions
2117 * src/lyxlex_pimpl.h: make LyXLex::Pimpl noncopyable
2119 * src/lyxlex_pimpl.C (verifyTable): new method
2122 (GetString): return string const
2123 (pushTable): rewrite to use std::stack
2125 (setFile): better check
2128 * src/lyxlex.h: make LyXLex noncopyable
2130 * src/lyxlex.C (text): return char const * const
2131 (GetString): return string const
2132 (getLongString): return string const
2134 * src/lyx_gui_misc.C (askForText): return pair<...> const
2136 * src/lastfiles.[Ch] (operator): return string const
2138 * src/buffer.C (parseSingleLyXformat2Token): pass string to
2139 istringstream not char const *.
2140 move token.end() out of loop.
2141 (readFile): move initializaton of token
2143 * src/BufferView2.C (insertErrors): run texrow.increasePos if
2144 getIdFromRow is successful.
2146 * lib/bind/emacs.bind: don't include menus bind
2148 * development/Code_rules/Rules: the beginnings of making this
2149 better and covering more of the unwritten rules that we have.
2151 * development/Code_rules/Recommendations: a couple of wording
2154 2000-08-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2156 * src/support/strerror.c: remove C++ comment.
2158 2000-08-04 Angus Leeming <a.leeming@ic.ac.uk>
2160 * src/commandtags.h: LFUN_INDEX_CREATE_LAST reverts to
2161 LFUN_INDEX_INSERT_LAST
2163 * src/texrow.C (getIdFromRow): changed from const_iterator to
2164 iterator, allowing code to compile with DEC cxx
2166 * src/frontends/xforms/FormCitation.[Ch]: made vector<string>
2167 stores part of the class, as suggested by Allan. Will allow
2169 (apply): test to apply uses InsetCommandParams operator!=
2171 * src/frontends/xforms/FormIndex.C: moved set_minsize into build
2172 (apply): test to apply uses InsetCommandParams operator!=
2174 * src/frontends/xforms/FormToc.[Ch]: made vector<string>
2175 stores part of the class.
2176 (update): removed limits on min/max size.
2178 * src/frontends/xforms/FormUrl.C: moved set_minsize into build
2179 (apply): test to apply uses InsetCommandParams operator!=
2181 * src/insets/insetcommand.[Ch] InsetCommand made noncopyable
2182 (Read, Write, scanCommand, getCommand): moved functionality
2183 into InsetCommandParams.
2185 (getScreenLabel): made pure virtual
2186 new InsetCommandParams operators== and !=
2188 * src/insets/insetbib.[Ch] (InsetBibKey, InsetBibtex): new
2189 c-tors based on InsetCommandParams. Removed others.
2190 * src/insets/insetinclude.[Ch]: ditto
2191 * src/insets/insetlabel.[Ch]: ditto
2192 * src/insets/insetparent.[Ch]: ditto
2193 * src/insets/insetref.[Ch]: ditto. Also moved gotoLabel into .C
2195 * src/buffer.C (parseSingleLyXformat2Token, readInset): all
2196 insets derived from InsetCommand created using similar c-tors
2197 based on InsetCommandParams
2198 * src/lyx_cb.C (MenuInsertLabel, RefSelectCB): ditto
2199 * src/menus.C (ShowRefsMenu): ditto
2200 * src/paragraph.C (Clone): ditto
2201 * src/text2.C (SetCounter): ditto
2202 * src/lyxfunc.C (Dispatch) ditto
2203 Also recreated old InsetIndex behaviour exactly. Can now
2204 index-insert at the start of a paragraph and index-insert-last
2205 without launching the pop-up.
2207 2000-08-03 Lars Gullik Bjønnes <larsbj@lyx.org>
2209 * lib/lyxrc.example: mark te pdf options as non functional.
2211 * src/support/lstrings.C (strToInt): move initalization of tmpstr
2212 (isStrDbl): move tmpstr.end() out of loop.
2213 (strToDbl): move intialization of tmpstr
2214 (lowercase): return string const and move tmp.end() out of loop.
2215 (uppercase): return string const and move tmp.edn() out of loop.
2216 (prefixIs): add assertion
2221 (containsOnly): ditto
2222 (containsOnly): ditto
2223 (containsOnly): ditto
2224 (countChar): make last arg char not char const
2225 (token): return string const
2226 (subst): return string const, move tmp.end() out of loop.
2227 (subst): return string const, add assertion
2228 (strip): return string const
2229 (frontStrip): return string const, add assertion
2230 (frontStrip): return string const
2235 * src/support/lstrings.C: add inclde "LAssert.h"
2236 (isStrInt): move tmpstr.end() out of loop.
2238 * src/frontends/xforms/Toolbar_pimpl.C (activate): move
2239 toollist.end() out of loop.
2240 (deactivate): move toollist.end() out of loop.
2241 (update): move toollist.end() out of loop.
2242 (updateLayoutList): move tc.end() out of loop.
2243 (add): move toollist.end() out of loop.
2245 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): move
2246 md.end() out of loop.
2248 * src/texrow.h: make getIdFromRow const, make rowlist mutable.
2250 * src/texrow.C (getIdFromRow): make const, more rowlist.end() out
2253 * src/paragraph.C (Erase): move fontlist.end() out of loop.
2254 (Erase): move insetlist.end() out of loop.
2256 * src/lyx_sendfax_main.C: make show_logfile static and to take a
2257 ref to const string as first arg. Move initialization of some
2258 variables, whitespace changes.
2260 * src/kbmap.C (defkey): move table.end() out of loop.
2261 (kb_keymap): move table.end() out of loop.
2262 (findbinding): move table.end() out of loop.
2264 * src/MenuBackend.C (hasMenu): move end() out of loop.
2265 (getMenu): move end() out of loop.
2266 (getMenu): move menulist_.end() out of loop.
2268 * src/Makefile.am (#lyx_LDFLAGS): interesting option commented out.
2270 * src/LaTeXFeatures.C (getIncludedFiles): move IncludedFiles.end()
2273 * src/LColor.C (getFromGUIName): move infotab.end() out of loop.
2274 (getFromLyXName): move infotab.end() out of loop.
2276 * config/lyxinclude.m4 (CXXFLAGS): change for 2.96 add
2277 -fvtable-thunks -ffunction-sections -fdata-sections
2279 2000-08-03 Dekel Tsur <dekel@math.tau.ac.il>
2281 * src/frontends/xforms/RadioButtonGroup.h: Changed <forms.h> to
2284 2000-08-03 Angus Leeming <a.leeming@ic.ac.uk>
2286 * src/frontends/xforms/FormCommand.[Ch] (d-tor): removed
2288 * src/frontends/xforms/FormCitation.[Ch],
2289 src/frontends/xforms/FormIndex.[Ch],
2290 src/frontends/xforms/FormToc.[Ch],
2291 src/frontends/xforms/FormUrl.[Ch] (d-tors): call free()
2293 2000-08-03 Angus Leeming <a.leeming@ic.ac.uk>
2295 * src/commandtags.h: renamed, created some flags for citation
2298 * src/lyx_gui_misc.C: stripped out old FD_index_form code
2300 * src/lyxfunc.C (dispatch): use signals to insert index entry
2302 * src/frontends/Dialogs.h: new signal createIndex
2304 * src/frontends/xforms/FormCommand.[Ch],
2305 src/frontends/xforms/FormCitation.[Ch],
2306 src/frontends/xforms/FormToc.[Ch],
2307 src/frontends/xforms/FormUrl.[Ch]: clean up and comment better
2309 * src/insets/insetindex.[Ch]: GUI-independent
2311 * src/frontends/xforms/FormIndex.[Ch],
2312 * src/frontends/xforms/forms/form_index.fd: xforms implementation
2315 2000-08-01 Dekel Tsur <dekel@math.tau.ac.il>
2317 * src/mathed/math_write.C (MathDecorationInset::Write) Put \protect
2318 before \overbrace, \underbrace, \overleftarrow, or \overrightarrow.
2320 2000-08-02 Lars Gullik Bjønnes <larsbj@lyx.org>
2322 * src/insets/insetref.C (Latex): rewrite so that there is now
2323 question that a initialization is requested.
2325 * src/insets/insetcommand.h: reenable the hide signal
2327 2000-08-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2329 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): try to
2330 fix handling of shortcuts (many bugs :)
2331 (add_lastfiles): ditto.
2333 * lib/ui/default.ui: fix a few shortcuts.
2335 2000-07-27 Kayvan A. Sylvan <kayvan@sylvan.com>
2337 * Makefile.am: Fix ``rpmdist'' target to return the exit
2338 status of the ``rpm'' command, instead of the last command in
2339 the chain (the ``rm lyx.xpm'' command, which always returns
2342 2000-08-02 Allan Rae <rae@lyx.org>
2344 * src/frontends/xforms/FormUrl.C (FormUrl): Initialise ALL variables.
2345 * src/frontends/xforms/FormCitation.C (FormCitation): ditto
2346 * src/frontends/xforms/FormToc.C (FormToc): ditto
2348 * src/frontends/xforms/Makefile.am: A few forgotten files
2350 * src/frontends/xforms/FormCommand.C (showInset): The rest of the
2351 Signals-not-copyable-problem Lars' started commenting out.
2353 * src/frontends/xforms/form_toc.[hC]: new files. TOC crashes lyx.
2355 2000-08-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2357 * src/insets/insetcommand.h: Signals is not copyable so anoter
2358 scheme for automatic hiding of forms must be used.
2360 * src/frontends/xforms/FormCitation.h: don't inerit from
2361 noncopyable, FormCommand already does that.
2362 * src/frontends/xforms/FormToc.h: ditto
2363 * src/frontends/xforms/FormUrl.h: ditto
2365 * src/frontends/xforms/FormCitation.C: add include <algorithm>
2367 2000-08-01 Angus Leeming <a.leeming@ic.ac.uk>
2369 * src/insets/insetcommand.h (hide): new SigC::Signal0
2370 (d-tor) new virtual destructor emits hide signal
2372 * src/insets/insetcite.[Ch] (hide, d-tor, EditMessage): removed
2373 * src/insets/inseturl.[Ch] (hide, d-tor): ditto
2375 * src/insets/insettoc.[Ch]: one inset now deals with TOC, LOA,
2376 LOF and LOT. Inset is now GUI-independent
2378 * src/insets/insetloa.[Ch]: redundant
2379 * src/insets/insetlof.[Ch]: ditto
2380 * src/insets/insetlot.[Ch]: ditto
2382 * src/frontends/xforms/forms/form_url.fd: tweaked!
2383 * src/frontends/xforms/forms/form_citation.fd: ditto
2385 * src/frontends/xforms/FormCommand.[Ch]: new base class to those
2386 dialogs dealing with InsetCommand insets
2388 * src/frontends/xforms/FormCitation.[Ch]: now makes use of
2389 FormCommand base class
2390 * src/frontends/xforms/FormUrl.[Ch]: ditto
2392 * src/frontends/xforms/forms/form_toc.fd: Xforms implementation
2394 * src/frontends/xforms/FormToc.[Ch]: ditto
2396 * src/frontends/Dialogs.h (showCitation, showTOC, showUrl): all
2397 passed a generic InsetCommand pointer
2398 * src/frontends/xforms/Dialogs.C (c-tor): create instance of FormToc
2400 * src/lyxfunc.C (Dispatch) : modified to accomodate new FormToc class
2401 and modified InsetTOC class
2402 * src/buffer.C: ditto
2404 * forms/lyx.fd: strip out old FD_form_toc code
2405 * src/lyx_gui_misc.C: ditto
2406 * src/lyx_gui.C: ditto
2407 * src/lyx_cb.C: ditto
2408 * src/lyx.[Ch]: ditto
2410 2000-08-01 Lars Gullik Bjønnes <larsbj@lyx.org>
2412 * src/support/utility.hpp: tr -d '\r'
2414 2000-08-01 Juergen Vigna <jug@sad.it>
2416 * src/insets/insettabular.h: removed initFeatures() as it's not needed.
2418 * src/commandtags.h:
2419 * src/LyXAction.C (init): added LFUN_LAYOUT_TABULAR and
2420 LFUN_TABULAR_FEATURES.
2422 * src/lyxfunc.C (getStatus): implemented LFUN_TABULAR_FEATURES and
2423 LFUN_LAYOUT_TABULAR.
2425 * src/insets/insettabular.C (getStatus): implemented helper function.
2427 * lib/ui/default.ui: implemented edit-table-menu and layout-tabular.
2429 2000-07-31 Juergen Vigna <jug@sad.it>
2431 * src/text.C (draw): fixed screen update problem for text-insets.
2433 * src/text2.C (SetParagrpah): call an update of the inset-owner when
2434 something changed probably this has to be added in various other
2437 * src/insets/insettext.C (cy): fixed to give back the right cursor.y().
2439 2000-07-31 Baruch Even <baruch.even@writeme.com>
2441 * src/frontends/xforms/RadioButtonGroup.C: Changed to use home-brew
2442 templates to satisfy compaq cxx.
2445 2000-07-31 Lars Gullik Bjønnes <larsbj@lyx.org>
2447 * src/support/translator.h (equal_1st_in_pair::operator()): take
2448 const ref pair_type as arg.
2449 (equal_2nd_in_pair::operator()): ditto
2450 (Translator::~Translator): remove empty d-tor.
2452 * src/graphics/GraphicsCache.C: move include config.h to top, also
2453 put initialization of GraphicsCache::singleton here.
2454 (~GraphicsCache): move here
2455 (addFile): take const ref as arg
2458 * src/lyxlex_pimpl.C (setFile): comment in old behaviour
2460 * src/BufferView2.C (insertLyXFile): change te with/without header
2463 2000-07-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2465 * src/frontends/xforms/FormGraphics.C (apply): add some
2466 static_cast. Not very nice, but required by compaq cxx.
2468 * src/frontends/xforms/RadioButtonGroup.h: include header
2469 <utility> instead of <pair.h>
2471 * src/insets/insetgraphicsParams.C: add using directive.
2472 (readResize): change return type to void.
2473 (readOrigin): ditto.
2475 * src/lyxfunc.C (getStatus): add missing break for build-program
2476 function; add test for Literate for export functions.
2478 * lib/ui/default.ui: fix Insert->TOC->TOC; comment out invalid
2479 entries in Options menu.
2481 2000-07-31 Baruch Even <baruch.even@writeme.com>
2483 * src/frontends/xforms/Toolbar_pimpl.C (toolbarItem::operator=):
2484 protect against auto-allocation; release icon when needed.
2486 2000-07-31 Matej Cepl <CeplM@seznam.cz>
2488 * lib/kbd/czech.kmap: new file. standard Czech keyboard as found
2489 on usual typewriter.
2491 * lib/kbd/czech-prg.kmap: simpler czech kmap (which was the
2492 earlier czech.kmap), useful only for programming.
2494 2000-07-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2496 * src/frontends/xforms/FormCitation.h: fix conditioning around
2499 2000-07-31 Juergen Vigna <jug@sad.it>
2501 * src/frontends/xforms/FormTabular.C (local_update): changed
2502 radio_linebreaks to radio_useparbox and added radio_useminipage.
2504 * src/tabular.C: made support for using minipages/parboxes.
2506 * src/bufferlist.C (QwriteAll): small fix for asking for save.
2508 * src/insets/insetgraphics.C (draw): just draw the inset so that the
2510 (descent): so the cursor is in the middle.
2511 (width): bit smaller box.
2513 * src/insets/insetgraphics.h: added display() function.
2515 2000-07-31 Baruch Even <baruch.even@writeme.com>
2517 * src/frontends/Dialogs.h: Added showGraphics signals.
2519 * src/frontends/xforms/forms/form_graphics.fd: Added file, the
2520 xforms form definition of the graphics dialog.
2522 * src/frontends/xforms/FormGraphics.h:
2523 * src/frontends/xforms/FormGraphics.C: Added files, the
2524 GUIndependent code of InsetGraphics
2526 * src/insets/insetgraphics.h:
2527 * src/insets/insetgraphics.C: Major writing to make it work.
2529 * src/insets/insetgraphicsParams.h:
2530 * src/insets/insetgraphicsParams.C: Added files, parameter passing
2531 struct between InsetGraphics and GUI.
2533 * src/LaTeXFeatures.h:
2534 * src/LaTeXFeatures.C (c-tor, require, getPackages): Enabled
2535 support for graphicx package.
2537 * src/buffer.C (parseSingleLyXformat2Token): Fixed read support
2538 for the graphics inset.
2540 * src/support/translator.h: Added file, used in
2541 InsetGraphicsParams. this is a template to translate between two
2544 * src/frontends/xforms/RadioButtonGroup.h:
2545 * src/frontends/xforms/RadioButtonGroup.C: Added files, Comprise a
2546 way to easily control a radio button group.
2548 2000-07-28 Juergen Vigna <jug@sad.it>
2550 * src/insets/insettabular.C (LocalDispatch):
2551 (TabularFeatures): added support for lyx-functions of tabular features.
2552 (cellstart): refixed this function after someone wrongly changed it.
2554 * src/commandtags.h:
2555 * src/LyXAction.C (init): added support for tabular-features
2557 2000-07-28 Allan Rae <rae@lyx.org>
2559 * src/frontends/xforms/FormPreferences.C (build): Setup input return
2560 checking. NOTE: It seems that pressing ESC to cancel the dialog also
2561 triggers the callback for input checking. As a result we sometimes get
2562 "LyX: This shouldn't happen..." printed to cerr.
2563 (input): Started using status variable since I only free() on
2564 destruction. Some input checking for paths and font sizes.
2566 * src/frontends/xforms/FormPreferences.h: Use status to control
2567 activation of Ok and Apply
2569 * src/frontends/xforms/forms/form_preferences.fd: Setup input return
2570 callback. Also resized to stop segfaults with 0.88. The problem is
2571 that xforms-0.88 requires the folder to be wide enough to fit all the
2572 tabs. If it isn't it causes all sorts of problems.
2574 * src/frontends/xforms/FormCopyright.[hC]: forward declare FD_form...
2576 * src/frontends/xforms/forms/README: Reflect reality.
2578 * src/frontends/xforms/forms/fdfix.sh: Clean up comments
2579 * src/frontends/xforms/forms/makefile: ditto.
2581 * src/commandtags.h: Get access to new Preferences dialog
2582 * src/LyXAction.C: ditto
2583 * src/lyxfunc.C: ditto
2584 * lib/ui/default.ui: ditto
2586 2000-07-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2588 * src/frontends/xforms/forms/makefile (.c.C): change call to fdfix.sh.
2590 * src/frontends/xforms/Makefile.am (libxforms_la_SOURCES): add a
2593 * src/frontends/xforms/form_url.[Ch]: added.
2595 2000-07-27 Lars Gullik Bjønnes <larsbj@lyx.org>
2597 * src/insets/insetbib.h: fixed bug in previous commit
2599 * src/frontends/xforms/FormUrl.h: ditto
2601 * src/frontends/xforms/FormPrint.h: ditto
2603 * src/frontends/xforms/FormPreferences.h: ditto
2605 * src/frontends/xforms/FormCopyright.h: ditto
2607 * src/frontends/xforms/FormCitation.C: ditto
2609 * src/frontends/Dialogs.h (class Dialogs): use noncopyable, remove
2610 private copyconstructor and private default contructor
2612 * src/support/Makefile.am: add utility.hpp
2614 * src/support/utility.hpp: new file from boost
2616 * src/insets/insetbib.h: set owner in clone
2618 * src/frontends/xforms/FormCitation.C: added missing include
2621 * src/insets/form_url.[Ch]: removed
2623 2000-07-26 Kayvan A. Sylvan <kayvan@sylvan.com>
2625 * development/lyx.spec.in
2626 * Makefile.am: Fix buglet for LyX RPM generation resulting from
2627 file/directory re-organization.
2629 2000-07-26 Angus Leeming <a.leeming@ic.ac.uk>
2631 * src/insets/insetcommand.[Ch]: moved the string data and
2632 associated manipulation methods into a new stand-alone class
2633 InsetCommandParams. This class has two additional methods
2634 getAsString() and setFromString() allowing the contents to be
2635 moved around as a single string.
2636 (addContents) method removed.
2637 (setContents) method no longer virtual.
2639 * src/buffer.C (readInset): made use of new InsetCitation,
2640 InsetUrl constructors based on InsetCommandParams.
2642 * src/commandtags.h: add LFUN_INSERT_URL
2644 * src/lyxfunc.C (Dispatch): changed to accomadate GUI-
2645 independent InsetUrl and use InsetCommandParams to extract
2646 string info and create new Insets.
2648 * src/frontends/Dialogs.h: add signals showUrl, createUrl.
2650 * src/frontends/xforms/FormCitation.C (apply): uses
2653 * src/frontends/xforms/form_url.C
2654 * src/frontends/xforms/form_url.h
2655 * src/frontends/xforms/FormUrl.h
2656 * src/frontends/xforms/FormUrl.C
2657 * src/frontends/xforms/forms/form_url.fd: new files
2659 * src/insets/insetcite.[Ch]: removed unused constructors.
2661 * src/insets/insetinclude.[Ch]: no longer store filename
2663 * src/insets/inseturl.[Ch]: GUI-independent.
2665 2000-07-26 Juergen Vigna <jug@sad.it>
2666 * renamed frontend from gtk to gnome as it is that what is realized
2667 and did the necessary changes in the files.
2669 2000-07-26 Marko Vendelin <markov@ioc.ee>
2671 * configure.in: cleaning up gnome configuration scripts
2673 2000-07-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2675 * src/frontends/xforms/Menubar_pimpl.C (set): fix the disappearing
2676 shortcuts syndrom by redrawing them explicitely (a better solution
2677 would be appreciated).
2679 * src/lyxfunc.C (getStatus): fix crash when functions are disabled.
2681 * src/frontends/xforms/Menubar_pimpl.C (set): fix the shortcut of
2684 * src/lyx_cb.C (MenuExport): change html export to do the right
2685 thing depending of the document type (instead of having
2686 html-linuxdoc and html-docbook).
2687 * src/lyxfunc.C (getStatus): update for html
2688 * lib/ui/default.ui: simplify due to the above change.
2689 * src/menus.C (ShowFileMenu): update too (in case we need it).
2691 * src/MenuBackend.C (read): if a menu is defined twice, add the
2692 new entries to the exiting one.
2694 2000-07-26 Juergen Vigna <jug@sad.it>
2696 * src/buffer.h: added functions setUnnamed(bool) and isUnnamed().
2698 * src/lyx_cb.C (MenuWriteAs): Changed to react right for unnamed docs
2699 and return a bool if it did actual save the file.
2700 (AutoSave): don't autosave a unnamed doc.
2702 * src/bufferlist.C (close) (QwriteAll) (emergencyWriteAll):
2703 check if this is an UNNAMED new file and react to it.
2704 (newFile): set buffer to unnamed and change to not mark a new
2705 buffer dirty if I didn't do anything with it.
2707 * src/lyxfunc.C (MenuNew): Changed to not ask for filename on new.
2709 2000-07-26 Lars Gullik Bjønnes <larsbj@lyx.org>
2711 * src/frontends/Menubar.h: make "struct Pimpl;" public + the
2712 friend as per Angus's patch posted to lyx-devel.
2714 * src/ext_l10n.h: updated
2716 * src/frontends/xforms/Toolbar_pimpl.C (updateLayoutList): run
2717 gettext on the style string right before inserting them into the
2720 * autogen.sh: add code to extract style strings form layout files,
2721 not good enough yet.
2723 * src/frontends/gtk/.cvsignore: add MAKEFILE
2725 * src/MenuBackend.C (read): run the label strings through gettext
2726 before storing them in the containers.
2728 * src/ext_l10n.h: new file
2730 * autogen.sh : generate the ext_l10n.h file here
2732 2000-07-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2734 * src/lyxrc.C (read): do not use LyXLex::lex() to parse set_color
2737 * lib/ui/default.ui: fix a couple of typos.
2739 * config/gnome/gtk.m4: added (and added to the list of files in
2742 * src/insets/insetinclude.C (unique_id): fix when we are using
2743 lyxstring instead of basic_string<>.
2744 * src/insets/insettext.C (LocalDispatch): ditto.
2745 * src/support/filetools.C: ditto.
2747 * lib/configure.m4: create the ui/ directory if necessary.
2749 * src/LyXView.[Ch] (updateToolbar): new method.
2751 * src/BufferView_pimpl.C (buffer): update the toolbar when
2752 opening/closing buffer.
2754 2000-07-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2756 * src/LyXAction.C (getActionName): enhance to return also the name
2757 and options of pseudo-actions.
2758 (init): New lyxfunc LFUN_MATH_PANEL=="math-panel".
2760 * lib/ui/default.ui: use OptItem in the vc submenu (intented just
2761 as an example of what is possible). Used in File->Build too (more
2762 useful) and in the import/export menus (to mimick the complicated
2763 handling of linuxdoc and friends). Try to update all the entries.
2765 * src/frontends/xforms/Menubar_pimpl.C (create_submenu): handle
2768 * src/MenuBackend.C (read): Parse the new OptItem tag.
2770 * src/MenuBackend.h: Add a new optional_ data member (used if the
2771 entry should be omitted when the lyxfunc is disabled).
2773 * src/frontends/xforms/Menubar_pimpl.C (string_width): new
2774 function, used as a shortcut.
2775 (create_submenu): align correctly the shortcuts on the widest
2778 * src/MenuBackend.h: MenuItem.label() only returns the label of
2779 the menu without shortcut; new method shortcut().
2781 2000-07-14 Marko Vendelin <markov@ioc.ee>
2783 * src/frontends/gtk/Dialogs.C:
2784 * src/frontends/gtk/FormCopyright.C:
2785 * src/frontends/gtk/FormCopyright.h:
2786 * src/frontends/gtk/Makefile.am: added these source-files for the
2787 Gtk/Gnome support of the Copyright-Dialog.
2789 * src/main.C: added Gnome::Main initialization if using
2790 Gtk/Gnome frontend-GUI.
2792 * src/lyx_gui.C: added Gnome event loop if using Gtk/Gnome
2794 * config/gnome/aclocal-include.m4
2795 * config/gnome/compiler-flags.m4
2796 * config/gnome/curses.m4
2797 * config/gnome/gnome--.m4
2798 * config/gnome/gnome-bonobo-check.m4
2799 * config/gnome/gnome-common.m4
2800 * config/gnome/gnome-fileutils.m4
2801 * config/gnome/gnome-ghttp-check.m4
2802 * config/gnome/gnome-gnorba-check.m4
2803 * config/gnome/gnome-guile-checks.m4
2804 * config/gnome/gnome-libgtop-check.m4
2805 * config/gnome/gnome-objc-checks.m4
2806 * config/gnome/gnome-orbit-check.m4
2807 * config/gnome/gnome-print-check.m4
2808 * config/gnome/gnome-pthread-check.m4
2809 * config/gnome/gnome-support.m4
2810 * config/gnome/gnome-undelfs.m4
2811 * config/gnome/gnome-vfs.m4
2812 * config/gnome/gnome-x-checks.m4
2813 * config/gnome/gnome-xml-check.m4
2814 * config/gnome/gnome.m4
2815 * config/gnome/gperf-check.m4
2816 * config/gnome/gtk--.m4
2817 * config/gnome/linger.m4
2818 * config/gnome/need-declaration.m4: added configuration scripts
2819 for Gtk/Gnome frontend-GUI
2821 * configure.in: added support for the --with-frontend=gtk option
2823 * autogen.sh: added config/gnome/* to list of config-files
2825 * acconfig.h: added define for GTKGUI-support
2827 * config/lyxinclude.m4: added --with-frontend[=value] option value
2828 for Gtk/Gnome frontend-GUI support.
2830 2000-07-25 Lars Gullik Bjønnes <larsbj@lyx.org>
2832 * src/support/lstrings.C (prefixIs): rewrite so that gcc bastring
2836 * src/paragraph.C (GetChar): remove non-const version
2838 * src/lyxlex_pimpl.C (compare_tags): rewritten to suit cvs gcc 2.96
2839 (search_kw): use it.
2841 * src/lyx_main.C (init): if "preferences" exist, read that instead
2843 (ReadRcFile): return bool if the file could be read ok.
2844 (ReadUIFile): add a check to see if lex file is set ok.
2846 * src/lyx_cb.C (InsertAsciiFile): rewrite a bit so that gcc
2847 bastring can be used instead of lyxstring (still uses the old code
2848 if std::string is good enough or if lyxstring is used.)
2850 * src/encoding.C: make the arrays static, move ininle functions
2852 * src/encoding.h: from here.
2854 * src/buffer.C: have last_isnet_read as a file scope variable for now.
2855 (parseSingleLyXformat2Token): move inset parsing to separate method
2856 (readInset): new private method
2858 * src/Variables.h: remove virtual from get().
2860 * src/ToolbarDefaults.C: include lyxparagraph.h temporary to get
2861 access to NEW_INSETS and NEW_TABULAR
2863 * src/MenuBackend.h: remove superfluous forward declaration of
2864 MenuItem. Add documentations tags "///", remove empty MenuItem
2865 destructor, remove private default contructor.
2867 * src/MenuBackend.C (MenuItem): remove unneeded copy contructor
2869 (read): more string mlabel and mname to where they are used
2870 (read): remove unused variables mlabel and mname
2871 (defaults): unconditional clear, make menusetup take advantage of
2872 add returning Menu &.
2874 * src/LyXView.h: define NEW_MENUBAR as default
2876 * src/LyXAction.C: include lyxparagraph.h temporary to get access
2877 to NEW_INSETS and NEW_TABULAR.
2878 (init): commetn out some funcs that is obsolete when NEW_INSETS is
2879 defined. Change some of the "xxxx-inset-insert" functions names to
2882 * several files: more enahncements to NEW_INSETS and the resulting
2885 * lib/lyxrc.example (\date_insert_format): move to misc section
2887 * config/lyxinclude.m4 (LYX_CXX_STL_STRING): allow to use the gcc
2888 bastring and use AC_CACHE_CHECK.
2889 (LYX_CXX_GOOD_STD_STRING): new check. Checks if the std::string of
2890 the system have the newest methods. uses AC_CACHE_CHECK
2891 (LYX_CXX_MUTABLE): use AC_CACHE_CHECK
2892 (LYX_CXX_PARTIAL): use AC_CACHE_CHECK
2893 (LYX_CXX_NAMESPACES): use AC_CACHE_CHECK
2895 * configure.in: add LYX_CXX_GOOD_STD_STRING
2897 * acinclude.m4: recreated
2899 2000-07-24 Amir Karger
2901 * README: add Hebrew, Arabic kmaps
2904 2000-07-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2906 * src/buffer.C (writeFileAscii): Define actcell as an int instead
2909 2000-07-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
2911 * Lot of files: add pragma interface/implementation.
2913 * src/lyx_main.C (ReadUFile): new method. Read the UI file.
2915 * lib/ui/default.ui: new file (ans new directory). Contains the
2916 default menu and toolbar.
2918 * src/lyxrc.[Ch]: new variable ui_file. Move toolbardefaults to
2919 global space. Toolbars are now read (as menus) in ui files.
2921 * src/debug.C: change Debug::TOOLBAR to Debug::GUI.
2923 * src/lyxfunc.C (getStatus): do not exit immediately if a command
2924 is disabled because the document is read-only. We want to have the
2925 toggle state of the function anyway.
2926 (getStatus): add code for LFUN_VC* functions (mimicking what is
2927 done in old-style menus)
2929 * src/lyxfunc.C (Dispatch): news functions LFUN_SWITCHBUFFER,
2930 LFUN_HELP_CREDITS, LFUN_HELP_VERSION, LFUN_HELP_OPEN.
2932 * src/LyXView.[Ch]: add code for the NEW_MENUBAR define.
2933 * src/BufferView_pimpl.C: ditto.
2934 * src/lyxfunc.C: ditto.
2936 * src/LyXView.h: add a define NEW_MENUBAR (commented out by
2937 default). This replaces old-style menus by new ones.
2939 * src/MenuBackend.[Ch]: new classes MenuBackend, Menu and
2940 MenuItem. Contain the data structure of a menu.
2942 * src/insets/insettext.C: use LyXView::setLayout instead of
2943 accessing directly the toolbar combox.
2944 * src/lyxfunc.C (Dispatch): ditto.
2946 * src/LyXView.C (setLayout): new method, which just calls
2947 Toolbar::setLayout().
2948 (updateLayoutChoice): move part of this method in Toolbar.
2950 * src/toolbar.[Ch]: removed.
2952 * src/frontend/xforms/Toolbar_pimpl.[Ch]: new files. The xforms
2953 implementation the toolbar.
2955 * src/frontend/Toolbar.[Ch]: new files. The abstract interface of
2956 the toolbar. It might make sense to merge it with ToolbarDefaults
2958 (setLayout): new function.
2959 (updateLayoutList): ditto.
2960 (openLayoutList): ditto.
2962 * src/frontend/xforms/Toolbar_pimpl.[Ch]: new files. Contain the
2963 xforms implementation of the toolbar.
2964 (get_toolbar_func): comment out, since I do not
2965 know what it is good for.
2967 * src/ToolbarDefaults.h: Add the ItemType enum.
2969 * src/support/StrPool.[Ch]: new class. Acts as a reference holder
2970 for a list of allocated C strings. Used in Menubar xforms
2971 implementation to avoid memory leaks.
2973 * src/support/lstrings.[Ch] (uppercase): new version taking and
2977 * lib/bind/xemacs.bind: remove bogus binding for lyx-quit.
2978 * lib/bind/emacs.bind: ditto.
2980 2000-07-21 Lars Gullik Bjønnes <larsbj@lyx.org>
2982 * src/toolbar.h: include commandtags.h instead of lyxfunc.h,
2983 forward decl of LyXView.
2985 * src/toolbar.C (toolbarItem): moved from toolbar.h
2986 (toolbarItem::clean): ditto
2987 (toolbarItem::~toolbarItem): ditto
2988 (toolbarItem::operator): ditto
2990 * src/text2.C (SetLayout): commetn out USE_OLD_SETUP_LAYOUT stuff
2992 * src/paragraph.h: control the NEW_TABULAR define from here
2994 * src/buffer.C: remove define USE_PARSE_FUNCTION, change
2995 USE_TABULAR_INSETS to NEW_TABULAR
2997 * src/ToolbarDefaults.C: add include "lyxlex.h"
2999 * files using the old table/tabular: use NEW_TABULAR to control
3000 compilation of old tabular stuff.
3002 * src/paragraph.C (SimpleTeXOnePar): NEW_INSETS: move some #ifdef
3005 * src/buffer.C (parseSingleLyXformat2Token): NEW_INSETS: fix the
3006 planemet in reading of old style floats, fix the \end_deeper
3007 problem when reading old style floats.
3009 2000-07-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3011 * src/paragraph.C (writeFile): NEW_INSETS: move a misplaced #endif
3013 2000-07-20 Serge Winitzki <winitzki@erebus.phys.cwru.edu>
3015 * lib/bind/sciword.bind: updated.
3017 2000-07-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3019 * src/paragraph.C (writeFile): NEW_INSETS: possible fix to the
3020 layout write problem
3022 2000-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3024 * src/Makefile.am (INCLUDES): remove image directory from include
3027 * src/bullet_forms.C (create_form_form_bullet): small cleanup.
3028 * src/bullet_forms_cb.C (BulletPanelCB): ditto.
3030 * src/LyXView.C (create_form_form_main): read the application icon
3033 * lib/images/*.xpm: change the icons to use transparent color for
3036 * src/toolbar.C (update): change the color of the button when it
3039 2000-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3041 * src/lyxfunc.C (Dispatch): use LyXView::ShowState instead of
3042 setting explicitely the minibuffer.
3043 * src/BufferView_pimpl.C (workAreaButtonRelease): ditto.
3045 * src/LyXView.C (showState): new function. Shows font information
3046 in minibuffer and update toolbar state.
3047 (LyXView): call Toolbar::update after creating the
3050 * src/toolbar.C: change toollist to be a vector instead of a
3052 (BubbleTimerCB): get help string directly from the callback
3053 argument of the corresponding icon (which is the action)
3054 (set): remove unnecessary ugliness.
3055 (update): new function. update the icons (depressed, disabled)
3056 depending of the status of the corresponding action.
3058 * src/toolbar.h: remove help in toolbarItem
3060 2000-07-19 Dekel Tsur <dekel@math.tau.ac.il>
3062 * src/Painter.C (text): Added code for using symbol glyphs from
3063 iso10646 fonts. Currently diabled.
3065 * src/encoding.C: Added new encodings: iso8859_3,iso8859_9 and
3068 * src/language.C (initL): Fixed encodings for esperanto,lsorbian,
3069 magyar,turkish and usorbian.
3071 * src/paragraph.C (isMultiLingual): Made more efficient.
3073 * src/mathed/formula.C (LocalDispatch): Fixed behavior of greek
3076 * src/mathed/math_symbols.C (math_insert_greek): Changed to use
3077 LocalDispatch(..,LFUN_SELFINSERT,..) instead of math_insert_symbol().
3078 Also changed the prototype to "bool math_insert_greek(char)".
3080 2000-07-19 Lars Gullik Bjønnes <larsbj@lyx.org>
3082 * lots of files: apply the NEW_INSETS on all code that will not be
3083 needed when we move to use the new insets. Enable the define in
3084 lyxparagrah.h to try it.
3086 * src/insets/insettabular.C (cellstart): change to be a static
3088 (InsetTabular): initialize buffer in the initializer list.
3090 2000-07-19 Angus Leeming <a.leeming@ic.ac.uk>
3092 * src/frontends/xforms/FormPrint.[Ch] : moved #include
3093 form_print.h out of the header file. Replaced with forward
3094 declarations of the relevant struct.
3096 * src/frontends/xforms/FormPreferences.[Ch] : ditto for
3099 * src/commandtags.h: do not include "debug.h" which does not
3100 belong there. #include it in some other places because of this
3103 2000-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3105 * src/insets/insetcaption.C: add a couple "using" directives.
3107 * src/toolbar.C (add): get the help text directly from lyxaction.
3109 (setPixmap): new function. Loads from disk and sets a pixmap on a
3110 botton; the name of the pixmap file is derived from the command
3113 * src/toolbar.h: remove members isBitmap and pixmap from
3116 * lib/images/*.xbm *_bw.xpm: remove (not used any more).
3117 * lib/images/: move many files from images/banner.xpm.
3119 * src/lyx_gui.C (create_forms): read banner pixmap from file.
3121 * src/lyx_gui.C (create_forms): remove TWO_COLORS_ICONS support.
3122 * src/toolbar.C: ditto.
3123 * configure.in: ditto.
3124 * INSTALL: document.
3126 * src/spellchecker.C (ShowSpellChecker): use CancelCloseCB when
3127 the spellchecker popup is closed from the WM.
3129 2000-07-19 Juergen Vigna <jug@sad.it>
3131 * src/insets/insetfloat.C (Write): small fix because we use the
3132 insetname for the type now!
3134 2000-07-18 Angus Leeming <a.leeming@ic.ac.uk>
3136 * src/frontends/xforms/forms/form_citation.fd: object sizes are
3139 * src/frontends/Dialogs.h: removed hideCitation signal
3141 * src/insets/insetcite.h: added hide signal
3143 * src/insets/insetcite.C (~InsetCitation): emits new signal
3144 (getScreenLabel): "intelligent" label should now fit on the screen!
3146 * src/frontends/xforms/FormCitation.[Ch] (hideInset): removed
3148 * src/frontends/xforms/FormCitation.C (showInset): connects
3149 hide() to the inset's hide signal
3150 (show): modified to use fl_set_object_position rather than
3151 fl_set_object_geometry wherever possible
3153 2000-07-18 Lars Gullik Bjønnes <larsbj@lyx.org>
3155 * src/insets/lyxinset.h: add caption code
3157 * src/insets/insetfloat.C (type): new method
3159 * src/insets/insetcaption.C (Write): new method
3161 (LyxCode): new method
3163 * src/text2.C (SetCounter): revert Jürgens code, but use his idea
3164 to get it right together with using the FloatList.
3166 * src/commandtags.h: add LFUN_INSET_CAPTION
3167 * src/lyxfunc.C (Dispatch): handle it
3169 * src/buffer.C (parseSingleLyXformat2Token): add code to read a
3172 * src/Variables.[Ch]: make expand take a const reference, remove
3173 the destructor, some whitespace changes.
3175 * src/LyXAction.C (init): add caption-inset-insert
3177 * src/FloatList.C (FloatList): update the default floats a bit.
3179 2000-07-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3181 * src/Variables.[Ch]: new files. Intended to be used for language
3182 specific strings (like \chaptername) and filename substitution in
3185 * src/trans.C (AddDeadkey): replace keyword "all" with "native" in
3187 * lib/kbd/american.kmap: update
3189 * src/trans_mgr.C (normalkey): do not test allowAccent anymore.
3191 * src/bufferparams.[Ch]: remove member allowAccents.
3193 * src/menus.C (ShowOptionsMenu): remove the LaTeX entry.
3195 * src/LaTeXLog.C: use the log_form.h header.
3196 * src/lyx_gui.C: ditto.
3197 * src/lyx_gui_misc.C: ditto.
3198 * src/lyxvc.h: ditto.
3200 * forms/log_form.fd: new file, created from latexoptions.fd. I
3201 kept the log popup and nuked the options form.
3203 * src/{la,}texoptions.[Ch]: removed.
3204 * src/lyx_cb.C (LaTeXOptions): ditto
3206 * src/lyx_gui.C (create_forms): do not handle the
3207 fd_latex_options form.
3209 2000-07-18 Juergen Vigna <jug@sad.it>
3211 * src/insets/insetfloat.C (InsetFloat): use setInsetName to set the
3212 name of the inset so that it can be requested outside (text2.C).
3214 * src/text2.C (SetCounter): modified so it sees insetfloat for caption
3217 2000-07-17 Lars Gullik Bjønnes <larsbj@lyx.org>
3219 * src/mathed/formula.h (ConvertFont): constify
3221 * src/mathed/formula.C (Read): add warning if \end_inset is not
3222 found on expected place.
3224 * src/insets/lyxinset.h (ConvertFont): consify
3226 * src/insets/insetquotes.C (ConvertFont): constify
3227 * src/insets/insetquotes.h: ditto
3229 * src/insets/insetinfo.h: add labelfont
3231 * src/insets/insetinfo.C (InsetInfo): set the labelfont
3232 (ascent): use labelfont
3236 (Write): make .lyx file a bit nicer
3238 * src/insets/insetfloat.C (Write): simplify somewhat...
3239 (Read): add warning if arg is not found
3241 * src/insets/insetcollapsable.C: add using std::max
3242 (Read): move string token and add warning in arg is not found
3243 (draw): use std::max to get the right ty
3244 (getMaxWidth): simplify by using std::max
3246 * src/insets/insetsection.h: new file
3247 * src/insets/insetsection.C: new file
3248 * src/insets/insetcaption.h: new file
3249 * src/insets/insetcaption.C: new file
3251 * src/insets/inset.C (ConvertFont): constify signature
3253 * src/insets/Makefile.am (libinsets_la_SOURCES): add
3254 insetcaption.[Ch] and insetsection.[Ch]
3256 * src/layout.h: remove LABEL_FIRST_COUNTER from enum, change all
3257 uses to use LABEL_COUNTER_CHAPTER instead.
3258 * src/text2.C (SetCounter): here
3260 * src/counters.h: new file
3261 * src/counters.C: new file
3262 * src/Sectioning.h: new file
3263 * src/Sectioning.C: new file
3265 * src/Makefile.am (lyx_SOURCES): add Sectioning.[hC] and counters.[Ch]
3267 2000-07-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3269 * lib/Makefile.am (listerrors): build-listerrors is in ${srcdir},
3272 * src/paragraph.[Ch] (SimpleTeXSpecialChars): fix the definition of
3275 2000-07-17 Juergen Vigna <jug@sad.it>
3277 * src/tabular.C (Validate): check if array-package is needed.
3278 (SetVAlignment): added support for vertical alignment.
3279 (SetLTFoot): better support for longtable header/footers
3280 (Latex): modified to support added features.
3282 * src/LaTeXFeatures.[Ch]: added array-package.
3284 2000-07-17 R. Lahaye <lahaye@postech.ac.kr>
3286 * src/lyx_gui.C (LyXGUI): make sure that the height is large
3289 2000-07-17 Kayvan Sylvan <ksylvan@synopsys.com>
3291 * configure.in: do not forget to put a space after -isystem.
3293 2000-07-10 Dekel Tsur <dekel@math.tau.ac.il>
3295 * lib/kbd/arabic.kmap: a few fixes.
3297 2000-07-16 Lars Gullik Bjønnes <larsbj@lyx.org>
3299 * some whitespace chagnes to a number of files.
3301 * src/support/DebugStream.h: change to make it easier for
3302 doc++ to parse correctly.
3303 * src/support/lyxstring.h: ditto
3305 * src/mathed/math_utils.C (compara): change to have only one
3307 (MathedLookupBOP): change because of the above.
3309 * src/mathed/math_delim.C (math_deco_compare): change to have only
3311 (search_deco): change becasue of the above.
3313 * src/insets/insettabular.C (DrawCellSelection): use std::swap
3314 instead of manually coded one.
3316 * src/insets/insetquotes.C (Read): read the \end_inset too
3318 * src/insets/insetlatex.h: remove file
3319 * src/insets/insetlatex.C: remove file
3321 * src/insets/insetindex.[Ch] (InsetPrintIndex): remove default
3323 (InsetPrintIndex): remove destructor
3325 * src/insets/insetinclude.h: remove default constructor
3327 * src/insets/insetfloat.C: work to make it work better
3329 * src/insets/inseterror.[Ch] (InsetError): remove default constructor
3331 * src/insets/insetcite.h (InsetCitation): remove default constructor
3333 * src/insets/insetbutton.[Ch] (InsetButton): remove default constructor
3335 * src/text.C (GetColumnNearX): comment out some currently unused code.
3337 * src/paragraph.C (writeFile): move some initializations closer to
3339 (CutIntoMinibuffer): small change to use new matchIT operator
3343 (InsertInset): ditto
3346 (InsetIterator): ditto
3347 (Erase): small change to use new matchFT operator
3349 (GetFontSettings): ditto
3350 (HighestFontInRange): ditto
3353 * src/lyxparagraph.h: some chars changed to value_type
3354 (matchIT): because of some stronger checking (perhaps too strong)
3355 in SGI STL, the two operator() unified to one.
3358 * src/lyxfunc.C (Dispatch): code to insert InsetFloat improved
3360 * src/buffer.C (parseSingleLyXformat2Token): static string to hold
3361 the last inset read added
3362 (parseSingleLyXformat2Token): some more (future) compability code added
3363 (parseSingleLyXformat2Token): warning about solitary \end_inset added
3364 (parseSingleLyXformat2Token): set last_inset_read
3365 (parseSingleLyXformat2Token): more code to read new "Float" correctly
3366 (parseSingleLyXformat2Token): don't double intializw string next_token
3368 * src/TextCache.C (text_fits::operator()): add const's to the signature
3369 (has_buffer::operator()): ditto
3371 * src/Floating.h: add some comments on the class
3373 * src/FloatList.[Ch] (typeExist): new method
3376 * src/BackStack.h: added default constructor, wanted by Gcc.
3378 2000-07-14 Juergen Vigna <jug@sad.it>
3380 * src/insets/insettext.C (clear): fixed for multiple paragraps/layouts.
3382 * src/frontends/xforms/forms/form_tabular.fd: updated a bit.
3384 * src/insets/insettabular.C (resizeLyXText): need this to be able to
3385 do a redraw when the window is resized!
3386 (LocalDispatch): small fix so LFUN_TAB works only with locked_inset.
3388 * src/insets/insettext.C (resizeLyXText): added function to correctly
3389 being able to resize the LyXWindow.
3391 * src/table.C (Read): fixed read on DOS-lyx-file (lf-lr)
3393 2000-07-13 Angus Leeming <a.leeming@ic.ac.uk>
3395 * src/frontends/Dialogs.h (hideCitation) : new signal to prevent
3396 crashes when closing dialog to a deleted inset.
3398 * src/insets/insetcite.[Ch] (Edit) : the return of this former
3399 method! Now similar to other insets.
3401 2000-07-13 Juergen Vigna <jug@sad.it>
3403 * src/text.C (GetVisibleRow): fixed clearing of rows with insets!
3405 * lib/examples/Literate.lyx: small patch!
3407 * src/insets/insetbib.C (Read): added this function because of wrong
3408 Write (without [begin|end]_inset).
3410 2000-07-11 Juergen Vigna <jug@sad.it>
3412 * src/BufferView2.C (open_new_inset): changed to a bool returnvalue
3413 as the insertInset could not be good!
3415 * src/screen.C (ToggleSelection): fixed toggle selection bug as
3416 the bool param should not be last.
3418 2000-07-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3420 * sigc++/configure.in: fix bug in threading-related code (Yes, I
3421 did submit that to Karl).
3423 * configure.in: use -isystem instead of -I for X headers. This
3424 fixes a problem on solaris with a recent gcc;
3425 put the front-end code after the X detection code;
3426 configure in sigc++ before lib/
3428 * src/lyx_main.C (commandLineHelp): remove -display from command
3431 2000-07-09 Kayvan A. Sylvan <kayvan@sylvan.com>
3433 * lib/Makefile.am: added lib/build-listerrors to DIST tarfile.
3434 Also put in Makefile rules for building the ``listerrors''
3435 program for parsing errors from literate programs written in LyX.
3437 * lib/build-listerrors: Added small shell script as part of compile
3438 process. This builds a working ``listerrors'' binary if noweb is
3439 installed and either 1) the VNC X server is installed on the machine,
3440 or 2) the user is compiling from within a GUI. The existence of a GUI
3441 is necessary to use the ``lyx --export'' feature for now. This
3442 hack can be removed once ``lyx --export'' no longer requires a GUI to
3445 2000-07-09 Bernard Michael Hurley <bernardh@westherts.ac.uk>
3447 * lib/examples/Literate.lyx, src/Literate.[Ch]: Error messages are
3448 now passed back correctly from gcc and placed "under" error
3449 buttons in a Literate LyX source.
3451 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
3453 * src/text.C (GetColumnNearX): Better behavior when a RTL
3454 paragraph is ended by LTR text.
3456 * src/text2.C (SetCurrentFont,CursorLeftIntern,CursorRightIntern):
3459 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
3461 * src/WorkArea.C (request_clipboard_cb): Set clipboard_read to
3462 true when clipboard is empty.
3464 2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
3466 * text.C (Backspace): Prevent rebreaking of a row if it is the last
3467 row of the paragraph.
3468 (SetHeightOfRow): Call to PrepareToPrint with 7th argument = false
3469 to prevent calculation of bidi tables
3471 2000-07-07 Juergen Vigna <jug@sad.it>
3473 * src/screen.C (ToggleSelection): added y_offset and x_offset
3476 * src/insets/insettext.C (InsetMotionNotify): fixed selection with
3479 * src/text.C (GetVisibleRow): fixed selection drawing in insets.
3481 * src/insets/insettext.C: fixed Layout-Display!
3483 2000-07-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3485 * configure.in: add check for strings.h header.
3487 * src/spellchecker.C: include <strings.h> in order to have a
3488 definition for bzero().
3490 2000-07-07 Juergen Vigna <jug@sad.it>
3492 * src/insets/insettext.C (draw): set the status of the bv->text to
3493 CHANGED_IN_DRAW if top_x changed and so a reinit is necessary.
3495 * src/screen.C (DrawOneRow):
3496 (DrawFromTo): redraw the actual row if something has changed in it
3499 * src/text.C (draw): call an update of the toplevel-inset if something
3500 has changed inside while drawing.
3502 * src/lyxtext.h: added CHANGED_IN_DRAW status.
3504 2000-07-06 Angus Leeming <a.leeming@ic.ac.uk>
3506 * src/insets/insetbib.[Ch] (callback) new method, moving callback
3507 processing inside class.
3509 * src/insets/insetindex.[Ch] (callback) new method, moving callback
3510 processing inside class.
3512 * src/insets/insetindex.h new struct Holder, consistent with other
3515 * src/insets/insetcite.[Ch] and elsewhere: stripped out xforms
3516 citation dialog from main code and placed it in src/frontends/xforms.
3517 Dialog launched through signals instead of callbacks
3519 2000-07-06 R. Lahaye <lahaye@postech.ac.kr>
3521 * lyx.man: update the options description.
3523 2000-07-05 R. Lahaye <lahaye@postech.ac.kr>
3525 * src/lyx_gui.C src/lyx_main.C: improve the -geometry support,
3526 handle neg values, set min width to 590, add doc about -display
3528 2000-07-05 Juergen Vigna <jug@sad.it>
3530 * src/insets/lyxinset.h: changed Painter & in ascent(), descent()
3531 calls to BufferView *.
3533 * src/insets/insettext.C (checkAndActivateInset): small fix non
3534 HIGHLY_EDITABLE insets should not be entered by cursor-move-over!
3536 * src/insets/insetcommand.C (Read): Fixed as insets should read till
3537 their \end_inset token!
3539 2000-07-04 edscott <edscott@imp.mx>
3541 * src/lyxrc.C, src/lyxrc.h, src/BufferView_pimpl.C,
3542 lib/lyxrc.example: added option \wheel_jump
3544 2000-07-04 R. Lahaye <lahaye@postech.ac.kr>
3546 * src/lyx_gui.C src/lyx_main.C: add support for -geometry, and
3547 remove support for -width,-height,-xpos and -ypos.
3549 2000-07-01 Dekel Tsur <dekel@math.tau.ac.il>
3551 * src/encoding.[Ch]: New files.
3553 * src/painter.C (text(int,int,XChar2b const *,...)): New method.
3554 (text): Call to the underline() method only when needed.
3556 * src/font.C (XTextWidth16,width(XChar2b const *,...)): New methods.
3558 * src/buffer.C (makeLaTeXFile): Compute automatically the input
3559 encoding(s) for the document.
3561 * src/bufferparams.C (BufferParams): Changed default value of
3564 * src/language.C (newLang): Removed.
3565 (items[]): Added encoding information for all defined languages.
3567 * src/lyx_gui.C (create_forms): Added "auto" option to the input
3568 encoding choice button.
3570 * src/lyxrc.h (font_norm_type): New member variable.
3571 (set_font_norm_type): New method.
3573 * src/paragraph.C (TeXOnePar): Put "\inputencoding{}" between
3574 paragraphs with different encodings.
3576 * src/text.C (is_arabic, is_nikud, TransformChar): Moved to encoding.C
3577 (TransformChar): Changed to work correctly with Arabic points.
3578 (draw): Added support for drawing Arabic points.
3579 (draw): Removed code for drawing underbars (this is done by
3582 * src/support/textutils.h (IsPrintableNonspace): New function.
3584 * src/BufferView_pimpl.h: Added "using SigC::Object".
3585 * src/LyXView.h: ditto.
3587 * src/insets/insetinclude.h (include_label): Changed to mutable.
3589 2000-07-04 Lars Gullik Bjønnes <larsbj@lyx.org>
3591 * src/mathed/math_iter.h: remove empty destructor
3593 * src/mathed/math_cursor.h: remove empty destructor
3595 * src/insets/lyxinset.h: add THEOREM_CODE
3597 * src/insets/insettheorem.[Ch]: new files
3599 * src/insets/insetminipage.C: (InsertInset): remove
3601 * src/insets/insetmarginal.C: inherit from InsetFootLike instead
3603 (InsertInset): remove
3605 * src/insets/insetlist.C: (InsertList): remove
3607 * src/insets/insetfootlike.[Ch]: new files
3609 * src/insets/insetfoot.C: inherit from InsetFootLike instead of
3612 (InsertInset): ditto
3614 * src/insets/insetert.C: remove include Painter.h, reindent
3615 (InsertInset): move to header
3617 * src/insets/insetcollapsable.h: remove explicit from default
3618 contructor, remove empty destructor, add InsertInset
3620 * src/insets/insetcollapsable.C (InsertInset): new func
3622 * src/insets/Makefile.am (libinsets_la_SOURCES): add new files
3624 * src/vspace.h: add explicit to constructor
3626 * src/paragraph.C (SimpleTeXSpecialChars): use \, instead of
3627 \textcompwordmark, please test this.
3629 * src/lyxrc.C: set ascii_linelen to 65 by default
3631 * src/lyxfunc.C (Dispatch): handle LFUN_INSET_THEOREM
3633 * src/commandtags.h: add LFUN_INSET_THEOREM
3635 * src/buffer.C (parseSingleLyXformat2Token): handle insettheorem
3636 (makeLinuxDocFile): remove _some_ of the nice logic
3637 (makeDocBookFile): ditto
3639 * src/Painter.[Ch]: (~Painter): removed
3641 * src/LyXAction.C (init): entry for insettheorem added
3643 * src/LaTeX.C: get rid of the all_files array, and the TEX_FILES
3645 (deplog): code to detect files generated by LaTeX, needs testing
3648 2000-07-03 Lars Gullik Bjønnes <larsbj@lyx.org>
3650 * src/FloatList.[Ch]: moved inlines out of line to FloatList.C
3652 2000-07-02 Lars Gullik Bjønnes <larsbj@lyx.org>
3654 * src/LaTeX.C (deplog): Add a check for files that are going to be
3655 created by the first latex run, part of the project to remove the
3658 * src/LaTeX.[Ch]: Patch from Baruch to add hebrew table of
3659 contents to the extension list.
3661 2000-07-04 Juergen Vigna <jug@sad.it>
3663 * src/text.C (NextBreakPoint): added support for needFullRow()
3665 * src/insets/lyxinset.h: added needFullRow()
3667 * src/insets/insetcollapsable.C: redone now this uses a text-inset
3670 * src/insets/insettext.C: lots of changes for update!
3672 2000-07-03 Angus Leeming <a.leeming@ic.ac.uk>
3674 * src/LaTeXFeatures.h: add a missing std:: qualifier.
3676 2000-07-02 José Abílio Matos <jamatos@fep.up.pt>
3678 * src/insets/insetinclude.C (InsetInclude): fixed
3679 initialization of include_label.
3680 (unique_id): now returns a string.
3682 2000-07-01 José Abílio Matos <jamatos@fep.up.pt>
3684 * src/LaTeXFeatures.h: new member IncludedFiles, for
3685 a map of key, included file name.
3687 * src/LaTeXFeatures.C (getIncludedFiles): returns a string
3688 with the included files for inclusion in SGML preamble,
3689 i. e., linuxdoc and docbook.
3692 * src/buffer.C (makeLinuxDocFile): takes two new arguments,
3693 nice (is the generated linuxdoc code to be exported?), that
3694 allows to remove column, and only_body that will be true for
3695 slave documents. Insets are allowed inside SGML font type.
3696 New handling of the SGML preamble for included files.
3697 (makeDocBookFile): the same for docbook.
3699 * src/insets/insetinclude.h:
3700 * src/insets/insetinclude.C (Validate): keeps a list of included files.
3702 (DocBook): new export methods.
3704 * src/lyx_cb.C: adjust to the new calling sequence for makeLinuxDocFile
3705 and makeDocBookFile.
3707 * src/lyx_main.C (easyParse): accept linuxdoc and docbook as
3708 formats to export with command line argument -x.
3710 2000-06-29 Juergen Vigna <jug@sad.it>
3712 * src/mathed/formula.C (LocalDispatch): changed only-cursor-movements
3713 to return DISPATCHED_NOUPDATE so that a it does not redraw the inset!
3715 * src/text.C (GetVisibleRow): added 'bool cleared' parameter as the
3716 region could already been cleared by an inset!
3718 2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3720 * src/BufferView_pimpl.h: remove member variables lyx_focus and
3723 * src/BufferView_pimpl.C (Pimpl): delete init of work_area_focus
3725 (cursorToggle): remove special handling of lyx focus.
3727 2000-06-28 Juergen Vigna <jug@sad.it>
3729 * src/text.C (GetVisibleRow): fixed clearing of text if rowHeight >
3732 2000-06-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3734 * src/insets/insetindex.C (Edit): add a callback when popup is
3737 * src/insets/insettext.C (LocalDispatch):
3738 * src/insets/insetmarginal.h:
3739 * src/insets/insetlist.h:
3740 * src/insets/insetfoot.h:
3741 * src/insets/insetfloat.h:
3742 * src/insets/insetert.h: add a missing std:: qualifier.
3744 2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
3746 * src/support/lyxsum.C (sum): '\0' teminate file read when using
3749 * src/insets/lyxinset.h: add FLOAT_CODE and MINIPAGE_CODE
3751 * src/insets/insettext.C (Read): remove tmptok unused variable
3752 (LocalDispatch): add not working LFUN_PARAGRAPH_SPACING
3753 (InsertInset): change for new InsetInset code
3755 * src/insets/insettext.h: add TEXT inline method
3757 * src/insets/insettext.C: remove TEXT macro
3759 * src/insets/insetmarginal.C (Write): new method
3760 (Latex): change output slightly
3762 * src/insets/insetfoot.C (Write): new method
3763 (Latex): change output slightly (don't use endl when no need)
3765 * src/insets/insetert.C (Write): new method
3767 * src/insets/insetcollapsable.h: make button_length, button_top_y
3768 and button_bottm_y protected.
3770 * src/insets/insetcollapsable.C (Write): simplify code by using
3771 tostr. Also do not output the float name, the children class
3772 should to that to get control over own arguments
3774 * src/insets/insetfloat.[Ch] src/insets/insetlist.[Ch]
3775 src/insets/insetminipage.[Ch]:
3778 * src/insets/Makefile.am (libinsets_la_SOURCES): add new files
3780 * src/lyxfunc.C (Dispatch): cases for new insets/commands
3782 * src/Makefile.am (lyx_SOURCES): add the new files
3784 * src/LyXAction.C (init): add LFUN_INSET_MARGINAL,
3785 LFUN_INSET_MINIPAGE, LFUN_INSET_FLOAT, LFUN_INSET_LIST
3786 * src/commandtags.h: ditto
3788 * src/LaTeXFeatures.h: add a std::set of used floattypes
3790 * src/LaTeXFeatures.C (getPackages): add basic support for float.sty
3792 * src/FloatList.[Ch] src/Floating.h: new files
3794 * src/CutAndPaste.C (SwitchLayoutsBetweenClasses): change call to
3796 * src/lyx_cb.C (TableApplyCB): ditto
3798 * src/text2.C: ditto
3799 * src/buffer.C (SimpleLinuxDocOnePar): ditto
3800 (parseSingleLyXformat2Token): ditto + add code for
3801 backwards compability for old float styles + add code for new insets
3803 * src/lyxparagraph.[Ch] (InsertChar(size_type, char, LyXFont)): new
3805 (InsertInset(size_type, Inset *, LyXFont)): new method
3806 (InsetChar(size_type, char)): changed to use the other InsetChar
3807 with a LyXFont(ALL_INHERIT).
3808 (InsetInset(size_type, Inset*)): changed to use InsetChar to
3809 insert the META_INSET.
3811 * sigc++/thread.cc (Privete<int>::operator int&): move definition
3813 * sigc++/thread.h (Threads): from here
3815 * sigc++/scope.cc (ScopeIterator_::ScopeIterator_): move
3816 definition out of line
3817 * sigc++/scope.h: from here
3819 2000-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3821 * src/lyxrc.C (read): make sure the .kmap files exist when a keymap
3822 is specified (adapted from a patch from edscott <edscott@imp.mx>).
3824 * Makefile.am (bindist): new target.
3826 * INSTALL: add instructions for doing a binary distribution.
3828 * development/tools/README.bin.example: update a bit.
3830 2000-06-26 Lior Silberman <slior@math.huji.ac.il>
3833 * lib/lyxrc.example: new lyxrc tag \set_color.
3835 * src/lyxfunc.C (Dispatch):
3836 * src/commandtags.h:
3837 * src/LyXAction.C: new lyxfunc "set-color".
3839 * src/LColor.[Ch] (setColor): new method to set colors from a lyxname
3840 and an x11name given as strings.
3842 * src/ColorHandler.[Ch] (updateColor): new method. Updates the GC
3843 cache when a color is changed.
3845 2000-06-26 Juergen Vigna <jug@sad.it>
3847 * src/lyxrow.C (width): added this functions and variable.
3849 * src/insets/insetcite.C (create_form_citation_form): some Gravity
3852 * src/text.C (SetHeightOfRow): fixed calcualting of width.
3854 2000-06-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3856 * images/undo_bw.xpm: new icon.
3857 * images/redo_bw.xpm: ditto.
3859 * configure.in (INSTALL_SCRIPT): change value to
3860 ${INSTALL} to avoid failures of install-script target.
3861 * lib/reLyX/configure.in (INSTALL_SCRIPT): ditto
3863 * src/BufferView.h: add a magic "friend" declaration to please
3866 2000-06-23 Angus Leeming <a.leeming@ic.ac.uk>
3868 * forms/cite.fd: modified to allow resizing without messing
3871 * src/insetcite.C: Uses code from cite.fd almost without
3873 User can now resize dialog in the x-direction.
3874 Resizing the dialog in the y-direction is prevented, as the
3875 code does this intelligently already.
3877 2000-06-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3879 * INSTALL: remove obsolete entry in "problems" section.
3881 * lib/examples/sl_*.lyx: update of the slovenian examples.
3883 * src/support/FileInfo.[Ch] (getBlockSize): remove.
3885 2000-06-23 Juergen Vigna <jug@sad.it>
3887 * src/lyxtext.h: added a 'cleared' flag to draw() function.
3889 * src/buffer.C (resize): delete the LyXText of textinsets.
3891 * src/paragraph.C (SetInsetOwner): set the owner in the insets too.
3893 * src/insets/lyxinset.h: added another parameter 'cleared' to
3894 the draw() function.
3896 * src/lyxfunc.C (processKeyEvent): move cursor to the right of the
3897 unlocking inset in inset.
3899 2000-06-22 Juergen Vigna <jug@sad.it>
3901 * src/lyxscreen.h: added some y_offset/x_offset parameters for drawings
3902 of insets and moved first to LyXText.
3904 * src/mathed/formulamacro.[Ch]:
3905 * src/mathed/formula.[Ch]: changed prototype of draw() and GetCursorPos
3907 2000-06-21 Juergen Vigna <jug@sad.it>
3909 * src/text.C (GetVisibleRow): look if I should clear the area or not
3910 using Inset::doClearArea() function.
3912 * src/insets/lyxinset.h: added doClearArea() function and
3913 modified draw(Painter &, ...) to draw(BufferView *, ...)
3915 * src/text2.C (UpdateInset): return bool insted of int
3917 2000-06-20 Dekel Tsur <dekel@math.tau.ac.il>
3919 * src/lyx_gui.C (create_forms): Add "Reset" option to the language
3920 combox in the character popup
3922 * src/lyx_cb.C (UserFreeFont): Add argument to the method:
3923 BufferParams const & params
3925 2000-06-20 Juergen Vigna <jug@sad.it>
3927 * src/insets/insettext.C (SetParagraphData): set insetowner on
3930 2000-06-21 Lars Gullik Bjønnes <larsbj@lyx.org>
3932 * src/Timeout.[Ch]: Change to use signals instead of callbacks.
3933 * src/LyXView.h (struct FD_form_main): remove, LyXView inherits
3935 (form_main_): remove
3937 * src/LyXView.C (LyXView_AutosaveTimerCB): remove
3938 (create_form_form_main): remove FD_form_main stuff, connect to
3939 autosave_timeout signal
3941 * src/LyXView.[Ch] (getMainForm): remove
3942 (UpdateTimerCB): remove
3943 * src/BufferView_pimpl.h: inherit from SigC::Object
3945 * src/BufferView_pimpl.C (Pimpl): connect to cursor_timeout with
3946 signal instead of callback
3948 * src/BufferView.[Ch] (cursorToggleCB): remove
3950 2000-06-20 Lars Gullik Bjønnes <larsbj@lyx.org>
3952 * src/BufferView_pimpl.C: changes because of the one below
3954 * src/screen.[Ch]: Made the lyxscreen take LyXText as argument
3955 instead of storing a pointer to a LyXText.
3957 * src/buffer.[Ch]: apply Baruch's remove isdviclean patch.
3959 2000-06-10 Dekel Tsur <dekel@math.tau.ac.il>
3961 * src/lyxparagraph.h
3963 * src/paragraph.C: Changed fontlist to a sorted vector.
3965 2000-06-19 Juergen Vigna <jug@sad.it>
3967 * src/BufferView.h: added screen() function.
3969 * src/insets/insettext.C (LocalDispatch): some selection code
3972 * src/vspace.C (nextToken): use stringfunctions instead of sscanf.
3974 * src/insets/insettext.C (SetParagraphData):
3976 (InsetText): fixes for multiple paragraphs.
3978 2000-06-17 Kayvan A. Sylvan <kayvan@sylvan.com>
3980 * development/lyx.spec.in: Call configure with ``--without-warnings''
3981 to work around a bug with the Makefiles when doing ``make lyxrpm''.
3982 This should be fine, however, since we generally don't want to be
3983 verbose when making an RPM.
3985 2000-06-16 Dekel Tsur <dekel@math.tau.ac.il>
3987 * lib/scripts/fig2pstex.py: New file
3989 2000-06-16 Juergen Vigna <jug@sad.it>
3991 * src/insets/insettabular.C (UpdateLocal):
3992 * src/insets/insettext.C (UpdateLocal): fixed mark_dirty problem.
3993 (LocalDispatch): Changed all functions to use LyXText.
3995 2000-06-15 Juergen Vigna <jug@sad.it>
3997 * src/text.C (SetHeightOfRow): call inset::update before requesting
4000 * src/insets/insettext.C (update):
4001 * src/insets/insettabular.C (update): added implementation
4003 * src/insets/lyxinset.h: added update function
4005 2000-06-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4007 * src/text.C (SelectNextWord): protect against null pointers with
4008 old-style string streams. (fix from Paul Theo Gonciari
4011 * src/cite.[Ch]: remove erroneous files.
4013 * lib/configure.m4: update the list of created directories.
4015 * src/lyxrow.C: include <config.h>
4016 * src/lyxcursor.C: ditto.
4018 2000-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4020 * lib/examples/decimal.lyx: new example file from Mike.
4022 * src/insets/ExternalTemplate.C (readTemplates): Use LibFileSearch()
4023 to find template definitions (from Dekel)
4025 * src/frontends/.cvsignore: add a few things.
4027 * src/frontends/xforms/input_validators.[ch]: remove C++ comments.
4029 * src/Timeout.C (TimeOut): remove default argument.
4031 * src/LyXView.C (LyXView_AutosaveTimerCB): this should not have
4034 * src/insets/ExternalTemplate.C: add a "using" directive.
4036 * src/lyx_main.h: remove the act_ struct, which seems unused
4039 2000-06-12 Lars Gullik Bjønnes <larsbj@lyx.org>
4041 * LyX Developers Meeting: All files changed, due to random C++ (by
4042 coincidence) code generator script.
4044 - external inset (cool!)
4045 - initial online editing of preferences
4046 - insettabular breaks insettext(s contents)
4048 - some DocBook fixes
4049 - example files update
4050 - other cool stuff, create a diff and look for yourself.
4052 2000-06-09 The Great LyX Application <lyx@localhost.localdomain>
4054 * src/insets/insettext.C (computeTextRows): if the maxWidth is
4055 -1 this is a non-line-breaking textinset.
4057 * src/insets/insettabular.C (GetMaxWidthOfCell): returns now -1
4058 if there is no width set.
4060 2000-06-10 Lars Gullik Bjønnes <larsbj@lyx.org>
4062 * Lots of files: Merged the dialogbase branch.
4064 2000-06-09 Allan Rae <rae@lyx.org>
4066 * src/xtl/, src/lyxfunc.[Ch], src/buffer.[Ch]: Removed XTL and
4067 and the Dispatch methods that used it.
4069 * src/frontends/Liason.[Ch]: replaced with a Liason namespace for
4070 access to functions formerly kept in Dispatch.
4072 2000-05-19 Allan Rae <rae@lyx.org>
4074 * src/PrinterParams.h, src/buffer.C, src/frontends/xforms/FormPrint.C:
4075 made to_page and count_copies integers again. from_page remains a
4076 string however because I want to allow entry of a print range like
4077 "1,4,22-25" using this field.
4079 * src/LyXAction.C: added action info and commands for buffer-print-xtl
4080 and printer-params-get. These aren't useful from the minibuffer but
4081 could be used by a script/LyXServer app provided it passes a suitable
4082 auto_mem_buffer. I guess I should take a look at how the LyXServer
4083 works and make it support xtl buffers.
4085 * sigc++/: updated to libsigc++-1.0.1
4087 * src/xtl/: updated to xtl-1.3.pl.11
4089 * forms/makefile, forms/fdfix.sh, forms/layout_forms.fd: Made sure
4090 those changes done to the files in src/ are actually recreated when
4091 they get regenerated. Please don't ever accept a patch that changes a
4092 dialog unless that patch includes the changes to the corresponding *.fd
4095 * src/lyx_cb.C, src/support/lstrings.[hC]: Moved Stephen Witt's
4096 stringOnlyContains, renamed it and generalised it.
4098 * lots-of-files: Rolled the "rae" branch over into the "dialogbase"
4099 branch. Removed the remaining old form_print code.
4101 2000-04-26 Allan Rae <rae@lyx.org>
4103 * ChangeLog, development/tools/lxtl.sh: D'oh! Got caught in the same
4104 trap I was trying to fix with the ID: fields in src/xtl/ :-)
4106 2000-04-25 Allan Rae <rae@lyx.org>
4108 * src/xtl/: Updated to incorporate Angus's two patches as well as mine
4109 against a base of xtl-1.3.pl.4
4111 * development/tools/lxtl.sh: fixed a couple of silly typos and now
4112 filter the Id: entries so they still show the xtl version number
4115 * src/support/lxtl.h: removed auto_mem_buffer which is now incorporated
4116 into the src/xtl code. Patch still pending with José (XTL)
4118 2000-04-24 Allan Rae <rae@lyx.org>
4120 * src/lyxfunc.[Ch] (Dispatch): Use a mem buffer as a parameter. This is
4121 both more generic and much safer. Use the new template functions.
4122 * src/buffer.[Ch] (Dispatch): ditto.
4124 * src/frontends/xforms/FormPrint.C (update): Use new template functions
4125 and mem buffer more intelligently. Also a little general cleanup.
4128 * configure.in (AC_OUTPUT): Extra stuff for xtl that I forgot.
4129 * development/tools/lxtl.sh: Ditto. Makefile.am + .cvsignore
4130 * src/xtl/Makefile.am: ditto.
4131 * src/xtl/.cvsignore: ditto.
4132 * src/Makefile.am: ditto.
4134 * src/PrinterParams.h: Removed the macros member functions. Added a
4135 testInvariant member function. A bit of tidying up and commenting.
4136 Included Angus's idea for fixing operation with egcs-1.1.2.
4138 * src/support/lxtl.h: Many changes. Added auto_mem_buffer -- a really
4139 cool expansion of XTL's mem_buffer to support automatic memory
4140 management within the buffer itself. Removed the various macros and
4141 replaced them with template functions that use either auto_mem_buffer
4142 or mem_buffer depending on a #define. The mem_buffer support will
4143 disappear as soon as the auto_mem_buffer is confirmed to be good on
4144 other platforms/compilers. That is, it's there so you've got something
4147 * src/xtl/objio.h: Changes to support auto_mem_buffer. This has
4148 effectively forked XTL. However I expect José will include my code
4149 into the next major release. Also fixed a memory leak.
4150 * src/xtl/text.h: ditto.
4151 * src/xtl/xdr.h: ditto.
4152 * src/xtl/giop.h: ditto.
4154 2000-04-16 Allan Rae <rae@lyx.org>
4156 * acinclude.m4, sigc++/acinclude.m4: Removed -- they're generated
4157 by autogen.sh and removed by maintainer-clean anyway.
4158 * .cvsignore, sigc++/.cvsignore: Support the above.
4160 * sigc++/.cvsignore: Forgot that retbind.h was generated.
4162 * src/buffer.C (Dispatch): Couldn't print a single page. Fixed.
4164 * src/frontends/xforms/FormPrint.[Ch]: Switched to C callbacks using
4165 macros, renamed static callback-target member functions to suit new
4166 scheme and made them public.
4167 * src/frontends/xforms/forms/form_print.fd: ditto.
4168 * src/frontends/xforms/forms/form_copyright.fd: ditto.
4170 * src/support/lxtl.h: small cleanup to use typedef instead of #define
4173 * src/xtl/: New directory containing a minimal distribution of XTL.
4174 This is XTL-1.3.pl.4.
4176 * development/tools/lxtl.sh: A script to generate the above mini-dist.
4178 2000-04-15 Allan Rae <rae@lyx.org>
4180 * development/tools/makeLyXsigc.sh: Remove the library version numbers
4182 * sigc++/: Updated to libsigc++-1.0.0
4184 2000-04-14 Allan Rae <rae@lyx.org>
4186 * src/frontends/xforms/xform_macros.h: Remove specific macros and just
4187 use the generic ones in future. I'll modify my conversion script.
4189 * src/frontends/xforms/FormCopyright.C: Reverse the earlier change.
4191 * src/lyx_gui_misc.[Ch]: Removed references to form_print.
4192 (CloseAllBufferRelatedDialogs): Renamed.
4193 (updateAllVisibleBufferRelatedDialogs): ditto. Added LaTeXLog
4195 * src/frontends/xforms/FormCopyright.C: Use the specific macros instead
4196 of the generic ones. These are the same ones my conversion script
4199 * src/PrinterParams.h: Allow you to print a range of odd or even pages.
4200 * src/frontends/xforms/FormPrint.C (apply, update): ditto+small cleanup
4201 * src/buffer.C (Dispatch): ditto
4203 * src/LyXView.C (LyXView): Use new signals instead of old hard coded
4204 functions for updating and hiding buffer dependent dialogs.
4205 * src/BufferView.C (buffer): ditto
4206 * src/buffer.C (setReadonly): ditto
4207 * src/lyxfunc.C (CloseBuffer): ditto
4209 * src/buffer.h: Take setReadonly() out of line so I don't have to include
4210 Dialogs.h, and hence all the SigC stuff, into every file that includes
4211 buffer.h. We also don't need to include lyx_gui_misc.h in everything.
4213 * src/BufferView2.C: reduce the number of headers included by buffer.h
4215 2000-04-11 Allan Rae <rae@lyx.org>
4217 * src/frontends/xforms/xform_macros.h: A small collection of macros
4218 for building C callbacks.
4220 * src/frontends/xforms/Makefile.am: Added above file.
4222 * src/frontends/xforms/FormCopyright.[Ch]: Revised the C callback
4223 scheme again. This time it should work for JMarc. If this is
4224 successful I'll revise my conversion script to automate some of this.
4225 The static member functions in the class also have to be public for
4226 this scheme will work. If the scheme works (it's almost identical to
4227 the way BufferView::cursorToggleCB is handled so it should work) then
4228 FormCopyright and FormPrint will be ready for inclusion into the main
4229 trunk immediately after 1.1.5 is released -- provided we're prepared
4230 for complaints about lame compilers not handling XTL.
4232 * src/support/lxtl.h: Switched to XDR_format instead of raw_format.
4234 2000-04-07 Allan Rae <rae@lyx.org>
4236 * config/lyxinclude.m4: A bit more tidying up (Angus)
4238 * src/LString.h: JMarc's <string> header fix
4240 * src/PrinterParams.h: Used string for most data to remove some
4241 ugly code in the Print dialog and avoid even uglier code when
4242 appending the ints to a string for output.
4244 * src/buffer.C (Dispatch): Added a couple of braces to fix an error
4245 and moved "default:" back to the end of switch statement. Cleaned
4246 up the printing so it uses the right function calls and so the
4247 "print to file" option actually puts the file in the right directory.
4249 * src/frontends/xforms/Dialogs.C: Added FormPrint (Angus).
4251 * src/frontends/xforms/FormPrint.C (PrintInputCB): moved input checking
4252 and Ok+Apply button control into a separate method: input (Angus).
4253 (input) Cleaned it up and improved it to be very thorough now.
4254 (All CB) static_cast used instead of C style cast (Angus). This will
4255 probably change again once we've worked out how to keep gcc-2.8.1 happy
4256 with real C callbacks.
4257 (update) add a few "default:" labels to switches. Egcs-1.1.2 seems to
4258 ignore some of the bool settings and has random numbers instead. Needs
4259 some more investigation. Added other input length checks and checking
4260 of file and printer names.
4262 * src/frontends/xforms/FormPrint.h: Removed pragma statement so it
4263 would link (Angus). Seems the old code doesn't compile with the pragma
4264 statement either. Separated callback entries from internal methods.
4266 * src/lyxfunc.C (Dispatch): LFUN_MENUPRINT calls new dialog (Angus).
4268 2000-03-17 Allan Rae <rae@lyx.org>
4270 * src/lyxfunc.[Ch] (isAvailable): This is only temporary. Do we really
4271 need it? Maybe it could go in Dialogs instead? I could make it a
4272 LFUN but you'd have to call Dispatch(int, int, char*) with dummy
4273 values to get the bool return value.
4274 (Dispatch): New overloaded method for xtl support.
4276 * src/frontends/xforms/FormCopyright.[Ch]: Modified to use a friendly
4277 extern "C" callback instead of static member functions. Hopefully,
4278 JMarc will be able to compile this. I haven't changed
4279 forms/form_copyright.fd yet. Breaking one of my own rules already.
4281 * src/commandtags.h: New xtl-based LFUN's no description in LyXAction
4282 because they aren't useful from the minibuffer. Maybe a LyXServer
4283 might want a help message though?
4285 * src/buffer.[Ch] (Dispatch): New overloaded method for xtl support.
4287 * config/lyxinclude.m4: Changes to g++ flags to suit compiling with
4288 xtl which needs both rtti and exceptions.
4290 * src/support/Makefile.am:
4291 * src/support/lxtl.h: New file. Some helper macros for using XTL.
4293 * src/frontends/xforms/input_validators.[ch]: input filters and
4294 validators. These conrol what keys are valid in input boxes.
4295 Use them and write some more. Much better idea than waiting till
4296 after the user has pressed Ok to say that the input fields don't make
4299 * src/frontends/xforms/Makefile.am:
4300 * src/frontends/xforms/forms/form_print.fd:
4301 * src/frontends/xforms/forms/makefile:
4302 * src/frontends/xforms/FormPrint.[Ch]: Ported previous print form to
4303 new scheme. Still have to make sure I haven't missed anything from
4304 the current implementation.
4306 * src/Makefile.am, src/PrinterParams.h: New data store.
4308 * other files: Added a couple of copyright notices.
4310 2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4312 * src/insets/insetbib.h: move Holder struct in public space.
4314 * src/frontends/include/DialogBase.h: use SigC:: only when
4315 SIGC_CXX_NAMESPACES is defined.
4316 * src/frontends/include/Dialogs.h: ditto.
4318 * sigc++/Makefile.am (%.h): use the autodected GNU m4.
4320 * src/frontends/xforms/FormCopyright.[Ch]: do not
4321 mention SigC:: explicitely.
4323 2000-03-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4325 * config/lyxinclude.m4 (LYX_USE_FRONTEND): move the code which
4326 deals with testing KDE in main configure.in
4327 * configure.in: ditto.
4329 2000-02-22 Allan Rae <rae@lyx.org>
4331 * Lots of files: Merged from HEAD
4333 * All Makefile.am (ETAGS_ARGS): use parameter that is also compatible
4334 with the etags shipped with SuSE-6.3 (fancier than gnu-etags).
4336 * autogen.sh: Fix JMarcs complaints by building a sigc++/acinclude.m4
4338 * sigc++/: new minidist.
4340 2000-02-14 Allan Rae <rae@lyx.org>
4342 * development/tools/makeLyXsigc.sh: Small fix for Makefile.am
4344 2000-02-08 Juergen Vigna <jug@sad.it>
4346 * src/frontends/kde/dlg/formcopyrightdialog.kdevdlg: the dialog data
4347 file for the buildin GUI builder of KDevelop of the copyright-dialog.
4349 * src/frontends/kde/lyxgui.kdevprj: I added this as I use KDevelop
4350 for this port and so it is much easier for other people to port
4351 dialogs in a common development environment.
4353 * src/frontends/kde/formcopyrightdialog_moc.C: needed MOC file for
4354 the QT/KDE implementation.
4356 * src/frontends/kde/Dialogs.C:
4357 * src/frontends/kde/FormCopyright.C:
4358 * src/frontends/kde/FormCopyright.h:
4359 * src/frontends/kde/Makefile.am:
4360 * src/frontends/kde/formcopyrightdialog.C:
4361 * src/frontends/kde/formcopyrightdialog.h:
4362 * src/frontends/kde/formcopyrightdialogdata.C: added this source-files
4363 for the kde support of the Copyright-Dialog.
4365 * src/frontends/Makefile.am (AUTOMAKE_OPTIONS): now uses @FRONTEND@
4366 subdir-substitution instead of hardcoded 'xforms' as we now have also
4369 * src/frontends/include/DialogBase.h (Object): just commented the
4370 label after #endif (nasty warning and I don't like warnings ;)
4372 * src/main.C (main): added KApplication initialization if using
4375 * src/lyx_gui.C (runTime): added support for multiple toolkit support.
4376 For now only the KDE event-loop is added if frontend==kde.
4378 * src/Makefile.am (lyx_DEPENDENCIES): added @FRONTEND_xxx@ support
4380 * configure.in: added support for the --with-frontend[=value] option
4382 * autogen.sh: added kde.m4 file to list of config-files
4384 * acconfig.h: added define for KDEGUI-support
4386 * config/kde.m4: added configuration functions for KDE-port
4388 * config/lyxinclude.m4: added --with-frontend[=value] option with
4389 support for xforms and KDE.
4391 2000-02-08 Allan Rae <rae@lyx.org>
4393 * all Makefile.am: Fixed up so the make targets dist, distclean,
4394 install and uninstall all work even if builddir != srcdir. Still
4395 have a new sigc++ minidist update to come.
4397 * config/lyxinclude.m4: Some more builddir!=srcdir fixes.
4399 2000-02-01 Allan Rae <rae@lyx.org>
4401 * config/lyxinclude.m4, development/tools/makeLyXsigc.sh:
4402 Many mods to get builddir != srcdir working.
4404 * sigc++/: Upgraded to 0.8.7. This includes many needed fixes both
4405 for building on NT and so we can do the builddir != srcdir stuff.
4407 2000-01-30 Allan Rae <rae@lyx.org>
4409 * sigc++/doc/*: Selected documentation for the libsigc++ mini dist.
4410 This will stay in "rae" branch. We probably don't really need it in
4411 the main trunk as anyone who wants to help programming it should get
4412 a full library installed also. So they can check both included and
4413 system supplied library compilation.
4415 * sigc++/*, sigc++/macros/*, config/sigc++.m4, config/lyxinclude.m4:
4416 Added a 'mini' distribution of libsigc++. If you feel the urge to
4417 change something in these directories - Resist it. If you can't
4418 resist the urge then you should modify the following script and rebuild
4419 the dist. LYX_WITH_SIGC in lyxinclude.m4 is the wrapper to make it
4420 all happen. Still uses a hacked version of libsigc++'s configure.in.
4421 I'm quite happy with the results. I'm not sure the extra work to turn
4422 the sigc++/configure.in into a few extra AC_DEFUNs in sigc++.m4 is
4423 worth the trouble and would probably lead to extra maintenance
4425 I haven't tested the following important make targets: install, dist.
4426 Not ready for prime time but very close. Maybe 1.1.5.
4428 * development/tools/makeLyXsigc.sh: A shell script to automatically
4429 generate our mini-dist of libsigc++. It can only be used with a CVS
4430 checkout of libsigc++ not a tarball distribution. It's well commented.
4431 This will end up as part of the libsigc++ distribution so other apps
4432 can easily have an included mini-dist. If someone makes mods to the
4433 sigc++ subpackage without modifying this script to generate those
4434 changes I'll be very upset!
4436 * src/frontends/: Started the gui/system indep structure.
4438 * src/frontends/include/Dialogs.h: Dialog container. All the Signal<>s
4439 to access the gui-indep dialogs are in this class. Much improved
4440 design compared to previous revision. Lars, please refrain from
4441 moving this header into src/ like you did with Popups.h last time.
4443 * src/frontends/include/DialogBase.h: Abstract base class for dialogs.
4445 * src/frontends/xforms/: Started the gui-indep system with a single
4446 dialog: FormCopyright. Initial testing of use of libsigc++ was very
4449 * src/frontends/xforms/forms: Repository for the xforms .fd files.
4450 Here you'll find a very useful makefile and automated fdfix.sh that
4451 makes updating dailogs a no-brainer -- provided you follow the rules
4452 set out in the README. I'm thinking about adding another script to
4453 automatically generate skeleton code for a new dialog given just the
4456 * src/commandtags.h, src/lyxfunc.C, src/menus.C:
4457 * src/credits.{Ch}, src/credits_form.{Ch}, forms/credits_form.fd:
4458 Made FormCopyright gui-indep and added a lyxfunc to get to it.
4460 2000-06-09 Lars Gullik Bjønnes <larsbj@lyx.org>
4462 * src/support/LSubstring.C (operator): simplify
4464 * src/lyxtext.h: removed bparams, use buffer_->params instead
4466 * src/lyxrow.h: make Row a real class, move all variables to
4467 private and use accessors.
4469 * src/lyxparagraph.h (getParLanguage): add BufferParamas as
4471 (isRightToLeftPar): ditto
4472 (ChangeLanguage): ditto
4473 (isMultiLingual): ditto
4476 (SimpleTeXOnePar): ditto
4477 (TeXEnvironment): ditto
4478 (GetEndLabel): ditto
4480 (SetOnlyLayout): ditto
4481 (BreakParagraph): ditto
4482 (BreakParagraphConservative): ditto
4483 (GetFontSettings): ditto
4485 (CopyIntoMinibuffer): ditto
4486 (CutIntoMinibuffer): ditto
4487 (PasteParagraph): ditto
4488 (SetPExtraType): ditto
4489 (UnsetPExtraType): ditto
4490 (DocBookContTableRows): ditto
4491 (SimpleDocBookOneTablePar): ditto
4493 (TeXFootnote): ditto
4494 (SimpleTeXOneTablePar): ditto
4495 (TeXContTableRows): ditto
4496 (SimpleTeXSpecialChars): ditto
4499 * src/lyxcursor.h: make LyXCursor a real class, move all variables
4500 to private and use accessors.
4502 * src/lyx_cb.C: remove char updatetimer, and all code that uses
4503 this, we did not use it anymore and has not been for ages. Just a
4504 waste of cpu cycles.
4506 * src/language.h: make Language a real class, move all variables
4507 to private and use accessors.
4509 * src/BufferView_pimpl.C (Pimpl): use new timer code.
4510 (create_view): remove
4511 (update): some changes for new timer
4512 (cursorToggle): use new timer
4513 (beforeChange): change for new timer
4515 * src/BufferView.h (cursorToggleCB): removed last paramter because
4518 * src/BufferView.C (C_BufferView_CursorToggleCB): removed
4519 (cursorToggleCB): change because of new timer code
4521 * lib/CREDITS: updated own mailaddress
4523 2000-06-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4525 * src/support/filetools.C (PutEnv): fix the code in case neither
4526 putenv() nor setenv() have been found.
4528 * INSTALL: mention the install-strip Makefile target.
4530 * src/LyXAction.C (init): make LFUN_BUILDPROG available in
4531 read-only documents.
4533 2000-06-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4535 * lib/reLyX/configure.in (VERSION): avoid using a previously
4536 generated reLyX wrapper to find out $prefix.
4538 * lib/examples/eu_adibide_lyx-atua.lyx:
4539 * lib/examples/eu_adibide_gordina.lyx: new examples for the Basque
4540 translation of the Tutorial (Dooteo)
4542 2000-06-06 Angus Leeming <a.leeming@ic.ac.uk>
4544 * forms/cite.fd: new citation dialog
4546 * src/insetcite.[Ch]: the new citation dialog is moved into
4549 * src/insetbib.C: InsetBibtex::getKeys() uses STL containers
4552 * src/insets/insetcommand.h: data members made private.
4554 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
4556 * LyX 1.1.5 released
4558 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
4560 * src/version.h (LYX_RELEASE): to 1.1.5
4562 * src/spellchecker.C (RunSpellChecker): return false if the
4563 spellchecker dies upon creation.
4565 2000-06-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4567 * lib/reLyX/reLyXmain.pl, lib/reLyX/LastLyX.pm: fix suffix of file
4568 in \include{} (from Tomasz Motylewski <motyl@stan.chemie.unibas.ch>)
4572 * lib/CREDITS: update entry for Martin Vermeer.
4574 2000-06-06 Dekel Tsur <dekel@math.tau.ac.il>
4576 * src/text.C (draw): Draw foreign language bars at the bottom of
4577 the row instead of at the baseline.
4579 * lib/examples/Minipage.lyx: Use the new multi-lingual support.
4581 2000-06-06 Lars Gullik Bjønnes <larsbj@lyx.org>
4583 * lib/bind/de_menus.bind: updated
4585 2000-06-05 Dekel Tsur <dekel@math.tau.ac.il>
4587 * forms/lyx.fd: Correct gravity for objects in form_toc and form_ref
4589 2000-06-05 Dekel Tsur <dekel@math.tau.ac.il>
4591 * src/menus.C (Limit_string_length): New function
4592 (ShowTocMenu): Limit the number of items/length of items in the
4595 * src/paragraph.C (String): Correct result for a paragraph inside
4598 2000-06-05 Lars Gullik Bjønnes <larsbj@lyx.org>
4600 * src/bufferlist.C (close): test of buf->getuser() == NULL
4602 2000-06-02 Dekel Tsur <dekel@math.tau.ac.il>
4604 * src/BufferView2.C (removeAutoInsets): Fix a bug:
4605 Do not call to SetCursor when the paragraph is a closed footnote!
4607 2000-06-01 Dekel Tsur <dekel@math.tau.ac.il>
4609 * src/insets/insetlabel.C (Edit): Mark buffer as dirty when a
4612 * src/text.C (SetCursor): Made the computation of cursor_vpos safer.
4614 2000-05-31 Dekel Tsur <dekel@math.tau.ac.il>
4617 * src/lyx_cb.C (RefSelectCB): Added "Go Back" button in the insert
4618 reference popup, that activates the reference-back action
4620 * src/menus.C (ShowRefsMenu): Added "Go Back" menu item.
4622 * src/menus.C (Add_to_refs_menu): Limit the size of each item in
4623 the menus. Also fixed a bug.
4625 * src/lyx_cb.C (updateAllVisibleBufferRelatedPopups): Do not close
4626 the math panels when switching buffers (unless new buffer is readonly).
4628 * src/BufferView.C (NoSavedPositions)
4629 * src/BufferView_pimpl.C (NoSavedPositions): New methods
4631 2000-06-01 Lars Gullik Bjønnes <larsbj@lyx.org>
4633 * src/lyx_cb.C (MakeLaTeXOutput): we run MakeLaTeXOutput regard
4634 less of dvi dirty or not.
4636 * src/trans_mgr.[Ch] (insert): change first parameter to string
4639 * src/chset.[Ch] (encodeString): add const to first parameter
4641 2000-05-31 Lars Gullik Bjønnes <larsbj@lyx.org>
4643 * src/support/lyxstring.C (begin): fix a "shared" string bug. use
4647 * src/LaTeX.C (deplog): better searching for dependency files in
4648 the latex log. Uses now regexps.
4650 * lib/layouts/stdlists.inc (lyxlist): fix the label to use \hfil
4651 instead of the box hack or \hfill.
4653 2000-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4655 * src/lyxfunc.C (doImportHelper): do not create the file before
4656 doing the actual import.
4657 (doImportASCIIasLines): create a new file before doing the insert.
4658 (doImportASCIIasParagraphs): ditto.
4660 * lib/lyxrc.example: remove mention of non-existing commands
4662 * lyx.man: remove mention of color-related switches.
4664 * src/lyxrc.C: remove RC_SELECTIONCOLOR and RC_BACKGROUNDCOLOR.
4666 * src/lyx_gui.C: remove all the color-related ressources, which
4667 are not used anymore.
4669 * src/lyx_gui_misc.C (WarnReadonly): use MakeDisplayPath on file
4672 2000-05-31 Dekel Tsur <dekel@math.tau.ac.il>
4674 * src/lyxrc.C (read): Add a missing break in the switch
4676 2000-05-30 Dekel Tsur <dekel@math.tau.ac.il>
4678 * src/text2.C (InsertStringA): Fix a bug with insertion into table
4680 * src/trans_mgr.C (insertVerbatim): Do not use insetquote when the
4683 2000-05-27 Dekel Tsur <dekel@math.tau.ac.il>
4685 * src/text.C (draw): draw bars under foreign language words.
4687 * src/LColor.[Ch]: add LColor::language
4689 2000-05-27 Dekel Tsur <dekel@math.tau.ac.il>
4691 * src/lyxcursor.h (boundary): New member variable
4693 * src/text.C (IsBoundary): New methods
4695 * src/text.C: Use the above for currect cursor movement when there
4696 is both RTL & LTR text.
4698 * src/text2.C: ditto
4700 * src/bufferview_funcs.C (ToggleAndShow): ditto
4702 2000-05-30 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4704 * src/text.C (DeleteLineForward): set selection to true to avoid
4705 that DeleteEmptyParagraphMechanism does some magic. This is how it
4706 is done in all other functions, and seems reasonable.
4707 (DeleteWordForward): do not jump over non-word stuff, since
4708 CursorRightOneWord() already does it.
4710 Remove the CHECK tag from DeleteLineForward, DeleteWordForward and
4711 DeleteWordBackward, since they seem safe to me (since selection is
4712 set to "true") DeleteEmptyParagraphMechanism does nothing.
4714 2000-05-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4716 * src/lyx_main.C (easyParse): simplify the code by factoring the
4717 part that removes parameters from the command line.
4718 (LyX): check wether wrong command line options have been given.
4720 2000-05-29 Lior Silberman <slior@math.huji.ac.il>
4722 * src/lyx_main.C : add support for specifying user LyX
4723 directory via command line option -userdir.
4725 2000-05-26 Dekel Tsur <dekel@math.tau.ac.il>
4727 * src/menus.C (Add_to_toc_menu): Limit the number of popups, and
4728 the number of items per popup.
4729 (Add_to_refs_menu): Ditto.
4731 2000-05-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4733 * src/lyxparagraph.h: renamed ClearParagraph() to
4734 StripLeadingSpaces() and moved it to paragraph.C. We pass the
4735 textclass as parameter, and do nothing if free_spacing is
4736 true. This fixes part of the line-delete-forward problems.
4738 * src/CutAndPaste.C (cutSelection): use StripLeadingSpaces.
4739 (pasteSelection): ditto.
4740 (SwitchLayoutsBetweenClasses): more translatable strings.
4742 * src/text2.C (CutSelection): use StripLeadingSpaces.
4743 (PasteSelection): ditto.
4744 (DeleteEmptyParagraphMechanism): ditto.
4746 2000-05-26 Juergen Vigna <jug@sad.it>
4748 * src/TabularLayout.C (TabularOptionsCB): removed delete-table as this
4749 is not needed in tabular insets.
4751 * src/insets/insettabular.C (TabularFeatures): added missing features.
4753 * src/tabular.C (DeleteColumn):
4755 (AppendRow): implemented this functions
4756 (cellsturct::operator=): clone the inset too;
4758 2000-05-23 Juergen Vigna <jug@sad.it>
4760 * src/insets/insettabular.C (LocalDispatch): better selection support
4761 when having multicolumn-cells.
4763 2000-05-26 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
4765 * lib/layouts/linuxdoc.layout: fix indentation of paragraphs.
4767 2000-05-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4769 * src/ColorHandler.C (getGCForeground): put more test into _()
4771 * lib/examples/eu_splash.lyx: new file (Basque translation) from
4774 * config/lyxinclude.m4 (LYX_PROG_CXX): use ${CXX} and not g++ to
4777 2000-05-25 Dekel Tsur <dekel@math.tau.ac.il>
4779 * src/lyx_cb.C (RefUpdateCB): disable appropriate buttons when
4780 there are no labels, or when buffer is readonly.
4782 * src/menus.C (ShowRefsMenu) disable appropriate menu items when
4783 there are no labels, buffer is SGML, or when buffer is readonly.
4785 2000-05-25 Lars Gullik Bjønnes <larsbj@lyx.org>
4787 * src/LColor.C (LColor): change a couple of grey40 to grey60
4788 (LColor): rewore initalization to make compiles go some magnitude
4790 (getGUIName): don't use gettext until we need the string.
4792 2000-05-09 Dekel Tsur <dekel@math.tau.ac.il>
4794 * src/Bullet.[Ch]: Fixed a small bug.
4796 2000-05-21 Dekel Tsur <dekel@math.tau.ac.il>
4798 * src/paragraph.C (String): Several fixes/improvements
4800 * src/insets/insetbib.[Ch] (InsetCitation::Ascii) New method
4802 2000-05-22 Lars Gullik Bjønnes <larsbj@lyx.org>
4804 * src/paragraph.C (String): give more correct output.
4806 2000-05-20 Dekel Tsur <dekel@math.tau.ac.il>
4808 * src/lyxfont.C (stateText) Do not output the language if it is
4809 eqaul to the language of the document.
4811 * src/paragraph.C (TeXOnePar): Do not put language switch commands
4812 between two paragraphs with the same language.
4814 * src/paragraph.C (getParLanguage) Return a correct answer for an
4815 empty dummy paragraph.
4817 * src/menus.C (ShowTocMenu): Do not draw lines between LOF/LOT/LOA
4820 * src/menus.C (ShowLayoutMenu) Add "Start of Appendix" item to the
4823 * src/lyx_gui.C (init): Try to use helvetica (or fixed) fonts for
4824 the menus/popup, if requested fonts are unavailable.
4826 2000-05-22 Juergen Vigna <jug@sad.it>
4828 * src/insets/insettabular.C (LocalDispatch): added some more cursor
4829 movement support (Up/Down/Tab/Shift-Tab).
4830 (LocalDispatch): added also preliminari cursor-selection.
4832 * src/LyXAction.C (init): added SHIFT-Tab as tab-backward.
4834 * src/paragraph.C (PasteParagraph): Hopefully now right!
4836 2000-05-22 Garst R. Reese <reese@isn.net>
4838 * layouts/hollywood.layout, broadway.layout : move Dialogue to top
4839 of list, change all references to Environment to Command
4840 * tex/hollywood.cls : rewrite environments as commands, add
4841 \uppercase to interiorshot and exteriorshot to force uppecase.
4842 * tex/broadway.cls : rewrite environments as commands. Tweak
4845 2000-05-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
4847 * src/menus.C (Add_to_toc_menu): fix the code which limits the
4848 size of items: use a constant intead of the hardcoded 40, and more
4849 importantly do not remove the %m and %x tags added at the end.
4850 (Add_to_refs_menu): use vector::size_type instead of
4851 unsigned int as basic types for the variables. _Please_ do not
4852 assume that size_t is equal to unsigned int. On an alpha, this is
4853 unsigned long, which is _not_ the same.
4855 * src/language.C (initL): remove language "hungarian", since it
4856 seems that "magyar" is better.
4858 2000-05-22 Juergen Vigna <jug@sad.it>
4860 * src/CutAndPaste.C: hopefully fixed memory the problem defenitively!
4862 * src/tabular.C (OldFormatRead): added \end_deeper to the end LyXTable
4865 * src/paragraph.C (PasteParagraph): Possibly a memory leak as
4866 next was deleted but not set to 0.
4868 2000-05-21 Lars Gullik Bjønnes <larsbj@lyx.org>
4870 * src/language.C (initL): change the initialization of languages
4871 so that compiles goes _fast_.
4873 * src/menus.C (Add_to_toc_menu): limit the line length in TOC to
4876 * src/lyxfunc.C (processKeyEvent): initalize keysym_return to 0.
4878 2000-05-21 Lars Gullik Bjønnes <larsbj@lyx.org>
4882 2000-05-20 Lars Gullik Bjønnes <larsbj@lyx.org>
4884 * src/WorkArea.C (request_clipboard_cb): give "C" linkage.
4886 2000-05-19 Dekel Tsur <dekel@math.tau.ac.il>
4890 * src/lyxfunc.C (Dispatch): Added LFUN_LOFVIEW, LFUN_LOTVIEW
4893 * src/insets/insetlo*.[Ch]: Made editable
4895 2000-05-20 Lars Gullik Bjønnes <larsbj@lyx.org>
4897 * src/text2.C (SetSelection): call BufferView::stuffClipboard with
4898 the current selection.
4900 * src/BufferView_pimpl.C (stuffClipboard): new method
4902 * src/BufferView.C (stuffClipboard): new method
4904 * src/paragraph.C (String): new method
4906 * src/LColor.C (getFromLyXName): return LColor::inherit instead of
4907 LColor::ignore when lyxname is not found.
4909 * src/BufferView.C (pasteSelection): new method
4911 * src/BufferView_pimpl.C (pasteSelection): new method
4913 * src/lyxfunc.C (Dispatch): use the new clipboard functions.
4915 * src/WorkArea.C (request_clipboard_cb): new static function
4916 (getClipboard): new method
4917 (putClipboard): new method
4919 2000-05-19 Lars Gullik Bjønnes <larsbj@lyx.org>
4921 * LyX 1.1.5pre2 released
4923 2000-05-19 Lars Gullik Bjønnes <larsbj@lyx.org>
4925 * src/vspace.C (operator=): removed
4926 (operator=): removed
4928 * src/lyx_gui_misc.C (askForText): manually set the type in make_pair
4930 * src/layout.C (NumberOfClass): manually set the type in make_pair
4931 (NumberOfLayout): ditto
4933 * src/language.C: use the Language constructor for ignore_lang
4935 * src/language.h: add constructors to struct Language
4937 * src/BufferView_pimpl.C (scrollDown): change to pair<float, float>
4939 * src/text2.C (SetCursorIntern): comment out #warning
4941 * src/mathed/math_symbols.C (pixmapFromBitmapData): add const_cast
4943 * src/mathed/math_iter.h: initialize sx and sw to 0
4945 2000-05-10 Dekel Tsur <dekel@math.tau.ac.il>
4947 * forms/lyx.fd: Redesign of form_ref
4949 * src/LaTeXFeatures.[Ch]
4953 * src/insets/insetref.[Ch]: Added support for varioref and prettyref.
4956 * src/lyxparagraph.h: Added new classes: LyXParagraph::inset_iterator
4957 and Buffer::inset_iterator.
4959 * src/menus.C: Added new menus: TOC and Refs.
4961 * src/insets/insetlabel.C (Edit) Made InsetLabel editable.
4963 * src/buffer.C (getTocList): New method.
4965 * src/BufferView2.C (ChangeRefs): New method.
4967 * src/buffer.C (getLabelList): New method. It replaces the old
4968 getReferenceList. The return type is vector<string> instead of
4971 * src/insets/insetinclude.C (getLabelList): New method. Replaces
4972 the old getLabel() and GetNumberOfLabels() methods.
4973 * src/insets/insetlabel.C (getLabelList): ditto
4974 * src/mathed/formula.C (getLabelList): ditto
4976 * src/paragraph.C (String): New method.
4978 * src/lyx_cb.C (TocSelectCB,TocUpdateCB): Rewritten.
4979 Uses the new getTocList() method.
4980 TocSelectCB() now calls to TocUpdateCB() before moving the cursor,
4981 which automatically updates the contents of the browser.
4982 (RefUpdateCB): Use the new getLabelList method.
4984 * src/lyxfunc.C (Dispatch): Give an error if the label is not found.
4986 * src/BufferView2.C (gotoLabel) Use the new getLabelList method.
4988 * src/spellchecker.C: Added using std::reverse;
4990 2000-05-19 Juergen Vigna <jug@sad.it>
4992 * src/tabular.C (Validate): fixed/added validating of LaTeXFeatures.
4994 * src/insets/insettext.C (computeTextRows): small fix for display of
4995 1 character after a newline.
4997 * src/tabular.C (OldFormatRead): fixed the OldFormatRead with regard
5000 2000-05-18 Juergen Vigna <jug@sad.it>
5002 * src/insets/insettabular.C (TabularFeatures): fixed update of display
5003 when changing width of column.
5005 * src/tabular.C (set_row_column_number_info): setting of
5006 autobreak rows if necessary.
5008 2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5010 * src/lyxvc.C (toggleReadOnly): use VCS::status() instead of stat()
5012 * src/vc-backend.*: renamed stat() to status() and vcstat to
5013 vcstatus. It happens that Tru64 Unix 5.0 has stat() as a macro and
5014 compilation broke. The new name seems more relevant, anyway.
5016 2000-05-17 Juergen Vigna <jug@sad.it>
5018 * src/BufferView2.C (removeAutoInsets): fixed use of AutoDeleteInsets
5019 which was wrong if the removing caused removing of rows!
5021 * src/lyxlex_pimpl.C (next, nextToken): insert support for pushToken.
5022 (pushToken): new function.
5024 * src/text2.C (CutSelection): fix problem discovered with purify
5026 2000-05-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5028 * src/debug.C (showTags): enlarge the first column, now that we
5029 have 6-digits debug codes.
5031 * lib/layouts/hollywood.layout:
5032 * lib/tex/hollywood.cls:
5033 * lib/tex/brodway.cls:
5034 * lib/layouts/brodway.layout: more commands and fewer
5035 environments. Preambles moved in the .cls files. Broadway now has
5036 more options on scene numbering and less whitespace (from Garst)
5038 * src/insets/insetbib.C (getKeys): make sure that we are in the
5039 document directory, in case the bib file is there.
5041 * src/insets/insetbib.C (Latex): revert bogus change.
5043 2000-05-16 Juergen Vigna <jug@sad.it>
5045 * src/insets/insettabular.C (UnlockInsetInInset): Changes to update
5046 the TabularLayout on cursor move.
5048 * src/TabularLayout.C (TabularOptionsCB): Wrong call to MenuLayoutTable
5050 * src/insets/insettabular.C (Clone): Clone the LyXTabular for
5053 (draw): fixed cursor position and drawing so that the cursor is
5054 visible when before the tabular-inset.
5056 * src/insets/insettext.C (init): drawLockedFrame was not initialized
5057 when creating from old insettext.
5059 * src/tabular.C (Clone): added Clone of text-inset for undo-handling.
5061 2000-05-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5063 * lib/tex/hollywood.cls: better algorithm for page breaks (Garst)
5064 * lib/tex/brodway.cls: ditto
5066 * lib/layouts/brodway.layout: change alignment of parenthical
5069 2000-05-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5071 * config/lyxinclude.m4 (LYX_PATH_XFORMS): make it clear that only
5072 versions 0.88 and 0.89 are supported.
5074 2000-05-15 Juergen Vigna <jug@sad.it>
5076 * src/insets/insetcollapsable.C (draw): enhancements in drawing and
5079 * src/insets/insettext.C (computeTextRows): redone completely this
5080 function in a much cleaner way, because of problems when having a
5082 (draw): added a frame border when the inset is locked.
5083 (SetDrawLockedFrame): this sets if we draw the border or not.
5084 (SetFrameColor): this sets the frame color (default=insetframe).
5086 * src/insets/lyxinset.h: added x() and y() functions which return
5087 the top_x and top_baseline values. Added a GetFirstLockingInsetOfType
5088 function which is needed to see if we have a locking inset of some
5089 type in this inset (needed for now in insettabular).
5091 * src/vspace.C (inPixels): the same function also without a BufferView
5092 parameter as so it is easier to use it in some ocasions.
5094 * src/lyxfunc.C: changed all places where insertInset was used so
5095 that now if it couldn't be inserted it is deleted!
5097 * src/TabularLayout.C:
5098 * src/TableLayout.C: added support for new tabular-inset!
5100 * src/BufferView2.C (insertInset): this now returns a bool if the
5101 inset was really inserted!!!
5103 * src/tabular.C (GetLastCellInRow):
5104 (GetFirstCellInRow): new helper functions.
5105 (Latex): implemented for new tabular class.
5109 (TeXTopHLine): new Latex() helper functions.
5111 2000-05-12 Juergen Vigna <jug@sad.it>
5113 * src/mathed/formulamacro.C (Read):
5114 * src/mathed/formula.C (Read): read also the \end_inset here!
5116 2000-05-10 Dekel Tsur <dekel@math.tau.ac.il>
5118 * src/mathed/math_write.C (MathParInset::Write): Fixed a bug:
5119 crush when saving formulae with unbalanced parenthesis.
5121 20000-05-11 Dekel Tsur <dekel@math.tau.ac.il>
5123 * src/layout.C: Add new keyword "endlabelstring" to layout file
5125 * src/text.C (GetVisibleRow): Draw endlabel string.
5127 * lib/layouts/broadway.layout
5128 * lib/layouts/hollywood.layout: Added endlabel for the
5129 Parenthetical layout.
5131 * lib/layouts/heb-article.layout: Do not use slanted font shape
5132 for Theorem like environments.
5134 * src/buffer.C (makeLaTeXFile): Always add "american" to
5135 the UsedLanguages list if document language is RTL.
5137 2000-05-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5139 * add addendum to README.OS2 and small patch (from SMiyata)
5141 2000-05-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5143 * many files: correct the calls to ChangeExtension().
5145 * src/support/filetools.C (ChangeExtension): remove the no_path
5146 argument, which does not belong there. Use OnlyFileName() instead.
5148 * src/insets/insetbib.C (Latex): use absolute paths for bibtex
5149 files when LaTeXing a non-nice latex file.
5151 * src/lyxlookup.C (isDeadEvent): use a switch statement instead of
5152 a chain of "if". Return false when deadkeys are not handled.
5154 * src/lyx_main.C (LyX): adapted the code for default bindings.
5156 * src/kbmap.C (defaultKeyBindings): new method. Performs the default
5157 bindings for basic functionality (except deadkeys).
5158 (deadKeyBindings): new method. Performs the bindings of deadkeys.
5160 * src/lyxrc.C (defaultKeyBindings): moved to lyx_main.C
5161 several methods: handle override_x_deadkeys.
5163 * src/lyxrc.h: remove the "bindings" map, which did not make much
5164 sense anyway. New variable override_x_deadkeys, defaulting to "true".
5166 2000-05-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5168 * src/lyxfont.C (stateText): use a saner method to determine
5169 whether the font is "default". Seems to fix the crash with DEC
5172 * src/Bullet.[Ch] (Bullet): remove const on parameters.
5174 2000-05-08 Juergen Vigna <jug@sad.it>
5176 * src/insets/insettabular.C (InsetButtonRelease): Now opens the
5177 TabularLayoutMenu with mouse-button-3
5178 (LocalDispatch): added LFUN_MENU_LAYOUT to open the Tabular-Layout.
5180 * src/TabularLayout.C: added this file for having a Layout for
5183 2000-05-05 Juergen Vigna <jug@sad.it>
5185 * src/insets/insettabular.C (UpdateLocal): resetCursorPos when
5186 recalculating inset-widths.
5187 (TabularFeatures): activated this function so that I can change
5188 tabular-features via menu.
5190 * src/menus.C (ShowEditMenu): inserted support for insettabular so
5191 that I can test some functions with the Table menu.
5193 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
5195 * src/lyxfont.C (stateText): guard against stupid c++libs.
5197 * src/tabular.C: add using std::vector
5198 some whitespace changes, + removed som autogenerated code.
5200 * src/buffer.C (parseSingleLyXformat2Token): stupid bug.
5202 2000-05-05 Juergen Vigna <jug@sad.it>
5204 * src/tabular.[Ch]: now using std:vector instead of arrays for all the
5205 row, columns and cellstructures.
5207 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
5209 * lib/lyxrc.example: remove obsolete entries.
5211 * src/buffer.C (parseSingleLyXformat2Token): patch from dekel, fix
5212 reading of protected_separator for free_spacing.
5214 2000-05-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5216 * src/text.C (draw): do not display an exclamation mark in the
5217 margin for margin notes. This is confusing, ugly and
5220 * src/LaTeXFeatures.C (getPackages): load amssymb also when 'Use
5221 AMS math' is checked.
5223 * src/buffer.C (makeLaTeXFile): do not depend on the textclass
5224 name to see whether including the amsmath package is needed.
5226 2000-05-05 Dekel Tsur <dekel@math.tau.ac.il>
5228 * src/paragraph.C (validate): Compute UsedLanguages correctly
5229 (don't insert the american language if it doesn't appear in the
5232 * src/paragraph.C (TeXOnePar,SimpleTeXOnePar,SimpleTeXSpecialChars)
5233 The argument of \thanks{} command is considered moving argument
5235 * src/paragraph.C (SimpleTeXOnePar): Put \protect before \\ if in
5238 2000-05-04 Dekel Tsur <dekel@math.tau.ac.il>
5240 * src/text.C (GetVisibleRow): Improved drawing of vertical lines
5241 for appendix/minipage/depth. The lines can be now both in the footnote
5242 frame, and outside the frame.
5244 * src/text.C (SingleWidth,draw): Correct rendering of Hebrew vowels
5247 2000-05-05 Juergen Vigna <jug@sad.it>
5249 * src/table.[Ch]: removed the inset and buffer stuff as this is now
5250 neede only in tabular.[Ch].
5252 2000-05-05 Lars Gullik Bjønnes <larsbj@lyx.org>
5254 * src/insets/insetspecialchar.C (Read): allow command == '~' for
5256 (Write): write '~' for PROTECTED_SEPARATOR
5258 2000-05-04 Lars Gullik Bjønnes <larsbj@lyx.org>
5260 * src/lyxparagraph.h: add a friend struct matchIT after the struct
5263 * src/mathed/formula.C (drawStr): rename size to siz.
5265 * src/insets/figinset.C (RestoreForm): rename pflags to piflags,
5266 possibly fix a bug by not changing the pflags = flags to piflags =
5269 2000-05-05 Juergen Vigna <jug@sad.it>
5271 * src/insets/insetbib.C: moved using directive
5273 * src/ImportNoweb.C: small fix for being able to compile (missing
5276 2000-05-04 Lars Gullik Bjønnes <larsbj@lyx.org>
5278 * config/lyxinclude.m4 (LYX_CXX_STL_STRING): change the test not
5279 to use clear, since we don't depend on this in the code. Add test
5282 2000-05-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5284 * (various *.C files): add using std::foo directives to please dec
5287 * replace calls to string::clear() to string::erase() (Angus)
5289 * src/cheaders/cmath: modified to provide std::abs.
5291 2000-05-04 Juergen Vigna <jug@sad.it>
5293 * src/insets/insettext.C: Prepared all for inserting of multiple
5294 paragraphs. Still display stuff to do (alignment and other things),
5295 but I would like to use LyXText to do this when we cleaned out the
5296 table-support stuff.
5298 * src/insets/insettabular.C: Changed lot of stuff and added lots
5299 of functionality still a lot to do.
5301 * src/tabular.C: Various functions changed name and moved to be
5302 const functions. Added new Read and Write functions and changed
5303 lots of things so it works good with tabular-insets (also removed
5304 some stuff which is not needed anymore * hacks *).
5306 * src/lyxcursor.h: added operators == and != which just look if
5307 par and pos are (not) equal.
5309 * src/buffer.C (latexParagraphs): inserted this function to latex
5310 all paragraphs form par to endpar as then I can use this too for
5313 * src/text2.C (SetLayout): Changed this to use a cursor this is needed
5314 so that I can call this to from text insets with their own cursor.
5316 * src/buffer.C (makeLaTeXFile): added the output of one \n after the
5317 output off all paragraphs (because of the fix below)!
5319 * src/paragraph.C (TeXOnePar): removed output of \n when we are in
5320 the very last paragraph (this could be also the last paragraph of an
5323 * src/texrow.h: added rows() call which returns the count-variable.
5325 2000-05-03 Jose Abilio Oliveira Matos <jamatos@novalis.fc.up.pt>
5327 * lib/lyxrc.example: fix examples for exporting SGML to HTML.
5329 * lib/configure.m4: better autodetection of DocBook tools.
5331 2000-04-28 Lars Gullik Bjønnes <larsbj@lyx.org>
5333 * src/lyx_main.C (easyParse): use lyxerr instead of cerr.
5335 * src/lyx_cb.C: add using std::reverse;
5337 * src/LaTeX.C (run): on error always run deleteFilesOnError before
5340 * src/LaTeX.[Ch] (deleteFilesOnError): new method. unlinks some
5341 selected files. Should fix repeated errors from generated files.
5343 2000-04-27 Dekel Tsur <dekel@math.tau.ac.il>
5345 * src/lyx_cb.C (TocUpdateCB): Reverse strings for Hebrew paragraphs
5347 * src/spellchecker.C (RunSpellChecker): Reverse Hebrew strings in
5348 the spellchecker popup.
5350 * lib/lyxrc.example: Removed the \number_inset section
5352 2000-04-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5354 * src/insets/figinset.C (various): Use IsFileReadable() to make
5355 sure that the file actually exist. Relying on ghostscripts errors
5356 is a bad idea since they can lead to X server crashes.
5358 2000-04-27 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
5360 * intl/loadmsgcat.c (_nl_load_domain): pass O_BINARY as flag to
5363 * lib/lyxrc.example: smallish typo in description of
5364 \view_dvi_paper_option
5366 2000-04-26 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
5369 * src/lyxfunc.C: doImportHelper to factor out common code of the
5370 various import methods. New functions doImportASCIIasLines,
5371 doImportASCIIasParagraphs, doImportLaTeX, doImportNoWeb,
5372 doImportLinuxDoc for the format specific parts.
5375 * buffer.C: Dispatch returns now a bool to indicate success
5378 * lyx_gui.C: Add getLyXView() for member access
5380 * lyx_main.C: Change logic for batch commands: First try
5381 Buffer::Dispatch (possibly without GUI), if that fails, use
5384 * lyx_main.C: Add support for --import command line switch.
5385 Now 'lyx --import ascii file.txt' opens the GUI with file.txt loaded.
5386 Available Formats: Everything accepted by 'buffer-import <format>'
5388 2000-04-27 Lars Gullik Bjønnes <larsbj@lyx.org>
5390 * src/lyx_gui.C (create_forms): small oneliner from Garst to have
5393 * src/lyx_cb.C (ScreenApplyCB): clear the textcache so that the
5394 documents will be reformatted upon reentry.
5396 2000-04-27 Juergen Vigna <jug@sad.it>
5398 * src/CutAndPaste.C (pasteSelection): last paragraph was not returned
5399 correctly only last pos this was a bug.
5401 2000-04-26 Lars Gullik Bjønnes <larsbj@lyx.org>
5403 * release of lyx-1.1.5pre1
5405 2000-04-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5407 * src/insets/insettabular.[Ch]: fix the Clone() declaration.
5409 * src/menus.C: revert the change of naming (Figure->Graphic...)
5410 from 2000-04-11. It was incomplete and bad.
5412 * src/LColor.[Ch]: add LColor::depthbar.
5413 * src/text.C (GetVisibleRow): use it.
5415 * README: update the languages list.
5417 2000-04-25 Dekel Tsur <dekel@math.tau.ac.il>
5419 * src/text.C (GetVisibleRow): show the depth of paragraphs using
5422 2000-04-26 Lars Gullik Bjønnes <larsbj@lyx.org>
5424 * README: remove sections that were just wrong.
5426 * src/text2.C (GetRowNearY): remove currentrow code
5428 * src/text.C (GetRow): remove currentrow code
5430 * src/screen.C (Update): rewritten a bit.
5431 (SmallUpdate): removed func
5433 * src/lyxtext.h (text_status): removed NEED_LITTLE_REFRESH, never
5435 (FullRebreak): return bool
5436 (currentrow): remove var
5437 (currentrow_y): ditto
5439 * src/lyxscreen.h (Draw): change arg to unsigned long
5440 (FitCursor): return bool
5441 (FitManualCursor): ditto
5442 (Smallpdate): remove func
5443 (first): change to unsigned long
5444 (DrawOneRow): change second arg to long (from long &)
5445 (screen_refresh_y): remove var
5446 (scree_refresh_row): ditto
5448 * src/lyxrow.h: change baseline to usigned int from unsigned
5449 short, this brings some implicit/unsigned issues out in the open.
5451 * src/lyxfunc.C (moveCursorUpdate): update(0) == update(-2) change
5453 (Dispatch): don't call updateScrollbar after fitCursor. Use update
5454 instead of smallUpdate.
5456 * src/lyxcursor.h: change y to unsigned long
5458 * src/buffer.h: don't call updateScrollbar after fitcursor
5460 * src/buffer.C (parseSingleLyXformat2Token): move variables to
5461 where they are used. Removed "\\direction", this was not present
5462 in 1.1.4 and is already obsolete. Commented out some code that I
5463 believe to never be called.
5464 (runLiterate): don't call updateScrollbar after fitCursor
5466 (buildProgram): ditto
5469 * src/WorkArea.h (workWidth): change return val to unsigned
5472 (redraw): remove the button redraws
5473 (setScrollbarValue): change for scrollbar
5474 (getScrollbarValue): change for scrollbar
5475 (getScrollbarBounds): change for scrollbar
5477 * src/WorkArea.C (C_WorkArea_up_cb): removed func
5478 (C_WorkArea_down_cb): removed func
5479 (WorkArea): use fl_add_scrollbar instead of two buttons and a slider.
5480 (resize): change for scrollbar
5481 (setScrollbar): ditto
5482 (setScrollbarBounds): ditto
5483 (setScrollbarIncrements): ditto
5484 (up_cb): removed func
5485 (down_cb): removed func
5486 (scroll_cb): change for scrollbar
5487 (work_area_handler): ditto
5489 * src/BufferView_pimpl.C (fitCursor): only call updateScrollbar
5490 when FitCursor did something.
5491 (updateScrollbar): some unsigned changes
5492 (downCB): removed func
5493 (scrollUpOnePage): removed func
5494 (scrollDownOnePage): remvoed func
5495 (workAreaMotionNotify): don't call screen->FitCursor but use
5496 fitCursor instead. and bool return val
5497 (workAreaButtonPress): ditto
5498 (workAreaButtonRelease): some unsigned changes
5499 (checkInsetHit): ditto
5500 (workAreaExpose): ditto
5501 (update): parts rewritten, comments about the signed char arg added
5502 (smallUpdate): removed func
5503 (cursorPrevious): call needed updateScrollbar
5506 * src/BufferView2.C (allFloats): don't call updateScrollbar after
5509 * src/BufferView.[Ch] (upCB): removed func
5510 (downCB): removed func
5511 (smallUpdate): removed func
5513 2000-04-25 Lars Gullik Bjønnes <larsbj@lyx.org>
5515 * src/lyxtext.h src/text.C src/text2.C: removed support for the
5516 currentrow, currentrow_y optimization. This did not help a lot and
5517 if we want to do this kind of optimization we should rather use
5518 cursor.row instead of the currentrow.
5520 * src/buffer.C (parseSingleLyXformat2Token): fixed mistake in
5521 buffer spacing and klyx spacing support.
5523 2000-04-25 Dekel Tsur <dekel@math.tau.ac.il>
5525 * src/spellchecker.C (RunSpellChecker): Speedup spellchecking by
5528 2000-04-26 Juergen Vigna <jug@sad.it>
5530 * src/insets/figinset.C: fixes to Lars sstream changes!
5532 2000-04-23 Dekel Tsur <dekel@math.tau.ac.il>
5534 * A lot of files: Added Ascii(ostream &) methods to all inset
5535 classes. Used when exporting to ASCII.
5537 * src/buffer.C (writeFileAscii,RoffAsciiTable)
5538 * src/paragraph.C (RoffContTableRows): Use the Ascii() methods
5541 * src/text2.C (ToggleFree): Disabled implicit word selection when
5542 there is a change in the language
5544 * src/insets/insetspecialchar.C (Linuxdoc,DocBook): Fixed a bug:
5545 no output was generated for end-of-sentence inset.
5547 * src/insets/lyxinset.h
5550 * src/paragraph.C: Removed the insetnumber code
5552 * src/text.C (SelectWordWhenUnderCursor): Cleaned the code.
5554 2000-04-22 Lars Gullik Bjønnes <larsbj@lyx.org>
5556 * src/buffer.C (parseSingleLyXformat2Token): remove no_isolatin1,
5557 no_babel and no_epsfig completely from the file.
5558 (parseSingleLyXformat2Token): add handling for per-paragraph
5559 spacing as written by klyx.
5561 * src/insets/figinset.C: applied patch by Andre. Made it work with
5564 2000-04-20 Juergen Vigna <jug@sad.it>
5566 * src/insets/insettext.C (cutSelection):
5567 (copySelection): Fixed with selection from right to left.
5568 (draw): now the rows are not recalculated at every draw.
5569 (computeTextRows): for now reset the inset-owner here (this is
5570 important for an undo or copy where the inset-owner is not set
5573 * src/BufferView_pimpl.C (workAreaMotionNotify): when passing the
5574 motion to the_locking_inset screen->first was forgotten, this was
5575 not important till we got multiline insets.
5577 2000-04-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5579 * src/mathed/formulamacro.C (Latex): remove CHECK comment, since
5580 code seems to be alright (it is code changed by Dekel, and the
5581 intent is indeed that all macros should be defined \protect'ed)
5583 * NEWS: a bit of reorganisation of the new user-visible features.
5585 2000-04-19 Juergen Vigna <jug@sad.it>
5587 * src/insets/insettext.C (init): using a LyXCursor now for cursor
5588 position. Set the inset_owner of the used paragraph so that it knows
5589 that it is inside an inset. Fixed cursor handling with mouse and
5590 cursor keys. Fixed wrong timed inset redraws and lots of other changes
5591 and cleanups to make TextInsets work better.
5593 * src/insets/insettext.h: Using a LyXCursor now. Added a clear() call.
5594 Changed parameters of various functions and added LockInsetInInset().
5596 * src/insets/insettext.C:
5598 * src/insets/insetcollapsable.h:
5599 * src/insets/insetcollapsable.C:
5600 * src/insets/insetfoot.h:
5601 * src/insets/insetfoot.C:
5602 * src/insets/insetert.h:
5603 * src/insets/insetert.C: cleaned up the code so that it works now
5604 correctly with insettext.
5606 * src/insets/inset.C:
5607 * src/insets/lyxinset.h: inserted inset_owner and some more changes so
5608 that insets in insets are supported right.
5611 * src/table.C: lots of changes for use with inset tabular (and cleanup)
5613 * src/paragraph.C: some small fixes
5615 * src/debug.h: inserted INSETS debug info
5617 * src/lyxfunc.C (Dispatch): added code for InsetTabular and some inset
5618 fixes (f.ex. calling LFUN_DOWN if exiting inset with LFUN_DOWN).
5620 * src/commandtags.h:
5621 * src/LyXAction.C: insert code for InsetTabular.
5623 * src/BufferView_pimpl.C (workAreaMotionNotify): do return always if
5624 not Button1MotionMask.
5625 (workAreaButtonRelease): send always a InsetButtonRelease event to
5627 (checkInsetHit): some setCursor fixes (always with insets).
5629 * src/BufferView2.C (lockInset): returns a bool now and extended for
5630 locking insets inside insets.
5631 (showLockedInsetCursor): it is important to have the cursor always
5632 before the locked inset.
5633 (fitLockedInsetCursor): forgot adding of InsetInInsetY()-offset.
5635 * src/BufferView.h: made lockInset return a bool.
5637 * src/lyxtext.h: inserted function SetCursor(LyXCursor, ...).
5639 * src/text2.C (SetCursor): This now has a version with a LyXCursor
5640 that is used also internally but can be called as public to have back
5641 a cursor pos which is not set internally.
5642 (SetCursorIntern): Changed to use above function.
5644 * src/CutAndPaste.C (DeleteBuffer): forgot to inizialize textclass
5646 2000-04-19 Lars Gullik Bjønnes <larsbj@lyx.org>
5651 * NEWS: updated for prerelease of 1.1.5. Please comment and send
5652 patches for things that should be in or should be changed.
5654 * src/* [insetfiles]: change "usigned char fragile" to bool
5655 fragile. There was only one point that could that be questioned
5656 and that is commented in formulamacro.C. Grep for "CHECK".
5658 * src/CutAndPaste.C (getBufferTextClass): unused func, removed.
5659 (DeleteBuffer): take it out of CutAndPaste and make it static.
5661 2000-04-17 Lars Gullik Bjønnes <larsbj@lyx.org>
5663 * src/paragraph.C (TeXOnePar): use the new method in Spacing to
5664 output the spacing envir commands. Also the new commands used in
5665 the LaTeX output makes the result better.
5667 * src/Spacing.C (writeEnvirBegin): new method
5668 (writeEnvirEnd): new method
5670 2000-04-18 Juergen Vigna <jug@sad.it>
5672 * src/CutAndPaste.C: made textclass a static member of the class
5673 as otherwise it is not accesed right!!!
5675 2000-04-17 Dekel Tsur <dekel@math.tau.ac.il>
5677 * forms/layout_forms.fd
5678 * src/layout_forms.h
5679 * src/layout_forms.C (create_form_form_character)
5680 * src/lyx_cb.C (UserFreeFont)
5681 * src/lyx_gui.C (create_forms): Added GUI support for multi-lingual
5682 documents (in the layout->character popup).
5684 2000-04-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5686 * src/spellchecker.C (create_ispell_pipe): fix a bug where
5687 \spell_command was in fact not honored (from Kevin Atkinson).
5689 * src/lyx_gui.C (~LyXGUI): make sure lyxViews is deleted when
5692 * src/lyx_gui.h: make lyxViews private (Angus)
5694 2000-04-15 Dekel Tsur <dekel@math.tau.ac.il>
5696 * src/mathed/math_write.C
5697 (MathMatrixInset::Write) Put \protect before \begin{array} and
5698 \end{array} if fragile
5699 (MathParInset::Write): Put \protect before \\ if fragile
5701 2000-04-15 Lars Gullik Bjønnes <larsbj@lyx.org>
5703 * src/lyx_gui.C (LyXGUI): initialize the LyXColorHandler. The
5704 initialization if the LyXColorHandler must be done after the
5705 connections to the XServer has been established.
5707 * src/insets/figinset.C (runqueue): change the grabing a bit. Also
5708 get the background pixel from the lyxColorhandler so that the
5709 figures are rendered with the correct background color.
5710 (NextToken): removed functions.
5711 (GetPSSizes): use ifs >> string instead of NextToken.
5713 * src/Painter.[Ch]: the color cache moved out of this file.
5715 * src/ColorHandler.[Ch]: new files. Holds the gc cache for color
5718 2000-04-14 Lars Gullik Bjønnes <larsbj@lyx.org>
5720 * src/WorkArea.C (work_area_handler): call BufferView::enterView
5721 and Buffer::leaveView when FL_ENTER and FL_LEAVE.
5723 * src/BufferView.C (enterView): new func
5724 (leaveView): new func
5726 * src/BufferView_pimpl.C (enterView): new func, sets xterm cursor
5728 (leaveView): new func, undefines xterm cursor when approp.
5730 * src/bufferview_funcs.C: moved SetXCursor to BufferView_pimp.C
5731 (AllowInput): delete the Workarea cursor handling from this func.
5733 * src/Painter.C (underline): draw a slimer underline in most cases.
5735 * src/lyx_main.C (error_handler): use extern "C"
5737 2000-04-12 Lars Gullik Bjønnes <larsbj@lyx.org>
5739 * src/insets/figinset.C (DocBook): small patch from Jose (jamatos)
5740 sent directly to me.
5742 * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
5743 to the list by Dekel.
5745 * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
5748 * src/bufferview_funcs.[Ch]: two new files, moved several of the
5749 methods from lyx_cb.here.
5751 * src/lyx_cb.C: in addition to the above; removed input_prohibited
5754 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
5756 * src/lyx_cb.[Ch]: made several functions take a BufferView* arg
5757 instead of using current_view directly.
5759 * src/lyxfunc.C (Dispatch): the paragraph-spacing implementation
5761 * src/LyXAction.C (init): add the paragraph-spacing command.
5763 * src/commandtags.h: add enum for LFUN_PARAGRAPH_SPACING
5765 * src/buffer.C (parseSingleLyXformat2Token): read the paragraph spacing
5767 * src/lyx_cb.C (CurrentState): output a string when the spacing is
5768 different from the documents.
5770 * src/text.C (SetHeightOfRow): take paragraph spacing into
5771 account, paragraph spacing takes precedence over buffer spacing
5772 (GetVisibleRow): ditto
5774 * src/paragraph.C (writeFile): output the spacing parameter too.
5775 (validate): set the correct features if spacing is used in the
5777 (Clear): set spacing to default
5778 (MakeSameLayout): spacing too
5779 (HasSameLayout): spacing too
5780 (SetLayout): spacing too
5781 (TeXOnePar): output the spacing commands
5783 * src/lyxparagraph.h: added a spacing variable for use with
5784 per-paragraph spacing.
5786 * src/Spacing.h: add a Default spacing and a method to check if
5787 the current spacing is default. also added an operator==
5789 * src/text2.C (DeleteEmptyParagraphMechanism): added a
5792 2000-04-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5794 * src/lyxserver.C (callback): fix dispatch of functions
5796 * src/insets/insetlatexaccent.C (checkContents): turn bogus
5797 printf() into lyxerr call.
5799 * src/tex-strings.C (tex_fonts): add "pslatex" to the choice of
5802 * src/menus.C (ShowInsertMenu): rename "Figure" to "Graphic",
5803 "Table" to "Table Box", "Float" to "Floating Material"; deletes
5804 the "Float" from each of the subitems.
5805 (ShowHelpMenu): add entry for "FAQ" and "TOC".
5807 * src/support/DebugStream.h: add an #ifdef to work around a gcc
5808 2.8.x compiler error. Yes, I know, gcc 2.8.1 is bad, but I
5809 documented the change so that the workaround can be nuked later.
5811 * src/lyx_gui_misc.C (getScreenDPI): new function. Code moved from
5814 * src/lyxlex_pimpl.C (next): do not re-declare the default value
5816 * src/buffer.C (getLatexName): ditto
5817 (setReadonly): ditto
5819 2000-04-11 Lars Gullik Bjønnes <larsbj@lyx.org>
5821 * src/LaTeXFeatures.h: add a const reference to BufferParams, to
5822 avoid some uses of current_view. Added also a bufferParams()
5823 method to get at this.
5825 * src/lyxtext.h: changed params->buffer and paramters->bparams.
5827 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
5829 * src/lyxparagraph.[Ch]: removed
5830 operator<(LyXParagraph::InsetTable..., added a struct matchIT
5831 with operators used by lower_bound and
5832 upper_bound in InsetTable's
5833 Make struct InsetTable private again. Used matchpos.
5835 2000-04-08 Dekel Tsur <dekel@math.tau.ac.il>
5837 * src/lyx_cb.C (DocumentApplyCB): When changing the language of the
5838 document, the language of existing text is changed (unless the
5839 document is multi-lingual)
5841 * src/buffer.C (ChangeLanguage,isMultiLingual) New methods.
5843 * src/paragraph.C (ChangeLanguage,isMultiLingual) New methods.
5845 * A lot of files: A rewrite of the Right-to-Left support.
5847 2000-04-10 Juergen Vigna <jug@sad.it>
5849 * src/BufferView2.C (showLockedInsetCursor): small bugfix for
5850 misplaced cursor when inset in inset is locked.
5852 * src/insets/insettext.C (LocalDispatch): small fix so that a
5853 BREAKLINE is not inserted if we don't permit it with autBreakRows.
5855 * src/insets/insetfoot.C (GetDrawFont): implemented this as the
5856 footnote font should be decreased in size twice when displaying.
5858 * src/insets/insettext.C (GetDrawFont): inserted this function as
5859 the drawing-font may differ from the real paragraph font.
5861 * src/lyxfunc.C (processKeyEvent): fixed Esc-handling when unlocking
5862 insets (inset in inset!).
5864 * src/insets/insetfoot.C (InsertInsetAllowed): implemented the below
5865 function here because we don't want footnotes inside footnotes.
5867 * src/insets/insettext.C (InsetText): forgot to set autoBreakRows for
5869 (init): now set the inset_owner in paragraph.C
5870 (LocalDispatch): added some resetPos() in the right position
5873 (pasteSelection): changed to use the new CutAndPaste-Class.
5875 * src/insets/lyxinset.h: inserted new function InsertInsetAllowed
5876 which tells if it is allowed to insert another inset inside this one.
5878 * src/lyx_cb.C (DocumentApplyCB): Using CutAndPaste-Class for
5879 SwitchLayoutsBetweenClasses.
5881 * src/text2.C (InsertInset): checking of the new paragraph-function
5883 (DeleteSimpleCutBuffer): removed (for now only with #ifdef) as this
5884 is not needed anymore here!
5887 (PasteSelection): redone (also with #ifdef) so that now this uses
5888 the CutAndPaste-Class.
5889 (SwitchLayoutsBetweenClasses): removed here and implemented in the
5892 * src/CutAndPaste.[Ch]: added this for clean handling of CutAndPaste
5893 from/to text/insets.
5895 * src/paragraph.C (LyXParagraph): inserted new inset_owner pointer
5896 so that the paragraph knows if it is inside an (text)-inset.
5897 (InsertFromMinibuffer): changed return-value to bool as now it
5898 may happen that an inset is not inserted in the paragraph.
5899 (InsertInsetAllowed): this checks if it is allowed to insert an
5900 inset in this paragraph.
5902 (BreakParagraphConservative):
5903 (BreakParagraph) : small change for the above change of the return
5904 value of InsertFromMinibuffer.
5906 * src/lyxparagraph.h: added inset_owner and the functions to handle
5907 this (SetInsetOwner(), InInset() and InsertInsetAllowed()).
5909 2000-04-10 Lars Gullik Bjønnes <larsbj@lyx.org>
5911 * src/BufferView.[Ch], src/BufferView_pimpl.[Ch]: move more
5912 functions from BufferView to BufferView::Pimpl to ease maintence.
5914 * src/text2.C (DeleteEmptyParagraphMechanism): update the cursor
5915 correctly. Also use SetCursorIntern instead of SetCursor.
5917 * src/insets/insetinfo.C (draw): draw InsetInfo notes with the
5920 2000-04-08 Lars Gullik Bjønnes <larsbj@lyx.org>
5922 * src/WorkArea.C (belowMouse): manually implement below mouse.
5924 * src/*: Add "explicit" on several constructors, I added probably
5925 some unneeded ones. A couple of changes to code because of this.
5927 * src/BufferView.[Ch]: Used the "pimpl" idiom to hide more of the
5928 implementation and private parts from the users of BufferView. Not
5931 * src/lyxlex.[Ch]: Used the "pimpl" idiom to hide more of the
5932 implementation and private parts from the users of LyXLex. Not
5935 * src/BufferView_pimpl.[Ch]: new files
5937 * src/lyxlex_pimpl.[Ch]: new files
5939 * src/LyXView.[Ch]: some inline functions move out-of-line
5941 2000-04-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5943 * src/lyxparagraph.h: make struct InsetTable public.
5945 * src/support/lyxstring.h: change lyxstring::difference_type to be
5946 ptrdiff_t. Add std:: modifiers to streams.
5948 * src/font.C: include the <cctype> header, for islower() and
5951 2000-04-03 Lars Gullik Bjønnes <larsbj@lyx.org>
5953 * src/font.[Ch]: new files. Contains the metric functions for
5954 fonts, takes a LyXFont as parameter. Better separation of concepts.
5956 * src/lyxfont.[Ch]: move the metric functions to font.[Ch] several
5957 changes because of this.
5959 * src/PainterBase.[Ch] (width): remove, use the ones in font.C instead
5961 * src/*: compile with -Winline and move functions that don't
5964 * src/lyx_cb.C (stringOnlyContains): use string::find_first_not_of
5967 2000-04-02 Lars Gullik Bjønnes <larsbj@lyx.org>
5969 * src/paragraph.C (GetLabelstring): renamed from GetLabestring.
5970 (various files changed because of this)
5972 * src/Painter.C (text): fixed the drawing of smallcaps.
5974 * src/lyxfont.[Ch] (drawText): removed unused member func.
5977 * src/*.C: added needed "using" statements and "std::" qualifiers.
5979 2000-03-31 Lars Gullik Bjønnes <larsbj@lyx.org>
5981 * src/*.h: removed all use of "using" from header files use
5982 qualifier std:: instead.
5984 2000-04-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
5986 * src/text.C (Backspace): some additional cleanups (we already
5987 know whether cursor.pos is 0 or not).
5989 * lib/reLyX/Makefile.am (DESTDIR): add an empty value (since
5990 automake does not provide one).
5992 * src/bmtable.h: replace C++ comments with C comments.
5994 2000-04-02 Dekel Tsur <dekel@math.tau.ac.il>
5996 * src/screen.C (ShowCursor): Change the shape of the cursor if
5997 the current language is not equal to the language of the document.
5998 (If the cursor change its shape unexpectedly, then you've found a bug)
6000 * src/insets/insettext.C (LocalDispatch, UpdateLocal) Fixed some
6003 * src/insets/insetnumber.[Ch]: New files.
6005 * src/LyXAction.C (init)
6006 * src/lyxfunc.C (dispatch): Add command number-inset-insert
6009 * src/lyxrc.C: Renamed command \auto_mathmode to \number_inset
6011 * src/lyxparagraph.h
6012 * src/paragraph.C: Changed insetlist to Vector<InsetTable>.
6013 (the vector is kept sorted).
6015 * src/text.C (GetVisibleRow): Draw selection correctly when there
6016 is both LTR and RTL text.
6018 * src/paragraph.C (Clone): Use the assignment operator for cloning,
6019 which is much faster.
6021 * src/text.C (GetVisibleRow and other): Do not draw the last space
6022 in a row if the direction of the last letter is not equal to the
6023 direction of the paragraph.
6025 * src/lyxfont.C (latexWriteStartChanges):
6026 Check that font language is not equal to basefont language.
6027 (latexWriteEndChanges): ditto
6029 * src/lyx_cb.C (StyleReset): Don't change the language while using
6030 the font-default command.
6032 * src/paragraph.C (GetFirstFontSettings): Handle correctly an
6033 empty paragraph before a footnote.
6035 * src/insets/insetcommand.C (draw): Increase x correctly.
6037 * src/screen.C (ShowCursor): Change cursor shape if
6038 current language != document language.
6040 * src/lyxfunc.C (dispatch): Added calls to owner->view()->setState()
6042 2000-03-31 Juergen Vigna <jug@sad.it>
6044 * src/paragraph.C (GetInset): commented out text[pos] = ' '
6045 (Clone): changed mode how the paragraph-data is copied to the
6046 new clone-paragraph.
6048 * src/lyxfunc.C (Dispatch): fixed small problem when calling
6049 GetInset(pos) with no inset anymore there (in inset UNDO)
6051 * src/insets/insetcommand.C (draw): small fix as here x is
6052 incremented not as much as width() returns (2 before, 2 behind = 4)
6054 2000-03-30 Juergen Vigna <jug@sad.it>
6056 * src/insets/insettext.C (InsetText): small fix in initialize
6057 widthOffset (should not be done in the init() function)
6059 2000-03-29 Amir Karger <karger@lyx.org>
6061 * lib/examples/it_ItemizeBullets.lyx: translation by
6064 * Implemented \textasciitilde and fixed a tiny bug in reLyX
6066 2000-03-29 Juergen Vigna <jug@sad.it>
6068 * src/insets/insetcollapsable.C (Clone): same as in InsetFoot
6070 * src/insets/insetfoot.C (Clone): small change as for the below
6071 new init function in the text-inset
6073 * src/insets/insettext.C (init): new function as I've seen that
6074 clone did not copy the Paragraph-Data!
6075 (LocalDispatch): Added code so that now we have some sort of Undo
6076 functionality (well actually we HAVE Undo ;)
6078 * src/text.C (Backspace): Small fix for the a | a Backspace problem
6080 2000-03-24 Dekel Tsur <dekel@math.tau.ac.il>
6082 * src/paragraph.C (AutoDeleteInsets) Fixed a bug (wrong positions
6085 2000-03-22 Lars Gullik Bjønnes <larsbj@lyx.org>
6087 * src/main.C: added a runtime check that verifies that the xforms
6088 header used when building LyX and the library used when running
6089 LyX match. Exit with a message if they don't match. This is a
6090 version number check only.
6092 * src/buffer.C (save): Don't allocate memory on the heap for
6093 struct utimbuf times.
6095 * *: some using changes, use iosfwd instead of the real headers.
6097 * src/lyxfont.C use char const * instead of string for the static
6098 strings. Rewrite some functions to use sstream.
6100 2000-03-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6102 * src/text.C (Backspace): hopefully fix the dreaded backaspace
6105 2000-03-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6107 * lib/layouts/svjog.layout: new file, for Springer-Verlag Journal
6108 of Geodesy (from Martin Vermeer)
6110 * lib/layouts/svjour.inc: include file for the Springer svjour
6111 class. It can be used to support journals other than JoG.
6113 * lib/Makefile.am: use $(DESTDIR) make variable (from Arkadiusz
6114 Miskiewicz <misiek@pld.org.pl>)
6115 * lib/reLyX/Makefile.am: ditto.
6117 2000-03-27 Juergen Vigna <jug@sad.it>
6119 * src/insets/insettext.C: added Cut/Copy/Paste inside insets,
6120 also some modifications with operations on selected text.
6122 * src/BufferView.C (checkInsetHit): Now hopefully fixed all the
6123 problems with clicking on insets (last famous words ;)
6125 * src/insets/insetcommand.C (draw):
6126 (width): Changed to have a bit of space before and after the inset so
6127 that the blinking cursor can be seen (otherwise it was hidden)
6129 2000-03-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6131 * config/gettext.m4 (AM_WITH_NLS): fix a gettext bug where -lintl
6132 would not be added to the link list when an installed gettext (not
6133 part of libc) is found.
6135 2000-03-24 Juergen Vigna <jug@sad.it>
6137 * src/insets/insetcollapsable.C (Edit):
6138 * src/mathed/formula.C (InsetButtonRelease):
6139 (InsetButtonPress): fixed for new handling of ButtonPress/Release
6142 * src/BufferView.C (workAreaButtonPress):
6143 (workAreaButtonRelease):
6144 (checkInsetHit): Finally fixed the clicking on insets be handled
6147 * src/insets/insetert.C (Edit): inserted this call so that ERT
6148 insets work always with LaTeX-font
6150 2000-03-21 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
6152 * src/lyx_main.C (easyParse): Removed misplaced gui=false which
6153 caused lyx to startup with no GUI in place, causing in a crash
6154 upon startup when called with arguments.
6156 2000-03-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6158 * src/FontLoader.C: better initialization of dummyXFontStruct.
6160 2000-03-20 José Abílio Matos <jamatos@lyx.org>
6162 * src/lyxrc.[Ch] Removed \sgml_extra_options, added 6 other flags
6163 for linuxdoc and docbook import and export format options.
6165 * lib/lyxrc.example Example of default values for the previous flags.
6167 * src/lyx_cb.C Use those flags instead of the hardwired values for
6168 linuxdoc and docbook export.
6170 * src/lyxfunc.[Ch] Added HTML export for linuxdoc and docbook, added
6173 * src/menus.C Added menus entries for the new import/exports formats.
6175 2000-03-09 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
6177 * src/lyxrc.*: Added support for running without Gui
6180 * src/FontLoader.C: sensible defaults if no fonts are needed
6182 * src/lyx_cb.C: New function ShowMessage (writes either to the
6183 minibuffer or cout in case of no gui
6184 New function AskOverwrite for common stuff
6185 Consequently various changes to call these functions
6187 * src/lyx_main.C: allow gui = false and handle lyxrc \use_gui false
6188 wild guess at sensible screen resolution when having no gui
6190 * src/lyxfont.C: no gui, no fonts... set some defaults
6192 2000-03-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6194 * src/LColor.C: made the command inset background a bit lighter.
6196 2000-03-20 Hartmut Goebel <goebel@noris.net>
6198 * lib/layouts/stdstruct.inc: split into stdtitle.inc and
6199 stdstruct.inc. Koma-Script added some title elements which
6200 otherwise have been listed below "bibliography". This split allows
6201 adding title elements to where they belong.
6203 * lib/layouts/scrclass.inc: changed to include stdtitle.inc, then
6204 define the additional tilte elements and then include
6207 * many other layout files: changed to include stdtitle.inc just
6208 before stdstruct.inc.
6210 2000-03-18 Dekel Tsur <dekel@math.tau.ac.il>
6212 * src/buffer.C: (save) Added the option to store all backup files
6213 in a single directory
6215 * src/lyxrc.[Ch]: Added variable \backupdir_path
6217 * lib/lyxrc.example: Added descriptions of recently added variables
6219 * src/insets/insetbib.[Ch]: Fixed few bugs (crash when editing a
6220 bibtex inset, not closing the bibtex popup when deleting the inset)
6222 2000-03-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6224 * src/lyx_cb.C: add a couple using directives.
6226 2000-03-17 José Abílio Matos <jamatos@lyx.org>
6227 * src/lyx_cb.C (RunLinuxDoc) Removed the flag==-1 option for linuxdoc
6228 import based on the filename.
6230 * src/bufferlist.C () Removed the call to RunLinuxDoc where a linuxdoc
6231 file would be imported at start, if the filename where of a sgml file.
6233 * src/support/filetools.C (IsSGMLfilename) Removed, no longer needed.
6235 * src/support/filetools.h (IsSGMLfilename) Removed, no longer needed.
6237 2000-03-16 Dekel Tsur <dekel@math.tau.ac.il>
6238 * src/lyxfont.h Replaced the member variable bits.direction by the
6239 member variable lang. Made many changes in other files.
6240 This allows having a multi-lingual document
6242 * src/lyxfunc.C, src/lyx_cb.C Added a new command "language <l>"
6243 that change the current language to <l>.
6244 Removed the command "font-rtl"
6246 * src/buffer.C Changed LYX_FORMAT to 2.16 (as I changed the file
6247 format for Hebrew documents)
6249 * src/lyxrc.C, src/lyxfunc.C Added a new lyxrc command "auto_mathmode"
6250 When auto_mathmode is "true", pressing a digit key in normal mode
6251 will cause entering into mathmode.
6252 If auto_mathmode is "rtl" then this behavior will be active only
6253 when writing right-to-left text.
6255 * src/text2.C (InsertStringA) The string is inserted using the
6258 * src/paragraph.C (GetEndLabel) Gives a correct result for
6259 footnote paragraphs.
6261 * src/paragraph.C (PreviousBeforeFootnote) Fixed a small bug
6263 2000-03-16 Lars Gullik Bjønnes <larsbj@lyx.org>
6265 * src/text.C (Backspace): move RemoveParagraph and RemoveRow in
6266 front of PasteParagraph. Never insert a ' '. This should at least
6267 fix some cause for the segfaults that we have been experiencing,
6268 it also fixes backspace behaviour slightly. (Phu!)
6270 * src/support/lstrings.C (compare_no_case): some change to make it
6271 compile with gcc 2.95.2 and stdlibc++-v3
6273 * src/text2.C (MeltFootnoteEnvironment): change type o
6274 first_footnote_par_is_not_empty to bool.
6276 * src/lyxparagraph.h: make text private. Changes in other files
6278 (fitToSize): new function
6279 (setContentsFromPar): new function
6280 (clearContents): new function
6281 (SetChar): new function
6283 * src/paragraph.C (readSimpleWholeFile): deleted.
6285 * src/lyx_cb.C (InsertAsciiFile): don't use a LyXParagraph to hold
6286 the file, just use a simple string instead. Also read the file in
6287 a more maintainable manner.
6289 * src/text2.C (InsertStringA): deleted.
6290 (InsertStringB): deleted.
6292 2000-03-15 Lars Gullik Bjønnes <larsbj@lyx.org>
6294 * src/text2.C (DeleteEmptyParagraphMechanism): don't run,
6295 RedoParagraphs from the doublespace handling part, just set status
6296 to NEED_MORE_REFRESH. Also don't update cursor position (should be
6297 done, but perhaps not like this.)
6299 2000-03-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6301 * src/text2.C (InsertStringA): don't forget to insert a META_INSET
6302 character when inserting an inset.
6304 2000-03-12 Lars Gullik Bjønnes <larsbj@lyx.org>
6306 * src/bufferparams.C (readLanguage): now takes "default" into
6309 * src/lyx_main.C (LyX): remove the setup of lyxrc. (new)
6310 also initialize the toplevel_keymap with the default bindings from
6313 * src/buffer.C (Buffer): remove lyxrc from the parameters.
6315 * all files using lyxrc: have lyxrc as a real variable and not a
6316 pointer. remove all extern LyXRC * lyxrc. The equiv to this is
6319 * src/lyxrc.C: remove double call to defaultKeyBindings
6321 * src/toolbar.[Ch]: Let the ToolbarDefaults handle the reading of
6322 toolbar defauls using lyxlex. Remove enums, structs, functions
6325 * src/lyxrc.h: use ToolbarDefaults instead of Toolbar for storing
6326 toolbar defaults. Also store default keybindings in a map.
6328 * src/ToolbarDefaults.[Ch]: New file. This class is used for
6329 storing the toolbar defaults without any xforms dependencies.
6331 * src/insets/figinset.C: patch posted to list by Andre Poenitz
6332 applied. Changed to use iterators.
6334 2000-03-11 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
6336 * development/lyx.spec.in: Fix to ``unset LINGUAS'' line for
6337 systems that don't have LINGUAS set to begin with.
6339 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
6341 * src/text2.C (DeleteEmptyParagraphMechanism): small fix posted to
6342 the list by Dekel Tsur.
6344 2000-03-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6346 * src/insets/insetgraphics.C (GraphicxCB): declare with "C" linkage.
6347 * src/insets/form_graphics.C: ditto.
6349 * src/insets/inseturl.C (Latex): the free_spc argument is not used.
6351 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
6353 * src/bufferparams.C (readLanguage): use the new language map
6355 * src/intl.C (InitKeyMapper): use the new language map
6357 * src/lyx_gui.C (create_forms): use the new language map
6359 * src/language.[Ch]: New files. Used for holding the information
6360 about each language. Now! Use this new language map enhance it and
6361 make it really usable for our needs.
6363 2000-03-09 Dekel Tsur <dekel@math.tau.ac.il>
6365 * screen.C (ShowCursor): Removed duplicate code.
6366 (ShowManualCursor): Support for 3 cursor shapes: Bar (default),
6367 L (LTR text in RTL document), and reversed-L (RTL text in LTR document)
6369 * src/text.C (NextBreakPoint,Fill): Moved declaration of left_margin
6372 * src/text.C Added TransformChar method. Used for rendering Arabic
6373 text correctly (change the glyphs of the letter according to the
6374 position in the word)
6379 * src/lyxrc.C Added lyxrc command {language_command_begin,
6380 language_command_end,language_command_ltr,language_command_rtl,
6381 language_package} which allows the use of either arabtex or Omega
6384 * src/lyx_gui.C (init)
6386 * src/lyxrc.C Added lyxrc command screen_font_encoding_menu. Allows
6387 to use encoding for menu fonts which is different than the encoding
6390 * src/buffer.C (makeLaTeXFile): If params.language = "default",
6391 do not load the babel package.
6392 To write an English document with Hebrew/Arabic, change the document
6393 language to "english".
6395 * src/text2.C (SetCounter): Fixed appendix labels for Hebrew document
6396 (alphaCounter): changed to return char
6397 (loweralphaCounter, hebrewCounter, romanCounter): New functions
6399 * lib/lyxrc.example Added examples for Hebrew/Arabic
6402 * src/layout.C Added layout command endlabeltype
6404 * src/paragraph.C Added GetEndLabel(),LastPhysicalPar() const
6406 * src/text.C (GetVisibleRow): Draw a box at the end of proof layout
6408 2000-03-10 Lars Gullik Bjønnes <larsbj@lyx.org>
6410 * src/mathed/math_delim.C (search_deco): return a
6411 math_deco_struct* instead of index.
6413 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
6415 * All files with a USE_OSTREAM_ONLY within: removed all code that
6416 was unused when USE_OSTREAM_ONLY is defined.
6418 * src/support/lyxalgo.h (sorted): rewrote to use plain '<' instead
6419 of any less. Removed header and using.
6421 * src/text.C (GetVisibleRow): draw the string "Page Break
6422 (top/bottom)" on screen when drawing a pagebreak line.
6424 2000-03-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6426 * lib/doc/LaTeXConfig.lyx.in: add description of textclass llncs.
6428 * src/mathed/math_macro.C (draw): do some cast magic.
6431 * src/mathed/math_defs.h: change byte* argument to byte const*.
6433 * src/mathed/formulamacro.[Ch]: add free_spc to Latex() method.
6435 * src/insets/insetfoot.[Ch]: Clone() always returns an Inset* (well I
6436 know it is right to return InsetFoot* too, but cxx does not like
6439 * src/insets/insetcollapsable.[Ch] (Clone): make const.
6441 * development/lyx.spec.in: unset LINGUAS to avoid i18n problems.
6443 * src/mathed/math_delim.C: change == to proper assignment.
6445 2000-03-09 Juergen Vigna <jug@sad.it>
6447 * src/insets/insettext.C (setPos): fixed various cursor positioning
6448 problems (via mouse and cursor-keys)
6449 (LocalDispatch): added posibility to add a Ctrl-Enter inside a text
6450 inset (still a small display problem but it works ;)
6452 * src/insets/insetcollapsable.C (draw): added button_top_y and
6453 button_bottom_y to have correct values for clicking on the inset.
6455 * src/support/lyxalgo.h: commented out 'using std::less'
6457 2000-03-08 Juergen Vigna <jug@sad.it>
6459 * src/insets/insetcollapsable.C (InsetButtonRelease): Now a
6460 Button-Release event closes as it is alos the Release-Event
6463 * src/lyxfunc.C (Dispatch): forgot a break in the LFUN_INSET_ERT
6465 2000-03-07 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
6467 * lib/layouts/literate-scrap.inc: Fixed initial comment. Now we
6468 can add multiple spaces in Scrap (literate programming) styles...
6469 which, by the way, is how I got hooked on LyX to begin with.
6471 * src/mathed/formula.C (Write): Added dummy variable to an
6472 inset::Latex() call.
6473 (Latex): Add free_spacing boolean to inset::Latex()
6475 * src/mathed/formula.h (Latex): Added free_spacing boolean arg.
6477 * src/insets/lyxinset.h: Changed definition of the inset::Latex()
6478 virtual function to include the free_spacing boolean from
6479 the containing paragraph's style.
6481 * src/insets/inseturl.C, src/insets/inseturl.h (Latex):
6482 Added free_spacing boolean arg to match inset.h
6484 * src/insets/insettext.C, src/insets/insettext.h (Latex):
6485 Added free_spacing boolean arg to match inset.h
6487 * src/insets/insetspecialchar.C, src/insets/insetspecialchar.h (Latex):
6488 Added free_spacing boolean and made sure that if in a free_spacing
6489 paragraph, that we output normal space if there is a protected space.
6491 * src/insets/insetref.C, src/insets/insetref.h (Latex):
6492 Added free_spacing boolean arg to match inset.h
6494 * src/insets/insetquotes.C, src/insets/insetquotes.h (Latex):
6495 Added free_spacing boolean arg to match inset.h
6497 * src/insets/insetparent.C, src/insets/insetparent.h (Latex):
6498 Added free_spacing boolean arg to match inset.h
6500 * src/insets/insetlatexaccent.C, src/insets/insetlatexaccent.h (Latex):
6501 Added free_spacing boolean arg to match inset.h
6503 * src/insets/insetlatex.C, src/insets/insetlatex.h (Latex):
6504 Added free_spacing boolean arg to match inset.h
6506 * src/insets/insetlabel.C, src/insets/insetlabel.h (Latex): Added
6507 free_spacing boolean arg to match inset.h
6509 * src/insets/insetinfo.C, src/insets/insetinfo.h (Latex):
6510 Added free_spacing boolean arg to match inset.h
6512 * src/insets/insetinclude.C, src/insets/insetinclude.h (Latex):
6513 Added free_spacing boolean arg to match inset.h
6515 * src/insets/insetgraphics.C, src/insets/insetgraphics.h (Latex):
6516 Added free_spacing boolean arg to match inset.h
6518 * src/insets/inseterror.C, src/insets/inseterror.h (Latex):
6519 Added free_spacing boolean arg to match inset.h
6521 * src/insets/insetcommand.C, src/insets/insetcommand.h (Latex):
6522 Added free_spacing boolean arg to match inset.h
6524 * src/insets/insetbib.C, src/insets/insetbib.h (Latex): Added
6525 free_spacing boolean arg to match inset.h
6527 * src/insets/figinset.C, src/insets/figinset.h (Latex): Added
6528 free_spacing boolean arg to match inset.h
6530 * src/text2.C (DeleteEmptyParagraphMechanism): Fix this to
6531 ignore free_spacing paragraphs. The user's spaces are left
6534 * src/text.C (InsertChar): Fixed the free_spacing layout
6535 attribute behavior. Now, if free_spacing is set, you can
6536 add multiple spaces in a paragraph with impunity (and they
6537 get output verbatim).
6538 (SelectSelectedWord): Added dummy argument to inset::Latex()
6541 * src/paragraph.C (TeXOnePar): Added dummy args to inset::Latex(...)
6544 * src/lyxfunc.C (Dispatch): Hard-spaces input in free_spacing
6545 paragraph layouts now only input a simple space instead.
6546 Special character insets don't make any sense in free-spacing
6549 * src/buffer.C (parseSingleLyXformat2Token): Code to convert
6550 hard-spaces in the *input* file to simple spaces if the layout
6551 is free-spacing. This converts old files which had to have
6552 hard-spaces in free-spacing layouts where a simple space was
6554 (writeFileAscii): Added free_spacing check to pass to the newly
6555 reworked inset::Latex(...) methods. The inset::Latex() code
6556 ensures that hard-spaces in free-spacing paragraphs get output
6557 as spaces (rather than "~").
6559 2000-03-09 Lars Gullik Bjønnes <larsbj@lyx.org>
6561 * src/mathed/math_delim.C (draw): draw the empty placeholder
6562 delims with a onoffdash line.
6563 (struct math_deco_compare): struct that holds the "functors" used
6564 for the sort and the binary search in math_deco_table.
6565 (class init_deco_table): class used for initial sort of the
6567 (search_deco): use lower_bound to do a binary search in the
6570 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
6572 * src/lyxrc.C: a small secret thingie...
6574 * src/lyxlex.C (printTable): changed to take a ostream as paramter
6575 and to not flush the stream as often as it used to.
6577 * src/support/lyxalgo.h: new file
6578 (sorted): template function used for checking if a sequence is
6579 sorted or not. Two versions with and without user supplied
6580 compare. Uses same compare as std::sort.
6582 * src/lyxlex.C (LyXLex): check if the table is sorted, if not sort
6583 it and give warning on lyxerr.
6585 (struct compare_tags): struct with function operators used for
6586 checking if sorted, sorting and lower_bound.
6587 (search_kw): use lower_bound instead of manually implemented
6590 2000-03-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6592 * src/insets/insetcollapsable.h: fix Clone() declaration.
6593 * src/insets/insetfoot.h: ditto.
6595 * src/insets/lyxinset.h: remove an extra comma at the end of enum.
6597 2000-03-08 Juergen Vigna <jug@sad.it>
6599 * src/insets/lyxinset.h: added owner call which tells us if
6600 this inset is inside another inset. Changed also the return-type
6601 of Editable to an enum so it tells clearer what the return-value is.
6603 * src/insets/insettext.C (computeTextRows): fixed computing of
6604 textinsets which split automatically on more rows.
6606 * src/insets/insetert.[Ch]: changed this to be of BaseType
6609 * src/insets/insetfoot.[Ch]: added footnote inset
6611 * src/insets/insetcollapsable.[Ch]: added this BaseClass for
6612 collapsable insets (like footnote, ert, ...)
6614 2000-03-08 Lars Gullik Bjønnes <larsbj@lyx.org>
6616 * src/lyxdraw.h: remvoe file
6618 * src/lyxdraw.C: remove file
6620 * src/insets/insettext.C: added <algorithm>.
6622 2000-03-07 Lars Gullik Bjønnes <larsbj@lyx.org>
6624 * src/mathed/math_panel.C (delim_cb): case MM_OK use string stream
6625 (matrix_cb): case MM_OK use string stream
6627 * src/mathed/formula.C (LocalDispatch): case LFUN_SETXY use string
6630 * src/mathed/math_macro.C (draw): use string stream
6631 (Metrics): use string stream
6633 * src/paragraph.C (TeXFootnote): for case LyXParagraph::FIG, write
6634 directly to the ostream.
6636 * src/vspace.C (asString): use string stream.
6637 (asString): use string stream
6638 (asLatexString): use string stream
6640 * src/lyx_cb.C (UpdateLayoutDocument): use string stream for
6641 setting Spacing::Other.
6643 * src/LaTeXFeatures.C (getPackages): use string stream instead of
6644 sprintf when creating the stretch vale.
6646 * src/text2.C (alphaCounter): changed to return a string and to
6647 not use a static variable internally. Also fixed a one-off bug.
6648 (SetCounter): changed the drawing of the labels to use string
6649 streams instead of sprintf.
6651 * src/support/lyxmanip.h: rewrite the newlineanDepth ostream
6652 manipulator to use a scheme that does not require library support.
6653 This is also the way it is done in the new GNU libstdc++. Should
6654 work with DEC cxx now.
6656 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
6658 * src/mathed/math_inset.h (Write(ostream & os): add a space at the
6659 end. This fixes a bug.
6661 * src/mathed (all files concerned with file writing): apply the
6662 USE_OSTREAM_ONLY changes to mathed too.
6664 * src/support/DebugStream.h: make the constructor explicit.
6666 * src/lyxfont.C (latexWriteStartChanges): small bug related to
6667 count and ostream squashed.
6669 2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6671 * src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
6673 * src/buffer.C (makeLaTeXFile): add a .c_str(), since
6674 ostringstream uses STL strings, and we might not.
6676 * src/insets/insetspecialchar.C: add using directive.
6677 * src/insets/insettext.C: ditto.
6679 2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
6681 * lib/layouts/seminar.layout: feeble attempt at a layout for
6682 seminar.cls, far from completet and could really use some looking
6683 at from people used to write layout files.
6685 * src/support/lyxmanip.h (newlineAndDepth): ostream manipulator to
6686 use instead of the AddNewlineAndDepth funtion in lyx_cb.C. This is
6687 a lot nicer and works nicely with ostreams.
6689 * src/mathed/formula.C (draw): a slightly different solution that
6690 the one posted to the list, but I think this one works too. (font
6691 size wrong in headers.)
6693 * src/insets/insettext.C (computeTextRows): some fiddling on
6694 Jürgens turf, added some comments that he should read.
6696 * src/lyxrc.C: remove all traces of RC_NOMENUACCELERATORS, never
6697 used and it gave compiler warnings.
6698 RC_SHOW_BANNER + "\\show_banner" added, also to reading and
6701 * src/lyx_gui.C (create_forms): do the right thing when
6702 show_banner is true/false.
6704 * src/lyx_cb.C (TimerCB): no need to close or do anything if
6705 show_banner is false.
6707 * most file writing files: Now use iostreams to do almost all of
6708 the writing. Also instead of passing string &, we now use
6709 stringstreams. mathed output is still not adapted to iostreams.
6710 This change can be turned off by commenting out all the occurences
6711 of the "#define USE_OSTREAM_ONLY 1" lines.
6713 * src/WorkArea.C (createPixmap): don't output debug messages.
6714 (WorkArea): don't output debug messages.
6716 * lib/lyxrc.example: added a comment about the new variable
6719 * development/Code_rules/Rules: Added some more commente about how
6720 to build class interfaces and on how better encapsulation can be
6723 2000-03-03 Juergen Vigna <jug@sad.it>
6725 * src/insets/insetert.C (InsetERT): Now ERT-insets break row
6726 automatically with the width of the LyX-Window
6728 * src/insets/insettext.C (computeTextRows): fixed update bug in
6729 displaying text-insets (scrollvalues where not initialized!)
6731 2000-03-02 Lars Gullik Bjønnes <larsbj@lyx.org>
6733 * src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
6734 id in the check of the result from lower_bound is not enough since
6735 lower_bound can return last too, and then res->id will not be a
6738 * all insets and some code that use them: I have conditionalized
6739 removed the Latex(string & out, ...) this means that only the
6740 Latex(ostream &, ...) will be used. This is a work in progress to
6741 move towards using streams for all output of files.
6743 * src/text.C (GetColumnNearX): initialize LyXParagraph::size_type
6746 2000-03-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6748 * src/mathed/math_utils.C (MathedLookupBOP): fix the search
6749 routine (this fixes bug where greek letters were surrounded by too
6752 * src/support/filetools.C (findtexfile): change a bit the search
6753 algorithm, to fix bug introduced in 1.1.4. Note that --format is
6754 no longer passed to kpsewhich, we may have to change that later.
6756 * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
6757 warning options to avoid problems with X header files (from Angus
6759 * acinclude.m4: regenerated.
6761 2000-03-02 Juergen Vigna <jug@sad.it>
6763 * src/insets/insettext.C (WriteParagraphData): Using the
6764 par->writeFile() function for writing paragraph-data.
6765 (Read): Using buffer->parseSingleLyXformat2Token()-function
6766 for parsing paragraph data!
6768 * src/buffer.C (readLyXformat2): removed all parse data and using
6769 the new parseSingleLyXformat2Token()-function.
6770 (parseSingleLyXformat2Token): added this function to parse (read)
6771 lyx-file-format (this is called also from text-insets now!)
6773 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
6775 * src/paragraph.C (BeginningOfMainBody): initialize previous_char
6778 * src/lyxfunc.C (Dispatch(LFUN_MENUSEARCH)): Do the Search dialog
6779 directly instead of going through a func. One very bad thing: a
6780 static LyXFindReplace, but I don't know where to place it.
6782 * src/lyxfr1.C (GetCurrentSelectionAsString): rewritten to use a
6783 string instead of char[]. Also changed to static.
6784 (GetSelectionOrWordAtCursor): changed to static inline
6785 (SetSelectionOverLenChars): ditto.
6787 * src/lyxfr0.[Ch] src/lyxfr1.[Ch]: rewrite to get rid of
6788 current_view and global variables. both classes has changed names
6789 and LyXFindReplace is not inherited from SearchForm.
6791 * src/lyx_gui_misc.C (CloseAllBufferRelatedPopups): remove the
6792 fl_form_search form.
6794 * src/lyx_gui.C (create_forms): removed the fl_form_search form.
6796 2000-03-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6798 * lib/bind/*.bind: make sure 'buffer-previous' function is not
6799 bound (from Kayvan).
6801 * src/insets/Makefile.am (libinsets_la_SOURCES): add BoundingBox.h.
6803 * lib/layouts/stdletter.inc: fix line spacing in Send_To_Address.
6805 2000-03-01 Lars Gullik Bjønnes <larsbj@lyx.org>
6807 * some things that I should comment but the local pub says head to
6810 * comment out all code that belongs to the Roff code for Ascii
6811 export of tables. (this is unused)
6813 * src/LyXView.C: use correct type for global variable
6814 current_layout. (LyXTextClass::size_type)
6816 * some code to get the new insetgraphics closer to working I'd be
6817 grateful for any help.
6819 * src/BufferView2.C (insertInset): use the return type of
6820 NumberOfLayout properly. (also changes in other files)
6822 * src/insets/insetspecialchar.[Ch]: add the PROTECTED SEPARATOR to
6823 this as a test. I want to know what breaks because of this.
6825 * src/BufferView.[Ch] (tripleClick): name change from trippleClick.
6827 2000-02-29 Lars Gullik Bjønnes <larsbj@lyx.org>
6829 * lib/layouts/stdlists.inc: changed the lyxlist latex definition
6830 to use a \makebox in the label, this allows proper justification
6831 with out using protected spaces or multiple hfills. Now it is
6832 "label" for left justified, "\hfill label\hfill" for center, and
6833 "\hfill label" for right justified. UserGuide.lyx sec. 3.3.6.5
6834 should be changed accordingly.
6836 2000-02-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6838 * src/lyxtext.h: change SetLayout() to take a
6839 LyXTextClass::size_type instead of a char (when there is more than
6840 127 layouts in a class); also change type of copylayouttype.
6841 * src/text2.C (SetLayout): ditto.
6842 * src/LyXView.C (updateLayoutChoice): ditto.
6844 * src/LaTeX.C (scanLogFile): errors where the line number was not
6845 given just after the '!'-line were ignored (from Dekel Tsur).
6847 * lib/lyxrc.example: fix description of \date_insert_format
6849 * lib/layouts/llncs.layout: new layout, contributed by Martin
6852 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
6854 * config/lyxinclude.m4 (LYX_PROG_CXX): remove case support for gcc
6855 2.7.* and add case support for gcc 2.96*. Gcc 2.96 only exists in
6856 cvs at gcc.gnu.org (currently it fails with ICE on insetbib.C,
6857 insetindex.C, insetloa.C, insettext.C, filetools.C, BufferView.C,
6858 BufferView2.C, LyXView.C, buffer.C, lyx_cb.C, lyxfunc.C,
6859 paragraph.C, text.C, text2.C)
6861 2000-02-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6863 * src/insets/insettext.C (LocalDispatch): remove extra break
6866 * src/insets/insetert.[Ch] (Clone): change return value to Inset*
6867 * src/insets/insettext.[Ch] (Clone): change return value to Inset*
6869 * src/mathed/formulamacro.[Ch] (draw): add missing const qualifier
6870 * src/insets/insettext.[Ch] (GetCursorPos): ditto
6872 * src/insets/insetbib.h: move InsetBibkey::Holder and
6873 InsetCitation::Holder in public space.
6875 2000-02-25 Lars Gullik Bjønnes <larsbj@lyx.org>
6877 * src/insets/insettext.h: small change to get the new files from
6878 Juergen to compile (use "string", not "class string").
6880 * src/insets/insettext.[Ch], src/insets/insertert.[Ch]: use string
6881 const & as parameter to LocalDispatch, use LyXFont const & as
6882 paramter to some other func. This also had impacto on lyxinsets.h
6883 and the two mathed insets.
6885 2000-02-24 Juergen Vigna <jug@sad.it>
6888 * src/commandtags.h:
6890 * src/lyxfunc.C: added code for LFUN_INSET_ERT and LFUN_INSET_TEXT
6894 * src/BufferView2.C: added/updated code for various inset-functions
6896 * src/insets/insetert.[Ch]: added implementation of InsetERT
6898 * src/insets/insettext.[Ch]: added implementation of InsetText
6900 * src/insets/inset.C (Edit): added "unsigned int button" parameter
6901 (draw): added preliminary code for inset scrolling not finshed yet
6903 * src/insets/inset.C (LocalDispatch): changed arg parameter to string
6904 as it is in lyxfunc.C now
6906 * src/insets/lyxinset.h: Added functions for text-insets
6908 2000-02-22 Lars Gullik Bjønnes <larsbj@lyx.org>
6910 * src/lyx_cb.C src/UpdateInset.[Ch]: move the updateinsetlist into
6911 BufferView and reimplement the list as a queue put inside its own
6914 * src/bufferlist.[Ch] (updateInset): remove func, not needed.
6916 * several files: use the new interface to the "updateinsetlist"
6918 * src/WorkArea.C (work_area_handler): call BufferView::doubleClick
6920 (work_area_handler): call BufferView::trippleClick on trippleclick.
6922 * src/BufferView.C (doubleClick): new function, selects word on
6924 (trippleClick): new function, selects line on trippleclick.
6926 2000-02-22 Allan Rae <rae@lyx.org>
6928 * lib/bind/xemacs.bind: buffer-previous not supported
6930 2000-02-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6932 * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
6935 2000-02-20 Lars Gullik Bjønnes <larsbj@lyx.org>
6937 * src/bufferlist.C: get rid of current_view from this file
6939 * src/spellchecker.C: get rid of current_view from this file
6941 * src/vspace.C: get rid of current_view from this file
6942 (inPixels): added BufferView parameter for this func
6943 (asLatexCommand): added a BufferParams for this func
6945 * src/text.C src/text2.C: get rid of current_view from these
6948 * src/lyxfont.C (getFontDirection): move this function here from
6951 * src/bufferparams.C (getDocumentDirection): move this function
6954 * src/paragraph.C (getParDirection): move this function here from
6956 (getLetterDirection): ditto
6958 2000-02-18 Lars Gullik Bjønnes <larsbj@lyx.org>
6960 * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
6961 resize due to wrong pixmap beeing used. Also took the opurtunity
6962 to make the LyXScreen stateless on regard to WorkArea and some
6963 general cleanup in the same files.
6965 2000-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
6967 * src/Makefile.am: add missing direction.h
6969 * src/PainterBase.h: made the width functions const.
6971 * lib/kbd/iso8859-1.cdef: fix a couple of entries and define some
6974 * src/insets/insetcommand.C (draw): draw Editable as buttons.
6976 * src/insets/insetlatexaccent.C (draw): make the accents draw
6977 better, at present this will only work well with iso8859-1.
6979 * several files: remove the old drawing code, now we use the new
6982 * several files: remove support for mono_video, reverse_video and
6985 2000-02-17 Juergen Vigna <jug@sad.it>
6987 * src/mathed/math_cursor.[Ch] (SelGetArea): Changed form int * to
6988 int ** as we have to return the pointer, otherwise we have only
6989 NULL pointers in the returning function.
6991 2000-02-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
6993 * src/LaTeX.C (operator()): quote file name when running latex.
6995 2000-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
6997 * src/toolbar.C (set): use fl_set_object_helper for the tooltop
6998 (bubble tip), this removes our special handling of this.
7000 * Remove all code that is unused now that we have the new
7001 workarea. (Code that are not active when NEW_WA is defined.)
7003 * Make the uses of XSync not conditionalized on define USE_XSYNC.
7005 2000-02-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7007 * src/lyxfunc.C (Dispatch): fix LFUN_LAYOUT when giving a
7008 nonexisting layout; correctly redirect obsoleted layouts.
7010 * lib/lyxrc.example: document \view_dvi_paper_option
7012 * src/lyxrc.[Ch]: add support for the \view_dvi_paper_option
7015 * src/lyx_cb.C (RunScript): handle $$FName for command names.
7016 (PreviewDVI): handle the view_dvi_paper_option variable.
7017 [Both from Roland Krause]
7019 2000-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
7021 * src/Painter.C (text(int,int,char,LyXFont)): call text(int, int,
7022 char const *, int, LyXFont)
7023 (text(int, int, string, LyXFont)): ditto
7025 * src/text.C (InsertCharInTable): attempt to fix the double-space
7026 feature in tables too.
7027 (BackspaceInTable): ditto.
7028 (GetVisibleRow): make bottom pagebreak line be a onoff line.
7030 2000-02-11 Lars Gullik Bjønnes <larsbj@lyx.org>
7032 * src/text2.C (owner): only complain if owner_ is set and bv != 0
7034 * src/BufferView.C (resizeCurrentBuffer): set the owner of the
7035 newly found text in textcache to this.
7036 (buffer): set the owner of the text put into the textcache to 0
7038 * src/insets/figinset.C (draw): fixed the drawing of figures with
7041 * src/text.C src/mathed/math_cursor.C: nailed and fixed the
7042 drawing of mathframe, hfills, protected space, table lines. I have
7043 now no outstanding drawing problems with the new Painter code.
7045 2000-02-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7047 * src/PainterBase.C (ellipse, circle): do not specify the default
7050 * src/LColor.h: add using directive.
7052 * src/Painter.[Ch]: change return type of methods from Painter& to
7053 PainterBase&. Add a using directive.
7055 * src/WorkArea.C: wrap xforms callbacks in C functions
7058 * lib/layouts/foils.layout: font fix and simplifications from Carl
7061 2000-02-10 Lars Gullik Bjønnes <larsbj@lyx.org>
7063 * a lot of files: The Painter, LColor and WorkArea from the old
7064 devel branch has been ported to lyx-devel. Some new files and a
7065 lot of #ifdeffed code. The new workarea is enabled by default, but
7066 if you want to test the new Painter and LColor you have to compile
7067 with USE_PAINTER defined (do this in config.h f.ex.) There are
7068 still some rought edges, and I'd like some help to clear those
7069 out. It looks stable (loads and displays the Userguide very well).
7072 2000-02-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7074 * src/buffer.C (pop_tag): revert to the previous implementation
7075 (use a global variable for both loops).
7077 * lib/kbd/iso8859-1.cdef: fix definition for \"{e}.
7079 * src/lyxrc.C (LyXRC): change slightly default date format.
7081 * src/paragraph.C (TeXOnePar): Generate a correct latex file when
7082 there is an English text with a footnote that starts with a Hebrew
7083 paragraph, or vice versa.
7084 (TeXFootnote): ditto.
7086 * src/text.C (LeftMargin): allow for negative values for
7087 parindent. Thanks to Philip Lehman <lehman@gmx.net> for testing
7090 * src/lyx_gui.C (create_forms): add iso88595 as a possible choice
7091 for input encoding (cyrillic)
7093 2000-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7095 * src/lyx_gui.C (create_forms): make combo box taller (from Dekel
7098 * src/toolbar.C (set): ditto
7099 * src/insets/insetbib.C (create_form_citation_form): ditto
7101 * lib/CREDITS: added Dekel Tsur.
7103 * lib/kbd/hebrew.kmap, lib/kbd/null.kmap,
7104 lib/layouts/heb-article.layout, lib/layouts/heb-letter.layout: new
7105 hebrew supports files from Dekel Tsur.
7107 * lib/kbd/iso8859-8.cdef: new file, from Tzafrir Cohen
7108 <tzafrir@technion.ac.il>
7110 * src/lyxrc.C: put \date_insert_format at the right place.
7112 * src/buffer.C (makeLaTeXFile): fix the handling of
7113 BufferParams::sides when writing out latex files.
7115 * src/BufferView2.C: add a "using" directive.
7117 * src/support/lyxsum.C (sum): when we use lyxstring,
7118 ostringstream::str needs an additional .c_str().
7120 2000-02-07 Lars Gullik Bjønnes <larsbj@lyx.org>
7122 * src/support/filetools.C (ChangeExtension): patch from Etienne
7125 * src/TextCache.C (show): remove const_cast and make second
7126 parameter non-const LyXText *.
7128 * src/TextCache.h: use non const LyXText in show.
7130 * src/paragraph.C (SimpleTeXSpecialChars): patch to make urls work
7133 2000-02-04 Lars Gullik Bjønnes <larsbj@lyx.org>
7135 * src/support/lyxsum.C: rework to be more flexible.
7137 * several places: don't check if a pointer is 0 if you are going
7140 * src/text.C: remove some dead code.
7142 * src/insets/figinset.C: remove some dead code
7144 * src/buffer.C: move the BufferView funcs to BufferView2.C
7145 remove all support for insetlatexdel
7146 remove support for oldpapersize stuff
7147 made some member funcs const
7149 * src/kbmap.C: use a std::list to store the bindings in.
7151 * src/BufferView2.C: new file
7153 * src/kbsequence.[Ch]: new files
7155 * src/LyXAction.C + others: remove all trace of buffer-previous
7157 * src/Bullet.[Ch]: moved ITEMIZE_DEFAULTS inside Bullet.C so that we
7158 only have one copy in the binary of this table.
7160 * hebrew patch: moved some functions from LyXText to more
7161 appropriate places. (LyXParagraph, BufferParams, LyXFont)
7163 * several files: remove support for XForms older than 0.88
7165 remove some #if 0 #endif code
7167 * src/TextCache.[Ch]: new file. Holds the textcache.
7169 * src/BufferView.C: changes to use the new TextCache interface.
7170 (waitForX): remove the now unused code.
7172 * src/BackStack.h: remove some commented code
7174 * lib/bind/emacs.bind: remove binding for buffer-previous
7176 2000-02-03 Lars Gullik Bjønnes <larsbj@lyx.org>
7178 * applied the hebrew patch.
7180 * src/lyxrow.h: make sure that all Row variables are initialized.
7182 * src/text2.C (TextHandleUndo): comment out a delete, this might
7183 introduce a memory leak, but should also help us to not try to
7184 read freed memory. We need to look at this one.
7186 * src/paragraph.C (SimpleDocBookOneTablePar): initialize column to 0
7187 (LyXParagraph): initalize footnotekind.
7189 * src/lyxrc.C (output): added case RC_DATE_INSERT_FORMAT. Jug
7190 forgot this when applying the patch. Please heed the warnings.
7192 * src/BufferView.C (buffer): a fix for the buffer-reload problem
7193 (aka. reformat problem)
7195 * src/bufferlist.C (exists): made const, and use const_iterator
7196 (isLoaded): new func.
7197 (release): use std::find to find the correct buffer.
7199 * src/bufferlist.h: made getState a const func.
7200 made empty a const func.
7201 made exists a const func.
7204 2000-02-01 Juergen Vigna <jug@sad.it>
7206 * src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
7208 * po/it.po: updated a bit the italian po file and also changed the
7209 'file nuovo' for newfile to 'filenuovo' without a space, this did
7212 * src/lyxrc.C (LyXRC): added support for a default insert_date_format
7213 for the new insert_date command.
7215 * src/lyxfunc.C (Dispatch): added support for a insert_date function
7216 from jdblair, to insert a date into the current text conforming to
7217 a strftime format (for now only considering the locale-set and not
7218 the document-language).
7220 2000-01-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7222 * src/lyxfont.C (textWidth): hopefully better fix for the Array
7223 Bounds Read error seen by purify. The problem was that islower is
7224 a macros which takes an unsigned char and uses it as an index for
7225 in array of characters properties (and is thus subject to the
7229 * src/lyx_cb.C (UpdateLayoutDocument): use a switch to set
7230 correctly the paper sides radio buttons.
7231 (UpdateDocumentButtons): ditto.
7233 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
7235 * src/kbmap.C (getsym + others): change to return unsigned int,
7236 returning a long can give problems on 64 bit systems. (I assume
7237 that int is 32bit on 64bit systems)
7239 2000-01-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7241 * src/lyxfunc.C (processKeyEvent): fix a the buffer returned by
7242 LyXLookupString to be zero-terminated. Really fixes problems seen
7245 2000-01-27 Lars Gullik Bjønnes <larsbj@lyx.org>
7247 * src/lyxfunc.C (processKeyEvent): "fix" so that we never try to
7248 write a (char*)0 to the lyxerr stream.
7250 * src/lastfiles.C: move algorithm before the using statemets.
7252 2000-01-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7254 * src/lastfiles.C: move using directives in global scope (egcs 1.x
7255 complains otherwise).
7256 * src/table.C: ditto
7258 * lib/reLyX/reLyX.in: use variable @LYX_DIR@ as built-in data
7261 * lib/reLyX/configure.in (LYX_DIR): re-introduce this variable
7262 that I removed earlier... It is really needed.
7264 * lib/examples/multicol.lyx: new file, splitted from Extended.lyx.
7266 2000-01-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7268 * INSTALL: update xforms home page URL.
7270 * lib/configure.m4: fix a bug with unreadable layout files.
7272 * src/table.C (calculate_width_of_column): add "using std::max"
7275 2000-01-25 Lars Gullik Bjønnes <larsbj@lyx.org>
7277 * several files: marked several lines with "DEL LINE", this is
7278 lines that can be deleted without changing anything.
7279 if (<ptr>) // DEL LINE /* this line is _never_ needed. Delete
7280 checks this anyway */
7283 * src/insets/insetlatexaccent.C: Changed some debugs to Debug::KEY
7285 * src/DepTable.C (update): add a "+" at the end when the checksum
7286 is different. (debugging string only)
7288 * src/paragraph.C (ReturnNextInsetPointer): fix bug that caused
7289 the next inset to not be displayed. This should also fix the list
7290 of labels in the "Insert Crossreference" dialog.
7292 2000-01-24 Lars Gullik Bjønnes <larsbj@lyx.org>
7294 * src/support/LSubstring.C (LSubstring): set pos to string::npos
7295 when regex was not found.
7297 * src/support/lstrings.C (lowercase): use handcoded transform always.
7300 * src/text.C (Delete): fixed the crash. cursor.par->prev and
7301 old_cursor.par->prev could be 0.
7303 * several files: changed post inc/dec to pre inc/dec
7305 * src/lastfiles.C (writeFile): use ostream_iterator and copy to
7306 write the lastfiles to file.
7308 * src/BufferView.C (buffer): only show TextCache info when debugging
7310 (resizeCurrentBuffer): ditto
7311 (workAreaExpose): ditto
7313 * lib/kbd/iso8859-7.cdef: changed to new quoting scheme
7315 * lib/kbd/iso8859-2.cdef: changed to new quoting scheme
7317 * src/insets/insetlatexaccent.C (Draw): make the display of UMLAUT
7318 a bit better by removing the special case for \i and \j.
7320 2000-01-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7322 * src/lyx_main.C (easyParse): remove test for bad comand line
7323 options, since this broke all xforms-related parsing.
7325 * src/kbmap.C (getsym): set return type to unsigned long, as
7326 declared in header. On an alpha, long is _not_ the same as int.
7328 * src/support/LOstream.h: add a "using std::flush;"
7330 * src/insets/figinset.C: ditto.
7332 2000-01-21 Lars Gullik Bjønnes <larsbj@lyx.org>
7334 * src/bufferlist.C (write): use blinding fast file copy instead of
7335 "a char at a time", now we are doing it the C++ way.
7337 * src/insets/figinset.C: get rid of struct pidwaitpit, use a
7338 std::list<int> instead.
7339 (addpidwait): reflect move to std::list<int>
7340 (sigchldchecker): ditto
7342 * src/bmtable.c (fl_set_bmtable_file): have arguments in the X r5
7345 * src/paragraph.C (FirstPhysicalPar): remove assert and comment
7346 that obviously was wrong...
7348 * src/lyxfont.C (textWidth): have c as char c[2] instead of char
7349 c, this avoids warnings with purify and islower.
7351 * src/insets/figinset.C: rename struct queue to struct
7352 queue_element and rewrite to use a std::queue. gsqueue is now a
7353 std::queue<queue_element>
7354 (runqueue): reflect move to std::queue
7357 * src/support/lstrings.h (tostr): specialize for bool, otherwise
7358 we would get "1" "0" instead of "true" "false. Also make the tostr
7361 2000-01-21 Juergen Vigna <jug@sad.it>
7363 * src/buffer.C (writeFileAscii): Disabled code for special groff
7364 handling of tabulars till I fix this in table.C
7366 2000-01-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7368 * src/support/mkdir.C (mkdir): change second argument of mkdir to
7370 * src/support/lyxlib.h: ditto.
7372 2000-01-20 Lars Gullik Bjønnes <larsbj@lyx.org>
7374 * src/insets/insetlatexaccent.C (Draw): make accents on top of 'i'
7375 and 'j' look better. This might fix the "macron" bug that has been
7378 * src/support/lstrings.[Ch] (tostr): reimplement all the tostr
7379 functions as one template function. Delete the old versions.
7381 * src/support/lyxsum.C: move using std::ifstream inside
7384 * src/support/Makefile.am (libsupport_la_SOURCES): added mkdir.C
7387 * src/mathed/formulamacro.C: delete #include "bufferlist.h" never used
7389 * src/mathed/formula.C: delete #include "bufferlist.h" never used
7391 * src/insets/figinset.C (InitFigures): use new instead of malloc
7392 to allocate memory for figures and bitmaps.
7393 (DoneFigures): use delete[] instead of free to deallocate memory
7394 for figures and bitmaps.
7395 (runqueue): use new to allocate
7396 (getfigdata): use new/delete[] instead of malloc/free
7397 (RegisterFigure): ditto
7399 * some files: moved some declarations closer to first use, small
7400 whitespace changes use preincrement instead of postincrement where
7401 it does not make a difference.
7403 * src/kbmap.[Ch]: delete code according to define NO_HASH, it is a
7404 step on the way to use stl::containers for key maps.
7406 * src/bufferlist.h: add a typedef for const_iterator and const
7407 versions of begin and end.
7409 * src/bufferlist.[Ch]: change name of member variable _state to
7410 state_. (avoid reserved names)
7412 (getFileNames): returns the filenames of the buffers in a vector.
7414 * configure.in (ALL_LINGUAS): added ro
7416 * src/support/putenv.C: new file
7418 * src/support/mkdir.C: new file
7420 2000-01-20 Allan Rae <rae@lyx.org>
7422 * lib/layouts/IEEEtran.layout: Added several theorem environments
7424 * lib/templates/IEEEtran.lyx: Example theorem environments and a
7425 couple of minor additions.
7427 * lib/doc/LaTeXConfig.lyx.in: Use URL insets for ftp sites
7428 (except for those in footnotes of course)
7430 2000-01-19 Lars Gullik Bjønnes <larsbj@lyx.org>
7432 * src/lyxlookup.C (CloseLyXLookup): set xic=0; after destruction.
7434 * src/mathed/math_utils.C (MathedLookupBOP): rewrite to use
7435 std::sort and std::lower_bound instead of qsort and handwritten
7437 (struct compara): struct that holds the functors used by std::sort
7438 and std::lower_bound in MathedLookupBOP.
7440 2000-01-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7442 * src/support/LAssert.h: do not do partial specialization. We do
7445 * src/support/lyxlib.h: note that lyx::getUserName() and
7446 lyx::date() are not in use right now. Should these be suppressed?
7448 * src/buffer.C (makeLaTeXFile): we do not need the user name here.
7449 (makeLinuxDocFile): do not put date and user name in linuxdoc
7452 * src/support/lyxlib.h (kill): change first argument to long int,
7453 since that's what solaris uses.
7455 * src/support/kill.C (kill): fix declaration to match prototype.
7457 * config/lyxinclude.m4 (LYX_CXX_NAMESPACES): fix the macro to
7458 actually check whether namespaces are supported. This is not what
7461 * src/support/lyxsum.C: add a using directive.
7463 2000-01-17 Lars Gullik Bjønnes <larsbj@lyx.org>
7465 * src/support/kill.C: if we have namespace support we don't have
7466 to include lyxlib.h.
7468 * src/support/lyxlib.h: use namespace lyx if supported.
7470 2000-01-14 Lars Gullik Bjønnes <larsbj@lyx.org>
7472 * src/support/date.C: new file
7474 * src/support/chdir.C: new file
7476 * src/support/getUserName.C: new file
7478 * src/support/getcwd.C: new file
7480 * src/support/abort.C: new file
7482 * src/support/kill.C: new file
7484 * src/support/lyxlib.h: moved all the functions in this file
7485 insede struct lyx. Added also kill and abort to this struct. This
7486 is a way to avoid the "kill is not defined in <csignal>", we make
7487 C++ wrappers for functions that are not ANSI C or ANSI C++.
7489 * src/support/lyxsum.C (sum): use #ifdef MODERN_STL_STREAMS
7490 instead of #if __GLIBCPP__. Since lyxsum is now put inside struct
7491 lyx it has been renamed to sum.
7493 2000-01-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7495 * src/text.C: add using directives for std::min and std::max.
7497 2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7499 * src/texrow.C (getIdFromRow): actually return something useful in
7500 id and pos. Hopefully fixes the bug with positionning of errorbox
7503 * src/lyx_main.C (easyParse): output an error and exit if an
7504 incorrect command line option has been given.
7506 * src/spellchecker.C (ispell_check_word): document a memory leak.
7508 * src/bufferlist.C (write): fix mismatched allocation/deletion,
7509 where a "struct utimbuf" is allocated with "new" and deleted with
7512 2000-01-13 Lars Gullik Bjønnes <larsbj@lyx.org>
7514 * src/text2.C (CutSelection): don't delete double spaces.
7515 (PasteSelection): ditto
7516 (CopySelection): ditto
7518 * src/text.C (Backspace): don't delete double spaces.
7520 * src/lyxlex.C (next): fix a bug that were only present with
7521 conformant std::istream::get to read comment lines, use
7522 std::istream::getline instead. This seems to fix the problem.
7524 2000-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
7526 * src/text2.C (DeleteEmptyParagraphMechanism): fix for the "not
7527 allowed to insert space before space" editing problem. Please read
7528 commends at the beginning of the function. Comments about usage
7531 * src/text.C (InsertChar): fix for the "not allowed to insert
7532 space before space" editing problem.
7534 * src/text2.C (DeleteEmptyParagraphMechanism): when
7535 IsEmptyTableRow can only return false this last "else if" will
7536 always be a no-op. Commented out.
7538 * src/text.C (RedoParagraph): As far as I can understand tmp
7539 cursor is not really needed.
7541 * src/lyxtext.[Ch] (IsEmptyTableCell): commented out. As used at
7542 present it could only return false anyway.
7543 (several functions): Did something not so smart...added a const
7544 specifier on a lot of methods.
7546 * src/paragraph.C (BreakParagraph): removed the tmp->text.reserve
7547 and add a tmp->text.resize. The LyXParagraph constructor does the
7549 (BreakParagraphConservative): ditto
7551 * src/support/path.h (Path): add a define so that the wrong usage
7552 "Path("/tmp") will be flagged as a compilation error:
7553 "`unnamed_Path' undeclared (first use this function)"
7555 2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7557 * config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
7558 which was bogus for several reasons.
7560 * src/LaTeX.C (scanAux): fix the regular expression used to scan
7564 * autogen.sh: do not use "type -path" (what's that anyway?).
7566 * src/support/filetools.C (findtexfile): remove extraneous space
7567 which caused a kpsewhich warning (at least with kpathsea version
7570 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
7572 * src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
7574 * src/insets/Makefile.am (noinst_LTLIBRARIES): use .la
7576 * src/Makefile.am (lyx_DEPENDENCIES): switch back to .la libs
7578 2000-01-11 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7580 * src/paragraph.C (BreakParagraph): do not reserve space on text
7581 if we don't need to (otherwise, if pos_end < pos, we end up
7582 reserving huge amounts of memory due to bad unsigned karma).
7583 (BreakParagraphConservative): ditto, although I have not seen
7584 evidence the bug can happen here.
7586 * src/lyxparagraph.h: add a using std::list.
7588 2000-01-11 Juergen Vigna <jug@sad.it>
7590 * src/menus.C (MenuDocu): output an Alert if the documentation-file
7593 2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
7595 * src/vc-backend.C (doVCCommand): change to be static and take one
7596 more parameter: the path to chdir too be fore executing the command.
7597 (retrive): new function equiv to "co -r"
7599 * src/bufferlist.C (loadLyXFile): implement the missing parts if
7600 file_not_found_hook is true.
7602 * src/lyxvc.C (file_not_found_hook): implement file_not_found_hook.
7604 * src/support/filetools.C (IsFileWriteable): use FileInfo to check
7605 if a file is readwrite,readonly...anything else.
7607 2000-01-10 Lars Gullik Bjønnes <larsbj@lyx.org>
7609 * src/lyx_cb.C (MakeLaTeXOutput): name change from MakeDVIOutput
7610 (CreatePostscript): name change from MenuRunDVIPS (or something)
7611 (PreviewPostscript): name change from MenuPreviewPS
7612 (PreviewDVI): name change from MenuPreviewDVI
7614 * lib/lyxrc.example: added \pdflatex_command, \pdf_mode,
7615 \view_pdf_command., \pdf_to_ps_command
7617 * lib/configure.m4: added search for PDF viewer, and search for
7618 PDF to PS converter.
7619 (lyxrc.defaults output): add \pdflatex_command,
7620 \view_pdf_command and \pdf_to_ps_command.
7622 * src/lyx_cb.C (MenuPreviewDVI): renamed from MenuPreview.
7624 * src/bufferlist.C (write): we don't use blocksize for anything so
7627 2000-01-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7629 * src/support/block.h: disable operator T* (), since it causes
7630 problems with both compilers I tried. See comments in the file.
7632 * lib/reLyX/configure.in: do not define LYX_DIR. support flag
7635 * lib/reLyX/reLyX.in: change LYX_DIR to pkgdatadir; change env.
7636 variable LYX_DIR_10x to LYX_DIR_11x.
7638 * src/Makefile.am: replace variable LYX_DIR with pkgdatadir.
7640 * INSTALL: document --with-lyxname.
7643 * configure.in: new configure flag --with-lyxname which allows to
7644 choose the name under which lyx is installed. Default is "lyx", of
7645 course. It used to be possible to do this with --program-suffix,
7646 but the later has in fact a different meaning for autoconf.
7648 * src/support/lstrings.h (lstrchr): reformat a bit.
7650 * src/lyxlex.h: include LIstream.h, for Sun CC this time.
7651 * src/mathed/math_defs.h: ditto.
7653 2000-01-09 Lars Gullik Bjønnes <larsbj@lyx.org>
7655 * src/lyxrc.[Ch]: New tag and variable "\make_backup". Defaults to
7656 true, decides if we create a backup file or not when saving. New
7657 tag and variable \pdf_mode, defaults to false. New tag and
7658 variable \pdflatex_command, defaults to pdflatex. New tag and
7659 variable \view_pdf_command, defaults to xpdf. New tag and variable
7660 \pdf_to_ps_command, defaults to pdf2ps.
7662 2000-01-08 Lars Gullik Bjønnes <larsbj@lyx.org>
7664 * src/bufferlist.C (close): don't call insetUnlock if the buffer
7665 does not have a BufferView.
7666 (unlockInset): ditto + don't access the_locking_inset if the
7667 buffer does not have a BufferView.
7669 * src/LyXView.C (KeyPressMask_raw_callback): add a XSync in
7670 certain circumstances so that we don't continue a keyboard
7671 operation long after the key was released. Try f.ex. to load a
7672 large document, press PageDown for some seconds and then release
7673 it. Before this change the document would contine to scroll for
7674 some time, with this change it stops imidiatly.
7676 * src/support/block.h: don't allocate more space than needed. As
7677 long as we don't try to write to the arr[x] in a array_type arr[x]
7678 it is perfectly ok. (if you write to it you might segfault).
7679 added operator value_type*() so that is possible to pass the array
7680 to functions expecting a C-pointer.
7682 * lib/Makefile.am (dist-hook): don't fail completely if unable to
7685 * intl/*: updated to gettext 0.10.35, tried to add our own
7686 required modifications. Please verify.
7688 * po/*: updated to gettext 0.10.35, tried to add our own required
7689 modifications. Please verify.
7691 * src/support/lstrings.C (tostr): go at fixing the problem with
7692 cxx and stringstream. When stringstream is used return
7693 oss.str().c_str() so that problems with lyxstring and basic_string
7694 are avoided. Note that the best solution would be for cxx to use
7695 basic_string all the way, but it is not conformant yet. (it seems)
7697 * src/lyx_cb.C + other files: moved several global functions to
7698 class BufferView, some have been moved to BufferView.[Ch] others
7699 are still located in lyx_cb.C. Code changes because of this. (part
7700 of "get rid of current_view project".)
7702 * src/buffer.C + other files: moved several Buffer functions to
7703 class BufferView, the functions are still present in buffer.C.
7704 Code changes because of this.
7706 * config/lcmessage.m4: updated to most recent. used when creating
7709 * config/progtest.m4: updated to most recent. used when creating
7712 * config/gettext.m4: updated to most recent. applied patch for
7715 * config/gettext.m4.patch: new file that shows what changes we
7716 have done to the local copy of gettext.m4.
7718 * config/libtool.m4: new file, used in creation of acinclude.m4
7720 * config/lyxinclude.m4: new file, this is the lyx created m4
7721 macros, used in making acinclude.m4.
7723 * autogen.sh: GNU m4 discovered as a separate task not as part of
7724 the lib/configure creation.
7725 Generate acinlucde from files in config. Actually cat
7726 lyxinclude.m4, libtool.m4 and gettext.m4 together. This makes it
7727 easier to upgrade .m4 files that really are external.
7729 * src/Spacing.h: moved using std::istringstream to right after
7730 <sstream>. This should fix the problem seen with some compilers.
7732 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
7734 * src/lyx_cb.C: began some work to remove the dependency a lot of
7735 functions have on BufferView::text, even if not really needed.
7736 (GetCurrentTextClass): removed this func, it only hid the
7739 * src/Makefile.am (lyx_DEPENDENCIES): use support/libsupport.la I
7740 forgot this in last commit.
7742 * src/Bullet.C (bulletEntry): use static char const *[] for the
7743 tables, becuase of this the return arg had to change to string.
7745 (~Bullet): removed unneeded destructor
7747 * src/BufferView.C (beforeChange): moved from lyx_cb.C
7748 (insetSleep): moved from Buffer
7749 (insetWakeup): moved from Buffer
7750 (insetUnlock): moved from Buffer
7752 * buffer.[Ch], BufferView.[Ch] + others: moved the_locking_inset
7753 from Buffer to BufferView.
7755 * acinclude.m4: include libtool.m4 from libtool 1.3.4.
7757 * config/ltmain.sh: updated to version 1.3.4 of libtool
7759 * config/ltconfig: updated to version 1.3.4 of libtool
7761 2000-01-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7764 * src/buffer.C (pop_tag): fix a dubious for() loop initialization.
7765 Did I get that right?
7767 * src/lyxlex.h: add a "using" directive or two.
7768 * src/Spacing.h: ditto.
7769 * src/insets/figinset.C: ditto.
7770 * src/support/filetools.C: ditto.
7771 * src/support/lstrings.C: ditto.
7772 * src/BufferView.C: ditto.
7773 * src/bufferlist.C: ditto.
7774 * src/lyx_cb.C: ditto.
7775 * src/lyxlex.C: ditto.
7777 * NEWS: add some changes for 1.1.4.
7779 2000-01-06 Lars Gullik Bjønnes <larsbj@lyx.org>
7781 * src/BufferView.C: first go at a TextCache to speed up switching
7784 2000-01-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7786 * lib/examples/ItemizeBullets.lyx: update from Tino Meinen.
7787 * lib/examples/nl_voorbeeld_ruw.lyx: ditto.
7788 * lib/examples/nl_voorbeeld_verlyxt.lyx: ditto.
7789 * lib/examples/nl_opsommingstekens.lyx: new translation from Tino
7792 * src/mathed/math_defs.h (MathedRowSt): make sure that all
7793 members of the struct are correctly initialized to 0 (detected by
7795 * src/lyxrc.C (LyXRC): ditto for print_adapt_output.
7796 * src/insets/figinset.C (InsetFig): ditto for pswid and pshgh.
7798 * src/insets/figinset.C (sigchldchecker): use "delete" to free a
7799 pidwait, since it was allocated with "new". This was potentially
7800 very bad. Thanks to Michael Schmitt for running purify for us.
7803 2000-01-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7805 * src/lyx_gui_misc.C: add a 'using std::make_pair;' statement.
7807 * src/lyx_gui_misc.h: add a 'using std::pair;' statement.
7809 1999-12-30 Allan Rae <rae@lyx.org>
7811 * lib/templates/IEEEtran.lyx: minor change
7813 * src/lyxvc.C (registrer, checkIn), src/lyx_cb.C (MenuInsertLabel),
7814 src/mathed/formula.C (LocalDispatch): askForText changes
7816 * src/lyx_gui_misc.[Ch] (askForText): now returns a bool also so we
7817 know when a user has cancelled input. Fixes annoying problems with
7818 inserting labels and version control.
7820 1999-12-29 Lars Gullik Bjønnes <larsbj@lyx.org>
7822 * src/support/lstrings.C (tostr): rewritten to use strstream and
7825 1999-12-28 Lars Gullik Bjønnes <larsbj@lyx.org>
7827 * src/support/filetools.C (IsFileWriteable): use fstream to check
7828 (IsDirWriteable): use fileinfo to check
7830 * src/support/filetools.h (FilePtr): whole class deleted
7832 * src/insets/figinset.C (GetPSSizes): rewritten to use ifstream.
7834 * src/lyxparagraph.h (readSimpleWholeFile): make arg istream
7836 * src/lyx_cb.C (InsertAsciiFile): use ifstream instead of FilePtr
7838 * src/bufferlist.C (write): use ifstream and ofstream instead of
7841 * src/Spacing.h: use istrstream instead of sscanf
7843 * src/mathed/math_defs.h: change first arg to istream from FILE*
7845 * src/buffer.C (insertLyXFile): use ifstream instead of FilePtr
7847 * src/mathed/math_parser.C: have yyis to be an istream
7848 (LexGetArg): use istream (yyis)
7850 (mathed_parse): ditto
7851 (mathed_parser_file): first arg istream instead of FILE*, set yyis
7853 * src/mathed/formula.C (Read): rewritten to use istream
7855 * src/mathed/formulamacro.C (Read): rewritten to use istream
7857 * src/lyxlex.h (~LyXLex): deleted desturctor
7858 (getStream): new function, returns an istream
7859 (getFile): deleted funtion
7860 (IsOK): return is.good();
7862 * src/lyxlex.C (LyXLex): delete file and owns_file
7863 (setFile): open an filebuf and assign that to a istream instead of
7865 (setStream): new function, takes an istream as arg.
7866 (setFile): deleted function
7867 (EatLine): rewritten us use istream instead of FILE*
7871 * src/table.C (LyXTable): use istream instead of FILE*
7872 (Read): rewritten to take an istream instead of FILE*
7874 1999-12-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7876 * src/buffer.C (Dispatch): remove an extraneous break statement.
7878 * src/support/filetools.C (QuoteName): change to do simple
7879 'quoting'. More work is necessary. Also changed to do nothing
7880 under emx (needs fix too).
7881 (Putenv): Cast the argument of putenv() with PUTENV_TYPE_ARG.
7883 * acinclude.m4 (STL_STRING_FWD_H_LOCATION): add the comment for
7884 config.h.in to the AC_DEFINE_UNQUOTED() call.
7885 (LYX_FUNC_PUTENV_ARGTYPE): new macro. Checks whether putenv()
7886 needs char * as argument (because Solaris 7 declares it like
7889 * acconfig.h: remove placeholder for STL_STRING_FWD_H_LOCATION;
7890 remove definition of BZERO.
7892 1999-12-24 Lars Gullik Bjønnes <larsbj@lyx.org>
7894 * src/support/LRegex.C: include <regex.h> if HAVE_REGEX_H is
7895 defined, "lyxregex.h" if not.
7897 * src/support/Makefile.am (noinst_LTLIBRARIES): changed from
7899 (REGEX): new variable that is set to regex.c lyxregex.h when
7900 AM_CONDITIONAL USE_REGEX is set.
7901 (libsupport_la_SOURCES): add $(REGEX)
7903 * src/mathed/Makefile.am (noinst_LTLIBRARIES): changed from
7906 * src/insets/Makefile.am (noinst_LTLIBRARIES): changed from
7909 * configure.in: add call to LYX_REGEX
7911 * acinclude.m4 (LYX_REGEX): checks if we need to use the included
7912 regex or not. Uses a a AM_CONDITIONAL to decide what to compile.
7914 1999-12-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7916 * lib/bind/fi_menus.bind: new file, from
7917 pauli.virtanen@saunalahti.fi.
7919 * src/buffer.C (getBibkeyList): pass the parameter delim to
7920 InsetInclude::getKeys and InsetBibtex::getKeys.
7922 * src/insets/insetinclude.[Ch] (getKeys): add parameter delim, which
7923 is passed to Buffer::getBibkeyList
7925 * src/insets/insetbib.[Ch] (getKeys): add parameter delim, and use it
7926 instead of the hardcoded comma.
7928 * src/insets/insetbib.C (getKeys): make sure that there are not
7929 leading blanks in bibtex keys. Normal latex does not care, but
7930 harvard.sty seems to dislike blanks at the beginning of citation
7931 keys. In particular, the retturn value of the function is
7933 * INSTALL: make it clear that libstdc++ is needed and that gcc
7934 2.7.x probably does not work.
7936 * src/support/filetools.C (findtexfile): make debug message go to
7938 * src/insets/insetbib.C (getKeys): ditto
7940 * src/debug.C (showTags): make sure that the output is correctly
7943 * configure.in: add a comment for TWO_COLOR_ICON define.
7945 * acconfig.h: remove all the entries that already defined in
7946 configure.in or acinclude.m4.
7948 * src/buffer.C (makeLaTeXFile): headers of latex file also changed
7949 to avoid user name, date and copyright.
7951 1999-12-21 Juergen Vigna <jug@sad.it>
7953 * src/table.C (Read): Now read bogus row format informations
7954 if the format is < 5 so that afterwards the table can
7955 be read by lyx but without any format-info. Fixed the
7956 crash we experienced when not doing this.
7958 1999-12-21 Lars Gullik Bjønnes <larsbj@lyx.org>
7960 * src/text2.C (RedoHeightOfParagraph): rename arg cursor -> cur
7961 (RedoDrawingOfParagraph): ditto
7962 (RedoParagraphs): ditto
7963 (RemoveTableRow): ditto
7965 * src/text.C (Fill): rename arg paperwidth -> paper_width
7967 * src/buffer.C (insertLyXFile): rename var filename -> fname
7968 (writeFile): rename arg filename -> fname
7969 (writeFileAscii): ditto
7970 (makeLaTeXFile): ditto
7971 (makeLinuxDocFile): ditto
7972 (makeDocBookFile): ditto
7974 * src/LaTeX.C (runMakeIndex): change arg name from file -> f
7977 * src/Makefile.am (lyx_SOURCES): add bmtable.c and remove bmtable.C
7979 * src/bmtable.h: add extern "C" on this file when __cplusplus is
7982 * src/bmtable.c: new file, a C'ified copy of bmtable.C, this is
7983 compiled by a C compiler not C++.
7985 * src/layout.h (LyXTextClass): added typedef for const_iterator
7986 (LyXTextClassList): added typedef for const_iterator + member
7987 functions begin and end.
7989 * src/LyXView.C (UpdateDocumentClassChoice): rewritten to use
7990 iterators to fill the choice_class.
7991 (updateLayoutChoice): rewritten to use iterators to fill the
7992 layoutlist in the toolbar.
7994 * src/BufferView.h (BufferView::work_area_width): removed unused
7997 * src/lyx_gui_misc.C (WarnReadonly): added string parameter 'file'
7999 * src/buffer.C (sgmlOpenTag): drop the use of the static space array
8000 (sgmlCloseTag): ditto
8002 * src/support/lstrings.h: return type of countChar changed to
8005 * src/support/lstrings.C (countChar): use HAVE_STD_COUNT to choose
8006 what version of this func to use. Also made to return unsigned int.
8008 * configure.in: call LYX_STD_COUNT
8010 * acinclude.m4 (LYX_STD_COUNT): new function checks for a standard
8011 conforming std::count.
8013 1999-12-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8015 * src/mathed/math_draw.C (Draw, Metrics): fix a bug where a prime
8016 and a subscript would give bad display (patch from Dekel Tsur
8017 <dekel@math.tau.ac.il>).
8019 * src/insets/insetlatexaccent.h: make sure ACCENT_TYPES is public.
8021 * src/spellchecker.C (create_ispell_pipe): use a const_cast to
8024 * src/chset.h: add a few 'using' directives
8026 * src/lyxfunc.C (Dispatch): check that LFUN_UNKNOWN_ACTION is not
8027 triggered when no buffer is active
8029 * src/layout.C: removed `break' after `return' in switch(), since
8032 * src/lyx_main.C (init): make sure LyX can be ran in place even
8033 when libtool has done its magic with shared libraries. Fix the
8034 test for the case when the system directory has not been found.
8036 * src/lyx_cb.C (MenuMakeLaTeX): make sure to keep the full path
8037 name for the latex file.
8038 (MenuMakeHTML): ditto
8040 * src/buffer.h: add an optional boolean argument, which is passed
8043 1999-12-20 Allan Rae <rae@lyx.org>
8045 * lib/templates/IEEEtran.lyx: small correction and update.
8047 * configure.in: Attempted to use LYX_PATH_HEADER
8049 * src/stl_string_fwd.h: Don't need HAVE_STL_STRING_FWD_H anymore
8051 * acconfig.h, acinclude.m4 (LYX_STL_STRING_FWD): totally revised after
8052 input from JMarc. Now use preprocessor to find the header.
8053 Also stopped making HAVE_STL_STRING_FWD_H and extended the comments.
8054 (LYX_PATH_HEADER): My, so far, failed attempt to generalize
8055 LYX_STL_STRING_FWD. See comments in file.
8057 1999-12-19 Asger Alstrup Nielsen <alstrup@diku.dk>
8059 * The global MiniBuffer * minibuffer variable is dead.
8061 * The global FD_form_main * fd_form_main variable is dead.
8063 1999-12-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8065 * src/toolbar.C (set): condition #warning on WITH_WARNINGS
8067 * src/table.h: add the LOstream.h header
8068 * src/debug.h: ditto
8070 * src/LyXAction.h: change the explaination of the ReadOnly
8071 attribute: is indicates that the function _can_ be used.
8073 * src/LyXAction.C (init): find-replace _can_ be used in read-only
8076 1999-12-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8078 * src/lyxfont.C (ascent): Make sure that char is _always_ used as
8084 * src/paragraph.C (GetWord): assert on pos>=0
8087 * src/support/lyxstring.C: condition the use of an invariant on
8089 * src/support/lyxstring.h: ditto
8091 * src/Bullet.[Ch]: replace DEBUG_AS_DEFAULT by ENABLE_ASSERTIONS.
8092 Use LAssert.h instead of plain assert().
8094 * src/support/lstrings.h: add LAssert.h, in case it is needed.
8096 * src/lyxfunc.C: do not include LAssert.h, it is not used.
8097 * src/support/filetools.C: ditto
8099 * src/support/LAssert.h: make Assert a no-op if ENABLE_ASSERTIONS
8102 * INSTALL: document the new configure flags
8104 * configure.in: suppress --with-debug; add --enable-assertions
8106 * acinclude.m4: various changes in alignment of help strings.
8108 1999-12-16 Lars Gullik Bjønnes <larsbj@lyx.org>
8110 * src/kbmap.C: commented out the use of the hash map in kb_map,
8111 beginning of movement to a stl::container.
8113 * several files: removed code that was not in effect when
8114 MOVE_TEXT was defined.
8116 * lib/kbd/iso8859-1.cdef: removed bogus backslashes. Backslashes
8117 for escaping should not be used. We can discuss if the string
8118 should be enclosed in f.ex. [] instead of "".
8120 * src/trans_mgr.C (insert): use the new returned value from
8121 encodeString to get deadkeys and keymaps done correctly.
8123 * src/chset.C (encodeString): changed to return a pair, to tell
8124 what to use if we know the string.
8126 * src/lyxscreen.h (fillArc): new function.
8128 * src/FontInfo.C (resize): rewritten to use more std::string like
8129 structore, especially string::replace.
8131 * src/insets/insetlatexaccent.C (Draw): use fillArc for the
8134 * configure.in (chmod +x some scripts): remove config/gcc-hack
8136 1999-12-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8138 * src/buffer.C (writeFile): change once again the top comment in a
8139 .lyx file to point to www.lyx.org and to use LYX_DOCVERSION
8140 instead of an hardcoded version number.
8141 (makeDocBookFile): ditto
8143 * src/version.h: add new define LYX_DOCVERSION
8145 * po/de.po: update from Pit Sütterlin
8146 * lib/bind/de_menus.bind: ditto.
8148 * src/lyxfunc.C (Dispatch): call MenuExport()
8149 * src/buffer.C (Dispatch): ditto
8151 * src/lyx_cb.C (MenuMakeHTML): new function, moved from
8152 LyXFunc::Dispatch().
8153 (MenuExport): new function, moved from
8154 LyXFunc::Dispatch().
8156 * src/trans_mgr.C (insert): small cleanup
8157 * src/chset.C (loadFile): ditto
8159 * lib/kbd/iso8859-1.cdef: add missing backslashes
8161 1999-12-15 Lars Gullik Bjønnes <larsbj@lyx.org>
8163 * src/insets/insetlatexaccent.C (Lbearing): new function, used to
8164 help with placing the manually drawn accents better.
8166 (Draw): x2 and hg changed to float to minimize rounding errors and
8167 help place the accents better.
8169 * src/lyxfont.C (ascent): fixed faulty static_cast, casting from
8170 unsigned short to char is just wrong...cast the char to unsigned
8171 char instead so that the two values can compare sanely. This
8172 should also make the display of insetlatexaccents better and
8173 perhaps also some other insets.
8175 (lbearing): new function
8178 1999-12-15 Allan Rae <rae@lyx.org>
8180 * src/stl_string_fwd.h, src/Makefile.am (lyx_SOURCES): added new
8181 header that provides a wrapper around the very annoying SGI STL header
8184 * src/support/lyxstring.C, src/LString.h:
8185 removed old SGI-STL-compatability attempts.
8187 * configure.in: Use LYX_STL_STRING_FWD.
8189 * acinclude.m4 (LYX_STL_STRING_FWD), acconfig.h: Test if
8190 stl_string_fwd.h is around and try to determine it's location.
8191 Major improvement over previous SGI STL 3.2 compatability.
8192 Three small problems remain with this function due to my zero
8193 knowledge of autoconf. JMarc and lgb see the comments in the code.
8195 1999-12-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8197 * src/broken_const.h, config/hack-gcc, config/README: removed
8199 * configure.in: remove --with-gcc-hack option; do not call
8202 * INSTALL: remove documentation of --with-broken-const and
8205 * acconfig.h: remove all trace of BROKEN_CONST define
8207 * src/buffer.C (makeDocBookFile): update version number in output
8209 (SimpleDocBookOnePar): fix an assert when trying to a character
8210 access beyond string length
8213 1999-12-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8215 * po/de.po: fix the Export menu
8217 * lyx.man: update the description of -dbg
8219 * src/lyx_main.C (setDebuggingLevel): call Debug::showLevel()
8220 (commandLineHelp): updated
8221 (easyParse): show list of available debug levels if -dbg is passed
8224 * src/Makefile.am: add debug.C
8226 * src/debug.h: moved some code to debug.C
8228 * src/debug.C: new file. Contains code to set and show debug
8231 * src/layout.C: remove 'break' after 'continue' in switch
8232 statements, since these cannot be reached.
8234 1999-12-13 Allan Rae <rae@lyx.org>
8236 * src/mathed/math_hash.C (math_hash): renamed from hash(), name clash.
8237 (in_word_set): hash() -> math_hash()
8239 * src/LString.h: Used USING_EXCEPTIONS in SGI STL-3.2 support
8241 * acconfig.h: Added a test for whether we are using exceptions in the
8242 current compilation run. If so USING_EXCEPTIONS is defined.
8244 * config.in: Check for existance of stl_string_fwd.h
8245 * src/LString.h: If compiling --with-included-string and SGI's
8246 STL version 3.2 is present (see above test) we need to block their
8247 forward declaration of string and supply a __get_c_string().
8248 However, it turns out this is only necessary if compiling with
8249 exceptions enabled so I've a bit more to add yet.
8251 * src/insets/figinset.[Ch], src/insets/insetinclude.C,
8252 src/insets/insetloa.C, src/layout.h, src/lyxparagraph.h,
8253 src/support/LRegex.h, src/undo.h:
8254 Shuffle the order of the included files a little to ensure that
8255 LString.h gets included before anything that includes stl_string_fwd.h
8257 * src/support/lyxstring.C: We need to #include LString.h instead of
8258 lyxstring.h to get the necessary definition of __get_c_string.
8259 (__get_c_string): New function. This is defined static just like SGI's
8260 although why they need to do this I'm not sure. Perhaps it should be
8261 in lstrings.C instead.
8263 * lib/templates/IEEEtran.lyx: New template file.
8265 1999-12-12 Lars Gullik Bjønnes <larsbj@lyx.org>
8267 * Makefile.in.in (MKINSTALLDIRS): use $(srcdir)/@MKINSTALLDIRS@
8268 * intl/Makefile.in (MKINSTALLDIRS): ditto
8270 * src/LyXAction.C (init): changed to hold the LFUN data in a
8271 automatic array in stead of in callso to newFunc, this speeds up
8272 compilation a lot. Also all the memory used by the array is
8273 returned when the init is completed.
8275 * a lot of files: compiled with -Wold-style-cast, changed most of
8276 the reported offenders to C++ style casts. Did not change the
8277 offenders in C files.
8279 * src/trans.h (Match): change argument type to unsigned int.
8281 * src/support/DebugStream.C: fix some types on the streambufs so
8282 that it works on a conforming implementation.
8284 1999-12-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8286 * lib/examples/example_{raw,lyxified}.lyx: fix embarassing sentence.
8288 * src/support/lyxstring.C: remove the inline added earlier since
8289 they cause a bunch of unsatisfied symbols when linking with dec
8290 cxx. Cxx likes to have the body of inlines at the place where they
8293 * src/trans.C (AddDeadkey): add an 'unsigned char' cast to avoid
8294 accessing negative bounds in array. This fixes the crash when
8295 inserting accented characters.
8296 * src/trans.h (Match): ditto
8298 * src/buffer.C (Dispatch): since this is a void, it should not try
8299 to return anything...
8301 1999-12-10 Lars Gullik Bjønnes <larsbj@lyx.org>
8303 * src/buffer.h: removed the two friends from Buffer. Some changes
8304 because of this. Buffer::getFileName and Buffer::setFileName
8305 renamed to Buffer::fileName() and Buffer::fileName(...).
8307 1999-12-09 Lars Gullik Bjønnes <larsbj@lyx.org>
8309 * buffer.[Ch], BufferView.[Ch] + other files: Moved Buffer::text
8310 and Buffer::update(short) to BufferView. This move is currently
8311 controlled by a define MOVE_TEXT, this will be removed when all
8312 shows to be ok. This move paves the way for better separation
8313 between buffer contents and buffer view. One side effect is that
8314 the BufferView needs a rebreak when swiching buffers, if we want
8315 to avoid this we can add a cache that holds pointers to LyXText's
8316 that is not currently in use.
8318 * buffer.[Ch], lyx_main.C: small changes to the "-export" patch by
8321 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
8323 * buffer.[Ch]: Dispatch() - new dispatcher on the buffer level
8325 * lyx_main.C: new command line option -x (or --execute) and
8326 -e (or --export). Now direct conversion from .lyx to .tex
8327 (.dvi, .ps, ...) is possible ('lyx file.lyx --export latex')
8328 Unfortunately, X is still needed and the GUI pops up during the
8331 1999-12-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8333 * src/Spacing.C: add a using directive to bring stream stuff into
8335 * src/paragraph.C: ditto
8336 * src/buffer.C: ditto
8338 * NEWS: updated a bit the new features of 1.1.3 (took a few things
8339 from Lars' announcement).
8341 * lib/examples/nl_voorbeeld_{ruw,verlyxt}.lyx: new tutorial
8342 example files from Tino Meinen.
8344 1999-12-06 Allan Rae <rae@lyx.org>
8346 * src/LaTeX.C (runBibTeX): fix typo in accessing submatch pair.
8348 1999-12-07 Lars Gullik Bjønnes <larsbj@lyx.org>
8350 * src/support/lyxstring.C: added a lot of inline for no good
8353 * src/lyxfont.[Ch]: removed latexWriteStartChanges, and
8354 latexWriteEndChanges, they were not used.
8356 * src/layout.h (operator<<): output operator for PageSides
8358 * src/mathed/math_iter.C (my_memcpy): slightly changed.
8360 * some example files: loaded in LyX 1.0.4 and saved again to update
8361 certain constructs (table format)
8363 * a lot of files: did the change to use fstream/iostream for all
8364 writing of files. Done with a close look at Andre Poenitz's patch.
8366 * some files: whitespace changes.
8368 1999-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8370 * src/mathed/math_iter.C (my_memcpy): new function. Since the
8371 built-in memcpy() is broken on egcs and gcc 2.95 for alpha
8372 architecture, we provide our own. It is used unconditionnally, but
8373 I do not think this is a performance problem. Thanks to Angus
8374 Leeming <a.leeming@ic.ac.uk> for the code (and again to Michal
8375 Jaegermann <michal@ellpspace.math.ualberta.ca> for finding it the
8377 (GetInset): use my_memcpy.
8381 * lib/chkconfig.ltx: some cleanup of the latex code. I am not sure
8382 it is easier to understand, but it uses less TeX-only constructs now.
8384 * acinclude.m4 (LYX_SEARCH_PROG): make it work when the PATH
8385 elements contain spaces
8387 * lib/configure: regenerated
8389 * lib/configure.m4 (SEARCH_PROG): make it work when the PATH
8390 elements contain spaces; display the list of programs that are
8393 * autogen.sh: make sure lib/configure is executable
8395 * lib/examples/*: rename the tutorial examples to begin with the
8396 two-letters language code.
8398 * src/lyxfunc.C (getStatus): do not query current font if no
8401 * src/lyx_cb.C (RunScript): use QuoteName
8402 (MenuRunDvips): ditto
8403 (PrintApplyCB): ditto
8405 * src/support/filetools.[Ch] (QuoteName): new function. Add quotes
8406 around argument, so that it works well with the current shell.
8407 Does not work properly with OS/2 shells currently.
8409 * src/LaTeXLog.C (ShowLatexLog): use Buffer::getLatexName
8410 * src/LyXSendto.C (SendtoApplyCB): ditto
8411 * src/lyxfunc.C (Dispatch): ditto
8412 * src/buffer.C (runLaTeX): ditto
8413 (runLiterate): ditto
8414 (buildProgram): ditto
8416 * src/lyx_cb.C (RunScript): ditto
8417 (MenuMakeLaTeX): ditto
8419 * src/buffer.h (getLatexName): new method
8421 * src/support/filetools.C (MakeLatexName): renamed from SpaceLess
8423 1999-12-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8425 * images/sqrt.xpm: change name of the sqrt icon to sqrt_xpm.
8426 * src/mathed/math_panel.C (mathed_get_pixmap_from_icon): ditto
8427 (create_math_panel): ditto
8429 * src/lyxfunc.C (getStatus): re-activate the code which gets
8430 current font and cursor; add test for export to html.
8432 * src/lyxrc.C (read): remove unreachable break statements; add a
8435 * src/bmtable.C (fl_set_bmtable_data): add a const_cast.
8437 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
8439 * src/mathed/formula.C (LocalDispatch): fix small whitspace bug
8440 introduced by faulty regex.
8441 * src/buffer.C: ditto
8442 * src/lastfiles.C: ditto
8443 * src/paragraph.C: ditto
8444 * src/table.C: ditto
8445 * src/vspace.C: ditto
8446 * src/insets/figinset.C: ditto
8447 Note: most of these is absolutely harmless, except the one in
8448 src/mathed formula.C.
8450 1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
8452 * src/ImportNoweb.C (documentclass): fixed bounds for substr
8453 operation, yielding correct results for the reLyX command.
8455 1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
8457 * src/support/filetools.C (ExpandPath): removed an over eager
8459 (ReplaceEnvironmentPath): ditto
8461 * src/toolbar.C (BubbleTimerCB): use C++ style casts. This clearly
8462 shows that we are doing something fishy in our code...
8466 * src/lyxrc.C (read): use a double switch trick to get more help
8467 from the compiler. (the same trick is used in layout.C)
8468 (write): new function. opens a ofstream and pass that to output
8469 (output): new function, takes a ostream and writes the lyxrc
8470 elemts to it. uses a dummy switch to make sure no elements are
8473 * src/lyxlex.h: added a struct pushpophelper for use in functions
8474 with more than one exit point.
8476 * src/lyxlex.[Ch] (GetInteger): made it const
8480 * src/lyxfunc.C (Dispatch): added case for LFUN_SAVEPREFERENCES
8482 * src/layout.[hC] : LayoutTags splitted into several enums, new
8483 methods created, better error handling cleaner use of lyxlex. Read
8486 * src/bmtable.[Ch]: change some member prototypes because of the
8487 image const changes.
8489 * commandtags.h, src/LyXAction.C (init): new function:
8490 "preferences-save", saves the lyxrc entries into .lyx/preferences.
8491 This file is not read automatically but you can add \input
8492 preferences to your lyxrc if you want to. We need to discuss how
8495 * src/LaTeX.C (runBibTeX): use regex to match for the needed lines
8496 in .aux, also remove .bib and .bst files from dependencies when
8499 * src/BufferView.C, src/LyXView.C: add const_cast several places
8500 because of changes to images.
8502 * lib/images/*: same change as for images/*
8504 * lib/lyxrc.example: Default for accept_compound is false not no.
8506 * images/*: changed to be const, however I have som misgivings
8507 about this change so it might be changed back.
8509 1999-11-26 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8511 * lib/configure, po/POTFILES.in: regenerated
8513 * autogen.sh: autogenerate lib/configure from lib/configure.m4
8515 * config/lib_configure.m4: removed
8517 * lib/configure.m4: new file (was config/lib_configure.m4)
8519 * configure.in: do not test for rtti, since we do not use it.
8521 1999-11-26 Lars Gullik Bjønnes <larsbj@lyx.org>
8523 * src/support/lyxstring.C (lyxstring::Srep): Changed to use a
8524 doubling of allocated space scheme. This makes it faster for large
8525 strings end to use less memory for small strings. xtra rememoved.
8527 * src/insets/figinset.C (waitalarm): commented out.
8528 (GhostscriptMsg): use static_cast
8529 (GhostscriptMsg): use new instead of malloc to allocate memory for
8530 cmap. also delete the memory after use.
8532 * src/lyx_cb.C (SetXtermCursor): made cursor_undefined a bool
8534 * src/LaTeX.C (scanAux): new method. Scans the .aux file and looks
8535 for changes in bibtex database or style.
8536 (runBibTeX): remove all .bib and .bst files from dep before we
8538 (run): use scanAuc in when dep file already exist.
8540 * src/DepTable.C (remove_files_with_extension): new method
8543 * src/DepTable.[Ch]: made many of the methods const.
8545 1999-11-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8547 * src/bufferparams.C: make sure that the default textclass is
8548 "article". It used to be the first one by description order, but
8549 now the first one is "docbook".
8551 * src/lyx_main.C (setDebuggingLevel): change type of argument to
8552 string; call Debug::value.
8553 (easyParse): pass complete argument to setDebuggingLevel().
8555 * src/debug.h (value): fix the code that parses debug levels.
8557 * src/debug.h: add new debug type ACTION, reserved for LyXAction
8560 * src/LyXAction.C: use Debug::ACTION as debug channel.
8562 * src/lyxlookup.C: make the debug statements go to Debug::KEY.
8564 * NEWS: updated for the future 1.1.3 release.
8566 * src/mathed/symbol_def.h: swap the definitions of \varepsilon and
8567 \epsilon. Now \epsilon shows as red text, and \varepsilon shows as
8568 it should. This is of course a controversial change (since many
8569 people will find that their lyx workscreen is suddenly full of
8570 red), but done for the sake of correctness.
8572 * src/mathed/formulamacro.h, src/mathed/math_macro.[Ch],
8573 src/mathed/math_root.[Ch] (Clone): return a MathedInset*
8575 * src/insets/inseterror.h, src/insets/inseturl.h,
8576 src/insets/insetinfo.h, src/insets/figinset.h,
8577 src/mathed/formulamacro.h, src/mathed/math_macro.h
8578 (EditMessage): add a missing const and add _() to make sure that
8581 * src/ImportNoweb.C, src/LyXAction.h, src/insets/figinset.C,
8582 src/insets/insetbib.C, src/support/filetools.C: add `using'
8585 * src/lyxfunc.C (Dispatch): make sure nothing bad happens when
8586 doing 'Insert index of last word' at the beginning of a paragraph.
8588 1999-11-24 Lars Gullik Bjønnes <larsbj@lyx.org>
8590 * several files: white-space changes.
8592 * src/mathed/formula.C: removed IsAlpha and IsDigit
8594 * src/insets/insetbib.C (getKeys): use findtexfile to look for the
8595 .bib file. use a ifstream instead of FilePtr when parsing the .bib
8598 * src/insets/figinset.C (GetPSSizes): don't break when
8599 "EndComments" is seen. But break when a boundingbox is read.
8601 * all classes inherited from Inset: return value of Clone
8602 changed back to Inset *.
8604 * all classes inherited form MathInset: return value of Clone
8605 changed back to MathedInset *.
8607 * src/insets/figinset.C (runqueue): use a ofstream to output the
8608 gs/ps file. Might need some setpresicion or setw. However I can
8609 see no problem with the current code.
8610 (runqueue): use sleep instead of the alarm/signal code. I just
8611 can't see the difference.
8613 * src/paragraph.C (LyXParagraph): reserve space in the new
8614 paragraph and resize the inserted paragraph to just fit.
8616 * src/lyxfunc.h (operator|=): added operator for func_status.
8618 * src/lyxfunc.C (MenuNew): use FileInfo instead of FilePtr to
8619 check for readable file.
8621 * src/lyx_cb.C (MenuMakeLaTeX): use FileInfo instead of FilePtr to
8622 check for readable file.
8623 (MenuMakeLinuxDoc): ditto
8624 (MenuMakeDocBook): ditto
8625 (MenuMakeAscii): ditto
8626 (InsertAsciiFile): split the test for openable and readable
8628 * src/bmtable.C (draw_bitmaptable): use
8629 fl_state[fl_get_vclass()].depth instead of DefualtScreen.
8631 * src/LaTeX.C, src/support/filetools.[Ch]: moved do_popen and
8632 findtexfile from LaTeX to filetools.
8634 * src/ImportNoweb.C (documentclass): rewrote to use ifstream
8635 instead of FilePtr. Needs to be verified by a literate user.
8637 1999-11-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8639 * src/mathed/formula.[Ch] (GetCursorPos): add a missing 'const'.
8640 (EditMessage): likewise.
8642 * src/paragraph.C (SimpleTeXSpecialChars): output ~ and ^
8643 respectively as \textasciitilde and \textasciicircum.
8645 1999-11-22 Lars Gullik Bjønnes <larsbj@lyx.org>
8647 * src/support/lyxstring.h: made the methods that take iterators
8650 * src/support/lstrings.C (countChar): use std::cound(itr, itr, val)
8651 (regexMatch): made is use the real regex class.
8653 * src/support/Makefile.am: changed to use libtool
8655 * src/support/.cvsignore: added *.lo, .libs and libsupport.la
8657 * src/mathed/math_defs.h: made the mathaligns be in a enum instead
8659 (MathIsInset ++): changed several macros to be inline functions
8662 * src/mathed/Makefile.am: changed to use libtool
8664 * src/mathed/.cvsignore: added *.lo, .libs and libmathed.la
8666 * src/insets/inset* : Clone changed to const and return type is
8667 the true insettype not just Inset*.
8669 * src/insets/Makefile.am: changed to use libtool
8671 * src/insets/.cvsignore: added *.lo, .libs and libinsets.la
8673 * src/undo.[Ch] : added empty() and changed some of the method
8676 * src/texrow.[Ch]: rewrote to store texrow's in a std::list.
8678 * src/lyxparagraph.h: use id() and id(...) instead of getID and
8679 setID use block<> for the bullets array, added const several places.
8681 * src/lyxfunc.C (getStatus): new function
8683 * src/lyxfunc.[Ch] : small changes to take advantage of the new
8684 LyXAction, added const to several funtions.
8686 * src/filedlg.[Ch]: rewrote to store userchache and groupchache in
8687 a std::map, and to store the dir items in a vector.
8689 * src/Makefile.am (lyx_DEPENDENCIES): changed to use libtool files
8692 * src/LyXView.[Ch] + other files : changed currentView to view.
8694 * src/LyXAction.[Ch] : ported from the old devel branch.
8696 * src/.cvsignore: added .libs and a.out
8698 * configure.in : changes to use libtool.
8700 * acinclude.m4 : inserted libtool.m4
8702 * .cvsignore: added libtool
8704 1999-11-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8706 * src/Makefile.am (lyx_DEPENDENCIES): give the explicit object
8707 file name in insets and mathed directories (otherwise the
8708 dependency is not taken in account under cygwin).
8710 * src/text2.C (InsertString[AB]): make sure that we do not try to
8711 read characters past the string length.
8713 1999-11-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8715 * lib/doc/LaTeXConfig.lyx.in,
8716 lib/chkconfig.ltx: remove the test for linuxdoc-sgml.sty.
8718 * src/buffer.C (writeFile): Do not add a comment on top of .lyx
8719 file saying who created them and when this heppened; this is
8720 useless and annoys tools like cvs.
8722 * lib/layouts/g-brief-{en,de}.layout,
8723 lib/templates/g-brief-{en,de}.lyx: new versions of the textclass
8724 from Thomas Hartkens <thomas@hartkens.de>.
8726 * src/{insets,mathed}/Makefile.am: do not declare an empty
8727 LDFLAGS, so that it can be set at configure time (useful on Irix
8730 * lib/reLyX/configure.in: make sure that the prefix is set
8731 correctly in LYX_DIR.
8733 1999-11-18 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
8735 * src/commandtags.h: introduction of a new tag 'LFUN_SEQUENCE' to
8736 be used by 'command-sequence' this allows to bind a key to a
8737 sequence of LyX-commands
8738 (Example: 'command-sequence math-insert alpha; math-insert beta;")
8740 * src/LyXAction.C: add "command-sequence"
8742 * src/LyXFunction.C: handling of "command-sequence"
8744 * src/LyXFunction.[hC] changed LyXFunc::Dispatch(string const
8745 &cmd, string const &arg) to LyXFunc::Dispatch(string const& s)
8747 * src/lyxserver.C, src/minibuffer.C: Use this new interface
8749 1999-11-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8751 * src/buffer.C (writeFile): Do not output a comment giving user
8752 and date at the beginning of a .lyx file. This is useless and
8753 annoys cvs anyway; update version number to 1.1.
8755 * src/Makefile.am (LYX_DIR): add this definition, so that a
8756 default path is hardcoded in LyX.
8758 * configure.in: Use LYX_GNU_GETTEXT.
8760 * acinclude.m4 (LYX_GNU_GETTEXT): new macro, essentially a copy of
8761 AM_GNU_GETTEXT with a bug fixed.
8763 * src/lyx_cb.C (RunLinuxDoc): add a cast to please dec cxx.
8765 * src/chset.C: add "using std::ifstream;" to please dec cxx.
8767 * src/lyx_main.C (init), INSTALL.OS2: the environment variable
8768 which is used to point to LyX data is now LYX_DIR_11x.
8770 * lyx.man: convert to a unix text file; small updates.
8772 1999-11-15 Lars Gullik Bjønnes <larsbj@lyx.org>
8774 * src/support/LSubstring.[Ch]: made the second arg of most of the
8775 constructors be a const reference.
8777 * src/mathed/math_parser.C (LexInitCodes): small bug introduced by
8780 * src/support/lyxstring.[Ch] (swap): added missing member function
8781 and specialization of swap(str, str);
8783 * src/menus.C (ShowBufferMenu): to use the new BufferStorage
8785 * src/bufferlist.[Ch]: use the new BufferStorage class and remove all
8786 trace of the old one.
8788 * src/undo.[Ch]: made the undostack use std::list to store undo's in
8789 put the member definitions in undo.C.
8791 * src/lyxparagraph.h, src/paragraph.C + a lot of files: removed
8792 NEW_TEXT and have now only code that was included when this was
8795 * src/intl.C (LCombo): use static_cast
8797 (DispatchCallback): ditto
8799 * src/definitions.h: removed whole file
8801 * src/commandtags.h: comment out LFUN_INSERT_INSET_LATEX
8803 * src/chset.[Ch]: a lot rewritten, does not use lyxlex for cdef
8804 parsing and stores in a std:map. a regex defines the file format.
8805 removed unneeded members.
8807 * src/bufferparams.h: added several enums from definitions.h here.
8808 Removed unsused destructor. Changed some types to use proper enum
8809 types. use block to have the temp_bullets and user_defined_bullets
8810 and to make the whole class assignable.
8812 * src/bufferparams.C (Copy): removed this functions, use a default
8815 * src/buffer.h: made isLatex, isLinuxDoc, isDocBook, isSGML and
8818 * src/buffer.C (readLyXformat2): commend out all that have with
8819 oldpapersize to do. also comment out all that hve to do with
8820 insetlatex and insetlatexdel.
8821 (setOldPaperStuff): commented out
8823 * src/Makefile.am (lyx_SOURCES): remove definitions.h, add undo.C
8825 * src/LyXAction.C: remove use of inset-latex-insert
8827 * src/mathed/math_panel.C (button_cb): use static_cast
8829 * src/insets/Makefile.am (insets_o_SOURCES): removed
8832 * src/support/lyxstring.C (helper): use the unsigned long
8833 specifier, UL, instead of a static_cast.
8835 * src/support/Makefile.am (libsupport_a_SOURCES): added block.h
8837 * src/support/block.h: new file. to be used as a c-style array in
8838 classes, so that the class can be assignable.
8840 1999-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8842 * src/lyx_gui_misc.C (askForText): when fl_show_input() returns
8843 NULL, make sure to return an empty string (it is not possible to
8844 set a string to NULL).
8846 1999-11-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8848 * src/support/LRegex.C: use regex_t instead of re_pattern_buffer.
8850 * src/support/lyxstring.C (helper): fix bogus cast in assertion.
8852 * src/{mathed,insets}/Makefile.am (CXXLINK): add $(LDFLAGS) to the
8853 link line, so that Irix users (for example) can set it explicitely to
8856 * src/Makefile.am (lyx_LDADD): use LYX_LIB as a variable, so that
8857 it can be overidden at make time (static or dynamic link, for
8860 * src/vc-backend.C, src/LaTeXFeatures.h,
8861 src/support/LRegex.C, src/support/LRegex.h: add a few "using"
8862 statements to bring templates to global namespace.
8864 1999-11-10 Lars Gullik Bjønnes <larsbj@lyx.org>
8866 * src/support/lyxstring.C (operator[] const): make it standard
8869 * src/minibuffer.C (Init): changed to reflect that more
8870 information is given from the lyxvc and need not be provided here.
8872 * src/lyxvc.[Ch]: rewrote to use the vc-backend.
8874 * src/Makefile.am (lyx_SOURCES): add vc-backend.[Ch]
8876 * src/LyXView.C (UpdateTimerCB): use static_cast
8877 (KeyPressMask_raw_callback): ditto
8879 * src/BufferView.[Ch]: name change _owner -> owner_ and _buffer ->
8880 buffer_, a lot of changes because of this. currentBuffer() ->
8881 buffer(), setBuffer(...) -> buffer(...), getOwner() -> owner(),
8882 also changes to other files because of this.
8884 1999-11-09 Lars Gullik Bjønnes <larsbj@lyx.org>
8886 * src/vc-backend.[Ch]: new files. The backends for vc handling,
8887 have no support for RCS and partial support for CVS, will be
8890 * src/insets/ several files: changes because of function name
8891 changes in Bufferview and LyXView.
8893 * src/mathed/math_symbols.C (math_insert_symbol): use static_cast
8895 * src/support/LSubstring.[Ch]: new files. These implement a
8896 Substring that can be very convenient to use. i.e. is this
8898 string a = "Mary had a little sheep";
8899 Substring(a, "sheep") = "lamb";
8900 a is now "Mary has a little lamb".
8902 * src/support/LRegex.[Ch]: a regex class that can be used to pick
8903 out patterns and subpatterns of strings. It is used by LSubstring
8904 and also by vc-backend.C
8906 * src/support/lyxstring.C: went over all the assertions used and
8907 tried to correct the wrong ones and flag which of them is required
8908 by the standard. some bugs found because of this. Also removed a
8909 couple of assertions.
8911 * src/support/Makefile.am (libsupport_a_SOURCES): added
8912 LSubstring.[Ch] and LRegex.[Ch]
8914 * src/support/FileInfo.h: have struct stat buf as an object and
8915 not a pointer to one, some changes because of this.
8917 * src/LaTeXFeatures.C (getTClassPreamble): also use the
8918 information in layout when adding the layouts preamble to the
8921 * src/LaTeXFeatures.h: use a vector<bool> to store the layout
8924 * configure.in (CPPFLAGS): use AC_CHECK_FUNCS to check for XOpenIM
8925 because of bug in OS/2.
8927 1999-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8929 * lib/layouts/lyxmacros.inc (lyxcode): set the font with
8930 \verbatim@font instead of \ttfamily, so that it can be redefined.
8932 * src/BackStack.h, src/DepTable.C, src/DepTable.h, src/LaTeX.C,
8933 src/LaTeX.h, src/lastfiles.C, src/lastfiles.h, src/layout.C,
8934 src/layout.h, src/text2.C: add 'using' directive to bring the
8935 STL templates we need from the std:: namespace to the global one.
8936 Needed by DEC cxx in strict ansi mode.
8938 * src/support/LIstream.h,src/support/LOstream.h,
8939 src/support/lyxstring.h,src/table.h,
8940 src/lyxlookup.h: do not include <config.h> in header
8941 files. This should be done in the .C files only.
8943 * development/lyx.spec.in: WHATSNEW has been renamed to NEWS
8947 1999-11-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8949 * config/lib_configure.m4,lib/configure,lib/lyxrc.example: update
8950 from Kayvan to fix the tth invokation.
8952 * development/lyx.spec.in: updates from Kayvan to reflect the
8953 changes of file names.
8955 1999-11-05 Lars Gullik Bjønnes <larsbj@lyx.org>
8957 * src/text2.C (InsertStringB): use std::copy
8958 (InsertStringA): use std::copy
8960 * src/bufferlist.C: use a vector to store the buffers in. This is
8961 an internal change and should not affect any other thing.
8963 * src/BufferView.C (waitForX): use XSync instead of the lengthy
8966 * src/text.C (Fill): fix potential bug, one off bug.
8968 1999-11-04 Lars Gullik Bjønnes <larsbj@lyx.org>
8970 * src/Makefile.am (lyx_main.o): add more files it depends on.
8972 * src/lyx_cb.C (addNewlineAndDepth): parameters in wrong order.
8974 * src/support/lyxstring.C: use size_t for the reference count,
8975 size, reserved memory and xtra.
8976 (internal_compare): new private member function. Now the compare
8977 functions should work for std::strings that have embedded '\0'
8979 (compare): all compare functions rewritten to use
8982 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
8984 * src/support/lyxstring.C (compare): pass c_str()
8985 (compare): pass c_str
8986 (compare): pass c_str
8988 1999-11-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8990 * src/support/DebugStream.C: <config.h> was not included correctly.
8992 * lib/configure: forgot to re-generate it :( I'll make this file
8993 auto generated soon.
8995 1999-11-03 Lars Gullik Bjønnes <larsbj@lyx.org>
8997 * acinclude.m4 (cross_compiling): add -fpermissive when gcc 2.95.x
9000 * src/support/lyxstring.C: some changes from length() to rep->sz.
9001 avoids a function call.
9003 * src/support/filetools.C (SpaceLess): yet another version of the
9004 algorithm...now per Jean-Marc's suggestions.
9006 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
9008 * src/layout.C (less_textclass_desc): functor for use in sorting
9010 (LyXTextClass::Read): sort the textclasses after reading.
9012 * src/support/filetools.C (SpaceLess): new version of the
9013 SpaceLess functions. What problems does this one give? Please
9016 * images/banner_bw.xbm: made the arrays unsigned char *
9018 1999-11-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9020 * src/support/lyxstring.C (find): remove bogus assertion in the
9021 two versions of find where this has not been done yet.
9023 * src/support/lyxlib.h: add missing int return type to
9026 * src/menus.C (ShowFileMenu): disable exporting to html if no
9027 html export command is present.
9029 * config/lib_configure.m4: add a test for an HTML converter. The
9030 programs checked for are, in this order: tth, latex2html and
9033 * lib/configure: generated from config/lib_configure.m4.
9035 * src/lyxfunc.C (Dispatch): update and improve the execution of an
9036 html converter. The parameters are now passed through $$FName and
9037 $$OutName, instead of standard input/output.
9039 * src/lyxrc.{C,h}: rename \tth_command to \html_command.
9041 * lib/lyxrc.example: update description of \html_command.
9042 add "quotes" around \screen_font_xxx font setting examples to help
9043 people who use fonts with spaces in their names.
9045 1999-11-02 Lars Gullik Bjønnes <larsbj@lyx.org>
9047 * Distribution files: updates for v1.1.2
9049 * src/support/lyxstring.C (find): remove bogus assert and return
9050 npos for the same condition.
9052 1999-11-01 Lars Gullik Bjønnes <larsbj@lyx.org>
9054 * added patch for OS/2 from SMiyata.
9056 1999-10-29 Lars Gullik Bjønnes <larsbj@lyx.org>
9058 * src/text2.C (CutSelection): make space_wrapped a bool
9059 (CutSelection): dont declare int i until we have to.
9060 (alphaCounter): return a char const *.
9062 1999-10-28 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9064 * src/support/syscall.C (Systemcalls::kill):
9065 src/support/filetools.C (PutEnv, PutEnvPath):
9066 src/lyx_cb.C (addNewlineAndDepth):
9067 src/FontInfo.C (FontInfo::resize): condition some #warning
9068 directives with WITH_WARNINGS.
9071 1999-10-28 Lars Gullik Bjønnes <larsbj@lyx.org>
9073 * src/layout.[Ch] + several files: access to class variables
9074 limited and made accessor functions instead a lot of code changed
9075 becuase of this. Also instead of returning pointers often a const
9076 reference is returned instead.
9078 * src/form1.C (create_form_Figure): added a couple fo "no-c-format"
9080 * src/Makefile.am (dist-hook): added used to remove the CVS from
9081 cheaders upon creating a dist
9082 (EXTRA_DIST): added cheaders
9084 * src/support/lstrings.C (tostr(char)): fix it to handle param as
9085 a character not as a small integer.
9087 * src/support/lyxstring.C (find): removed Assert and added i >=
9088 rep->sz to the first if.
9090 1999-10-27 Lars Gullik Bjønnes <larsbj@lyx.org>
9092 * src/layout.[Ch] src/BufferView.C src/LaTeXFeatures.C
9093 src/LyXView.C src/buffer.C src/bufferparams.C
9094 src/lyx_cb.C src/lyxfunc.C src/paragraph.C src/text.C
9095 src/text2.C src/insets/insetinclude.C:
9096 lyxlayout renamed to textclasslist.
9098 * src/layout.C: some lyxerr changes.
9100 * src/layout.[Ch] (LyXLayout::Read): changed second paramter to
9101 LyXTextClass. rewrote LT_COPYSTYLE, rewrote LT_OBSOLETEDBY
9102 (LyXLayoutList): removed all traces of this class.
9103 (LyXTextClass::Read): rewrote LT_STYLE
9104 (LyXTextClass::hasLayout): new function
9105 (LyXTextClass::GetLayout): rewritten to return an iterator + has
9106 both const and nonconst version.
9107 (LyXTextClass::delete_layout): new function.
9108 (LyXTextClassList::Style): bug fix. do the right thing if layout
9110 (LyXTextClassList::NumberOfLayout): new acces to layoutlist.
9111 (LyXTextClassList::NameOfLayout): ditto
9112 (LyXTextClassList::Load): ditto
9114 * src/buffer.C (makeLaTeXFile): new access to layoutlist
9116 * src/LaTeXFeatures.C (getTClassPreamble): new access to layoutlist
9118 * src/LyXAction.C (LookupFunc): added a workaround for sun
9119 compiler, on the other hand...we don't know if the current code
9120 compiles on sun at all...
9122 * src/support/filetools.C (CleanupPath): subst fix
9124 * src/insets/insetbib.C (delDatabase): subst fix, this looks
9127 * src/support/filetools.C (PutEnvPath): subst fix, how come nobody
9128 complained about this one?
9130 * src/insets/insetinclude.C (Latex): subst fix
9132 * src/insets/insetbib.C (getKeys): subst fix
9134 * src/LyXSendto.C (SendtoApplyCB): subst fix
9136 * src/lyx_main.C (init): subst fix
9138 * src/layout.C (Read): subst fix
9140 * src/lyx_sendfax_main.C (button_send): subst fix
9142 * src/buffer.C (RoffAsciiTable): subst fix
9144 * src/lyx_cb.C (MenuFax): subst fix
9145 (PrintApplyCB): subst fix
9147 1999-10-26 Juergen Vigna <jug@sad.it>
9149 * src/table.C (TexEndOfCell) + (DocBookEndOfCell): removed some #if 0
9151 (Read): Cleaned up this code so now we read only format vestion >= 5
9153 1999-10-26 Lars Gullik Bjønnes <larsbj@lyx.org>
9155 * src/support/filetools.C (PutEnvPath): subst fix for EMX, how
9156 come nobody has complained about this one?
9158 * src/insets/insetinclude.C (Latex): subst fix
9160 * src/insets/insetbib.C (getKeys): subst fix
9162 * src/lyx_main.C (init): subst fix
9164 * src/layout.C (Read): subst fix
9166 * src/buffer.C (RoffAsciiTable): subst fix
9168 * src/lyx_cb.C (MenuFax): subst fix.
9170 * src/layout.[hC] + some other files: rewrote to use
9171 std::container to store textclasses and layouts in.
9172 Simplified, removed a lot of code. Make all classes
9173 assignable. Further simplifications and review of type
9174 use still to be one.
9176 * src/menus.C (ShowFileMenu/ShowFileMenu2): Use the iterators from
9177 lastfiles to create the lastfiles partr of the menu.
9179 * src/lastfiles.[Ch]: rewritten to use deque to store the
9180 lastfiles in. Uses fstream for reading and writing. Simplifies
9183 * src/support/syscall.C: remove explicit cast.
9185 * src/BufferView.C (CursorToggleCB): removed code snippets that
9187 use explicat C++ style casts instead of C style casts. also use
9188 u_vdata instea of passing pointers in longs.
9190 * src/PaperLayout.C: removed code snippets that were commented out.
9192 * src/lyx_gui_misc.C: removed code snippets that were commented out.
9194 * src/lyx_main.C: removed code snippets that wer commented out.
9196 * src/paragraph.C: removed code snippets that were commented out.
9198 * src/lyxvc.C (logClose): use static_cast
9200 (viewLog): remove explicit cast to void*
9201 (showLog): removed old commented code
9203 * src/menus.C: use static_cast instead of C style casts. use
9204 u_vdata instead of u_ldata. remove explicit cast to (long) for
9205 pointers. Removed old code that was commented out.
9207 * src/insets/inset.C: removed old commented func
9209 * src/insets/insetref.C (InsetRef): removed old code that had been
9210 commented out for a long time.
9212 (escape): removed C style cast
9214 * src/insets/insetlatexaccent.C (Draw): removed old commented code
9216 * src/insets/insetlatex.C (Draw): removed old commented code
9217 (Read): rewritten to use string
9219 * src/insets/insetlabel.C (escape): removed C style cast
9221 * src/insets/insetindex.h: removed vdata and ldata from FD_index_form
9223 * src/insets/insetindex.C: use static_cast and u_vdata, removed
9226 * src/insets/insetinclude.h: removed a couple of stupid bools
9228 * src/insets/insetinclude.C (include_cb): use static_cast and u_data.
9229 (Clone): remove C style cast
9230 (getKeys): changed list to lst because of std::list
9232 * src/insets/inseterror.C (Draw): removed som old commented code.
9234 * src/insets/insetcommand.C (Draw): removed some old commented code.
9236 * src/insets/insetbib.C (bibitem_cb): removed code that has been
9237 commented out forever.
9238 (bibitem_cb): use static_cast instead of C style cast
9239 use of vdata changed to u_vdata.
9241 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forward the data
9243 (CloseUrlCB): use static_cast instead of C style cast.
9244 (CloseUrlCB): added a fl_free form...it seemed to be missing.
9246 * src/insets/insetinfo.C (Edit): pass object in u_vdata instead
9247 (C_InsetInfo_CloseInfoCB): forward the ob parameter
9248 (CloseInfoCB): static_cast from ob->u_vdata instead.
9249 (Edit): removed bogus arg from fl_set_object_shortcut, set to 1
9252 * src/insets/inseterror.C (Edit): pass object in u_vdata instead
9253 (C_InsetError_CloseErrorCB): forward the ob parameter
9254 (CloseErrorCB): static_cast from ob->u_vdata instead.
9256 * src/vspace.h: include LString.h since we use string in this class.
9258 * src/vspace.C (lyx_advance): changed name from advance because of
9259 nameclash with stl. And since we cannot use namespaces yet...I
9260 used a lyx_ prefix instead. Expect this to change when we begin
9263 * src/BufferView.[Ch] (BufferView::~BufferView): removed
9265 * src/BackStack.h: rewrote to use std::stack. made BackStackItem
9266 and removed now defunct constructor and deconstructor.
9268 * src/BufferView.h: have backstack as a object not as a pointer.
9269 removed initialization from constructor. added include for BackStack
9271 * development/lyx.spec.in (%build): add CFLAGS also.
9273 * src/screen.C (drawFrame): removed another warning.
9275 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9277 * renamed WHATSNEW to NEWS (usual GNU style), CHANGES to
9278 OLD-CHANGES (not used anymore) and modified INSTALL, INSTALL.OS2,
9279 README and ANNOUNCE a bit for the next release. More work is
9282 * src/paragraph.C (SimpleTeXBlanks): spaces are automatically made
9283 unbreakable if we are in freespacing mode (LyX-Code), but not in
9286 1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
9288 * src/BackStack.h: fixed initialization order in constructor
9290 * Makefile.am (MAINTAINERCLEANFILES): removed po/POTFILES.in
9292 * acinclude.m4 (VERSION): new rules for when a version is
9293 development, added also a variable for prerelease.
9294 (warnings): we set with_warnings=yes for prereleases
9295 (lyx_opt): prereleases compile with same optimization as development
9296 (CXXFLAGS): only use pedantic if we are a development version
9298 * src/BufferView.C (restorePosition): don't do anything if the
9301 * src/BackStack.h: added member empty, use this to test if there
9302 is anything to pop...
9304 1999-10-25 Juergen Vigna <jug@sad.it>
9307 * forms/layout_forms.fd +
9308 * forms/latexoptions.fd +
9309 * lyx.fd: changed for various form resize issues
9311 * src/mathed/math_panel.C +
9312 * src/insets/inseterror.C +
9313 * src/insets/insetinfo.C +
9314 * src/insets/inseturl.C +
9315 * src/insets/inseturl.h +
9318 * src/PaperLayout.C +
9319 * src/ParagraphExtra.C +
9320 * src/TableLayout.C +
9322 * src/layout_forms.C +
9329 * src/menus.C: fixed various resize issues. So now forms can be
9330 resized savely or not be resized at all.
9332 * forms/form_url.fd +
9333 * src/insets/form_url.[Ch]: added because it's cleaner and easier
9336 * src/insets/Makefile.am: added files form_url.[Ch]
9338 1999-10-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9340 * INSTALL: it is now possible to compile LyX with digital C++ 6.1
9341 (and presumably 6.2).
9343 * src/{BufferView,LyXView,combox,filedlg,intl,lyxserver,lyxvc,
9344 menus,minibuffer,toolbar}.{C,h}: added C_xxx wrappers around
9345 remaining static member callbacks.
9347 * src/lyxfunc.C (Dispatch): Use _() instead of N_() fot minibuffer
9350 * src/support/lyxstring.h: declare struct Srep as friend of
9351 lyxstring, since DEC cxx complains otherwise.
9353 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
9355 1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
9357 * src/LaTeX.C (run): made run_bibtex also depend on files with
9359 (runBibTeX): added scans for "\\bibstyle", now also ".bst" files
9360 are put into the dependency file.
9362 * src/spellchecker.C (create_ispell_pipe): removed old #warning,
9363 the code has shown itself to work
9364 (create_ispell_pipe): removed another warning, added a comment
9367 * src/minibuffer.C (ExecutingCB): removed code that has been
9368 commented out a long time
9370 * src/lyxfunc.C (processKeyEvent): removed some very old commented
9371 out code + a warning.
9373 * src/support/lyxstring.h: comment out the three private
9374 operators, when compiling with string ansi conforming compilers
9377 * src/mathed/math_symbols.C (AddBitmap): change 6th arg to be
9379 (pixmapFromBitmapData): change type of bdata to be unsigned char *
9380 (pixmapFromBitmapData): add a reinterpret_cast in the call to
9383 * src/mathed/math_panel.h: change 6th arg to AddBitmap to be
9386 * src/mathed/math_panel.C (create_math_panel): remove explicit
9389 * src/bmtable.h: change last paramter to fl_set_bmtable_data to be
9392 * src/bmtable.C (struct BMTABLE_SPEC): make bdata unsigned char *
9393 (draw_bitmaptable): add a reinterpret_cast to sp->bdata in the call
9394 to XCreatePixmapFromBitmapData
9395 (fl_set_bmtable_data): change the last argument to be unsigned
9397 (fl_set_bmtable_file): change bdata to unsinged char *, change bw
9398 and bh to be unsigned int, remove explicit casts in call to
9399 XReadBitmapFileData.
9401 * images/arrows.xbm: made the arrays unsigned char *
9402 * images/varsz.xbm: ditto
9403 * images/misc.xbm: ditto
9404 * images/greek.xbm: ditto
9405 * images/dots.xbm: ditto
9406 * images/brel.xbm: ditto
9407 * images/bop.xbm: ditto
9409 * Makefile.am (MAINTAINERCLEANFILES): added po/POTFILES.in
9411 * acinclude.m4 (LYX_GXX_STRENGHT_REDUCE): removed.
9412 (LYX_PROG_CXX): added -pedantic to g++ compile options when
9413 with-warnings, removed the __STRING_ANSI__ hack, seems to not be
9415 (LYX_CXX_CHEADERS): added <clocale> to the test.
9417 1999-10-23 Lars Gullik Bjønnes <larsbj@lyx.org>
9419 * src/lyx_cb.C (addNewlineAndDepth): changed to use string::append.
9421 * src/support/lyxstring.C (append): fixed something that must be a
9422 bug, rep->assign was used instead of rep->append.
9424 * src/support/Makefile.am (libsupport_a_SOURCES): added LIstream.h
9427 * src/lyxfunc.C (processKeyEvent): removed faulty line that made
9428 lyx insert double chars. Fix spotted by Kayvan.
9430 1999-10-23 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
9432 * Fixed the tth support. I messed up with the Emacs patch apply feature
9433 and omitted the changes in lyxrc.C.
9435 1999-10-22 Juergen Vigna <jug@sad.it>
9437 * src/insets/figinset.C (CallbackFig): Just changed the defines a bit.
9439 * src/lyx_cb.C (MenuInsertRef) +
9440 * src/lyx_gui.C (create_forms): Inserted fl_set_form_minsize so that
9441 the form cannot be resized under it limits (fixes a segfault)
9443 * src/lyx.C (create_form_form_ref) +
9444 * forms/lyx.fd: Changed Gravity on name input field so that it is
9447 1999-10-22 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9449 * configure.in: use LYX_CXX_STL_MODERN_STREAMS; check for headers
9450 <ostream> and <istream>.
9452 * acinclude.m4 (LYX_CXX_STL_MODERN_STREAMS): new test. Checks
9453 whether <fstream> provides the latest standard features, or if we
9454 have an oldstyle library (like in egcs).
9455 (LYX_CXX_STL_STRING): fix the test.
9457 * src/support/DebugStream.{C,h}: use L{I,O}stream.h and condition the
9458 code on MODERN_STL_STREAM.
9460 * src/support/lyxstring.h: use L{I,O}stream.h.
9462 * src/support/L{I,O}stream.h: new files, designed to setup
9463 correctly streams for our use
9464 - includes the right header depending on STL capabilities
9465 - puts std::ostream and std::endl (for LOStream.h) or
9466 std::istream (LIStream.h) in toplevel namespace.
9468 1999-10-22 Lars Gullik Bjønnes <larsbj@lyx.org>
9470 * src/LaTeX.C (run): added a check in 0 sumchange so that if it
9471 was a bib file that had been changed we ensure that bibtex is run.
9472 (runBibTeX): enhanced to extract the names of the bib files and
9473 getting their absolute path and enter them into the dep file.
9474 (findtexfile): static func that is used to look for tex-files,
9475 checks for absolute patchs and tries also with kpsewhich.
9476 Alternative ways of finding the correct files are wanted. Will
9478 (do_popen): function that runs a command using popen and returns
9479 the whole output of that command in a string. Should be moved to
9482 * src/DepTable.[Ch] (extchanged): new function that returns true if a
9483 file with extension ext has changed.
9485 * src/insets/figinset.C: added ifdef guards around the fl_free
9486 code that jug commented out. Now it is commented out when
9487 compiling with XForms == 0.89.
9489 * src/support/lyxstring.C: moved the definition of lyxstring::Srep
9490 to lyxstring.C, and only keep a forward declaration in
9491 lyxstring.h. Simplifies the header file a bit and should help a
9492 bit on compile time too. Also changes to Srep will not mandate a
9493 recompile of code just using string.
9494 (~lyxstring): definition moved here since it uses srep.
9495 (size): definition moved here since it uses srep.
9497 * src/support/lyxstring.h: removed a couple of "inline" that should
9500 1999-10-21 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9502 * src/insets/inseturl.C (C_InsetUrl_CloseUrlCB): forgot to pass
9505 1999-10-21 Juergen Vigna <jug@sad.it>
9507 * src/table.C (SetPWidth): Just a small fix so the alignment is not
9508 set to left if I just remove the width entry (or it is empty).
9510 * src/text2.C (SetCursorIntern): Fixed a bug calculating to use wrong
9511 paragraph when having dummy paragraphs.
9513 1999-10-20 Juergen Vigna <jug@sad.it>
9515 * src/insets/figinset.C: just commented some fl_free_form calls
9516 and added warnings so that this calls should be activated later
9517 again. This avoids for now a segfault, but we have a memory leak!
9519 * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
9520 'const char * argument' to 'string argument', this should
9521 fix some Asserts() in lyxstring.C.
9523 * src/lyxfunc.h: Removed the function argAsString(const char *)
9524 as it is not used anymore.
9526 1999-10-20 Lars Gullik Bjønnes <larsbj@lyx.org>
9528 * src/support/lyxstring.C (getline): reads now _all_ chars. uses
9531 * src/Literate.h: some funcs moved from public to private to make
9532 interface clearer. Unneeded args removed.
9534 * src/Literate.C (scanLiterateLogFile): rewritten to use iostream
9536 (scanBuildLogFile): ditto
9538 * src/LaTeX.C (scanLogFile): merged LaTeX Error handling into
9539 normal TeX Error. Still room for improvement.
9541 * src/LaTeX.[Ch]: removed scanError. Wrong place and not needed.
9543 * src/buffer.C (insertErrors): changes to make the error
9544 desctription show properly.
9546 * src/LaTeX.C (deplog): removed the test for file in lyx doc dir.
9549 * src/support/lyxstring.C (helper): changed to use
9550 sizeof(object->rep->ref).
9551 (operator>>): changed to use a pointer instead.
9553 * src/support/lyxstring.h: changed const reference & to value_type
9554 const & lets see if that helps.
9556 1999-10-19 Lars Gullik Bjønnes <larsbj@lyx.org>
9558 * Makefile.am (rpmdist): fixed to have non static package and
9561 * src/support/lyxstring.C: removed the compilation guards
9563 * src/vspace.C (nextToken): use i + 1 instead of ++i. Maks things
9566 * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
9567 conditional compile of lyxstring.Ch
9569 * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
9570 stupid check, but it is a lot better than the bastring hack.
9571 (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING
9573 * several files: changed string::erase into string::clear. Not
9576 * src/chset.C (encodeString): use a char temporary instead
9578 * src/table.C (TexEndOfCell): added tostr around
9579 column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
9580 (TexEndOfCell): ditto
9581 (TexEndOfCell): ditto
9582 (TexEndOfCell): ditto
9583 (DocBookEndOfCell): ditto
9584 (DocBookEndOfCell): ditto
9585 (DocBookEndOfCell): ditto
9586 (DocBookEndOfCell): ditto
9588 * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
9590 * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
9592 * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
9593 (MenuBuildProg): added tostr around ret
9594 (MenuRunChktex): added tostr around ret
9595 (DocumentApplyCB): added tostr around ret
9597 * src/chset.C (encodeString): added tostr around t->ic
9599 * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
9600 (makeLaTeXFile): added tostr around tocdepth
9601 (makeLaTeXFile): added tostr around ftcound - 1
9603 * src/insets/insetbib.C (setCounter): added tostr around counter.
9605 * src/support/lyxstring.h: added an operator+=(int) to catch more
9608 * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
9609 (lyxstring): We DON'T allow NULL pointers.
9611 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9613 * src/mathed/math_macro.C (MathMacroArgument::Write,
9614 MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
9615 when writing them out.
9617 * src/LString.C: remove, since it is not used anymore.
9619 * src/support/lyxstring.C: condition the content to
9620 USE_INCLUDED_STRING macro.
9622 * src/mathed/math_symbols.C, src/support/lstrings.C,
9623 src/support/lyxstring.C: add `using' directive to specify what
9624 we need in <algorithm>. I do not think that we need to
9625 conditionalize this, but any thought is appreciated.
9627 * many files: change all callback functions to "C" linkage
9628 functions to please strict C++ compilers like DEC cxx 6.1 in mode
9629 strict_ansi. Those who were static are now global.
9630 The case of callbacks which are static class members is
9631 trickier, since we have to make C wrappers around them (see
9632 InsetError, InsetInfo and InsetUrl). The same holds for friends. I
9633 did not finish this yet, since it defeats the purpose of
9634 encapsulation, and I am not sure what the best route is.
9636 1999-10-19 Juergen Vigna <jug@sad.it>
9638 * src/support/lyxstring.C (lyxstring): we permit to have a null
9639 pointer as assignment value and just don't assign it.
9641 * src/vspace.C (nextToken): corrected this function substituting
9642 find_first(_not)_of with find_last_of.
9644 * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
9645 (TableOptCloseCB) (TableSpeCloseCB):
9646 inserted fl_set_focus call for problem with fl_hide_form() in
9649 1999-10-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9651 * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
9654 1999-10-18 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9656 * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
9657 LyXLex::next() and not eatline() to get its argument.
9659 1999-10-17 Lars Gullik Bjønnes <larsbj@lyx.org>
9661 * src/DepTable.[Ch]: rewritten to store the dependencies in a map
9662 instead, use fstreams for io of the depfile, removed unneeded
9663 functions and variables.
9665 * src/LaTeX.[Ch] (class TeXErrors): rewrote to store the errors in a
9666 vector instead, removed all functions and variables that is not in
9669 1999-10-16 Lars Gullik Bjønnes <larsbj@lyx.org>
9671 * src/buffer.C (insertErrors): use new interface to TeXError
9673 * Makefile.am (rpmdist): added a rpmdist target
9675 * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
9676 per Kayvan's instructions.
9678 1999-10-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9680 * src/Makefile.am: add a definition for localedir, so that locales
9681 are found after installation (Kayvan)
9683 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
9685 * development/.cvsignore: new file.
9687 1999-10-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9689 * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
9690 C++ compiler provides wrappers for C headers and use our alternate
9693 * configure.in: use LYX_CXX_CHEADERS.
9695 * src/cheader/: new directory, populated with cname headers from
9696 libstdc++-2.8.1. They are a bit old, but probably good enough for
9697 what we want (support compilers who lack them).
9699 * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
9700 from includes. It turns out is was stupid.
9702 1999-10-14 Lars Gullik Bjønnes <larsbj@lyx.org>
9704 * lib/Makefile.am (install-data-local): forgot a ';'
9705 (install-data-local): forgot a '\'
9706 (libinstalldirs): needed after all. reintroduced.
9708 1999-10-13 Lars Gullik Bjønnes <larsbj@lyx.org>
9710 * configure.in (AC_OUTPUT): added lyx.spec
9712 * development/lyx.spec: removed file
9714 * development/lyx.spec.in: new file
9716 * po/*.po: merged with lyx.pot becuase of make distcheck
9718 * lib/Makefile.am (dist-hook): added dist-hook so that
9719 documentation files will be included when doing a make
9720 dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
9721 (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
9723 more: tried to make install do the right thing, exclude CVS dirs
9726 * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
9727 Path would fit in more nicely.
9729 * all files that used to use pathstack: uses now Path instead.
9730 This change was a lot easier than expected.
9732 * src/support/path.h: new file
9734 * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
9736 * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
9738 * src/support/lyxstring.C (getline): Default arg was given for
9741 * Configure.cmd: removed file
9743 1999-10-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9745 * src/support/DebugStream.[Ch]: remove the explicit std:: before
9746 streams classes and types, add the proper 'using' statements when
9747 MODERN_STL is defined.
9749 * src/debug.h: move the << operator definition after the inclusion
9752 * src/support/filetools.C: include "LAssert.h", which is needed
9755 * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
9758 * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
9759 include "debug.h" to define a proper ostream.
9761 1999-10-12 Asger Alstrup Nielsen <alstrup@alstrup.galaxy.dk>
9763 * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
9764 method to the SystemCall class which can kill a process, but it's
9765 not fully implemented yet.
9767 * src/*.C: Changed Systemcalls::Startscript() to startscript()
9769 * src/support/FileInfo.h: Better documentation
9771 * src/lyxfunc.C: Added support for buffer-export html
9773 * src/menus.C: Added Export->As HTML...
9775 * lib/bind/*.bind: Added short-cut for buffer-export html
9777 * src/lyxrc.*: Added support for new \tth_command
9779 * lib/lyxrc.example: Added stuff for new \tth_command
9781 1999-10-12 Lars Gullik Bjønnes <larsbj@lyx.org>
9783 * lib/Makefile.am (IMAGES): removed images/README
9784 (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
9785 installes in correct place. Check permisions is installed
9788 * src/LaTeX.C: some no-op changes moved declaration of some
9791 * src/LaTeX.h (LATEX_H): changed include guard name
9793 1999-10-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9795 * lib/reLyX/Makefile.am: install noweb2lyx.
9797 * lib/Makefile.am: install configure.
9799 * lib/reLyX/configure.in: declare a config aux dir; set package
9800 name to lyx (not sure what the best solution is); generate noweb2lyx.
9802 * lib/layouts/egs.layout: fix the bibliography layout.
9804 1999-10-08 Jürgen Vigna <jug@sad.it>
9806 * src/support/filetools.C (FileOpenSearch): Fixed a bug where
9807 when in the PATH was something like /usr/bin;;/bin (note: the ;;)
9808 it returned without continuing to search the path.
9810 1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
9812 * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
9813 also fixes a bug. It is not allowed to do tricks with std::strings
9814 like: string a("hei"); &a[e]; this will not give what you
9815 think... Any reason for the complexity in this func?
9817 1999-10-06 Asger Alstrup Nielsen <alstrup@diku.dk>
9819 * Updated README and INSTALL a bit, mostly to check that my
9820 CVS rights are correctly set up.
9822 1999-10-06 Lars Gullik Bjønnes <larsbj@lyx.org>
9824 * src/support/lyxstring.C (helper): removed bogus Assert. strlen
9825 does not allow '\0' chars but lyxstring and std::string does.
9827 1999-10-05 Lars Gullik Bjønnes <larsbj@lyx.org>
9829 * autogen.sh (AUTOCONF): let the autogen script create the
9830 POTFILES.in file too. POTFILES.in should perhaps now not be
9831 included in the cvs module.
9833 * some more files changed to use C++ includes instead of C ones.
9835 * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
9837 (Reread): added tostr to nlink. buggy output otherwise.
9838 (Reread): added a string() around szMode when assigning to Buffer,
9839 without this I got a log of garbled info strings.
9841 * acconfig.h: commented out the PTR_AS_INT macros. They should not
9844 * I have added several ostream & operator<<(ostream &, some_type)
9845 functions. This has been done to avoid casting and warnings when
9846 outputting enums to lyxerr. This as thus eliminated a lot of
9847 explicit casts and has made the code clearer. Among the enums
9848 affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
9849 mathed enums, some font enum the Debug::type enum.
9851 * src/support/lyxstring.h (clear): missing method. equivalent of
9854 * all files that contained "stderr": rewrote constructs that used
9855 stderr to use lyxerr instead. (except bmtable)
9857 * src/support/DebugStream.h (level): and the passed t with
9858 Debug::ANY to avoid spurious bits set.
9860 * src/debug.h (Debug::type value): made it accept strings of the
9863 * configure.in (Check for programs): Added a check for kpsewhich,
9864 the latex generation will use this later to better the dicovery of
9867 * src/BufferView.C (create_view): we don't need to cast this to
9868 (void*) that is done automatically.
9869 (WorkAreaButtonPress): removed some dead code.
9871 1999-10-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9873 * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
9874 is not overwritten when translated (David Sua'rez de Lis).
9876 * lib/CREDITS: Added David Sua'rez de Lis
9878 * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
9880 * src/bufferparams.C (BufferParams): default input encoding is now
9883 * acinclude.m4 (cross_compiling): comment out macro
9884 LYX_GXX_STRENGTH_REDUCE.
9886 * acconfig.h: make sure that const is not defined (to empty) when
9887 we are compiling C++. Remove commented out code using SIZEOF_xx
9890 * configure.in : move the test for const and inline as late as
9891 possible so that these C tests do not interefere with C++ ones.
9892 Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
9893 has not been proven.
9895 1999-10-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
9897 * src/table.C (getDocBookAlign): remove bad default value for
9900 * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
9902 (ShowFileMenu2): ditto.
9904 * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
9907 1999-10-04 Lars Gullik Bjønnes <larsbj@lyx.org>
9909 * Most files: finished the change from the old error code to use
9910 DebugStream for all lyxerr debugging. Only minor changes remain
9911 (e.g. the setting of debug levels using strings instead of number)
9913 1999-10-02 Lars Gullik Bjønnes <larsbj@lyx.org>
9915 * src/layout.C (Add): Changed to use compare_no_case instead of
9918 * src/FontInfo.C: changed loop variable type too string::size_type.
9920 1999-10-01 Lars Gullik Bjønnes <larsbj@lyx.org>
9922 * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
9923 set ETAGS_ARGS to --c++
9925 1999-09-30 Lars Gullik Bjønnes <larsbj@lyx.org>
9927 * src/table.C (DocBookEndOfCell): commented out two unused variables
9929 * src/paragraph.C: commented out four unused variables.
9931 * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
9932 insed a if clause with type string::size_type.
9934 * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
9937 * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
9939 * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
9940 variable, also changed loop to go from 0 to lenght + 1, instead of
9941 -1 to length. This should be correct.
9943 * src/LaTeX.C (scanError): use string::size_type as loop variable
9946 * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
9947 (l.896) since y_tmp and row was not used anyway.
9949 * src/insets/insetref.C (escape): use string::size_type as loop
9952 * src/insets/insetquotes.C (Width): use string::size_type as loop
9954 (Draw): use string::size_type as loop variable type.
9956 * src/insets/insetlatexaccent.C (checkContents): use
9957 string::size_type as loop variable type.
9959 * src/insets/insetlabel.C (escape): use string::size_type as loop
9962 * src/insets/insetinfo.C: added an extern for current_view.
9964 * src/insets/insetcommand.C (scanCommand): use string::size_type
9965 as loop variable type.
9967 * most files: removed the RCS tags. With them we had to recompile
9968 a lot of files after a simple cvs commit. Also we have never used
9969 them for anything meaningful.
9971 * most files: tags-query-replace NULL 0. As adviced several plases
9972 we now use "0" instead of "NULL" in our code.
9974 * src/support/filetools.C (SpaceLess): use string::size_type as
9977 1999-09-29 Lars Gullik Bjønnes <larsbj@lyx.org>
9979 * src/paragraph.C: fixed up some more string stuff.
9981 1999-09-28 Lars Gullik Bjønnes <larsbj@lyx.org>
9983 * src/support/filetools.h: make modestr a std::string.
9985 * src/filetools.C (GetEnv): made ch really const.
9987 * src/lyxlib.h: removed the Maximum and Minimum inline functions,
9988 made code that used these use max/min from <algorithm> instead.
9990 * changed several c library include files to their equivalent c++
9991 library include files. All is not changed yet.
9993 * created a support subdir in src, put lyxstring and lstrings
9994 there + the extra files atexit, fileblock, strerror. Created
9995 Makefile.am. edited configure.in and src/Makefile.am to use this
9996 new subdir. More files moved to support.
9998 * imported som of the functions from repository lyx, filetools
10000 * ran tags-query-replace on LString -> string, corrected the bogus
10001 cases. Tried to make use of lstrings.[hC], debugged a lot. There
10002 is still some errors in there. This is errors where too much or
10003 too litle get deleted from strings (string::erase, string::substr,
10004 string::replace), there can also be some off by one errors, or
10005 just plain wrong use of functions from lstrings. Viewing of quotes
10008 * LyX is now running fairly well with string, but there are
10009 certainly some bugs yet (see above) also string is quite different
10010 from LString among others in that it does not allow null pointers
10011 passed in and will abort if it gets any.
10013 * Added the revtex4 files I forgot when setting up the repository.
10015 1999-09-27 Lars Gullik Bjønnes <larsbj@lyx.org>
10017 * All over: Tried to clean everything up so that only the files
10018 that we really need are included in the cvs repository.
10019 * Switched to use automake.
10020 * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
10021 * Install has not been checked.
10023 1999-09-22 Lars Gullik Bjønnes <larsbj@lyx.org>
10025 * po/pt.po: Three errors:
10026 l.533 and l.538 format specification error
10027 l. 402 duplicate entry, I just deleted it.