Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On 19 October 2010 07:48, Michael Meeks <michael.meeks@novell.com> wrote:
Hi Jon,

On Sun, 2010-10-17 at 04:11 +0200, Jon Nordby wrote:
Does LibreOffice ship an ODF thumbnail implementation for
file-managers on Windows and Mac OSX? If so, where in the sources can
I find it? If not, can anyone point me to other implementations?

       Not that I know of though we may well do; probably we should. If there
is some well known API to hook into to do this, then I would search the
code for that.
Good idea. There is indeed some code for Windows at least (using the
older IExtractImage API).
http://opengrok.go-oo.org/search?q=IExtractImage

For OS X 10.5 I think the APIs should be called QLThumbnailRequest*
http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/Introduction/Introduction.html
Here, a search in the code did not return anything.

       Failing that - writing one should be an easy hack; the ODF file format
is just a .zip file, and it contains a .png image with a thumbnail
anyway - so it should be a trivial open / extract-file / scale-image
type flow: are you interested in working on that ? [ and presumably it
doesn't work for you currently - hence the question ;-) ]

My motivation is actually to get OpenRaster[1] thumbnail support on
mentioned platforms (it uses ODF compatible thumbnails).

1. http://create.freedesktop.org/wiki/OpenRaster

-- 
Regards Jon Nordby - www.jonnor.com

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.