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 Use the preferred calling for Boost.Signal 2004-09-26 14:19:47 +00:00
GraphicsImage.C Change to use preffered calling of Boost.Function 2004-09-26 13:34:57 +00:00
GraphicsImage.h rename getExtFromContents() to getFormatFromContents() 2004-10-29 15:47:55 +00:00
GraphicsLoader.C Squash MSVC warning about a class declared as 'class' being defined 2005-02-15 10:17:56 +00:00
GraphicsLoader.h InsetOld -> InsetBase renaming 2004-11-25 19:13:07 +00:00
GraphicsParams.C change "support/std_sstream.h" to <sstream> 2004-07-24 10:55:30 +00:00
GraphicsParams.h the convert patch 2005-01-27 21:05:44 +00:00
GraphicsTypes.C
GraphicsTypes.h Small fixes for STLPort compliance 2006-09-28 00:42:47 +00:00
LoaderQueue.C
LoaderQueue.h
Makefile.am make sure to dist pch.h and mark PCH_FILE as a built file 2005-07-12 23:42:23 +00:00
pch.h Use the preferred calling for Boost.Signal 2004-09-26 14:19:47 +00:00
PreviewImage.C Asger's exchanging of the class and struct keywords. 2005-01-19 15:03:31 +00:00
PreviewImage.h InsetOld -> InsetBase renaming 2004-11-25 19:13:07 +00:00
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