]> git.lyx.org Git - lyx.git/blobdiff - ChangeLog
Baruch's InsetGraphics - LyXImage patch
[lyx.git] / ChangeLog
index 71ddb75bdad41b519717050872f27655ceb342fe..fcb1a3e3cbc777ee4593b23089b299e64c6f1f89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,537 @@
+2000-10-12  Juergen Vigna  <jug@sad.it>
+
+       * development/Code_rules/Rules: fixed some typos.
+
+2000-10-09  Baruch Even  <baruch.even@writeme.com>
+
+       * src/filedlg.C (GroupCache::find): de-inlined the function, makes
+       compiling on egcs 1.1.2 possible.
+       
+       * src/filedlg.C (comp_direntry::operator() ): ditto.
+
+2000-08-31  Baruch Even  <baruch.even@writeme.com>
+
+       * src/lyx_cb.[hC] (ShowMessage): Result of the const-ificiation of the 
+       Buffer parameter.
+
+       * src/frontends/xforms/FormGraphics.C: Changed the dialog to be
+       transient it now only gets freed when the object is destructed.
+
+2000-08-24  Baruch Even  <baruch.even@writeme.com>
+
+       * src/frontends/FormGraphics.h:
+       * src/frontends/FormGraphics.C: Changed to use ButtonController and
+       ButtonPolicies.
+
+2000-08-20  Baruch Even  <baruch.even@writeme.com>
+
+       * src/insets/insetgraphics.C:
+       (draw): Added messages to the drawn rectangle to report status.
+       (updateInset): Disabled the use of the inline graphics,
+       (draw): ditto.
+
+2000-08-17  Baruch Even  <baruch.even@writeme.com>
+
+       * src/frontends/support: Directory added for the support of GUII LyX.
+
+       * src/frontends/support/LyXImage.h:     
+       * src/frontends/support/LyXImage.C:  Base class for GUII holding of
+       images.
+
+       * src/frontends/support/LyXImage_X.h:
+       * src/frontends/support/LyXImage_X.C: Implementation of the Xlib
+       version of LyXImage, this uses the Xlib Pixmap.
+
+       * src/PainterBase.h:
+       * src/PainterBase.C:
+       * src/Painter.h:
+       * src/Painter.C: Added a new method image() to draw LyXImage-s, a GUII 
+       replacement     to Pixmap.
+
+       * src/insets/insetgraphics.h:
+       * src/insets/insetgraphics.C:
+       * src/graphics/GraphicsCacheItem.h:
+       * src/graphics/GraphicsCacheItem.C:
+       * src/graphics/GraphicsCacheItem_pimpl.h:
+       * src/graphics/GraphicsCacheItem_pimpl.C: Changed to use LyXImage
+       instead  of Pixmap.
+
+       * src/graphics/GraphicsCacheItem.h:
+       * src/graphics/GraphicsCacheItem.C: Added the Clone() method to create 
+       another copy of the object.
+
+       * src/insets/insetgraphics.C (Clone): Changed to create a second copy
+       of cacheHandle, this fixed a bug that sent LyX crashing.
+
+       * src/graphics/XPM_Renderer.h:
+       * src/graphics/XPM_Renderer.C:
+       * src/graphics/EPS_Renderer.h:
+       * src/graphics/EPS_Renderer.C: Changed to Unix LF from DOS CRLF.
+
+2000-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/lyxfunc.C (processKeySym): only handle the
+       lockinginset/inset stuff if we have a buffer and text loaded...
+
+       * lib/Makefile.am (EXTRA_DIST): add encodings and languages
+
+2000-10-12    <larsbj@baywatch.lyx.org>
+
+       * src/support/lyxfunctional.h: add operator= that takes a reference
+
+       * src/lyxserver.C (mkfifo): make first arg const
+
+       * src/layout.h: renamed name(...) to setName(...) to work around
+       bugs in egcs.
+
+       * src/buffer.C (setFileName): had to change name of function to
+       work around bugs in egcs. (renamed from fileName) 
+
+2000-10-11  Lars Gullik Bjønnes  <larsbj@lyx.org>
+
+       * src/support/translator.h: move helper template clsses to
+       lyxfunctional.h, inlcude 2support/lyxfunctional.h"
+
+       * src/support/lyxmanip.h: add delaration of fmt
+
+       * src/support/lyxfunctional.h: new file
+       (class_fun_t): new template class
+       (class_fun): helper template function
+       (back_insert_fun_iterator): new template class
+       (back_inserter_fun): helper template function
+       (compare_memfun_t): new template class
+       (compare_memfun): helper template function
+       (equal_1st_in_pair): moved here from translator
+       (equal_2nd_in_pair): moved here from translatro
+
+       * src/support/fmt.C: new file
+       (fmt): new func, can be used for a printf substute when still
+       using iostreams ex. lyxerr << fmg("Hello %s", "Jürgen") << endl;
+
+       * src/support/StrPool.C: add some comment
+
+       * src/support/Makefile.am (libsupport_la_SOURCES): add fmt.C and
+       lyxfunctional.h
+
+       * src/insets/figinset.C (addpidwait): use std::copy with
+       ostream_iterator to fill the pidwaitlist
+
+       * src/graphics/XPM_Renderer.C (renderImage): use ScreenOfDisplay
+
+       * src/frontends/xforms/Toolbar_pimpl.C (updateLayoutList): remove
+       c_str() 
+
+       * src/frontends/xforms/Menubar_pimpl.C: make several file scope
+       variables static
+
+       * src/frontends/xforms/FormParagraph.C (input): use lyx::atoi
+
+       * src/frontends/xforms/FormDocument.C (build): remove c_str()
+       (class_update): ditto
+       (BulletPanel): ditto
+       (CheckChoiceClass): move initialization of tc and tct
+
+       * src/tabular.C: remove current_view
+       (OldFormatRead): similar to right below [istream::ignore]
+
+       * src/lyxlex_pimpl.C (next): add code for faster skipping of
+       chars, unfortunately this is buggy on gcc 2.95.2, so currently
+       unused [istream::ignore]
+
+       * src/lyxfunc.C: include "support/lyxfunctional.h"
+       (getInsetByCode): use std::find_if and compare_memfun
+
+       * src/lyxfont.C (stateText): remove c_str()
+
+       * src/lyx_main.C (setDebuggingLevel): make static
+       (commandLineHelp): make static
+
+       * src/lyx_gui_misc.C (getScreenDPI): use ScreenOfDisplay to get
+       Screen* together with fl_get_display() and fl_screen
+
+       * src/lyx_gui.C (LyXGUI): use ScreenOfDisplay to get Screen*
+       togheter with fl_get_display() and fl_screen
+       (create_forms): remove c_str()
+
+       * src/layout.C: include "support/lyxfunctional.h"
+       (hasLayout): use std::find_if and compare_memfun
+       (GetLayout): use std::find_if and comapre_memfun
+       (delete_layout): use std::remove_if and compare_memfun
+       (NumberOfClass): use std:.find_if and compare_memfun
+
+       * src/gettext.h: change for the new functions
+
+       * src/gettext.C: new file, make _(char const * str) and _(string
+       const & str) real functions.
+
+       * src/font.C (width): rewrite slightly to avoid one extra variable
+
+       * src/debug.C: initialize Debug::ANY here
+
+       * src/commandtags.h: update number comments
+
+       * src/combox.h (get): make const func
+       (empty): make const
+       (getline): make const
+
+       * src/combox.C (input_cb): handle case where fl_get_input can
+       return NULL
+
+       * src/bufferlist.C: add <functional>, "support/lyxmanip.h",
+       "support/lyxfunctional.h", remove currentview variable.
+       (resize): use std::for_each with std::mem_fun
+       (getFileNames): use std::copy with back_inserter_fun
+       (getBuffer): change arg type to unsigned int
+       (emergencyWriteAll): call emergencyWrite with std::for_each and
+       class_fun.
+       (emergencyWrite): new method, the for loop in emergencyWriteAll
+       has been unrolled.
+       (exists): use std::find_if with compare_memfun
+       (getBuffer): use std::find_if and compare_memfun
+
+       * src/buffer.h: add typedefs for iterator_category, value_type
+       difference_type, pointer and reference for inset_iterator
+       add postfix ++ for inset_iterator
+       make isnet_iterator::getPos() const
+
+       * src/buffer.C: added support/lyxmanip.h
+       (readFile): use lyxerr << fmt instead of printf
+       (makeLaTeXFile): use std::copy to write out encodings
+       
+
+       * src/Painter.C (text): rewrite slightly to avoid extra font variable
+
+       * src/MenuBackend.C (read): remove c_str(), as well as strdup and
+       free and the char * temp.
+       (hasMenu): use std::find_if and compare_memfun
+       (getMenu): ditto
+
+       * src/Makefile.am (lyx_SOURCES): added gettext.C
+
+       * src/LyXAction.C (retrieveActionArg): clear the arg, use
+       string::insert small change to avoid temporary
+
+       * src/LColor.C (getGUIName): remove c_str()
+
+       * several files: change all occurances of fl_display to
+       fl_get_display() 
+
+       * config/lyxinclude.m4 (LYX_PROG_CXX): add a 2.97 clause so
+       that -pedantid is not used for gcc 2.97 (cvs gcc)
+
+       * boost/Makefile.am: begin slowly to prepare for a real boost lib
+
+2000-10-11  Allan Rae  <rae@lyx.org>
+
+       * src/frontends/xforms/FormPreferences.C (input): template path must be
+       a readable directory.  It doesn't need to be writeable.
+       (build, delete, update, apply): New inputs in the various tabfolders
+
+       * src/frontends/xforms/forms/form_preferences.fd: 
+       * src/frontends/xforms/FormPreferences.h: New tabfolder and added
+       several new entries to existing folders.  Shuffled some existing stuff
+       around. 
+
+       * src/frontends/xforms/forms/form_print.fd: 
+       * src/frontends/xforms/FormPrint.C (apply): rename unsorted to collated.
+       Should probably rework PrinterParams as well.  Note that the switch to
+       collated is effectively the same as !unsorted so changing PrinterParams
+       will require a lot of fiddly changes to reverse the existing logic.
+
+       * src/lyx_cb.C (TimerCB): cleaned up Angus's patch.
+
+2000-10-10  Angus Leeming <a.leeming@ic.ac.uk>
+
+       * src/lyx_cb.C (TimerCB): fix crash when fd_form_title doesn't exist.
+
+2000-10-10  Allan Rae <rae@lyx.org>
+
+       * src/lyxrc.[Ch]:
+       * src/lyxfunc.C (Dispatch): 
+       * src/lyx_gui.C: 
+       * src/BufferView_pimpl.C (scrollCB): cursor_follows_scrollbar made a
+       member of LyXRC
+
+       * src/lyxrc.C (output): Only write the differences between system lyxrc
+       and the users settings.
+
+       * src/lyx_main.C:
+       * src/lyxrc.[Ch]: commented out noncopyable so I can keep a
+       system_lyxrc. 
+       I'll rewrite this later, after 1.1.6 probably, to keep a single
+       LyXRC but two instances of a LyXRCStruct.
+
+2000-10-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * lib/Makefile.am (pkgdata_DATA): add encoding and languages
+
+       * src/tabular.h: add a few std:: qualifiers.
+
+       * src/encoding.C: add using directive.
+       * src/language.C: ditto.
+
+       * src/insets/insetquotes.C (Validate): use languages->lang()
+       instead of only language.
+
+2000-10-07  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lib/languages: New file.
+
+       * lib/encodings: New file.
+
+       * src/language.C (Languages): New class.
+       (read): New method. Reads the languages from the 'languages' file.
+
+       * src/encoding.C (Encodings): New class.
+       (read): New method. Reads the encodings from the 'encodings' file.
+
+       * src/lyx_main.C (init): Call to LyXSetStyle() after languages
+       initialization.
+
+       * src/bufferparams.h and a lot of files: Deleted the member language,
+       and renamed language_info to language
+
+       * src/buffer.C (makeLaTeXFile): Use babel() instead of lang()
+       * src/lyxfont.C (latexWriteStartChanges): ditto.
+       * src/paragraph.C (validate,TeXOnePar): ditto.
+       
+       * src/lyxfont.C (update): Restored deleted code.
+
+       * src/frontends/xforms/FormDocument.C (build): Made the combox taller
+
+2000-10-10  Angus Leeming <a.leeming@ic.ac.uk>
+
+       * src/BufferView_pimpl.C (buffer): cleaned up a little.
+
+       * src/insets/figinset.[Ch]:
+       * src/insets/insetinclude.[Ch]:
+       * src/insets/insetinclude.[Ch]:
+       * src/insets/insetparent.[Ch]:
+       * src/insets/insetref.[Ch]:
+       * src/insets/insettabular.[Ch] (c-tor): Buffer passed as const &.
+
+       * src/insets/*.[Ch]:
+       * src/mathed/formula.[Ch]:
+       * src/mathed/formulamacro.C (Clone): passed Buffer const &.
+
+       * src/buffer.C (parseSingleLyXformat2Token, readInset):
+       * src/lyx_cb.C (FigureApplyCB):
+       * src/lyxfunc.C (getStatus, Dispatch):
+       * src/frontends/xforms/FormTabular.C:  use modified c-tors to some
+       insets.
+
+       * src/lyxfunc.C (Dispatch): string "ref" not used. Removed.
+
+       * src/converter.[Ch] (Formats::View):
+       * src/lyx_cb.[Ch] (ShowMessage): constify Buffer * parameter.
+
+       * src/paragraph.C (CopyIntoMinibuffer, Clone): Insets::Clone() passed
+       *current_view->buffer(). This will change later, but this patch is way
+       big enough already!
+
+2000-10-09  Juergen Vigna  <jug@sad.it>
+
+       * src/text.C (GetRow): small fix.
+
+       * src/BufferView_pimpl.C (cursorPrevious): 
+       (cursorNext): added LyXText parameter to function.
+
+       * src/insets/insettabular.C (LocalDispatch): activate cell inset on
+       keypress depending on cursor position.
+
+2000-10-06  Juergen Vigna  <jug@sad.it>
+
+       * src/insets/insettabular.C (Ascii): finally call right ascii-function.
+       (copySelection): redone this function and also copy ascii representa-
+       tion to clipboard.
+
+       * src/tabular.C (Ascii): 
+       (AsciiPrintCell): 
+       (AsciiBottomHLine): 
+       (AsciiTopHLine): 
+       (print_n_chars): new functions to realize the ascii export of tabulars.
+
+2000-10-05  Juergen Vigna  <jug@sad.it>
+
+       * src/lyx_gui_misc.C (updateAllVisibleBufferRelatedDialogs): small fix
+       if we don't have a buffer.
+
+2000-10-10  Allan Rae  <rae@lyx.org>
+
+       * src/frontends/xforms/FormPreferences.[Ch] (hide): Fix the problem
+       with closing dialog.  It seems that nested tabfolders require hiding
+       of inner tabfolders before hiding the dialog itself.  Actually all I
+       did was hide the active outer folder.
+
+       * src/BufferView_pimpl.C (buffer): don't call updateBufferDependent
+       unless there really is a buffer.  hideBufferDependent is called
+       instead.
+
+       * po/Makefile.in.in (POTFILES.in): one little tweak to ensure
+       POTFILES.in stays in $(srcdir).
+
+2000-10-09  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lib/lyxrc.example: Few changes.
+
+2000-10-05  Angus Leeming <a.leeming@ic.ac.uk>
+
+       * src/BufferView_pimpl.C (buffer): only need one the
+       updateBufferDependent signal to be emitted once! Moved to the end of
+       the method to allow bv_->text to be updated first.
+
+       * src/frontends/xforms/FormBase.[Ch]: replaced the two signals uSignal_
+       and hSignal_ with Dialogs * and BufferDependency variables.
+       New Buffer * parent_, initialised when the dialog is launched. Used to
+       check whether to update() or hide() dialog in the new, private
+       updateOrHide() method that is connected to the updateBufferDependent
+       signal. Daughter classes dictate what to do using the
+       ChangedBufferAction enum, passed to the c-tor.
+
+       * src/frontends/xforms/FormCitation.C:
+       * src/frontends/xforms/FormCommand.C:
+       * src/frontends/xforms/FormCopyright.C:
+       * src/frontends/xforms/FormDocument.C:
+       * src/frontends/xforms/FormError.C:
+       * src/frontends/xforms/FormIndex.C:
+       * src/frontends/xforms/FormPreferences.C:
+       * src/frontends/xforms/FormPrint.C:
+       * src/frontends/xforms/FormRef.C:
+       * src/frontends/xforms/FormToc.C:
+       * src/frontends/xforms/FormUrl.C (c-tor): modified call to FormBase
+       c-tor.
+
+       * src/frontends/xforms/FormCommand.[Ch] (c-tor) passed a
+       ChangedBufferAction enum.
+
+       * src/frontends/xforms/FormParagraph.[Ch]
+       * src/frontends/xforms/forms/form_paragraph.fd: now derived from
+       FormBase.
+       
+2000-10-06  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * lib/bind/cua.bind: fix a bit.
+       * lib/bind/emacs.bind: ditto.
+
+       * lib/bind/menus.bind: remove real menu entries from there.
+
+       * src/spellchecker.C: make sure we only include strings.h when
+       _AIX is defined.        
+
+2000-10-05  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * src/frontends/xforms/Menubar_pimpl.C (get_new_submenu): New
+       function. It enlarges the maximum number of pup when needed.
+       (add_toc2): Open a new menu if maximum number of items per menu has 
+       reached.
+       
+2000-10-05  John Levon  <moz@compsoc.man.ac.uk>
+
+       * src/frontends/kde/FormPrint.C: fix error reporting
+
+       * src/frontends/xforms/FormDocument.C: fix compiler
+       warnings
+
+       * lib/.cvsignore: add Literate.nw
+
+2000-10-05  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * buffer.C
+       * bufferview_funcs.[Ch]
+       * lyxfont.[Ch]
+       * text.C
+       * text2.C: Add support for numbers in RTL text.
+
+2000-10-06  Allan Rae  <rae@lyx.org>
+
+       * po/Makefile.in.in (POTFILES.in, POTFILES): Fixed
+       to be gettext.m4 friendly again.  ext_l10n.h is now
+       generated into $top_srcdir instead of $top_builddir
+       so that lyx.pot will be built correctly -- without
+       duplicate parsing of ext_l10n.h.
+
+2000-10-04  John Levon  <moz@compsoc.man.ac.uk>
+
+       * src/frontends/kde/FormCitation.C: make the dialog
+       behave more sensibly
+
+2000-10-03  John Levon  <moz@compsoc.man.ac.uk>
+
+       * config/kde.m4: fix consecutive ./configure runs,
+       look for qtarch, fix library order
+
+       * src/frontends/kde/Makefile.am: tidy up,
+       add Print dialog, add .dlg dependencies
+
+       * src/frontends/kde/FormPrint.C:
+       * src/frontends/kde/FormPrint.h:
+       * src/frontends/kde/formprintdialog.C:
+       * src/frontends/kde/formprintdialog.h:
+       * src/frontends/kde/formprintdialogdata.C:
+       * src/frontends/kde/formprintdialogdata.h:
+       * src/frontends/kde/dlg/formprintdialog.dlg: add
+       print dialog
+
+       * src/frontends/kde/dlg/README: Added explanatory readme
+       
+       * src/frontends/kde/dlg/checkinitorder.pl: small perl
+       script to double-check qtarch's output
+
+       * src/frontends/kde/formindexdialog.C:
+       * src/frontends/kde/formindexdialogdata.C:
+       * src/frontends/kde/formindexdialogdata.h:
+       * src/frontends/kde/dlg/formindexdialog.dlg: update
+       for qtarch, minor fixes
+
+2000-10-05  Allan Rae  <rae@lyx.org>
+
+       * src/BufferView_pimpl.C (buffer): don't hide all buffer dependent
+       dialogs when switching buffers update them instead.  It's up to each
+       dialog to decide if it should still be visible or not.
+       update() should return a bool to control visiblity within show().
+       Or perhaps better to set a member variable and use that to control
+       visibility.
+
+       * lib/build-listerrors: create an empty "listerrors" file just to stop
+       make trying to regenerate it all the time if you don't have noweb
+       installed.
+
+       * .cvsignore: ignore distdir and dist.tar.gz using rule lyx-*
+
+       * po/Makefile.in.in (ext_l10n.h): added a rule to build
+       $(top_builddir)/src/ext_l10n.h.  The rule has to go here because po/
+       is built before src/ and ext_l10n.h isn't actually needed to build lyx.
+       (POTFILES.in): added a rule to build POTFILES.in.  It is also now safe
+       to rebuild POTFILES.in with scrap *.[hC] files in xforms/forms/.
+
+       * autogen.sh: po/POTFILES.in and src/ext_l10n.h now generated by make.
+
+2000-10-04  Angus Leeming <a.leeming@ic.ac.uk>
+
+       * src/BufferView_pimpl.C (buffer): emit hideBufferDependent when
+       deleting buffer. Closes all buffer-dependent dialogs.
+
+       * src/frontends/xforms/FormBase.[Ch] (input): modified to pass
+       FL_OBJECT * also.
+       * src/frontends/xforms/FormCitation.[Ch]:
+       * src/frontends/xforms/FormPreferences.[Ch]:
+       * src/frontends/xforms/FormPrint.[Ch]:
+       * src/frontends/xforms/FormRef.[Ch]:
+       * src/frontends/xforms/FormUrl.[Ch]: ditto
+
+       * src/frontends/xforms/FormDocument.[Ch]:
+       * src/frontends/xforms/forms/form_document.C.patch:
+       * src/frontends/xforms/forms/form_document.fd: all input callbacks now
+       pass through a single input() function.
+
+2000-10-04  John Levon  <moz@compsoc.man.ac.uk>
+
+       * lib/build-listerrors: return status as OK
+
+2000-10-04  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lib/lyxrc.example: Updated to new export code
+
 2000-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/mathed/math_parser.C (LexInitCodes): set lexcode of "@" to