lyx_mirror/src/graphics
Georg Baum 5ed606f9c5 Add a cache for converted image files. This needs to be enabled in the
preferences file with \use_converter_cache true. It is disabled by default,
and no GUI support for changing the preferences is yet implemented.

	* src/insets/insetgraphics.C
	(InsetGraphics::prepareFile): Use image file cache

	* src/insets/ExternalSupport.C
	(updateExternal): Use image file cache

	* src/exporter.C
	(Exporter::Export): Do not use image file cache

	* src/graphics/GraphicsCacheItem.C

	(CacheItem::Impl::imageConverted): Add the converted file to the
	image file cache
	(CacheItem::Impl::convertToDisplayFo): Use image file cache

	* src/converter.C
	(Converters::convert): Use image file cache if the caller allowed that

	* src/converter.h
	(Converters::convert): Adjust arguments

	* src/Makefile.am: Add new files

	* src/support/lyxlib.h
	(chmod): new function
	(copy): add mode argument

	* src/support/copy.C
	(chmod): new function
	(copy): implement mode argument

	* src/support/mkdir.C
	(lyx::support::mkdir): Add warning if permissions are ignored

	* src/lyxrc.[Ch]: Add new settings \converter_cache_maxage and
	\use_converter_cache

	* src/ConverterCache.[Ch]: New image file cache

	* src/importer.C
	(Importer::Import): Do nut use the image file cache

	* src/lyx_main.C
	(LyX::init): Initialize the image file cache

	* src/mover.[Ch]
	(Mover::do_copy): Add mode argument
	(SpecialisedMover::do_copy): ditto

	* configure.ac: Check for chmod

	* development/cmake/ConfigureChecks.cmake: ditto

	* development/cmake/config.h.cmake: ditto

	* development/scons/SConstruct: ditto

	* development/scons/scons_manifest.py: Add new files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15897 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 10:27:57 +00:00
..
ChangeLog fix fix of bug 2192 2006-03-10 12:38:21 +00:00
GraphicsCache.C * filetools.[Ch]: Make functions that start with a capital 2006-04-08 22:31:11 +00:00
GraphicsCache.h
GraphicsCacheItem.C Add a cache for converted image files. This needs to be enabled in the 2006-11-13 10:27:57 +00:00
GraphicsCacheItem.h move everything into namespace lyx 2006-10-21 00:16:43 +00:00
GraphicsConverter.C move everything into namespace lyx 2006-10-21 00:16:43 +00:00
GraphicsConverter.h
GraphicsImage.C
GraphicsImage.h
GraphicsLoader.C
GraphicsLoader.h
GraphicsParams.C
GraphicsParams.h
GraphicsTypes.C
GraphicsTypes.h Small fixes for STLPort compliance 2006-09-28 00:42:47 +00:00
LoaderQueue.C
LoaderQueue.h
Makefile.am
pch.h
PreviewImage.C
PreviewImage.h
PreviewLoader.C move everything into namespace lyx 2006-10-21 00:16:43 +00:00
PreviewLoader.h move everything into namespace lyx 2006-10-21 00:16:43 +00:00
Previews.C move everything into namespace lyx 2006-10-21 00:16:43 +00:00
Previews.h move everything into namespace lyx 2006-10-21 00:16:43 +00:00