lyx_mirror/src/insets
Angus Leeming 47b06816be Add LColor::graphicsbg and use it in the graphics and figure insets.
Ensures that a figure with a transparent colour can be viewed
easily if the LyX screen's background colour is dark.

Prevent deletion of the image file if no conversion is required.

This patch works like a charm with the (old) figinset. When testing
the graphics inset, however, I find that colour "None" in an XPM file
is displayed as black. I have no idea why. This appears to be true of
some other graphics viewers also. E.g., KDE 2's pixie displays "None"
as black but the venerable xv works fine.

Maybe it's my version of the xpm library, but v3.4.11 appears to be
right up to date.

Can people test on their machines and/or offer suggestions here?
Angus

p.s. You can test with the XPM files in lib/images. They will no longer
be deleted if you load them into LyX!

A.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2777 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-20 13:16:17 +00:00
..
.cvsignore read ChangeLog, a lot of whitespace changes. experimental use of libtool 1999-11-22 16:19:48 +00:00
ChangeLog Add LColor::graphicsbg and use it in the graphics and figure insets. 2001-09-20 13:16:17 +00:00
ExternalTemplate.C adjust 2001-08-06 19:13:25 +00:00
ExternalTemplate.h update copyright year 2001-05-30 13:53:44 +00:00
figinset.C Add LColor::graphicsbg and use it in the graphics and figure insets. 2001-09-20 13:16:17 +00:00
figinset.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
inset.C Fixed bug when inserting insets in right alligned paragraphs. 2001-08-13 13:28:14 +00:00
inset.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetbib.C Herbert's patch, part 3 2001-08-20 13:42:29 +00:00
insetbib.h Herbert's patch, part 3 2001-08-20 13:42:29 +00:00
insetbutton.C insetfloat work + stuff 2001-07-30 11:56:00 +00:00
insetbutton.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetcaption.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetcaption.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetcite.C Paranoia check: make sure that there is no whitespace between the 2001-08-01 15:26:04 +00:00
insetcite.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetcollapsable.C some mods I had in my local tree, mostly small stuff, perhaps minus the the Makefile changes 2001-09-09 22:02:19 +00:00
insetcollapsable.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetcommand.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetcommand.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
inseterror.C Implemented Search/Replace functionality for Insets. Cleaned up a bit. 2001-07-20 14:18:48 +00:00
inseterror.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetert.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetert.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetexternal.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetexternal.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetfloat.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetfloat.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetfloatlist.C fix free memory read when pasting + some typos 2001-09-20 10:16:24 +00:00
insetfloatlist.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetfoot.C Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetfoot.h various fixes 2001-07-30 10:50:37 +00:00
insetfootlike.C This should clean up the language stuff a bit and a small new check for 2001-07-27 12:03:36 +00:00
insetfootlike.h This should clean up the language stuff a bit and a small new check for 2001-07-27 12:03:36 +00:00
insetgraphics.C Add LColor::graphicsbg and use it in the graphics and figure insets. 2001-09-20 13:16:17 +00:00
insetgraphics.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetgraphicsParams.C adjust 2001-08-06 19:13:25 +00:00
insetgraphicsParams.h * John's maths patch, 2001-07-30 13:35:08 +00:00
insetinclude.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetinclude.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetindex.C Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetindex.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetlabel.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetlabel.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetlatexaccent.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetlatexaccent.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetlist.C simplificatons 2001-07-24 22:08:49 +00:00
insetlist.h Added copy constructor to inset.h and used it in most insets which permit 2001-07-24 15:07:09 +00:00
insetmarginal.C This should clean up the language stuff a bit and a small new check for 2001-07-27 12:03:36 +00:00
insetmarginal.h This should clean up the language stuff a bit and a small new check for 2001-07-27 12:03:36 +00:00
insetminipage.C Small fixes + hfill display/draw bug (seen with minipages!). 2001-08-10 14:00:48 +00:00
insetminipage.h Various update/redraw fixes. Cleaned up InsetERT and added a dialog for 2001-08-06 14:55:02 +00:00
insetnote.C Few fixes for inserERT/insetNote 2001-08-18 15:01:09 +00:00
insetnote.h Few fixes for inserERT/insetNote 2001-08-18 15:01:09 +00:00
insetparent.C * John's maths patch, 2001-07-30 13:35:08 +00:00
insetparent.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insetquotes.C bug fixes 2001-09-07 15:41:36 +00:00
insetquotes.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetref.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetref.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetsection.C update copyright year 2001-05-30 13:53:44 +00:00
insetsection.h update copyright year 2001-05-30 13:53:44 +00:00
insetspecialchar.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insetspecialchar.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insettabular.C rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insettabular.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insettext.C some mods I had in my local tree, mostly small stuff, perhaps minus the the Makefile changes 2001-09-09 22:02:19 +00:00
insettext.h rename docBook method to docbook 2001-09-04 11:02:09 +00:00
insettheorem.C simplificatons 2001-07-24 22:08:49 +00:00
insettheorem.h Added various inset functions for Jean-Marc (see Changelog). Small fix in 2001-07-12 14:35:38 +00:00
insettoc.C Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
insettoc.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
inseturl.C Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
inseturl.h Baruch's graphics patch + some small tweaks to the buttoncontroller stuff 2001-07-28 12:24:16 +00:00
Makefile.am outstanding changes 2001-08-19 13:13:47 +00:00